vue-chrts 0.1.0-beta.2-internal-22 → 0.1.0-beta.3
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/README.md +2 -0
- package/dist/components/AreaChart/AreaChart.js +133 -0
- package/dist/components/{Area → AreaChart}/types.d.ts +10 -9
- package/dist/components/{AreaStacked → AreaStackedChart}/AreaStackedChart.js +21 -26
- package/dist/components/AreaStackedChart/types.d.ts +58 -0
- package/dist/components/BarChart/BarChart.js +123 -0
- package/dist/components/BarChart/BarChart.vue.d.ts +14 -0
- package/dist/components/BarChart/types.d.ts +106 -0
- package/dist/components/DonutChart/DonutChart.js +58 -0
- package/dist/components/{Donut → DonutChart}/DonutChart.vue.d.ts +1 -1
- package/dist/components/DonutChart/types.d.ts +36 -0
- package/dist/components/{Donut/index.js → DonutChart/types.js} +0 -1
- package/dist/components/LineChart/LineChart.js +112 -0
- package/dist/components/{Line → LineChart}/LineChart.vue.d.ts +2 -15
- package/dist/components/LineChart/types.d.ts +90 -0
- package/dist/components/Tooltip.vue.d.ts +1 -3
- package/dist/index.d.ts +8 -6
- package/dist/index.js +13 -9
- package/dist/types.d.ts +39 -2
- package/dist/types.js +4 -2
- package/package.json +4 -5
- package/dist/_virtual/_commonjsHelpers.cjs +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -6
- package/dist/_virtual/browser.cjs +0 -1
- package/dist/_virtual/browser.js +0 -2
- package/dist/_virtual/striptags.cjs +0 -1
- package/dist/_virtual/striptags.js +0 -7
- package/dist/_virtual/striptags2.cjs +0 -1
- package/dist/_virtual/striptags2.js +0 -4
- package/dist/components/Area/AreaChart.cjs +0 -6
- package/dist/components/Area/AreaChart.js +0 -141
- package/dist/components/Area/AreaChart2.cjs +0 -1
- package/dist/components/Area/index.d.ts +0 -2
- package/dist/components/AreaStacked/AreaStackedChart.cjs +0 -1
- package/dist/components/AreaStacked/AreaStackedChart2.cjs +0 -1
- package/dist/components/AreaStacked/index.d.ts +0 -1
- package/dist/components/Bar/BarChart.cjs +0 -1
- package/dist/components/Bar/BarChart.js +0 -121
- package/dist/components/Bar/BarChart.vue.d.ts +0 -33
- package/dist/components/Bar/BarChart2.cjs +0 -1
- package/dist/components/Bar/index.d.ts +0 -1
- package/dist/components/Crosshair/Crosshair.vue.d.ts +0 -12
- package/dist/components/Crosshair/index.d.ts +0 -1
- package/dist/components/Donut/DonutChart.cjs +0 -5
- package/dist/components/Donut/DonutChart.js +0 -62
- package/dist/components/Donut/DonutChart2.cjs +0 -1
- package/dist/components/Donut/index.cjs +0 -1
- package/dist/components/Donut/index.d.ts +0 -17
- package/dist/components/Line/LineChart.cjs +0 -1
- package/dist/components/Line/LineChart.js +0 -97
- package/dist/components/Line/LineChart2.cjs +0 -1
- package/dist/components/Line/index.d.ts +0 -1
- package/dist/components/Tooltip.cjs +0 -1
- package/dist/components/Tooltip2.cjs +0 -1
- package/dist/index.cjs +0 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs +0 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -279
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.cjs +0 -1
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js +0 -86
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.cjs +0 -1
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.js +0 -8
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.cjs +0 -1
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -22
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +0 -1
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -9
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.cjs +0 -1
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -123
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.cjs +0 -1
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -44
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs +0 -1
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -53
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs +0 -1
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -29
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js +0 -15
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.js +0 -20
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.js +0 -31
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js +0 -7
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js +0 -31
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js +0 -9
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js +0 -12
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js +0 -26
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js +0 -42
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js +0 -11
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js +0 -9
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js +0 -12
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js +0 -9
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js +0 -9
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.js +0 -37
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.js +0 -6
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.js +0 -4
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.js +0 -14
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js +0 -18
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js +0 -9
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js +0 -4
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.cjs +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.js +0 -70
- package/dist/node_modules/@unovis/ts/components/area/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/area/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/area/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/area/index.js +0 -52
- package/dist/node_modules/@unovis/ts/components/area/style.cjs +0 -35
- package/dist/node_modules/@unovis/ts/components/area/style.js +0 -41
- package/dist/node_modules/@unovis/ts/components/axis/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/axis/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/index.js +0 -287
- package/dist/node_modules/@unovis/ts/components/axis/style.cjs +0 -101
- package/dist/node_modules/@unovis/ts/components/axis/style.js +0 -114
- package/dist/node_modules/@unovis/ts/components/axis/types.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/types.js +0 -7
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.js +0 -18
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.js +0 -36
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.js +0 -48
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.cjs +0 -63
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.js +0 -73
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.js +0 -10
- package/dist/node_modules/@unovis/ts/components/crosshair/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/config.js +0 -5
- package/dist/node_modules/@unovis/ts/components/crosshair/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/index.js +0 -119
- package/dist/node_modules/@unovis/ts/components/crosshair/style.cjs +0 -22
- package/dist/node_modules/@unovis/ts/components/crosshair/style.js +0 -29
- package/dist/node_modules/@unovis/ts/components/donut/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/config.js +0 -8
- package/dist/node_modules/@unovis/ts/components/donut/constants.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/constants.js +0 -11
- package/dist/node_modules/@unovis/ts/components/donut/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/index.js +0 -57
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.js +0 -37
- package/dist/node_modules/@unovis/ts/components/donut/style.cjs +0 -58
- package/dist/node_modules/@unovis/ts/components/donut/style.js +0 -68
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.js +0 -121
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.cjs +0 -35
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.js +0 -43
- package/dist/node_modules/@unovis/ts/components/line/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/line/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/line/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/line/index.js +0 -86
- package/dist/node_modules/@unovis/ts/components/line/style.cjs +0 -35
- package/dist/node_modules/@unovis/ts/components/line/style.js +0 -45
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.js +0 -111
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.cjs +0 -34
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.js +0 -42
- package/dist/node_modules/@unovis/ts/components/tooltip/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/config.js +0 -17
- package/dist/node_modules/@unovis/ts/components/tooltip/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/index.js +0 -166
- package/dist/node_modules/@unovis/ts/components/tooltip/style.cjs +0 -61
- package/dist/node_modules/@unovis/ts/components/tooltip/style.js +0 -71
- package/dist/node_modules/@unovis/ts/containers/single-container/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/config.js +0 -5
- package/dist/node_modules/@unovis/ts/containers/single-container/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/index.js +0 -71
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.js +0 -6
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.cjs +0 -3
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.js +0 -185
- package/dist/node_modules/@unovis/ts/core/component/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/component/config.js +0 -8
- package/dist/node_modules/@unovis/ts/core/component/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/component/index.js +0 -68
- package/dist/node_modules/@unovis/ts/core/container/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/container/config.js +0 -24
- package/dist/node_modules/@unovis/ts/core/container/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/container/index.js +0 -73
- package/dist/node_modules/@unovis/ts/core/xy-component/config.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/config.js +0 -8
- package/dist/node_modules/@unovis/ts/core/xy-component/index.cjs +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/index.js +0 -53
- package/dist/node_modules/@unovis/ts/data-models/core.cjs +0 -1
- package/dist/node_modules/@unovis/ts/data-models/core.js +0 -14
- package/dist/node_modules/@unovis/ts/data-models/series.cjs +0 -1
- package/dist/node_modules/@unovis/ts/data-models/series.js +0 -16
- package/dist/node_modules/@unovis/ts/styles/colors.cjs +0 -1
- package/dist/node_modules/@unovis/ts/styles/colors.js +0 -18
- package/dist/node_modules/@unovis/ts/styles/index.cjs +0 -38
- package/dist/node_modules/@unovis/ts/styles/index.js +0 -63
- package/dist/node_modules/@unovis/ts/styles/patterns.cjs +0 -15
- package/dist/node_modules/@unovis/ts/styles/patterns.js +0 -45
- package/dist/node_modules/@unovis/ts/types/component.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/component.js +0 -12
- package/dist/node_modules/@unovis/ts/types/curve.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/curve.js +0 -43
- package/dist/node_modules/@unovis/ts/types/direction.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/direction.js +0 -7
- package/dist/node_modules/@unovis/ts/types/position.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/position.js +0 -22
- package/dist/node_modules/@unovis/ts/types/scale.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/scale.js +0 -40
- package/dist/node_modules/@unovis/ts/types/svg.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/svg.js +0 -15
- package/dist/node_modules/@unovis/ts/types/symbol.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/symbol.js +0 -24
- package/dist/node_modules/@unovis/ts/types/text.cjs +0 -1
- package/dist/node_modules/@unovis/ts/types/text.js +0 -22
- package/dist/node_modules/@unovis/ts/utils/color.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/color.js +0 -8
- package/dist/node_modules/@unovis/ts/utils/d3.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/d3.js +0 -12
- package/dist/node_modules/@unovis/ts/utils/data.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/data.js +0 -169
- package/dist/node_modules/@unovis/ts/utils/misc.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/misc.js +0 -28
- package/dist/node_modules/@unovis/ts/utils/path.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/path.js +0 -9
- package/dist/node_modules/@unovis/ts/utils/resize-observer.cjs +0 -1
- package/dist/node_modules/@unovis/ts/utils/resize-observer.js +0 -6
- package/dist/node_modules/@unovis/ts/utils/text.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/text.js +0 -178
- package/dist/node_modules/@unovis/vue/components/area/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/area/index.js +0 -48
- package/dist/node_modules/@unovis/vue/components/axis/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/axis/index.js +0 -69
- package/dist/node_modules/@unovis/vue/components/crosshair/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/crosshair/index.js +0 -33
- package/dist/node_modules/@unovis/vue/components/donut/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/donut/index.js +0 -54
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.js +0 -54
- package/dist/node_modules/@unovis/vue/components/line/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/line/index.js +0 -50
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.js +0 -54
- package/dist/node_modules/@unovis/vue/components/tooltip/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/components/tooltip/index.js +0 -40
- package/dist/node_modules/@unovis/vue/containers/single-container/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/containers/single-container/index.js +0 -66
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.js +0 -102
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.js +0 -43
- package/dist/node_modules/@unovis/vue/index.cjs +0 -1
- package/dist/node_modules/@unovis/vue/index.js +0 -10
- package/dist/node_modules/@unovis/vue/utils/context.cjs +0 -1
- package/dist/node_modules/@unovis/vue/utils/context.js +0 -8
- package/dist/node_modules/@unovis/vue/utils/props.cjs +0 -1
- package/dist/node_modules/@unovis/vue/utils/props.js +0 -18
- package/dist/node_modules/d3-array/src/ascending.cjs +0 -1
- package/dist/node_modules/d3-array/src/ascending.js +0 -6
- package/dist/node_modules/d3-array/src/bisect.cjs +0 -1
- package/dist/node_modules/d3-array/src/bisect.js +0 -9
- package/dist/node_modules/d3-array/src/bisector.cjs +0 -1
- package/dist/node_modules/d3-array/src/bisector.js +0 -37
- package/dist/node_modules/d3-array/src/descending.cjs +0 -1
- package/dist/node_modules/d3-array/src/descending.js +0 -6
- package/dist/node_modules/d3-array/src/extent.cjs +0 -1
- package/dist/node_modules/d3-array/src/extent.js +0 -9
- package/dist/node_modules/d3-array/src/max.cjs +0 -1
- package/dist/node_modules/d3-array/src/max.js +0 -15
- package/dist/node_modules/d3-array/src/mean.cjs +0 -1
- package/dist/node_modules/d3-array/src/mean.js +0 -15
- package/dist/node_modules/d3-array/src/merge.cjs +0 -1
- package/dist/node_modules/d3-array/src/merge.js +0 -10
- package/dist/node_modules/d3-array/src/min.cjs +0 -1
- package/dist/node_modules/d3-array/src/min.js +0 -15
- package/dist/node_modules/d3-array/src/number.cjs +0 -1
- package/dist/node_modules/d3-array/src/number.js +0 -6
- package/dist/node_modules/d3-array/src/quantile.cjs +0 -1
- package/dist/node_modules/d3-array/src/quantile.js +0 -12
- package/dist/node_modules/d3-array/src/range.cjs +0 -1
- package/dist/node_modules/d3-array/src/range.js +0 -9
- package/dist/node_modules/d3-array/src/sum.cjs +0 -1
- package/dist/node_modules/d3-array/src/sum.js +0 -15
- package/dist/node_modules/d3-array/src/ticks.cjs +0 -1
- package/dist/node_modules/d3-array/src/ticks.js +0 -32
- package/dist/node_modules/d3-axis/src/axis.cjs +0 -1
- package/dist/node_modules/d3-axis/src/axis.js +0 -72
- package/dist/node_modules/d3-axis/src/identity.cjs +0 -1
- package/dist/node_modules/d3-axis/src/identity.js +0 -6
- package/dist/node_modules/d3-color/src/color.cjs +0 -1
- package/dist/node_modules/d3-color/src/color.js +0 -305
- package/dist/node_modules/d3-color/src/define.cjs +0 -1
- package/dist/node_modules/d3-color/src/define.js +0 -12
- package/dist/node_modules/d3-dispatch/src/dispatch.cjs +0 -1
- package/dist/node_modules/d3-dispatch/src/dispatch.js +0 -64
- package/dist/node_modules/d3-ease/src/cubic.cjs +0 -1
- package/dist/node_modules/d3-ease/src/cubic.js +0 -6
- package/dist/node_modules/d3-ease/src/linear.cjs +0 -1
- package/dist/node_modules/d3-ease/src/linear.js +0 -4
- package/dist/node_modules/d3-format/src/defaultLocale.cjs +0 -1
- package/dist/node_modules/d3-format/src/defaultLocale.js +0 -15
- package/dist/node_modules/d3-format/src/exponent.cjs +0 -1
- package/dist/node_modules/d3-format/src/exponent.js +0 -7
- package/dist/node_modules/d3-format/src/formatDecimal.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatDecimal.js +0 -15
- package/dist/node_modules/d3-format/src/formatGroup.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatGroup.js +0 -10
- package/dist/node_modules/d3-format/src/formatNumerals.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatNumerals.js +0 -10
- package/dist/node_modules/d3-format/src/formatPrefixAuto.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -12
- package/dist/node_modules/d3-format/src/formatRounded.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatRounded.js +0 -10
- package/dist/node_modules/d3-format/src/formatSpecifier.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -28
- package/dist/node_modules/d3-format/src/formatTrim.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatTrim.js +0 -19
- package/dist/node_modules/d3-format/src/formatTypes.cjs +0 -1
- package/dist/node_modules/d3-format/src/formatTypes.js +0 -21
- package/dist/node_modules/d3-format/src/identity.cjs +0 -1
- package/dist/node_modules/d3-format/src/identity.js +0 -6
- package/dist/node_modules/d3-format/src/locale.cjs +0 -1
- package/dist/node_modules/d3-format/src/locale.js +0 -68
- package/dist/node_modules/d3-format/src/precisionFixed.cjs +0 -1
- package/dist/node_modules/d3-format/src/precisionFixed.js +0 -7
- package/dist/node_modules/d3-format/src/precisionPrefix.cjs +0 -1
- package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -7
- package/dist/node_modules/d3-format/src/precisionRound.cjs +0 -1
- package/dist/node_modules/d3-format/src/precisionRound.js +0 -7
- package/dist/node_modules/d3-interpolate/src/array.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/array.js +0 -13
- package/dist/node_modules/d3-interpolate/src/color.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/color.js +0 -24
- package/dist/node_modules/d3-interpolate/src/constant.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/constant.js +0 -4
- package/dist/node_modules/d3-interpolate/src/date.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/date.js +0 -9
- package/dist/node_modules/d3-interpolate/src/number.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/number.js +0 -8
- package/dist/node_modules/d3-interpolate/src/numberArray.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -15
- package/dist/node_modules/d3-interpolate/src/object.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/object.js +0 -14
- package/dist/node_modules/d3-interpolate/src/piecewise.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -12
- package/dist/node_modules/d3-interpolate/src/rgb.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/rgb.js +0 -15
- package/dist/node_modules/d3-interpolate/src/round.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/round.js +0 -8
- package/dist/node_modules/d3-interpolate/src/string.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/string.js +0 -24
- package/dist/node_modules/d3-interpolate/src/transform/decompose.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +0 -23
- package/dist/node_modules/d3-interpolate/src/transform/index.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/index.js +0 -37
- package/dist/node_modules/d3-interpolate/src/transform/parse.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +0 -13
- package/dist/node_modules/d3-interpolate/src/value.cjs +0 -1
- package/dist/node_modules/d3-interpolate/src/value.js +0 -16
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.cjs +0 -2
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.js +0 -301
- package/dist/node_modules/d3-path/src/path.cjs +0 -1
- package/dist/node_modules/d3-path/src/path.js +0 -64
- package/dist/node_modules/d3-scale/src/band.cjs +0 -1
- package/dist/node_modules/d3-scale/src/band.js +0 -51
- package/dist/node_modules/d3-scale/src/constant.cjs +0 -1
- package/dist/node_modules/d3-scale/src/constant.js +0 -8
- package/dist/node_modules/d3-scale/src/continuous.cjs +0 -1
- package/dist/node_modules/d3-scale/src/continuous.js +0 -75
- package/dist/node_modules/d3-scale/src/diverging.cjs +0 -1
- package/dist/node_modules/d3-scale/src/diverging.js +0 -40
- package/dist/node_modules/d3-scale/src/identity.cjs +0 -1
- package/dist/node_modules/d3-scale/src/identity.js +0 -18
- package/dist/node_modules/d3-scale/src/init.cjs +0 -1
- package/dist/node_modules/d3-scale/src/init.js +0 -32
- package/dist/node_modules/d3-scale/src/linear.cjs +0 -1
- package/dist/node_modules/d3-scale/src/linear.js +0 -39
- package/dist/node_modules/d3-scale/src/log.cjs +0 -1
- package/dist/node_modules/d3-scale/src/log.js +0 -86
- package/dist/node_modules/d3-scale/src/nice.cjs +0 -1
- package/dist/node_modules/d3-scale/src/nice.js +0 -8
- package/dist/node_modules/d3-scale/src/number.cjs +0 -1
- package/dist/node_modules/d3-scale/src/number.js +0 -6
- package/dist/node_modules/d3-scale/src/ordinal.cjs +0 -1
- package/dist/node_modules/d3-scale/src/ordinal.js +0 -31
- package/dist/node_modules/d3-scale/src/pow.cjs +0 -1
- package/dist/node_modules/d3-scale/src/pow.js +0 -37
- package/dist/node_modules/d3-scale/src/quantile.cjs +0 -1
- package/dist/node_modules/d3-scale/src/quantile.js +0 -38
- package/dist/node_modules/d3-scale/src/quantize.cjs +0 -1
- package/dist/node_modules/d3-scale/src/quantize.js +0 -31
- package/dist/node_modules/d3-scale/src/sequential.cjs +0 -1
- package/dist/node_modules/d3-scale/src/sequential.js +0 -42
- package/dist/node_modules/d3-scale/src/symlog.cjs +0 -1
- package/dist/node_modules/d3-scale/src/symlog.js +0 -29
- package/dist/node_modules/d3-scale/src/threshold.cjs +0 -1
- package/dist/node_modules/d3-scale/src/threshold.js +0 -23
- package/dist/node_modules/d3-scale/src/tickFormat.cjs +0 -1
- package/dist/node_modules/d3-scale/src/tickFormat.js +0 -32
- package/dist/node_modules/d3-scale/src/time.cjs +0 -1
- package/dist/node_modules/d3-scale/src/time.js +0 -46
- package/dist/node_modules/d3-scale/src/utcTime.cjs +0 -1
- package/dist/node_modules/d3-scale/src/utcTime.js +0 -17
- package/dist/node_modules/d3-selection/src/array.cjs +0 -1
- package/dist/node_modules/d3-selection/src/array.js +0 -6
- package/dist/node_modules/d3-selection/src/constant.cjs +0 -1
- package/dist/node_modules/d3-selection/src/constant.js +0 -8
- package/dist/node_modules/d3-selection/src/creator.cjs +0 -1
- package/dist/node_modules/d3-selection/src/creator.js +0 -20
- package/dist/node_modules/d3-selection/src/matcher.cjs +0 -1
- package/dist/node_modules/d3-selection/src/matcher.js +0 -14
- package/dist/node_modules/d3-selection/src/namespace.cjs +0 -1
- package/dist/node_modules/d3-selection/src/namespace.js +0 -8
- package/dist/node_modules/d3-selection/src/namespaces.cjs +0 -1
- package/dist/node_modules/d3-selection/src/namespaces.js +0 -12
- package/dist/node_modules/d3-selection/src/pointer.cjs +0 -1
- package/dist/node_modules/d3-selection/src/pointer.js +0 -18
- package/dist/node_modules/d3-selection/src/select.cjs +0 -1
- package/dist/node_modules/d3-selection/src/select.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/append.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/append.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/attr.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/attr.js +0 -44
- package/dist/node_modules/d3-selection/src/selection/call.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/call.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/classed.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/classed.js +0 -54
- package/dist/node_modules/d3-selection/src/selection/clone.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/clone.js +0 -14
- package/dist/node_modules/d3-selection/src/selection/data.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/data.js +0 -42
- package/dist/node_modules/d3-selection/src/selection/datum.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/datum.js +0 -6
- package/dist/node_modules/d3-selection/src/selection/dispatch.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +0 -21
- package/dist/node_modules/d3-selection/src/selection/each.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/each.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/empty.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/empty.js +0 -6
- package/dist/node_modules/d3-selection/src/selection/enter.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/enter.js +0 -27
- package/dist/node_modules/d3-selection/src/selection/exit.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/exit.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/filter.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/filter.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/html.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/html.js +0 -20
- package/dist/node_modules/d3-selection/src/selection/index.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/index.js +0 -87
- package/dist/node_modules/d3-selection/src/selection/insert.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/insert.js +0 -14
- package/dist/node_modules/d3-selection/src/selection/iterator.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/iterator.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/join.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/join.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/lower.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/lower.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/merge.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/merge.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/node.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/node.js +0 -11
- package/dist/node_modules/d3-selection/src/selection/nodes.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/nodes.js +0 -6
- package/dist/node_modules/d3-selection/src/selection/on.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/on.js +0 -52
- package/dist/node_modules/d3-selection/src/selection/order.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/order.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/property.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/property.js +0 -22
- package/dist/node_modules/d3-selection/src/selection/raise.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/raise.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/remove.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/remove.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/select.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/select.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/selectAll.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +0 -18
- package/dist/node_modules/d3-selection/src/selection/selectChild.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +0 -16
- package/dist/node_modules/d3-selection/src/selection/selectChildren.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +0 -16
- package/dist/node_modules/d3-selection/src/selection/size.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/size.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/sort.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/sort.js +0 -19
- package/dist/node_modules/d3-selection/src/selection/sparse.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/sparse.js +0 -6
- package/dist/node_modules/d3-selection/src/selection/style.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/style.js +0 -27
- package/dist/node_modules/d3-selection/src/selection/text.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selection/text.js +0 -20
- package/dist/node_modules/d3-selection/src/selector.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selector.js +0 -10
- package/dist/node_modules/d3-selection/src/selectorAll.cjs +0 -1
- package/dist/node_modules/d3-selection/src/selectorAll.js +0 -11
- package/dist/node_modules/d3-selection/src/sourceEvent.cjs +0 -1
- package/dist/node_modules/d3-selection/src/sourceEvent.js +0 -8
- package/dist/node_modules/d3-selection/src/window.cjs +0 -1
- package/dist/node_modules/d3-selection/src/window.js +0 -6
- package/dist/node_modules/d3-shape/src/arc.cjs +0 -1
- package/dist/node_modules/d3-shape/src/arc.js +0 -85
- package/dist/node_modules/d3-shape/src/area.cjs +0 -1
- package/dist/node_modules/d3-shape/src/area.js +0 -56
- package/dist/node_modules/d3-shape/src/array.cjs +0 -1
- package/dist/node_modules/d3-shape/src/array.js +0 -6
- package/dist/node_modules/d3-shape/src/constant.cjs +0 -1
- package/dist/node_modules/d3-shape/src/constant.js +0 -8
- package/dist/node_modules/d3-shape/src/curve/basis.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/basis.js +0 -60
- package/dist/node_modules/d3-shape/src/curve/basisClosed.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -51
- package/dist/node_modules/d3-shape/src/curve/basisOpen.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -46
- package/dist/node_modules/d3-shape/src/curve/bundle.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/bundle.js +0 -33
- package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +0 -65
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +0 -57
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +0 -50
- package/dist/node_modules/d3-shape/src/curve/catmullRom.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +0 -72
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +0 -61
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +0 -54
- package/dist/node_modules/d3-shape/src/curve/linear.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/linear.js +0 -36
- package/dist/node_modules/d3-shape/src/curve/linearClosed.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -23
- package/dist/node_modules/d3-shape/src/curve/monotone.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -93
- package/dist/node_modules/d3-shape/src/curve/natural.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/natural.js +0 -41
- package/dist/node_modules/d3-shape/src/curve/step.cjs +0 -1
- package/dist/node_modules/d3-shape/src/curve/step.js +0 -51
- package/dist/node_modules/d3-shape/src/descending.cjs +0 -1
- package/dist/node_modules/d3-shape/src/descending.js +0 -6
- package/dist/node_modules/d3-shape/src/identity.cjs +0 -1
- package/dist/node_modules/d3-shape/src/identity.js +0 -6
- package/dist/node_modules/d3-shape/src/line.cjs +0 -1
- package/dist/node_modules/d3-shape/src/line.js +0 -29
- package/dist/node_modules/d3-shape/src/math.cjs +0 -1
- package/dist/node_modules/d3-shape/src/math.js +0 -22
- package/dist/node_modules/d3-shape/src/noop.cjs +0 -1
- package/dist/node_modules/d3-shape/src/noop.js +0 -5
- package/dist/node_modules/d3-shape/src/path.cjs +0 -1
- package/dist/node_modules/d3-shape/src/path.js +0 -18
- package/dist/node_modules/d3-shape/src/pie.cjs +0 -1
- package/dist/node_modules/d3-shape/src/pie.js +0 -43
- package/dist/node_modules/d3-shape/src/point.cjs +0 -1
- package/dist/node_modules/d3-shape/src/point.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/circle.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/cross.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/diamond.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/square.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/square.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/star.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/star.js +0 -15
- package/dist/node_modules/d3-shape/src/symbol/triangle.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol/wye.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -10
- package/dist/node_modules/d3-shape/src/symbol.cjs +0 -1
- package/dist/node_modules/d3-shape/src/symbol.js +0 -21
- package/dist/node_modules/d3-time/src/day.cjs +0 -1
- package/dist/node_modules/d3-time/src/day.js +0 -26
- package/dist/node_modules/d3-time/src/duration.cjs +0 -1
- package/dist/node_modules/d3-time/src/duration.js +0 -10
- package/dist/node_modules/d3-time/src/hour.cjs +0 -1
- package/dist/node_modules/d3-time/src/hour.js +0 -18
- package/dist/node_modules/d3-time/src/interval.cjs +0 -1
- package/dist/node_modules/d3-time/src/interval.js +0 -31
- package/dist/node_modules/d3-time/src/millisecond.cjs +0 -1
- package/dist/node_modules/d3-time/src/millisecond.js +0 -14
- package/dist/node_modules/d3-time/src/minute.cjs +0 -1
- package/dist/node_modules/d3-time/src/minute.js +0 -18
- package/dist/node_modules/d3-time/src/month.cjs +0 -1
- package/dist/node_modules/d3-time/src/month.js +0 -17
- package/dist/node_modules/d3-time/src/second.cjs +0 -1
- package/dist/node_modules/d3-time/src/second.js +0 -11
- package/dist/node_modules/d3-time/src/ticks.cjs +0 -1
- package/dist/node_modules/d3-time/src/ticks.js +0 -54
- package/dist/node_modules/d3-time/src/week.cjs +0 -1
- package/dist/node_modules/d3-time/src/week.js +0 -48
- package/dist/node_modules/d3-time/src/year.cjs +0 -1
- package/dist/node_modules/d3-time/src/year.js +0 -27
- package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +0 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -20
- package/dist/node_modules/d3-time-format/src/locale.cjs +0 -1
- package/dist/node_modules/d3-time-format/src/locale.js +0 -478
- package/dist/node_modules/d3-timer/src/timeout.cjs +0 -1
- package/dist/node_modules/d3-timer/src/timeout.js +0 -10
- package/dist/node_modules/d3-timer/src/timer.cjs +0 -1
- package/dist/node_modules/d3-timer/src/timer.js +0 -62
- package/dist/node_modules/d3-transition/src/interrupt.cjs +0 -1
- package/dist/node_modules/d3-transition/src/interrupt.js +0 -18
- package/dist/node_modules/d3-transition/src/selection/index.cjs +0 -1
- package/dist/node_modules/d3-transition/src/selection/index.js +0 -5
- package/dist/node_modules/d3-transition/src/selection/interrupt.cjs +0 -1
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +0 -9
- package/dist/node_modules/d3-transition/src/selection/transition.cjs +0 -1
- package/dist/node_modules/d3-transition/src/selection/transition.js +0 -28
- package/dist/node_modules/d3-transition/src/transition/attr.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/attr.js +0 -49
- package/dist/node_modules/d3-transition/src/transition/attrTween.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +0 -38
- package/dist/node_modules/d3-transition/src/transition/delay.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/delay.js +0 -18
- package/dist/node_modules/d3-transition/src/transition/duration.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/duration.js +0 -18
- package/dist/node_modules/d3-transition/src/transition/ease.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/ease.js +0 -14
- package/dist/node_modules/d3-transition/src/transition/easeVarying.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +0 -15
- package/dist/node_modules/d3-transition/src/transition/end.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/end.js +0 -16
- package/dist/node_modules/d3-transition/src/transition/filter.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/filter.js +0 -12
- package/dist/node_modules/d3-transition/src/transition/index.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/index.js +0 -65
- package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +0 -11
- package/dist/node_modules/d3-transition/src/transition/merge.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/merge.js +0 -13
- package/dist/node_modules/d3-transition/src/transition/on.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/on.js +0 -21
- package/dist/node_modules/d3-transition/src/transition/remove.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/remove.js +0 -13
- package/dist/node_modules/d3-transition/src/transition/schedule.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/schedule.js +0 -85
- package/dist/node_modules/d3-transition/src/transition/select.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/select.js +0 -14
- package/dist/node_modules/d3-transition/src/transition/selectAll.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +0 -18
- package/dist/node_modules/d3-transition/src/transition/selection.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/selection.js +0 -8
- package/dist/node_modules/d3-transition/src/transition/style.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/style.js +0 -45
- package/dist/node_modules/d3-transition/src/transition/styleTween.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +0 -23
- package/dist/node_modules/d3-transition/src/transition/text.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/text.js +0 -18
- package/dist/node_modules/d3-transition/src/transition/textTween.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/textTween.js +0 -23
- package/dist/node_modules/d3-transition/src/transition/transition.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/transition.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/tween.cjs +0 -1
- package/dist/node_modules/d3-transition/src/transition/tween.js +0 -56
- package/dist/node_modules/internmap/src/index.cjs +0 -1
- package/dist/node_modules/internmap/src/index.js +0 -35
- package/dist/node_modules/parse-unit/index.cjs +0 -1
- package/dist/node_modules/parse-unit/index.js +0 -11
- package/dist/node_modules/striptags/src/striptags.cjs +0 -2
- package/dist/node_modules/striptags/src/striptags.js +0 -118
- package/dist/node_modules/stylis/src/Enum.cjs +0 -1
- package/dist/node_modules/stylis/src/Enum.js +0 -12
- package/dist/node_modules/stylis/src/Middleware.cjs +0 -1
- package/dist/node_modules/stylis/src/Middleware.js +0 -18
- package/dist/node_modules/stylis/src/Parser.cjs +0 -1
- package/dist/node_modules/stylis/src/Parser.js +0 -131
- package/dist/node_modules/stylis/src/Serializer.cjs +0 -1
- package/dist/node_modules/stylis/src/Serializer.js +0 -27
- package/dist/node_modules/stylis/src/Tokenizer.cjs +0 -1
- package/dist/node_modules/stylis/src/Tokenizer.js +0 -141
- package/dist/node_modules/stylis/src/Utility.cjs +0 -1
- package/dist/node_modules/stylis/src/Utility.js +0 -50
- package/dist/node_modules/throttle-debounce/esm/index.cjs +0 -1
- package/dist/node_modules/throttle-debounce/esm/index.js +0 -28
- package/dist/node_modules/to-px/browser.cjs +0 -1
- package/dist/node_modules/to-px/browser.js +0 -63
- package/dist/types.cjs +0 -1
- package/dist/utils.cjs +0 -1
- package/dist/vite.svg +0 -1
- /package/dist/components/{Area → AreaChart}/AreaChart.vue.d.ts +0 -0
- /package/dist/components/{Area → AreaChart}/AreaChart2.js +0 -0
- /package/dist/components/{AreaStacked → AreaStackedChart}/AreaStackedChart.vue.d.ts +0 -0
- /package/dist/components/{AreaStacked → AreaStackedChart}/AreaStackedChart2.js +0 -0
- /package/dist/components/{Bar → BarChart}/BarChart2.js +0 -0
- /package/dist/components/{Donut → DonutChart}/DonutChart2.js +0 -0
- /package/dist/components/{Line → LineChart}/LineChart2.js +0 -0
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { BulletLegendOrientation as n, BulletShape as t } from "./types.js";
|
|
2
|
-
const a = {
|
|
3
|
-
items: [],
|
|
4
|
-
labelClassName: "",
|
|
5
|
-
onLegendItemClick: void 0,
|
|
6
|
-
labelFontSize: null,
|
|
7
|
-
labelMaxWidth: null,
|
|
8
|
-
bulletSize: null,
|
|
9
|
-
bulletShape: (l) => {
|
|
10
|
-
var e;
|
|
11
|
-
return (e = l.shape) !== null && e !== void 0 ? e : t.Circle;
|
|
12
|
-
},
|
|
13
|
-
orientation: n.Horizontal,
|
|
14
|
-
renderIntoProvidedDomNode: !1
|
|
15
|
-
};
|
|
16
|
-
export {
|
|
17
|
-
a as BulletLegendDefaultConfig
|
|
18
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../utils/data.cjs"),u=require("./config.cjs"),h=require("./types.cjs"),r=require("./modules/shape.cjs"),s=require("./style.cjs"),a=require("../../../../d3-selection/src/select.cjs");class c{constructor(e,t){this._defaultConfig=u.BulletLegendDefaultConfig,this.config=this._defaultConfig,this._colorAccessor=l=>l.color,this._container=e,this.div=t!=null&&t.renderIntoProvidedDomNode?a.default(this._container):a.default(this._container).append("div"),this.div.classed(s.root,!0),this.element=this.div.node(),t&&this.update(t)}update(e){this.prevConfig=this.config,this.config=d.merge(this._defaultConfig,e),this.render()}render(){const{config:e}=this,t=this.div.selectAll(`.${s.item}`).data(e.items),l=t.enter().append("div").on("click",this._onItemClick.bind(this)),n=l.merge(t);n.attr("class",i=>{var o;return`${s.item} ${(o=i.className)!==null&&o!==void 0?o:""}`}).classed(s.itemVertical,e.orientation===h.BulletLegendOrientation.Vertical).classed(s.clickable,i=>!!e.onLegendItemClick&&this._isItemClickable(i)).attr("title",i=>i.name).style("display",i=>i.hidden?"none":null),l.append("span").attr("class",s.bullet).call(r.createBullets),n.select(`.${s.bullet}`).style("width",e.bulletSize).style("height",e.bulletSize).style("box-sizing","content-box").call(r.updateBullets,this.config,this._colorAccessor),l.append("span").attr("class",s.label).classed(e.labelClassName,!0).style("max-width",e.labelMaxWidth).style("font-size",e.labelFontSize),n.select(`.${s.label}`).text(i=>i.name),t.exit().remove()}_isItemClickable(e){return e.pointer===void 0?!0:e.pointer}_onItemClick(e,t){const{config:{onLegendItemClick:l}}=this,i=this.div.selectAll(`.${s.item}`).nodes().indexOf(e.currentTarget);l&&l(t,i)}destroy(){this.element!==this._container&&this.div.remove()}}c.selectors=s;exports.BulletLegend=c;
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
import { merge as c } from "../../utils/data.js";
|
|
2
|
-
import { BulletLegendDefaultConfig as m } from "./config.js";
|
|
3
|
-
import { BulletLegendOrientation as h } from "./types.js";
|
|
4
|
-
import { createBullets as u, updateBullets as p } from "./modules/shape.js";
|
|
5
|
-
import * as f from "./style.js";
|
|
6
|
-
import { root as g, item as o, itemVertical as v, clickable as _, bullet as r, label as a } from "./style.js";
|
|
7
|
-
import d from "../../../../d3-selection/src/select.js";
|
|
8
|
-
class b {
|
|
9
|
-
constructor(e, t) {
|
|
10
|
-
this._defaultConfig = m, this.config = this._defaultConfig, this._colorAccessor = (s) => s.color, this._container = e, this.div = t != null && t.renderIntoProvidedDomNode ? d(this._container) : d(this._container).append("div"), this.div.classed(g, !0), this.element = this.div.node(), t && this.update(t);
|
|
11
|
-
}
|
|
12
|
-
update(e) {
|
|
13
|
-
this.prevConfig = this.config, this.config = c(this._defaultConfig, e), this.render();
|
|
14
|
-
}
|
|
15
|
-
render() {
|
|
16
|
-
const { config: e } = this, t = this.div.selectAll(`.${o}`).data(e.items), s = t.enter().append("div").on("click", this._onItemClick.bind(this)), l = s.merge(t);
|
|
17
|
-
l.attr("class", (i) => {
|
|
18
|
-
var n;
|
|
19
|
-
return `${o} ${(n = i.className) !== null && n !== void 0 ? n : ""}`;
|
|
20
|
-
}).classed(v, e.orientation === h.Vertical).classed(_, (i) => !!e.onLegendItemClick && this._isItemClickable(i)).attr("title", (i) => i.name).style("display", (i) => i.hidden ? "none" : null), s.append("span").attr("class", r).call(u), l.select(`.${r}`).style("width", e.bulletSize).style("height", e.bulletSize).style("box-sizing", "content-box").call(p, this.config, this._colorAccessor), s.append("span").attr("class", a).classed(e.labelClassName, !0).style("max-width", e.labelMaxWidth).style("font-size", e.labelFontSize), l.select(`.${a}`).text((i) => i.name), t.exit().remove();
|
|
21
|
-
}
|
|
22
|
-
_isItemClickable(e) {
|
|
23
|
-
return e.pointer === void 0 ? !0 : e.pointer;
|
|
24
|
-
}
|
|
25
|
-
_onItemClick(e, t) {
|
|
26
|
-
const { config: { onLegendItemClick: s } } = this, i = this.div.selectAll(`.${o}`).nodes().indexOf(e.currentTarget);
|
|
27
|
-
s && s(t, i);
|
|
28
|
-
}
|
|
29
|
-
destroy() {
|
|
30
|
-
this.element !== this._container && this.div.remove();
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
b.selectors = f;
|
|
34
|
-
export {
|
|
35
|
-
b as BulletLegend
|
|
36
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const b=require("../../../types/symbol.cjs"),g=require("../../../utils/color.cjs"),$=require("../../../utils/data.cjs"),m=require("../../../styles/patterns.cjs"),e=require("../types.cjs"),S=require("../../../../../d3-selection/src/select.cjs"),q=require("../../../../../d3-shape/src/symbol.cjs"),i=m.PATTERN_SIZE_PX*3,k={[e.BulletShape.Circle]:Math.PI/4,[e.BulletShape.Cross]:5/9,[e.BulletShape.Diamond]:Math.sqrt(3)/6,[e.BulletShape.Square]:1,[e.BulletShape.Star]:.3,[e.BulletShape.Triangle]:Math.sqrt(3)/4,[e.BulletShape.Wye]:5/11};function v(o){o.each((u,n,a)=>{S.default(a[n]).append("svg").attr("width","100%").attr("height","100%").append("path")})}function w(o,u,n){o.each((a,c,d)=>{const s=$.getString(a,u.bulletShape,c),p=g.getColor(a,n,c),l=i,t=s===e.BulletShape.Line?i/2.5:i,h=S.default(d[c]).select("svg").attr("viewBox",`0 0 ${l} ${t}`).select("path").attr("stroke",p),y=a.inactive?"var(--vis-legend-bullet-inactive-opacity)":1;if(s===e.BulletShape.Line)h.attr("d",`M0,${t/2} L${l/2},${t/2} L${l},${t/2}`).attr("transform",null).style("opacity",y).style("stroke-width","3px").style("fill",null).style("fill-opacity",null).style("marker-start","none").style("marker-end","none");else{const B=q.default().type(b.Symbol[s]).size(l*t*k[s]),f=(l-2)/l;let r=t/2;switch(s){case e.BulletShape.Triangle:r+=t/8;break;case e.BulletShape.Star:r+=t/16;break;case e.BulletShape.Wye:r-=t/16;break}h.attr("d",B).attr("transform",`translate(${l/2}, ${Math.round(r)}) scale(${f})`).style("stroke-width","1px").style("opacity",null).style("fill",p).style("fill-opacity",y)}})}exports.createBullets=v;exports.updateBullets=w;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { Symbol as $ } from "../../../types/symbol.js";
|
|
2
|
-
import { getColor as b } from "../../../utils/color.js";
|
|
3
|
-
import { getString as g } from "../../../utils/data.js";
|
|
4
|
-
import { PATTERN_SIZE_PX as k } from "../../../styles/patterns.js";
|
|
5
|
-
import { BulletShape as t } from "../types.js";
|
|
6
|
-
import f from "../../../../../d3-selection/src/select.js";
|
|
7
|
-
import v from "../../../../../d3-shape/src/symbol.js";
|
|
8
|
-
const c = k * 3, w = {
|
|
9
|
-
[t.Circle]: Math.PI / 4,
|
|
10
|
-
[t.Cross]: 5 / 9,
|
|
11
|
-
[t.Diamond]: Math.sqrt(3) / 6,
|
|
12
|
-
[t.Square]: 1,
|
|
13
|
-
[t.Star]: 0.3,
|
|
14
|
-
[t.Triangle]: Math.sqrt(3) / 4,
|
|
15
|
-
[t.Wye]: 5 / 11
|
|
16
|
-
};
|
|
17
|
-
function C(s) {
|
|
18
|
-
s.each((p, n, a) => {
|
|
19
|
-
f(a[n]).append("svg").attr("width", "100%").attr("height", "100%").append("path");
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
function I(s, p, n) {
|
|
23
|
-
s.each((a, i, u) => {
|
|
24
|
-
const o = g(a, p.bulletShape, i), y = b(a, n, i), l = c, e = o === t.Line ? c / 2.5 : c, m = f(u[i]).select("svg").attr("viewBox", `0 0 ${l} ${e}`).select("path").attr("stroke", y), h = a.inactive ? "var(--vis-legend-bullet-inactive-opacity)" : 1;
|
|
25
|
-
if (o === t.Line)
|
|
26
|
-
m.attr("d", `M0,${e / 2} L${l / 2},${e / 2} L${l},${e / 2}`).attr("transform", null).style("opacity", h).style("stroke-width", "3px").style("fill", null).style("fill-opacity", null).style("marker-start", "none").style("marker-end", "none");
|
|
27
|
-
else {
|
|
28
|
-
const d = v().type($[o]).size(l * e * w[o]), S = (l - 2) / l;
|
|
29
|
-
let r = e / 2;
|
|
30
|
-
switch (o) {
|
|
31
|
-
case t.Triangle:
|
|
32
|
-
r += e / 8;
|
|
33
|
-
break;
|
|
34
|
-
case t.Star:
|
|
35
|
-
r += e / 16;
|
|
36
|
-
break;
|
|
37
|
-
case t.Wye:
|
|
38
|
-
r -= e / 16;
|
|
39
|
-
break;
|
|
40
|
-
}
|
|
41
|
-
m.attr("d", d).attr("transform", `translate(${l / 2}, ${Math.round(r)}) scale(${S})`).style("stroke-width", "1px").style("opacity", null).style("fill", y).style("fill-opacity", h);
|
|
42
|
-
}
|
|
43
|
-
});
|
|
44
|
-
}
|
|
45
|
-
export {
|
|
46
|
-
C as createBullets,
|
|
47
|
-
I as updateBullets
|
|
48
|
-
};
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../@emotion/css/dist/emotion-css.esm.cjs"),l=e.css`
|
|
2
|
-
label: bullet-legend-component;
|
|
3
|
-
`,i=e.injectGlobal`
|
|
4
|
-
:root {
|
|
5
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
6
|
-
/* --vis-legend-font-family: */
|
|
7
|
-
|
|
8
|
-
--vis-legend-label-color: #6c778c;
|
|
9
|
-
--vis-legend-label-max-width: 300px;
|
|
10
|
-
--vis-legend-label-font-size: 12px;
|
|
11
|
-
--vis-legend-bullet-size: 9px;
|
|
12
|
-
--vis-legend-bullet-inactive-opacity: 0.15;
|
|
13
|
-
--vis-legend-item-spacing: 20px;
|
|
14
|
-
--vis-legend-vertical-item-spacing: 5px;
|
|
15
|
-
--vis-legend-bullet-label-spacing: 8px;
|
|
16
|
-
|
|
17
|
-
--vis-dark-legend-label-color: #eee;
|
|
18
|
-
}
|
|
19
|
-
|
|
20
|
-
body.theme-dark ${`.${l}`} {
|
|
21
|
-
--vis-legend-label-color: var(--vis-dark-legend-label-color);
|
|
22
|
-
}
|
|
23
|
-
|
|
24
|
-
body.theme-patterns {
|
|
25
|
-
--vis-legend-bullet-size: 14px;
|
|
26
|
-
}
|
|
27
|
-
`,t=e.css`
|
|
28
|
-
label: legendItem;
|
|
29
|
-
display: inline-flex;
|
|
30
|
-
align-items: center;
|
|
31
|
-
font-family: var(--vis-legend-font-family, var(--vis-font-family));
|
|
32
|
-
margin-right: var(--vis-legend-item-spacing);
|
|
33
|
-
white-space: nowrap;
|
|
34
|
-
cursor: default;
|
|
35
|
-
user-select: none;
|
|
36
|
-
max-width: min-content;
|
|
37
|
-
`,a=e.css`
|
|
38
|
-
label: legendItemVertical;
|
|
39
|
-
display: flex;
|
|
40
|
-
margin-top: var(--vis-legend-vertical-item-spacing);
|
|
41
|
-
`,s=e.css`
|
|
42
|
-
cursor: pointer;
|
|
43
|
-
`,n=e.css`
|
|
44
|
-
label: legendItemLabel;
|
|
45
|
-
font-size: var(--vis-legend-label-font-size);
|
|
46
|
-
display: inline-block;
|
|
47
|
-
vertical-align: middle;
|
|
48
|
-
color: var(--vis-legend-label-color);
|
|
49
|
-
max-width: var(--vis-legend-label-max-width);
|
|
50
|
-
text-overflow: ellipsis;
|
|
51
|
-
overflow: hidden;
|
|
52
|
-
white-space: nowrap;
|
|
53
|
-
`,o=e.css`
|
|
54
|
-
flex: 0 0 auto;
|
|
55
|
-
label: legendItemBullet;
|
|
56
|
-
margin-right: var(--vis-legend-bullet-label-spacing);
|
|
57
|
-
height: var(--vis-legend-bullet-size);
|
|
58
|
-
width: var(--vis-legend-bullet-size);
|
|
59
|
-
|
|
60
|
-
svg {
|
|
61
|
-
display: block;
|
|
62
|
-
}
|
|
63
|
-
`;exports.bullet=o;exports.clickable=s;exports.item=t;exports.itemVertical=a;exports.label=n;exports.root=l;exports.variables=i;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { css as e, injectGlobal as l } from "../../../../@emotion/css/dist/emotion-css.esm.js";
|
|
2
|
-
const i = e`
|
|
3
|
-
label: bullet-legend-component;
|
|
4
|
-
`, t = l`
|
|
5
|
-
:root {
|
|
6
|
-
// Undefined by default to allow proper fallback to var(--vis-font-family)
|
|
7
|
-
/* --vis-legend-font-family: */
|
|
8
|
-
|
|
9
|
-
--vis-legend-label-color: #6c778c;
|
|
10
|
-
--vis-legend-label-max-width: 300px;
|
|
11
|
-
--vis-legend-label-font-size: 12px;
|
|
12
|
-
--vis-legend-bullet-size: 9px;
|
|
13
|
-
--vis-legend-bullet-inactive-opacity: 0.15;
|
|
14
|
-
--vis-legend-item-spacing: 20px;
|
|
15
|
-
--vis-legend-vertical-item-spacing: 5px;
|
|
16
|
-
--vis-legend-bullet-label-spacing: 8px;
|
|
17
|
-
|
|
18
|
-
--vis-dark-legend-label-color: #eee;
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
body.theme-dark ${`.${i}`} {
|
|
22
|
-
--vis-legend-label-color: var(--vis-dark-legend-label-color);
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
body.theme-patterns {
|
|
26
|
-
--vis-legend-bullet-size: 14px;
|
|
27
|
-
}
|
|
28
|
-
`, n = e`
|
|
29
|
-
label: legendItem;
|
|
30
|
-
display: inline-flex;
|
|
31
|
-
align-items: center;
|
|
32
|
-
font-family: var(--vis-legend-font-family, var(--vis-font-family));
|
|
33
|
-
margin-right: var(--vis-legend-item-spacing);
|
|
34
|
-
white-space: nowrap;
|
|
35
|
-
cursor: default;
|
|
36
|
-
user-select: none;
|
|
37
|
-
max-width: min-content;
|
|
38
|
-
`, s = e`
|
|
39
|
-
label: legendItemVertical;
|
|
40
|
-
display: flex;
|
|
41
|
-
margin-top: var(--vis-legend-vertical-item-spacing);
|
|
42
|
-
`, o = e`
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
`, r = e`
|
|
45
|
-
label: legendItemLabel;
|
|
46
|
-
font-size: var(--vis-legend-label-font-size);
|
|
47
|
-
display: inline-block;
|
|
48
|
-
vertical-align: middle;
|
|
49
|
-
color: var(--vis-legend-label-color);
|
|
50
|
-
max-width: var(--vis-legend-label-max-width);
|
|
51
|
-
text-overflow: ellipsis;
|
|
52
|
-
overflow: hidden;
|
|
53
|
-
white-space: nowrap;
|
|
54
|
-
`, d = e`
|
|
55
|
-
flex: 0 0 auto;
|
|
56
|
-
label: legendItemBullet;
|
|
57
|
-
margin-right: var(--vis-legend-bullet-label-spacing);
|
|
58
|
-
height: var(--vis-legend-bullet-size);
|
|
59
|
-
width: var(--vis-legend-bullet-size);
|
|
60
|
-
|
|
61
|
-
svg {
|
|
62
|
-
display: block;
|
|
63
|
-
}
|
|
64
|
-
`;
|
|
65
|
-
export {
|
|
66
|
-
d as bullet,
|
|
67
|
-
o as clickable,
|
|
68
|
-
n as item,
|
|
69
|
-
s as itemVertical,
|
|
70
|
-
r as label,
|
|
71
|
-
i as root,
|
|
72
|
-
t as variables
|
|
73
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../types/symbol.cjs"),i=Object.assign(Object.assign({},t.SymbolType),{Line:"line"});exports.BulletLegendOrientation=void 0;(function(e){e.Horizontal="horizontal",e.Vertical="vertical"})(exports.BulletLegendOrientation||(exports.BulletLegendOrientation={}));exports.BulletShape=i;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { SymbolType as i } from "../../types/symbol.js";
|
|
2
|
-
const n = Object.assign(Object.assign({}, i), { Line: "line" });
|
|
3
|
-
var e;
|
|
4
|
-
(function(t) {
|
|
5
|
-
t.Horizontal = "horizontal", t.Vertical = "vertical";
|
|
6
|
-
})(e || (e = {}));
|
|
7
|
-
export {
|
|
8
|
-
e as BulletLegendOrientation,
|
|
9
|
-
n as BulletShape
|
|
10
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../core/xy-component/config.cjs"),n=Object.assign(Object.assign({},e.XYComponentDefaultConfig),{yStacked:void 0,baseline:null,duration:100,tooltip:void 0,template:(t,i)=>"",hideWhenFarFromPointer:!0,hideWhenFarFromPointerDistance:100,snapToData:!0,getCircles:void 0,color:void 0,strokeColor:void 0,strokeWidth:void 0});exports.CrosshairDefaultConfig=n;
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { XYComponentDefaultConfig as e } from "../../core/xy-component/config.js";
|
|
2
|
-
const i = Object.assign(Object.assign({}, e), { yStacked: void 0, baseline: null, duration: 100, tooltip: void 0, template: (n, t) => "", hideWhenFarFromPointer: !0, hideWhenFarFromPointerDistance: 100, snapToData: !0, getCircles: void 0, color: void 0, strokeColor: void 0, strokeWidth: void 0 });
|
|
3
|
-
export {
|
|
4
|
-
i as CrosshairDefaultConfig
|
|
5
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../core/xy-component/index.cjs"),r=require("../../utils/data.cjs"),f=require("../../utils/d3.cjs"),u=require("../../utils/color.cjs"),g=require("../../types/position.cjs"),k=require("./config.cjs"),y=require("./style.cjs"),p=require("../../../../d3-selection/src/pointer.cjs"),_=require("../../../../d3-ease/src/linear.cjs");class x extends C.XYComponentCore{constructor(s){super(),this.clippable=!0,this._defaultConfig=k.CrosshairDefaultConfig,this.config=this._defaultConfig,this.x=0,this.show=!1,this._animFrameId=null,this._accessors={x:void 0,y:void 0,yStacked:void 0,baseline:void 0},s&&this.setConfig(s),this.g.style("opacity",this.show?1:0),this.line=this.g.append("line").attr("class",y.line)}set accessors(s){this._accessors=s}get accessors(){var s;const{config:i}=this,t=!!(i.x||i.y||i.yStacked),o=t?i.x:this._accessors.x,n=t?i.y:this._accessors.y,c=n?r.isArray(n)?n:[n]:void 0,e=t?i.yStacked:this._accessors.yStacked,a=(s=i.baseline)!==null&&s!==void 0?s:this._accessors.baseline;return{x:o,y:c,yStacked:e,baseline:a}}setContainer(s){this.container=s,this.container.on("mousemove.crosshair",this._onMouseMove.bind(this)),this.container.on("mouseout.crosshair",this._onMouseOut.bind(this))}_render(s){const{config:i}=this;if(i.snapToData&&!this.datum)return;const t=r.isNumber(s)?s:i.duration;f.smartTransition(this.g,t).style("opacity",this.show?1:0),this.line.attr("y1",0).attr("y1",this._height),f.smartTransition(this.line,t,_.linear).attr("x1",this.x).attr("x2",this.x);const o=this.getCircleData(),n=this.g.selectAll("circle").data(o,(e,a)=>{var h;return(h=e.id)!==null&&h!==void 0?h:a}),c=n.enter().append("circle").attr("class",y.circle).attr("r",0).attr("cx",this.x).attr("cy",e=>e.y).style("fill",e=>e.color).style("stroke",e=>e.strokeColor).style("stroke-width",e=>e.strokeWidth);f.smartTransition(c.merge(n),t,_.linear).attr("cx",this.x).attr("cy",e=>e.y).attr("r",4).style("opacity",e=>e.opacity).style("fill",e=>e.color).style("stroke",e=>e.strokeColor).style("stroke-width",e=>e.strokeWidth),n.exit().remove()}hide(){this._onMouseOut()}_onMouseMove(s){var i,t;const{config:o,datamodel:n,element:c}=this;!this.accessors.x&&(!((i=n.data)===null||i===void 0)&&i.length)&&console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");const[e]=p.default(s,c),a=this.xScale.range();if(o.snapToData){!this.accessors.y&&!this.accessors.yStacked&&(!((t=n.data)===null||t===void 0)&&t.length)&&console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object");const h=this.xScale,d=h.invert(e);if(this.datum=r.getNearest(n.data,d,this.accessors.x),this.datumIndex=n.data.indexOf(this.datum),!this.datum)return;this.x=r.clamp(Math.round(h(r.getNumber(this.datum,this.accessors.x,this.datumIndex))),0,this._width),this.show=this.x>=0&&this.x<=this._width&&(!o.hideWhenFarFromPointer||Math.abs(this.x-e)<o.hideWhenFarFromPointerDistance)}else this.x=r.clamp(e,a[0],a[1]),this.show=e>=a[0]-2&&e<=a[1]+2;window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()}),this.show?this._showTooltip(s):this._hideTooltip()}_onMouseOut(){this.show=!1,window.cancelAnimationFrame(this._animFrameId),this._animFrameId=window.requestAnimationFrame(()=>{this._render()}),this._hideTooltip()}_showTooltip(s){var i;const{config:t}=this,o=(i=t.tooltip)!==null&&i!==void 0?i:this.tooltip;if(!o)return;const n=o.getContainer()||this.container.node(),[c,e]=o.isContainerBody()?[s.clientX,s.clientY]:p.default(s,n),a=t.template(this.datum,this.xScale.invert(this.x));if(o.config.followCursor=!0,!o.config.horizontalPlacement||o.config.horizontalPlacement===g.Position.Auto){const h=o.isContainerBody()?c-this.container.node().getBoundingClientRect().left:c;o.overrideHorizontalPlacement(h>this._containerWidth/2?g.Position.Left:g.Position.Right)}a&&o.show(a,{x:c,y:e})}_hideTooltip(){var s;const{config:i}=this,t=(s=i.tooltip)!==null&&s!==void 0?s:this.tooltip;t==null||t.hide()}getYDataExtent(){return[void 0,void 0]}getCircleData(){var s,i;const{config:t,datamodel:{data:o}}=this;if(r.isFunction(t.getCircles))return t.getCircles(this.xScale.invert(this.x),o,this.yScale);if(t.snapToData&&this.datum){const n=(s=this.accessors.y)!==null&&s!==void 0?s:[],c=(i=this.accessors.yStacked)!==null&&i!==void 0?i:[],e=r.getNumber(this.datum,this.accessors.baseline,this.datumIndex)||0,a=r.getStackedValues(this.datum,this.datumIndex,...c).map((d,l,m)=>({y:this.yScale(d+e),opacity:r.isNumber(r.getNumber(this.datum,c[l]))?1:0,color:u.getColor(this.datum,t.color,l),strokeColor:t.strokeColor?u.getColor(this.datum,t.strokeColor,l):void 0,strokeWidth:t.strokeWidth?r.getNumber(this.datum,t.strokeWidth,l):void 0})),h=n.map((d,l)=>{const m=r.getNumber(this.datum,d);return{y:this.yScale(m),opacity:r.isNumber(m)?1:0,color:u.getColor(this.datum,t.color,a.length+l),strokeColor:t.strokeColor?u.getColor(this.datum,t.strokeColor,l):void 0,strokeWidth:t.strokeWidth?r.getNumber(this.datum,t.strokeWidth,l):void 0}});return a.concat(h)}return[]}}x.selectors=y;exports.Crosshair=x;
|
|
@@ -1,119 +0,0 @@
|
|
|
1
|
-
import { XYComponentCore as k } from "../../core/xy-component/index.js";
|
|
2
|
-
import { isNumber as f, getNearest as C, clamp as g, getNumber as l, isFunction as v, getStackedValues as w, isArray as b } from "../../utils/data.js";
|
|
3
|
-
import { smartTransition as y } from "../../utils/d3.js";
|
|
4
|
-
import { getColor as u } from "../../utils/color.js";
|
|
5
|
-
import { Position as p } from "../../types/position.js";
|
|
6
|
-
import { CrosshairDefaultConfig as S } from "./config.js";
|
|
7
|
-
import * as F from "./style.js";
|
|
8
|
-
import { line as W, circle as A } from "./style.js";
|
|
9
|
-
import _ from "../../../../d3-selection/src/pointer.js";
|
|
10
|
-
import { linear as x } from "../../../../d3-ease/src/linear.js";
|
|
11
|
-
class I extends k {
|
|
12
|
-
constructor(i) {
|
|
13
|
-
super(), this.clippable = !0, this._defaultConfig = S, this.config = this._defaultConfig, this.x = 0, this.show = !1, this._animFrameId = null, this._accessors = {
|
|
14
|
-
x: void 0,
|
|
15
|
-
y: void 0,
|
|
16
|
-
yStacked: void 0,
|
|
17
|
-
baseline: void 0
|
|
18
|
-
}, i && this.setConfig(i), this.g.style("opacity", this.show ? 1 : 0), this.line = this.g.append("line").attr("class", W);
|
|
19
|
-
}
|
|
20
|
-
set accessors(i) {
|
|
21
|
-
this._accessors = i;
|
|
22
|
-
}
|
|
23
|
-
get accessors() {
|
|
24
|
-
var i;
|
|
25
|
-
const { config: e } = this, t = !!(e.x || e.y || e.yStacked), o = t ? e.x : this._accessors.x, n = t ? e.y : this._accessors.y, r = n ? b(n) ? n : [n] : void 0, s = t ? e.yStacked : this._accessors.yStacked, a = (i = e.baseline) !== null && i !== void 0 ? i : this._accessors.baseline;
|
|
26
|
-
return { x: o, y: r, yStacked: s, baseline: a };
|
|
27
|
-
}
|
|
28
|
-
setContainer(i) {
|
|
29
|
-
this.container = i, this.container.on("mousemove.crosshair", this._onMouseMove.bind(this)), this.container.on("mouseout.crosshair", this._onMouseOut.bind(this));
|
|
30
|
-
}
|
|
31
|
-
_render(i) {
|
|
32
|
-
const { config: e } = this;
|
|
33
|
-
if (e.snapToData && !this.datum)
|
|
34
|
-
return;
|
|
35
|
-
const t = f(i) ? i : e.duration;
|
|
36
|
-
y(this.g, t).style("opacity", this.show ? 1 : 0), this.line.attr("y1", 0).attr("y1", this._height), y(this.line, t, x).attr("x1", this.x).attr("x2", this.x);
|
|
37
|
-
const o = this.getCircleData(), n = this.g.selectAll("circle").data(o, (s, a) => {
|
|
38
|
-
var c;
|
|
39
|
-
return (c = s.id) !== null && c !== void 0 ? c : a;
|
|
40
|
-
}), r = n.enter().append("circle").attr("class", A).attr("r", 0).attr("cx", this.x).attr("cy", (s) => s.y).style("fill", (s) => s.color).style("stroke", (s) => s.strokeColor).style("stroke-width", (s) => s.strokeWidth);
|
|
41
|
-
y(r.merge(n), t, x).attr("cx", this.x).attr("cy", (s) => s.y).attr("r", 4).style("opacity", (s) => s.opacity).style("fill", (s) => s.color).style("stroke", (s) => s.strokeColor).style("stroke-width", (s) => s.strokeWidth), n.exit().remove();
|
|
42
|
-
}
|
|
43
|
-
hide() {
|
|
44
|
-
this._onMouseOut();
|
|
45
|
-
}
|
|
46
|
-
_onMouseMove(i) {
|
|
47
|
-
var e, t;
|
|
48
|
-
const { config: o, datamodel: n, element: r } = this;
|
|
49
|
-
!this.accessors.x && (!((e = n.data) === null || e === void 0) && e.length) && console.warn("Unovis | Crosshair: X accessor function has not been configured. Please check if it's present in the configuration object");
|
|
50
|
-
const [s] = _(i, r), a = this.xScale.range();
|
|
51
|
-
if (o.snapToData) {
|
|
52
|
-
!this.accessors.y && !this.accessors.yStacked && (!((t = n.data) === null || t === void 0) && t.length) && console.warn("Unovis | Crosshair: Y accessors have not been configured. Please check if they're present in the configuration object");
|
|
53
|
-
const c = this.xScale, d = c.invert(s);
|
|
54
|
-
if (this.datum = C(n.data, d, this.accessors.x), this.datumIndex = n.data.indexOf(this.datum), !this.datum)
|
|
55
|
-
return;
|
|
56
|
-
this.x = g(Math.round(c(l(this.datum, this.accessors.x, this.datumIndex))), 0, this._width), this.show = this.x >= 0 && this.x <= this._width && (!o.hideWhenFarFromPointer || Math.abs(this.x - s) < o.hideWhenFarFromPointerDistance);
|
|
57
|
-
} else
|
|
58
|
-
this.x = g(s, a[0], a[1]), this.show = s >= a[0] - 2 && s <= a[1] + 2;
|
|
59
|
-
window.cancelAnimationFrame(this._animFrameId), this._animFrameId = window.requestAnimationFrame(() => {
|
|
60
|
-
this._render();
|
|
61
|
-
}), this.show ? this._showTooltip(i) : this._hideTooltip();
|
|
62
|
-
}
|
|
63
|
-
_onMouseOut() {
|
|
64
|
-
this.show = !1, window.cancelAnimationFrame(this._animFrameId), this._animFrameId = window.requestAnimationFrame(() => {
|
|
65
|
-
this._render();
|
|
66
|
-
}), this._hideTooltip();
|
|
67
|
-
}
|
|
68
|
-
_showTooltip(i) {
|
|
69
|
-
var e;
|
|
70
|
-
const { config: t } = this, o = (e = t.tooltip) !== null && e !== void 0 ? e : this.tooltip;
|
|
71
|
-
if (!o)
|
|
72
|
-
return;
|
|
73
|
-
const n = o.getContainer() || this.container.node(), [r, s] = o.isContainerBody() ? [i.clientX, i.clientY] : _(i, n), a = t.template(this.datum, this.xScale.invert(this.x));
|
|
74
|
-
if (o.config.followCursor = !0, !o.config.horizontalPlacement || o.config.horizontalPlacement === p.Auto) {
|
|
75
|
-
const c = o.isContainerBody() ? r - this.container.node().getBoundingClientRect().left : r;
|
|
76
|
-
o.overrideHorizontalPlacement(c > this._containerWidth / 2 ? p.Left : p.Right);
|
|
77
|
-
}
|
|
78
|
-
a && o.show(a, { x: r, y: s });
|
|
79
|
-
}
|
|
80
|
-
_hideTooltip() {
|
|
81
|
-
var i;
|
|
82
|
-
const { config: e } = this, t = (i = e.tooltip) !== null && i !== void 0 ? i : this.tooltip;
|
|
83
|
-
t == null || t.hide();
|
|
84
|
-
}
|
|
85
|
-
// We don't want Crosshair to be be taken in to account in domain calculations
|
|
86
|
-
getYDataExtent() {
|
|
87
|
-
return [void 0, void 0];
|
|
88
|
-
}
|
|
89
|
-
getCircleData() {
|
|
90
|
-
var i, e;
|
|
91
|
-
const { config: t, datamodel: { data: o } } = this;
|
|
92
|
-
if (v(t.getCircles))
|
|
93
|
-
return t.getCircles(this.xScale.invert(this.x), o, this.yScale);
|
|
94
|
-
if (t.snapToData && this.datum) {
|
|
95
|
-
const n = (i = this.accessors.y) !== null && i !== void 0 ? i : [], r = (e = this.accessors.yStacked) !== null && e !== void 0 ? e : [], s = l(this.datum, this.accessors.baseline, this.datumIndex) || 0, a = w(this.datum, this.datumIndex, ...r).map((d, h, m) => ({
|
|
96
|
-
y: this.yScale(d + s),
|
|
97
|
-
opacity: f(l(this.datum, r[h])) ? 1 : 0,
|
|
98
|
-
color: u(this.datum, t.color, h),
|
|
99
|
-
strokeColor: t.strokeColor ? u(this.datum, t.strokeColor, h) : void 0,
|
|
100
|
-
strokeWidth: t.strokeWidth ? l(this.datum, t.strokeWidth, h) : void 0
|
|
101
|
-
})), c = n.map((d, h) => {
|
|
102
|
-
const m = l(this.datum, d);
|
|
103
|
-
return {
|
|
104
|
-
y: this.yScale(m),
|
|
105
|
-
opacity: f(m) ? 1 : 0,
|
|
106
|
-
color: u(this.datum, t.color, a.length + h),
|
|
107
|
-
strokeColor: t.strokeColor ? u(this.datum, t.strokeColor, h) : void 0,
|
|
108
|
-
strokeWidth: t.strokeWidth ? l(this.datum, t.strokeWidth, h) : void 0
|
|
109
|
-
};
|
|
110
|
-
});
|
|
111
|
-
return a.concat(c);
|
|
112
|
-
}
|
|
113
|
-
return [];
|
|
114
|
-
}
|
|
115
|
-
}
|
|
116
|
-
I.selectors = F;
|
|
117
|
-
export {
|
|
118
|
-
I as Crosshair
|
|
119
|
-
};
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const s=require("../../../../@emotion/css/dist/emotion-css.esm.cjs"),r=s.injectGlobal`
|
|
2
|
-
:root {
|
|
3
|
-
--vis-crosshair-line-stroke-color: #888;
|
|
4
|
-
--vis-crosshair-line-stroke-width: 1px;
|
|
5
|
-
--vis-crosshair-line-stroke-opacity: 1;
|
|
6
|
-
--vis-crosshair-circle-stroke-color: #fff;
|
|
7
|
-
--vis-crosshair-circle-stroke-width: 1px;
|
|
8
|
-
--vis-crosshair-circle-stroke-opacity: 0.75;
|
|
9
|
-
}
|
|
10
|
-
`,o=s.css`
|
|
11
|
-
label: crosshair-component;
|
|
12
|
-
`,i=s.css`
|
|
13
|
-
stroke: var(--vis-crosshair-line-stroke-color);
|
|
14
|
-
stroke-width: var(--vis-crosshair-line-stroke-width);
|
|
15
|
-
stroke-opacity: var(--vis-crosshair-line-stroke-opacity);
|
|
16
|
-
pointer-events: none;
|
|
17
|
-
`,e=s.css`
|
|
18
|
-
stroke: var(--vis-crosshair-circle-stroke-color);
|
|
19
|
-
stroke-width: var(--vis-crosshair-circle-stroke-width);
|
|
20
|
-
stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
|
|
21
|
-
pointer-events: none;
|
|
22
|
-
`;exports.circle=e;exports.globalStyles=r;exports.line=i;exports.root=o;
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
import { css as r, injectGlobal as s } from "../../../../@emotion/css/dist/emotion-css.esm.js";
|
|
2
|
-
const i = s`
|
|
3
|
-
:root {
|
|
4
|
-
--vis-crosshair-line-stroke-color: #888;
|
|
5
|
-
--vis-crosshair-line-stroke-width: 1px;
|
|
6
|
-
--vis-crosshair-line-stroke-opacity: 1;
|
|
7
|
-
--vis-crosshair-circle-stroke-color: #fff;
|
|
8
|
-
--vis-crosshair-circle-stroke-width: 1px;
|
|
9
|
-
--vis-crosshair-circle-stroke-opacity: 0.75;
|
|
10
|
-
}
|
|
11
|
-
`, e = r`
|
|
12
|
-
label: crosshair-component;
|
|
13
|
-
`, t = r`
|
|
14
|
-
stroke: var(--vis-crosshair-line-stroke-color);
|
|
15
|
-
stroke-width: var(--vis-crosshair-line-stroke-width);
|
|
16
|
-
stroke-opacity: var(--vis-crosshair-line-stroke-opacity);
|
|
17
|
-
pointer-events: none;
|
|
18
|
-
`, c = r`
|
|
19
|
-
stroke: var(--vis-crosshair-circle-stroke-color);
|
|
20
|
-
stroke-width: var(--vis-crosshair-circle-stroke-width);
|
|
21
|
-
stroke-opacity: var(--vis-crosshair-circle-stroke-opacity);
|
|
22
|
-
pointer-events: none;
|
|
23
|
-
`;
|
|
24
|
-
export {
|
|
25
|
-
c as circle,
|
|
26
|
-
i as globalStyles,
|
|
27
|
-
t as line,
|
|
28
|
-
e as root
|
|
29
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../core/component/config.cjs"),u=Object.assign(Object.assign({},a.ComponentDefaultConfig),{id:(n,t)=>{var e;return(e=n.id)!==null&&e!==void 0?e:t},value:void 0,angleRange:[0,2*Math.PI],padAngle:0,sortFunction:void 0,cornerRadius:0,color:void 0,radius:void 0,arcWidth:20,centralLabel:void 0,centralSubLabel:void 0,centralSubLabelWrap:!0,showEmptySegments:!1,emptySegmentAngle:.5*Math.PI/180,showBackground:!0,backgroundAngleRange:void 0,centralLabelOffsetX:void 0,centralLabelOffsetY:void 0});exports.DonutDefaultConfig=u;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComponentDefaultConfig as t } from "../../core/component/config.js";
|
|
2
|
-
const u = Object.assign(Object.assign({}, t), { id: (n, a) => {
|
|
3
|
-
var e;
|
|
4
|
-
return (e = n.id) !== null && e !== void 0 ? e : a;
|
|
5
|
-
}, value: void 0, angleRange: [0, 2 * Math.PI], padAngle: 0, sortFunction: void 0, cornerRadius: 0, color: void 0, radius: void 0, arcWidth: 20, centralLabel: void 0, centralSubLabel: void 0, centralSubLabelWrap: !0, showEmptySegments: !1, emptySegmentAngle: 0.5 * Math.PI / 180, showBackground: !0, backgroundAngleRange: void 0, centralLabelOffsetX: void 0, centralLabelOffsetY: void 0 });
|
|
6
|
-
export {
|
|
7
|
-
u as DonutDefaultConfig
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const A=Array.from({length:4},(O,N)=>{const _=-Math.PI/2+N*Math.PI/2;return[_,_+Math.PI]}),[E,G,L,T]=A;exports.DONUT_HALF_ANGLE_RANGES=A;exports.DONUT_HALF_ANGLE_RANGE_BOTTOM=L;exports.DONUT_HALF_ANGLE_RANGE_LEFT=T;exports.DONUT_HALF_ANGLE_RANGE_RIGHT=G;exports.DONUT_HALF_ANGLE_RANGE_TOP=E;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
const N = Array.from({ length: 4 }, (E, A) => {
|
|
2
|
-
const _ = -Math.PI / 2 + A * Math.PI / 2;
|
|
3
|
-
return [_, _ + Math.PI];
|
|
4
|
-
}), [G, L, t, T] = N;
|
|
5
|
-
export {
|
|
6
|
-
N as DONUT_HALF_ANGLE_RANGES,
|
|
7
|
-
t as DONUT_HALF_ANGLE_RANGE_BOTTOM,
|
|
8
|
-
T as DONUT_HALF_ANGLE_RANGE_LEFT,
|
|
9
|
-
L as DONUT_HALF_ANGLE_RANGE_RIGHT,
|
|
10
|
-
G as DONUT_HALF_ANGLE_RANGE_TOP
|
|
11
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const z=require("../../core/component/index.cjs"),U=require("../../data-models/series.cjs"),J=require("../../utils/d3.cjs"),i=require("../../utils/data.cjs"),K=require("../../utils/text.cjs"),Q=require("./config.cjs"),k=require("./modules/arc.cjs"),Z=require("./constants.cjs"),l=require("./style.cjs"),tt=require("../../../../d3-shape/src/arc.cjs"),et=require("../../../../d3-shape/src/pie.cjs");class Y extends z.ComponentCore{constructor(r){super(),this._defaultConfig=Q.DonutDefaultConfig,this.config=this._defaultConfig,this.datamodel=new U.SeriesDataModel,this.arcGen=tt.default(),this.events={},r&&this.setConfig(r),this.arcBackground=this.g.append("path"),this.arcGroup=this.g.append("g"),this.centralLabel=this.g.append("text").attr("class",l.centralLabel),this.centralSubLabel=this.g.append("text").attr("class",l.centralSubLabel)}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(r){var o,c,d,u,g,h,b,f,p,m,v,A,L,_;const{config:e,datamodel:$,bleed:s}=this,j=$.data.map((t,a)=>({index:a,datum:t})).filter(t=>e.showEmptySegments||i.getNumber(t.datum,e.value,t.index)),x=i.isNumber(r)?r:e.duration,[R,S,D,G]=Z.DONUT_HALF_ANGLE_RANGES.map(t=>e.angleRange&&e.angleRange[0]===t[0]&&e.angleRange[1]===t[1]),w=R||D,P=S||G,X=this._width*(P?2:1),I=this._height*(w?2:1),n=e.radius||Math.min(X-s.left-s.right,I-s.top-s.bottom)/2,q=e.arcWidth===0?0:i.clamp(n-e.arcWidth,0,n-1),y=this._height/2+(R?n/2:D?-n/2:0),C=this._width/2+(G?n/2:S?-n/2:0),H=`translate(${C},${y})`;this.arcGroup.attr("transform",H),this.arcGen.startAngle(t=>t.startAngle).endAngle(t=>t.endAngle).innerRadius(t=>t.innerRadius).outerRadius(t=>t.outerRadius).padAngle(t=>t.padAngle).cornerRadius(e.cornerRadius);const W=et.default().startAngle((c=(o=e.angleRange)===null||o===void 0?void 0:o[0])!==null&&c!==void 0?c:0).endAngle((u=(d=e.angleRange)===null||d===void 0?void 0:d[1])!==null&&u!==void 0?u:2*Math.PI).padAngle(e.padAngle).value(t=>i.getNumber(t.datum,e.value,t.index)||0).sort((t,a)=>{var T;return(T=e.sortFunction)===null||T===void 0?void 0:T.call(e,t.datum,a.datum)})(j).map(t=>{const a=Object.assign(Object.assign({},t),{data:t.data.datum,index:t.data.index,innerRadius:q,outerRadius:n});return e.showEmptySegments&&t.endAngle-t.startAngle-t.padAngle<=Number.EPSILON&&(a.endAngle=t.startAngle+Math.max(e.emptySegmentAngle,e.padAngle),a.padAngle=t.padAngle/2),a}),O=this.arcGroup.selectAll(`.${l.segment}`).data(W,t=>e.id(t.data,t.index)),F=O.enter().append("path").attr("class",l.segment).call(k.createArc,e),N=O.merge(F);N.call(k.updateArc,e,this.arcGen,x),N.sort((t,a)=>a.value-t.value),O.exit().attr("class",l.segmentExit).call(k.removeArc,x);const B=S?"start":G?"end":"middle";this.centralLabel.attr("dy",e.centralSubLabel?"-0.55em":null).style("text-anchor",B).text((g=e.centralLabel)!==null&&g!==void 0?g:null),this.centralSubLabel.attr("dy",e.centralLabel?"0.55em":null).style("text-anchor",B).text((h=e.centralSubLabel)!==null&&h!==void 0?h:null),e.centralSubLabelWrap&&K.wrapSVGText(this.centralSubLabel,q*1.9);const V=(e.centralLabelOffsetX||0)+C;let E=(e.centralLabelOffsetY||0)+y;w&&e.centralLabelOffsetX===void 0&&e.centralLabelOffsetY===void 0&&(E=(R?-this.centralSubLabel.node().getBoundingClientRect().height:D?this.centralLabel.node().getBoundingClientRect().height:0)+y);const M=`translate(${V},${E})`;this.centralLabel.attr("transform",M),this.centralSubLabel.attr("transform",M),this.arcBackground.attr("class",l.background).attr("visibility",e.showBackground?null:"hidden").attr("transform",H),J.smartTransition(this.arcBackground,x).attr("d",this.arcGen({startAngle:(m=(f=(b=e.backgroundAngleRange)===null||b===void 0?void 0:b[0])!==null&&f!==void 0?f:(p=e.angleRange)===null||p===void 0?void 0:p[0])!==null&&m!==void 0?m:0,endAngle:(_=(A=(v=e.backgroundAngleRange)===null||v===void 0?void 0:v[1])!==null&&A!==void 0?A:(L=e.angleRange)===null||L===void 0?void 0:L[1])!==null&&_!==void 0?_:2*Math.PI,innerRadius:q,outerRadius:n}))}}Y.selectors=l;exports.Donut=Y;
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { ComponentCore as V } from "../../core/component/index.js";
|
|
2
|
-
import { SeriesDataModel as z } from "../../data-models/series.js";
|
|
3
|
-
import { smartTransition as U } from "../../utils/d3.js";
|
|
4
|
-
import { getNumber as N, isNumber as q, clamp as J } from "../../utils/data.js";
|
|
5
|
-
import { wrapSVGText as K } from "../../utils/text.js";
|
|
6
|
-
import { DonutDefaultConfig as Q } from "./config.js";
|
|
7
|
-
import { createArc as Z, updateArc as tt, removeArc as et } from "./modules/arc.js";
|
|
8
|
-
import { DONUT_HALF_ANGLE_RANGES as at } from "./constants.js";
|
|
9
|
-
import * as nt from "./style.js";
|
|
10
|
-
import { centralLabel as lt, centralSubLabel as rt, segment as M, segmentExit as it, background as ot } from "./style.js";
|
|
11
|
-
import st from "../../../../d3-shape/src/arc.js";
|
|
12
|
-
import dt from "../../../../d3-shape/src/pie.js";
|
|
13
|
-
class ct extends V {
|
|
14
|
-
constructor(l) {
|
|
15
|
-
super(), this._defaultConfig = Q, this.config = this._defaultConfig, this.datamodel = new z(), this.arcGen = st(), this.events = {}, l && this.setConfig(l), this.arcBackground = this.g.append("path"), this.arcGroup = this.g.append("g"), this.centralLabel = this.g.append("text").attr("class", lt), this.centralSubLabel = this.g.append("text").attr("class", rt);
|
|
16
|
-
}
|
|
17
|
-
get bleed() {
|
|
18
|
-
return { top: 0, bottom: 0, left: 0, right: 0 };
|
|
19
|
-
}
|
|
20
|
-
_render(l) {
|
|
21
|
-
var i, o, s, d, c, u, g, h, m, f, p, b, v, A;
|
|
22
|
-
const { config: e, datamodel: Y, bleed: r } = this, $ = Y.data.map((t, a) => ({
|
|
23
|
-
index: a,
|
|
24
|
-
datum: t
|
|
25
|
-
})).filter((t) => e.showEmptySegments || N(t.datum, e.value, t.index)), L = q(l) ? l : e.duration, [_, R, x, S] = at.map((t) => e.angleRange && e.angleRange[0] === t[0] && e.angleRange[1] === t[1]), k = _ || x, X = R || S, j = this._width * (X ? 2 : 1), I = this._height * (k ? 2 : 1), n = e.radius || Math.min(j - r.left - r.right, I - r.top - r.bottom) / 2, D = e.arcWidth === 0 ? 0 : J(n - e.arcWidth, 0, n - 1), G = this._height / 2 + (_ ? n / 2 : x ? -n / 2 : 0), w = this._width / 2 + (S ? n / 2 : R ? -n / 2 : 0), C = `translate(${w},${G})`;
|
|
26
|
-
this.arcGroup.attr("transform", C), this.arcGen.startAngle((t) => t.startAngle).endAngle((t) => t.endAngle).innerRadius((t) => t.innerRadius).outerRadius((t) => t.outerRadius).padAngle((t) => t.padAngle).cornerRadius(e.cornerRadius);
|
|
27
|
-
const P = dt().startAngle((o = (i = e.angleRange) === null || i === void 0 ? void 0 : i[0]) !== null && o !== void 0 ? o : 0).endAngle((d = (s = e.angleRange) === null || s === void 0 ? void 0 : s[1]) !== null && d !== void 0 ? d : 2 * Math.PI).padAngle(e.padAngle).value((t) => N(t.datum, e.value, t.index) || 0).sort((t, a) => {
|
|
28
|
-
var y;
|
|
29
|
-
return (y = e.sortFunction) === null || y === void 0 ? void 0 : y.call(e, t.datum, a.datum);
|
|
30
|
-
})($).map((t) => {
|
|
31
|
-
const a = Object.assign(Object.assign({}, t), {
|
|
32
|
-
data: t.data.datum,
|
|
33
|
-
index: t.data.index,
|
|
34
|
-
innerRadius: D,
|
|
35
|
-
outerRadius: n
|
|
36
|
-
});
|
|
37
|
-
return e.showEmptySegments && t.endAngle - t.startAngle - t.padAngle <= Number.EPSILON && (a.endAngle = t.startAngle + Math.max(e.emptySegmentAngle, e.padAngle), a.padAngle = t.padAngle / 2), a;
|
|
38
|
-
}), O = this.arcGroup.selectAll(`.${M}`).data(P, (t) => e.id(t.data, t.index)), W = O.enter().append("path").attr("class", M).call(Z, e), H = O.merge(W);
|
|
39
|
-
H.call(tt, e, this.arcGen, L), H.sort((t, a) => a.value - t.value), O.exit().attr("class", it).call(et, L);
|
|
40
|
-
const T = R ? "start" : S ? "end" : "middle";
|
|
41
|
-
this.centralLabel.attr("dy", e.centralSubLabel ? "-0.55em" : null).style("text-anchor", T).text((c = e.centralLabel) !== null && c !== void 0 ? c : null), this.centralSubLabel.attr("dy", e.centralLabel ? "0.55em" : null).style("text-anchor", T).text((u = e.centralSubLabel) !== null && u !== void 0 ? u : null), e.centralSubLabelWrap && K(this.centralSubLabel, D * 1.9);
|
|
42
|
-
const F = (e.centralLabelOffsetX || 0) + w;
|
|
43
|
-
let B = (e.centralLabelOffsetY || 0) + G;
|
|
44
|
-
k && e.centralLabelOffsetX === void 0 && e.centralLabelOffsetY === void 0 && (B = (_ ? -this.centralSubLabel.node().getBoundingClientRect().height : x ? this.centralLabel.node().getBoundingClientRect().height : 0) + G);
|
|
45
|
-
const E = `translate(${F},${B})`;
|
|
46
|
-
this.centralLabel.attr("transform", E), this.centralSubLabel.attr("transform", E), this.arcBackground.attr("class", ot).attr("visibility", e.showBackground ? null : "hidden").attr("transform", C), U(this.arcBackground, L).attr("d", this.arcGen({
|
|
47
|
-
startAngle: (f = (h = (g = e.backgroundAngleRange) === null || g === void 0 ? void 0 : g[0]) !== null && h !== void 0 ? h : (m = e.angleRange) === null || m === void 0 ? void 0 : m[0]) !== null && f !== void 0 ? f : 0,
|
|
48
|
-
endAngle: (A = (b = (p = e.backgroundAngleRange) === null || p === void 0 ? void 0 : p[1]) !== null && b !== void 0 ? b : (v = e.angleRange) === null || v === void 0 ? void 0 : v[1]) !== null && A !== void 0 ? A : 2 * Math.PI,
|
|
49
|
-
innerRadius: D,
|
|
50
|
-
outerRadius: n
|
|
51
|
-
}));
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
ct.selectors = nt;
|
|
55
|
-
export {
|
|
56
|
-
ct as Donut
|
|
57
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("../../../utils/color.cjs"),u=require("../../../utils/d3.cjs"),y=require("../../../../../d3-interpolate/src/value.cjs");function p(n,r){n.style("fill",t=>c.getColor(t.data,r.color,t.index)).style("opacity",0).each((t,i,s)=>{const a=s[i],e=(t.startAngle+t.endAngle)/2,o=(t.endAngle-t.startAngle)/2;a._animState={startAngle:e-o,endAngle:e+o,innerRadius:t.innerRadius,outerRadius:t.outerRadius,padAngle:t.padAngle}})}function f(n,r,t,i){n.style("transition",`fill ${i}ms`).style("fill",a=>c.getColor(a.data,r.color,a.index));const s=a=>r.showEmptySegments||a.value?1:0;i?u.smartTransition(n,i).style("opacity",s).attrTween("d",(e,o,A)=>{const l=A[o],g={startAngle:e.startAngle,endAngle:e.endAngle,innerRadius:e.innerRadius,outerRadius:e.outerRadius,padAngle:e.padAngle},d=y.default(l._animState,g);return m=>(l._animState=d(m),t(l._animState))}):n.attr("d",t).style("opacity",s)}function R(n,r){u.smartTransition(n,r).style("opacity",0).remove()}exports.createArc=p;exports.removeArc=R;exports.updateArc=f;
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { getColor as c } from "../../../utils/color.js";
|
|
2
|
-
import { smartTransition as m } from "../../../utils/d3.js";
|
|
3
|
-
import d from "../../../../../d3-interpolate/src/value.js";
|
|
4
|
-
function S(n, r) {
|
|
5
|
-
n.style("fill", (t) => c(t.data, r.color, t.index)).style("opacity", 0).each((t, i, o) => {
|
|
6
|
-
const a = o[i], e = (t.startAngle + t.endAngle) / 2, s = (t.endAngle - t.startAngle) / 2;
|
|
7
|
-
a._animState = {
|
|
8
|
-
startAngle: e - s,
|
|
9
|
-
endAngle: e + s,
|
|
10
|
-
innerRadius: t.innerRadius,
|
|
11
|
-
outerRadius: t.outerRadius,
|
|
12
|
-
padAngle: t.padAngle
|
|
13
|
-
};
|
|
14
|
-
});
|
|
15
|
-
}
|
|
16
|
-
function x(n, r, t, i) {
|
|
17
|
-
n.style("transition", `fill ${i}ms`).style("fill", (a) => c(a.data, r.color, a.index));
|
|
18
|
-
const o = (a) => r.showEmptySegments || a.value ? 1 : 0;
|
|
19
|
-
i ? m(n, i).style("opacity", o).attrTween("d", (e, s, u) => {
|
|
20
|
-
const l = u[s], A = {
|
|
21
|
-
startAngle: e.startAngle,
|
|
22
|
-
endAngle: e.endAngle,
|
|
23
|
-
innerRadius: e.innerRadius,
|
|
24
|
-
outerRadius: e.outerRadius,
|
|
25
|
-
padAngle: e.padAngle
|
|
26
|
-
}, g = d(l._animState, A);
|
|
27
|
-
return (p) => (l._animState = g(p), t(l._animState));
|
|
28
|
-
}) : n.attr("d", t).style("opacity", o);
|
|
29
|
-
}
|
|
30
|
-
function _(n, r) {
|
|
31
|
-
m(n, r).style("opacity", 0).remove();
|
|
32
|
-
}
|
|
33
|
-
export {
|
|
34
|
-
S as createArc,
|
|
35
|
-
_ as removeArc,
|
|
36
|
-
x as updateArc
|
|
37
|
-
};
|