@unovis/ts 1.1.1-beta.5 → 1.1.1-beta.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/declaration.d.ts +1 -0
- package/index.ts +1 -0
- package/licences.txt +43 -0
- package/maps.ts +1 -0
- package/package.json +1 -1
- package/rollup.config.js +71 -0
- package/rules/ts-getter-setter.js +35 -0
- package/src/components/area/config.ts +29 -0
- package/src/components/area/index.ts +133 -0
- package/{components/area/style.js → src/components/area/style.ts} +9 -10
- package/src/components/area/types.ts +2 -0
- package/src/components/axis/config.ts +76 -0
- package/src/components/axis/index.ts +363 -0
- package/{components/axis/style.js → src/components/axis/style.ts} +27 -22
- package/src/components/axis/types.ts +4 -0
- package/src/components/brush/config.ts +51 -0
- package/src/components/brush/index.ts +233 -0
- package/{components/brush/style.js → src/components/brush/style.ts} +15 -14
- package/src/components/brush/types.ts +8 -0
- package/src/components/bullet-legend/config.ts +38 -0
- package/src/components/bullet-legend/index.ts +104 -0
- package/{components/bullet-legend/style.js → src/components/bullet-legend/style.ts} +18 -16
- package/src/components/bullet-legend/types.ts +7 -0
- package/src/components/chord-diagram/config.ts +53 -0
- package/src/components/chord-diagram/index.ts +401 -0
- package/src/components/chord-diagram/modules/label.ts +155 -0
- package/src/components/chord-diagram/modules/link.ts +91 -0
- package/src/components/chord-diagram/modules/node.ts +80 -0
- package/{components/chord-diagram/style.js → src/components/chord-diagram/style.ts} +39 -30
- package/src/components/chord-diagram/types.ts +68 -0
- package/src/components/crosshair/config.ts +48 -0
- package/src/components/crosshair/index.ts +220 -0
- package/{components/crosshair/style.js → src/components/crosshair/style.ts} +12 -12
- package/src/components/crosshair/types.ts +15 -0
- package/src/components/donut/config.ts +65 -0
- package/src/components/donut/index.ts +148 -0
- package/src/components/donut/modules/arc.ts +86 -0
- package/{components/donut/style.js → src/components/donut/style.ts} +20 -18
- package/src/components/donut/types.ts +17 -0
- package/src/components/flow-legend/config.ts +31 -0
- package/src/components/flow-legend/index.ts +103 -0
- package/{components/flow-legend/style.js → src/components/flow-legend/style.ts} +25 -21
- package/src/components/flow-legend/types.ts +10 -0
- package/src/components/free-brush/config.ts +54 -0
- package/src/components/free-brush/index.ts +207 -0
- package/{components/free-brush/style.js → src/components/free-brush/style.ts} +12 -12
- package/src/components/free-brush/types.ts +8 -0
- package/src/components/graph/config.ts +280 -0
- package/src/components/graph/index.ts +809 -0
- package/src/components/graph/modules/layout-helpers.ts +96 -0
- package/src/components/graph/modules/layout.ts +502 -0
- package/src/components/graph/modules/link/helper.ts +105 -0
- package/src/components/graph/modules/link/index.ts +302 -0
- package/{components/graph/modules/link/style.js → src/components/graph/modules/link/style.ts} +45 -34
- package/src/components/graph/modules/node/helper.ts +162 -0
- package/src/components/graph/modules/node/index.ts +343 -0
- package/{components/graph/modules/node/style.js → src/components/graph/modules/node/style.ts} +72 -52
- package/src/components/graph/modules/panel/helper.ts +160 -0
- package/src/components/graph/modules/panel/index.ts +137 -0
- package/{components/graph/modules/panel/style.js → src/components/graph/modules/panel/style.ts} +42 -32
- package/src/components/graph/modules/shape.ts +108 -0
- package/src/components/graph/modules/zoom-levels.ts +6 -0
- package/src/components/graph/style.ts +72 -0
- package/src/components/graph/types.ts +152 -0
- package/src/components/grouped-bar/config.ts +40 -0
- package/src/components/grouped-bar/index.ts +325 -0
- package/{components/grouped-bar/style.js → src/components/grouped-bar/style.ts} +15 -14
- package/src/components/leaflet-flow-map/config.ts +60 -0
- package/src/components/leaflet-flow-map/index.ts +279 -0
- package/src/components/leaflet-flow-map/renderer-utils.ts +14 -0
- package/src/components/leaflet-flow-map/renderer.ts +146 -0
- package/{components/leaflet-flow-map/shaders.js → src/components/leaflet-flow-map/shaders.ts} +4 -7
- package/src/components/leaflet-flow-map/types.ts +18 -0
- package/src/components/leaflet-map/config.ts +234 -0
- package/src/components/leaflet-map/index.ts +808 -0
- package/src/components/leaflet-map/leaflet.css +625 -0
- package/src/components/leaflet-map/modules/clusterBackground.ts +34 -0
- package/src/components/leaflet-map/modules/donut.ts +37 -0
- package/src/components/leaflet-map/modules/map.ts +178 -0
- package/src/components/leaflet-map/modules/node.ts +208 -0
- package/src/components/leaflet-map/modules/selectionRing.ts +63 -0
- package/src/components/leaflet-map/modules/utils.ts +290 -0
- package/{components → src/components}/leaflet-map/renderer/leaflet-maplibre-gl.js +76 -78
- package/src/components/leaflet-map/renderer/map-style.ts +24 -0
- package/src/components/leaflet-map/renderer/mapboxgl/mapboxgl-dark-theme.json +35 -0
- package/src/components/leaflet-map/renderer/mapboxgl/mapboxgl-light-theme.json +35 -0
- package/src/components/leaflet-map/renderer/mapboxgl/mapboxgl-settings.json +2185 -0
- package/src/components/leaflet-map/renderer/mapboxgl-layer.ts +43 -0
- package/src/components/leaflet-map/renderer/mapboxgl-utils.ts +40 -0
- package/{components → src/components}/leaflet-map/renderer/maplibre-gl.css.js +2 -4
- package/src/components/leaflet-map/style.ts +217 -0
- package/src/components/leaflet-map/types.ts +75 -0
- package/src/components/line/config.ts +34 -0
- package/src/components/line/index.ts +188 -0
- package/{components/line/style.js → src/components/line/style.ts} +18 -16
- package/src/components/line/types.ts +3 -0
- package/src/components/nested-donut/config.ts +75 -0
- package/src/components/nested-donut/index.ts +176 -0
- package/src/components/nested-donut/modules/arc.ts +78 -0
- package/src/components/nested-donut/modules/label.ts +63 -0
- package/src/components/nested-donut/style.ts +82 -0
- package/src/components/nested-donut/types.ts +29 -0
- package/src/components/sankey/config.ts +195 -0
- package/src/components/sankey/index.ts +387 -0
- package/src/components/sankey/modules/label.ts +228 -0
- package/src/components/sankey/modules/link.ts +141 -0
- package/src/components/sankey/modules/node.ts +221 -0
- package/{components/sankey/style.js → src/components/sankey/style.ts} +60 -44
- package/src/components/sankey/types.ts +95 -0
- package/src/components/scatter/config.ts +49 -0
- package/src/components/scatter/index.ts +220 -0
- package/src/components/scatter/modules/point.ts +123 -0
- package/src/components/scatter/modules/utils.ts +150 -0
- package/{components/scatter/style.js → src/components/scatter/style.ts} +15 -14
- package/src/components/scatter/types.ts +21 -0
- package/src/components/stacked-bar/config.ts +42 -0
- package/src/components/stacked-bar/index.ts +267 -0
- package/{components/stacked-bar/style.js → src/components/stacked-bar/style.ts} +15 -14
- package/src/components/stacked-bar/types.ts +5 -0
- package/src/components/timeline/config.ts +49 -0
- package/src/components/timeline/index.ts +302 -0
- package/{components/timeline/style.js → src/components/timeline/style.ts} +39 -30
- package/src/components/tooltip/config.ts +69 -0
- package/src/components/tooltip/index.ts +220 -0
- package/{components → src/components}/tooltip/style.js +11 -14
- package/src/components/topojson-map/config.ts +124 -0
- package/src/components/topojson-map/index.ts +436 -0
- package/{components/topojson-map/style.js → src/components/topojson-map/style.ts} +33 -26
- package/src/components/topojson-map/types.ts +123 -0
- package/src/components/topojson-map/utils.ts +29 -0
- package/src/components/vis-controls/config.ts +16 -0
- package/src/components/vis-controls/index.ts +68 -0
- package/{components/vis-controls/style.js → src/components/vis-controls/style.ts} +34 -27
- package/src/components/vis-controls/types.ts +14 -0
- package/src/components/xy-labels/config.ts +56 -0
- package/src/components/xy-labels/index.ts +109 -0
- package/src/components/xy-labels/modules/label.ts +140 -0
- package/{components/xy-labels/style.js → src/components/xy-labels/style.ts} +15 -14
- package/src/components/xy-labels/types.ts +26 -0
- package/src/components.ts +56 -0
- package/src/containers/single-container/config.ts +15 -0
- package/src/containers/single-container/index.ts +150 -0
- package/src/containers/xy-container/config.ts +112 -0
- package/src/containers/xy-container/index.ts +407 -0
- package/src/containers.ts +6 -0
- package/src/core/component/config.ts +61 -0
- package/src/core/component/index.ts +154 -0
- package/src/core/component/types.ts +9 -0
- package/src/core/config/index.ts +12 -0
- package/src/core/container/config.ts +56 -0
- package/src/core/container/index.ts +136 -0
- package/src/core/xy-component/config.ts +46 -0
- package/src/core/xy-component/index.ts +90 -0
- package/src/data-models/core.ts +15 -0
- package/src/data-models/graph.ts +138 -0
- package/src/data-models/map-graph.ts +72 -0
- package/src/data-models/map.ts +18 -0
- package/src/data-models/series.ts +16 -0
- package/src/index.ts +7 -0
- package/src/maps/china-provinces.json +1 -0
- package/src/maps/fr-regions.json +1 -0
- package/src/maps/germany-regions.json +1 -0
- package/src/maps/ind-regions.json +1 -0
- package/src/maps/uk-regions.json +1 -0
- package/src/maps/us-counties.json +1 -0
- package/src/maps/us-states.json +1 -0
- package/src/maps/world-110m-alpha.json +1 -0
- package/src/maps/world-simple.json +1 -0
- package/src/maps/world-simplest.json +1 -0
- package/src/maps.ts +34 -0
- package/src/styles/colors.ts +28 -0
- package/src/styles/index.ts +38 -0
- package/{styles/sizes.js → src/styles/sizes.ts} +6 -8
- package/src/types/accessor.ts +5 -0
- package/src/types/component.ts +15 -0
- package/src/types/curve.ts +62 -0
- package/src/types/data.ts +5 -0
- package/src/types/direction.ts +6 -0
- package/src/types/graph.ts +40 -0
- package/src/types/map.ts +5 -0
- package/src/types/misc.ts +10 -0
- package/src/types/position.ts +23 -0
- package/src/types/scale.ts +47 -0
- package/src/types/shape.ts +7 -0
- package/src/types/spacing.ts +6 -0
- package/src/types/svg.ts +32 -0
- package/src/types/symbol.ts +21 -0
- package/src/types/text.ts +71 -0
- package/src/types.ts +31 -0
- package/src/utils/color.ts +41 -0
- package/src/utils/d3.ts +15 -0
- package/src/utils/data.ts +328 -0
- package/src/utils/html.ts +13 -0
- package/src/utils/map.ts +29 -0
- package/src/utils/misc.ts +54 -0
- package/src/utils/path.ts +196 -0
- package/src/utils/scale.ts +1 -0
- package/src/utils/style.ts +37 -0
- package/src/utils/svg.ts +49 -0
- package/src/utils/text.ts +529 -0
- package/src/utils/type.ts +9 -0
- package/tsconfig.json +29 -0
- package/components/area/config.d.ts +0 -25
- package/components/area/config.js +0 -16
- package/components/area/config.js.map +0 -1
- package/components/area/index.d.ts +0 -19
- package/components/area/index.js +0 -102
- package/components/area/index.js.map +0 -1
- package/components/area/style.d.ts +0 -3
- package/components/area/style.js.map +0 -1
- package/components/area/types.d.ts +0 -6
- package/components/axis/config.d.ts +0 -71
- package/components/axis/config.js +0 -32
- package/components/axis/config.js.map +0 -1
- package/components/axis/index.d.ts +0 -44
- package/components/axis/index.js +0 -305
- package/components/axis/index.js.map +0 -1
- package/components/axis/style.d.ts +0 -9
- package/components/axis/style.js.map +0 -1
- package/components/axis/types.d.ts +0 -4
- package/components/axis/types.js +0 -8
- package/components/axis/types.js.map +0 -1
- package/components/brush/config.d.ts +0 -42
- package/components/brush/config.js +0 -24
- package/components/brush/config.js.map +0 -1
- package/components/brush/index.d.ts +0 -28
- package/components/brush/index.js +0 -199
- package/components/brush/index.js.map +0 -1
- package/components/brush/style.d.ts +0 -5
- package/components/brush/style.js.map +0 -1
- package/components/brush/types.d.ts +0 -7
- package/components/brush/types.js +0 -8
- package/components/brush/types.js.map +0 -1
- package/components/bullet-legend/config.d.ts +0 -34
- package/components/bullet-legend/config.js +0 -16
- package/components/bullet-legend/config.js.map +0 -1
- package/components/bullet-legend/index.d.ts +0 -19
- package/components/bullet-legend/index.js +0 -79
- package/components/bullet-legend/index.js.map +0 -1
- package/components/bullet-legend/style.d.ts +0 -6
- package/components/bullet-legend/style.js.map +0 -1
- package/components/bullet-legend/types.d.ts +0 -7
- package/components/bullet-legend/types.js +0 -2
- package/components/bullet-legend/types.js.map +0 -1
- package/components/chord-diagram/config.d.ts +0 -44
- package/components/chord-diagram/config.js +0 -25
- package/components/chord-diagram/config.js.map +0 -1
- package/components/chord-diagram/index.d.ts +0 -42
- package/components/chord-diagram/index.js +0 -305
- package/components/chord-diagram/index.js.map +0 -1
- package/components/chord-diagram/modules/label.d.ts +0 -8
- package/components/chord-diagram/modules/label.js +0 -115
- package/components/chord-diagram/modules/label.js.map +0 -1
- package/components/chord-diagram/modules/link.d.ts +0 -21
- package/components/chord-diagram/modules/link.js +0 -63
- package/components/chord-diagram/modules/link.js.map +0 -1
- package/components/chord-diagram/modules/node.d.ts +0 -17
- package/components/chord-diagram/modules/node.js +0 -52
- package/components/chord-diagram/modules/node.js.map +0 -1
- package/components/chord-diagram/style.d.ts +0 -13
- package/components/chord-diagram/style.js.map +0 -1
- package/components/chord-diagram/types.d.ts +0 -58
- package/components/chord-diagram/types.js +0 -8
- package/components/chord-diagram/types.js.map +0 -1
- package/components/crosshair/config.d.ts +0 -43
- package/components/crosshair/config.js +0 -19
- package/components/crosshair/config.js.map +0 -1
- package/components/crosshair/index.d.ts +0 -35
- package/components/crosshair/index.js +0 -183
- package/components/crosshair/index.js.map +0 -1
- package/components/crosshair/style.d.ts +0 -4
- package/components/crosshair/style.js.map +0 -1
- package/components/crosshair/types.d.ts +0 -13
- package/components/crosshair/types.js +0 -2
- package/components/crosshair/types.js.map +0 -1
- package/components/donut/config.d.ts +0 -59
- package/components/donut/config.js +0 -28
- package/components/donut/config.js.map +0 -1
- package/components/donut/index.d.ts +0 -21
- package/components/donut/index.js +0 -107
- package/components/donut/index.js.map +0 -1
- package/components/donut/modules/arc.d.ts +0 -10
- package/components/donut/modules/arc.js +0 -59
- package/components/donut/modules/arc.js.map +0 -1
- package/components/donut/style.d.ts +0 -7
- package/components/donut/style.js.map +0 -1
- package/components/donut/types.d.ts +0 -20
- package/components/flow-legend/config.d.ts +0 -29
- package/components/flow-legend/config.js +0 -18
- package/components/flow-legend/config.js.map +0 -1
- package/components/flow-legend/index.d.ts +0 -16
- package/components/flow-legend/index.js +0 -75
- package/components/flow-legend/index.js.map +0 -1
- package/components/flow-legend/style.d.ts +0 -8
- package/components/flow-legend/style.js.map +0 -1
- package/components/flow-legend/types.d.ts +0 -9
- package/components/flow-legend/types.js +0 -8
- package/components/flow-legend/types.js.map +0 -1
- package/components/free-brush/config.d.ts +0 -45
- package/components/free-brush/config.js +0 -24
- package/components/free-brush/config.js.map +0 -1
- package/components/free-brush/index.d.ts +0 -20
- package/components/free-brush/index.js +0 -192
- package/components/free-brush/index.js.map +0 -1
- package/components/free-brush/style.d.ts +0 -4
- package/components/free-brush/style.js.map +0 -1
- package/components/free-brush/types.d.ts +0 -7
- package/components/free-brush/types.js +0 -9
- package/components/free-brush/types.js.map +0 -1
- package/components/graph/config.d.ts +0 -238
- package/components/graph/config.js +0 -84
- package/components/graph/config.js.map +0 -1
- package/components/graph/index.d.ts +0 -126
- package/components/graph/index.js +0 -656
- package/components/graph/index.js.map +0 -1
- package/components/graph/modules/layout-helpers.d.ts +0 -21
- package/components/graph/modules/layout-helpers.js +0 -69
- package/components/graph/modules/layout-helpers.js.map +0 -1
- package/components/graph/modules/layout.d.ts +0 -10
- package/components/graph/modules/layout.js +0 -399
- package/components/graph/modules/layout.js.map +0 -1
- package/components/graph/modules/link/helper.d.ts +0 -25
- package/components/graph/modules/link/helper.js +0 -74
- package/components/graph/modules/link/helper.js.map +0 -1
- package/components/graph/modules/link/index.d.ts +0 -11
- package/components/graph/modules/link/index.js +0 -212
- package/components/graph/modules/link/index.js.map +0 -1
- package/components/graph/modules/link/style.d.ts +0 -15
- package/components/graph/modules/link/style.js.map +0 -1
- package/components/graph/modules/node/helper.d.ts +0 -21
- package/components/graph/modules/node/helper.js +0 -126
- package/components/graph/modules/node/helper.js.map +0 -1
- package/components/graph/modules/node/index.d.ts +0 -11
- package/components/graph/modules/node/index.js +0 -252
- package/components/graph/modules/node/index.js.map +0 -1
- package/components/graph/modules/node/style.d.ts +0 -24
- package/components/graph/modules/node/style.js.map +0 -1
- package/components/graph/modules/panel/helper.d.ts +0 -18
- package/components/graph/modules/panel/helper.js +0 -111
- package/components/graph/modules/panel/helper.js.map +0 -1
- package/components/graph/modules/panel/index.d.ts +0 -7
- package/components/graph/modules/panel/index.js +0 -98
- package/components/graph/modules/panel/index.js.map +0 -1
- package/components/graph/modules/panel/style.d.ts +0 -14
- package/components/graph/modules/panel/style.js.map +0 -1
- package/components/graph/modules/shape.d.ts +0 -6
- package/components/graph/modules/shape.js +0 -80
- package/components/graph/modules/shape.js.map +0 -1
- package/components/graph/modules/zoom-levels.d.ts +0 -6
- package/components/graph/modules/zoom-levels.js +0 -10
- package/components/graph/modules/zoom-levels.js.map +0 -1
- package/components/graph/style.d.ts +0 -6
- package/components/graph/style.js +0 -66
- package/components/graph/style.js.map +0 -1
- package/components/graph/types.d.ts +0 -125
- package/components/graph/types.js +0 -30
- package/components/graph/types.js.map +0 -1
- package/components/grouped-bar/config.d.ts +0 -36
- package/components/grouped-bar/config.js +0 -20
- package/components/grouped-bar/config.js.map +0 -1
- package/components/grouped-bar/index.d.ts +0 -32
- package/components/grouped-bar/index.js +0 -249
- package/components/grouped-bar/index.js.map +0 -1
- package/components/grouped-bar/style.d.ts +0 -5
- package/components/grouped-bar/style.js.map +0 -1
- package/components/leaflet-flow-map/config.d.ts +0 -46
- package/components/leaflet-flow-map/config.js +0 -25
- package/components/leaflet-flow-map/config.js.map +0 -1
- package/components/leaflet-flow-map/index.d.ts +0 -52
- package/components/leaflet-flow-map/index.js +0 -220
- package/components/leaflet-flow-map/index.js.map +0 -1
- package/components/leaflet-flow-map/renderer-utils.d.ts +0 -5
- package/components/leaflet-flow-map/renderer-utils.js +0 -15
- package/components/leaflet-flow-map/renderer-utils.js.map +0 -1
- package/components/leaflet-flow-map/renderer.d.ts +0 -26
- package/components/leaflet-flow-map/renderer.js +0 -117
- package/components/leaflet-flow-map/renderer.js.map +0 -1
- package/components/leaflet-flow-map/shaders.d.ts +0 -2
- package/components/leaflet-flow-map/shaders.js.map +0 -1
- package/components/leaflet-flow-map/types.d.ts +0 -23
- package/components/leaflet-map/config.d.ts +0 -193
- package/components/leaflet-map/config.js +0 -71
- package/components/leaflet-map/config.js.map +0 -1
- package/components/leaflet-map/index.d.ts +0 -130
- package/components/leaflet-map/index.js +0 -690
- package/components/leaflet-map/index.js.map +0 -1
- package/components/leaflet-map/leaflet.css.js +0 -5
- package/components/leaflet-map/leaflet.css.js.map +0 -1
- package/components/leaflet-map/modules/clusterBackground.d.ts +0 -5
- package/components/leaflet-map/modules/clusterBackground.js +0 -27
- package/components/leaflet-map/modules/clusterBackground.js.map +0 -1
- package/components/leaflet-map/modules/donut.d.ts +0 -3
- package/components/leaflet-map/modules/donut.js +0 -25
- package/components/leaflet-map/modules/donut.js.map +0 -1
- package/components/leaflet-map/modules/map.d.ts +0 -14
- package/components/leaflet-map/modules/map.js +0 -154
- package/components/leaflet-map/modules/map.js.map +0 -1
- package/components/leaflet-map/modules/node.d.ts +0 -9
- package/components/leaflet-map/modules/node.js +0 -162
- package/components/leaflet-map/modules/node.js.map +0 -1
- package/components/leaflet-map/modules/selectionRing.d.ts +0 -7
- package/components/leaflet-map/modules/selectionRing.js +0 -41
- package/components/leaflet-map/modules/selectionRing.js.map +0 -1
- package/components/leaflet-map/modules/utils.d.ts +0 -50
- package/components/leaflet-map/modules/utils.js +0 -210
- package/components/leaflet-map/modules/utils.js.map +0 -1
- package/components/leaflet-map/renderer/leaflet-maplibre-gl.js.map +0 -1
- package/components/leaflet-map/renderer/map-style.d.ts +0 -4
- package/components/leaflet-map/renderer/map-style.js +0 -15
- package/components/leaflet-map/renderer/map-style.js.map +0 -1
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-dark-theme.json.js +0 -40
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-dark-theme.json.js.map +0 -1
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-light-theme.json.js +0 -40
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-light-theme.json.js.map +0 -1
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-settings.json.js +0 -4981
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-settings.json.js.map +0 -1
- package/components/leaflet-map/renderer/mapboxgl-layer.d.ts +0 -8
- package/components/leaflet-map/renderer/mapboxgl-layer.js +0 -27
- package/components/leaflet-map/renderer/mapboxgl-layer.js.map +0 -1
- package/components/leaflet-map/renderer/mapboxgl-utils.d.ts +0 -4
- package/components/leaflet-map/renderer/mapboxgl-utils.js +0 -39
- package/components/leaflet-map/renderer/mapboxgl-utils.js.map +0 -1
- package/components/leaflet-map/renderer/maplibre-gl.css.js.map +0 -1
- package/components/leaflet-map/style.d.ts +0 -52
- package/components/leaflet-map/style.js +0 -183
- package/components/leaflet-map/style.js.map +0 -1
- package/components/leaflet-map/types.d.ts +0 -75
- package/components/leaflet-map/types.js +0 -15
- package/components/leaflet-map/types.js.map +0 -1
- package/components/line/config.d.ts +0 -30
- package/components/line/config.js +0 -17
- package/components/line/config.js.map +0 -1
- package/components/line/index.d.ts +0 -27
- package/components/line/index.js +0 -152
- package/components/line/index.js.map +0 -1
- package/components/line/style.d.ts +0 -6
- package/components/line/style.js.map +0 -1
- package/components/line/types.d.ts +0 -12
- package/components/nested-donut/config.d.ts +0 -59
- package/components/nested-donut/config.js +0 -19
- package/components/nested-donut/config.js.map +0 -1
- package/components/nested-donut/index.d.ts +0 -38
- package/components/nested-donut/index.js +0 -133
- package/components/nested-donut/index.js.map +0 -1
- package/components/nested-donut/modules/arc.d.ts +0 -17
- package/components/nested-donut/modules/arc.js +0 -50
- package/components/nested-donut/modules/arc.js.map +0 -1
- package/components/nested-donut/modules/label.d.ts +0 -7
- package/components/nested-donut/modules/label.js +0 -34
- package/components/nested-donut/modules/label.js.map +0 -1
- package/components/nested-donut/style.d.ts +0 -26
- package/components/nested-donut/style.js +0 -70
- package/components/nested-donut/style.js.map +0 -1
- package/components/nested-donut/types.d.ts +0 -24
- package/components/nested-donut/types.js +0 -11
- package/components/nested-donut/types.js.map +0 -1
- package/components/sankey/config.d.ts +0 -162
- package/components/sankey/config.js +0 -65
- package/components/sankey/config.js.map +0 -1
- package/components/sankey/index.d.ts +0 -59
- package/components/sankey/index.js +0 -306
- package/components/sankey/index.js.map +0 -1
- package/components/sankey/modules/label.d.ts +0 -23
- package/components/sankey/modules/label.js +0 -168
- package/components/sankey/modules/label.js.map +0 -1
- package/components/sankey/modules/link.d.ts +0 -14
- package/components/sankey/modules/link.js +0 -108
- package/components/sankey/modules/link.js.map +0 -1
- package/components/sankey/modules/node.d.ts +0 -10
- package/components/sankey/modules/node.js +0 -156
- package/components/sankey/modules/node.js.map +0 -1
- package/components/sankey/style.d.ts +0 -20
- package/components/sankey/style.js.map +0 -1
- package/components/sankey/types.d.ts +0 -84
- package/components/sankey/types.js +0 -34
- package/components/sankey/types.js.map +0 -1
- package/components/scatter/config.d.ts +0 -44
- package/components/scatter/config.js +0 -23
- package/components/scatter/config.js.map +0 -1
- package/components/scatter/index.d.ts +0 -28
- package/components/scatter/index.js +0 -167
- package/components/scatter/index.js.map +0 -1
- package/components/scatter/modules/point.d.ts +0 -7
- package/components/scatter/modules/point.js +0 -86
- package/components/scatter/modules/point.js.map +0 -1
- package/components/scatter/modules/utils.d.ts +0 -11
- package/components/scatter/modules/utils.js +0 -112
- package/components/scatter/modules/utils.js.map +0 -1
- package/components/scatter/style.d.ts +0 -5
- package/components/scatter/style.js.map +0 -1
- package/components/scatter/types.d.ts +0 -19
- package/components/stacked-bar/config.d.ts +0 -38
- package/components/stacked-bar/config.js +0 -20
- package/components/stacked-bar/config.js.map +0 -1
- package/components/stacked-bar/index.d.ts +0 -28
- package/components/stacked-bar/index.js +0 -208
- package/components/stacked-bar/index.js.map +0 -1
- package/components/stacked-bar/style.d.ts +0 -5
- package/components/stacked-bar/style.js.map +0 -1
- package/components/stacked-bar/types.d.ts +0 -5
- package/components/timeline/config.d.ts +0 -43
- package/components/timeline/config.js +0 -24
- package/components/timeline/config.js.map +0 -1
- package/components/timeline/index.d.ts +0 -41
- package/components/timeline/index.js +0 -244
- package/components/timeline/index.js.map +0 -1
- package/components/timeline/style.d.ts +0 -13
- package/components/timeline/style.js.map +0 -1
- package/components/tooltip/config.d.ts +0 -68
- package/components/tooltip/config.js +0 -20
- package/components/tooltip/config.js.map +0 -1
- package/components/tooltip/index.d.ts +0 -36
- package/components/tooltip/index.js +0 -184
- package/components/tooltip/index.js.map +0 -1
- package/components/tooltip/style.js.map +0 -1
- package/components/topojson-map/config.d.ts +0 -99
- package/components/topojson-map/config.js +0 -42
- package/components/topojson-map/config.js.map +0 -1
- package/components/topojson-map/index.d.ts +0 -52
- package/components/topojson-map/index.js +0 -355
- package/components/topojson-map/index.js.map +0 -1
- package/components/topojson-map/style.d.ts +0 -11
- package/components/topojson-map/style.js.map +0 -1
- package/components/topojson-map/types.d.ts +0 -78
- package/components/topojson-map/types.js +0 -80
- package/components/topojson-map/types.js.map +0 -1
- package/components/topojson-map/utils.d.ts +0 -3
- package/components/topojson-map/utils.js +0 -30
- package/components/topojson-map/utils.js.map +0 -1
- package/components/vis-controls/config.d.ts +0 -12
- package/components/vis-controls/config.js +0 -13
- package/components/vis-controls/config.js.map +0 -1
- package/components/vis-controls/index.d.ts +0 -14
- package/components/vis-controls/index.js +0 -52
- package/components/vis-controls/index.js.map +0 -1
- package/components/vis-controls/style.d.ts +0 -11
- package/components/vis-controls/style.js.map +0 -1
- package/components/vis-controls/types.d.ts +0 -13
- package/components/vis-controls/types.js +0 -8
- package/components/vis-controls/types.js.map +0 -1
- package/components/xy-labels/config.d.ts +0 -48
- package/components/xy-labels/config.js +0 -25
- package/components/xy-labels/config.js.map +0 -1
- package/components/xy-labels/index.d.ts +0 -15
- package/components/xy-labels/index.js +0 -87
- package/components/xy-labels/index.js.map +0 -1
- package/components/xy-labels/modules/label.d.ts +0 -9
- package/components/xy-labels/modules/label.js +0 -107
- package/components/xy-labels/modules/label.js.map +0 -1
- package/components/xy-labels/style.d.ts +0 -5
- package/components/xy-labels/style.js.map +0 -1
- package/components/xy-labels/types.d.ts +0 -23
- package/components/xy-labels/types.js +0 -9
- package/components/xy-labels/types.js.map +0 -1
- package/components.d.ts +0 -51
- package/components.js +0 -29
- package/components.js.map +0 -1
- package/containers/single-container/config.d.ts +0 -12
- package/containers/single-container/config.js +0 -12
- package/containers/single-container/config.js.map +0 -1
- package/containers/single-container/index.d.ts +0 -19
- package/containers/single-container/index.js +0 -128
- package/containers/single-container/index.js.map +0 -1
- package/containers/xy-container/config.d.ts +0 -99
- package/containers/xy-container/config.js +0 -30
- package/containers/xy-container/config.js.map +0 -1
- package/containers/xy-container/index.d.ts +0 -34
- package/containers/xy-container/index.js +0 -330
- package/containers/xy-container/index.js.map +0 -1
- package/containers.d.ts +0 -6
- package/containers.js +0 -4
- package/containers.js.map +0 -1
- package/core/component/config.d.ts +0 -58
- package/core/component/config.js +0 -14
- package/core/component/config.js.map +0 -1
- package/core/component/index.d.ts +0 -43
- package/core/component/index.js +0 -118
- package/core/component/index.js.map +0 -1
- package/core/component/types.d.ts +0 -2
- package/core/component/types.js +0 -2
- package/core/component/types.js.map +0 -1
- package/core/config/index.d.ts +0 -3
- package/core/config/index.js +0 -16
- package/core/config/index.js.map +0 -1
- package/core/container/config.d.ts +0 -48
- package/core/container/config.js +0 -29
- package/core/container/config.js.map +0 -1
- package/core/container/index.d.ts +0 -26
- package/core/container/index.js +0 -105
- package/core/container/index.js.map +0 -1
- package/core/xy-component/config.d.ts +0 -38
- package/core/xy-component/config.js +0 -20
- package/core/xy-component/config.js.map +0 -1
- package/core/xy-component/index.d.ts +0 -27
- package/core/xy-component/index.js +0 -74
- package/core/xy-component/index.js.map +0 -1
- package/data-models/core.d.ts +0 -6
- package/data-models/core.js +0 -14
- package/data-models/core.js.map +0 -1
- package/data-models/graph.d.ts +0 -24
- package/data-models/graph.js +0 -107
- package/data-models/graph.js.map +0 -1
- package/data-models/map-graph.d.ts +0 -21
- package/data-models/map-graph.js +0 -62
- package/data-models/map-graph.js.map +0 -1
- package/data-models/map.d.ts +0 -5
- package/data-models/map.js +0 -12
- package/data-models/map.js.map +0 -1
- package/data-models/series.d.ts +0 -6
- package/data-models/series.js +0 -19
- package/data-models/series.js.map +0 -1
- package/index.d.ts +0 -7
- package/index.js +0 -55
- package/index.js.map +0 -1
- package/maps/china-provinces.json.js +0 -140373
- package/maps/fr-regions.json.js +0 -14162
- package/maps/germany-regions.json.js +0 -35760
- package/maps/ind-regions.json.js +0 -290584
- package/maps/uk-regions.json.js +0 -96233
- package/maps/us-counties.json.js +0 -206318
- package/maps/us-states.json.js +0 -16345
- package/maps/world-110m-alpha.json.js +0 -251366
- package/maps/world-simple.json.js +0 -89428
- package/maps/world-simplest.json.js +0 -28175
- package/maps.d.ts +0 -60
- package/maps.js +0 -23
- package/styles/colors.d.ts +0 -7
- package/styles/colors.js +0 -24
- package/styles/colors.js.map +0 -1
- package/styles/index.d.ts +0 -7
- package/styles/index.js +0 -38
- package/styles/index.js.map +0 -1
- package/styles/sizes.d.ts +0 -2
- package/styles/sizes.js.map +0 -1
- package/types/accessor.d.ts +0 -5
- package/types/accessor.js +0 -2
- package/types/accessor.js.map +0 -1
- package/types/component.d.ts +0 -13
- package/types/component.js +0 -14
- package/types/component.js.map +0 -1
- package/types/curve.d.ts +0 -40
- package/types/curve.js +0 -46
- package/types/curve.js.map +0 -1
- package/types/data.d.ts +0 -7
- package/types/data.js +0 -2
- package/types/data.js.map +0 -1
- package/types/direction.d.ts +0 -6
- package/types/direction.js +0 -10
- package/types/direction.js.map +0 -1
- package/types/graph.d.ts +0 -35
- package/types/graph.js +0 -2
- package/types/graph.js.map +0 -1
- package/types/map.d.ts +0 -4
- package/types/map.js +0 -2
- package/types/map.js.map +0 -1
- package/types/misc.d.ts +0 -8
- package/types/position.d.ts +0 -20
- package/types/position.js +0 -27
- package/types/position.js.map +0 -1
- package/types/scale.d.ts +0 -23
- package/types/scale.js +0 -27
- package/types/scale.js.map +0 -1
- package/types/shape.d.ts +0 -7
- package/types/shape.js +0 -11
- package/types/shape.js.map +0 -1
- package/types/spacing.d.ts +0 -6
- package/types/spacing.js +0 -2
- package/types/spacing.js.map +0 -1
- package/types/svg.d.ts +0 -18
- package/types/svg.js +0 -22
- package/types/svg.js.map +0 -1
- package/types/symbol.d.ts +0 -18
- package/types/symbol.js +0 -24
- package/types/symbol.js.map +0 -1
- package/types/text.d.ts +0 -46
- package/types/text.js +0 -26
- package/types/text.js.map +0 -1
- package/types.d.ts +0 -27
- package/types.js +0 -30
- package/types.js.map +0 -1
- package/utils/color.d.ts +0 -10
- package/utils/color.js +0 -32
- package/utils/color.js.map +0 -1
- package/utils/d3.d.ts +0 -3
- package/utils/d3.js +0 -16
- package/utils/d3.js.map +0 -1
- package/utils/data.d.ts +0 -45
- package/utils/data.js +0 -274
- package/utils/data.js.map +0 -1
- package/utils/html.d.ts +0 -1
- package/utils/html.js +0 -16
- package/utils/html.js.map +0 -1
- package/utils/map.d.ts +0 -2
- package/utils/map.js +0 -20
- package/utils/map.js.map +0 -1
- package/utils/misc.d.ts +0 -9
- package/utils/misc.js +0 -47
- package/utils/misc.js.map +0 -1
- package/utils/path.d.ts +0 -23
- package/utils/path.js +0 -144
- package/utils/path.js.map +0 -1
- package/utils/scale.d.ts +0 -1
- package/utils/style.d.ts +0 -6
- package/utils/style.js +0 -24
- package/utils/style.js.map +0 -1
- package/utils/svg.d.ts +0 -3
- package/utils/text.d.ts +0 -139
- package/utils/text.js +0 -417
- package/utils/text.js.map +0 -1
- package/utils/type.d.ts +0 -5
|
@@ -1,193 +0,0 @@
|
|
|
1
|
-
import { ComponentConfig, ComponentConfigInterface } from "../../core/component/config";
|
|
2
|
-
import { Tooltip } from "../tooltip";
|
|
3
|
-
import { ColorAccessor, GenericAccessor, NumericAccessor, StringAccessor } from "../../types/accessor";
|
|
4
|
-
import { GenericDataRecord } from "../../types/data";
|
|
5
|
-
import { Bounds, LeafletMapPointStyles, MapZoomState, LeafletMapPointDatum, LeafletMapPointShape, LeafletMapClusterDatum, LeafletMapRenderer } from './types';
|
|
6
|
-
import { MapLibreStyleSpecs } from './renderer/map-style';
|
|
7
|
-
export interface LeafletMapConfigInterface<Datum extends GenericDataRecord> extends ComponentConfigInterface {
|
|
8
|
-
/** Width in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */
|
|
9
|
-
width?: number | string;
|
|
10
|
-
/** Height in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */
|
|
11
|
-
height?: number | string;
|
|
12
|
-
/** Animation duration when the map is automatically panning or zooming to a point or area. Default: `1500` ms */
|
|
13
|
-
flyToDuration?: number;
|
|
14
|
-
/** Padding to be used when the `fitView` function has been called. The value is in pixels, [topLeft, bottomRight]. Default: `[150, 150]` */
|
|
15
|
-
fitViewPadding?: [number, number];
|
|
16
|
-
/** Animation duration for the `setZoom` function. Default: `800` ms */
|
|
17
|
-
zoomDuration?: number;
|
|
18
|
-
/** Default bounds that will be applied on the first map render if the bounds property is not set. Default: `undefined` */
|
|
19
|
-
initialBounds?: Bounds;
|
|
20
|
-
/** Force set map bounds on config and data updates. Default: `undefined` */
|
|
21
|
-
fitBoundsOnUpdate?: Bounds;
|
|
22
|
-
/** Fit the view to contain the data points on map initialization. Default: `true` */
|
|
23
|
-
fitViewOnInit?: boolean;
|
|
24
|
-
/** Fit the view to contain the data points on map config and data updates. Default: `false` */
|
|
25
|
-
fitViewOnUpdate?: boolean;
|
|
26
|
-
/** MapLibre `StyleSpecification` settings, or a URL to it. When renderer is set to`LeafletMapRenderer.Raster`, provide a template URL. Default: `undefined` */
|
|
27
|
-
style: MapLibreStyleSpecs | string | undefined;
|
|
28
|
-
/** MapLibre `StyleSpecification` settings or URL for dark theme. Default: `undefined` */
|
|
29
|
-
styleDarkTheme?: MapLibreStyleSpecs | string | undefined;
|
|
30
|
-
/** Tile server access token or API key. Default: `''` */
|
|
31
|
-
accessToken?: string;
|
|
32
|
-
/** Array of attribution labels. Default: `['<a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap contributors</a>']` */
|
|
33
|
-
attribution?: string[];
|
|
34
|
-
/** Rendering mode for map's tile layer. For raster files, use `LeafletMapRenderer.Raster`. Default: `LeafletMapRenderer.MapLibre` */
|
|
35
|
-
renderer?: LeafletMapRenderer | string;
|
|
36
|
-
/** Function to be called after the map's async initialization is done. Default: `undefined` */
|
|
37
|
-
onMapInitialized?: (() => void);
|
|
38
|
-
/** Map Move / Zoom unified callback function. Default: `undefined` */
|
|
39
|
-
onMapMoveZoom?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
|
|
40
|
-
/** Map Move Start callback function. Default: `undefined` */
|
|
41
|
-
onMapMoveStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
|
|
42
|
-
/** Map Move End callback function. Default: `undefined` */
|
|
43
|
-
onMapMoveEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
|
|
44
|
-
/** Map Zoom Start callback function. Default: `undefined` */
|
|
45
|
-
onMapZoomStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
|
|
46
|
-
/** Map Zoom End callback function. Default: `undefined` */
|
|
47
|
-
onMapZoomEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
|
|
48
|
-
/** Map Zoom Click callback function. Default: `undefined` */
|
|
49
|
-
onMapClick?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);
|
|
50
|
-
/** Point longitude accessor function. Default: `d => d.longitude` */
|
|
51
|
-
pointLongitude?: NumericAccessor<Datum>;
|
|
52
|
-
/** Point latitude accessor function. Default: `d => d.latitude` */
|
|
53
|
-
pointLatitude?: NumericAccessor<Datum>;
|
|
54
|
-
/** Point id accessor function or constant value. Default: `d => d.id` */
|
|
55
|
-
pointId?: StringAccessor<Datum>;
|
|
56
|
-
/** Point shape accessor function or constant value. Default: `d => d.shape` */
|
|
57
|
-
pointShape?: GenericAccessor<LeafletMapPointShape | string, Datum>;
|
|
58
|
-
/** Point color accessor function or constant value. Default: `d => d.color` */
|
|
59
|
-
pointColor?: ColorAccessor<Datum>;
|
|
60
|
-
/** Point radius accessor function or constant value. Default: `undefined` */
|
|
61
|
-
pointRadius?: NumericAccessor<LeafletMapPointDatum<Datum>>;
|
|
62
|
-
/** Point inner label accessor function. Default: `undefined` */
|
|
63
|
-
pointLabel?: StringAccessor<LeafletMapPointDatum<Datum>>;
|
|
64
|
-
/** Point inner label color accessor function or constant value.
|
|
65
|
-
* By default, the label color will be set, depending on the point brightness, either to
|
|
66
|
-
* `--vis-map-point-inner-label-text-color-light` or to `--vis-map-point-inner-label-text-color-dark` CSS variable.
|
|
67
|
-
* Default: `undefined`
|
|
68
|
-
*/
|
|
69
|
-
pointLabelColor?: StringAccessor<LeafletMapPointDatum<Datum>>;
|
|
70
|
-
/** Point bottom label accessor function. Default: `''` */
|
|
71
|
-
pointBottomLabel?: StringAccessor<LeafletMapPointDatum<Datum>>;
|
|
72
|
-
/** Point cursor value or accessor function. Default: `null` */
|
|
73
|
-
pointCursor?: StringAccessor<LeafletMapPointDatum<Datum>>;
|
|
74
|
-
/** The width of the ring when a point has a `LeafletMapPointShape.Ring` shape. Default: `1.25` */
|
|
75
|
-
pointRingWidth?: number;
|
|
76
|
-
/** Set selected point by its unique id. Default: `undefined` */
|
|
77
|
-
selectedPointId?: string;
|
|
78
|
-
/** Cluster color accessor function or constant value. Default: `undefined` */
|
|
79
|
-
clusterColor?: ColorAccessor<Datum>;
|
|
80
|
-
/** Cluster radius accessor function or constant value. Default: `undefined` */
|
|
81
|
-
clusterRadius?: NumericAccessor<LeafletMapClusterDatum<Datum>>;
|
|
82
|
-
/** Cluster inner label accessor function. Default: `d => d.point_count` */
|
|
83
|
-
clusterLabel?: StringAccessor<LeafletMapClusterDatum<Datum>>;
|
|
84
|
-
/** Cluster inner label color accessor function or constant value.
|
|
85
|
-
* By default, the label color will be set, depending on the point brightness, either to
|
|
86
|
-
* `--vis-map-cluster-inner-label-text-color-light` or to `--vis-map-cluster-inner-label-text-color-dark` CSS variable.
|
|
87
|
-
* Default: `undefined`
|
|
88
|
-
*/
|
|
89
|
-
clusterLabelColor?: StringAccessor<LeafletMapClusterDatum<Datum>>;
|
|
90
|
-
/** Cluster bottom label accessor function. Default: `''` */
|
|
91
|
-
clusterBottomLabel?: StringAccessor<LeafletMapClusterDatum<Datum>>;
|
|
92
|
-
/** The width of the cluster point ring. Default: `1.25` */
|
|
93
|
-
clusterRingWidth?: number;
|
|
94
|
-
/** When cluster is expanded, show a background circle to better separate points from the base map. Default: `true` */
|
|
95
|
-
clusterBackground?: boolean;
|
|
96
|
-
/** Defines whether the cluster should expand on click or not. Default: `true` */
|
|
97
|
-
clusterExpandOnClick?: boolean;
|
|
98
|
-
/** Clustering distance in pixels. This value will be passed to Supercluster as the `radius` property https://github.com/mapbox/supercluster. Default: `55` */
|
|
99
|
-
clusteringDistance?: number;
|
|
100
|
-
/** A single map point can have multiple properties displayed as a small pie chart (or a donut chart for a cluster of points).
|
|
101
|
-
* By setting the colorMap configuration you can specify data properties that should be mapped to various pie / donut segments.
|
|
102
|
-
*
|
|
103
|
-
* ```
|
|
104
|
-
* {
|
|
105
|
-
* [key in keyof Datum]?: { color: string, className?: string }
|
|
106
|
-
* }
|
|
107
|
-
* ```
|
|
108
|
-
* e.g.:
|
|
109
|
-
* ```
|
|
110
|
-
* {
|
|
111
|
-
* healthy: { color: 'green' },
|
|
112
|
-
* warning: { color: 'orange' },
|
|
113
|
-
* danger: { color: 'red' }
|
|
114
|
-
* }
|
|
115
|
-
* ```
|
|
116
|
-
* where every data point has the `healthy`, `warning` and `danger` numerical or boolean property.
|
|
117
|
-
*/
|
|
118
|
-
colorMap?: LeafletMapPointStyles<Datum>;
|
|
119
|
-
/** A TopoJSON Geometry layer to be displayed on top of the map. Supports fill and stroke */
|
|
120
|
-
topoJSONLayer?: {
|
|
121
|
-
/** The TopoJSON.Topology object. Default: `undefined` */
|
|
122
|
-
sources: any;
|
|
123
|
-
/** Name of the geometry feature to be displayed. Default: `undefined` */
|
|
124
|
-
featureName?: string;
|
|
125
|
-
/** Name of the property to be used for defining the fill color of the geometry. Default: `undefined` */
|
|
126
|
-
fillProperty?: string;
|
|
127
|
-
/** Name of the property to be used for defining the stroke color of the geometry. Default: `undefined` */
|
|
128
|
-
strokeProperty?: string;
|
|
129
|
-
/** Geometry fill opacity value. Default: `0.6` */
|
|
130
|
-
fillOpacity?: number;
|
|
131
|
-
/** Geometry stroke opacity value. Default: `0.8` */
|
|
132
|
-
strokeOpacity?: number;
|
|
133
|
-
/** Geometry stroke width. Default: `2` */
|
|
134
|
-
strokeWidth?: number;
|
|
135
|
-
};
|
|
136
|
-
/** Tooltip component. Default: `undefined` */
|
|
137
|
-
tooltip?: Tooltip;
|
|
138
|
-
}
|
|
139
|
-
export declare class LeafletMapConfig<Datum extends GenericDataRecord> extends ComponentConfig implements LeafletMapConfigInterface<Datum> {
|
|
140
|
-
width: any;
|
|
141
|
-
height: any;
|
|
142
|
-
flyToDuration: number;
|
|
143
|
-
fitViewPadding: [number, number];
|
|
144
|
-
zoomDuration: number;
|
|
145
|
-
initialBounds: any;
|
|
146
|
-
fitBoundsOnUpdate: any;
|
|
147
|
-
fitViewOnInit: boolean;
|
|
148
|
-
fitViewOnUpdate: boolean;
|
|
149
|
-
attribution: string[];
|
|
150
|
-
accessToken: string;
|
|
151
|
-
style: any;
|
|
152
|
-
styleDarkTheme: any;
|
|
153
|
-
renderer: LeafletMapRenderer;
|
|
154
|
-
onMapInitialized: any;
|
|
155
|
-
onMapMoveZoom: any;
|
|
156
|
-
onMapMoveStart: any;
|
|
157
|
-
onMapMoveEnd: any;
|
|
158
|
-
onMapZoomStart: any;
|
|
159
|
-
onMapZoomEnd: any;
|
|
160
|
-
onMapClick: any;
|
|
161
|
-
pointLongitude: (d: Datum) => number;
|
|
162
|
-
pointLatitude: (d: Datum) => number;
|
|
163
|
-
pointId: (d: Datum) => string;
|
|
164
|
-
pointShape: (d: Datum) => string;
|
|
165
|
-
pointColor: (d: Datum) => string;
|
|
166
|
-
pointRadius: any;
|
|
167
|
-
pointLabel: any;
|
|
168
|
-
pointLabelColor: any;
|
|
169
|
-
pointBottomLabel: string;
|
|
170
|
-
pointCursor: any;
|
|
171
|
-
pointRingWidth: number;
|
|
172
|
-
selectedPointId: any;
|
|
173
|
-
clusterColor: any;
|
|
174
|
-
clusterRadius: any;
|
|
175
|
-
clusterLabel: (d: LeafletMapClusterDatum<Datum>) => string;
|
|
176
|
-
clusterLabelColor: any;
|
|
177
|
-
clusterBottomLabel: string;
|
|
178
|
-
clusterRingWidth: number;
|
|
179
|
-
clusterBackground: boolean;
|
|
180
|
-
clusterExpandOnClick: boolean;
|
|
181
|
-
clusteringDistance: number;
|
|
182
|
-
colorMap: LeafletMapPointStyles<Datum>;
|
|
183
|
-
topoJSONLayer: {
|
|
184
|
-
sources: any;
|
|
185
|
-
fillOpacity: number;
|
|
186
|
-
strokeOpacity: number;
|
|
187
|
-
strokeWidth: number;
|
|
188
|
-
featureName: any;
|
|
189
|
-
fillProperty: any;
|
|
190
|
-
strokeProperty: any;
|
|
191
|
-
};
|
|
192
|
-
tooltip: any;
|
|
193
|
-
}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { ComponentConfig } from '../../core/component/config.js';
|
|
2
|
-
import { LeafletMapRenderer } from './types.js';
|
|
3
|
-
|
|
4
|
-
/* eslint-disable dot-notation, no-irregular-whitespace */
|
|
5
|
-
class LeafletMapConfig extends ComponentConfig {
|
|
6
|
-
constructor() {
|
|
7
|
-
super(...arguments);
|
|
8
|
-
// General
|
|
9
|
-
this.width = undefined;
|
|
10
|
-
this.height = undefined;
|
|
11
|
-
this.flyToDuration = 1500;
|
|
12
|
-
this.fitViewPadding = [150, 150];
|
|
13
|
-
this.zoomDuration = 800;
|
|
14
|
-
this.initialBounds = undefined;
|
|
15
|
-
this.fitBoundsOnUpdate = undefined;
|
|
16
|
-
this.fitViewOnInit = true;
|
|
17
|
-
this.fitViewOnUpdate = false;
|
|
18
|
-
this.attribution = ['<a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap contributors</a>'];
|
|
19
|
-
this.accessToken = '';
|
|
20
|
-
this.style = undefined;
|
|
21
|
-
this.styleDarkTheme = undefined;
|
|
22
|
-
this.renderer = LeafletMapRenderer.MapLibre;
|
|
23
|
-
// Map events
|
|
24
|
-
this.onMapInitialized = undefined;
|
|
25
|
-
this.onMapMoveZoom = undefined;
|
|
26
|
-
this.onMapMoveStart = undefined;
|
|
27
|
-
this.onMapMoveEnd = undefined;
|
|
28
|
-
this.onMapZoomStart = undefined;
|
|
29
|
-
this.onMapZoomEnd = undefined;
|
|
30
|
-
this.onMapClick = undefined;
|
|
31
|
-
// Point
|
|
32
|
-
this.pointLongitude = (d) => d['longitude'];
|
|
33
|
-
this.pointLatitude = (d) => d['latitude'];
|
|
34
|
-
this.pointId = (d) => d['id'];
|
|
35
|
-
this.pointShape = (d) => d['shape'];
|
|
36
|
-
this.pointColor = (d) => d['color'];
|
|
37
|
-
this.pointRadius = undefined;
|
|
38
|
-
this.pointLabel = undefined;
|
|
39
|
-
this.pointLabelColor = undefined;
|
|
40
|
-
this.pointBottomLabel = '';
|
|
41
|
-
this.pointCursor = null;
|
|
42
|
-
this.pointRingWidth = 1.25;
|
|
43
|
-
this.selectedPointId = undefined;
|
|
44
|
-
// Cluster
|
|
45
|
-
this.clusterColor = undefined;
|
|
46
|
-
this.clusterRadius = undefined;
|
|
47
|
-
this.clusterLabel = (d) => `${d.point_count}`;
|
|
48
|
-
this.clusterLabelColor = undefined;
|
|
49
|
-
this.clusterBottomLabel = '';
|
|
50
|
-
this.clusterRingWidth = 1.25;
|
|
51
|
-
this.clusterBackground = true;
|
|
52
|
-
this.clusterExpandOnClick = true;
|
|
53
|
-
this.clusteringDistance = 55;
|
|
54
|
-
this.colorMap = {};
|
|
55
|
-
// TopoJSON Overlay
|
|
56
|
-
this.topoJSONLayer = {
|
|
57
|
-
sources: undefined,
|
|
58
|
-
fillOpacity: 0.6,
|
|
59
|
-
strokeOpacity: 0.8,
|
|
60
|
-
strokeWidth: 1,
|
|
61
|
-
featureName: undefined,
|
|
62
|
-
fillProperty: undefined,
|
|
63
|
-
strokeProperty: undefined,
|
|
64
|
-
};
|
|
65
|
-
// Misc
|
|
66
|
-
this.tooltip = undefined;
|
|
67
|
-
}
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export { LeafletMapConfig };
|
|
71
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sources":["../../../src/components/leaflet-map/config.ts"],"sourcesContent":["/* eslint-disable dot-notation, no-irregular-whitespace */\n\n// Core\nimport { ComponentConfig, ComponentConfigInterface } from 'core/component/config'\nimport { Tooltip } from 'components/tooltip'\n\n// Types\nimport { ColorAccessor, GenericAccessor, NumericAccessor, StringAccessor } from 'types/accessor'\nimport { GenericDataRecord } from 'types/data'\n\n// Local Types\nimport {\n Bounds,\n LeafletMapPointStyles,\n MapZoomState,\n LeafletMapPointDatum,\n LeafletMapPointShape,\n LeafletMapClusterDatum,\n LeafletMapRenderer,\n} from './types'\n\n// Renderer settings\nimport { MapLibreStyleSpecs } from './renderer/map-style'\n\nexport interface LeafletMapConfigInterface<Datum extends GenericDataRecord> extends ComponentConfigInterface {\n // General\n /** Width in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */\n width?: number | string;\n /** Height in pixels or in CSS units. By default, the map will automatically fit to the size of the parent element. Default: `undefined`. */\n height?: number | string;\n /** Animation duration when the map is automatically panning or zooming to a point or area. Default: `1500` ms */\n flyToDuration?: number;\n /** Padding to be used when the `fitView` function has been called. The value is in pixels, [topLeft, bottomRight]. Default: `[150, 150]` */\n fitViewPadding?: [number, number];\n /** Animation duration for the `setZoom` function. Default: `800` ms */\n zoomDuration?: number;\n /** Default bounds that will be applied on the first map render if the bounds property is not set. Default: `undefined` */\n initialBounds?: Bounds;\n /** Force set map bounds on config and data updates. Default: `undefined` */\n fitBoundsOnUpdate?: Bounds;\n /** Fit the view to contain the data points on map initialization. Default: `true` */\n fitViewOnInit?: boolean;\n /** Fit the view to contain the data points on map config and data updates. Default: `false` */\n fitViewOnUpdate?: boolean;\n /** MapLibre `StyleSpecification` settings, or a URL to it. When renderer is set to`LeafletMapRenderer.Raster`, provide a template URL. Default: `undefined` */\n style: MapLibreStyleSpecs | string | undefined;\n /** MapLibre `StyleSpecification` settings or URL for dark theme. Default: `undefined` */\n styleDarkTheme?: MapLibreStyleSpecs | string | undefined;\n /** Tile server access token or API key. Default: `''` */\n accessToken?: string;\n /** Array of attribution labels. Default: `['<a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap contributors</a>']` */\n attribution?: string[];\n /** Rendering mode for map's tile layer. For raster files, use `LeafletMapRenderer.Raster`. Default: `LeafletMapRenderer.MapLibre` */\n renderer?: LeafletMapRenderer | string;\n\n // Map events\n /** Function to be called after the map's async initialization is done. Default: `undefined` */\n onMapInitialized?: (() => void);\n /** Map Move / Zoom unified callback function. Default: `undefined` */\n onMapMoveZoom?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);\n /** Map Move Start callback function. Default: `undefined` */\n onMapMoveStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);\n /** Map Move End callback function. Default: `undefined` */\n onMapMoveEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);\n /** Map Zoom Start callback function. Default: `undefined` */\n onMapZoomStart?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);\n /** Map Zoom End callback function. Default: `undefined` */\n onMapZoomEnd?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);\n /** Map Zoom Click callback function. Default: `undefined` */\n onMapClick?: (({ mapCenter, zoomLevel, bounds }: MapZoomState) => void);\n\n // Point\n /** Point longitude accessor function. Default: `d => d.longitude` */\n pointLongitude?: NumericAccessor<Datum>;\n /** Point latitude accessor function. Default: `d => d.latitude` */\n pointLatitude?: NumericAccessor<Datum>;\n /** Point id accessor function or constant value. Default: `d => d.id` */\n pointId?: StringAccessor<Datum>;\n /** Point shape accessor function or constant value. Default: `d => d.shape` */\n pointShape?: GenericAccessor<LeafletMapPointShape | string, Datum>;\n /** Point color accessor function or constant value. Default: `d => d.color` */\n pointColor?: ColorAccessor<Datum>;\n /** Point radius accessor function or constant value. Default: `undefined` */\n pointRadius?: NumericAccessor<LeafletMapPointDatum<Datum>>;\n /** Point inner label accessor function. Default: `undefined` */\n pointLabel?: StringAccessor<LeafletMapPointDatum<Datum>>;\n /** Point inner label color accessor function or constant value.\n * By default, the label color will be set, depending on the point brightness, either to\n * `--vis-map-point-inner-label-text-color-light` or to `--vis-map-point-inner-label-text-color-dark` CSS variable.\n * Default: `undefined`\n */\n pointLabelColor?: StringAccessor<LeafletMapPointDatum<Datum>>;\n /** Point bottom label accessor function. Default: `''` */\n pointBottomLabel?: StringAccessor<LeafletMapPointDatum<Datum>>;\n /** Point cursor value or accessor function. Default: `null` */\n pointCursor?: StringAccessor<LeafletMapPointDatum<Datum>>;\n /** The width of the ring when a point has a `LeafletMapPointShape.Ring` shape. Default: `1.25` */\n pointRingWidth?: number;\n /** Set selected point by its unique id. Default: `undefined` */\n selectedPointId?: string;\n\n // Cluster\n /** Cluster color accessor function or constant value. Default: `undefined` */\n clusterColor?: ColorAccessor<Datum>;\n /** Cluster radius accessor function or constant value. Default: `undefined` */\n clusterRadius?: NumericAccessor<LeafletMapClusterDatum<Datum>>;\n /** Cluster inner label accessor function. Default: `d => d.point_count` */\n clusterLabel?: StringAccessor<LeafletMapClusterDatum<Datum>>;\n /** Cluster inner label color accessor function or constant value.\n * By default, the label color will be set, depending on the point brightness, either to\n * `--vis-map-cluster-inner-label-text-color-light` or to `--vis-map-cluster-inner-label-text-color-dark` CSS variable.\n * Default: `undefined`\n */\n clusterLabelColor?: StringAccessor<LeafletMapClusterDatum<Datum>>;\n /** Cluster bottom label accessor function. Default: `''` */\n clusterBottomLabel?: StringAccessor<LeafletMapClusterDatum<Datum>>;\n /** The width of the cluster point ring. Default: `1.25` */\n clusterRingWidth?: number;\n /** When cluster is expanded, show a background circle to better separate points from the base map. Default: `true` */\n clusterBackground?: boolean;\n /** Defines whether the cluster should expand on click or not. Default: `true` */\n clusterExpandOnClick?: boolean;\n /** Clustering distance in pixels. This value will be passed to Supercluster as the `radius` property https://github.com/mapbox/supercluster. Default: `55` */\n clusteringDistance?: number;\n /** A single map point can have multiple properties displayed as a small pie chart (or a donut chart for a cluster of points).\n * By setting the colorMap configuration you can specify data properties that should be mapped to various pie / donut segments.\n *\n * ```\n * {\n * [key in keyof Datum]?: { color: string, className?: string }\n * }\n * ```\n * e.g.:\n * ```\n * {\n * healthy: { color: 'green' },\n * warning: { color: 'orange' },\n * danger: { color: 'red' }\n * }\n * ```\n * where every data point has the `healthy`, `warning` and `danger` numerical or boolean property.\n */\n colorMap?: LeafletMapPointStyles<Datum>;\n\n // TopoJSON overlay\n /** A TopoJSON Geometry layer to be displayed on top of the map. Supports fill and stroke */\n topoJSONLayer?: {\n /** The TopoJSON.Topology object. Default: `undefined` */\n sources: any;\n /** Name of the geometry feature to be displayed. Default: `undefined` */\n featureName?: string;\n /** Name of the property to be used for defining the fill color of the geometry. Default: `undefined` */\n fillProperty?: string;\n /** Name of the property to be used for defining the stroke color of the geometry. Default: `undefined` */\n strokeProperty?: string;\n /** Geometry fill opacity value. Default: `0.6` */\n fillOpacity?: number;\n /** Geometry stroke opacity value. Default: `0.8` */\n strokeOpacity?: number;\n /** Geometry stroke width. Default: `2` */\n strokeWidth?: number;\n };\n\n // Misc\n /** Tooltip component. Default: `undefined` */\n tooltip?: Tooltip;\n}\n\nexport class LeafletMapConfig<Datum extends GenericDataRecord> extends ComponentConfig implements LeafletMapConfigInterface<Datum> {\n // General\n width = undefined\n height = undefined\n flyToDuration = 1500\n fitViewPadding = [150, 150] as [number, number]\n zoomDuration = 800\n initialBounds = undefined\n fitBoundsOnUpdate = undefined\n fitViewOnInit = true\n fitViewOnUpdate = false\n attribution = ['<a href=\"https://www.openstreetmap.org/copyright\" target=\"_blank\">OpenStreetMap contributors</a>']\n accessToken = ''\n style = undefined\n styleDarkTheme = undefined\n renderer = LeafletMapRenderer.MapLibre\n\n // Map events\n onMapInitialized = undefined\n onMapMoveZoom = undefined\n onMapMoveStart = undefined\n onMapMoveEnd = undefined\n onMapZoomStart = undefined\n onMapZoomEnd = undefined\n onMapClick = undefined\n\n // Point\n pointLongitude = (d: Datum): number => d['longitude'] as number\n pointLatitude = (d: Datum): number => d['latitude'] as number\n pointId = (d: Datum): string => d['id'] as string\n pointShape = (d: Datum): string => d['shape'] as string\n pointColor = (d: Datum): string => d['color'] as string\n pointRadius = undefined\n pointLabel = undefined\n pointLabelColor = undefined\n pointBottomLabel = ''\n pointCursor = null\n pointRingWidth = 1.25\n selectedPointId = undefined\n\n // Cluster\n clusterColor = undefined\n clusterRadius = undefined\n clusterLabel = (d: LeafletMapClusterDatum<Datum>): string => `${d.point_count}`\n clusterLabelColor = undefined\n clusterBottomLabel = ''\n clusterRingWidth = 1.25\n clusterBackground = true\n clusterExpandOnClick = true\n clusteringDistance = 55\n colorMap = {} as LeafletMapPointStyles<Datum>\n\n // TopoJSON Overlay\n topoJSONLayer = {\n sources: undefined,\n fillOpacity: 0.6,\n strokeOpacity: 0.8,\n strokeWidth: 1,\n featureName: undefined,\n fillProperty: undefined,\n strokeProperty: undefined,\n }\n\n // Misc\n tooltip = undefined\n}\n"],"names":[],"mappings":";;;AAAA;AAwKM,MAAO,gBAAkD,SAAQ,eAAe,CAAA;AAAtF,IAAA,WAAA,GAAA;;;QAEE,IAAK,CAAA,KAAA,GAAG,SAAS,CAAA;QACjB,IAAM,CAAA,MAAA,GAAG,SAAS,CAAA;QAClB,IAAa,CAAA,aAAA,GAAG,IAAI,CAAA;AACpB,QAAA,IAAA,CAAA,cAAc,GAAG,CAAC,GAAG,EAAE,GAAG,CAAqB,CAAA;QAC/C,IAAY,CAAA,YAAA,GAAG,GAAG,CAAA;QAClB,IAAa,CAAA,aAAA,GAAG,SAAS,CAAA;QACzB,IAAiB,CAAA,iBAAA,GAAG,SAAS,CAAA;QAC7B,IAAa,CAAA,aAAA,GAAG,IAAI,CAAA;QACpB,IAAe,CAAA,eAAA,GAAG,KAAK,CAAA;AACvB,QAAA,IAAA,CAAA,WAAW,GAAG,CAAC,kGAAkG,CAAC,CAAA;QAClH,IAAW,CAAA,WAAA,GAAG,EAAE,CAAA;QAChB,IAAK,CAAA,KAAA,GAAG,SAAS,CAAA;QACjB,IAAc,CAAA,cAAA,GAAG,SAAS,CAAA;AAC1B,QAAA,IAAA,CAAA,QAAQ,GAAG,kBAAkB,CAAC,QAAQ,CAAA;;QAGtC,IAAgB,CAAA,gBAAA,GAAG,SAAS,CAAA;QAC5B,IAAa,CAAA,aAAA,GAAG,SAAS,CAAA;QACzB,IAAc,CAAA,cAAA,GAAG,SAAS,CAAA;QAC1B,IAAY,CAAA,YAAA,GAAG,SAAS,CAAA;QACxB,IAAc,CAAA,cAAA,GAAG,SAAS,CAAA;QAC1B,IAAY,CAAA,YAAA,GAAG,SAAS,CAAA;QACxB,IAAU,CAAA,UAAA,GAAG,SAAS,CAAA;;QAGtB,IAAc,CAAA,cAAA,GAAG,CAAC,CAAQ,KAAa,CAAC,CAAC,WAAW,CAAW,CAAA;QAC/D,IAAa,CAAA,aAAA,GAAG,CAAC,CAAQ,KAAa,CAAC,CAAC,UAAU,CAAW,CAAA;QAC7D,IAAO,CAAA,OAAA,GAAG,CAAC,CAAQ,KAAa,CAAC,CAAC,IAAI,CAAW,CAAA;QACjD,IAAU,CAAA,UAAA,GAAG,CAAC,CAAQ,KAAa,CAAC,CAAC,OAAO,CAAW,CAAA;QACvD,IAAU,CAAA,UAAA,GAAG,CAAC,CAAQ,KAAa,CAAC,CAAC,OAAO,CAAW,CAAA;QACvD,IAAW,CAAA,WAAA,GAAG,SAAS,CAAA;QACvB,IAAU,CAAA,UAAA,GAAG,SAAS,CAAA;QACtB,IAAe,CAAA,eAAA,GAAG,SAAS,CAAA;QAC3B,IAAgB,CAAA,gBAAA,GAAG,EAAE,CAAA;QACrB,IAAW,CAAA,WAAA,GAAG,IAAI,CAAA;QAClB,IAAc,CAAA,cAAA,GAAG,IAAI,CAAA;QACrB,IAAe,CAAA,eAAA,GAAG,SAAS,CAAA;;QAG3B,IAAY,CAAA,YAAA,GAAG,SAAS,CAAA;QACxB,IAAa,CAAA,aAAA,GAAG,SAAS,CAAA;QACzB,IAAY,CAAA,YAAA,GAAG,CAAC,CAAgC,KAAa,CAAA,EAAG,CAAC,CAAC,WAAW,CAAA,CAAE,CAAA;QAC/E,IAAiB,CAAA,iBAAA,GAAG,SAAS,CAAA;QAC7B,IAAkB,CAAA,kBAAA,GAAG,EAAE,CAAA;QACvB,IAAgB,CAAA,gBAAA,GAAG,IAAI,CAAA;QACvB,IAAiB,CAAA,iBAAA,GAAG,IAAI,CAAA;QACxB,IAAoB,CAAA,oBAAA,GAAG,IAAI,CAAA;QAC3B,IAAkB,CAAA,kBAAA,GAAG,EAAE,CAAA;QACvB,IAAQ,CAAA,QAAA,GAAG,EAAkC,CAAA;;AAG7C,QAAA,IAAA,CAAA,aAAa,GAAG;AACd,YAAA,OAAO,EAAE,SAAS;AAClB,YAAA,WAAW,EAAE,GAAG;AAChB,YAAA,aAAa,EAAE,GAAG;AAClB,YAAA,WAAW,EAAE,CAAC;AACd,YAAA,WAAW,EAAE,SAAS;AACtB,YAAA,YAAY,EAAE,SAAS;AACvB,YAAA,cAAc,EAAE,SAAS;SAC1B,CAAA;;QAGD,IAAO,CAAA,OAAA,GAAG,SAAS,CAAA;KACpB;AAAA;;;;"}
|
|
@@ -1,130 +0,0 @@
|
|
|
1
|
-
import { Selection } from 'd3-selection';
|
|
2
|
-
import type L from 'leaflet';
|
|
3
|
-
import { StyleSpecification } from 'maplibre-gl';
|
|
4
|
-
import { ComponentCore } from "../../core/component";
|
|
5
|
-
import { MapDataModel } from "../../data-models/map";
|
|
6
|
-
import { ComponentType } from "../../types/component";
|
|
7
|
-
import { GenericDataRecord } from "../../types/data";
|
|
8
|
-
import { Bounds, LeafletMapPoint } from './types';
|
|
9
|
-
import { LeafletMapConfig, LeafletMapConfigInterface } from './config';
|
|
10
|
-
import * as s from './style';
|
|
11
|
-
export declare class LeafletMap<Datum extends GenericDataRecord> extends ComponentCore<Datum[], LeafletMapConfig<Datum>, LeafletMapConfigInterface<Datum>> {
|
|
12
|
-
static selectors: typeof s;
|
|
13
|
-
static cssVariables: {
|
|
14
|
-
mapContainerBackgroundColor: "--vis-map-container-background-color";
|
|
15
|
-
mapLabelFontFamily: "--vis-map-label-font-family";
|
|
16
|
-
mapPointDefaultFillColor: "--vis-map-point-default-fill-color";
|
|
17
|
-
mapPointRingFillColor: "--vis-map-point-ring-fill-color";
|
|
18
|
-
mapPointDefaultStrokeColor: "--vis-map-point-default-stroke-color";
|
|
19
|
-
mapPointDefaultStrokeWidth: "--vis-map-point-default-stroke-width";
|
|
20
|
-
mapPointDefaultCursor: "--vis-map-point-default-cursor";
|
|
21
|
-
mapClusterDefaultFillColor: "--vis-map-cluster-default-fill-color";
|
|
22
|
-
mapClusterDefaultStrokeColor: "--vis-map-cluster-default-stroke-color";
|
|
23
|
-
mapClusterDefaultStrokeWidth: "--vis-map-cluster-default-stroke-width";
|
|
24
|
-
mapClusterDonutFillColor: "--vis-map-cluster-donut-fill-color";
|
|
25
|
-
mapClusterInnerLabelTextColorDark: "--vis-map-cluster-inner-label-text-color-dark";
|
|
26
|
-
mapClusterInnerLabelTextColorLight: "--vis-map-cluster-inner-label-text-color-light";
|
|
27
|
-
mapPointInnerLabelTextColorDark: "--vis-map-point-inner-label-text-color-dark";
|
|
28
|
-
mapPointInnerLabelTextColorLight: "--vis-map-point-inner-label-text-color-light";
|
|
29
|
-
mapPointBottomLabelTextColor: "--vis-map-point-bottom-label-text-color";
|
|
30
|
-
mapPointBottomLabelFontSize: "--vis-map-point-bottom-label-font-size";
|
|
31
|
-
mapClusterExpandedBackgroundFillColor: "--vis-map-cluster-expanded-background-fill-color";
|
|
32
|
-
darkMapContainerBackgroundColor: "--vis-dark-map-container-background-color";
|
|
33
|
-
darkMapPointDefaultFillColor: "--vis-dark-map-point-default-fill-color";
|
|
34
|
-
darkMapPointDefaultStrokeColor: "--vis-dark-map-point-default-stroke-color";
|
|
35
|
-
darkMapPointRingFillColor: "--vis-dark-map-point-ring-fill-color";
|
|
36
|
-
darkMapClusterDefaultFillColor: "--vis-dark-map-cluster-default-fill-color";
|
|
37
|
-
darkMapClusterDefaultStrokeColor: "--vis-dark-map-cluster-default-stroke-color";
|
|
38
|
-
darkMapClusterDonutFillColor: "--vis-dark-map-cluster-donut-fill-color";
|
|
39
|
-
darkMapClusterInnerLabelTextColorDark: "--vis-dark-map-cluster-inner-label-text-color-dark";
|
|
40
|
-
darkMapClusterInnerLabelTextColorLight: "--vis-dark-map-cluster-inner-label-text-color-light";
|
|
41
|
-
darkMapPointInnerLabelTextColorDark: "--vis-dark-map-point-inner-label-text-color-dark";
|
|
42
|
-
darkMapPointInnerLabelTextColorLight: "--vis-dark-map-point-inner-label-text-color-light";
|
|
43
|
-
darkMapPointBottomLabelTextColor: "--vis-dark-map-point-bottom-label-text-color";
|
|
44
|
-
darkMapClusterExpandedBackgroundFillColor: "--vis-dark-map-cluster-expanded-background-fill-color";
|
|
45
|
-
};
|
|
46
|
-
type: ComponentType;
|
|
47
|
-
element: HTMLElement;
|
|
48
|
-
config: LeafletMapConfig<Datum>;
|
|
49
|
-
datamodel: MapDataModel<Datum>;
|
|
50
|
-
protected _container: HTMLElement;
|
|
51
|
-
protected _containerSelection: Selection<HTMLElement, unknown, null, undefined>;
|
|
52
|
-
_onMapMoveEndInternal: (leaflet: L.Map) => void;
|
|
53
|
-
private _map;
|
|
54
|
-
private _clusterIndex;
|
|
55
|
-
private _expandedCluster;
|
|
56
|
-
private _cancelBackgroundClick;
|
|
57
|
-
private _hasBeenMoved;
|
|
58
|
-
private _hasBeenZoomed;
|
|
59
|
-
private _isMoving;
|
|
60
|
-
private _isZooming;
|
|
61
|
-
private _eventInitiatedByComponent;
|
|
62
|
-
private _triggerBackgroundClick;
|
|
63
|
-
private _externallySelectedPoint;
|
|
64
|
-
private _zoomingToExternallySelectedPoint;
|
|
65
|
-
private _forceExpandCluster;
|
|
66
|
-
private _pointGroup;
|
|
67
|
-
private _pointSelectionRing;
|
|
68
|
-
private _clusterBackground;
|
|
69
|
-
private _clusterBackgroundRadius;
|
|
70
|
-
private _selectedPoint;
|
|
71
|
-
private _currentZoomLevel;
|
|
72
|
-
private _firstRender;
|
|
73
|
-
private _isDarkThemeActive;
|
|
74
|
-
private resizeObserver;
|
|
75
|
-
private themeObserver;
|
|
76
|
-
private _renderDataAnimationFrameId;
|
|
77
|
-
private _flyToBoundsAnimationFrameId;
|
|
78
|
-
readonly _leafletInitializationPromise: Promise<L.Map>;
|
|
79
|
-
static DEFAULT_CONTAINER_HEIGHT: number;
|
|
80
|
-
events: {
|
|
81
|
-
[x: string]: {
|
|
82
|
-
mouseup: (d: LeafletMapPoint<Datum>, event: MouseEvent) => void;
|
|
83
|
-
mousedown: (d: LeafletMapPoint<Datum>, event: MouseEvent) => void;
|
|
84
|
-
click: (d: LeafletMapPoint<Datum>, event: MouseEvent) => void;
|
|
85
|
-
};
|
|
86
|
-
};
|
|
87
|
-
constructor(container: HTMLElement, config?: LeafletMapConfigInterface<Datum>, data?: Datum[]);
|
|
88
|
-
setConfig(config: LeafletMapConfigInterface<Datum>): void;
|
|
89
|
-
setData(data: Datum[]): void;
|
|
90
|
-
setTheme(theme: StyleSpecification | string): void;
|
|
91
|
-
render(): void;
|
|
92
|
-
getLeafletInstancePromise(): Promise<L.Map>;
|
|
93
|
-
fitToPoints(duration?: number, padding?: [number, number]): void;
|
|
94
|
-
fitToBounds(bounds: Bounds, duration?: number, padding?: [number, number]): void;
|
|
95
|
-
selectPointById(id: string, centerView?: boolean): void;
|
|
96
|
-
getSelectedPointId(): string | number | undefined;
|
|
97
|
-
unselectPoint(): void;
|
|
98
|
-
zoomToPointById(id: string, selectPoint?: boolean, customZoomLevel?: number): void;
|
|
99
|
-
getNodeRelativePosition(node: LeafletMapPoint<Datum>): {
|
|
100
|
-
x: number;
|
|
101
|
-
y: number;
|
|
102
|
-
};
|
|
103
|
-
hasBeenZoomed(): boolean;
|
|
104
|
-
hasBeenMoved(): boolean;
|
|
105
|
-
isZooming(): boolean;
|
|
106
|
-
isMoving(): boolean;
|
|
107
|
-
private _flyToBounds;
|
|
108
|
-
private _renderData;
|
|
109
|
-
private _zoomToExternallySelectedPoint;
|
|
110
|
-
private _expandCluster;
|
|
111
|
-
private _resetExpandedCluster;
|
|
112
|
-
private _getPointData;
|
|
113
|
-
private _getMapZoomState;
|
|
114
|
-
private _onMapDragLeaflet;
|
|
115
|
-
private _onMapMove;
|
|
116
|
-
private _onMapMoveStart;
|
|
117
|
-
private _onMapMoveEnd;
|
|
118
|
-
private _onMapZoomStart;
|
|
119
|
-
private _onMapZoomEnd;
|
|
120
|
-
private _onMapZoom;
|
|
121
|
-
private _onBackgroundClick;
|
|
122
|
-
private _onPointClick;
|
|
123
|
-
private _onPointMouseDown;
|
|
124
|
-
private _onPointMouseUp;
|
|
125
|
-
zoomIn(increment?: number): void;
|
|
126
|
-
zoomOut(increment?: number): void;
|
|
127
|
-
setZoom(zoomLevel: number): void;
|
|
128
|
-
fitView(): void;
|
|
129
|
-
destroy(): void;
|
|
130
|
-
}
|