import { GeoProjection } from 'd3-geo'; import { Topology } from 'topojson-specification'; import { ComponentPublicInstance } from '../../../node_modules/vue'; export interface ChoroplethMapProps { /** * Covers the empty values with a hatched pattern. */ hatchEmpty?: boolean; /** * Hide the legend of the map. */ hideLegend?: boolean; /** * Change the scale function used to get calculate a feature color. */ featureColorScale?: ((v: any) => string) | null; /** * Change the color of the outline. */ outlineColor?: string; /** * Change the color of the graticule. */ graticuleColor?: string; /** * Maximum value to use in the color scale. */ max?: number | null; /** * Minimum value to use in the color scale. */ min?: number | null; /** * If true the map should be clickable (and zoom on a given feature). */ clickable?: boolean; /** * Field in the topojson containing all the feature objects. */ topojsonObjects?: string; /** * Field in the topojson objects containing the id of a feature. This field supports dot notation for nested values. */ topojsonObjectsPath?: string | string[]; /** * URL of the topojson. */ topojsonUrl?: string; /** * Duration of the transitions. */ transitionDuration?: number; /** * If true the user will be able to navigate in the map with drag and mouse wheel. */ zoomable?: boolean; /** * Set to true if your projection is spherical. */ spherical?: boolean; /** * Minimum zoom value. */ zoomMin?: number; /** * Maximum zoom value. */ zoomMax?: number; /** * Initial zoom value. */ zoom?: number | null; /** * Initial center of the map. */ center?: number[] | null; /** * Projection object from d3 to draw the features. * @see https://d3js.org/d3-geo/projection */ projection?: () => GeoProjection; /** * If true the map will display a sphere outline around the world. */ outline?: boolean; /** * If true the map will display a graticule grid (representing parallels and meridians). */ graticule?: boolean; /** * Maximum height used by the map. */ height?: string; /** * Neutral color of the map's features. */ color?: string; /** * Neutral color of the map s features in social mode. */ socialColor?: string; data?: string | Record | null; dataUrlType?: 'json' | 'csv' | 'tsv'; chartHeightRatio?: number; socialMode?: boolean; socialModeRatio?: number; } declare function setMapNodeSize({ width, height }: { width: number; height: number; }): void; declare function draw(): void; declare function updateFeatureCursor(id: any | null): void; declare function loadTopojson(): Promise>>; declare var __VLS_1: {}, __VLS_10: { value: number | null; identifier: string | null; }; type __VLS_Slots = {} & { default?: (props: typeof __VLS_1) => any; } & { 'legend-cursor'?: (props: typeof __VLS_10) => any; }; declare const __VLS_base: import('../../../node_modules/vue').DefineComponent; loadTopojson: typeof loadTopojson; updateFeatureCursor: typeof updateFeatureCursor; setMapNodeSize: typeof setMapNodeSize; draw: typeof draw; resizable: import('../../../node_modules/vue').Ref | null, ComponentPublicInstance | null>; }, {}, {}, {}, import('../../../node_modules/vue').ComponentOptionsMixin, import('../../../node_modules/vue').ComponentOptionsMixin, { click: (d: any) => any; reset: () => any; loaded: (data: Record | null) => any; resized: () => any; zoomed: (d: any) => any; }, string, import('../../../node_modules/vue').PublicProps, Readonly & Readonly<{ onClick?: ((d: any) => any) | undefined; onReset?: (() => any) | undefined; onLoaded?: ((data: Record | null) => any) | undefined; onResized?: (() => any) | undefined; onZoomed?: ((d: any) => any) | undefined; }>, { center: number[] | null; color: string; height: string; outlineColor: string; transitionDuration: number; zoom: number | null; outline: boolean; data: string | Record | null; max: number | null; min: number | null; chartHeightRatio: number; socialMode: boolean; socialModeRatio: number; dataUrlType: "json" | "csv" | "tsv"; hideLegend: boolean; topojsonObjectsPath: string | string[]; featureColorScale: ((v: any) => string) | null; projection: () => GeoProjection; spherical: boolean; hatchEmpty: boolean; graticuleColor: string; clickable: boolean; topojsonObjects: string; topojsonUrl: string; zoomable: boolean; zoomMin: number; zoomMax: number; graticule: boolean; socialColor: string; }, {}, {}, {}, string, import('../../../node_modules/vue').ComponentProvideOptions, false, {}, any>; declare const __VLS_export: __VLS_WithSlots; declare const _default: typeof __VLS_export; export default _default; type __VLS_WithSlots = T & { new (): { $slots: S; }; };