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,185 +0,0 @@
|
|
|
1
|
-
import { css as E } from "../../../../@emotion/css/dist/emotion-css.esm.js";
|
|
2
|
-
import "../../styles/index.js";
|
|
3
|
-
import { ContainerCore as N } from "../../core/container/index.js";
|
|
4
|
-
import { CoreDataModel as R } from "../../data-models/core.js";
|
|
5
|
-
import { AxisType as D } from "../../components/axis/types.js";
|
|
6
|
-
import { ScaleDimension as u } from "../../types/scale.js";
|
|
7
|
-
import { Direction as P } from "../../types/direction.js";
|
|
8
|
-
import { clamp as b, clean as y, flatten as S } from "../../utils/data.js";
|
|
9
|
-
import { guid as Y } from "../../utils/misc.js";
|
|
10
|
-
import { XYContainerDefaultConfig as $ } from "./config.js";
|
|
11
|
-
import w from "../../../../d3-array/src/extent.js";
|
|
12
|
-
import T from "../../../../d3-array/src/merge.js";
|
|
13
|
-
class J extends N {
|
|
14
|
-
constructor(t, i, e) {
|
|
15
|
-
var o, n;
|
|
16
|
-
super(t), this._defaultConfig = $, this.datamodel = new R(), this.config = this._defaultConfig, this._clipPathId = Y(), this._axisMargin = { top: 0, bottom: 0, left: 0, right: 0 }, this._firstRender = !0, this._clipPath = this.svg.append("clipPath").attr("id", this._clipPathId), this._clipPath.append("rect");
|
|
17
|
-
const s = "saturate", r = window.location.href.replace(window.location.hash, "");
|
|
18
|
-
this.svg.attr("class", E`
|
|
19
|
-
--highlight-filter-id: url(${r}#${s}); // defining a css variable
|
|
20
|
-
`), this._svgDefs.append("filter").attr("id", s).attr("filterUnits", "objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'), i && this.updateContainer(i, !0), e && this.setData(e, !0), (this.config.xAxis || this.config.yAxis || !((o = this.components) === null || o === void 0) && o.some((a) => a.datamodel.data)) && this.render(), (n = document.fonts) === null || n === void 0 || n.ready.then(() => {
|
|
21
|
-
this._firstRender || this._renderAxes(0);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
get components() {
|
|
25
|
-
return this.config.components;
|
|
26
|
-
}
|
|
27
|
-
// Overriding ContainerCore default get width method to work with axis auto margin
|
|
28
|
-
get width() {
|
|
29
|
-
const t = this._getMargin();
|
|
30
|
-
return b(this.containerWidth - t.left - t.right, 0, Number.POSITIVE_INFINITY);
|
|
31
|
-
}
|
|
32
|
-
// Overriding ContainerCore default get height method to work with axis auto margin
|
|
33
|
-
get height() {
|
|
34
|
-
const t = this._getMargin();
|
|
35
|
-
return b(this.containerHeight - t.top - t.bottom, 0, Number.POSITIVE_INFINITY);
|
|
36
|
-
}
|
|
37
|
-
setData(t, i) {
|
|
38
|
-
var e, o, n, s;
|
|
39
|
-
const { components: r, config: a } = this;
|
|
40
|
-
t && (this.datamodel.data = t, r.forEach((l) => {
|
|
41
|
-
l.setData(t);
|
|
42
|
-
}), (e = a.crosshair) === null || e === void 0 || e.setData(t), (o = a.xAxis) === null || o === void 0 || o.setData(t), (n = a.yAxis) === null || n === void 0 || n.setData(t), (s = a.tooltip) === null || s === void 0 || s.hide(), i || this.render());
|
|
43
|
-
}
|
|
44
|
-
updateContainer(t, i) {
|
|
45
|
-
super.updateContainer(t), this._removeAllChildren(), this.setData(this.datamodel.data, !0), t.xAxis && (this.config.xAxis.config.type = D.X, this.element.appendChild(t.xAxis.element)), t.yAxis && (this.config.yAxis.config.type = D.Y, this.element.appendChild(t.yAxis.element));
|
|
46
|
-
for (const s of this.components)
|
|
47
|
-
this.element.appendChild(s.element);
|
|
48
|
-
const e = t.tooltip;
|
|
49
|
-
e && (e.hasContainer() || e.setContainer(this._container), e.setComponents(this.components));
|
|
50
|
-
const o = t.crosshair;
|
|
51
|
-
o && (o.setContainer(this.svg), o.tooltip = e, this.element.appendChild(o.element));
|
|
52
|
-
const n = t.annotations;
|
|
53
|
-
n && this.element.appendChild(n.element), this.element.appendChild(this._clipPath.node()), this.element.appendChild(this._svgDefs.node()), this.element.appendChild(this._svgDefsExternal.node()), i || this.render();
|
|
54
|
-
}
|
|
55
|
-
updateComponents(t, i) {
|
|
56
|
-
const { config: e } = this;
|
|
57
|
-
this.components.forEach((o, n) => {
|
|
58
|
-
t[n] && o.setConfig(t[n]);
|
|
59
|
-
}), this._updateScales(...this.components, e.xAxis, e.yAxis, e.crosshair), i || this.render();
|
|
60
|
-
}
|
|
61
|
-
update(t, i, e) {
|
|
62
|
-
e && (this.datamodel.data = e), t && this.updateContainer(t, !0), i && this.updateComponents(i, !0), this.render();
|
|
63
|
-
}
|
|
64
|
-
_preRender() {
|
|
65
|
-
const { config: t } = this;
|
|
66
|
-
super._preRender(), t.autoMargin && this._setAutoMargin();
|
|
67
|
-
const i = y([...this.components, t.xAxis, t.yAxis, t.crosshair, t.annotations]);
|
|
68
|
-
for (const e of i)
|
|
69
|
-
e.setSize(this.width, this.height, this.containerWidth, this.containerHeight);
|
|
70
|
-
this._updateScales(...this.components, t.xAxis, t.yAxis, t.crosshair);
|
|
71
|
-
}
|
|
72
|
-
_render(t) {
|
|
73
|
-
var i, e, o, n, s;
|
|
74
|
-
const { config: r } = this;
|
|
75
|
-
super._render();
|
|
76
|
-
const a = this._getMargin();
|
|
77
|
-
for (const d of this.components)
|
|
78
|
-
d.g.attr("transform", `translate(${a.left},${a.top})`).style("clip-path", d.clippable ? `url(#${this._clipPathId})` : null).style("-webkit-clip-path", d.clippable ? `url(#${this._clipPathId})` : null), d.render(t);
|
|
79
|
-
this._renderAxes(this._firstRender ? 0 : t);
|
|
80
|
-
const l = 2;
|
|
81
|
-
this._clipPath.select("rect").attr("x", -2).attr("y", -2).attr("width", this.width + 2 * l).attr("height", this.height + 2 * l), (i = r.tooltip) === null || i === void 0 || i.update();
|
|
82
|
-
const p = r.crosshair;
|
|
83
|
-
if (p) {
|
|
84
|
-
const d = this.components.filter((c) => !c.stacked).map((c) => c.config.y), f = this.components.filter((c) => c.stacked).map((c) => c.config.y), h = (e = this.components.find((c) => c.config.baseline)) === null || e === void 0 ? void 0 : e.config, g = h == null ? void 0 : h.baseline;
|
|
85
|
-
p.accessors = {
|
|
86
|
-
x: (o = this.components[0]) === null || o === void 0 ? void 0 : o.config.x,
|
|
87
|
-
y: S(d),
|
|
88
|
-
yStacked: S(f),
|
|
89
|
-
baseline: g
|
|
90
|
-
}, p.g.attr("transform", `translate(${a.left},${a.top})`).style("clip-path", `url(#${this._clipPathId})`).style("-webkit-clip-path", `url(#${this._clipPathId})`), p.hide();
|
|
91
|
-
}
|
|
92
|
-
(n = r.annotations) === null || n === void 0 || n.g.attr("transform", `translate(${a.left},${a.top})`), (s = r.annotations) === null || s === void 0 || s.render(), this._firstRender = !1;
|
|
93
|
-
}
|
|
94
|
-
_updateScales(...t) {
|
|
95
|
-
const i = y(t || this.components);
|
|
96
|
-
this._setScales(...i), this._updateScalesDomain(...i), this._updateScalesRange(...i);
|
|
97
|
-
}
|
|
98
|
-
_setScales(...t) {
|
|
99
|
-
const { config: i } = this;
|
|
100
|
-
t && (i.xScale && t.forEach((e) => e.setScale(u.X, i.xScale)), i.yScale && t.forEach((e) => e.setScale(u.Y, i.yScale)));
|
|
101
|
-
}
|
|
102
|
-
_updateScalesDomain(...t) {
|
|
103
|
-
const { config: i } = this;
|
|
104
|
-
if (!t)
|
|
105
|
-
return;
|
|
106
|
-
const e = t.filter((o) => !o.config.excludeFromDomainCalculation);
|
|
107
|
-
Object.values(u).forEach((o) => {
|
|
108
|
-
var n, s, r, a, l, p, d, f;
|
|
109
|
-
const [h, g] = w(T(e.map((x) => x.getDataExtent(o, i.scaleByDomain)))), c = o === u.Y ? i.yDomain : i.xDomain, m = o === u.Y ? i.yDomainMinConstraint : i.xDomainMinConstraint, _ = o === u.Y ? i.yDomainMaxConstraint : i.xDomainMaxConstraint, A = (s = (n = c == null ? void 0 : c[0]) !== null && n !== void 0 ? n : h) !== null && s !== void 0 ? s : 0, C = (a = (r = c == null ? void 0 : c[1]) !== null && r !== void 0 ? r : g) !== null && a !== void 0 ? a : 1, v = [
|
|
110
|
-
b(A, (l = m == null ? void 0 : m[0]) !== null && l !== void 0 ? l : Number.NEGATIVE_INFINITY, (p = m == null ? void 0 : m[1]) !== null && p !== void 0 ? p : Number.POSITIVE_INFINITY),
|
|
111
|
-
b(C, (d = _ == null ? void 0 : _[0]) !== null && d !== void 0 ? d : Number.NEGATIVE_INFINITY, (f = _ == null ? void 0 : _[1]) !== null && f !== void 0 ? f : Number.POSITIVE_INFINITY)
|
|
112
|
-
];
|
|
113
|
-
if (v[0] === v[1]) {
|
|
114
|
-
const x = e.some((M) => {
|
|
115
|
-
var I;
|
|
116
|
-
return ((I = M.datamodel.data) === null || I === void 0 ? void 0 : I.length) > 0;
|
|
117
|
-
});
|
|
118
|
-
(i.preventEmptyDomain || i.preventEmptyDomain === null && (!x || o === u.Y)) && (v[1] = v[0] + 1);
|
|
119
|
-
}
|
|
120
|
-
t.forEach((x) => x.setScaleDomain(o, v));
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
_updateScalesRange(...t) {
|
|
124
|
-
var i, e, o, n, s, r;
|
|
125
|
-
const { config: a } = this;
|
|
126
|
-
if (!t)
|
|
127
|
-
return;
|
|
128
|
-
const l = a.yDirection === P.South, p = [(i = a.padding.left) !== null && i !== void 0 ? i : 0, this.width - ((e = a.padding.right) !== null && e !== void 0 ? e : 0)], d = [this.height - ((o = a.padding.bottom) !== null && o !== void 0 ? o : 0), (n = a.padding.top) !== null && n !== void 0 ? n : 0];
|
|
129
|
-
l && d.reverse();
|
|
130
|
-
for (const h of t)
|
|
131
|
-
h.setSize(this.width, this.height, this.containerWidth, this.containerHeight), h.setScaleRange(u.X, (s = a.xRange) !== null && s !== void 0 ? s : p), h.setScaleRange(u.Y, (r = a.yRange) !== null && r !== void 0 ? r : d);
|
|
132
|
-
const f = t.map((h) => h.bleed).reduce((h, g) => {
|
|
133
|
-
for (const c of Object.keys(h)) {
|
|
134
|
-
const m = c;
|
|
135
|
-
h[m] < g[m] && (h[m] = g[m]);
|
|
136
|
-
}
|
|
137
|
-
return h;
|
|
138
|
-
}, { top: 0, bottom: 0, left: 0, right: 0 });
|
|
139
|
-
for (const h of t)
|
|
140
|
-
h.setScaleRange(u.X, [p[0] + f.left, p[1] - f.right]), h.setScaleRange(
|
|
141
|
-
u.Y,
|
|
142
|
-
l ? [d[0] + f.top, d[1] - f.bottom] : [d[0] - f.bottom, d[1] + f.top]
|
|
143
|
-
// if Y axis is directed upwards
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
_renderAxes(t) {
|
|
147
|
-
const { config: { xAxis: i, yAxis: e } } = this, o = this._getMargin();
|
|
148
|
-
y([i, e]).forEach((s) => {
|
|
149
|
-
const r = s.getOffset(o);
|
|
150
|
-
s.g.attr("transform", `translate(${r.left},${r.top})`), s.render(t);
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
_setAutoMargin() {
|
|
154
|
-
const { config: { xAxis: t, yAxis: i } } = this, e = y([...this.components, t, i]);
|
|
155
|
-
this._setScales(...e), this._updateScalesDomain(...e);
|
|
156
|
-
const o = this._firstRender ? 2 : 1;
|
|
157
|
-
for (let n = 0; n < o; n += 1) {
|
|
158
|
-
const s = { top: 0, bottom: 0, left: 0, right: 0 };
|
|
159
|
-
this._updateScalesRange(...e), y([t, i]).forEach((a) => {
|
|
160
|
-
a.preRender();
|
|
161
|
-
const l = a.getRequiredMargin();
|
|
162
|
-
s.top < l.top && (s.top = l.top), s.bottom < l.bottom && (s.bottom = l.bottom), s.left < l.left && (s.left = l.left), s.right < l.right && (s.right = l.right);
|
|
163
|
-
}), this._axisMargin = s;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
_getMargin() {
|
|
167
|
-
const { config: { margin: t } } = this;
|
|
168
|
-
return {
|
|
169
|
-
top: t.top + this._axisMargin.top,
|
|
170
|
-
bottom: t.bottom + this._axisMargin.bottom,
|
|
171
|
-
left: t.left + this._axisMargin.left,
|
|
172
|
-
right: t.right + this._axisMargin.right
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
destroy() {
|
|
176
|
-
const { components: t, config: { tooltip: i, crosshair: e, annotations: o, xAxis: n, yAxis: s } } = this;
|
|
177
|
-
super.destroy();
|
|
178
|
-
for (const r of t)
|
|
179
|
-
r == null || r.destroy();
|
|
180
|
-
i == null || i.destroy(), e == null || e.destroy(), o == null || o.destroy(), n == null || n.destroy(), s == null || s.destroy();
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
export {
|
|
184
|
-
J as XYContainer
|
|
185
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={duration:600,events:{},attributes:{}};exports.ComponentDefaultConfig=t;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../data-models/core.cjs"),r=require("../../utils/data.cjs"),g=require("../../utils/misc.cjs"),s=require("../../types/component.cjs"),f=require("./config.cjs"),m=require("../../../../d3-selection/src/select.cjs");class _{constructor(t=s.ComponentType.SVG){var e,i;this.type=s.ComponentType.SVG,this.datamodel=new a.CoreDataModel,this.sizing=s.Sizing.Fit,this.events={},this._defaultConfig=f.ComponentDefaultConfig,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._setUpComponentEventsThrottled=r.throttle(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=r.throttle(this._setCustomAttributes,500),t===s.ComponentType.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=g.guid(),this.g=m.default(this.element);const n=(i=(e=this.constructor)===null||e===void 0?void 0:e.selectors)===null||i===void 0?void 0:i.root;n&&this.g.attr("class",n)}setConfig(t){this.prevConfig=this.config,this.config=r.merge(this._defaultConfig,t)}setData(t){this.datamodel.data=t}setSize(t,e,i,n){isFinite(t)&&(this._width=t),isFinite(e)&&(this._height=e),isFinite(i)&&(this._containerWidth=i),isFinite(n)&&(this._containerHeight=n)}render(t=this.config.duration){this._render(t);const e="animating";t&&(this.g.attr(e,""),this.g.transition(e).duration(t).on("end interrupt",()=>{this.g.attr(e,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(t=this.config.duration){}_setCustomAttributes(){const t=this.config.attributes;Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(i=>{this.g.selectAll(`.${e}`).attr(i,t[e][i])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(t=this.events,e=""){Object.keys(t).forEach(i=>{Object.keys(t[i]).forEach(n=>{const h=this.g.selectAll(`.${i}`);h.on(n+e,(c,l)=>{const d=h.nodes(),u=d.indexOf(c.currentTarget),o=t[i][n];return o==null?void 0:o(l,c,u,d)})})})}destroy(){var t;(t=this.g)===null||t===void 0||t.remove(),this.element=void 0}isDestroyed(){return!this.element}}exports.ComponentCore=_;
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { CoreDataModel as u } from "../../data-models/core.js";
|
|
2
|
-
import { throttle as l, merge as a } from "../../utils/data.js";
|
|
3
|
-
import { guid as m } from "../../utils/misc.js";
|
|
4
|
-
import { ComponentType as o, Sizing as g } from "../../types/component.js";
|
|
5
|
-
import { ComponentDefaultConfig as _ } from "./config.js";
|
|
6
|
-
import p from "../../../../d3-selection/src/select.js";
|
|
7
|
-
class w {
|
|
8
|
-
constructor(t = o.SVG) {
|
|
9
|
-
var e, i;
|
|
10
|
-
this.type = o.SVG, this.datamodel = new u(), this.sizing = g.Fit, this.events = {}, this._defaultConfig = _, this._width = 400, this._height = 200, this._containerWidth = void 0, this._containerHeight = void 0, this._setUpComponentEventsThrottled = l(this._setUpComponentEvents, 500), this._setCustomAttributesThrottled = l(this._setCustomAttributes, 500), t === o.SVG ? this.element = document.createElementNS("http://www.w3.org/2000/svg", "g") : this.element = document.createElement("div"), this.uid = m(), this.g = p(this.element);
|
|
11
|
-
const s = (i = (e = this.constructor) === null || e === void 0 ? void 0 : e.selectors) === null || i === void 0 ? void 0 : i.root;
|
|
12
|
-
s && this.g.attr("class", s);
|
|
13
|
-
}
|
|
14
|
-
setConfig(t) {
|
|
15
|
-
this.prevConfig = this.config, this.config = a(this._defaultConfig, t);
|
|
16
|
-
}
|
|
17
|
-
setData(t) {
|
|
18
|
-
this.datamodel.data = t;
|
|
19
|
-
}
|
|
20
|
-
setSize(t, e, i, s) {
|
|
21
|
-
isFinite(t) && (this._width = t), isFinite(e) && (this._height = e), isFinite(i) && (this._containerWidth = i), isFinite(s) && (this._containerHeight = s);
|
|
22
|
-
}
|
|
23
|
-
render(t = this.config.duration) {
|
|
24
|
-
this._render(t);
|
|
25
|
-
const e = "animating";
|
|
26
|
-
t && (this.g.attr(e, ""), this.g.transition(e).duration(t).on("end interrupt", () => {
|
|
27
|
-
this.g.attr(e, null);
|
|
28
|
-
})), this._setUpComponentEventsThrottled(), this._setCustomAttributesThrottled();
|
|
29
|
-
}
|
|
30
|
-
get bleed() {
|
|
31
|
-
return { top: 0, bottom: 0, left: 0, right: 0 };
|
|
32
|
-
}
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
34
|
-
_render(t = this.config.duration) {
|
|
35
|
-
}
|
|
36
|
-
_setCustomAttributes() {
|
|
37
|
-
const t = this.config.attributes;
|
|
38
|
-
Object.keys(t).forEach((e) => {
|
|
39
|
-
Object.keys(t[e]).forEach((i) => {
|
|
40
|
-
this.g.selectAll(`.${e}`).attr(i, t[e][i]);
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
_setUpComponentEvents() {
|
|
45
|
-
this._bindEvents(this.events), this._bindEvents(this.config.events, ".user");
|
|
46
|
-
}
|
|
47
|
-
_bindEvents(t = this.events, e = "") {
|
|
48
|
-
Object.keys(t).forEach((i) => {
|
|
49
|
-
Object.keys(t[i]).forEach((s) => {
|
|
50
|
-
const r = this.g.selectAll(`.${i}`);
|
|
51
|
-
r.on(s + e, (h, c) => {
|
|
52
|
-
const d = r.nodes(), f = d.indexOf(h.currentTarget), n = t[i][s];
|
|
53
|
-
return n == null ? void 0 : n(c, h, f, d);
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
destroy() {
|
|
59
|
-
var t;
|
|
60
|
-
(t = this.g) === null || t === void 0 || t.remove(), this.element = void 0;
|
|
61
|
-
}
|
|
62
|
-
isDestroyed() {
|
|
63
|
-
return !this.element;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
w as ComponentCore
|
|
68
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../types/component.cjs"),n={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:e.Sizing.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};exports.ContainerDefaultConfig=n;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { Sizing as i } from "../../types/component.js";
|
|
2
|
-
const t = {
|
|
3
|
-
duration: void 0,
|
|
4
|
-
margin: {
|
|
5
|
-
top: 0,
|
|
6
|
-
bottom: 0,
|
|
7
|
-
left: 0,
|
|
8
|
-
right: 0
|
|
9
|
-
},
|
|
10
|
-
padding: {
|
|
11
|
-
top: 0,
|
|
12
|
-
bottom: 0,
|
|
13
|
-
left: 0,
|
|
14
|
-
right: 0
|
|
15
|
-
},
|
|
16
|
-
sizing: i.Fit,
|
|
17
|
-
width: void 0,
|
|
18
|
-
height: void 0,
|
|
19
|
-
svgDefs: void 0,
|
|
20
|
-
ariaLabel: void 0
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
t as ContainerDefaultConfig
|
|
24
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../types/component.cjs"),r=require("../../utils/data.cjs"),c=require("../../utils/resize-observer.cjs"),d=require("./config.cjs"),o=require("../../../../d3-selection/src/select.cjs");class t{constructor(e){this._defaultConfig=d.ContainerDefaultConfig,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const i=o.default(this._container);i.attr("role","figure"),this.svg=i.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",t.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var i;this.prevConfig=this.config,this.config=r.merge(this._defaultConfig,e),(e==null?void 0:e.svgDefs)!==((i=this.prevConfig)===null||i===void 0?void 0:i.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:i}=this;o.default(this._container).attr("aria-label",i.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const i=this.config.width||this.containerWidth,s=this.config.height||this.containerHeight;this.svg.attr("width",i).attr("height",s),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||t.DEFAULT_CONTAINER_HEIGHT}get width(){return r.clamp(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return r.clamp(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===a.Sizing.Fit||e.sizing===a.Sizing.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new c.ResizeObserver((i,s)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const h=this._container.getBoundingClientRect(),n={width:h.width,height:h.height};!r.isEqual(this._containerSize,n)&&n.width&&n.height&&(this._containerSize=n,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}t.DEFAULT_CONTAINER_HEIGHT=300;exports.ContainerCore=t;
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
import { Sizing as h } from "../../types/component.js";
|
|
2
|
-
import { merge as d, clamp as o, isEqual as g } from "../../utils/data.js";
|
|
3
|
-
import { ResizeObserver as c } from "../../utils/resize-observer.js";
|
|
4
|
-
import { ContainerDefaultConfig as l } from "./config.js";
|
|
5
|
-
import a from "../../../../d3-selection/src/select.js";
|
|
6
|
-
class n {
|
|
7
|
-
constructor(e) {
|
|
8
|
-
this._defaultConfig = l, this._isFirstRender = !0, this._renderAnimationFrameId = null, this._container = e;
|
|
9
|
-
const i = a(this._container);
|
|
10
|
-
i.attr("role", "figure"), this.svg = i.append("svg").style("display", "block").attr("xmlns", "http://www.w3.org/2000/svg").attr("height", n.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden", !0), this._svgDefs = this.svg.append("defs"), this._svgDefsExternal = this.svg.append("defs"), this.element = this.svg.node();
|
|
11
|
-
}
|
|
12
|
-
updateContainer(e) {
|
|
13
|
-
var i;
|
|
14
|
-
this.prevConfig = this.config, this.config = d(this._defaultConfig, e), (e == null ? void 0 : e.svgDefs) !== ((i = this.prevConfig) === null || i === void 0 ? void 0 : i.svgDefs) && (this._svgDefsExternal.selectAll("*").remove(), this._svgDefsExternal.html(e.svgDefs));
|
|
15
|
-
}
|
|
16
|
-
// The `_preRender` step should be used to perform some actions before rendering.
|
|
17
|
-
// For example, calculating scales, setting component sizes, etc ...
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
19
|
-
_preRender() {
|
|
20
|
-
}
|
|
21
|
-
// The `_render` step should be used to perform the actual rendering
|
|
22
|
-
_render(e) {
|
|
23
|
-
const { config: i } = this;
|
|
24
|
-
a(this._container).attr("aria-label", i.ariaLabel), this._isFirstRender = !1;
|
|
25
|
-
}
|
|
26
|
-
// Warning: Some Containers (i.e. Single Container) may override this method, so if you introduce any changes here,
|
|
27
|
-
// make sure to check that other containers didn't break after them.
|
|
28
|
-
render(e = this.config.duration) {
|
|
29
|
-
const i = this.config.width || this.containerWidth, r = this.config.height || this.containerHeight;
|
|
30
|
-
this.svg.attr("width", i).attr("height", r), this._resizeObserver || this._setUpResizeObserver(), cancelAnimationFrame(this._renderAnimationFrameId), this._renderAnimationFrameId = requestAnimationFrame(() => {
|
|
31
|
-
this._preRender(), this._render(e);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
get containerWidth() {
|
|
35
|
-
return this.config.width ? this.element.clientWidth : this._container.clientWidth || this._container.getBoundingClientRect().width;
|
|
36
|
-
}
|
|
37
|
-
get containerHeight() {
|
|
38
|
-
return this.config.height ? this.element.clientHeight : this._container.clientHeight || this._container.getBoundingClientRect().height || n.DEFAULT_CONTAINER_HEIGHT;
|
|
39
|
-
}
|
|
40
|
-
get width() {
|
|
41
|
-
return o(this.containerWidth - this.config.margin.left - this.config.margin.right, 0, Number.POSITIVE_INFINITY);
|
|
42
|
-
}
|
|
43
|
-
get height() {
|
|
44
|
-
return o(this.containerHeight - this.config.margin.top - this.config.margin.bottom, 0, Number.POSITIVE_INFINITY);
|
|
45
|
-
}
|
|
46
|
-
_removeAllChildren() {
|
|
47
|
-
for (; this.element.firstChild; )
|
|
48
|
-
this.element.removeChild(this.element.firstChild);
|
|
49
|
-
}
|
|
50
|
-
_onResize() {
|
|
51
|
-
const { config: e } = this;
|
|
52
|
-
(e.sizing === h.Fit || e.sizing === h.FitWidth) && this.render(0);
|
|
53
|
-
}
|
|
54
|
-
_setUpResizeObserver() {
|
|
55
|
-
if (this._resizeObserver)
|
|
56
|
-
return;
|
|
57
|
-
const e = this._container.getBoundingClientRect();
|
|
58
|
-
this._containerSize = { width: e.width, height: e.height }, this._resizeObserver = new c((i, r) => {
|
|
59
|
-
cancelAnimationFrame(this._resizeObserverAnimationFrameId), this._resizeObserverAnimationFrameId = requestAnimationFrame(() => {
|
|
60
|
-
const s = this._container.getBoundingClientRect(), t = { width: s.width, height: s.height };
|
|
61
|
-
!g(this._containerSize, t) && t.width && t.height && (this._containerSize = t, this._onResize());
|
|
62
|
-
});
|
|
63
|
-
}), this._resizeObserver.observe(this._container);
|
|
64
|
-
}
|
|
65
|
-
destroy() {
|
|
66
|
-
var e;
|
|
67
|
-
cancelAnimationFrame(this._renderAnimationFrameId), cancelAnimationFrame(this._resizeObserverAnimationFrameId), (e = this._resizeObserver) === null || e === void 0 || e.disconnect(), this.svg.remove();
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
n.DEFAULT_CONTAINER_HEIGHT = 300;
|
|
71
|
-
export {
|
|
72
|
-
n as ContainerCore
|
|
73
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../component/config.cjs"),t=Object.assign(Object.assign({},i.ComponentDefaultConfig),{x:void 0,y:void 0,id:(e,o)=>{var n;return(n=e.id)!==null&&n!==void 0?n:`${o}`},color:e=>e.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});exports.XYComponentDefaultConfig=t;
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { ComponentDefaultConfig as i } from "../component/config.js";
|
|
2
|
-
const d = Object.assign(Object.assign({}, i), { x: void 0, y: void 0, id: (e, o) => {
|
|
3
|
-
var n;
|
|
4
|
-
return (n = e.id) !== null && n !== void 0 ? n : `${o}`;
|
|
5
|
-
}, color: (e) => e.color, xScale: void 0, yScale: void 0, excludeFromDomainCalculation: !1 });
|
|
6
|
-
export {
|
|
7
|
-
d as XYComponentDefaultConfig
|
|
8
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../component/index.cjs"),l=require("../../data-models/series.cjs"),s=require("../../utils/data.cjs"),n=require("../../types/scale.cjs"),r=require("./config.cjs");class S extends o.ComponentCore{constructor(){super(...arguments),this.datamodel=new l.SeriesDataModel,this.clippable=!0,this.stacked=!1,this._defaultConfig=r.XYComponentDefaultConfig,this._xScale=n.Scale.scaleLinear(),this._yScale=n.Scale.scaleLinear()}get xScale(){return this.config.xScale||this._xScale}get yScale(){return this.config.yScale||this._yScale}setConfig(t){var e,a;!((e=this.config)===null||e===void 0)&&e.xScale&&(t.xScale=this.config.xScale),!((a=this.config)===null||a===void 0)&&a.yScale&&(t.yScale=this.config.yScale),super.setConfig(t)}setScaleDomain(t,e){var a,i;t===n.ScaleDimension.X&&((a=this._xScale)===null||a===void 0||a.domain(e)),t===n.ScaleDimension.Y&&((i=this._yScale)===null||i===void 0||i.domain(e))}setScaleRange(t,e){var a,i;t===n.ScaleDimension.X&&((a=this._xScale)===null||a===void 0||a.range(e)),t===n.ScaleDimension.Y&&((i=this._yScale)===null||i===void 0||i.range(e))}setScale(t,e){e&&t===n.ScaleDimension.X&&(this._xScale=e),e&&t===n.ScaleDimension.Y&&(this._yScale=e)}getDataExtent(t,e){const{config:a,datamodel:i}=this;switch(t){case n.ScaleDimension.X:return this.getXDataExtent();case n.ScaleDimension.Y:return this.getYDataExtent(e);default:return s.getExtent(i.data,a[t])}}getXDataExtent(){const{config:t,datamodel:e}=this;return s.getExtent(e.data,t.x)}getYDataExtent(t){const{config:e,datamodel:a}=this,i=t?s.filterDataByRange(a.data,this.xScale.domain(),e.x):a.data,c=s.isArray(e.y)?e.y:[e.y];return s.getExtent(i,...c)}}exports.XYComponentCore=S;
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { ComponentCore as n } from "../component/index.js";
|
|
2
|
-
import { SeriesDataModel as r } from "../../data-models/series.js";
|
|
3
|
-
import { getExtent as l, filterDataByRange as f, isArray as d } from "../../utils/data.js";
|
|
4
|
-
import { Scale as s, ScaleDimension as o } from "../../types/scale.js";
|
|
5
|
-
import { XYComponentDefaultConfig as h } from "./config.js";
|
|
6
|
-
class y extends n {
|
|
7
|
-
constructor() {
|
|
8
|
-
super(...arguments), this.datamodel = new r(), this.clippable = !0, this.stacked = !1, this._defaultConfig = h, this._xScale = s.scaleLinear(), this._yScale = s.scaleLinear();
|
|
9
|
-
}
|
|
10
|
-
get xScale() {
|
|
11
|
-
return this.config.xScale || this._xScale;
|
|
12
|
-
}
|
|
13
|
-
get yScale() {
|
|
14
|
-
return this.config.yScale || this._yScale;
|
|
15
|
-
}
|
|
16
|
-
setConfig(e) {
|
|
17
|
-
var t, a;
|
|
18
|
-
!((t = this.config) === null || t === void 0) && t.xScale && (e.xScale = this.config.xScale), !((a = this.config) === null || a === void 0) && a.yScale && (e.yScale = this.config.yScale), super.setConfig(e);
|
|
19
|
-
}
|
|
20
|
-
setScaleDomain(e, t) {
|
|
21
|
-
var a, i;
|
|
22
|
-
e === o.X && ((a = this._xScale) === null || a === void 0 || a.domain(t)), e === o.Y && ((i = this._yScale) === null || i === void 0 || i.domain(t));
|
|
23
|
-
}
|
|
24
|
-
setScaleRange(e, t) {
|
|
25
|
-
var a, i;
|
|
26
|
-
e === o.X && ((a = this._xScale) === null || a === void 0 || a.range(t)), e === o.Y && ((i = this._yScale) === null || i === void 0 || i.range(t));
|
|
27
|
-
}
|
|
28
|
-
setScale(e, t) {
|
|
29
|
-
t && e === o.X && (this._xScale = t), t && e === o.Y && (this._yScale = t);
|
|
30
|
-
}
|
|
31
|
-
getDataExtent(e, t) {
|
|
32
|
-
const { config: a, datamodel: i } = this;
|
|
33
|
-
switch (e) {
|
|
34
|
-
case o.X:
|
|
35
|
-
return this.getXDataExtent();
|
|
36
|
-
case o.Y:
|
|
37
|
-
return this.getYDataExtent(t);
|
|
38
|
-
default:
|
|
39
|
-
return l(i.data, a[e]);
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
getXDataExtent() {
|
|
43
|
-
const { config: e, datamodel: t } = this;
|
|
44
|
-
return l(t.data, e.x);
|
|
45
|
-
}
|
|
46
|
-
getYDataExtent(e) {
|
|
47
|
-
const { config: t, datamodel: a } = this, i = e ? f(a.data, this.xScale.domain(), t.x) : a.data, c = d(t.y) ? t.y : [t.y];
|
|
48
|
-
return l(i, ...c);
|
|
49
|
-
}
|
|
50
|
-
}
|
|
51
|
-
export {
|
|
52
|
-
y as XYComponentCore
|
|
53
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});class a{constructor(t){this.data=t}get data(){return this._data}set data(t){this._data=t}}exports.CoreDataModel=a;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("./core.cjs");class r extends t.CoreDataModel{constructor(e){super(e)}get data(){var e;return(e=this._data)!==null&&e!==void 0?e:[]}set data(e){Array.isArray(e)&&(this._data=e)}}exports.SeriesDataModel=r;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { CoreDataModel as r } from "./core.js";
|
|
2
|
-
class s extends r {
|
|
3
|
-
constructor(a) {
|
|
4
|
-
super(a);
|
|
5
|
-
}
|
|
6
|
-
get data() {
|
|
7
|
-
var a;
|
|
8
|
-
return (a = this._data) !== null && a !== void 0 ? a : [];
|
|
9
|
-
}
|
|
10
|
-
set data(a) {
|
|
11
|
-
Array.isArray(a) && (this._data = a);
|
|
12
|
-
}
|
|
13
|
-
}
|
|
14
|
-
export {
|
|
15
|
-
s as SeriesDataModel
|
|
16
|
-
};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../utils/data.cjs"),t=require("../../../d3-color/src/color.cjs"),s=(globalThis==null?void 0:globalThis.UNOVIS_COLORS)||["#4D8CFD","#FF6B7E","#F4B83E","#A6CC74","#00C19A","#6859BE"],a=(globalThis==null?void 0:globalThis.UNOVIS_COLORS_DARK)||["#4D8CFD","#FF6B7E","#FFC16D","#A6CC74","#00C19A","#7887E0"],c=o=>`--vis-${i.isNumber(o)?`color${o%s.length}`:o}`;function n(o,e=.4){const l=t.hsl(o);return l.l=l.l*(1+e),l.formatHex()}function C(o,e=.4,l=.6){const r=t.hsl(o);return r.s=r.s*(1-l),r.l=r.l*(1-e),r.formatHex()}exports.colors=s;exports.colorsDark=a;exports.getCSSColorVariable=c;exports.getDarkerColor=C;exports.getLighterColor=n;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { isNumber as s } from "../utils/data.js";
|
|
2
|
-
import { hsl as i } from "../../../d3-color/src/color.js";
|
|
3
|
-
const n = (globalThis == null ? void 0 : globalThis.UNOVIS_COLORS) || ["#4D8CFD", "#FF6B7E", "#F4B83E", "#A6CC74", "#00C19A", "#6859BE"], a = (globalThis == null ? void 0 : globalThis.UNOVIS_COLORS_DARK) || ["#4D8CFD", "#FF6B7E", "#FFC16D", "#A6CC74", "#00C19A", "#7887E0"], c = (o) => `--vis-${s(o) ? `color${o % n.length}` : o}`;
|
|
4
|
-
function g(o, t = 0.4) {
|
|
5
|
-
const l = i(o);
|
|
6
|
-
return l.l = l.l * (1 + t), l.formatHex();
|
|
7
|
-
}
|
|
8
|
-
function h(o, t = 0.4, l = 0.6) {
|
|
9
|
-
const r = i(o);
|
|
10
|
-
return r.s = r.s * (1 - l), r.l = r.l * (1 - t), r.formatHex();
|
|
11
|
-
}
|
|
12
|
-
export {
|
|
13
|
-
n as colors,
|
|
14
|
-
a as colorsDark,
|
|
15
|
-
c as getCSSColorVariable,
|
|
16
|
-
h as getDarkerColor,
|
|
17
|
-
g as getLighterColor
|
|
18
|
-
};
|
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../../../@emotion/css/dist/emotion-css.esm.cjs"),s=require("../utils/misc.cjs"),r=require("./colors.cjs"),l=require("./patterns.cjs"),e=(globalThis==null?void 0:globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT)||.5,n=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT)||[" ","-",".",","],T=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT)||"-",v=(globalThis==null?void 0:globalThis.UNOVIS_TEXT_DEFAULT)||{text:"",fontSize:12,fontFamily:"var(--vis-font-family)",lineHeight:1.25,marginTop:0,marginBottom:0};i.injectGlobal`
|
|
2
|
-
:root {
|
|
3
|
-
label: vis-root-styles;
|
|
4
|
-
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
5
|
-
--vis-font-wh-ratio: ${e};
|
|
6
|
-
--vis-color-main: var(${r.getCSSColorVariable(0)});
|
|
7
|
-
--vis-color-main-light: ${r.getLighterColor(r.colors[0])};
|
|
8
|
-
--vis-color-main-dark: ${r.getDarkerColor(r.colors[0])};
|
|
9
|
-
--vis-color-grey: #2a2a2a;
|
|
10
|
-
${r.colors.map((o,a)=>`${r.getCSSColorVariable(a)}: ${o};`)}
|
|
11
|
-
${r.colorsDark.map((o,a)=>`--vis-dark-color${a}: ${o};`)}
|
|
12
|
-
${l.fills.map((o,a)=>`
|
|
13
|
-
--${l.getPatternVariable(o)}: url(#${l.getPatternVariable(o)});
|
|
14
|
-
--vis-pattern-fill${a}: var(--${l.getPatternVariable(o)});
|
|
15
|
-
`)}
|
|
16
|
-
${l.lines.map((o,a)=>{var t;return`
|
|
17
|
-
--${l.getPatternVariable(o)}: url(#${l.getPatternVariable(o)});
|
|
18
|
-
--vis-pattern-marker${a}: var(--${l.getPatternVariable(o)});
|
|
19
|
-
--vis-pattern-dasharray${a}: ${(t=o.dashArray)===null||t===void 0?void 0:t.join(" ")};
|
|
20
|
-
`})}
|
|
21
|
-
|
|
22
|
-
body.theme-dark {
|
|
23
|
-
${r.colors.map((o,a)=>`${r.getCSSColorVariable(a)}: var(--vis-dark-color${a});`)}
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
body.theme-patterns {
|
|
27
|
-
${l.fills.map((o,a)=>`path[style*="fill: var(${r.getCSSColorVariable(a)})"] {
|
|
28
|
-
mask: var(--vis-pattern-fill${a});
|
|
29
|
-
}`)}
|
|
30
|
-
${l.lines.map((o,a)=>`
|
|
31
|
-
path[stroke="var(${r.getCSSColorVariable(a)})"]:not([style*="fill"]),
|
|
32
|
-
path[style*="stroke: var(${r.getCSSColorVariable(a)})"]:not([style*="fill"]) {
|
|
33
|
-
marker: var(--vis-pattern-marker${a});
|
|
34
|
-
stroke-dasharray: var(--vis-pattern-dasharray${a});
|
|
35
|
-
}
|
|
36
|
-
`)}
|
|
37
|
-
}
|
|
38
|
-
`;function _(o=window==null?void 0:window.document.body){return o?+s.getCSSVariableValue("var(--vis-font-wh-ratio)",o):e}exports.UNOVIS_FONT_WH_RATIO_DEFAULT=e;exports.UNOVIS_TEXT_DEFAULT=v;exports.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT=T;exports.UNOVIS_TEXT_SEPARATOR_DEFAULT=n;exports.getFontWidthToHeightRatio=_;
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import { injectGlobal as v } from "../../../@emotion/css/dist/emotion-css.esm.js";
|
|
2
|
-
import { getCSSVariableValue as T } from "../utils/misc.js";
|
|
3
|
-
import { getCSSColorVariable as r, getLighterColor as $, getDarkerColor as m, colors as i, colorsDark as _ } from "./colors.js";
|
|
4
|
-
import { fills as e, lines as s, getPatternVariable as l } from "./patterns.js";
|
|
5
|
-
const n = (globalThis == null ? void 0 : globalThis.UNOVIS_FONT_W2H_RATIO_DEFAULT) || 0.5, f = (globalThis == null ? void 0 : globalThis.UNOVIS_TEXT_SEPARATOR_DEFAULT) || [" ", "-", ".", ","], A = (globalThis == null ? void 0 : globalThis.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT) || "-", E = (globalThis == null ? void 0 : globalThis.UNOVIS_TEXT_DEFAULT) || {
|
|
6
|
-
text: "",
|
|
7
|
-
fontSize: 12,
|
|
8
|
-
fontFamily: "var(--vis-font-family)",
|
|
9
|
-
lineHeight: 1.25,
|
|
10
|
-
marginTop: 0,
|
|
11
|
-
marginBottom: 0
|
|
12
|
-
};
|
|
13
|
-
v`
|
|
14
|
-
:root {
|
|
15
|
-
label: vis-root-styles;
|
|
16
|
-
--vis-font-family: Inter, Arial, "Helvetica Neue", Helvetica, sans-serif;
|
|
17
|
-
--vis-font-wh-ratio: ${n};
|
|
18
|
-
--vis-color-main: var(${r(0)});
|
|
19
|
-
--vis-color-main-light: ${$(i[0])};
|
|
20
|
-
--vis-color-main-dark: ${m(i[0])};
|
|
21
|
-
--vis-color-grey: #2a2a2a;
|
|
22
|
-
${i.map((o, a) => `${r(a)}: ${o};`)}
|
|
23
|
-
${_.map((o, a) => `--vis-dark-color${a}: ${o};`)}
|
|
24
|
-
${e.map((o, a) => `
|
|
25
|
-
--${l(o)}: url(#${l(o)});
|
|
26
|
-
--vis-pattern-fill${a}: var(--${l(o)});
|
|
27
|
-
`)}
|
|
28
|
-
${s.map((o, a) => {
|
|
29
|
-
var t;
|
|
30
|
-
return `
|
|
31
|
-
--${l(o)}: url(#${l(o)});
|
|
32
|
-
--vis-pattern-marker${a}: var(--${l(o)});
|
|
33
|
-
--vis-pattern-dasharray${a}: ${(t = o.dashArray) === null || t === void 0 ? void 0 : t.join(" ")};
|
|
34
|
-
`;
|
|
35
|
-
})}
|
|
36
|
-
|
|
37
|
-
body.theme-dark {
|
|
38
|
-
${i.map((o, a) => `${r(a)}: var(--vis-dark-color${a});`)}
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
body.theme-patterns {
|
|
42
|
-
${e.map((o, a) => `path[style*="fill: var(${r(a)})"] {
|
|
43
|
-
mask: var(--vis-pattern-fill${a});
|
|
44
|
-
}`)}
|
|
45
|
-
${s.map((o, a) => `
|
|
46
|
-
path[stroke="var(${r(a)})"]:not([style*="fill"]),
|
|
47
|
-
path[style*="stroke: var(${r(a)})"]:not([style*="fill"]) {
|
|
48
|
-
marker: var(--vis-pattern-marker${a});
|
|
49
|
-
stroke-dasharray: var(--vis-pattern-dasharray${a});
|
|
50
|
-
}
|
|
51
|
-
`)}
|
|
52
|
-
}
|
|
53
|
-
`;
|
|
54
|
-
function p(o = window == null ? void 0 : window.document.body) {
|
|
55
|
-
return o ? +T("var(--vis-font-wh-ratio)", o) : n;
|
|
56
|
-
}
|
|
57
|
-
export {
|
|
58
|
-
n as UNOVIS_FONT_WH_RATIO_DEFAULT,
|
|
59
|
-
E as UNOVIS_TEXT_DEFAULT,
|
|
60
|
-
A as UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT,
|
|
61
|
-
f as UNOVIS_TEXT_SEPARATOR_DEFAULT,
|
|
62
|
-
p as getFontWidthToHeightRatio
|
|
63
|
-
};
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("./colors.cjs"),t=10,a=[{id:"stripes-diagonal",svg:'<path d="M-1,1 l2,-2 M0,10 l10,-10 M9,11 l2,-2" stroke="#000"/>'},{id:"dots",svg:'<path d="m0-1.5a1 1 0 010 3m10-3a1 1 0 000 3M5 3.5a1 1 0 010 3 1 1 0 010-3M0 8.5 a1 1 0 010 3m10-3a1 1 0 000 3" fill"#000"/>'},{id:"stripes-vertical",svg:'<path d="M 5,-1 L5,11" stroke="#000"/>'},{id:"crosshatch",svg:'<path d="M0 0L10 10ZM10 0L0 10Z" stroke="#000"/>'},{id:"waves",svg:'<path d="M0 4Q2.5 1 5 4 7.5 7 10 4v2Q7.5 9 5 6 2.5 3 0 6Z" fill="#000"/>'},{id:"circles",svg:'<circle cx="5" cy="5" r="3" stroke="#000" fill="#fff"/>'}],s=[{id:"circle",marker:'<circle cx="5" cy="5" r="5"/>',dashArray:[]},{id:"triangle",marker:'<path d="M5,0 L10,9 L0,9Z">',dashArray:[9,1]},{id:"diamond",marker:'<path d="M 0 5 L5 0 L 10 5 L 5 10 L 0 5Z">',dashArray:[2]},{id:"arrow",marker:'<path d="M4 0 0 0 6 5 0 10 4 10 10 5Z">',dashArray:[2,3,8,3]},{id:"square",marker:'<rect x="1" y="1" width="8" height="8"/>',dashArray:[6]},{id:"star",marker:'<path d="m2 9 3-9 3 9L0 3h10Z"/>',dashArray:[1,6]}];function i(e){return`vis-${`pattern-${e.svg?"fill":"marker"}`}-${e.id}`}const n=e=>`<mask id="${i(e)}">
|
|
2
|
-
<pattern id="${e.id}" viewBox="0 0 10 10" width="${t}" height="${t}" patternUnits="userSpaceOnUse">
|
|
3
|
-
<rect width="100%" height="100%" fill="#fff"/>
|
|
4
|
-
${e.svg}
|
|
5
|
-
</pattern>
|
|
6
|
-
<rect x="-50%" y="-50%" width="200%" height="200%" fill="url(#${e.id})"/>
|
|
7
|
-
</mask>`,l=(e,r)=>`<marker id="${i(e)}"
|
|
8
|
-
fill="var(${d.getCSSColorVariable(r)})"
|
|
9
|
-
markerUnits="userSpaceOnUse"
|
|
10
|
-
refX="5"
|
|
11
|
-
refY="5"
|
|
12
|
-
markerWidth="${t}"
|
|
13
|
-
markerHeight="${t}">
|
|
14
|
-
${e.marker}
|
|
15
|
-
</marker>`;function c(){const e=a.map(n).concat(s.map(l)).join(""),r=document.createElementNS("http://www.w3.org/2000/svg","svg");r.setAttribute("height","100%"),r.setAttribute("width","100%"),r.style.position="fixed",r.style.zIndex="-99999999",r.innerHTML=`<defs>${e}</defs>`,document.body.appendChild(r)}typeof window<"u"&&c();exports.PATTERN_SIZE_PX=t;exports.fills=a;exports.getPatternVariable=i;exports.lines=s;
|