Type alias TShowWatermarkOptions

TShowWatermarkOptions: {
    iconOnly?: boolean;
    onClick?: (() => void);
    padding?: number | {
        bottom?: number;
        left?: number;
        right?: number;
        top?: number;
    };
    position?: TWatermarkPosition;
    scale?: number;
}

Type declaration

  • Optional iconOnly?: boolean

    Show only the Mappedin icon without text.

    Default

    false
    
  • Optional onClick?: (() => void)
      • (): void
      • Callback when the watermark is clicked.

        Returns void

  • Optional padding?: number | {
        bottom?: number;
        left?: number;
        right?: number;
        top?: number;
    }

    Padding in pixels. Can be a number or an object with top, right, bottom, and left properties.

    Default

    16
    

    Example

    // Watermark with 20 pixels of padding on all sides
    __showWatermark({
    padding: 20,
    });

    Example

    // Watermark with unique top, right, bottom, left padding
    __showWatermark({
    padding: {
    top: 10,
    right: 20,
    bottom: 30,
    left: 40,
    },
    });
  • Optional position?: TWatermarkPosition

    Position of the watermark on the screen.

    Default

    'bottom-left'
    
  • Optional scale?: number

    Scale of the watermark between 0.5 and 1.5.

    Default

    1