@carbon/charts 1.7.6 → 1.9.0-next.0
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/CHANGELOG.md +97 -155
- package/README.md +18 -20
- package/dist/_baseEach-603421de.mjs +21 -0
- package/dist/_baseEach-603421de.mjs.map +1 -0
- package/dist/_baseEach-cdac417f.js +2 -0
- package/dist/_baseEach-cdac417f.js.map +1 -0
- package/dist/a11y-7bad4f48.mjs +5 -0
- package/dist/a11y-7bad4f48.mjs.map +1 -0
- package/dist/a11y-c7c9d087.js +2 -0
- package/dist/a11y-c7c9d087.js.map +1 -0
- package/dist/angle-utils-6f166b40.js +2 -0
- package/dist/angle-utils-6f166b40.js.map +1 -0
- package/dist/angle-utils-8b6ce998.mjs +387 -0
- package/dist/angle-utils-8b6ce998.mjs.map +1 -0
- package/dist/axis-chart.d.ts +13 -0
- package/dist/chart.d.ts +18 -0
- package/dist/charts/alluvial.d.ts +10 -0
- package/dist/charts/area-stacked.d.ts +8 -0
- package/dist/charts/area.d.ts +8 -0
- package/dist/charts/bar-grouped.d.ts +8 -0
- package/dist/charts/bar-simple.d.ts +8 -0
- package/dist/charts/bar-stacked.d.ts +8 -0
- package/dist/charts/boxplot.d.ts +10 -0
- package/dist/charts/bubble.d.ts +8 -0
- package/dist/charts/bullet.d.ts +10 -0
- package/dist/charts/choropleth.d.ts +14 -0
- package/dist/charts/circle-pack.d.ts +10 -0
- package/dist/charts/combo.d.ts +9 -0
- package/dist/charts/donut.d.ts +8 -0
- package/dist/charts/gauge.d.ts +10 -0
- package/dist/charts/heatmap.d.ts +14 -0
- package/dist/charts/histogram.d.ts +10 -0
- package/dist/charts/index.d.ts +27 -0
- package/dist/charts/line.d.ts +8 -0
- package/dist/charts/lollipop.d.ts +8 -0
- package/dist/charts/meter.d.ts +10 -0
- package/dist/charts/pie.d.ts +10 -0
- package/dist/charts/radar.d.ts +10 -0
- package/dist/charts/scatter.d.ts +8 -0
- package/dist/charts/tree.d.ts +10 -0
- package/dist/charts/treemap.d.ts +10 -0
- package/dist/charts/wordcloud.d.ts +10 -0
- package/dist/choropleth-4ac6ac20.js +82 -0
- package/dist/choropleth-4ac6ac20.js.map +1 -0
- package/dist/choropleth-f473ea0d.mjs +7997 -0
- package/dist/choropleth-f473ea0d.mjs.map +1 -0
- package/dist/color-scale-utils-5eb3eeaa.mjs +3809 -0
- package/dist/color-scale-utils-5eb3eeaa.mjs.map +1 -0
- package/dist/color-scale-utils-7d463811.js +3 -0
- package/dist/color-scale-utils-7d463811.js.map +1 -0
- package/dist/components/axes/axis.d.ts +24 -0
- package/dist/components/axes/chart-clip.d.ts +13 -0
- package/dist/components/axes/grid-brush.d.ts +10 -0
- package/dist/components/axes/grid.d.ts +22 -0
- package/dist/components/axes/index.d.ts +12 -0
- package/dist/components/axes/ruler-binned.d.ts +10 -0
- package/dist/components/axes/ruler.d.ts +30 -0
- package/dist/components/axes/toolbar.d.ts +40 -0
- package/dist/components/axes/two-dimensional-axes.d.ts +16 -0
- package/dist/components/axes/zero-line.d.ts +7 -0
- package/dist/components/axes/zoom-bar.d.ts +31 -0
- package/dist/components/component.d.ts +30 -0
- package/dist/components/diagrams/buildPaths.d.ts +40 -0
- package/dist/components/diagrams/index.d.ts +2 -0
- package/dist/components/essentials/canvas-chart-clip.d.ts +6 -0
- package/dist/components/essentials/color-scale-legend.d.ts +20 -0
- package/dist/components/essentials/geo-projection.d.ts +16 -0
- package/dist/components/essentials/highlights.d.ts +13 -0
- package/dist/components/essentials/index.d.ts +11 -0
- package/dist/components/essentials/legend.d.ts +11 -0
- package/dist/components/essentials/modal.d.ts +14 -0
- package/dist/components/essentials/threshold.d.ts +20 -0
- package/dist/components/essentials/title-meter.d.ts +30 -0
- package/dist/components/essentials/title.d.ts +20 -0
- package/dist/components/essentials/tooltip.d.ts +22 -0
- package/dist/components/graphs/alluvial.d.ts +14 -0
- package/dist/components/graphs/area-stacked.d.ts +11 -0
- package/dist/components/graphs/area.d.ts +12 -0
- package/dist/components/graphs/bar-grouped.d.ts +22 -0
- package/dist/components/graphs/bar-simple.d.ts +12 -0
- package/dist/components/graphs/bar-stacked.d.ts +13 -0
- package/dist/components/graphs/bar.d.ts +5 -0
- package/dist/components/graphs/boxplot.d.ts +9 -0
- package/dist/components/graphs/bubble.d.ts +13 -0
- package/dist/components/graphs/bullet.d.ts +12 -0
- package/dist/components/graphs/choropleth.d.ts +6 -0
- package/dist/components/graphs/circle-pack.d.ts +19 -0
- package/dist/components/graphs/donut.d.ts +9 -0
- package/dist/components/graphs/gauge.d.ts +27 -0
- package/dist/components/graphs/heatmap.d.ts +25 -0
- package/dist/components/graphs/histogram.d.ts +12 -0
- package/dist/components/graphs/index.d.ts +28 -0
- package/dist/components/graphs/line.d.ts +11 -0
- package/dist/components/graphs/lollipop.d.ts +14 -0
- package/dist/components/graphs/meter.d.ts +10 -0
- package/dist/components/graphs/pie.d.ts +16 -0
- package/dist/components/graphs/radar.d.ts +25 -0
- package/dist/components/graphs/scatter-stacked.d.ts +8 -0
- package/dist/components/graphs/scatter.d.ts +21 -0
- package/dist/components/graphs/skeleton-lines.d.ts +12 -0
- package/dist/components/graphs/skeleton.d.ts +23 -0
- package/dist/components/graphs/tree.d.ts +9 -0
- package/dist/components/graphs/treemap.d.ts +11 -0
- package/dist/components/graphs/wordcloud.d.ts +12 -0
- package/dist/components/index.d.ts +6 -0
- package/dist/components/index.js +2 -0
- package/dist/components/index.js.map +1 -0
- package/dist/components/index.mjs +76 -0
- package/dist/components/index.mjs.map +1 -0
- package/dist/components/layout/index.d.ts +2 -0
- package/dist/components/layout/layout.d.ts +18 -0
- package/dist/components/layout/spacer.d.ts +5 -0
- package/dist/configuration-non-customizable.d.ts +263 -0
- package/dist/configuration.d.ts +48 -0
- package/dist/demo/charts/alluvial.d.ts +109 -0
- package/dist/demo/charts/area.d.ts +224 -0
- package/dist/demo/charts/bar.d.ts +681 -0
- package/dist/demo/charts/boxplot.d.ts +34 -0
- package/dist/demo/charts/bubble.d.ts +141 -0
- package/dist/demo/charts/bullet.d.ts +24 -0
- package/dist/demo/charts/chart-types.d.ts +128 -0
- package/dist/demo/charts/choropleth.d.ts +738 -0
- package/dist/demo/charts/circle-pack.d.ts +91 -0
- package/dist/demo/charts/combo.d.ts +482 -0
- package/dist/demo/charts/donut.d.ts +64 -0
- package/dist/demo/charts/gauge.d.ts +40 -0
- package/dist/demo/charts/heatmap.d.ts +125 -0
- package/dist/demo/charts/hightlight.d.ts +40 -0
- package/dist/demo/charts/histogram.d.ts +63 -0
- package/dist/demo/charts/index.d.ts +62 -0
- package/dist/demo/charts/line.d.ts +361 -0
- package/dist/demo/charts/lollipop.d.ts +39 -0
- package/dist/demo/charts/meter.d.ts +95 -0
- package/dist/demo/charts/pie.d.ts +46 -0
- package/dist/demo/charts/radar.d.ts +63 -0
- package/dist/demo/charts/scatter.d.ts +118 -0
- package/dist/demo/charts/step.d.ts +96 -0
- package/dist/demo/charts/time-series-axis.d.ts +293 -0
- package/dist/demo/charts/toolbar.d.ts +12 -0
- package/dist/demo/charts/topojson-110.d.ts +360 -0
- package/dist/demo/charts/tree.d.ts +30 -0
- package/dist/demo/charts/treemap.d.ts +15 -0
- package/dist/demo/charts/wordcloud.d.ts +14 -0
- package/dist/demo/charts/zoom-bar.d.ts +79 -0
- package/dist/demo/index.d.ts +4 -0
- package/dist/demo/index.js +470 -0
- package/dist/demo/index.js.map +1 -0
- package/dist/demo/index.mjs +51789 -0
- package/dist/demo/index.mjs.map +1 -0
- package/dist/demo/styles.css +30574 -0
- package/dist/demo/styles.css.map +1 -0
- package/dist/demo/utils/index.d.ts +2 -0
- package/dist/demo/utils/sandbox.d.ts +39 -0
- package/dist/demo/utils/story-widgets.d.ts +7 -0
- package/dist/enums-a96ef472.mjs +89 -0
- package/dist/enums-a96ef472.mjs.map +1 -0
- package/dist/enums-aa2efd99.js +2 -0
- package/dist/enums-aa2efd99.js.map +1 -0
- package/dist/index-822564ed.js +2 -0
- package/dist/index-822564ed.js.map +1 -0
- package/dist/index-a266373c.mjs +749 -0
- package/dist/index-a266373c.mjs.map +1 -0
- package/dist/index-becfb567.mjs +72 -0
- package/dist/index-becfb567.mjs.map +1 -0
- package/dist/index-d865d500.js +2 -0
- package/dist/index-d865d500.js.map +1 -0
- package/dist/index-ec554115.mjs +62 -0
- package/dist/index-ec554115.mjs.map +1 -0
- package/dist/index-f23685eb.js +2 -0
- package/dist/index-f23685eb.js.map +1 -0
- package/dist/index.d.ts +13 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -0
- package/dist/index.mjs +1121 -0
- package/dist/index.mjs.map +1 -0
- package/dist/interfaces/axis-scales.d.ts +201 -0
- package/dist/interfaces/charts.d.ts +520 -0
- package/dist/interfaces/components.d.ts +231 -0
- package/dist/interfaces/enums.d.ts +261 -0
- package/dist/interfaces/events.d.ts +239 -0
- package/dist/interfaces/index.d.ts +12 -0
- package/dist/interfaces/index.js +2 -0
- package/dist/interfaces/index.js.map +1 -0
- package/dist/interfaces/index.mjs +58 -0
- package/dist/interfaces/index.mjs.map +1 -0
- package/dist/interfaces/layout.d.ts +21 -0
- package/dist/interfaces/model.d.ts +35 -0
- package/dist/interfaces/services.d.ts +20 -0
- package/dist/interfaces/truncation.d.ts +17 -0
- package/dist/model/binned-charts.d.ts +7 -0
- package/dist/model/cartesian-charts.d.ts +24 -0
- package/dist/model/choropleth.d.ts +29 -0
- package/dist/model/heatmap.d.ts +57 -0
- package/dist/model/index.d.ts +16 -0
- package/dist/model/index.js +3 -0
- package/dist/model/index.js.map +1 -0
- package/dist/model/index.mjs +1107 -0
- package/dist/model/index.mjs.map +1 -0
- package/dist/model/meter.d.ts +20 -0
- package/dist/model/model.d.ts +110 -0
- package/dist/services/angle-utils.d.ts +15 -0
- package/dist/services/color-scale-utils.d.ts +2 -0
- package/dist/services/curves.d.ts +24 -0
- package/dist/services/essentials/dom-utils.d.ts +45 -0
- package/dist/services/essentials/events.d.ts +8 -0
- package/dist/services/essentials/files.d.ts +7 -0
- package/dist/services/essentials/gradient-utils.d.ts +6 -0
- package/dist/services/essentials/index.d.ts +5 -0
- package/dist/services/essentials/transitions.d.ts +13 -0
- package/dist/services/index.d.ts +9 -0
- package/dist/services/index.js +2 -0
- package/dist/services/index.js.map +1 -0
- package/dist/services/index.mjs +32 -0
- package/dist/services/index.mjs.map +1 -0
- package/dist/services/scales-cartesian.d.ts +89 -0
- package/dist/services/service.d.ts +11 -0
- package/dist/services/zoom.d.ts +21 -0
- package/dist/styles/_chart-holder.scss +50 -0
- package/dist/styles/color-palatte.scss +458 -0
- package/dist/styles/colors.scss +131 -0
- package/dist/styles/components/_color-legend.scss +11 -0
- package/dist/styles/components/_edge.scss +65 -0
- package/dist/styles/components/_grid.scss +30 -0
- package/dist/styles/components/_marker.scss +7 -0
- package/dist/styles/components/_meter-title.scss +37 -0
- package/dist/styles/components/_tooltip.scss +132 -0
- package/dist/styles/components/diagrams/_card-node.scss +97 -0
- package/dist/styles/components/diagrams/_edge.scss +66 -0
- package/dist/styles/components/diagrams/_shape-node.scss +89 -0
- package/dist/styles/components/diagrams/index.scss +4 -0
- package/dist/styles/graphs/_alluvial.scss +17 -0
- package/dist/styles/graphs/_bullet.scss +36 -0
- package/dist/styles/graphs/_choropleth.scss +18 -0
- package/dist/styles/graphs/_circle-pack.scss +36 -0
- package/dist/styles/graphs/_gauge.scss +23 -0
- package/dist/styles/graphs/_heatmap.scss +60 -0
- package/dist/styles/graphs/_meter.scss +34 -0
- package/dist/styles/graphs/_radar.scss +18 -0
- package/dist/styles/graphs/_scatter-stacked.scss +12 -0
- package/dist/styles/graphs/_tree.scss +46 -0
- package/dist/styles/graphs/index.scss +19 -0
- package/dist/styles/styles.scss +40 -0
- package/dist/styles/tokens.scss +407 -0
- package/dist/styles.css +28463 -0
- package/dist/styles.css.map +1 -0
- package/dist/styles.min.css +1 -0
- package/dist/styles.min.css.map +1 -0
- package/dist/tools.d.ts +150 -0
- package/package.json +140 -101
- package/axis-chart.d.ts +0 -10
- package/axis-chart.js +0 -169
- package/axis-chart.js.map +0 -1
- package/build/demo/create-codesandbox.d.ts +0 -113
- package/build/demo/data/CHART_TYPES.d.ts +0 -123
- package/build/demo/data/alluvial.d.ts +0 -109
- package/build/demo/data/area.d.ts +0 -224
- package/build/demo/data/bar.d.ts +0 -681
- package/build/demo/data/boxplot.d.ts +0 -34
- package/build/demo/data/bubble.d.ts +0 -141
- package/build/demo/data/bullet.d.ts +0 -24
- package/build/demo/data/circle-pack.d.ts +0 -91
- package/build/demo/data/combo.d.ts +0 -482
- package/build/demo/data/donut.d.ts +0 -64
- package/build/demo/data/gauge.d.ts +0 -40
- package/build/demo/data/heatmap.d.ts +0 -125
- package/build/demo/data/high-scale.d.ts +0 -1
- package/build/demo/data/hightlight.d.ts +0 -40
- package/build/demo/data/histogram.d.ts +0 -63
- package/build/demo/data/index.d.ts +0 -32
- package/build/demo/data/line.d.ts +0 -361
- package/build/demo/data/lollipop.d.ts +0 -39
- package/build/demo/data/meter.d.ts +0 -95
- package/build/demo/data/pie.d.ts +0 -46
- package/build/demo/data/radar.d.ts +0 -63
- package/build/demo/data/scatter.d.ts +0 -118
- package/build/demo/data/step.d.ts +0 -96
- package/build/demo/data/time-series-axis.d.ts +0 -368
- package/build/demo/data/toolbar.d.ts +0 -12
- package/build/demo/data/tree.d.ts +0 -30
- package/build/demo/data/treemap.d.ts +0 -15
- package/build/demo/data/wordcloud.d.ts +0 -14
- package/build/demo/data/zoom-bar.d.ts +0 -94
- package/build/demo/utils.d.ts +0 -40
- package/build/src/axis-chart.d.ts +0 -10
- package/build/src/chart.d.ts +0 -14
- package/build/src/charts/alluvial.d.ts +0 -8
- package/build/src/charts/area-stacked.d.ts +0 -6
- package/build/src/charts/area.d.ts +0 -6
- package/build/src/charts/bar-grouped.d.ts +0 -6
- package/build/src/charts/bar-simple.d.ts +0 -6
- package/build/src/charts/bar-stacked.d.ts +0 -6
- package/build/src/charts/boxplot.d.ts +0 -8
- package/build/src/charts/bubble.d.ts +0 -6
- package/build/src/charts/bullet.d.ts +0 -8
- package/build/src/charts/circle-pack.d.ts +0 -8
- package/build/src/charts/combo.d.ts +0 -7
- package/build/src/charts/donut.d.ts +0 -6
- package/build/src/charts/gauge.d.ts +0 -8
- package/build/src/charts/heatmap.d.ts +0 -10
- package/build/src/charts/histogram.d.ts +0 -8
- package/build/src/charts/index.d.ts +0 -24
- package/build/src/charts/line.d.ts +0 -6
- package/build/src/charts/lollipop.d.ts +0 -6
- package/build/src/charts/meter.d.ts +0 -8
- package/build/src/charts/pie.d.ts +0 -8
- package/build/src/charts/radar.d.ts +0 -8
- package/build/src/charts/scatter.d.ts +0 -6
- package/build/src/charts/tree.d.ts +0 -8
- package/build/src/charts/treemap.d.ts +0 -8
- package/build/src/charts/wordcloud.d.ts +0 -8
- package/build/src/components/axes/axis.d.ts +0 -24
- package/build/src/components/axes/chart-clip.d.ts +0 -13
- package/build/src/components/axes/grid-brush.d.ts +0 -10
- package/build/src/components/axes/grid.d.ts +0 -22
- package/build/src/components/axes/hover-axis.d.ts +0 -10
- package/build/src/components/axes/ruler-binned.d.ts +0 -7
- package/build/src/components/axes/ruler-stacked.d.ts +0 -4
- package/build/src/components/axes/ruler.d.ts +0 -27
- package/build/src/components/axes/toolbar.d.ts +0 -40
- package/build/src/components/axes/two-dimensional-axes.d.ts +0 -16
- package/build/src/components/axes/zero-line.d.ts +0 -7
- package/build/src/components/axes/zoom-bar.d.ts +0 -28
- package/build/src/components/component.d.ts +0 -28
- package/build/src/components/diagrams/buildPaths.d.ts +0 -63
- package/build/src/components/diagrams/markerDefinitions.d.ts +0 -37
- package/build/src/components/essentials/canvas-chart-clip.d.ts +0 -6
- package/build/src/components/essentials/color-scale-legend.d.ts +0 -17
- package/build/src/components/essentials/highlights.d.ts +0 -13
- package/build/src/components/essentials/legend.d.ts +0 -11
- package/build/src/components/essentials/modal.d.ts +0 -14
- package/build/src/components/essentials/threshold.d.ts +0 -20
- package/build/src/components/essentials/title-meter.d.ts +0 -30
- package/build/src/components/essentials/title.d.ts +0 -20
- package/build/src/components/essentials/tooltip-axis.d.ts +0 -4
- package/build/src/components/essentials/tooltip.d.ts +0 -22
- package/build/src/components/graphs/alluvial.d.ts +0 -14
- package/build/src/components/graphs/area-stacked.d.ts +0 -11
- package/build/src/components/graphs/area.d.ts +0 -12
- package/build/src/components/graphs/bar-grouped.d.ts +0 -22
- package/build/src/components/graphs/bar-simple.d.ts +0 -12
- package/build/src/components/graphs/bar-stacked.d.ts +0 -13
- package/build/src/components/graphs/bar.d.ts +0 -5
- package/build/src/components/graphs/boxplot.d.ts +0 -9
- package/build/src/components/graphs/bubble.d.ts +0 -13
- package/build/src/components/graphs/bullet.d.ts +0 -12
- package/build/src/components/graphs/circle-pack.d.ts +0 -19
- package/build/src/components/graphs/donut.d.ts +0 -9
- package/build/src/components/graphs/gauge.d.ts +0 -27
- package/build/src/components/graphs/heatmap.d.ts +0 -25
- package/build/src/components/graphs/histogram.d.ts +0 -12
- package/build/src/components/graphs/line.d.ts +0 -11
- package/build/src/components/graphs/lollipop.d.ts +0 -14
- package/build/src/components/graphs/meter.d.ts +0 -10
- package/build/src/components/graphs/pie.d.ts +0 -16
- package/build/src/components/graphs/radar.d.ts +0 -25
- package/build/src/components/graphs/scatter-stacked.d.ts +0 -8
- package/build/src/components/graphs/scatter.d.ts +0 -21
- package/build/src/components/graphs/skeleton-lines.d.ts +0 -11
- package/build/src/components/graphs/skeleton.d.ts +0 -22
- package/build/src/components/graphs/tree.d.ts +0 -9
- package/build/src/components/graphs/treemap.d.ts +0 -11
- package/build/src/components/graphs/wordcloud.d.ts +0 -12
- package/build/src/components/index.d.ts +0 -51
- package/build/src/components/layout/layout.d.ts +0 -17
- package/build/src/components/layout/spacer.d.ts +0 -5
- package/build/src/configuration-non-customizable.d.ts +0 -263
- package/build/src/configuration.d.ts +0 -44
- package/build/src/interfaces/a11y.d.ts +0 -12
- package/build/src/interfaces/axis-scales.d.ts +0 -201
- package/build/src/interfaces/charts.d.ts +0 -485
- package/build/src/interfaces/components.d.ts +0 -231
- package/build/src/interfaces/enums.d.ts +0 -249
- package/build/src/interfaces/events.d.ts +0 -230
- package/build/src/interfaces/index.d.ts +0 -7
- package/build/src/interfaces/layout.d.ts +0 -15
- package/build/src/interfaces/model.d.ts +0 -35
- package/build/src/interfaces/truncation.d.ts +0 -17
- package/build/src/model/alluvial.d.ts +0 -8
- package/build/src/model/binned-charts.d.ts +0 -7
- package/build/src/model/boxplot.d.ts +0 -14
- package/build/src/model/bullet.d.ts +0 -14
- package/build/src/model/cartesian-charts.d.ts +0 -24
- package/build/src/model/circle-pack.d.ts +0 -36
- package/build/src/model/gauge.d.ts +0 -9
- package/build/src/model/heatmap.d.ts +0 -57
- package/build/src/model/meter.d.ts +0 -19
- package/build/src/model/model.d.ts +0 -107
- package/build/src/model/pie.d.ts +0 -9
- package/build/src/model/radar.d.ts +0 -7
- package/build/src/model/tree.d.ts +0 -14
- package/build/src/model/treemap.d.ts +0 -8
- package/build/src/model/wordcloud.d.ts +0 -7
- package/build/src/services/angle-utils.d.ts +0 -205
- package/build/src/services/canvas-zoom.d.ts +0 -11
- package/build/src/services/curves.d.ts +0 -25
- package/build/src/services/essentials/dom-utils.d.ts +0 -39
- package/build/src/services/essentials/events.d.ts +0 -8
- package/build/src/services/essentials/files.d.ts +0 -6
- package/build/src/services/essentials/gradient-utils.d.ts +0 -6
- package/build/src/services/essentials/transitions.d.ts +0 -13
- package/build/src/services/index.d.ts +0 -9
- package/build/src/services/scales-cartesian.d.ts +0 -86
- package/build/src/services/service.d.ts +0 -10
- package/build/src/services/time-series.d.ts +0 -787
- package/build/src/services/zoom.d.ts +0 -21
- package/build/src/tools.d.ts +0 -2427
- package/build/stories/all.stories.d.ts +0 -1
- package/build/stories/tutorials/api.d.ts +0 -4
- package/build/stories/tutorials/color-palette.d.ts +0 -4
- package/build/stories/tutorials/combo-charts.d.ts +0 -4
- package/build/stories/tutorials/dual-axes.d.ts +0 -4
- package/build/stories/tutorials/event-listeners.d.ts +0 -4
- package/build/stories/tutorials/getting-started/angular.d.ts +0 -5
- package/build/stories/tutorials/getting-started/react.d.ts +0 -5
- package/build/stories/tutorials/getting-started/vanilla.d.ts +0 -5
- package/build/stories/tutorials/getting-started/vue.d.ts +0 -5
- package/build/stories/tutorials/index.d.ts +0 -11
- package/build/stories/tutorials/tabular-data-format.d.ts +0 -4
- package/build/stories/tutorials/themes.d.ts +0 -4
- package/build/stories/tutorials.stories.d.ts +0 -1
- package/bundle.js +0 -17
- package/chart.d.ts +0 -14
- package/chart.js +0 -198
- package/chart.js.map +0 -1
- package/charts/alluvial.d.ts +0 -8
- package/charts/alluvial.js +0 -46
- package/charts/alluvial.js.map +0 -1
- package/charts/area-stacked.d.ts +0 -6
- package/charts/area-stacked.js +0 -55
- package/charts/area-stacked.js.map +0 -1
- package/charts/area.d.ts +0 -6
- package/charts/area.js +0 -54
- package/charts/area.js.map +0 -1
- package/charts/bar-grouped.d.ts +0 -6
- package/charts/bar-grouped.js +0 -49
- package/charts/bar-grouped.js.map +0 -1
- package/charts/bar-simple.d.ts +0 -6
- package/charts/bar-simple.js +0 -49
- package/charts/bar-simple.js.map +0 -1
- package/charts/bar-stacked.d.ts +0 -6
- package/charts/bar-stacked.js +0 -50
- package/charts/bar-stacked.js.map +0 -1
- package/charts/boxplot.d.ts +0 -8
- package/charts/boxplot.js +0 -55
- package/charts/boxplot.js.map +0 -1
- package/charts/bubble.d.ts +0 -6
- package/charts/bubble.js +0 -49
- package/charts/bubble.js.map +0 -1
- package/charts/bullet.d.ts +0 -8
- package/charts/bullet.js +0 -50
- package/charts/bullet.js.map +0 -1
- package/charts/circle-pack.d.ts +0 -8
- package/charts/circle-pack.js +0 -45
- package/charts/circle-pack.js.map +0 -1
- package/charts/combo.d.ts +0 -7
- package/charts/combo.js +0 -132
- package/charts/combo.js.map +0 -1
- package/charts/donut.d.ts +0 -6
- package/charts/donut.js +0 -46
- package/charts/donut.js.map +0 -1
- package/charts/gauge.d.ts +0 -8
- package/charts/gauge.js +0 -42
- package/charts/gauge.js.map +0 -1
- package/charts/heatmap.d.ts +0 -10
- package/charts/heatmap.js +0 -138
- package/charts/heatmap.js.map +0 -1
- package/charts/histogram.d.ts +0 -8
- package/charts/histogram.js +0 -48
- package/charts/histogram.js.map +0 -1
- package/charts/index.d.ts +0 -24
- package/charts/index.js +0 -25
- package/charts/index.js.map +0 -1
- package/charts/line.d.ts +0 -6
- package/charts/line.js +0 -48
- package/charts/line.js.map +0 -1
- package/charts/lollipop.d.ts +0 -6
- package/charts/lollipop.js +0 -50
- package/charts/lollipop.js.map +0 -1
- package/charts/meter.d.ts +0 -8
- package/charts/meter.js +0 -94
- package/charts/meter.js.map +0 -1
- package/charts/pie.d.ts +0 -8
- package/charts/pie.js +0 -55
- package/charts/pie.js.map +0 -1
- package/charts/radar.d.ts +0 -8
- package/charts/radar.js +0 -44
- package/charts/radar.js.map +0 -1
- package/charts/scatter.d.ts +0 -6
- package/charts/scatter.js +0 -49
- package/charts/scatter.js.map +0 -1
- package/charts/tree.d.ts +0 -8
- package/charts/tree.js +0 -47
- package/charts/tree.js.map +0 -1
- package/charts/treemap.d.ts +0 -8
- package/charts/treemap.js +0 -43
- package/charts/treemap.js.map +0 -1
- package/charts/wordcloud.d.ts +0 -8
- package/charts/wordcloud.js +0 -49
- package/charts/wordcloud.js.map +0 -1
- package/components/axes/axis.d.ts +0 -24
- package/components/axes/axis.js +0 -587
- package/components/axes/axis.js.map +0 -1
- package/components/axes/chart-clip.d.ts +0 -13
- package/components/axes/chart-clip.js +0 -63
- package/components/axes/chart-clip.js.map +0 -1
- package/components/axes/grid-brush.d.ts +0 -10
- package/components/axes/grid-brush.js +0 -170
- package/components/axes/grid-brush.js.map +0 -1
- package/components/axes/grid.d.ts +0 -22
- package/components/axes/grid.js +0 -235
- package/components/axes/grid.js.map +0 -1
- package/components/axes/hover-axis.js +0 -243
- package/components/axes/hover-axis.js.map +0 -1
- package/components/axes/ruler-binned.d.ts +0 -7
- package/components/axes/ruler-binned.js +0 -136
- package/components/axes/ruler-binned.js.map +0 -1
- package/components/axes/ruler-stacked.js +0 -26
- package/components/axes/ruler-stacked.js.map +0 -1
- package/components/axes/ruler.d.ts +0 -27
- package/components/axes/ruler.js +0 -209
- package/components/axes/ruler.js.map +0 -1
- package/components/axes/toolbar.d.ts +0 -40
- package/components/axes/toolbar.js +0 -558
- package/components/axes/toolbar.js.map +0 -1
- package/components/axes/two-dimensional-axes.d.ts +0 -16
- package/components/axes/two-dimensional-axes.js +0 -134
- package/components/axes/two-dimensional-axes.js.map +0 -1
- package/components/axes/zero-line.d.ts +0 -7
- package/components/axes/zero-line.js +0 -76
- package/components/axes/zero-line.js.map +0 -1
- package/components/axes/zoom-bar.d.ts +0 -28
- package/components/axes/zoom-bar.js +0 -490
- package/components/axes/zoom-bar.js.map +0 -1
- package/components/component.d.ts +0 -28
- package/components/component.js +0 -102
- package/components/component.js.map +0 -1
- package/components/diagrams/buildPaths.d.ts +0 -39
- package/components/diagrams/buildPaths.js +0 -71
- package/components/diagrams/buildPaths.js.map +0 -1
- package/components/diagrams/markerDefinitions.js +0 -38
- package/components/diagrams/markerDefinitions.js.map +0 -1
- package/components/essentials/canvas-chart-clip.d.ts +0 -6
- package/components/essentials/canvas-chart-clip.js +0 -46
- package/components/essentials/canvas-chart-clip.js.map +0 -1
- package/components/essentials/color-scale-legend.d.ts +0 -17
- package/components/essentials/color-scale-legend.js +0 -230
- package/components/essentials/color-scale-legend.js.map +0 -1
- package/components/essentials/highlights.d.ts +0 -13
- package/components/essentials/highlights.js +0 -196
- package/components/essentials/highlights.js.map +0 -1
- package/components/essentials/legend.d.ts +0 -11
- package/components/essentials/legend.js +0 -428
- package/components/essentials/legend.js.map +0 -1
- package/components/essentials/modal.d.ts +0 -14
- package/components/essentials/modal.js +0 -89
- package/components/essentials/modal.js.map +0 -1
- package/components/essentials/threshold.d.ts +0 -20
- package/components/essentials/threshold.js +0 -306
- package/components/essentials/threshold.js.map +0 -1
- package/components/essentials/title-meter.d.ts +0 -30
- package/components/essentials/title-meter.js +0 -279
- package/components/essentials/title-meter.js.map +0 -1
- package/components/essentials/title.d.ts +0 -20
- package/components/essentials/title.js +0 -138
- package/components/essentials/title.js.map +0 -1
- package/components/essentials/tooltip-axis.js +0 -142
- package/components/essentials/tooltip-axis.js.map +0 -1
- package/components/essentials/tooltip.d.ts +0 -22
- package/components/essentials/tooltip.js +0 -263
- package/components/essentials/tooltip.js.map +0 -1
- package/components/graphs/alluvial.d.ts +0 -14
- package/components/graphs/alluvial.js +0 -535
- package/components/graphs/alluvial.js.map +0 -1
- package/components/graphs/area-stacked.d.ts +0 -11
- package/components/graphs/area-stacked.js +0 -131
- package/components/graphs/area-stacked.js.map +0 -1
- package/components/graphs/area.d.ts +0 -12
- package/components/graphs/area.js +0 -260
- package/components/graphs/area.js.map +0 -1
- package/components/graphs/bar-grouped.d.ts +0 -22
- package/components/graphs/bar-grouped.js +0 -312
- package/components/graphs/bar-grouped.js.map +0 -1
- package/components/graphs/bar-simple.d.ts +0 -12
- package/components/graphs/bar-simple.js +0 -218
- package/components/graphs/bar-simple.js.map +0 -1
- package/components/graphs/bar-stacked.d.ts +0 -13
- package/components/graphs/bar-stacked.js +0 -281
- package/components/graphs/bar-stacked.js.map +0 -1
- package/components/graphs/bar.d.ts +0 -5
- package/components/graphs/bar.js +0 -58
- package/components/graphs/bar.js.map +0 -1
- package/components/graphs/boxplot.d.ts +0 -9
- package/components/graphs/boxplot.js +0 -485
- package/components/graphs/boxplot.js.map +0 -1
- package/components/graphs/bubble.d.ts +0 -13
- package/components/graphs/bubble.js +0 -113
- package/components/graphs/bubble.js.map +0 -1
- package/components/graphs/bullet.d.ts +0 -12
- package/components/graphs/bullet.js +0 -395
- package/components/graphs/bullet.js.map +0 -1
- package/components/graphs/circle-pack.d.ts +0 -19
- package/components/graphs/circle-pack.js +0 -388
- package/components/graphs/circle-pack.js.map +0 -1
- package/components/graphs/donut.d.ts +0 -9
- package/components/graphs/donut.js +0 -116
- package/components/graphs/donut.js.map +0 -1
- package/components/graphs/gauge.d.ts +0 -27
- package/components/graphs/gauge.js +0 -347
- package/components/graphs/gauge.js.map +0 -1
- package/components/graphs/heatmap.d.ts +0 -25
- package/components/graphs/heatmap.js +0 -388
- package/components/graphs/heatmap.js.map +0 -1
- package/components/graphs/histogram.d.ts +0 -12
- package/components/graphs/histogram.js +0 -220
- package/components/graphs/histogram.js.map +0 -1
- package/components/graphs/line.d.ts +0 -11
- package/components/graphs/line.js +0 -179
- package/components/graphs/line.js.map +0 -1
- package/components/graphs/lollipop.d.ts +0 -14
- package/components/graphs/lollipop.js +0 -164
- package/components/graphs/lollipop.js.map +0 -1
- package/components/graphs/meter.d.ts +0 -10
- package/components/graphs/meter.js +0 -284
- package/components/graphs/meter.js.map +0 -1
- package/components/graphs/pie.d.ts +0 -16
- package/components/graphs/pie.js +0 -438
- package/components/graphs/pie.js.map +0 -1
- package/components/graphs/radar.d.ts +0 -25
- package/components/graphs/radar.js +0 -737
- package/components/graphs/radar.js.map +0 -1
- package/components/graphs/scatter-stacked.d.ts +0 -8
- package/components/graphs/scatter-stacked.js +0 -140
- package/components/graphs/scatter-stacked.js.map +0 -1
- package/components/graphs/scatter.d.ts +0 -21
- package/components/graphs/scatter.js +0 -360
- package/components/graphs/scatter.js.map +0 -1
- package/components/graphs/skeleton-lines.d.ts +0 -11
- package/components/graphs/skeleton-lines.js +0 -84
- package/components/graphs/skeleton-lines.js.map +0 -1
- package/components/graphs/skeleton.d.ts +0 -22
- package/components/graphs/skeleton.js +0 -272
- package/components/graphs/skeleton.js.map +0 -1
- package/components/graphs/tree.d.ts +0 -9
- package/components/graphs/tree.js +0 -262
- package/components/graphs/tree.js.map +0 -1
- package/components/graphs/treemap.d.ts +0 -11
- package/components/graphs/treemap.js +0 -344
- package/components/graphs/treemap.js.map +0 -1
- package/components/graphs/wordcloud.d.ts +0 -12
- package/components/graphs/wordcloud.js +0 -268
- package/components/graphs/wordcloud.js.map +0 -1
- package/components/index.d.ts +0 -51
- package/components/index.js +0 -57
- package/components/index.js.map +0 -1
- package/components/layout/layout.d.ts +0 -17
- package/components/layout/layout.js +0 -191
- package/components/layout/layout.js.map +0 -1
- package/components/layout/spacer.d.ts +0 -5
- package/components/layout/spacer.js +0 -33
- package/components/layout/spacer.js.map +0 -1
- package/configuration-non-customizable.d.ts +0 -263
- package/configuration-non-customizable.js +0 -276
- package/configuration-non-customizable.js.map +0 -1
- package/configuration.d.ts +0 -44
- package/configuration.js +0 -535
- package/configuration.js.map +0 -1
- package/demo/create-codesandbox.d.ts +0 -65
- package/demo/create-codesandbox.js +0 -155
- package/demo/create-codesandbox.js.map +0 -1
- package/demo/data/CHART_TYPES.d.ts +0 -123
- package/demo/data/CHART_TYPES.js +0 -123
- package/demo/data/CHART_TYPES.js.map +0 -1
- package/demo/data/alluvial.d.ts +0 -109
- package/demo/data/alluvial.js +0 -328
- package/demo/data/alluvial.js.map +0 -1
- package/demo/data/area.d.ts +0 -224
- package/demo/data/area.js +0 -330
- package/demo/data/area.js.map +0 -1
- package/demo/data/bar.d.ts +0 -681
- package/demo/data/bar.js +0 -915
- package/demo/data/bar.js.map +0 -1
- package/demo/data/boxplot.d.ts +0 -34
- package/demo/data/boxplot.js +0 -48
- package/demo/data/boxplot.js.map +0 -1
- package/demo/data/bubble.d.ts +0 -141
- package/demo/data/bubble.js +0 -182
- package/demo/data/bubble.js.map +0 -1
- package/demo/data/bullet.d.ts +0 -24
- package/demo/data/bullet.js +0 -55
- package/demo/data/bullet.js.map +0 -1
- package/demo/data/bundle.js +0 -1
- package/demo/data/circle-pack.d.ts +0 -91
- package/demo/data/circle-pack.js +0 -224
- package/demo/data/circle-pack.js.map +0 -1
- package/demo/data/combo.d.ts +0 -482
- package/demo/data/combo.js +0 -571
- package/demo/data/combo.js.map +0 -1
- package/demo/data/donut.d.ts +0 -64
- package/demo/data/donut.js +0 -60
- package/demo/data/donut.js.map +0 -1
- package/demo/data/gauge.d.ts +0 -40
- package/demo/data/gauge.js +0 -41
- package/demo/data/gauge.js.map +0 -1
- package/demo/data/heatmap.d.ts +0 -125
- package/demo/data/heatmap.js +0 -1149
- package/demo/data/heatmap.js.map +0 -1
- package/demo/data/high-scale.d.ts +0 -1
- package/demo/data/high-scale.js +0 -5
- package/demo/data/high-scale.js.map +0 -1
- package/demo/data/hightlight.d.ts +0 -40
- package/demo/data/hightlight.js +0 -44
- package/demo/data/hightlight.js.map +0 -1
- package/demo/data/histogram.d.ts +0 -63
- package/demo/data/histogram.js +0 -312
- package/demo/data/histogram.js.map +0 -1
- package/demo/data/index.d.ts +0 -32
- package/demo/data/index.js +0 -1265
- package/demo/data/index.js.map +0 -1
- package/demo/data/line.d.ts +0 -361
- package/demo/data/line.js +0 -480
- package/demo/data/line.js.map +0 -1
- package/demo/data/lollipop.d.ts +0 -39
- package/demo/data/lollipop.js +0 -37
- package/demo/data/lollipop.js.map +0 -1
- package/demo/data/meter.d.ts +0 -95
- package/demo/data/meter.js +0 -114
- package/demo/data/meter.js.map +0 -1
- package/demo/data/pie.d.ts +0 -46
- package/demo/data/pie.js +0 -55
- package/demo/data/pie.js.map +0 -1
- package/demo/data/radar.d.ts +0 -63
- package/demo/data/radar.js +0 -118
- package/demo/data/radar.js.map +0 -1
- package/demo/data/scatter.d.ts +0 -118
- package/demo/data/scatter.js +0 -143
- package/demo/data/scatter.js.map +0 -1
- package/demo/data/step.d.ts +0 -96
- package/demo/data/step.js +0 -27
- package/demo/data/step.js.map +0 -1
- package/demo/data/time-series-axis.d.ts +0 -368
- package/demo/data/time-series-axis.js +0 -436
- package/demo/data/time-series-axis.js.map +0 -1
- package/demo/data/toolbar.d.ts +0 -12
- package/demo/data/toolbar.js +0 -67
- package/demo/data/toolbar.js.map +0 -1
- package/demo/data/tree.d.ts +0 -30
- package/demo/data/tree.js +0 -209
- package/demo/data/tree.js.map +0 -1
- package/demo/data/treemap.d.ts +0 -15
- package/demo/data/treemap.js +0 -93
- package/demo/data/treemap.js.map +0 -1
- package/demo/data/wordcloud.d.ts +0 -14
- package/demo/data/wordcloud.js +0 -105
- package/demo/data/wordcloud.js.map +0 -1
- package/demo/data/zoom-bar.d.ts +0 -94
- package/demo/data/zoom-bar.js +0 -187
- package/demo/data/zoom-bar.js.map +0 -1
- package/demo/styles.css +0 -31006
- package/demo/styles.css.map +0 -1
- package/demo/styles.min.css +0 -1
- package/demo/styles.min.css.map +0 -1
- package/demo/tsconfig.tsbuildinfo +0 -1432
- package/demo/utils.d.ts +0 -24
- package/demo/utils.js +0 -194
- package/demo/utils.js.map +0 -1
- package/index.d.ts +0 -4
- package/index.js +0 -6
- package/index.js.map +0 -1
- package/interfaces/a11y.js +0 -14
- package/interfaces/a11y.js.map +0 -1
- package/interfaces/axis-scales.d.ts +0 -201
- package/interfaces/axis-scales.js +0 -1
- package/interfaces/axis-scales.js.map +0 -1
- package/interfaces/charts.d.ts +0 -485
- package/interfaces/charts.js +0 -1
- package/interfaces/charts.js.map +0 -1
- package/interfaces/components.d.ts +0 -231
- package/interfaces/components.js +0 -1
- package/interfaces/components.js.map +0 -1
- package/interfaces/enums.d.ts +0 -249
- package/interfaces/enums.js +0 -280
- package/interfaces/enums.js.map +0 -1
- package/interfaces/events.d.ts +0 -230
- package/interfaces/events.js +0 -259
- package/interfaces/events.js.map +0 -1
- package/interfaces/index.d.ts +0 -7
- package/interfaces/index.js +0 -3
- package/interfaces/index.js.map +0 -1
- package/interfaces/layout.d.ts +0 -15
- package/interfaces/layout.js +0 -1
- package/interfaces/layout.js.map +0 -1
- package/interfaces/model.d.ts +0 -35
- package/interfaces/model.js +0 -1
- package/interfaces/model.js.map +0 -1
- package/interfaces/truncation.d.ts +0 -17
- package/interfaces/truncation.js +0 -1
- package/interfaces/truncation.js.map +0 -1
- package/model/alluvial.js +0 -47
- package/model/alluvial.js.map +0 -1
- package/model/binned-charts.d.ts +0 -7
- package/model/binned-charts.js +0 -52
- package/model/binned-charts.js.map +0 -1
- package/model/boxplot.js +0 -174
- package/model/boxplot.js.map +0 -1
- package/model/bullet.js +0 -74
- package/model/bullet.js.map +0 -1
- package/model/cartesian-charts.d.ts +0 -24
- package/model/cartesian-charts.js +0 -202
- package/model/cartesian-charts.js.map +0 -1
- package/model/circle-pack.js +0 -189
- package/model/circle-pack.js.map +0 -1
- package/model/gauge.js +0 -51
- package/model/gauge.js.map +0 -1
- package/model/heatmap.d.ts +0 -57
- package/model/heatmap.js +0 -281
- package/model/heatmap.js.map +0 -1
- package/model/meter.d.ts +0 -19
- package/model/meter.js +0 -118
- package/model/meter.js.map +0 -1
- package/model/model.d.ts +0 -107
- package/model/model.js +0 -712
- package/model/model.js.map +0 -1
- package/model/pie.js +0 -66
- package/model/pie.js.map +0 -1
- package/model/radar.js +0 -52
- package/model/radar.js.map +0 -1
- package/model/tree.js +0 -56
- package/model/tree.js.map +0 -1
- package/model/treemap.js +0 -44
- package/model/treemap.js.map +0 -1
- package/model/wordcloud.js +0 -47
- package/model/wordcloud.js.map +0 -1
- package/polyfills.d.ts +0 -0
- package/polyfills.js +0 -29
- package/polyfills.js.map +0 -1
- package/services/angle-utils.d.ts +0 -16
- package/services/angle-utils.js +0 -82
- package/services/angle-utils.js.map +0 -1
- package/services/canvas-zoom.js +0 -72
- package/services/canvas-zoom.js.map +0 -1
- package/services/curves.d.ts +0 -25
- package/services/curves.js +0 -77
- package/services/curves.js.map +0 -1
- package/services/essentials/dom-utils.d.ts +0 -39
- package/services/essentials/dom-utils.js +0 -423
- package/services/essentials/dom-utils.js.map +0 -1
- package/services/essentials/events.d.ts +0 -8
- package/services/essentials/events.js +0 -53
- package/services/essentials/events.js.map +0 -1
- package/services/essentials/files.d.ts +0 -6
- package/services/essentials/files.js +0 -60
- package/services/essentials/files.js.map +0 -1
- package/services/essentials/gradient-utils.d.ts +0 -6
- package/services/essentials/gradient-utils.js +0 -85
- package/services/essentials/gradient-utils.js.map +0 -1
- package/services/essentials/transitions.d.ts +0 -13
- package/services/essentials/transitions.js +0 -51
- package/services/essentials/transitions.js.map +0 -1
- package/services/index.d.ts +0 -9
- package/services/index.js +0 -12
- package/services/index.js.map +0 -1
- package/services/scales-cartesian.d.ts +0 -86
- package/services/scales-cartesian.js +0 -656
- package/services/scales-cartesian.js.map +0 -1
- package/services/service.d.ts +0 -10
- package/services/service.js +0 -24
- package/services/service.js.map +0 -1
- package/services/time-series.js +0 -147
- package/services/time-series.js.map +0 -1
- package/services/zoom.d.ts +0 -21
- package/services/zoom.js +0 -217
- package/services/zoom.js.map +0 -1
- package/styles/_chart-holder.scss +0 -50
- package/styles/color-palatte.scss +0 -362
- package/styles/colors.scss +0 -140
- package/styles/components/_color-legend.scss +0 -11
- package/styles/components/_edge.scss +0 -65
- package/styles/components/_grid.scss +0 -30
- package/styles/components/_marker.scss +0 -7
- package/styles/components/_meter-title.scss +0 -37
- package/styles/components/_tooltip.scss +0 -132
- package/styles/components/diagrams/_card-node.scss +0 -97
- package/styles/components/diagrams/_edge.scss +0 -66
- package/styles/components/diagrams/_shape-node.scss +0 -89
- package/styles/components/diagrams/index.scss +0 -4
- package/styles/graphs/_alluvial.scss +0 -17
- package/styles/graphs/_bullet.scss +0 -36
- package/styles/graphs/_circle-pack.scss +0 -36
- package/styles/graphs/_gauge.scss +0 -23
- package/styles/graphs/_heatmap.scss +0 -60
- package/styles/graphs/_meter.scss +0 -34
- package/styles/graphs/_radar.scss +0 -18
- package/styles/graphs/_scatter-stacked.scss +0 -12
- package/styles/graphs/_tree.scss +0 -47
- package/styles/graphs/index.scss +0 -18
- package/styles/styles.scss +0 -35
- package/styles/tokens.scss +0 -416
- package/styles.css +0 -6313
- package/styles.css.map +0 -1
- package/styles.min.css +0 -1
- package/styles.min.css.map +0 -1
- package/tools.d.ts +0 -144
- package/tools.js +0 -348
- package/tools.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -3444
- /package/{components → dist/components}/axes/hover-axis.d.ts +0 -0
- /package/{components → dist/components}/axes/ruler-stacked.d.ts +0 -0
- /package/{components → dist/components}/diagrams/markerDefinitions.d.ts +0 -0
- /package/{components → dist/components}/essentials/tooltip-axis.d.ts +0 -0
- /package/{interfaces → dist/interfaces}/a11y.d.ts +0 -0
- /package/{model → dist/model}/alluvial.d.ts +0 -0
- /package/{model → dist/model}/boxplot.d.ts +0 -0
- /package/{model → dist/model}/bullet.d.ts +0 -0
- /package/{model → dist/model}/circle-pack.d.ts +0 -0
- /package/{model → dist/model}/gauge.d.ts +0 -0
- /package/{model → dist/model}/pie.d.ts +0 -0
- /package/{model → dist/model}/radar.d.ts +0 -0
- /package/{model → dist/model}/tree.d.ts +0 -0
- /package/{model → dist/model}/treemap.d.ts +0 -0
- /package/{model → dist/model}/wordcloud.d.ts +0 -0
- /package/{services → dist/services}/canvas-zoom.d.ts +0 -0
- /package/{services → dist/services}/time-series.d.ts +0 -0
- /package/{styles → dist/styles}/_type.scss +0 -0
- /package/{styles → dist/styles}/components/_axis.scss +0 -0
- /package/{styles → dist/styles}/components/_callouts.scss +0 -0
- /package/{styles → dist/styles}/components/_grid-brush.scss +0 -0
- /package/{styles → dist/styles}/components/_highlights.scss +0 -0
- /package/{styles → dist/styles}/components/_layout.scss +0 -0
- /package/{styles → dist/styles}/components/_legend.scss +0 -0
- /package/{styles → dist/styles}/components/_modal.scss +0 -0
- /package/{styles → dist/styles}/components/_ruler.scss +0 -0
- /package/{styles → dist/styles}/components/_skeleton-lines.scss +0 -0
- /package/{styles → dist/styles}/components/_skeleton.scss +0 -0
- /package/{styles → dist/styles}/components/_threshold.scss +0 -0
- /package/{styles → dist/styles}/components/_title.scss +0 -0
- /package/{styles → dist/styles}/components/_toolbar.scss +0 -0
- /package/{styles → dist/styles}/components/_zero-line.scss +0 -0
- /package/{styles → dist/styles}/components/_zoom-bar.scss +0 -0
- /package/{styles → dist/styles}/components/diagrams/_marker.scss +0 -0
- /package/{styles → dist/styles}/components/index.scss +0 -0
- /package/{styles → dist/styles}/graphs/_area.scss +0 -0
- /package/{styles → dist/styles}/graphs/_bubble.scss +0 -0
- /package/{styles → dist/styles}/graphs/_donut.scss +0 -0
- /package/{styles → dist/styles}/graphs/_line.scss +0 -0
- /package/{styles → dist/styles}/graphs/_lollipop.scss +0 -0
- /package/{styles → dist/styles}/graphs/_pie.scss +0 -0
- /package/{styles → dist/styles}/graphs/_scatter.scss +0 -0
- /package/{styles → dist/styles}/graphs/_treemap.scss +0 -0
- /package/{styles → dist/styles}/graphs/_wordcloud.scss +0 -0
|
@@ -0,0 +1,749 @@
|
|
|
1
|
+
import { af as g, ag as f, ah as x, ai as b, aj as H, X as se, s as z, g as l, J as Y, n as X, ab as ie, L as oe } from "./color-scale-utils-5eb3eeaa.mjs";
|
|
2
|
+
import { S as O, D as ae } from "./angle-utils-8b6ce998.mjs";
|
|
3
|
+
import { _ as B, e as u, i as k, S as d } from "./enums-a96ef472.mjs";
|
|
4
|
+
import { select as re, max as le, extent as q, scaleTime as ue, scaleLog as ce, scaleBand as me, scaleLinear as de, curveLinear as ge, curveLinearClosed as he, curveBasis as fe, curveBasisClosed as pe, curveBasisOpen as ve, curveBundle as De, curveCardinal as xe, curveCardinalClosed as ye, curveCardinalOpen as Oe, curveCatmullRom as Ae, curveCatmullRomClosed as Te, curveCatmullRomOpen as Me, curveMonotoneX as Se, curveMonotoneY as Pe, curveNatural as Re, curveStep as Be, curveStepAfter as Le, curveStepBefore as Ee } from "d3";
|
|
5
|
+
function J(i, e) {
|
|
6
|
+
g(2, arguments);
|
|
7
|
+
var t = f(i), n = x(e);
|
|
8
|
+
return isNaN(n) ? /* @__PURE__ */ new Date(NaN) : (n && t.setDate(t.getDate() + n), t);
|
|
9
|
+
}
|
|
10
|
+
function C(i, e) {
|
|
11
|
+
g(2, arguments);
|
|
12
|
+
var t = f(i), n = x(e);
|
|
13
|
+
if (isNaN(n))
|
|
14
|
+
return /* @__PURE__ */ new Date(NaN);
|
|
15
|
+
if (!n)
|
|
16
|
+
return t;
|
|
17
|
+
var s = t.getDate(), o = new Date(t.getTime());
|
|
18
|
+
o.setMonth(t.getMonth() + n + 1, 0);
|
|
19
|
+
var a = o.getDate();
|
|
20
|
+
return s >= a ? o : (t.setFullYear(o.getFullYear(), o.getMonth(), s), t);
|
|
21
|
+
}
|
|
22
|
+
var Ie = 36e5;
|
|
23
|
+
function Q(i, e) {
|
|
24
|
+
g(2, arguments);
|
|
25
|
+
var t = x(e);
|
|
26
|
+
return b(i, t * Ie);
|
|
27
|
+
}
|
|
28
|
+
function G(i) {
|
|
29
|
+
g(1, arguments);
|
|
30
|
+
var e = f(i);
|
|
31
|
+
return e.setHours(0, 0, 0, 0), e;
|
|
32
|
+
}
|
|
33
|
+
var be = 864e5;
|
|
34
|
+
function Ce(i, e) {
|
|
35
|
+
g(2, arguments);
|
|
36
|
+
var t = G(i), n = G(e), s = t.getTime() - H(t), o = n.getTime() - H(n);
|
|
37
|
+
return Math.round((s - o) / be);
|
|
38
|
+
}
|
|
39
|
+
var we = 6e4;
|
|
40
|
+
function E(i, e) {
|
|
41
|
+
g(2, arguments);
|
|
42
|
+
var t = x(e);
|
|
43
|
+
return b(i, t * we);
|
|
44
|
+
}
|
|
45
|
+
function I(i, e) {
|
|
46
|
+
g(2, arguments);
|
|
47
|
+
var t = x(e);
|
|
48
|
+
return b(i, t * 1e3);
|
|
49
|
+
}
|
|
50
|
+
function ee(i, e) {
|
|
51
|
+
g(2, arguments);
|
|
52
|
+
var t = x(e);
|
|
53
|
+
return C(i, t * 12);
|
|
54
|
+
}
|
|
55
|
+
function M(i, e) {
|
|
56
|
+
g(2, arguments);
|
|
57
|
+
var t = f(i), n = f(e), s = t.getTime() - n.getTime();
|
|
58
|
+
return s < 0 ? -1 : s > 0 ? 1 : s;
|
|
59
|
+
}
|
|
60
|
+
var Ze = 6e4, Ne = 36e5;
|
|
61
|
+
function Fe(i, e) {
|
|
62
|
+
g(2, arguments);
|
|
63
|
+
var t = f(i), n = f(e), s = t.getFullYear() - n.getFullYear(), o = t.getMonth() - n.getMonth();
|
|
64
|
+
return s * 12 + o;
|
|
65
|
+
}
|
|
66
|
+
function Ve(i, e) {
|
|
67
|
+
g(2, arguments);
|
|
68
|
+
var t = f(i), n = f(e);
|
|
69
|
+
return t.getFullYear() - n.getFullYear();
|
|
70
|
+
}
|
|
71
|
+
function _(i, e) {
|
|
72
|
+
var t = i.getFullYear() - e.getFullYear() || i.getMonth() - e.getMonth() || i.getDate() - e.getDate() || i.getHours() - e.getHours() || i.getMinutes() - e.getMinutes() || i.getSeconds() - e.getSeconds() || i.getMilliseconds() - e.getMilliseconds();
|
|
73
|
+
return t < 0 ? -1 : t > 0 ? 1 : t;
|
|
74
|
+
}
|
|
75
|
+
function He(i, e) {
|
|
76
|
+
g(2, arguments);
|
|
77
|
+
var t = f(i), n = f(e), s = _(t, n), o = Math.abs(Ce(t, n));
|
|
78
|
+
t.setDate(t.getDate() - s * o);
|
|
79
|
+
var a = +(_(t, n) === -s), r = s * (o - a);
|
|
80
|
+
return r === 0 ? 0 : r;
|
|
81
|
+
}
|
|
82
|
+
function w(i, e) {
|
|
83
|
+
return g(2, arguments), f(i).getTime() - f(e).getTime();
|
|
84
|
+
}
|
|
85
|
+
var U = {
|
|
86
|
+
ceil: Math.ceil,
|
|
87
|
+
round: Math.round,
|
|
88
|
+
floor: Math.floor,
|
|
89
|
+
trunc: function(e) {
|
|
90
|
+
return e < 0 ? Math.ceil(e) : Math.floor(e);
|
|
91
|
+
}
|
|
92
|
+
// Math.trunc is not supported by IE
|
|
93
|
+
}, ze = "trunc";
|
|
94
|
+
function Z(i) {
|
|
95
|
+
return i ? U[i] : U[ze];
|
|
96
|
+
}
|
|
97
|
+
function Ye(i, e, t) {
|
|
98
|
+
g(2, arguments);
|
|
99
|
+
var n = w(i, e) / Ne;
|
|
100
|
+
return Z(t == null ? void 0 : t.roundingMethod)(n);
|
|
101
|
+
}
|
|
102
|
+
function $(i, e, t) {
|
|
103
|
+
g(2, arguments);
|
|
104
|
+
var n = w(i, e) / Ze;
|
|
105
|
+
return Z(t == null ? void 0 : t.roundingMethod)(n);
|
|
106
|
+
}
|
|
107
|
+
function Xe(i) {
|
|
108
|
+
g(1, arguments);
|
|
109
|
+
var e = f(i);
|
|
110
|
+
return e.setHours(23, 59, 59, 999), e;
|
|
111
|
+
}
|
|
112
|
+
function ke(i) {
|
|
113
|
+
g(1, arguments);
|
|
114
|
+
var e = f(i), t = e.getMonth();
|
|
115
|
+
return e.setFullYear(e.getFullYear(), t + 1, 0), e.setHours(23, 59, 59, 999), e;
|
|
116
|
+
}
|
|
117
|
+
function Ge(i) {
|
|
118
|
+
g(1, arguments);
|
|
119
|
+
var e = f(i);
|
|
120
|
+
return Xe(e).getTime() === ke(e).getTime();
|
|
121
|
+
}
|
|
122
|
+
function _e(i, e) {
|
|
123
|
+
g(2, arguments);
|
|
124
|
+
var t = f(i), n = f(e), s = M(t, n), o = Math.abs(Fe(t, n)), a;
|
|
125
|
+
if (o < 1)
|
|
126
|
+
a = 0;
|
|
127
|
+
else {
|
|
128
|
+
t.getMonth() === 1 && t.getDate() > 27 && t.setDate(30), t.setMonth(t.getMonth() - s * o);
|
|
129
|
+
var r = M(t, n) === -s;
|
|
130
|
+
Ge(f(i)) && o === 1 && M(i, n) === 1 && (r = !1), a = s * (o - Number(r));
|
|
131
|
+
}
|
|
132
|
+
return a === 0 ? 0 : a;
|
|
133
|
+
}
|
|
134
|
+
function j(i, e, t) {
|
|
135
|
+
g(2, arguments);
|
|
136
|
+
var n = w(i, e) / 1e3;
|
|
137
|
+
return Z(t == null ? void 0 : t.roundingMethod)(n);
|
|
138
|
+
}
|
|
139
|
+
function Ue(i, e) {
|
|
140
|
+
g(2, arguments);
|
|
141
|
+
var t = f(i), n = f(e), s = M(t, n), o = Math.abs(Ve(t, n));
|
|
142
|
+
t.setFullYear(1584), n.setFullYear(1584);
|
|
143
|
+
var a = M(t, n) === -s, r = s * (o - Number(a));
|
|
144
|
+
return r === 0 ? 0 : r;
|
|
145
|
+
}
|
|
146
|
+
function $e(i, e) {
|
|
147
|
+
g(2, arguments);
|
|
148
|
+
var t = x(e);
|
|
149
|
+
return J(i, -t);
|
|
150
|
+
}
|
|
151
|
+
function je(i, e) {
|
|
152
|
+
g(2, arguments);
|
|
153
|
+
var t = x(e);
|
|
154
|
+
return C(i, -t);
|
|
155
|
+
}
|
|
156
|
+
function Ke(i, e) {
|
|
157
|
+
g(2, arguments);
|
|
158
|
+
var t = x(e);
|
|
159
|
+
return Q(i, -t);
|
|
160
|
+
}
|
|
161
|
+
function K(i, e) {
|
|
162
|
+
g(2, arguments);
|
|
163
|
+
var t = x(e);
|
|
164
|
+
return E(i, -t);
|
|
165
|
+
}
|
|
166
|
+
function W(i, e) {
|
|
167
|
+
g(2, arguments);
|
|
168
|
+
var t = x(e);
|
|
169
|
+
return I(i, -t);
|
|
170
|
+
}
|
|
171
|
+
function We(i, e) {
|
|
172
|
+
g(2, arguments);
|
|
173
|
+
var t = x(e);
|
|
174
|
+
return ee(i, -t);
|
|
175
|
+
}
|
|
176
|
+
function qe(i) {
|
|
177
|
+
var e = i == null ? 0 : i.length;
|
|
178
|
+
return e ? se(i, 1) : [];
|
|
179
|
+
}
|
|
180
|
+
class it extends O {
|
|
181
|
+
/**
|
|
182
|
+
* focal: object to zoom into
|
|
183
|
+
* canvasElements: all the elements to translate and zoom on the chart area
|
|
184
|
+
* zoomSettings: object containing duration, easing and zoomlevel for the zoom behaviours
|
|
185
|
+
* */
|
|
186
|
+
zoomIn(e, t, n) {
|
|
187
|
+
let s, o, a;
|
|
188
|
+
const r = n || z;
|
|
189
|
+
e && (s = e.x, o = e.y, a = 2);
|
|
190
|
+
const { width: c, height: h } = ae.getSVGElementSize(this.services.domUtils.getHolder(), {
|
|
191
|
+
useClientDimensions: !0
|
|
192
|
+
});
|
|
193
|
+
t.transition().duration(r.duration).ease(r.ease).attr(
|
|
194
|
+
"transform",
|
|
195
|
+
`translate(${c / 2}, ${h / 2}) scale(${a}) translate(${-s},${-o})`
|
|
196
|
+
), this.services.events.dispatchEvent(B.CanvasZoom.CANVAS_ZOOM_IN, {
|
|
197
|
+
element: re(e)
|
|
198
|
+
});
|
|
199
|
+
}
|
|
200
|
+
zoomOut(e, t) {
|
|
201
|
+
const n = t || z;
|
|
202
|
+
e.transition().duration(n.duration).ease(n.ease).attr("transform", ""), this.services.events.dispatchEvent(B.CanvasZoom.CANVAS_ZOOM_OUT);
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
class ot extends O {
|
|
206
|
+
init() {
|
|
207
|
+
this.documentFragment = document.createDocumentFragment();
|
|
208
|
+
}
|
|
209
|
+
addEventListener(e, t) {
|
|
210
|
+
this.documentFragment.addEventListener(e, t);
|
|
211
|
+
}
|
|
212
|
+
removeEventListener(e, t) {
|
|
213
|
+
this.documentFragment.removeEventListener(e, t);
|
|
214
|
+
}
|
|
215
|
+
dispatchEvent(e, t) {
|
|
216
|
+
let n;
|
|
217
|
+
t ? n = new CustomEvent(e, {
|
|
218
|
+
detail: t
|
|
219
|
+
}) : (n = document.createEvent("Event"), n.initEvent(e, !1, !0)), this.documentFragment.dispatchEvent(n);
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
class at extends O {
|
|
223
|
+
constructor(e, t) {
|
|
224
|
+
super(e, t);
|
|
225
|
+
}
|
|
226
|
+
downloadCSV(e, t) {
|
|
227
|
+
const n = document.createElement("a"), s = "text/csv;encoding:utf-8";
|
|
228
|
+
if (navigator.msSaveBlob)
|
|
229
|
+
navigator.msSaveBlob(
|
|
230
|
+
new Blob([e], {
|
|
231
|
+
type: s
|
|
232
|
+
}),
|
|
233
|
+
t
|
|
234
|
+
);
|
|
235
|
+
else if (URL && "download" in n) {
|
|
236
|
+
const o = URL.createObjectURL(
|
|
237
|
+
new Blob([e], {
|
|
238
|
+
type: s
|
|
239
|
+
})
|
|
240
|
+
);
|
|
241
|
+
n.href = o, n.setAttribute("download", t), document.body.appendChild(n), n.click(), document.body.removeChild(n), URL.revokeObjectURL(o);
|
|
242
|
+
} else
|
|
243
|
+
location.href = `data:application/octet-stream,${encodeURIComponent(e)}`;
|
|
244
|
+
}
|
|
245
|
+
downloadImage(e, t) {
|
|
246
|
+
const n = document.createElement("a");
|
|
247
|
+
n.download = t, n.href = e, document.body.appendChild(n), n.click(), document.body.removeChild(n);
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
class rt extends O {
|
|
251
|
+
constructor() {
|
|
252
|
+
super(...arguments), this.pendingTransitions = {};
|
|
253
|
+
}
|
|
254
|
+
init() {
|
|
255
|
+
var e;
|
|
256
|
+
(e = this.services.events) == null || e.addEventListener(B.Model.UPDATE, () => {
|
|
257
|
+
this.pendingTransitions = {};
|
|
258
|
+
});
|
|
259
|
+
}
|
|
260
|
+
setupTransition({ transition: e, name: t, animate: n }) {
|
|
261
|
+
return this.pendingTransitions[e._id] = e, e.on("end interrupt cancel", () => {
|
|
262
|
+
delete this.pendingTransitions[e._id];
|
|
263
|
+
}), this.model.getOptions().animations === !1 || n === !1 ? e.duration(0) : e.duration(l(Y, t, "duration") || Y.default.duration);
|
|
264
|
+
}
|
|
265
|
+
getPendingTransitions() {
|
|
266
|
+
return this.pendingTransitions;
|
|
267
|
+
}
|
|
268
|
+
}
|
|
269
|
+
class lt extends O {
|
|
270
|
+
constructor() {
|
|
271
|
+
super(...arguments), this.scaleTypes = {
|
|
272
|
+
top: null,
|
|
273
|
+
right: null,
|
|
274
|
+
bottom: null,
|
|
275
|
+
left: null
|
|
276
|
+
}, this.scales = {
|
|
277
|
+
// null or function
|
|
278
|
+
top: null,
|
|
279
|
+
right: null,
|
|
280
|
+
bottom: null,
|
|
281
|
+
left: null
|
|
282
|
+
};
|
|
283
|
+
}
|
|
284
|
+
getDomainAxisPosition({ datum: e = null } = {}) {
|
|
285
|
+
if (this.dualAxes && e) {
|
|
286
|
+
const t = this.model.getOptions(), { groupMapsTo: n } = t.data, s = l(t, "axes", this.secondaryDomainAxisPosition), o = e[n];
|
|
287
|
+
if (s != null && s.correspondingDatasets && s.correspondingDatasets.includes(o))
|
|
288
|
+
return this.secondaryDomainAxisPosition;
|
|
289
|
+
}
|
|
290
|
+
return this.domainAxisPosition;
|
|
291
|
+
}
|
|
292
|
+
getRangeAxisPosition({ datum: e = null, groups: t = null } = {}) {
|
|
293
|
+
if (this.dualAxes) {
|
|
294
|
+
const n = this.model.getOptions(), { groupMapsTo: s } = n.data, o = l(n, "axes", this.secondaryRangeAxisPosition);
|
|
295
|
+
let a;
|
|
296
|
+
if (e !== null ? a = e[s] : t && t.length > 0 && (a = t[0]), o != null && o.correspondingDatasets && o.correspondingDatasets.includes(a))
|
|
297
|
+
return this.secondaryRangeAxisPosition;
|
|
298
|
+
}
|
|
299
|
+
return this.rangeAxisPosition;
|
|
300
|
+
}
|
|
301
|
+
getAxisOptions(e) {
|
|
302
|
+
return l(this.model.getOptions(), "axes", e);
|
|
303
|
+
}
|
|
304
|
+
getDomainAxisOptions() {
|
|
305
|
+
const e = this.getDomainAxisPosition();
|
|
306
|
+
return this.getAxisOptions(e);
|
|
307
|
+
}
|
|
308
|
+
getRangeAxisOptions() {
|
|
309
|
+
const e = this.getRangeAxisPosition();
|
|
310
|
+
return this.getAxisOptions(e);
|
|
311
|
+
}
|
|
312
|
+
getScaleLabel(e) {
|
|
313
|
+
const n = this.getAxisOptions(e).title;
|
|
314
|
+
return n || (e === u.BOTTOM || e === u.TOP ? "x-value" : "y-value");
|
|
315
|
+
}
|
|
316
|
+
getDomainLabel() {
|
|
317
|
+
return this.getScaleLabel(this.getDomainAxisPosition());
|
|
318
|
+
}
|
|
319
|
+
getRangeLabel() {
|
|
320
|
+
return this.getScaleLabel(this.getRangeAxisPosition());
|
|
321
|
+
}
|
|
322
|
+
update() {
|
|
323
|
+
this.determineAxisDuality(), this.findDomainAndRangeAxes(), this.determineOrientation(), Object.keys(u).map(
|
|
324
|
+
(t) => u[t]
|
|
325
|
+
).forEach((t) => {
|
|
326
|
+
this.scales[t] = this.createScale(t);
|
|
327
|
+
});
|
|
328
|
+
}
|
|
329
|
+
findDomainAndRangeAxes() {
|
|
330
|
+
const e = this.findVerticalAxesPositions(), t = this.findHorizontalAxesPositions(), n = this.findDomainAndRangeAxesPositions(
|
|
331
|
+
e,
|
|
332
|
+
t
|
|
333
|
+
);
|
|
334
|
+
this.domainAxisPosition = n.primaryDomainAxisPosition, this.rangeAxisPosition = n.primaryRangeAxisPosition, this.isDualAxes() && (this.secondaryDomainAxisPosition = n.secondaryDomainAxisPosition, this.secondaryRangeAxisPosition = n.secondaryRangeAxisPosition);
|
|
335
|
+
}
|
|
336
|
+
determineOrientation() {
|
|
337
|
+
(this.rangeAxisPosition === u.LEFT || this.rangeAxisPosition === u.RIGHT) && (this.domainAxisPosition === u.BOTTOM || this.domainAxisPosition === u.TOP) ? this.orientation = k.VERTICAL : this.orientation = k.HORIZONTAL;
|
|
338
|
+
}
|
|
339
|
+
isDualAxes() {
|
|
340
|
+
return this.dualAxes;
|
|
341
|
+
}
|
|
342
|
+
// if any of the axes objects have correspondingDatasets [] asserted we flag the chart as dual axes
|
|
343
|
+
// it does not count as dual axes if it just has another axis turned on but is not actually using it to map a dataset
|
|
344
|
+
determineAxisDuality() {
|
|
345
|
+
var n, s, o, a;
|
|
346
|
+
const e = this.model.getOptions(), t = l(e, "axes");
|
|
347
|
+
((n = t[u.LEFT]) != null && n.correspondingDatasets && t[u.RIGHT] || (s = t[u.RIGHT]) != null && s.correspondingDatasets && t[u.LEFT] || (o = t[u.TOP]) != null && o.correspondingDatasets && t[u.BOTTOM] || (a = t[u.BOTTOM]) != null && a.correspondingDatasets && t[u.TOP]) && (this.dualAxes = !0);
|
|
348
|
+
}
|
|
349
|
+
getCustomDomainValuesByposition(e) {
|
|
350
|
+
const t = l(this.model.getOptions(), "axes", e, "domain");
|
|
351
|
+
if (t && !Array.isArray(t))
|
|
352
|
+
throw new Error(`Domain in ${e} axis is not a valid array`);
|
|
353
|
+
if (Array.isArray(t) && (this.scaleTypes[e] === d.LINEAR || this.scaleTypes[e] === d.TIME) && t.length !== 2)
|
|
354
|
+
throw new Error(
|
|
355
|
+
`There can only be 2 elements in domain for scale type: ${this.scaleTypes[e]}`
|
|
356
|
+
);
|
|
357
|
+
return t;
|
|
358
|
+
}
|
|
359
|
+
getOrientation() {
|
|
360
|
+
return this.orientation;
|
|
361
|
+
}
|
|
362
|
+
getScaleByPosition(e) {
|
|
363
|
+
return this.scales[e];
|
|
364
|
+
}
|
|
365
|
+
getScaleTypeByPosition(e) {
|
|
366
|
+
return this.scaleTypes[e];
|
|
367
|
+
}
|
|
368
|
+
getDomainAxisScaleType() {
|
|
369
|
+
const e = this.getDomainAxisPosition();
|
|
370
|
+
return this.getScaleTypeByPosition(e);
|
|
371
|
+
}
|
|
372
|
+
getRangeAxisScaleType() {
|
|
373
|
+
const e = this.getRangeAxisPosition();
|
|
374
|
+
return this.getScaleTypeByPosition(e);
|
|
375
|
+
}
|
|
376
|
+
getDomainScale() {
|
|
377
|
+
return this.scales[this.domainAxisPosition];
|
|
378
|
+
}
|
|
379
|
+
getRangeScale() {
|
|
380
|
+
return this.scales[this.rangeAxisPosition];
|
|
381
|
+
}
|
|
382
|
+
// Find the main x-axis out of the 2 x-axis on the chart (when 2D axis is used)
|
|
383
|
+
getMainXAxisPosition() {
|
|
384
|
+
const e = [u.BOTTOM, u.TOP];
|
|
385
|
+
return [this.domainAxisPosition, this.rangeAxisPosition].find(
|
|
386
|
+
(t) => e.indexOf(t) > -1
|
|
387
|
+
);
|
|
388
|
+
}
|
|
389
|
+
// Find the main y-axis out of the 2 y-axis on the chart (when 2D axis is used)
|
|
390
|
+
getMainYAxisPosition() {
|
|
391
|
+
const e = [u.LEFT, u.RIGHT];
|
|
392
|
+
return [this.domainAxisPosition, this.rangeAxisPosition].find(
|
|
393
|
+
(t) => e.indexOf(t) > -1
|
|
394
|
+
);
|
|
395
|
+
}
|
|
396
|
+
getMainXScale() {
|
|
397
|
+
return this.scales[this.getMainXAxisPosition()];
|
|
398
|
+
}
|
|
399
|
+
getMainYScale() {
|
|
400
|
+
return this.scales[this.getMainYAxisPosition()];
|
|
401
|
+
}
|
|
402
|
+
getValueFromScale(e, t, n, s) {
|
|
403
|
+
const o = this.model.getOptions(), r = l(o, "axes")[n], { mapsTo: c } = r, h = l(s, c) !== null ? s[c] : s;
|
|
404
|
+
let v;
|
|
405
|
+
switch (t) {
|
|
406
|
+
case d.LABELS:
|
|
407
|
+
v = e(h) + e.step() / 2;
|
|
408
|
+
break;
|
|
409
|
+
case d.TIME:
|
|
410
|
+
v = e(new Date(h));
|
|
411
|
+
break;
|
|
412
|
+
default:
|
|
413
|
+
v = e(h);
|
|
414
|
+
}
|
|
415
|
+
return v;
|
|
416
|
+
}
|
|
417
|
+
getBoundedScaledValues(e) {
|
|
418
|
+
const { bounds: t } = this.model.getOptions(), n = this.getRangeAxisPosition({ datum: e }), s = this.scales[n], o = this.model.getOptions(), r = l(o, "axes")[n], { mapsTo: c } = r, h = e[c] !== void 0 ? e[c] : e;
|
|
419
|
+
return [
|
|
420
|
+
s(
|
|
421
|
+
l(e, t.upperBoundMapsTo) !== null ? e[t.upperBoundMapsTo] : h
|
|
422
|
+
),
|
|
423
|
+
s(
|
|
424
|
+
l(e, t.lowerBoundMapsTo) !== null ? e[t.lowerBoundMapsTo] : h
|
|
425
|
+
)
|
|
426
|
+
];
|
|
427
|
+
}
|
|
428
|
+
getValueThroughAxisPosition(e, t) {
|
|
429
|
+
const n = this.scaleTypes[e], s = this.scales[e];
|
|
430
|
+
return this.getValueFromScale(s, n, e, t);
|
|
431
|
+
}
|
|
432
|
+
getDomainValue(e) {
|
|
433
|
+
const t = this.getDomainAxisPosition({ datum: e });
|
|
434
|
+
return this.getValueThroughAxisPosition(t, e);
|
|
435
|
+
}
|
|
436
|
+
getRangeValue(e) {
|
|
437
|
+
const t = this.getRangeAxisPosition({ datum: e });
|
|
438
|
+
return this.getValueThroughAxisPosition(t, e);
|
|
439
|
+
}
|
|
440
|
+
getMainXScaleType() {
|
|
441
|
+
return this.getScaleTypeByPosition(this.getMainXAxisPosition());
|
|
442
|
+
}
|
|
443
|
+
getMainYScaleType() {
|
|
444
|
+
return this.getScaleTypeByPosition(this.getMainYAxisPosition());
|
|
445
|
+
}
|
|
446
|
+
getDomainIdentifier(e) {
|
|
447
|
+
const t = this.model.getOptions();
|
|
448
|
+
return l(t, "axes", this.getDomainAxisPosition({ datum: e }), "mapsTo");
|
|
449
|
+
}
|
|
450
|
+
getRangeIdentifier(e) {
|
|
451
|
+
const t = this.model.getOptions();
|
|
452
|
+
return l(t, "axes", this.getRangeAxisPosition({ datum: e }), "mapsTo");
|
|
453
|
+
}
|
|
454
|
+
extendsDomain(e, t) {
|
|
455
|
+
const n = this.model.getOptions(), s = l(n, "axes", e);
|
|
456
|
+
if (s.scaleType === d.TIME) {
|
|
457
|
+
const o = l(n, "timeScale", "addSpaceOnEdges");
|
|
458
|
+
return Je(t, o);
|
|
459
|
+
} else
|
|
460
|
+
return Qe(t, X.paddingRatio, s.scaleType);
|
|
461
|
+
}
|
|
462
|
+
findVerticalAxesPositions() {
|
|
463
|
+
const e = this.model.getOptions(), t = l(e, "axes"), n = this.isDualAxes();
|
|
464
|
+
return l(t, u.LEFT) === null && l(t, u.RIGHT) !== null || l(t, u.RIGHT, "main") === !0 || n && l(t, u.LEFT, "correspondingDatasets") ? {
|
|
465
|
+
primary: u.RIGHT,
|
|
466
|
+
secondary: u.LEFT
|
|
467
|
+
} : { primary: u.LEFT, secondary: u.RIGHT };
|
|
468
|
+
}
|
|
469
|
+
findHorizontalAxesPositions() {
|
|
470
|
+
const e = this.model.getOptions(), t = l(e, "axes"), n = this.isDualAxes();
|
|
471
|
+
return l(t, u.BOTTOM) === null && l(t, u.TOP) !== null || l(t, u.TOP, "main") === !0 || n && l(t, u.BOTTOM, "correspondingDatasets") ? {
|
|
472
|
+
primary: u.TOP,
|
|
473
|
+
secondary: u.BOTTOM
|
|
474
|
+
} : { primary: u.BOTTOM, secondary: u.TOP };
|
|
475
|
+
}
|
|
476
|
+
findDomainAndRangeAxesPositions(e, t) {
|
|
477
|
+
const n = this.model.getOptions(), s = l(n, "axes", e.primary), o = l(n, "axes", t.primary), a = s.scaleType || d.LINEAR, r = o.scaleType || d.LINEAR, c = {
|
|
478
|
+
primaryDomainAxisPosition: null,
|
|
479
|
+
secondaryDomainAxisPosition: null,
|
|
480
|
+
primaryRangeAxisPosition: null,
|
|
481
|
+
secondaryRangeAxisPosition: null
|
|
482
|
+
};
|
|
483
|
+
return c.primaryDomainAxisPosition = t.primary, c.primaryRangeAxisPosition = e.primary, c.secondaryDomainAxisPosition = t.secondary, c.secondaryRangeAxisPosition = e.secondary, (!(r === d.LABELS || r === d.TIME) && a === d.LABELS || a === d.TIME) && (c.primaryDomainAxisPosition = e.primary, c.primaryRangeAxisPosition = t.primary, c.secondaryDomainAxisPosition = e.secondary, c.secondaryRangeAxisPosition = t.secondary), c;
|
|
484
|
+
}
|
|
485
|
+
getScaleDomain(e) {
|
|
486
|
+
const t = this.model.getOptions(), n = l(t, "axes", e), s = l(t, "bounds"), { includeZero: o } = n, a = l(n, "scaleType") || d.LINEAR;
|
|
487
|
+
if (this.model.isDataEmpty())
|
|
488
|
+
return [];
|
|
489
|
+
if (n.binned) {
|
|
490
|
+
const { bins: m } = this.model.getBinConfigurations();
|
|
491
|
+
return [0, le(m, (p) => p.length)];
|
|
492
|
+
} else if (n.limitDomainToBins) {
|
|
493
|
+
const { bins: m } = this.model.getBinConfigurations(), p = this.model.getStackKeys({ bins: m });
|
|
494
|
+
return [p[0].split("-")[0], p[p.length - 1].split("-")[1]];
|
|
495
|
+
}
|
|
496
|
+
const r = this.model.getDisplayData(), { extendLinearDomainBy: c, mapsTo: h, percentage: v, thresholds: y } = n, { reference: A, compareTo: S } = X.ratio;
|
|
497
|
+
if (n.domain)
|
|
498
|
+
return a === d.LABELS ? n.domain : (a === d.TIME && (n.domain = n.domain.map(
|
|
499
|
+
(m) => m.getTime === void 0 ? new Date(m) : m
|
|
500
|
+
)), this.extendsDomain(e, n.domain));
|
|
501
|
+
if (v)
|
|
502
|
+
return [0, 100];
|
|
503
|
+
if (n && a === d.LABELS)
|
|
504
|
+
return ie(r.map((m) => m[h]));
|
|
505
|
+
let P, D;
|
|
506
|
+
const L = this.model.getDataGroupNames();
|
|
507
|
+
if (a === d.LABELS_RATIO)
|
|
508
|
+
return r.map((m) => `${m[A]}/${m[S]}`);
|
|
509
|
+
if (a === d.TIME)
|
|
510
|
+
D = r.map((m) => +new Date(m[h]));
|
|
511
|
+
else if (s && t.axes)
|
|
512
|
+
D = [], r.forEach((m) => {
|
|
513
|
+
D.push(m[h]), m[s.upperBoundMapsTo] && D.push(m[s.upperBoundMapsTo]), m[s.lowerBoundMapsTo] && D.push(m[s.lowerBoundMapsTo]);
|
|
514
|
+
});
|
|
515
|
+
else if (n.stacked === !0 && L && e === this.getRangeAxisPosition()) {
|
|
516
|
+
const { groupMapsTo: m } = t.data, p = this.model.getDataValuesGroupedByKeys({
|
|
517
|
+
groups: L
|
|
518
|
+
}), te = r.filter(
|
|
519
|
+
(T) => !L.includes(T[m])
|
|
520
|
+
), N = [];
|
|
521
|
+
p.forEach((T) => {
|
|
522
|
+
const { ...ne } = T;
|
|
523
|
+
let F = 0, V = 0;
|
|
524
|
+
Object.values(ne).forEach((R) => {
|
|
525
|
+
isNaN(R) || (R < 0 ? V += R : F += R);
|
|
526
|
+
}), N.push([V, F]);
|
|
527
|
+
}), D = [
|
|
528
|
+
...qe(N),
|
|
529
|
+
...te.map((T) => T[h])
|
|
530
|
+
];
|
|
531
|
+
} else
|
|
532
|
+
D = [], r.forEach((m) => {
|
|
533
|
+
const p = m[h];
|
|
534
|
+
Array.isArray(p) && p.length === 2 ? (D.push(p[0]), D.push(p[1])) : (c && D.push(Math.max(m[h], m[c])), D.push(p));
|
|
535
|
+
});
|
|
536
|
+
return a !== d.TIME && a !== d.LOG && o && D.push(0), y && y.length > 0 && y.forEach((m) => {
|
|
537
|
+
const p = l(m, "value");
|
|
538
|
+
p !== null && D.push(p);
|
|
539
|
+
}), P = q(D), P = this.extendsDomain(e, P), P;
|
|
540
|
+
}
|
|
541
|
+
createScale(e) {
|
|
542
|
+
const t = this.model.getOptions(), n = l(t, "axes", e);
|
|
543
|
+
if (!n)
|
|
544
|
+
return null;
|
|
545
|
+
const s = l(n, "scaleType") || d.LINEAR;
|
|
546
|
+
this.scaleTypes[e] = s;
|
|
547
|
+
let o;
|
|
548
|
+
return s === d.TIME ? o = ue() : s === d.LOG ? o = ce().base(n.base || 10) : s === d.LABELS || s === d.LABELS_RATIO ? o = me() : o = de(), o.domain(this.getScaleDomain(e)), o;
|
|
549
|
+
}
|
|
550
|
+
getHighestDomainThreshold() {
|
|
551
|
+
const e = l(this.model.getOptions(), "axes"), t = this.getDomainAxisPosition(), { thresholds: n } = e[t];
|
|
552
|
+
if (!Array.isArray(n) || Array.isArray(n) && !n.length)
|
|
553
|
+
return null;
|
|
554
|
+
const s = this.getDomainScale(), o = n.sort((r, c) => c.value - r.value)[0];
|
|
555
|
+
return this.getScaleTypeByPosition(t) === d.TIME && (typeof o.value == "string" || o.value.getTime === void 0) && (o.value = new Date(o.value)), {
|
|
556
|
+
threshold: o,
|
|
557
|
+
scaleValue: s(o.value)
|
|
558
|
+
};
|
|
559
|
+
}
|
|
560
|
+
getHighestRangeThreshold() {
|
|
561
|
+
const e = l(this.model.getOptions(), "axes"), t = this.getRangeAxisPosition(), { thresholds: n } = e[t];
|
|
562
|
+
if (!Array.isArray(n) || Array.isArray(n) && !n.length)
|
|
563
|
+
return null;
|
|
564
|
+
const s = this.getRangeScale(), o = n.sort((a, r) => r.value - a.value)[0];
|
|
565
|
+
return {
|
|
566
|
+
threshold: o,
|
|
567
|
+
scaleValue: s(o.value)
|
|
568
|
+
};
|
|
569
|
+
}
|
|
570
|
+
}
|
|
571
|
+
function Je(i, e) {
|
|
572
|
+
const t = new Date(i[0]), n = new Date(i[1]);
|
|
573
|
+
return Ue(n, t) > 1 ? [We(t, e), ee(n, e)] : _e(n, t) > 1 ? [je(t, e), C(n, e)] : He(n, t) > 1 ? [$e(t, e), J(n, e)] : Ye(n, t) > 1 ? [Ke(t, e), Q(n, e)] : $(n, t) > 30 ? [
|
|
574
|
+
K(t, e * 30),
|
|
575
|
+
E(n, e * 30)
|
|
576
|
+
] : $(n, t) > 1 ? [K(t, e), E(n, e)] : j(n, t) > 15 ? [
|
|
577
|
+
W(t, e * 15),
|
|
578
|
+
I(n, e * 15)
|
|
579
|
+
] : j(n, t) > 1 ? [W(t, e), I(n, e)] : [t, n];
|
|
580
|
+
}
|
|
581
|
+
function Qe([i, e], t, n) {
|
|
582
|
+
const o = (e - i) * t, a = e <= 0 && e + o > 0 ? 0 : e + o;
|
|
583
|
+
let r = i >= 0 && i - o < 0 ? 0 : i - o;
|
|
584
|
+
if (n === d.LOG && r <= 0) {
|
|
585
|
+
if (i <= 0)
|
|
586
|
+
throw Error("Data must have values greater than 0 if log scale type is used.");
|
|
587
|
+
r = i;
|
|
588
|
+
}
|
|
589
|
+
return [r, a];
|
|
590
|
+
}
|
|
591
|
+
class ut extends O {
|
|
592
|
+
constructor() {
|
|
593
|
+
super(...arguments), this.curveTypes = {
|
|
594
|
+
curveLinear: ge,
|
|
595
|
+
curveLinearClosed: he,
|
|
596
|
+
curveBasis: fe,
|
|
597
|
+
curveBasisClosed: pe,
|
|
598
|
+
curveBasisOpen: ve,
|
|
599
|
+
curveBundle: De,
|
|
600
|
+
curveCardinal: xe,
|
|
601
|
+
curveCardinalClosed: ye,
|
|
602
|
+
curveCardinalOpen: Oe,
|
|
603
|
+
curveCatmullRom: Ae,
|
|
604
|
+
curveCatmullRomClosed: Te,
|
|
605
|
+
curveCatmullRomOpen: Me,
|
|
606
|
+
curveMonotoneX: Se,
|
|
607
|
+
curveMonotoneY: Pe,
|
|
608
|
+
curveNatural: Re,
|
|
609
|
+
curveStep: Be,
|
|
610
|
+
curveStepAfter: Le,
|
|
611
|
+
curveStepBefore: Ee
|
|
612
|
+
};
|
|
613
|
+
}
|
|
614
|
+
getD3Curve() {
|
|
615
|
+
let e = "curveLinear";
|
|
616
|
+
const t = this.model.getOptions().curve;
|
|
617
|
+
if (t && (typeof t == "string" ? e = t : e = t.name), this.curveTypes[e]) {
|
|
618
|
+
let n = this.curveTypes[e];
|
|
619
|
+
return t && Object.keys(t).forEach((s) => {
|
|
620
|
+
n[s] && (n = n[s](t[s]));
|
|
621
|
+
}), n;
|
|
622
|
+
}
|
|
623
|
+
return console.warn(`The curve type '${e}' is invalid, using 'curveLinear' instead`), this.curveTypes.curveLinear;
|
|
624
|
+
}
|
|
625
|
+
}
|
|
626
|
+
class ct extends O {
|
|
627
|
+
isZoomBarEnabled() {
|
|
628
|
+
if (!this.services.cartesianScales || !l(this.model.getOptions(), "zoomBar", "top", "enabled"))
|
|
629
|
+
return !1;
|
|
630
|
+
this.services.cartesianScales.findDomainAndRangeAxes();
|
|
631
|
+
const e = this.services.cartesianScales.getMainXAxisPosition(), t = l(
|
|
632
|
+
this.model.getOptions(),
|
|
633
|
+
"axes",
|
|
634
|
+
e,
|
|
635
|
+
"scaleType"
|
|
636
|
+
);
|
|
637
|
+
return e === u.BOTTOM && t === d.TIME;
|
|
638
|
+
}
|
|
639
|
+
// get display data for zoom bar
|
|
640
|
+
// basically it's sum of value grouped by time
|
|
641
|
+
getZoomBarData() {
|
|
642
|
+
const e = this.model.getZoomBarData();
|
|
643
|
+
return e && e.length > 1 ? e : this.model.getDisplayData();
|
|
644
|
+
}
|
|
645
|
+
getDefaultZoomBarDomain(e) {
|
|
646
|
+
if (!this.services.zoom)
|
|
647
|
+
throw new Error("Services zoom not defined");
|
|
648
|
+
const t = e || this.services.zoom.getZoomBarData(), { cartesianScales: n } = this.services;
|
|
649
|
+
if (!n)
|
|
650
|
+
throw new Error("Services cartesianScales undefined");
|
|
651
|
+
const s = n.getMainXAxisPosition(), o = n.getDomainIdentifier(), a = l(this.model.getOptions(), "axes", s, "domain");
|
|
652
|
+
if (Array.isArray(a) && a.length === 2)
|
|
653
|
+
return a;
|
|
654
|
+
if (!s)
|
|
655
|
+
throw new Error("Not defined: mainXAxisPosition");
|
|
656
|
+
return n.extendsDomain(
|
|
657
|
+
s,
|
|
658
|
+
q(t, (r) => r[o])
|
|
659
|
+
);
|
|
660
|
+
}
|
|
661
|
+
handleDomainChange(e, t = { dispatchEvent: !0 }) {
|
|
662
|
+
var n;
|
|
663
|
+
this.model.set({ zoomDomain: e }, { animate: !1 }), t.dispatchEvent && ((n = this.services.events) == null || n.dispatchEvent(B.ZoomDomain.CHANGE, {
|
|
664
|
+
newDomain: e
|
|
665
|
+
}));
|
|
666
|
+
}
|
|
667
|
+
getZoomRatio() {
|
|
668
|
+
return l(this.model.getOptions(), "zoomBar", "zoomRatio");
|
|
669
|
+
}
|
|
670
|
+
// filter out data not inside zoom domain
|
|
671
|
+
// to get better range value for axis label
|
|
672
|
+
filterDataForRangeAxis(e, t) {
|
|
673
|
+
var a;
|
|
674
|
+
const n = this.model.get("zoomDomain"), s = Object.assign(
|
|
675
|
+
{ stacked: !1 },
|
|
676
|
+
// default configs
|
|
677
|
+
t
|
|
678
|
+
), o = l(this.model.getOptions(), "zoomBar", "updateRangeAxis");
|
|
679
|
+
if (this.isZoomBarEnabled() && o && n) {
|
|
680
|
+
const r = s.stacked ? "sharedStackKey" : (a = this.services.cartesianScales) == null ? void 0 : a.getDomainIdentifier(), c = e.filter(
|
|
681
|
+
(h) => new Date(h[r]) >= n[0] && new Date(h[r]) <= n[1]
|
|
682
|
+
);
|
|
683
|
+
if (c.length > 0)
|
|
684
|
+
return c;
|
|
685
|
+
}
|
|
686
|
+
return e;
|
|
687
|
+
}
|
|
688
|
+
zoomIn(e = this.getZoomRatio()) {
|
|
689
|
+
var S;
|
|
690
|
+
const t = this.model.get("zoomDomain"), n = oe.handleWidth, s = (S = this.services.cartesianScales) == null ? void 0 : S.getMainXScale().copy();
|
|
691
|
+
s.domain(this.getDefaultZoomBarDomain());
|
|
692
|
+
const o = s(t[0]), a = s(t[1]);
|
|
693
|
+
if (a - o < n + 1)
|
|
694
|
+
return;
|
|
695
|
+
const r = s.range(), c = a - o, h = Math.min((r[1] - r[0]) / 2 * (e / 2), c / 2);
|
|
696
|
+
let v = o + h, y = a - h;
|
|
697
|
+
v >= y && (v = o + c / 2 - n / 2, y = a - c / 2 + n / 2);
|
|
698
|
+
const A = [s.invert(v), s.invert(y)];
|
|
699
|
+
(t[0].valueOf() !== A[0].valueOf() || t[1].valueOf() !== A[1].valueOf()) && this.handleDomainChange(A);
|
|
700
|
+
}
|
|
701
|
+
zoomOut(e = this.getZoomRatio()) {
|
|
702
|
+
const t = this.model.get("zoomDomain");
|
|
703
|
+
if (!this.services.cartesianScales)
|
|
704
|
+
throw new Error("Services cartesianScales undefined");
|
|
705
|
+
const n = this.services.cartesianScales.getMainXScale().copy();
|
|
706
|
+
n.domain(this.getDefaultZoomBarDomain());
|
|
707
|
+
const s = n(t[0]), o = n(t[1]), a = n.range(), r = (a[1] - a[0]) / 2 * (e / 2), c = Math.max(s - r, a[0]), h = Math.min(o + r, a[1]), v = [n.invert(c), n.invert(h)];
|
|
708
|
+
(t[0].valueOf() !== v[0].valueOf() || t[1].valueOf() !== v[1].valueOf()) && this.handleDomainChange(v);
|
|
709
|
+
}
|
|
710
|
+
resetZoomDomain() {
|
|
711
|
+
const e = this.model.get("zoomDomain"), t = this.getDefaultZoomBarDomain();
|
|
712
|
+
(e[0].valueOf() !== t[0].valueOf() || e[1].valueOf() !== t[1].valueOf()) && this.handleDomainChange(t);
|
|
713
|
+
}
|
|
714
|
+
// check if current zoom domain is already the min zoom domain
|
|
715
|
+
// when toolbar is rendered, we don't render chart yet
|
|
716
|
+
// don't depend on scale range
|
|
717
|
+
isMinZoomDomain() {
|
|
718
|
+
const e = this.model.get("zoomDomain"), t = this.getDefaultZoomBarDomain();
|
|
719
|
+
if (!e || !t)
|
|
720
|
+
return !1;
|
|
721
|
+
const n = e[1].valueOf() - e[0].valueOf(), s = t[1].valueOf() - t[0].valueOf(), o = l(this.model.getOptions(), "zoomBar", "minZoomRatio");
|
|
722
|
+
return n / s < o;
|
|
723
|
+
}
|
|
724
|
+
// check if current zoom domain is already the max zoom domain
|
|
725
|
+
isMaxZoomDomain() {
|
|
726
|
+
const e = this.model.get("zoomDomain"), t = this.getDefaultZoomBarDomain();
|
|
727
|
+
return !!(e && t && e[0].valueOf() === t[0].valueOf() && e[1].valueOf() === t[1].valueOf());
|
|
728
|
+
}
|
|
729
|
+
isEmptyState() {
|
|
730
|
+
return this.getZoomBarData().length === 0;
|
|
731
|
+
}
|
|
732
|
+
isZoomBarLoading(e) {
|
|
733
|
+
return l(this.model.getOptions(), "zoomBar", e, "loading");
|
|
734
|
+
}
|
|
735
|
+
isZoomBarLocked(e) {
|
|
736
|
+
return l(this.model.getOptions(), "zoomBar", e, "locked");
|
|
737
|
+
}
|
|
738
|
+
}
|
|
739
|
+
export {
|
|
740
|
+
it as C,
|
|
741
|
+
ot as E,
|
|
742
|
+
at as F,
|
|
743
|
+
rt as T,
|
|
744
|
+
ct as Z,
|
|
745
|
+
lt as a,
|
|
746
|
+
ut as b,
|
|
747
|
+
qe as f
|
|
748
|
+
};
|
|
749
|
+
//# sourceMappingURL=index-a266373c.mjs.map
|