@unovis/ts 1.1.1-beta.7 → 1.1.1-beta.9
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/components/area/config.d.ts +25 -0
- package/components/area/config.js +16 -0
- package/components/area/config.js.map +1 -0
- package/components/area/index.d.ts +19 -0
- package/components/area/index.js +102 -0
- package/components/area/index.js.map +1 -0
- package/components/area/style.d.ts +3 -0
- package/{src/components/area/style.ts → components/area/style.js} +10 -9
- package/components/area/style.js.map +1 -0
- package/components/area/types.d.ts +6 -0
- package/components/axis/config.d.ts +71 -0
- package/components/axis/config.js +32 -0
- package/components/axis/config.js.map +1 -0
- package/components/axis/index.d.ts +44 -0
- package/components/axis/index.js +305 -0
- package/components/axis/index.js.map +1 -0
- package/components/axis/style.d.ts +9 -0
- package/{src/components/axis/style.ts → components/axis/style.js} +22 -27
- package/components/axis/style.js.map +1 -0
- package/components/axis/types.d.ts +4 -0
- package/components/axis/types.js +8 -0
- package/components/axis/types.js.map +1 -0
- package/components/brush/config.d.ts +42 -0
- package/components/brush/config.js +24 -0
- package/components/brush/config.js.map +1 -0
- package/components/brush/index.d.ts +28 -0
- package/components/brush/index.js +199 -0
- package/components/brush/index.js.map +1 -0
- package/components/brush/style.d.ts +5 -0
- package/{src/components/brush/style.ts → components/brush/style.js} +14 -15
- package/components/brush/style.js.map +1 -0
- package/components/brush/types.d.ts +7 -0
- package/components/brush/types.js +8 -0
- package/components/brush/types.js.map +1 -0
- package/components/bullet-legend/config.d.ts +34 -0
- package/components/bullet-legend/config.js +16 -0
- package/components/bullet-legend/config.js.map +1 -0
- package/components/bullet-legend/index.d.ts +19 -0
- package/components/bullet-legend/index.js +79 -0
- package/components/bullet-legend/index.js.map +1 -0
- package/components/bullet-legend/style.d.ts +6 -0
- package/{src/components/bullet-legend/style.ts → components/bullet-legend/style.js} +16 -18
- package/components/bullet-legend/style.js.map +1 -0
- package/components/bullet-legend/types.d.ts +7 -0
- package/components/bullet-legend/types.js +2 -0
- package/components/bullet-legend/types.js.map +1 -0
- package/components/chord-diagram/config.d.ts +44 -0
- package/components/chord-diagram/config.js +25 -0
- package/components/chord-diagram/config.js.map +1 -0
- package/components/chord-diagram/index.d.ts +42 -0
- package/components/chord-diagram/index.js +305 -0
- package/components/chord-diagram/index.js.map +1 -0
- package/components/chord-diagram/modules/label.d.ts +8 -0
- package/components/chord-diagram/modules/label.js +115 -0
- package/components/chord-diagram/modules/label.js.map +1 -0
- package/components/chord-diagram/modules/link.d.ts +21 -0
- package/components/chord-diagram/modules/link.js +63 -0
- package/components/chord-diagram/modules/link.js.map +1 -0
- package/components/chord-diagram/modules/node.d.ts +17 -0
- package/components/chord-diagram/modules/node.js +52 -0
- package/components/chord-diagram/modules/node.js.map +1 -0
- package/components/chord-diagram/style.d.ts +13 -0
- package/{src/components/chord-diagram/style.ts → components/chord-diagram/style.js} +30 -39
- package/components/chord-diagram/style.js.map +1 -0
- package/components/chord-diagram/types.d.ts +58 -0
- package/components/chord-diagram/types.js +8 -0
- package/components/chord-diagram/types.js.map +1 -0
- package/components/crosshair/config.d.ts +43 -0
- package/components/crosshair/config.js +19 -0
- package/components/crosshair/config.js.map +1 -0
- package/components/crosshair/index.d.ts +35 -0
- package/components/crosshair/index.js +183 -0
- package/components/crosshair/index.js.map +1 -0
- package/components/crosshair/style.d.ts +4 -0
- package/{src/components/crosshair/style.ts → components/crosshair/style.js} +12 -12
- package/components/crosshair/style.js.map +1 -0
- package/components/crosshair/types.d.ts +13 -0
- package/components/crosshair/types.js +2 -0
- package/components/crosshair/types.js.map +1 -0
- package/components/donut/config.d.ts +59 -0
- package/components/donut/config.js +28 -0
- package/components/donut/config.js.map +1 -0
- package/components/donut/index.d.ts +21 -0
- package/components/donut/index.js +107 -0
- package/components/donut/index.js.map +1 -0
- package/components/donut/modules/arc.d.ts +10 -0
- package/components/donut/modules/arc.js +59 -0
- package/components/donut/modules/arc.js.map +1 -0
- package/components/donut/style.d.ts +7 -0
- package/{src/components/donut/style.ts → components/donut/style.js} +18 -20
- package/components/donut/style.js.map +1 -0
- package/components/donut/types.d.ts +20 -0
- package/components/flow-legend/config.d.ts +29 -0
- package/components/flow-legend/config.js +18 -0
- package/components/flow-legend/config.js.map +1 -0
- package/components/flow-legend/index.d.ts +16 -0
- package/components/flow-legend/index.js +75 -0
- package/components/flow-legend/index.js.map +1 -0
- package/components/flow-legend/style.d.ts +8 -0
- package/{src/components/flow-legend/style.ts → components/flow-legend/style.js} +21 -25
- package/components/flow-legend/style.js.map +1 -0
- package/components/flow-legend/types.d.ts +9 -0
- package/components/flow-legend/types.js +8 -0
- package/components/flow-legend/types.js.map +1 -0
- package/components/free-brush/config.d.ts +45 -0
- package/components/free-brush/config.js +24 -0
- package/components/free-brush/config.js.map +1 -0
- package/components/free-brush/index.d.ts +20 -0
- package/components/free-brush/index.js +192 -0
- package/components/free-brush/index.js.map +1 -0
- package/components/free-brush/style.d.ts +4 -0
- package/{src/components/free-brush/style.ts → components/free-brush/style.js} +12 -12
- package/components/free-brush/style.js.map +1 -0
- package/components/free-brush/types.d.ts +7 -0
- package/components/free-brush/types.js +9 -0
- package/components/free-brush/types.js.map +1 -0
- package/components/graph/config.d.ts +238 -0
- package/components/graph/config.js +84 -0
- package/components/graph/config.js.map +1 -0
- package/components/graph/index.d.ts +126 -0
- package/components/graph/index.js +656 -0
- package/components/graph/index.js.map +1 -0
- package/components/graph/modules/layout-helpers.d.ts +21 -0
- package/components/graph/modules/layout-helpers.js +69 -0
- package/components/graph/modules/layout-helpers.js.map +1 -0
- package/components/graph/modules/layout.d.ts +10 -0
- package/components/graph/modules/layout.js +399 -0
- package/components/graph/modules/layout.js.map +1 -0
- package/components/graph/modules/link/helper.d.ts +25 -0
- package/components/graph/modules/link/helper.js +74 -0
- package/components/graph/modules/link/helper.js.map +1 -0
- package/components/graph/modules/link/index.d.ts +11 -0
- package/components/graph/modules/link/index.js +212 -0
- package/components/graph/modules/link/index.js.map +1 -0
- package/components/graph/modules/link/style.d.ts +15 -0
- package/{src/components/graph/modules/link/style.ts → components/graph/modules/link/style.js} +34 -45
- package/components/graph/modules/link/style.js.map +1 -0
- package/components/graph/modules/node/helper.d.ts +21 -0
- package/components/graph/modules/node/helper.js +126 -0
- package/components/graph/modules/node/helper.js.map +1 -0
- package/components/graph/modules/node/index.d.ts +11 -0
- package/components/graph/modules/node/index.js +252 -0
- package/components/graph/modules/node/index.js.map +1 -0
- package/components/graph/modules/node/style.d.ts +24 -0
- package/{src/components/graph/modules/node/style.ts → components/graph/modules/node/style.js} +52 -72
- package/components/graph/modules/node/style.js.map +1 -0
- package/components/graph/modules/panel/helper.d.ts +18 -0
- package/components/graph/modules/panel/helper.js +111 -0
- package/components/graph/modules/panel/helper.js.map +1 -0
- package/components/graph/modules/panel/index.d.ts +7 -0
- package/components/graph/modules/panel/index.js +98 -0
- package/components/graph/modules/panel/index.js.map +1 -0
- package/components/graph/modules/panel/style.d.ts +14 -0
- package/{src/components/graph/modules/panel/style.ts → components/graph/modules/panel/style.js} +32 -42
- package/components/graph/modules/panel/style.js.map +1 -0
- package/components/graph/modules/shape.d.ts +6 -0
- package/components/graph/modules/shape.js +80 -0
- package/components/graph/modules/shape.js.map +1 -0
- package/components/graph/modules/zoom-levels.d.ts +6 -0
- package/components/graph/modules/zoom-levels.js +10 -0
- package/components/graph/modules/zoom-levels.js.map +1 -0
- package/components/graph/style.d.ts +6 -0
- package/components/graph/style.js +66 -0
- package/components/graph/style.js.map +1 -0
- package/components/graph/types.d.ts +125 -0
- package/components/graph/types.js +30 -0
- package/components/graph/types.js.map +1 -0
- package/components/grouped-bar/config.d.ts +36 -0
- package/components/grouped-bar/config.js +20 -0
- package/components/grouped-bar/config.js.map +1 -0
- package/components/grouped-bar/index.d.ts +32 -0
- package/components/grouped-bar/index.js +249 -0
- package/components/grouped-bar/index.js.map +1 -0
- package/components/grouped-bar/style.d.ts +5 -0
- package/{src/components/grouped-bar/style.ts → components/grouped-bar/style.js} +14 -15
- package/components/grouped-bar/style.js.map +1 -0
- package/components/leaflet-flow-map/config.d.ts +46 -0
- package/components/leaflet-flow-map/config.js +25 -0
- package/components/leaflet-flow-map/config.js.map +1 -0
- package/components/leaflet-flow-map/index.d.ts +52 -0
- package/components/leaflet-flow-map/index.js +220 -0
- package/components/leaflet-flow-map/index.js.map +1 -0
- package/components/leaflet-flow-map/renderer-utils.d.ts +5 -0
- package/components/leaflet-flow-map/renderer-utils.js +15 -0
- package/components/leaflet-flow-map/renderer-utils.js.map +1 -0
- package/components/leaflet-flow-map/renderer.d.ts +26 -0
- package/components/leaflet-flow-map/renderer.js +117 -0
- package/components/leaflet-flow-map/renderer.js.map +1 -0
- package/components/leaflet-flow-map/shaders.d.ts +2 -0
- package/{src/components/leaflet-flow-map/shaders.ts → components/leaflet-flow-map/shaders.js} +7 -4
- package/components/leaflet-flow-map/shaders.js.map +1 -0
- package/components/leaflet-flow-map/types.d.ts +23 -0
- package/components/leaflet-map/config.d.ts +193 -0
- package/components/leaflet-map/config.js +71 -0
- package/components/leaflet-map/config.js.map +1 -0
- package/components/leaflet-map/index.d.ts +130 -0
- package/components/leaflet-map/index.js +690 -0
- package/components/leaflet-map/index.js.map +1 -0
- package/components/leaflet-map/leaflet.css.js +5 -0
- package/components/leaflet-map/leaflet.css.js.map +1 -0
- package/components/leaflet-map/modules/clusterBackground.d.ts +5 -0
- package/components/leaflet-map/modules/clusterBackground.js +27 -0
- package/components/leaflet-map/modules/clusterBackground.js.map +1 -0
- package/components/leaflet-map/modules/donut.d.ts +3 -0
- package/components/leaflet-map/modules/donut.js +25 -0
- package/components/leaflet-map/modules/donut.js.map +1 -0
- package/components/leaflet-map/modules/map.d.ts +14 -0
- package/components/leaflet-map/modules/map.js +154 -0
- package/components/leaflet-map/modules/map.js.map +1 -0
- package/components/leaflet-map/modules/node.d.ts +9 -0
- package/components/leaflet-map/modules/node.js +162 -0
- package/components/leaflet-map/modules/node.js.map +1 -0
- package/components/leaflet-map/modules/selectionRing.d.ts +7 -0
- package/components/leaflet-map/modules/selectionRing.js +41 -0
- package/components/leaflet-map/modules/selectionRing.js.map +1 -0
- package/components/leaflet-map/modules/utils.d.ts +50 -0
- package/components/leaflet-map/modules/utils.js +210 -0
- package/components/leaflet-map/modules/utils.js.map +1 -0
- package/{src/components → components}/leaflet-map/renderer/leaflet-maplibre-gl.js +78 -76
- package/components/leaflet-map/renderer/leaflet-maplibre-gl.js.map +1 -0
- package/components/leaflet-map/renderer/map-style.d.ts +4 -0
- package/components/leaflet-map/renderer/map-style.js +15 -0
- package/components/leaflet-map/renderer/map-style.js.map +1 -0
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-dark-theme.json.js +40 -0
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-dark-theme.json.js.map +1 -0
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-light-theme.json.js +40 -0
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-light-theme.json.js.map +1 -0
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-settings.json.js +4981 -0
- package/components/leaflet-map/renderer/mapboxgl/mapboxgl-settings.json.js.map +1 -0
- package/components/leaflet-map/renderer/mapboxgl-layer.d.ts +8 -0
- package/components/leaflet-map/renderer/mapboxgl-layer.js +27 -0
- package/components/leaflet-map/renderer/mapboxgl-layer.js.map +1 -0
- package/components/leaflet-map/renderer/mapboxgl-utils.d.ts +4 -0
- package/components/leaflet-map/renderer/mapboxgl-utils.js +39 -0
- package/components/leaflet-map/renderer/mapboxgl-utils.js.map +1 -0
- package/{src/components → components}/leaflet-map/renderer/maplibre-gl.css.js +4 -2
- package/components/leaflet-map/renderer/maplibre-gl.css.js.map +1 -0
- package/components/leaflet-map/style.d.ts +52 -0
- package/components/leaflet-map/style.js +183 -0
- package/components/leaflet-map/style.js.map +1 -0
- package/components/leaflet-map/types.d.ts +75 -0
- package/components/leaflet-map/types.js +15 -0
- package/components/leaflet-map/types.js.map +1 -0
- package/components/line/config.d.ts +30 -0
- package/components/line/config.js +17 -0
- package/components/line/config.js.map +1 -0
- package/components/line/index.d.ts +27 -0
- package/components/line/index.js +152 -0
- package/components/line/index.js.map +1 -0
- package/components/line/style.d.ts +6 -0
- package/{src/components/line/style.ts → components/line/style.js} +16 -18
- package/components/line/style.js.map +1 -0
- package/components/line/types.d.ts +12 -0
- package/components/nested-donut/config.d.ts +59 -0
- package/components/nested-donut/config.js +19 -0
- package/components/nested-donut/config.js.map +1 -0
- package/components/nested-donut/index.d.ts +38 -0
- package/components/nested-donut/index.js +133 -0
- package/components/nested-donut/index.js.map +1 -0
- package/components/nested-donut/modules/arc.d.ts +17 -0
- package/components/nested-donut/modules/arc.js +50 -0
- package/components/nested-donut/modules/arc.js.map +1 -0
- package/components/nested-donut/modules/label.d.ts +7 -0
- package/components/nested-donut/modules/label.js +34 -0
- package/components/nested-donut/modules/label.js.map +1 -0
- package/components/nested-donut/style.d.ts +26 -0
- package/components/nested-donut/style.js +70 -0
- package/components/nested-donut/style.js.map +1 -0
- package/components/nested-donut/types.d.ts +24 -0
- package/components/nested-donut/types.js +11 -0
- package/components/nested-donut/types.js.map +1 -0
- package/components/sankey/config.d.ts +162 -0
- package/components/sankey/config.js +65 -0
- package/components/sankey/config.js.map +1 -0
- package/components/sankey/index.d.ts +59 -0
- package/components/sankey/index.js +306 -0
- package/components/sankey/index.js.map +1 -0
- package/components/sankey/modules/label.d.ts +23 -0
- package/components/sankey/modules/label.js +168 -0
- package/components/sankey/modules/label.js.map +1 -0
- package/components/sankey/modules/link.d.ts +14 -0
- package/components/sankey/modules/link.js +108 -0
- package/components/sankey/modules/link.js.map +1 -0
- package/components/sankey/modules/node.d.ts +10 -0
- package/components/sankey/modules/node.js +156 -0
- package/components/sankey/modules/node.js.map +1 -0
- package/components/sankey/style.d.ts +20 -0
- package/{src/components/sankey/style.ts → components/sankey/style.js} +44 -60
- package/components/sankey/style.js.map +1 -0
- package/components/sankey/types.d.ts +84 -0
- package/components/sankey/types.js +34 -0
- package/components/sankey/types.js.map +1 -0
- package/components/scatter/config.d.ts +44 -0
- package/components/scatter/config.js +23 -0
- package/components/scatter/config.js.map +1 -0
- package/components/scatter/index.d.ts +28 -0
- package/components/scatter/index.js +167 -0
- package/components/scatter/index.js.map +1 -0
- package/components/scatter/modules/point.d.ts +7 -0
- package/components/scatter/modules/point.js +86 -0
- package/components/scatter/modules/point.js.map +1 -0
- package/components/scatter/modules/utils.d.ts +11 -0
- package/components/scatter/modules/utils.js +112 -0
- package/components/scatter/modules/utils.js.map +1 -0
- package/components/scatter/style.d.ts +5 -0
- package/{src/components/scatter/style.ts → components/scatter/style.js} +14 -15
- package/components/scatter/style.js.map +1 -0
- package/components/scatter/types.d.ts +19 -0
- package/components/stacked-bar/config.d.ts +38 -0
- package/components/stacked-bar/config.js +20 -0
- package/components/stacked-bar/config.js.map +1 -0
- package/components/stacked-bar/index.d.ts +28 -0
- package/components/stacked-bar/index.js +208 -0
- package/components/stacked-bar/index.js.map +1 -0
- package/components/stacked-bar/style.d.ts +5 -0
- package/{src/components/stacked-bar/style.ts → components/stacked-bar/style.js} +14 -15
- package/components/stacked-bar/style.js.map +1 -0
- package/components/stacked-bar/types.d.ts +5 -0
- package/components/timeline/config.d.ts +43 -0
- package/components/timeline/config.js +24 -0
- package/components/timeline/config.js.map +1 -0
- package/components/timeline/index.d.ts +41 -0
- package/components/timeline/index.js +244 -0
- package/components/timeline/index.js.map +1 -0
- package/components/timeline/style.d.ts +13 -0
- package/{src/components/timeline/style.ts → components/timeline/style.js} +30 -39
- package/components/timeline/style.js.map +1 -0
- package/components/tooltip/config.d.ts +68 -0
- package/components/tooltip/config.js +20 -0
- package/components/tooltip/config.js.map +1 -0
- package/components/tooltip/index.d.ts +36 -0
- package/components/tooltip/index.js +184 -0
- package/components/tooltip/index.js.map +1 -0
- package/{src/components → components}/tooltip/style.js +14 -11
- package/components/tooltip/style.js.map +1 -0
- package/components/topojson-map/config.d.ts +99 -0
- package/components/topojson-map/config.js +42 -0
- package/components/topojson-map/config.js.map +1 -0
- package/components/topojson-map/index.d.ts +52 -0
- package/components/topojson-map/index.js +355 -0
- package/components/topojson-map/index.js.map +1 -0
- package/components/topojson-map/style.d.ts +11 -0
- package/{src/components/topojson-map/style.ts → components/topojson-map/style.js} +26 -33
- package/components/topojson-map/style.js.map +1 -0
- package/components/topojson-map/types.d.ts +78 -0
- package/components/topojson-map/types.js +80 -0
- package/components/topojson-map/types.js.map +1 -0
- package/components/topojson-map/utils.d.ts +3 -0
- package/components/topojson-map/utils.js +30 -0
- package/components/topojson-map/utils.js.map +1 -0
- package/components/vis-controls/config.d.ts +12 -0
- package/components/vis-controls/config.js +13 -0
- package/components/vis-controls/config.js.map +1 -0
- package/components/vis-controls/index.d.ts +14 -0
- package/components/vis-controls/index.js +52 -0
- package/components/vis-controls/index.js.map +1 -0
- package/components/vis-controls/style.d.ts +11 -0
- package/{src/components/vis-controls/style.ts → components/vis-controls/style.js} +27 -34
- package/components/vis-controls/style.js.map +1 -0
- package/components/vis-controls/types.d.ts +13 -0
- package/components/vis-controls/types.js +8 -0
- package/components/vis-controls/types.js.map +1 -0
- package/components/xy-labels/config.d.ts +48 -0
- package/components/xy-labels/config.js +25 -0
- package/components/xy-labels/config.js.map +1 -0
- package/components/xy-labels/index.d.ts +15 -0
- package/components/xy-labels/index.js +87 -0
- package/components/xy-labels/index.js.map +1 -0
- package/components/xy-labels/modules/label.d.ts +9 -0
- package/components/xy-labels/modules/label.js +107 -0
- package/components/xy-labels/modules/label.js.map +1 -0
- package/components/xy-labels/style.d.ts +5 -0
- package/{src/components/xy-labels/style.ts → components/xy-labels/style.js} +14 -15
- package/components/xy-labels/style.js.map +1 -0
- package/components/xy-labels/types.d.ts +23 -0
- package/components/xy-labels/types.js +9 -0
- package/components/xy-labels/types.js.map +1 -0
- package/components.d.ts +51 -0
- package/components.js +29 -0
- package/components.js.map +1 -0
- package/containers/single-container/config.d.ts +12 -0
- package/containers/single-container/config.js +12 -0
- package/containers/single-container/config.js.map +1 -0
- package/containers/single-container/index.d.ts +19 -0
- package/containers/single-container/index.js +128 -0
- package/containers/single-container/index.js.map +1 -0
- package/containers/xy-container/config.d.ts +99 -0
- package/containers/xy-container/config.js +30 -0
- package/containers/xy-container/config.js.map +1 -0
- package/containers/xy-container/index.d.ts +34 -0
- package/containers/xy-container/index.js +330 -0
- package/containers/xy-container/index.js.map +1 -0
- package/containers.d.ts +6 -0
- package/containers.js +4 -0
- package/containers.js.map +1 -0
- package/core/component/config.d.ts +58 -0
- package/core/component/config.js +14 -0
- package/core/component/config.js.map +1 -0
- package/core/component/index.d.ts +43 -0
- package/core/component/index.js +118 -0
- package/core/component/index.js.map +1 -0
- package/core/component/types.d.ts +2 -0
- package/core/component/types.js +2 -0
- package/core/component/types.js.map +1 -0
- package/core/config/index.d.ts +3 -0
- package/core/config/index.js +16 -0
- package/core/config/index.js.map +1 -0
- package/core/container/config.d.ts +48 -0
- package/core/container/config.js +29 -0
- package/core/container/config.js.map +1 -0
- package/core/container/index.d.ts +26 -0
- package/core/container/index.js +106 -0
- package/core/container/index.js.map +1 -0
- package/core/xy-component/config.d.ts +38 -0
- package/core/xy-component/config.js +20 -0
- package/core/xy-component/config.js.map +1 -0
- package/core/xy-component/index.d.ts +27 -0
- package/core/xy-component/index.js +74 -0
- package/core/xy-component/index.js.map +1 -0
- package/data-models/core.d.ts +6 -0
- package/data-models/core.js +14 -0
- package/data-models/core.js.map +1 -0
- package/data-models/graph.d.ts +24 -0
- package/data-models/graph.js +107 -0
- package/data-models/graph.js.map +1 -0
- package/data-models/map-graph.d.ts +21 -0
- package/data-models/map-graph.js +62 -0
- package/data-models/map-graph.js.map +1 -0
- package/data-models/map.d.ts +5 -0
- package/data-models/map.js +12 -0
- package/data-models/map.js.map +1 -0
- package/data-models/series.d.ts +6 -0
- package/data-models/series.js +19 -0
- package/data-models/series.js.map +1 -0
- package/index.d.ts +7 -0
- package/index.js +55 -0
- package/index.js.map +1 -0
- package/maps/china-provinces.json.js +140373 -0
- package/maps/fr-regions.json.js +14162 -0
- package/maps/germany-regions.json.js +35760 -0
- package/maps/ind-regions.json.js +290584 -0
- package/maps/uk-regions.json.js +96233 -0
- package/maps/us-counties.json.js +206318 -0
- package/maps/us-states.json.js +16345 -0
- package/maps/world-110m-alpha.json.js +251366 -0
- package/maps/world-simple.json.js +89428 -0
- package/maps/world-simplest.json.js +28175 -0
- package/maps.d.ts +60 -0
- package/maps.js +23 -0
- package/package.json +1 -1
- package/styles/colors.d.ts +7 -0
- package/styles/colors.js +24 -0
- package/styles/colors.js.map +1 -0
- package/styles/index.d.ts +7 -0
- package/styles/index.js +38 -0
- package/styles/index.js.map +1 -0
- package/styles/sizes.d.ts +2 -0
- package/{src/styles/sizes.ts → styles/sizes.js} +8 -6
- package/styles/sizes.js.map +1 -0
- package/types/accessor.d.ts +5 -0
- package/types/accessor.js +2 -0
- package/types/accessor.js.map +1 -0
- package/types/component.d.ts +13 -0
- package/types/component.js +14 -0
- package/types/component.js.map +1 -0
- package/types/curve.d.ts +40 -0
- package/types/curve.js +46 -0
- package/types/curve.js.map +1 -0
- package/types/data.d.ts +7 -0
- package/types/data.js +2 -0
- package/types/data.js.map +1 -0
- package/types/direction.d.ts +6 -0
- package/types/direction.js +10 -0
- package/types/direction.js.map +1 -0
- package/types/graph.d.ts +35 -0
- package/types/graph.js +2 -0
- package/types/graph.js.map +1 -0
- package/types/map.d.ts +4 -0
- package/types/map.js +2 -0
- package/types/map.js.map +1 -0
- package/types/misc.d.ts +8 -0
- package/types/position.d.ts +20 -0
- package/types/position.js +27 -0
- package/types/position.js.map +1 -0
- package/types/scale.d.ts +23 -0
- package/types/scale.js +27 -0
- package/types/scale.js.map +1 -0
- package/types/shape.d.ts +7 -0
- package/types/shape.js +11 -0
- package/types/shape.js.map +1 -0
- package/types/spacing.d.ts +6 -0
- package/types/spacing.js +2 -0
- package/types/spacing.js.map +1 -0
- package/types/svg.d.ts +18 -0
- package/types/svg.js +22 -0
- package/types/svg.js.map +1 -0
- package/types/symbol.d.ts +18 -0
- package/types/symbol.js +24 -0
- package/types/symbol.js.map +1 -0
- package/types/text.d.ts +47 -0
- package/types/text.js +26 -0
- package/types/text.js.map +1 -0
- package/types.d.ts +27 -0
- package/types.js +30 -0
- package/types.js.map +1 -0
- package/utils/color.d.ts +10 -0
- package/utils/color.js +32 -0
- package/utils/color.js.map +1 -0
- package/utils/d3.d.ts +3 -0
- package/utils/d3.js +16 -0
- package/utils/d3.js.map +1 -0
- package/utils/data.d.ts +45 -0
- package/utils/data.js +274 -0
- package/utils/data.js.map +1 -0
- package/utils/html.d.ts +1 -0
- package/utils/html.js +16 -0
- package/utils/html.js.map +1 -0
- package/utils/map.d.ts +2 -0
- package/utils/map.js +20 -0
- package/utils/map.js.map +1 -0
- package/utils/misc.d.ts +9 -0
- package/utils/misc.js +47 -0
- package/utils/misc.js.map +1 -0
- package/utils/path.d.ts +23 -0
- package/utils/path.js +144 -0
- package/utils/path.js.map +1 -0
- package/utils/scale.d.ts +1 -0
- package/utils/style.d.ts +6 -0
- package/utils/style.js +24 -0
- package/utils/style.js.map +1 -0
- package/utils/svg.d.ts +3 -0
- package/utils/text.d.ts +139 -0
- package/utils/text.js +443 -0
- package/utils/text.js.map +1 -0
- package/utils/type.d.ts +5 -0
- package/declaration.d.ts +0 -1
- package/index.ts +0 -1
- package/licences.txt +0 -43
- package/maps.ts +0 -1
- package/rollup.config.js +0 -71
- package/rules/ts-getter-setter.js +0 -35
- package/src/components/area/config.ts +0 -29
- package/src/components/area/index.ts +0 -133
- package/src/components/area/types.ts +0 -2
- package/src/components/axis/config.ts +0 -76
- package/src/components/axis/index.ts +0 -363
- package/src/components/axis/types.ts +0 -4
- package/src/components/brush/config.ts +0 -51
- package/src/components/brush/index.ts +0 -233
- package/src/components/brush/types.ts +0 -8
- package/src/components/bullet-legend/config.ts +0 -38
- package/src/components/bullet-legend/index.ts +0 -104
- package/src/components/bullet-legend/types.ts +0 -7
- package/src/components/chord-diagram/config.ts +0 -53
- package/src/components/chord-diagram/index.ts +0 -401
- package/src/components/chord-diagram/modules/label.ts +0 -155
- package/src/components/chord-diagram/modules/link.ts +0 -91
- package/src/components/chord-diagram/modules/node.ts +0 -80
- package/src/components/chord-diagram/types.ts +0 -68
- package/src/components/crosshair/config.ts +0 -48
- package/src/components/crosshair/index.ts +0 -220
- package/src/components/crosshair/types.ts +0 -15
- package/src/components/donut/config.ts +0 -65
- package/src/components/donut/index.ts +0 -148
- package/src/components/donut/modules/arc.ts +0 -86
- package/src/components/donut/types.ts +0 -17
- package/src/components/flow-legend/config.ts +0 -31
- package/src/components/flow-legend/index.ts +0 -103
- package/src/components/flow-legend/types.ts +0 -10
- package/src/components/free-brush/config.ts +0 -54
- package/src/components/free-brush/index.ts +0 -207
- package/src/components/free-brush/types.ts +0 -8
- package/src/components/graph/config.ts +0 -280
- package/src/components/graph/index.ts +0 -809
- package/src/components/graph/modules/layout-helpers.ts +0 -96
- package/src/components/graph/modules/layout.ts +0 -502
- package/src/components/graph/modules/link/helper.ts +0 -105
- package/src/components/graph/modules/link/index.ts +0 -302
- package/src/components/graph/modules/node/helper.ts +0 -162
- package/src/components/graph/modules/node/index.ts +0 -343
- package/src/components/graph/modules/panel/helper.ts +0 -160
- package/src/components/graph/modules/panel/index.ts +0 -137
- package/src/components/graph/modules/shape.ts +0 -108
- package/src/components/graph/modules/zoom-levels.ts +0 -6
- package/src/components/graph/style.ts +0 -72
- package/src/components/graph/types.ts +0 -152
- package/src/components/grouped-bar/config.ts +0 -40
- package/src/components/grouped-bar/index.ts +0 -325
- package/src/components/leaflet-flow-map/config.ts +0 -60
- package/src/components/leaflet-flow-map/index.ts +0 -279
- package/src/components/leaflet-flow-map/renderer-utils.ts +0 -14
- package/src/components/leaflet-flow-map/renderer.ts +0 -146
- package/src/components/leaflet-flow-map/types.ts +0 -18
- package/src/components/leaflet-map/config.ts +0 -234
- package/src/components/leaflet-map/index.ts +0 -808
- package/src/components/leaflet-map/leaflet.css +0 -625
- package/src/components/leaflet-map/modules/clusterBackground.ts +0 -34
- package/src/components/leaflet-map/modules/donut.ts +0 -37
- package/src/components/leaflet-map/modules/map.ts +0 -178
- package/src/components/leaflet-map/modules/node.ts +0 -208
- package/src/components/leaflet-map/modules/selectionRing.ts +0 -63
- package/src/components/leaflet-map/modules/utils.ts +0 -290
- package/src/components/leaflet-map/renderer/map-style.ts +0 -24
- package/src/components/leaflet-map/renderer/mapboxgl/mapboxgl-dark-theme.json +0 -35
- package/src/components/leaflet-map/renderer/mapboxgl/mapboxgl-light-theme.json +0 -35
- package/src/components/leaflet-map/renderer/mapboxgl/mapboxgl-settings.json +0 -2185
- package/src/components/leaflet-map/renderer/mapboxgl-layer.ts +0 -43
- package/src/components/leaflet-map/renderer/mapboxgl-utils.ts +0 -40
- package/src/components/leaflet-map/style.ts +0 -217
- package/src/components/leaflet-map/types.ts +0 -75
- package/src/components/line/config.ts +0 -34
- package/src/components/line/index.ts +0 -188
- package/src/components/line/types.ts +0 -3
- package/src/components/nested-donut/config.ts +0 -75
- package/src/components/nested-donut/index.ts +0 -176
- package/src/components/nested-donut/modules/arc.ts +0 -78
- package/src/components/nested-donut/modules/label.ts +0 -63
- package/src/components/nested-donut/style.ts +0 -82
- package/src/components/nested-donut/types.ts +0 -29
- package/src/components/sankey/config.ts +0 -195
- package/src/components/sankey/index.ts +0 -387
- package/src/components/sankey/modules/label.ts +0 -228
- package/src/components/sankey/modules/link.ts +0 -141
- package/src/components/sankey/modules/node.ts +0 -221
- package/src/components/sankey/types.ts +0 -95
- package/src/components/scatter/config.ts +0 -49
- package/src/components/scatter/index.ts +0 -220
- package/src/components/scatter/modules/point.ts +0 -123
- package/src/components/scatter/modules/utils.ts +0 -150
- package/src/components/scatter/types.ts +0 -21
- package/src/components/stacked-bar/config.ts +0 -42
- package/src/components/stacked-bar/index.ts +0 -267
- package/src/components/stacked-bar/types.ts +0 -5
- package/src/components/timeline/config.ts +0 -49
- package/src/components/timeline/index.ts +0 -302
- package/src/components/tooltip/config.ts +0 -69
- package/src/components/tooltip/index.ts +0 -220
- package/src/components/topojson-map/config.ts +0 -124
- package/src/components/topojson-map/index.ts +0 -436
- package/src/components/topojson-map/types.ts +0 -123
- package/src/components/topojson-map/utils.ts +0 -29
- package/src/components/vis-controls/config.ts +0 -16
- package/src/components/vis-controls/index.ts +0 -68
- package/src/components/vis-controls/types.ts +0 -14
- package/src/components/xy-labels/config.ts +0 -56
- package/src/components/xy-labels/index.ts +0 -109
- package/src/components/xy-labels/modules/label.ts +0 -140
- package/src/components/xy-labels/types.ts +0 -26
- package/src/components.ts +0 -56
- package/src/containers/single-container/config.ts +0 -15
- package/src/containers/single-container/index.ts +0 -150
- package/src/containers/xy-container/config.ts +0 -112
- package/src/containers/xy-container/index.ts +0 -407
- package/src/containers.ts +0 -6
- package/src/core/component/config.ts +0 -61
- package/src/core/component/index.ts +0 -154
- package/src/core/component/types.ts +0 -9
- package/src/core/config/index.ts +0 -12
- package/src/core/container/config.ts +0 -56
- package/src/core/container/index.ts +0 -136
- package/src/core/xy-component/config.ts +0 -46
- package/src/core/xy-component/index.ts +0 -90
- package/src/data-models/core.ts +0 -15
- package/src/data-models/graph.ts +0 -138
- package/src/data-models/map-graph.ts +0 -72
- package/src/data-models/map.ts +0 -18
- package/src/data-models/series.ts +0 -16
- package/src/index.ts +0 -7
- package/src/maps/china-provinces.json +0 -1
- package/src/maps/fr-regions.json +0 -1
- package/src/maps/germany-regions.json +0 -1
- package/src/maps/ind-regions.json +0 -1
- package/src/maps/uk-regions.json +0 -1
- package/src/maps/us-counties.json +0 -1
- package/src/maps/us-states.json +0 -1
- package/src/maps/world-110m-alpha.json +0 -1
- package/src/maps/world-simple.json +0 -1
- package/src/maps/world-simplest.json +0 -1
- package/src/maps.ts +0 -34
- package/src/styles/colors.ts +0 -28
- package/src/styles/index.ts +0 -38
- package/src/types/accessor.ts +0 -5
- package/src/types/component.ts +0 -15
- package/src/types/curve.ts +0 -62
- package/src/types/data.ts +0 -5
- package/src/types/direction.ts +0 -6
- package/src/types/graph.ts +0 -40
- package/src/types/map.ts +0 -5
- package/src/types/misc.ts +0 -10
- package/src/types/position.ts +0 -23
- package/src/types/scale.ts +0 -47
- package/src/types/shape.ts +0 -7
- package/src/types/spacing.ts +0 -6
- package/src/types/svg.ts +0 -32
- package/src/types/symbol.ts +0 -21
- package/src/types/text.ts +0 -71
- package/src/types.ts +0 -31
- package/src/utils/color.ts +0 -41
- package/src/utils/d3.ts +0 -15
- package/src/utils/data.ts +0 -328
- package/src/utils/html.ts +0 -13
- package/src/utils/map.ts +0 -29
- package/src/utils/misc.ts +0 -54
- package/src/utils/path.ts +0 -196
- package/src/utils/scale.ts +0 -1
- package/src/utils/style.ts +0 -37
- package/src/utils/svg.ts +0 -49
- package/src/utils/text.ts +0 -529
- package/src/utils/type.ts +0 -9
- package/tsconfig.json +0 -29
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import type L from 'leaflet'
|
|
2
|
-
import type Maplibre from 'maplibre-gl'
|
|
3
|
-
import type { Map } from 'maplibre-gl'
|
|
4
|
-
|
|
5
|
-
import { injectGlobal } from '@emotion/css'
|
|
6
|
-
|
|
7
|
-
// Utils
|
|
8
|
-
import { isObject } from 'utils/data'
|
|
9
|
-
|
|
10
|
-
// Types
|
|
11
|
-
import { GenericDataRecord } from 'types/data'
|
|
12
|
-
|
|
13
|
-
// Config
|
|
14
|
-
import { LeafletMapConfig } from '../config'
|
|
15
|
-
import { MapLibreStyleSpecs } from './map-style'
|
|
16
|
-
import { MaplibreGLLayer } from './leaflet-maplibre-gl'
|
|
17
|
-
|
|
18
|
-
// Inject MapLibreGL global style
|
|
19
|
-
import mapLibreStyles from './maplibre-gl.css.js'
|
|
20
|
-
injectGlobal(mapLibreStyles)
|
|
21
|
-
|
|
22
|
-
export function getMaplibreGLLayer<Datum extends GenericDataRecord> (config: LeafletMapConfig<Datum>, leaflet: typeof L, maplibre: typeof Maplibre): L.Layer & { getMaplibreMap(): Map } {
|
|
23
|
-
const { accessToken, style } = config
|
|
24
|
-
|
|
25
|
-
if (isObject(style) && !(style as MapLibreStyleSpecs).glyphs) {
|
|
26
|
-
console.warn('Unovis | Leaflet Map: Glyphs URL is required in order to show the map. Set `mapboxglGlyphs` URL in the style settings')
|
|
27
|
-
return
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
if (isObject(style) && !(style as MapLibreStyleSpecs).sources) {
|
|
31
|
-
console.warn('Unovis | Leaflet Map: Sources settings are required in order to show map. Set the `sources` property in the style settings')
|
|
32
|
-
return
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
36
|
-
// @ts-ignore
|
|
37
|
-
const layer = MaplibreGLLayer(leaflet, maplibre, {
|
|
38
|
-
style: style,
|
|
39
|
-
accessToken: accessToken || 'not-needed',
|
|
40
|
-
})
|
|
41
|
-
|
|
42
|
-
return layer
|
|
43
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
// Utils
|
|
2
|
-
import { throttle } from 'utils/data'
|
|
3
|
-
|
|
4
|
-
export function constraintMapView (map: L.Map, latMin = -75, latMax = 85): void {
|
|
5
|
-
const bounds = map.getBounds()
|
|
6
|
-
const northEast = bounds.getNorthEast()
|
|
7
|
-
const southWest = bounds.getSouthWest()
|
|
8
|
-
|
|
9
|
-
if (northEast.lat > latMax && southWest.lat < latMin) {
|
|
10
|
-
map.fitBounds([
|
|
11
|
-
[latMin, 0],
|
|
12
|
-
[latMax, 0],
|
|
13
|
-
])
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export function mapboxglWheelEvent (map, layer, event): void {
|
|
18
|
-
const { wheelDelta, deltaY } = event
|
|
19
|
-
if (!layer || !layer.getMaplibreMap) return
|
|
20
|
-
const mapboxmap = layer.getMaplibreMap()
|
|
21
|
-
const delta = wheelDelta || deltaY * -1 // We use deltaY for Firefox because wheelDelta is not implemented there
|
|
22
|
-
|
|
23
|
-
// Prevent Map from being zoomed-out too far away
|
|
24
|
-
const bounds = map.getBounds()
|
|
25
|
-
const northEast = bounds.getNorthEast()
|
|
26
|
-
const southWest = bounds.getSouthWest()
|
|
27
|
-
const latMin = -70
|
|
28
|
-
const latMax = 80
|
|
29
|
-
if (delta < 0 && northEast.lat > latMax && southWest.lat < latMin) {
|
|
30
|
-
constraintMapView(map)
|
|
31
|
-
return
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
const zoom = mapboxmap.getZoom() + delta * 0.001
|
|
35
|
-
const xy = map.mouseEventToLayerPoint(event)
|
|
36
|
-
map.setZoomAround(xy, zoom + 1, { animate: false, duration: 0 })
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export const mapboxglWheelEventThrottled = throttle(mapboxglWheelEvent, 32)
|
|
40
|
-
export const constraintMapViewThrottled = throttle(constraintMapView, 1000)
|
|
@@ -1,217 +0,0 @@
|
|
|
1
|
-
import { css, injectGlobal } from '@emotion/css'
|
|
2
|
-
|
|
3
|
-
// Utils
|
|
4
|
-
import { getCssVarNames, injectGlobalCssVariables } from 'utils/style'
|
|
5
|
-
|
|
6
|
-
// Inject Leaflet global style
|
|
7
|
-
// eslint-disable-next-line
|
|
8
|
-
import leafletCSS from './leaflet.css'
|
|
9
|
-
injectGlobal(leafletCSS)
|
|
10
|
-
|
|
11
|
-
const cssVarDefaults = {
|
|
12
|
-
'--vis-map-container-background-color': '#dfe5eb',
|
|
13
|
-
/* Undefined by default to allow proper fallback to var(--vis-font-family) */
|
|
14
|
-
'--vis-map-label-font-family': undefined,
|
|
15
|
-
|
|
16
|
-
'--vis-map-point-default-fill-color': '#B9BEC3',
|
|
17
|
-
'--vis-map-point-ring-fill-color': '#ffffff',
|
|
18
|
-
'--vis-map-point-default-stroke-color': '#959da3',
|
|
19
|
-
'--vis-map-point-default-stroke-width': '0px',
|
|
20
|
-
'--vis-map-point-default-cursor': 'default',
|
|
21
|
-
|
|
22
|
-
'--vis-map-cluster-default-fill-color': '#fff',
|
|
23
|
-
'--vis-map-cluster-default-stroke-color': '#B9BEC3',
|
|
24
|
-
'--vis-map-cluster-default-stroke-width': '1.5px',
|
|
25
|
-
'--vis-map-cluster-donut-fill-color': '#959da3',
|
|
26
|
-
|
|
27
|
-
'--vis-map-cluster-inner-label-text-color-dark': '#5b5f6d',
|
|
28
|
-
'--vis-map-cluster-inner-label-text-color-light': '#fff',
|
|
29
|
-
|
|
30
|
-
'--vis-map-point-inner-label-text-color-dark': '#5b5f6d',
|
|
31
|
-
'--vis-map-point-inner-label-text-color-light': '#fff',
|
|
32
|
-
|
|
33
|
-
'--vis-map-point-bottom-label-text-color': '#5b5f6d',
|
|
34
|
-
'--vis-map-point-bottom-label-font-size': '10px',
|
|
35
|
-
|
|
36
|
-
'--vis-map-cluster-expanded-background-fill-color': '#fff',
|
|
37
|
-
|
|
38
|
-
/* Dark Theme */
|
|
39
|
-
'--vis-dark-map-container-background-color': '#dfe5eb',
|
|
40
|
-
'--vis-dark-map-point-default-fill-color': '#B9BEC3',
|
|
41
|
-
'--vis-dark-map-point-default-stroke-color': '#959da3',
|
|
42
|
-
'--vis-dark-map-point-ring-fill-color': '#5b5f6d',
|
|
43
|
-
|
|
44
|
-
'--vis-dark-map-cluster-default-fill-color': '#5b5f6d',
|
|
45
|
-
'--vis-dark-map-cluster-default-stroke-color': '#B9BEC3',
|
|
46
|
-
'--vis-dark-map-cluster-donut-fill-color': '#959da3',
|
|
47
|
-
|
|
48
|
-
'--vis-dark-map-cluster-inner-label-text-color-dark': '#5b5f6d',
|
|
49
|
-
'--vis-dark-map-cluster-inner-label-text-color-light': '#fff',
|
|
50
|
-
|
|
51
|
-
'--vis-dark-map-point-inner-label-text-color-dark': '#5b5f6d',
|
|
52
|
-
'--vis-dark-map-point-inner-label-text-color-light': '#fff',
|
|
53
|
-
|
|
54
|
-
'--vis-dark-map-point-bottom-label-text-color': '#5b5f6d',
|
|
55
|
-
|
|
56
|
-
'--vis-dark-map-cluster-expanded-background-fill-color': '#fff',
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
export const root = css`
|
|
60
|
-
label: leaflet-map-component;
|
|
61
|
-
|
|
62
|
-
width: 100%;
|
|
63
|
-
height: 100%;
|
|
64
|
-
position: absolute;
|
|
65
|
-
background-color: var(--vis-map-container-background-color);
|
|
66
|
-
|
|
67
|
-
canvas {
|
|
68
|
-
pointer-events: all;
|
|
69
|
-
}
|
|
70
|
-
`
|
|
71
|
-
|
|
72
|
-
export const variables = getCssVarNames(cssVarDefaults)
|
|
73
|
-
injectGlobalCssVariables(cssVarDefaults, root)
|
|
74
|
-
|
|
75
|
-
export const background = `${root} canvas`
|
|
76
|
-
|
|
77
|
-
export const points = css`
|
|
78
|
-
label: g-points;
|
|
79
|
-
`
|
|
80
|
-
|
|
81
|
-
export const point = css`
|
|
82
|
-
label: g-point;
|
|
83
|
-
`
|
|
84
|
-
|
|
85
|
-
export const pointPath = css`
|
|
86
|
-
label: point-path;
|
|
87
|
-
|
|
88
|
-
stroke-opacity: 1;
|
|
89
|
-
fill-opacity: 1.0;
|
|
90
|
-
fill: var(${variables.mapPointDefaultFillColor});
|
|
91
|
-
stroke: var(${variables.mapPointDefaultStrokeColor});
|
|
92
|
-
stroke-width: var(${variables.mapPointDefaultStrokeWidth});
|
|
93
|
-
pointer-events: fill !important;
|
|
94
|
-
transition: .2s stroke-width, .3s transform;
|
|
95
|
-
cursor: var(${variables.mapPointDefaultCursor});
|
|
96
|
-
|
|
97
|
-
&:hover {
|
|
98
|
-
stroke-width: 2;
|
|
99
|
-
fill-opacity: 1;
|
|
100
|
-
animation: none;
|
|
101
|
-
transform: scale(1.1);
|
|
102
|
-
}
|
|
103
|
-
`
|
|
104
|
-
|
|
105
|
-
export const pointPathRing = css`
|
|
106
|
-
label: point-path-ring;
|
|
107
|
-
fill: var(${variables.mapPointRingFillColor});
|
|
108
|
-
`
|
|
109
|
-
|
|
110
|
-
export const pointPathCluster = css`
|
|
111
|
-
label: point-path-cluster;
|
|
112
|
-
fill-opacity: 0.9;
|
|
113
|
-
stroke: none;
|
|
114
|
-
animation: none;
|
|
115
|
-
fill: var(${variables.mapClusterDefaultFillColor});
|
|
116
|
-
stroke: var(${variables.mapClusterDefaultStrokeColor});
|
|
117
|
-
stroke-width: var(${variables.mapClusterDefaultStrokeWidth});
|
|
118
|
-
`
|
|
119
|
-
|
|
120
|
-
export const pointSelectionRing = css`
|
|
121
|
-
label: point-selection-ring;
|
|
122
|
-
stroke: var(${variables.mapPointDefaultFillColor});
|
|
123
|
-
`
|
|
124
|
-
|
|
125
|
-
export const pointSelection = css`
|
|
126
|
-
label: point-selection;
|
|
127
|
-
|
|
128
|
-
opacity: 0;
|
|
129
|
-
transform: scale(1);
|
|
130
|
-
|
|
131
|
-
&.active {
|
|
132
|
-
transition: all 400ms cubic-bezier(0.230, 1.000, 0.320, 1.000);
|
|
133
|
-
opacity: 1;
|
|
134
|
-
transform: scale(1.25);
|
|
135
|
-
}
|
|
136
|
-
`
|
|
137
|
-
|
|
138
|
-
export const innerLabel = css`
|
|
139
|
-
label: inner-label;
|
|
140
|
-
|
|
141
|
-
text-anchor: middle;
|
|
142
|
-
fill: var(${variables.mapPointInnerLabelTextColorDark});
|
|
143
|
-
font-family: var(${variables.mapLabelFontFamily}, var(--vis-font-family));
|
|
144
|
-
pointer-events: none;
|
|
145
|
-
font-weight: 600;
|
|
146
|
-
`
|
|
147
|
-
|
|
148
|
-
export const innerLabelCluster = css`
|
|
149
|
-
label: inner-label-cluster;
|
|
150
|
-
fill: var(${variables.mapPointInnerLabelTextColorDark});
|
|
151
|
-
`
|
|
152
|
-
|
|
153
|
-
export const bottomLabel = css`
|
|
154
|
-
label: bottom-label;
|
|
155
|
-
|
|
156
|
-
text-anchor: middle;
|
|
157
|
-
fill: var(${variables.mapPointBottomLabelTextColor});
|
|
158
|
-
font-family: var(${variables.mapLabelFontFamily}, var(--vis-font-family));
|
|
159
|
-
pointer-events: none;
|
|
160
|
-
font-weight: 600;
|
|
161
|
-
`
|
|
162
|
-
|
|
163
|
-
export const donutCluster = css`
|
|
164
|
-
label: donut-cluster;
|
|
165
|
-
|
|
166
|
-
transform: scale(1);
|
|
167
|
-
transition: .3s transform;
|
|
168
|
-
path {
|
|
169
|
-
fill: var(${variables.mapClusterDonutFillColor});
|
|
170
|
-
stroke-width: 0.5;
|
|
171
|
-
}
|
|
172
|
-
|
|
173
|
-
&:hover {
|
|
174
|
-
transform: scale(1.1);
|
|
175
|
-
}
|
|
176
|
-
`
|
|
177
|
-
|
|
178
|
-
export const svgOverlay = css`
|
|
179
|
-
label: svg-overlay;
|
|
180
|
-
position: absolute;
|
|
181
|
-
pointer-events: none;
|
|
182
|
-
`
|
|
183
|
-
|
|
184
|
-
export const backgroundRect = css`
|
|
185
|
-
label: background-rect;
|
|
186
|
-
|
|
187
|
-
opacity: 0;
|
|
188
|
-
`
|
|
189
|
-
|
|
190
|
-
export const clusterBackground = css`
|
|
191
|
-
label: cluster-background;
|
|
192
|
-
|
|
193
|
-
fill: var(${variables.mapClusterExpandedBackgroundFillColor});
|
|
194
|
-
opacity: 0.6;
|
|
195
|
-
visibility: hidden;
|
|
196
|
-
|
|
197
|
-
&.active {
|
|
198
|
-
visibility: visible;
|
|
199
|
-
}
|
|
200
|
-
`
|
|
201
|
-
|
|
202
|
-
export const onFeatureHover = css`
|
|
203
|
-
label: feature-hovered;
|
|
204
|
-
`
|
|
205
|
-
|
|
206
|
-
export const mapboxglCanvas = css`
|
|
207
|
-
pointer-events: all;
|
|
208
|
-
cursor: grab;
|
|
209
|
-
|
|
210
|
-
&${`.${onFeatureHover}`} {
|
|
211
|
-
cursor: default;
|
|
212
|
-
}
|
|
213
|
-
`
|
|
214
|
-
|
|
215
|
-
export const map = css`
|
|
216
|
-
label: map;
|
|
217
|
-
`
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
import { LatLng } from 'leaflet'
|
|
2
|
-
import Supercluster, { ClusterProperties } from 'supercluster'
|
|
3
|
-
import { GenericDataRecord } from 'types/data'
|
|
4
|
-
|
|
5
|
-
export enum LeafletMapRenderer {
|
|
6
|
-
Raster = 'raster',
|
|
7
|
-
MapLibre = 'maplibre',
|
|
8
|
-
}
|
|
9
|
-
|
|
10
|
-
export enum LeafletMapPointShape {
|
|
11
|
-
Square = 'square',
|
|
12
|
-
Circle = 'circle',
|
|
13
|
-
Triangle = 'triangle',
|
|
14
|
-
Ring = 'ring',
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
export type LeafletMapPieDatum = {
|
|
18
|
-
value: number;
|
|
19
|
-
name: string;
|
|
20
|
-
color: string;
|
|
21
|
-
className?: string;
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
export interface LeafletMapPointStyle {
|
|
25
|
-
color: string;
|
|
26
|
-
className?: string;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
export type LeafletMapPointStyles<D> = { [key in keyof D]?: LeafletMapPointStyle }
|
|
30
|
-
|
|
31
|
-
export type PointExpandedClusterProperties<D extends GenericDataRecord> = D & {
|
|
32
|
-
// Expanded cluster related data:
|
|
33
|
-
// eslint-disable-next-line no-use-before-define
|
|
34
|
-
expandedClusterPoint?: LeafletMapPoint<D>;
|
|
35
|
-
r?: number;
|
|
36
|
-
dx?: number;
|
|
37
|
-
dy?: number;
|
|
38
|
-
}
|
|
39
|
-
|
|
40
|
-
export type LeafletMapClusterDatum<D extends GenericDataRecord> = Partial<D> & ClusterProperties & {
|
|
41
|
-
clusterIndex?: Supercluster<D>;
|
|
42
|
-
clusterPoints?: D[];
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export type LeafletMapPointDatum<D extends GenericDataRecord> = D & PointExpandedClusterProperties<D> & {
|
|
46
|
-
id: string | number;
|
|
47
|
-
shape: LeafletMapPointShape;
|
|
48
|
-
};
|
|
49
|
-
|
|
50
|
-
export type LeafletMapPoint<D extends GenericDataRecord> = {
|
|
51
|
-
geometry: GeoJSON.Point;
|
|
52
|
-
bbox: { x1: number; x2: number; y1: number; y2: number };
|
|
53
|
-
radius: number;
|
|
54
|
-
path: string;
|
|
55
|
-
color: string;
|
|
56
|
-
id: number | string;
|
|
57
|
-
properties: LeafletMapPointDatum<D> | LeafletMapClusterDatum<D>;
|
|
58
|
-
donutData: LeafletMapPieDatum[];
|
|
59
|
-
isCluster: boolean;
|
|
60
|
-
clusterIndex: Supercluster<D, Supercluster.AnyProps>;
|
|
61
|
-
clusterPoints?: D[];
|
|
62
|
-
_zIndex: number;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
|
-
export type Bounds = {
|
|
66
|
-
northEast: { lat: number; lng: number };
|
|
67
|
-
southWest: { lat: number; lng: number };
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
export type MapZoomState = {
|
|
71
|
-
mapCenter: LatLng;
|
|
72
|
-
zoomLevel: number;
|
|
73
|
-
bounds: Bounds;
|
|
74
|
-
userDriven: boolean;
|
|
75
|
-
}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import { XYComponentConfigInterface, XYComponentConfig } from 'core/xy-component/config'
|
|
2
|
-
|
|
3
|
-
// Types
|
|
4
|
-
import { CurveType } from 'types/curve'
|
|
5
|
-
import { GenericAccessor, StringAccessor } from 'types/accessor'
|
|
6
|
-
|
|
7
|
-
export interface LineConfigInterface<Datum> extends XYComponentConfigInterface<Datum> {
|
|
8
|
-
/** Curve type from the CurveType enum. Default: `CurveType.MonotoneX` */
|
|
9
|
-
curveType?: CurveType;
|
|
10
|
-
/** Line width in pixels. Default: `2` */
|
|
11
|
-
lineWidth?: number;
|
|
12
|
-
/** Line dash array, see SVG's stroke-dasharray. Default: `undefined` */
|
|
13
|
-
lineDashArray?: GenericAccessor<number[], Datum>;
|
|
14
|
-
/** When a data point has an `undefined`, `NaN`, or other no-data value, they'll be replaced with a value specified here.
|
|
15
|
-
* Setting this property to `undefined` will lead to having the line break when there's no data, and continue when
|
|
16
|
-
* the data appears again. If you set it to `null`, the values will be treated as numerical `0` values and the line
|
|
17
|
-
* won't break; however if the whole dataset consists of only `null`s, the line won't be displayed.
|
|
18
|
-
* Default: `undefined`
|
|
19
|
-
*/
|
|
20
|
-
fallbackValue?: number | undefined | null;
|
|
21
|
-
/** Highlight line on hover. Default: `false` */
|
|
22
|
-
highlightOnHover?: boolean;
|
|
23
|
-
/** Optional link cursor. Default: `null` */
|
|
24
|
-
cursor?: StringAccessor<Datum[]>;
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
export class LineConfig<Datum> extends XYComponentConfig<Datum> implements LineConfigInterface<Datum> {
|
|
28
|
-
curveType = CurveType.MonotoneX
|
|
29
|
-
lineWidth = 2
|
|
30
|
-
lineDashArray = undefined
|
|
31
|
-
fallbackValue = undefined
|
|
32
|
-
highlightOnHover = false
|
|
33
|
-
cursor = null
|
|
34
|
-
}
|
|
@@ -1,188 +0,0 @@
|
|
|
1
|
-
import { select } from 'd3-selection'
|
|
2
|
-
import { Transition } from 'd3-transition'
|
|
3
|
-
import { CurveFactoryLineOnly, Line as LineGenInterface, line } from 'd3-shape'
|
|
4
|
-
import { interpolatePath } from 'd3-interpolate-path'
|
|
5
|
-
|
|
6
|
-
// Core
|
|
7
|
-
import { XYComponentCore } from 'core/xy-component'
|
|
8
|
-
|
|
9
|
-
// Utils
|
|
10
|
-
import { getNumber, getString, getValue, isArray, isNumber } from 'utils/data'
|
|
11
|
-
import { smartTransition } from 'utils/d3'
|
|
12
|
-
import { getColor } from 'utils/color'
|
|
13
|
-
|
|
14
|
-
// Types
|
|
15
|
-
import { NumericAccessor } from 'types/accessor'
|
|
16
|
-
import { Spacing } from 'types/spacing'
|
|
17
|
-
import { Curve, CurveType } from 'types/curve'
|
|
18
|
-
import { Direction } from 'types/direction'
|
|
19
|
-
|
|
20
|
-
// Local Types
|
|
21
|
-
import { LineData, LineDatum } from './types'
|
|
22
|
-
|
|
23
|
-
// Config
|
|
24
|
-
import { LineConfig, LineConfigInterface } from './config'
|
|
25
|
-
|
|
26
|
-
// Styles
|
|
27
|
-
import * as s from './style'
|
|
28
|
-
|
|
29
|
-
export class Line<Datum> extends XYComponentCore<Datum, LineConfig<Datum>, LineConfigInterface<Datum>> {
|
|
30
|
-
static selectors = s
|
|
31
|
-
config: LineConfig<Datum> = new LineConfig()
|
|
32
|
-
lineGen: LineGenInterface<{ x: number; y: number; defined: boolean }>
|
|
33
|
-
curve: CurveFactoryLineOnly = Curve[CurveType.MonotoneX]
|
|
34
|
-
events = {
|
|
35
|
-
[Line.selectors.line]: {
|
|
36
|
-
mouseover: this._highlight.bind(this),
|
|
37
|
-
mouseleave: this._resetHighlight.bind(this),
|
|
38
|
-
},
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
constructor (config?: LineConfigInterface<Datum>) {
|
|
42
|
-
super()
|
|
43
|
-
if (config) this.config.init(config)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
get bleed (): Spacing {
|
|
47
|
-
const { config: { lineWidth } } = this
|
|
48
|
-
const yDomain = this.yScale.domain() as [number, number]
|
|
49
|
-
const yDirection = this.yScale.range()[0] > this.yScale.range()[1]
|
|
50
|
-
? Direction.North
|
|
51
|
-
: Direction.South
|
|
52
|
-
const isYDirectionSouth = yDirection === Direction.South
|
|
53
|
-
|
|
54
|
-
const isLineThick = lineWidth > 3
|
|
55
|
-
const isLineVeryThick = lineWidth >= 10
|
|
56
|
-
return {
|
|
57
|
-
top: !isLineVeryThick && (
|
|
58
|
-
(!isYDirectionSouth && (yDomain[1] === 0)) || (isYDirectionSouth && (yDomain[0] === 0))
|
|
59
|
-
) ? 0 : lineWidth / 2,
|
|
60
|
-
bottom: !isLineVeryThick && (
|
|
61
|
-
(!isYDirectionSouth && (yDomain[0] === 0)) || (isYDirectionSouth && (yDomain[1] === 0))
|
|
62
|
-
) ? 0 : lineWidth / 2,
|
|
63
|
-
left: isLineThick ? lineWidth / 2 : 0,
|
|
64
|
-
right: isLineThick ? lineWidth / 2 : 0,
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
_render (customDuration?: number): void {
|
|
69
|
-
super._render(customDuration)
|
|
70
|
-
const { config, datamodel: { data } } = this
|
|
71
|
-
const duration = isNumber(customDuration) ? customDuration : config.duration
|
|
72
|
-
|
|
73
|
-
this.curve = Curve[config.curveType]
|
|
74
|
-
this.lineGen = line<{ x: number; y: number; defined: boolean }>()
|
|
75
|
-
.x(d => d.x)
|
|
76
|
-
.y(d => d.y)
|
|
77
|
-
.defined(d => d.defined)
|
|
78
|
-
.curve(this.curve)
|
|
79
|
-
|
|
80
|
-
const yAccessors = (isArray(config.y) ? config.y : [config.y]) as NumericAccessor<Datum>[]
|
|
81
|
-
const lineDataX = data.map((d, i) => this.xScale(getNumber(d, config.x, i)))
|
|
82
|
-
const lineData: LineData[] = yAccessors.map(a => {
|
|
83
|
-
const ld: LineDatum[] = data.map((d, i) => {
|
|
84
|
-
const rawValue = getNumber(d, a, i)
|
|
85
|
-
// If `rawValue` is not numerical or if it's not finite (`NaN`, `undefined`, ...), we replace it with `config.fallbackValue`
|
|
86
|
-
const value = (isNumber(rawValue) || (rawValue === null)) && isFinite(rawValue) ? rawValue : config.fallbackValue
|
|
87
|
-
return {
|
|
88
|
-
x: lineDataX[i],
|
|
89
|
-
y: this.yScale(value ?? 0),
|
|
90
|
-
defined: isFinite(value),
|
|
91
|
-
value,
|
|
92
|
-
}
|
|
93
|
-
})
|
|
94
|
-
|
|
95
|
-
const defined = ld.reduce((def, d) => (d.defined || def), false)
|
|
96
|
-
// If the line consists only of `null` values, we'll still render it but it'll be invisible.
|
|
97
|
-
// Such trick allows us to have better animated transitions.
|
|
98
|
-
const visible = defined && ld.some(d => d.value !== null)
|
|
99
|
-
return {
|
|
100
|
-
values: ld,
|
|
101
|
-
defined,
|
|
102
|
-
visible,
|
|
103
|
-
}
|
|
104
|
-
})
|
|
105
|
-
|
|
106
|
-
const lines = this.g
|
|
107
|
-
.selectAll<SVGGElement, LineData>(`.${s.line}`)
|
|
108
|
-
.data(lineData)
|
|
109
|
-
|
|
110
|
-
const linesEnter = lines.enter().append('g')
|
|
111
|
-
.attr('class', s.line)
|
|
112
|
-
|
|
113
|
-
linesEnter
|
|
114
|
-
.append('path')
|
|
115
|
-
.attr('class', s.linePath)
|
|
116
|
-
.attr('d', this._emptyPath())
|
|
117
|
-
.attr('stroke', (d, i) => getColor(data, config.color, i))
|
|
118
|
-
.attr('stroke-opacity', 0)
|
|
119
|
-
.attr('stroke-width', config.lineWidth)
|
|
120
|
-
|
|
121
|
-
linesEnter
|
|
122
|
-
.append('path')
|
|
123
|
-
.attr('class', s.lineSelectionHelper)
|
|
124
|
-
.attr('d', this._emptyPath())
|
|
125
|
-
|
|
126
|
-
const linesMerged = linesEnter.merge(lines)
|
|
127
|
-
linesMerged.style('cursor', (d, i) => getString(data, config.cursor, i))
|
|
128
|
-
linesMerged.each((d, i, elements) => {
|
|
129
|
-
const group = select(elements[i])
|
|
130
|
-
const linePath = group.select<SVGPathElement>(`.${s.linePath}`)
|
|
131
|
-
const lineSelectionHelper = group.select(`.${s.lineSelectionHelper}`)
|
|
132
|
-
|
|
133
|
-
const isLineVisible = d.visible
|
|
134
|
-
const dashArray = getValue<LineData, number[]>(d, config.lineDashArray, i)
|
|
135
|
-
const transition = smartTransition(linePath, duration)
|
|
136
|
-
.attr('stroke', getColor(data, config.color, i))
|
|
137
|
-
.attr('stroke-width', config.lineWidth)
|
|
138
|
-
.attr('stroke-opacity', isLineVisible ? 1 : 0)
|
|
139
|
-
.style('stroke-dasharray', dashArray?.join(' ') ?? null) // We use `.style` because there's also a default CSS-variable for stroke-dasharray
|
|
140
|
-
|
|
141
|
-
const hasUndefinedSegments = d.values.some(d => !d.defined)
|
|
142
|
-
const svgPathD = this.lineGen(d.values)
|
|
143
|
-
|
|
144
|
-
if (duration && !hasUndefinedSegments) {
|
|
145
|
-
const previous = linePath.attr('d') || this._emptyPath()
|
|
146
|
-
const next = svgPathD || this._emptyPath()
|
|
147
|
-
const t = transition as Transition<SVGPathElement, LineData, SVGGElement, LineData>
|
|
148
|
-
t.attrTween('d', () => interpolatePath(previous, next))
|
|
149
|
-
} else if (d.visible) {
|
|
150
|
-
transition.attr('d', svgPathD)
|
|
151
|
-
}
|
|
152
|
-
|
|
153
|
-
lineSelectionHelper
|
|
154
|
-
.attr('d', svgPathD)
|
|
155
|
-
.attr('visibility', isLineVisible ? null : 'hidden')
|
|
156
|
-
})
|
|
157
|
-
|
|
158
|
-
smartTransition(lines.exit(), duration)
|
|
159
|
-
.style('opacity', 0)
|
|
160
|
-
.remove()
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
private _emptyPath (): string {
|
|
164
|
-
const xRange = this.xScale.range()
|
|
165
|
-
const yRange = this.yScale.range()
|
|
166
|
-
return `M${xRange[0]},${yRange[0]} L${xRange[1]},${yRange[0]}`
|
|
167
|
-
}
|
|
168
|
-
|
|
169
|
-
private _highlight (datum, i, els): void {
|
|
170
|
-
const { config } = this
|
|
171
|
-
|
|
172
|
-
if (config.highlightOnHover) {
|
|
173
|
-
this.g
|
|
174
|
-
.selectAll(`.${s.line}`)
|
|
175
|
-
.classed(s.dim, d => d !== datum)
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
|
|
179
|
-
private _resetHighlight (d, i, els): void {
|
|
180
|
-
const { config } = this
|
|
181
|
-
|
|
182
|
-
if (config.highlightOnHover) {
|
|
183
|
-
this.g
|
|
184
|
-
.selectAll(`.${s.line}`)
|
|
185
|
-
.classed(s.dim, false)
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
}
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
// Core
|
|
2
|
-
import { ComponentConfigInterface, ComponentConfig } from 'core/component/config'
|
|
3
|
-
|
|
4
|
-
// Types
|
|
5
|
-
import { ColorAccessor, GenericAccessor, StringAccessor } from 'types/accessor'
|
|
6
|
-
import { NestedDonutDirection, NestedDonutLayerSettings, NestedDonutSegment } from './types'
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
export interface NestedDonutConfigInterface<Datum> extends ComponentConfigInterface {
|
|
10
|
-
/** Diagram angle range. Default: `[0, 2 * Math.PI]` */
|
|
11
|
-
angleRange?: [number, number];
|
|
12
|
-
/** Direction of hierarchy flow from root to leaf.
|
|
13
|
-
* `NestedDonutDirection.INWARDS` starts from the outer most radius and works towards center
|
|
14
|
-
* `NestedDonutDirection.OUTWARDS` starts from the inner most radius the consecutive layers outward.
|
|
15
|
-
* Default: `NestedDonutDirection.INWARDS`
|
|
16
|
-
*/
|
|
17
|
-
direction?: NestedDonutDirection | string;
|
|
18
|
-
|
|
19
|
-
/** Central label text. Default: `undefined` */
|
|
20
|
-
centralLabel?: string;
|
|
21
|
-
/** Central sub-label accessor function or text. Default: `undefined` */
|
|
22
|
-
centralSubLabel?: string;
|
|
23
|
-
/** Enables wrapping for the sub-label. Default: `true` */
|
|
24
|
-
centralSubLabelWrap?: boolean;
|
|
25
|
-
/**
|
|
26
|
-
* Show donut background. The color is configurable via
|
|
27
|
-
* the `--vis-nested-donut-background-color` and `--vis-dark-nested-donut-background-color` CSS variables.
|
|
28
|
-
* Default: `true`
|
|
29
|
-
*/
|
|
30
|
-
showBackground?: boolean;
|
|
31
|
-
|
|
32
|
-
// Layers
|
|
33
|
-
/** Array of accessor functions to defined the nested groups */
|
|
34
|
-
layers: StringAccessor<Datum>[];
|
|
35
|
-
/* Layer settings */
|
|
36
|
-
layerConfig?: GenericAccessor<NestedDonutLayerSettings, string>;
|
|
37
|
-
/* Space between layers */
|
|
38
|
-
layerPadding?: number;
|
|
39
|
-
|
|
40
|
-
// Segments
|
|
41
|
-
/** Color accessor function. Default: `undefined` */
|
|
42
|
-
color?: ColorAccessor<NestedDonutSegment<Datum>>;
|
|
43
|
-
/** Corner Radius. Default: `0` */
|
|
44
|
-
cornerRadius?: number;
|
|
45
|
-
/** Label accessor function. */
|
|
46
|
-
label?: StringAccessor<NestedDonutSegment<Datum>>;
|
|
47
|
-
/**
|
|
48
|
-
* When true, the component will display empty segments (the ones that have `0` values) as tiny slices.
|
|
49
|
-
* Default: `false`
|
|
50
|
-
* */
|
|
51
|
-
showEmptySegments?: boolean;
|
|
52
|
-
/** Angular size for empty segments in radians. Default: `0.5 * Math.PI / 180` */
|
|
53
|
-
emptySegmentAngle?: number;
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
export class NestedDonutConfig<Datum> extends ComponentConfig implements NestedDonutConfigInterface<Datum> {
|
|
57
|
-
centralLabel?: string
|
|
58
|
-
centralSubLabel?: string
|
|
59
|
-
centralSubLabelWrap?: boolean
|
|
60
|
-
showEmptySegments?: boolean
|
|
61
|
-
emptySegmentAngle?: number
|
|
62
|
-
|
|
63
|
-
color?: ColorAccessor<NestedDonutSegment<Datum>>
|
|
64
|
-
label?: StringAccessor<NestedDonutSegment<Datum>>
|
|
65
|
-
direction = NestedDonutDirection.INWARDS
|
|
66
|
-
layers: StringAccessor<Datum>[]
|
|
67
|
-
layerSettings = undefined
|
|
68
|
-
layerPadding = 0
|
|
69
|
-
angleRange = [0, 2 * Math.PI] as [number, number]
|
|
70
|
-
padAngle = 0
|
|
71
|
-
cornerRadius = 0
|
|
72
|
-
showBackground = true
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
|