API REFERENCE
TilemapTooltipSpec
The TilemapTooltipSpec type declaration and related types. Optional fields are marked with ?.
Type declaration
export interface TilemapTooltipSpec {
show: boolean;
openMode: TilemapTooltipOpenMode;
trigger: TilemapTooltipTrigger;
side?: TilemapTooltipSide;
offset: number;
format?: (tile: TilemapResolvedTile, context?: TilemapTooltipFormatContext) => string;
html?: (tile: TilemapResolvedTile, context?: TilemapTooltipFormatContext) => string;
className?: string;
style?: TilemapTooltipStyle;
width?: number | string;
minWidth?: number | string;
maxWidth?: number | string;
padding?: number | string;
interactive: boolean;
hideOnLeave: boolean;
connector: TilemapTooltipConnectorSpec;
draggable: boolean;
}