vue-chrts 0.1.0-beta.2-internal-20 → 0.1.0-beta.2-internal-21
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/dist/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/browser.cjs +1 -0
- package/dist/_virtual/browser.js +2 -0
- package/dist/_virtual/striptags.cjs +1 -0
- package/dist/_virtual/striptags.js +7 -0
- package/dist/_virtual/striptags2.cjs +1 -0
- package/dist/_virtual/striptags2.js +4 -0
- package/dist/components/Area/AreaChart.cjs +6 -0
- package/dist/components/Area/AreaChart.js +141 -0
- package/dist/components/Area/AreaChart.vue.d.ts +14 -0
- package/dist/components/Area/AreaChart2.cjs +1 -0
- package/dist/components/Area/AreaChart2.js +4 -0
- package/dist/components/Area/index.d.ts +2 -0
- package/dist/components/Area/types.d.ts +82 -0
- package/dist/components/AreaStacked/AreaStackedChart.cjs +1 -0
- package/dist/components/AreaStacked/AreaStackedChart.js +74 -0
- package/dist/components/AreaStacked/AreaStackedChart.vue.d.ts +20 -0
- package/dist/components/AreaStacked/AreaStackedChart2.cjs +1 -0
- package/dist/components/AreaStacked/AreaStackedChart2.js +4 -0
- package/dist/components/AreaStacked/index.d.ts +1 -0
- package/dist/components/Bar/BarChart.cjs +1 -0
- package/dist/components/Bar/BarChart.js +121 -0
- package/dist/components/Bar/BarChart.vue.d.ts +33 -0
- package/dist/components/Bar/BarChart2.cjs +1 -0
- package/dist/components/Bar/BarChart2.js +4 -0
- package/dist/components/Bar/index.d.ts +1 -0
- package/dist/components/Crosshair/Crosshair.vue.d.ts +12 -0
- package/dist/components/Crosshair/index.d.ts +1 -0
- package/dist/components/Donut/DonutChart.cjs +5 -0
- package/dist/components/Donut/DonutChart.js +62 -0
- package/dist/components/Donut/DonutChart.vue.d.ts +18 -0
- package/dist/components/Donut/DonutChart2.cjs +1 -0
- package/dist/components/Donut/DonutChart2.js +4 -0
- package/dist/components/Donut/index.cjs +1 -0
- package/dist/components/Donut/index.d.ts +17 -0
- package/dist/components/Donut/index.js +5 -0
- package/dist/components/Line/LineChart.cjs +1 -0
- package/dist/components/Line/LineChart.js +97 -0
- package/dist/components/Line/LineChart.vue.d.ts +27 -0
- package/dist/components/Line/LineChart2.cjs +1 -0
- package/dist/components/Line/LineChart2.js +4 -0
- package/dist/components/Line/index.d.ts +1 -0
- package/dist/components/Tooltip.cjs +1 -0
- package/dist/components/Tooltip.js +37 -0
- package/dist/components/Tooltip.vue.d.ts +19 -0
- package/dist/components/Tooltip2.cjs +1 -0
- package/dist/components/Tooltip2.js +4 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +12 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs +1 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +279 -0
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.cjs +1 -0
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js +86 -0
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.cjs +1 -0
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.js +8 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.cjs +1 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +22 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +1 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.cjs +1 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +123 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.cjs +1 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +44 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs +1 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +53 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs +1 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +29 -0
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js +15 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.js +20 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.js +31 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js +7 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js +31 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js +9 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js +12 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js +10 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js +26 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js +42 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js +11 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js +9 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js +12 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js +9 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js +9 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.js +37 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.js +6 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.js +4 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.js +14 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js +18 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js +9 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js +4 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.js +70 -0
- package/dist/node_modules/@unovis/ts/components/area/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/area/config.js +6 -0
- package/dist/node_modules/@unovis/ts/components/area/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/area/index.js +52 -0
- package/dist/node_modules/@unovis/ts/components/area/style.cjs +35 -0
- package/dist/node_modules/@unovis/ts/components/area/style.js +41 -0
- package/dist/node_modules/@unovis/ts/components/axis/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/axis/config.js +6 -0
- package/dist/node_modules/@unovis/ts/components/axis/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/axis/index.js +287 -0
- package/dist/node_modules/@unovis/ts/components/axis/style.cjs +101 -0
- package/dist/node_modules/@unovis/ts/components/axis/style.js +114 -0
- package/dist/node_modules/@unovis/ts/components/axis/types.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/axis/types.js +7 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.js +18 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.js +36 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.js +48 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.cjs +63 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.js +73 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.js +10 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/config.js +5 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/index.js +119 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/style.cjs +22 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/style.js +29 -0
- package/dist/node_modules/@unovis/ts/components/donut/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/donut/config.js +8 -0
- package/dist/node_modules/@unovis/ts/components/donut/constants.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/donut/constants.js +11 -0
- package/dist/node_modules/@unovis/ts/components/donut/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/donut/index.js +57 -0
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.js +37 -0
- package/dist/node_modules/@unovis/ts/components/donut/style.cjs +58 -0
- package/dist/node_modules/@unovis/ts/components/donut/style.js +68 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.js +6 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.js +121 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.cjs +35 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.js +43 -0
- package/dist/node_modules/@unovis/ts/components/line/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/line/config.js +6 -0
- package/dist/node_modules/@unovis/ts/components/line/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/line/index.js +86 -0
- package/dist/node_modules/@unovis/ts/components/line/style.cjs +35 -0
- package/dist/node_modules/@unovis/ts/components/line/style.js +45 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.js +6 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.js +111 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.cjs +34 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.js +42 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/config.js +17 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/index.js +166 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/style.cjs +61 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/style.js +71 -0
- package/dist/node_modules/@unovis/ts/containers/single-container/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/containers/single-container/config.js +5 -0
- package/dist/node_modules/@unovis/ts/containers/single-container/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/containers/single-container/index.js +71 -0
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.js +6 -0
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.cjs +3 -0
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.js +185 -0
- package/dist/node_modules/@unovis/ts/core/component/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/component/config.js +8 -0
- package/dist/node_modules/@unovis/ts/core/component/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/component/index.js +68 -0
- package/dist/node_modules/@unovis/ts/core/container/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/container/config.js +24 -0
- package/dist/node_modules/@unovis/ts/core/container/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/container/index.js +73 -0
- package/dist/node_modules/@unovis/ts/core/xy-component/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/xy-component/config.js +8 -0
- package/dist/node_modules/@unovis/ts/core/xy-component/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/xy-component/index.js +53 -0
- package/dist/node_modules/@unovis/ts/data-models/core.cjs +1 -0
- package/dist/node_modules/@unovis/ts/data-models/core.js +14 -0
- package/dist/node_modules/@unovis/ts/data-models/series.cjs +1 -0
- package/dist/node_modules/@unovis/ts/data-models/series.js +16 -0
- package/dist/node_modules/@unovis/ts/styles/colors.cjs +1 -0
- package/dist/node_modules/@unovis/ts/styles/colors.js +18 -0
- package/dist/node_modules/@unovis/ts/styles/index.cjs +38 -0
- package/dist/node_modules/@unovis/ts/styles/index.js +63 -0
- package/dist/node_modules/@unovis/ts/styles/patterns.cjs +15 -0
- package/dist/node_modules/@unovis/ts/styles/patterns.js +45 -0
- package/dist/node_modules/@unovis/ts/types/component.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/component.js +12 -0
- package/dist/node_modules/@unovis/ts/types/curve.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/curve.js +43 -0
- package/dist/node_modules/@unovis/ts/types/direction.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/direction.js +7 -0
- package/dist/node_modules/@unovis/ts/types/position.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/position.js +22 -0
- package/dist/node_modules/@unovis/ts/types/scale.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/scale.js +40 -0
- package/dist/node_modules/@unovis/ts/types/svg.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/svg.js +15 -0
- package/dist/node_modules/@unovis/ts/types/symbol.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/symbol.js +24 -0
- package/dist/node_modules/@unovis/ts/types/text.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/text.js +22 -0
- package/dist/node_modules/@unovis/ts/utils/color.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/color.js +8 -0
- package/dist/node_modules/@unovis/ts/utils/d3.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/d3.js +12 -0
- package/dist/node_modules/@unovis/ts/utils/data.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/data.js +169 -0
- package/dist/node_modules/@unovis/ts/utils/misc.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/misc.js +28 -0
- package/dist/node_modules/@unovis/ts/utils/path.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/path.js +9 -0
- package/dist/node_modules/@unovis/ts/utils/resize-observer.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/resize-observer.js +6 -0
- package/dist/node_modules/@unovis/ts/utils/text.cjs +2 -0
- package/dist/node_modules/@unovis/ts/utils/text.js +178 -0
- package/dist/node_modules/@unovis/vue/components/area/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/area/index.js +48 -0
- package/dist/node_modules/@unovis/vue/components/axis/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/axis/index.js +69 -0
- package/dist/node_modules/@unovis/vue/components/crosshair/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/crosshair/index.js +33 -0
- package/dist/node_modules/@unovis/vue/components/donut/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/donut/index.js +54 -0
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.js +54 -0
- package/dist/node_modules/@unovis/vue/components/line/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/line/index.js +50 -0
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.js +54 -0
- package/dist/node_modules/@unovis/vue/components/tooltip/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/tooltip/index.js +40 -0
- package/dist/node_modules/@unovis/vue/containers/single-container/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/containers/single-container/index.js +66 -0
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.js +102 -0
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.js +43 -0
- package/dist/node_modules/@unovis/vue/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/index.js +10 -0
- package/dist/node_modules/@unovis/vue/utils/context.cjs +1 -0
- package/dist/node_modules/@unovis/vue/utils/context.js +8 -0
- package/dist/node_modules/@unovis/vue/utils/props.cjs +1 -0
- package/dist/node_modules/@unovis/vue/utils/props.js +18 -0
- package/dist/node_modules/d3-array/src/ascending.cjs +1 -0
- package/dist/node_modules/d3-array/src/ascending.js +6 -0
- package/dist/node_modules/d3-array/src/bisect.cjs +1 -0
- package/dist/node_modules/d3-array/src/bisect.js +9 -0
- package/dist/node_modules/d3-array/src/bisector.cjs +1 -0
- package/dist/node_modules/d3-array/src/bisector.js +37 -0
- package/dist/node_modules/d3-array/src/descending.cjs +1 -0
- package/dist/node_modules/d3-array/src/descending.js +6 -0
- package/dist/node_modules/d3-array/src/extent.cjs +1 -0
- package/dist/node_modules/d3-array/src/extent.js +9 -0
- package/dist/node_modules/d3-array/src/max.cjs +1 -0
- package/dist/node_modules/d3-array/src/max.js +15 -0
- package/dist/node_modules/d3-array/src/mean.cjs +1 -0
- package/dist/node_modules/d3-array/src/mean.js +15 -0
- package/dist/node_modules/d3-array/src/merge.cjs +1 -0
- package/dist/node_modules/d3-array/src/merge.js +10 -0
- package/dist/node_modules/d3-array/src/min.cjs +1 -0
- package/dist/node_modules/d3-array/src/min.js +15 -0
- package/dist/node_modules/d3-array/src/number.cjs +1 -0
- package/dist/node_modules/d3-array/src/number.js +6 -0
- package/dist/node_modules/d3-array/src/quantile.cjs +1 -0
- package/dist/node_modules/d3-array/src/quantile.js +12 -0
- package/dist/node_modules/d3-array/src/range.cjs +1 -0
- package/dist/node_modules/d3-array/src/range.js +9 -0
- package/dist/node_modules/d3-array/src/sum.cjs +1 -0
- package/dist/node_modules/d3-array/src/sum.js +15 -0
- package/dist/node_modules/d3-array/src/ticks.cjs +1 -0
- package/dist/node_modules/d3-array/src/ticks.js +32 -0
- package/dist/node_modules/d3-axis/src/axis.cjs +1 -0
- package/dist/node_modules/d3-axis/src/axis.js +72 -0
- package/dist/node_modules/d3-axis/src/identity.cjs +1 -0
- package/dist/node_modules/d3-axis/src/identity.js +6 -0
- package/dist/node_modules/d3-color/src/color.cjs +1 -0
- package/dist/node_modules/d3-color/src/color.js +305 -0
- package/dist/node_modules/d3-color/src/define.cjs +1 -0
- package/dist/node_modules/d3-color/src/define.js +12 -0
- package/dist/node_modules/d3-dispatch/src/dispatch.cjs +1 -0
- package/dist/node_modules/d3-dispatch/src/dispatch.js +64 -0
- package/dist/node_modules/d3-ease/src/cubic.cjs +1 -0
- package/dist/node_modules/d3-ease/src/cubic.js +6 -0
- package/dist/node_modules/d3-ease/src/linear.cjs +1 -0
- package/dist/node_modules/d3-ease/src/linear.js +4 -0
- package/dist/node_modules/d3-format/src/defaultLocale.cjs +1 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
- package/dist/node_modules/d3-format/src/exponent.cjs +1 -0
- package/dist/node_modules/d3-format/src/exponent.js +7 -0
- package/dist/node_modules/d3-format/src/formatDecimal.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +15 -0
- package/dist/node_modules/d3-format/src/formatGroup.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +10 -0
- package/dist/node_modules/d3-format/src/formatNumerals.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +10 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +12 -0
- package/dist/node_modules/d3-format/src/formatRounded.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +10 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +28 -0
- package/dist/node_modules/d3-format/src/formatTrim.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +19 -0
- package/dist/node_modules/d3-format/src/formatTypes.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +21 -0
- package/dist/node_modules/d3-format/src/identity.cjs +1 -0
- package/dist/node_modules/d3-format/src/identity.js +6 -0
- package/dist/node_modules/d3-format/src/locale.cjs +1 -0
- package/dist/node_modules/d3-format/src/locale.js +68 -0
- package/dist/node_modules/d3-format/src/precisionFixed.cjs +1 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +7 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.cjs +1 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +7 -0
- package/dist/node_modules/d3-format/src/precisionRound.cjs +1 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +7 -0
- package/dist/node_modules/d3-interpolate/src/array.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/array.js +13 -0
- package/dist/node_modules/d3-interpolate/src/color.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/color.js +24 -0
- package/dist/node_modules/d3-interpolate/src/constant.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -0
- package/dist/node_modules/d3-interpolate/src/date.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/date.js +9 -0
- package/dist/node_modules/d3-interpolate/src/number.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/number.js +8 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +15 -0
- package/dist/node_modules/d3-interpolate/src/object.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/object.js +14 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.js +12 -0
- package/dist/node_modules/d3-interpolate/src/rgb.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
- package/dist/node_modules/d3-interpolate/src/round.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/round.js +8 -0
- package/dist/node_modules/d3-interpolate/src/string.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/string.js +24 -0
- package/dist/node_modules/d3-interpolate/src/transform/decompose.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +23 -0
- package/dist/node_modules/d3-interpolate/src/transform/index.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/transform/index.js +37 -0
- package/dist/node_modules/d3-interpolate/src/transform/parse.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +13 -0
- package/dist/node_modules/d3-interpolate/src/value.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/value.js +16 -0
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.cjs +2 -0
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.js +301 -0
- package/dist/node_modules/d3-path/src/path.cjs +1 -0
- package/dist/node_modules/d3-path/src/path.js +64 -0
- package/dist/node_modules/d3-scale/src/band.cjs +1 -0
- package/dist/node_modules/d3-scale/src/band.js +51 -0
- package/dist/node_modules/d3-scale/src/constant.cjs +1 -0
- package/dist/node_modules/d3-scale/src/constant.js +8 -0
- package/dist/node_modules/d3-scale/src/continuous.cjs +1 -0
- package/dist/node_modules/d3-scale/src/continuous.js +75 -0
- package/dist/node_modules/d3-scale/src/diverging.cjs +1 -0
- package/dist/node_modules/d3-scale/src/diverging.js +40 -0
- package/dist/node_modules/d3-scale/src/identity.cjs +1 -0
- package/dist/node_modules/d3-scale/src/identity.js +18 -0
- package/dist/node_modules/d3-scale/src/init.cjs +1 -0
- package/dist/node_modules/d3-scale/src/init.js +32 -0
- package/dist/node_modules/d3-scale/src/linear.cjs +1 -0
- package/dist/node_modules/d3-scale/src/linear.js +39 -0
- package/dist/node_modules/d3-scale/src/log.cjs +1 -0
- package/dist/node_modules/d3-scale/src/log.js +86 -0
- package/dist/node_modules/d3-scale/src/nice.cjs +1 -0
- package/dist/node_modules/d3-scale/src/nice.js +8 -0
- package/dist/node_modules/d3-scale/src/number.cjs +1 -0
- package/dist/node_modules/d3-scale/src/number.js +6 -0
- package/dist/node_modules/d3-scale/src/ordinal.cjs +1 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
- package/dist/node_modules/d3-scale/src/pow.cjs +1 -0
- package/dist/node_modules/d3-scale/src/pow.js +37 -0
- package/dist/node_modules/d3-scale/src/quantile.cjs +1 -0
- package/dist/node_modules/d3-scale/src/quantile.js +38 -0
- package/dist/node_modules/d3-scale/src/quantize.cjs +1 -0
- package/dist/node_modules/d3-scale/src/quantize.js +31 -0
- package/dist/node_modules/d3-scale/src/sequential.cjs +1 -0
- package/dist/node_modules/d3-scale/src/sequential.js +42 -0
- package/dist/node_modules/d3-scale/src/symlog.cjs +1 -0
- package/dist/node_modules/d3-scale/src/symlog.js +29 -0
- package/dist/node_modules/d3-scale/src/threshold.cjs +1 -0
- package/dist/node_modules/d3-scale/src/threshold.js +23 -0
- package/dist/node_modules/d3-scale/src/tickFormat.cjs +1 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +32 -0
- package/dist/node_modules/d3-scale/src/time.cjs +1 -0
- package/dist/node_modules/d3-scale/src/time.js +46 -0
- package/dist/node_modules/d3-scale/src/utcTime.cjs +1 -0
- package/dist/node_modules/d3-scale/src/utcTime.js +17 -0
- package/dist/node_modules/d3-selection/src/array.cjs +1 -0
- package/dist/node_modules/d3-selection/src/array.js +6 -0
- package/dist/node_modules/d3-selection/src/constant.cjs +1 -0
- package/dist/node_modules/d3-selection/src/constant.js +8 -0
- package/dist/node_modules/d3-selection/src/creator.cjs +1 -0
- package/dist/node_modules/d3-selection/src/creator.js +20 -0
- package/dist/node_modules/d3-selection/src/matcher.cjs +1 -0
- package/dist/node_modules/d3-selection/src/matcher.js +14 -0
- package/dist/node_modules/d3-selection/src/namespace.cjs +1 -0
- package/dist/node_modules/d3-selection/src/namespace.js +8 -0
- package/dist/node_modules/d3-selection/src/namespaces.cjs +1 -0
- package/dist/node_modules/d3-selection/src/namespaces.js +12 -0
- package/dist/node_modules/d3-selection/src/pointer.cjs +1 -0
- package/dist/node_modules/d3-selection/src/pointer.js +18 -0
- package/dist/node_modules/d3-selection/src/select.cjs +1 -0
- package/dist/node_modules/d3-selection/src/select.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/append.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/append.js +10 -0
- package/dist/node_modules/d3-selection/src/selection/attr.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/attr.js +44 -0
- package/dist/node_modules/d3-selection/src/selection/call.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/call.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/classed.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/classed.js +54 -0
- package/dist/node_modules/d3-selection/src/selection/clone.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/clone.js +14 -0
- package/dist/node_modules/d3-selection/src/selection/data.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/data.js +42 -0
- package/dist/node_modules/d3-selection/src/selection/datum.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/datum.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +21 -0
- package/dist/node_modules/d3-selection/src/selection/each.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/each.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/empty.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/empty.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/enter.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/enter.js +27 -0
- package/dist/node_modules/d3-selection/src/selection/exit.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/exit.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/filter.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/filter.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/html.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/html.js +20 -0
- package/dist/node_modules/d3-selection/src/selection/index.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/index.js +87 -0
- package/dist/node_modules/d3-selection/src/selection/insert.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/insert.js +14 -0
- package/dist/node_modules/d3-selection/src/selection/iterator.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/iterator.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/join.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/join.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/lower.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/lower.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/merge.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/merge.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/node.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/node.js +11 -0
- package/dist/node_modules/d3-selection/src/selection/nodes.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/nodes.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/on.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/on.js +52 -0
- package/dist/node_modules/d3-selection/src/selection/order.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/order.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/property.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/property.js +22 -0
- package/dist/node_modules/d3-selection/src/selection/raise.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/raise.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/remove.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/remove.js +10 -0
- package/dist/node_modules/d3-selection/src/selection/select.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/select.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +18 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +16 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +16 -0
- package/dist/node_modules/d3-selection/src/selection/size.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/size.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/sort.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/sort.js +19 -0
- package/dist/node_modules/d3-selection/src/selection/sparse.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/sparse.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/style.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/style.js +27 -0
- package/dist/node_modules/d3-selection/src/selection/text.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/text.js +20 -0
- package/dist/node_modules/d3-selection/src/selector.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selector.js +10 -0
- package/dist/node_modules/d3-selection/src/selectorAll.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selectorAll.js +11 -0
- package/dist/node_modules/d3-selection/src/sourceEvent.cjs +1 -0
- package/dist/node_modules/d3-selection/src/sourceEvent.js +8 -0
- package/dist/node_modules/d3-selection/src/window.cjs +1 -0
- package/dist/node_modules/d3-selection/src/window.js +6 -0
- package/dist/node_modules/d3-shape/src/arc.cjs +1 -0
- package/dist/node_modules/d3-shape/src/arc.js +85 -0
- package/dist/node_modules/d3-shape/src/area.cjs +1 -0
- package/dist/node_modules/d3-shape/src/area.js +56 -0
- package/dist/node_modules/d3-shape/src/array.cjs +1 -0
- package/dist/node_modules/d3-shape/src/array.js +6 -0
- package/dist/node_modules/d3-shape/src/constant.cjs +1 -0
- package/dist/node_modules/d3-shape/src/constant.js +8 -0
- package/dist/node_modules/d3-shape/src/curve/basis.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js +60 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +51 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +46 -0
- package/dist/node_modules/d3-shape/src/curve/bundle.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/bundle.js +33 -0
- package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +65 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +57 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +50 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRom.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +72 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +61 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +54 -0
- package/dist/node_modules/d3-shape/src/curve/linear.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +23 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js +93 -0
- package/dist/node_modules/d3-shape/src/curve/natural.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +41 -0
- package/dist/node_modules/d3-shape/src/curve/step.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +51 -0
- package/dist/node_modules/d3-shape/src/descending.cjs +1 -0
- package/dist/node_modules/d3-shape/src/descending.js +6 -0
- package/dist/node_modules/d3-shape/src/identity.cjs +1 -0
- package/dist/node_modules/d3-shape/src/identity.js +6 -0
- package/dist/node_modules/d3-shape/src/line.cjs +1 -0
- package/dist/node_modules/d3-shape/src/line.js +29 -0
- package/dist/node_modules/d3-shape/src/math.cjs +1 -0
- package/dist/node_modules/d3-shape/src/math.js +22 -0
- package/dist/node_modules/d3-shape/src/noop.cjs +1 -0
- package/dist/node_modules/d3-shape/src/noop.js +5 -0
- package/dist/node_modules/d3-shape/src/path.cjs +1 -0
- package/dist/node_modules/d3-shape/src/path.js +18 -0
- package/dist/node_modules/d3-shape/src/pie.cjs +1 -0
- package/dist/node_modules/d3-shape/src/pie.js +43 -0
- package/dist/node_modules/d3-shape/src/point.cjs +1 -0
- package/dist/node_modules/d3-shape/src/point.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/circle.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/circle.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/cross.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/cross.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/diamond.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/square.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/square.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/star.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/star.js +15 -0
- package/dist/node_modules/d3-shape/src/symbol/triangle.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/wye.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/wye.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol.js +21 -0
- package/dist/node_modules/d3-time/src/day.cjs +1 -0
- package/dist/node_modules/d3-time/src/day.js +26 -0
- package/dist/node_modules/d3-time/src/duration.cjs +1 -0
- package/dist/node_modules/d3-time/src/duration.js +10 -0
- package/dist/node_modules/d3-time/src/hour.cjs +1 -0
- package/dist/node_modules/d3-time/src/hour.js +18 -0
- package/dist/node_modules/d3-time/src/interval.cjs +1 -0
- package/dist/node_modules/d3-time/src/interval.js +31 -0
- package/dist/node_modules/d3-time/src/millisecond.cjs +1 -0
- package/dist/node_modules/d3-time/src/millisecond.js +14 -0
- package/dist/node_modules/d3-time/src/minute.cjs +1 -0
- package/dist/node_modules/d3-time/src/minute.js +18 -0
- package/dist/node_modules/d3-time/src/month.cjs +1 -0
- package/dist/node_modules/d3-time/src/month.js +17 -0
- package/dist/node_modules/d3-time/src/second.cjs +1 -0
- package/dist/node_modules/d3-time/src/second.js +11 -0
- package/dist/node_modules/d3-time/src/ticks.cjs +1 -0
- package/dist/node_modules/d3-time/src/ticks.js +54 -0
- package/dist/node_modules/d3-time/src/week.cjs +1 -0
- package/dist/node_modules/d3-time/src/week.js +48 -0
- package/dist/node_modules/d3-time/src/year.cjs +1 -0
- package/dist/node_modules/d3-time/src/year.js +27 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +1 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +20 -0
- package/dist/node_modules/d3-time-format/src/locale.cjs +1 -0
- package/dist/node_modules/d3-time-format/src/locale.js +478 -0
- package/dist/node_modules/d3-timer/src/timeout.cjs +1 -0
- package/dist/node_modules/d3-timer/src/timeout.js +10 -0
- package/dist/node_modules/d3-timer/src/timer.cjs +1 -0
- package/dist/node_modules/d3-timer/src/timer.js +62 -0
- package/dist/node_modules/d3-transition/src/interrupt.cjs +1 -0
- package/dist/node_modules/d3-transition/src/interrupt.js +18 -0
- package/dist/node_modules/d3-transition/src/selection/index.cjs +1 -0
- package/dist/node_modules/d3-transition/src/selection/index.js +5 -0
- package/dist/node_modules/d3-transition/src/selection/interrupt.cjs +1 -0
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +9 -0
- package/dist/node_modules/d3-transition/src/selection/transition.cjs +1 -0
- package/dist/node_modules/d3-transition/src/selection/transition.js +28 -0
- package/dist/node_modules/d3-transition/src/transition/attr.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/attr.js +49 -0
- package/dist/node_modules/d3-transition/src/transition/attrTween.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +38 -0
- package/dist/node_modules/d3-transition/src/transition/delay.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/delay.js +18 -0
- package/dist/node_modules/d3-transition/src/transition/duration.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/duration.js +18 -0
- package/dist/node_modules/d3-transition/src/transition/ease.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/ease.js +14 -0
- package/dist/node_modules/d3-transition/src/transition/easeVarying.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +15 -0
- package/dist/node_modules/d3-transition/src/transition/end.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/end.js +16 -0
- package/dist/node_modules/d3-transition/src/transition/filter.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/filter.js +12 -0
- package/dist/node_modules/d3-transition/src/transition/index.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/index.js +65 -0
- package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +11 -0
- package/dist/node_modules/d3-transition/src/transition/merge.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/merge.js +13 -0
- package/dist/node_modules/d3-transition/src/transition/on.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/on.js +21 -0
- package/dist/node_modules/d3-transition/src/transition/remove.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/remove.js +13 -0
- package/dist/node_modules/d3-transition/src/transition/schedule.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/schedule.js +85 -0
- package/dist/node_modules/d3-transition/src/transition/select.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/select.js +14 -0
- package/dist/node_modules/d3-transition/src/transition/selectAll.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +18 -0
- package/dist/node_modules/d3-transition/src/transition/selection.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/selection.js +8 -0
- package/dist/node_modules/d3-transition/src/transition/style.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/style.js +45 -0
- package/dist/node_modules/d3-transition/src/transition/styleTween.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +23 -0
- package/dist/node_modules/d3-transition/src/transition/text.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/text.js +18 -0
- package/dist/node_modules/d3-transition/src/transition/textTween.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/textTween.js +23 -0
- package/dist/node_modules/d3-transition/src/transition/transition.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/transition.js +19 -0
- package/dist/node_modules/d3-transition/src/transition/tween.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/tween.js +56 -0
- package/dist/node_modules/internmap/src/index.cjs +1 -0
- package/dist/node_modules/internmap/src/index.js +35 -0
- package/dist/node_modules/parse-unit/index.cjs +1 -0
- package/dist/node_modules/parse-unit/index.js +11 -0
- package/dist/node_modules/striptags/src/striptags.cjs +2 -0
- package/dist/node_modules/striptags/src/striptags.js +118 -0
- package/dist/node_modules/stylis/src/Enum.cjs +1 -0
- package/dist/node_modules/stylis/src/Enum.js +12 -0
- package/dist/node_modules/stylis/src/Middleware.cjs +1 -0
- package/dist/node_modules/stylis/src/Middleware.js +18 -0
- package/dist/node_modules/stylis/src/Parser.cjs +1 -0
- package/dist/node_modules/stylis/src/Parser.js +131 -0
- package/dist/node_modules/stylis/src/Serializer.cjs +1 -0
- package/dist/node_modules/stylis/src/Serializer.js +27 -0
- package/dist/node_modules/stylis/src/Tokenizer.cjs +1 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +141 -0
- package/dist/node_modules/stylis/src/Utility.cjs +1 -0
- package/dist/node_modules/stylis/src/Utility.js +50 -0
- package/dist/node_modules/throttle-debounce/esm/index.cjs +1 -0
- package/dist/node_modules/throttle-debounce/esm/index.js +28 -0
- package/dist/node_modules/to-px/browser.cjs +1 -0
- package/dist/node_modules/to-px/browser.js +63 -0
- package/dist/types.cjs +1 -0
- package/dist/types.d.ts +5 -0
- package/dist/types.js +4 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +18 -0
- package/package.json +22 -26
- package/dist/vue-chrts.js +0 -8524
- package/dist/vue-chrts.umd.cjs +0 -373
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import e from "../../../d3-scale/src/linear.js";
|
|
2
|
+
import i, { point as t } from "../../../d3-scale/src/band.js";
|
|
3
|
+
import m from "../../../d3-scale/src/ordinal.js";
|
|
4
|
+
import a from "../../../d3-scale/src/threshold.js";
|
|
5
|
+
import l from "../../../d3-scale/src/quantile.js";
|
|
6
|
+
import s from "../../../d3-scale/src/quantize.js";
|
|
7
|
+
import c from "../../../d3-scale/src/diverging.js";
|
|
8
|
+
import n from "../../../d3-scale/src/sequential.js";
|
|
9
|
+
import p from "../../../d3-scale/src/utcTime.js";
|
|
10
|
+
import f from "../../../d3-scale/src/time.js";
|
|
11
|
+
import d from "../../../d3-scale/src/identity.js";
|
|
12
|
+
import g from "../../../d3-scale/src/symlog.js";
|
|
13
|
+
import u from "../../../d3-scale/src/log.js";
|
|
14
|
+
import q, { sqrt as y } from "../../../d3-scale/src/pow.js";
|
|
15
|
+
const O = {
|
|
16
|
+
scaleLinear: e,
|
|
17
|
+
scalePow: q,
|
|
18
|
+
scaleSqrt: y,
|
|
19
|
+
scaleLog: u,
|
|
20
|
+
scaleSymlog: g,
|
|
21
|
+
scaleIdentity: d,
|
|
22
|
+
scaleTime: f,
|
|
23
|
+
scaleUtc: p,
|
|
24
|
+
scaleSequential: n,
|
|
25
|
+
scaleDiverging: c,
|
|
26
|
+
scaleQuantize: s,
|
|
27
|
+
scaleQuantile: l,
|
|
28
|
+
scaleThreshold: a,
|
|
29
|
+
scaleOrdinal: m,
|
|
30
|
+
scaleBand: i,
|
|
31
|
+
scalePoint: t
|
|
32
|
+
};
|
|
33
|
+
var r;
|
|
34
|
+
(function(o) {
|
|
35
|
+
o.X = "x", o.Y = "y";
|
|
36
|
+
})(r || (r = {}));
|
|
37
|
+
export {
|
|
38
|
+
O as Scale,
|
|
39
|
+
r as ScaleDimension
|
|
40
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./text.cjs");function r(t){switch(t){case e.TextAlign.Center:return"middle";case e.TextAlign.Right:return"end";case e.TextAlign.Left:default:return"start"}}exports.getTextAnchorFromTextAlign=r;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TextAlign as e } from "./text.js";
|
|
2
|
+
function n(t) {
|
|
3
|
+
switch (t) {
|
|
4
|
+
case e.Center:
|
|
5
|
+
return "middle";
|
|
6
|
+
case e.Right:
|
|
7
|
+
return "end";
|
|
8
|
+
case e.Left:
|
|
9
|
+
default:
|
|
10
|
+
return "start";
|
|
11
|
+
}
|
|
12
|
+
}
|
|
13
|
+
export {
|
|
14
|
+
n as getTextAnchorFromTextAlign
|
|
15
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../d3-shape/src/symbol/wye.cjs"),o=require("../../../d3-shape/src/symbol/triangle.cjs"),t=require("../../../d3-shape/src/symbol/star.cjs"),a=require("../../../d3-shape/src/symbol/square.cjs"),i=require("../../../d3-shape/src/symbol/diamond.cjs"),l=require("../../../d3-shape/src/symbol/cross.cjs"),s=require("../../../d3-shape/src/symbol/circle.cjs");exports.SymbolType=void 0;(function(e){e.Circle="circle",e.Cross="cross",e.Diamond="diamond",e.Square="square",e.Star="star",e.Triangle="triangle",e.Wye="wye"})(exports.SymbolType||(exports.SymbolType={}));const u={[exports.SymbolType.Circle]:s.default,[exports.SymbolType.Cross]:l.default,[exports.SymbolType.Diamond]:i.default,[exports.SymbolType.Square]:a.default,[exports.SymbolType.Star]:t.default,[exports.SymbolType.Triangle]:o.default,[exports.SymbolType.Wye]:r.default};exports.Symbol=u;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import m from "../../../d3-shape/src/symbol/wye.js";
|
|
2
|
+
import i from "../../../d3-shape/src/symbol/triangle.js";
|
|
3
|
+
import s from "../../../d3-shape/src/symbol/star.js";
|
|
4
|
+
import a from "../../../d3-shape/src/symbol/square.js";
|
|
5
|
+
import t from "../../../d3-shape/src/symbol/diamond.js";
|
|
6
|
+
import e from "../../../d3-shape/src/symbol/cross.js";
|
|
7
|
+
import l from "../../../d3-shape/src/symbol/circle.js";
|
|
8
|
+
var r;
|
|
9
|
+
(function(o) {
|
|
10
|
+
o.Circle = "circle", o.Cross = "cross", o.Diamond = "diamond", o.Square = "square", o.Star = "star", o.Triangle = "triangle", o.Wye = "wye";
|
|
11
|
+
})(r || (r = {}));
|
|
12
|
+
const g = {
|
|
13
|
+
[r.Circle]: l,
|
|
14
|
+
[r.Cross]: e,
|
|
15
|
+
[r.Diamond]: t,
|
|
16
|
+
[r.Square]: a,
|
|
17
|
+
[r.Star]: s,
|
|
18
|
+
[r.Triangle]: i,
|
|
19
|
+
[r.Wye]: m
|
|
20
|
+
};
|
|
21
|
+
export {
|
|
22
|
+
g as Symbol,
|
|
23
|
+
r as SymbolType
|
|
24
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});exports.TrimMode=void 0;(function(t){t.Start="start",t.Middle="middle",t.End="end"})(exports.TrimMode||(exports.TrimMode={}));exports.VerticalAlign=void 0;(function(t){t.Top="top",t.Middle="middle",t.Bottom="bottom"})(exports.VerticalAlign||(exports.VerticalAlign={}));exports.FitMode=void 0;(function(t){t.Wrap="wrap",t.Trim="trim"})(exports.FitMode||(exports.FitMode={}));exports.TextAlign=void 0;(function(t){t.Left="left",t.Center="center",t.Right="right"})(exports.TextAlign||(exports.TextAlign={}));
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
var r;
|
|
2
|
+
(function(t) {
|
|
3
|
+
t.Start = "start", t.Middle = "middle", t.End = "end";
|
|
4
|
+
})(r || (r = {}));
|
|
5
|
+
var n;
|
|
6
|
+
(function(t) {
|
|
7
|
+
t.Top = "top", t.Middle = "middle", t.Bottom = "bottom";
|
|
8
|
+
})(n || (n = {}));
|
|
9
|
+
var o;
|
|
10
|
+
(function(t) {
|
|
11
|
+
t.Wrap = "wrap", t.Trim = "trim";
|
|
12
|
+
})(o || (o = {}));
|
|
13
|
+
var d;
|
|
14
|
+
(function(t) {
|
|
15
|
+
t.Left = "left", t.Center = "center", t.Right = "right";
|
|
16
|
+
})(d || (d = {}));
|
|
17
|
+
export {
|
|
18
|
+
o as FitMode,
|
|
19
|
+
d as TextAlign,
|
|
20
|
+
r as TrimMode,
|
|
21
|
+
n as VerticalAlign
|
|
22
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../styles/colors.cjs"),e=require("./data.cjs");function u(l,t,r,a){return Array.isArray(t)&&isFinite(r)?t[r%t.length]:e.getString(l,t,r)||(e.isNumber(r)?`var(${o.getCSSColorVariable(r)})`:null)}exports.getColor=u;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { getCSSColorVariable as o } from "../styles/colors.js";
|
|
2
|
+
import { getString as u, isNumber as a } from "./data.js";
|
|
3
|
+
function m(l, t, r, i) {
|
|
4
|
+
return Array.isArray(t) && isFinite(r) ? t[r % t.length] : u(l, t, r) || (a(r) ? `var(${o(r)})` : null);
|
|
5
|
+
}
|
|
6
|
+
export {
|
|
7
|
+
m as getColor
|
|
8
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../d3-transition/src/selection/index.cjs");const i=require("../../../d3-transition/src/interrupt.cjs");function o(t,e,n){if(t.nodes().forEach(r=>i.default(r)),e){const r=t.transition().duration(e);return n&&r.ease(n),r}else return t}exports.smartTransition=o;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import "../../../d3-transition/src/selection/index.js";
|
|
2
|
+
import o from "../../../d3-transition/src/interrupt.js";
|
|
3
|
+
function s(t, n, i) {
|
|
4
|
+
if (t.nodes().forEach((r) => o(r)), n) {
|
|
5
|
+
const r = t.transition().duration(n);
|
|
6
|
+
return i && r.ease(i), r;
|
|
7
|
+
} else
|
|
8
|
+
return t;
|
|
9
|
+
}
|
|
10
|
+
export {
|
|
11
|
+
s as smartTransition
|
|
12
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const w=require("../../../throttle-debounce/esm/index.cjs"),B=require("../../../d3-array/src/mean.cjs"),D=require("../../../d3-array/src/min.cjs"),E=require("../../../d3-array/src/max.cjs"),T=require("../../../d3-array/src/bisector.cjs"),V=e=>typeof e=="number",y=e=>typeof e=="function",A=e=>Array.isArray(e),M=e=>e instanceof Object,a=e=>e.constructor.name!=="Function"&&e.constructor.name!=="Object",S=e=>M(e)&&!A(e)&&!y(e)&&!a(e),_=e=>[Object,Array].includes((e||{}).constructor)&&!Object.entries(e||{}).length,d=(e,t,n=[],r=new Set)=>{if(Array.isArray(e)){if(!Array.isArray(t)||e.length!==t.length)return!1;if(r.has(e))return!0;r.add(e);for(let u=0;u<e.length;u++)if(!d(e[u],t[u],n,r))return!1;return!0}if(e instanceof Date&&t instanceof Date)return e.getTime()===t.getTime();if(typeof e=="object"&&e!==null&&t!==null){if(typeof t!="object")return!1;if(e===t)return!0;const u=Object.keys(e).filter(c=>!n.includes(c)),i=Object.keys(t).filter(c=>!n.includes(c));if(u.length!==i.length)return!1;if(r.has(e))return!0;r.add(e);for(const c of u)if(!d(e[c],t[c],n,r))return!1;return!0}return e===t},F=e=>e.flat(),g=(e,t=new Map)=>{if(typeof e!="object"||e===null)return e;if(e instanceof Date)return new Date(e.getTime());if(e instanceof Array){const n=[];t.set(e,n);for(const r of e)n.push(t.has(r)?t.get(r):g(r,t));return n}if(a(e))return e;if(e instanceof Object){const n={};t.set(e,n);const r=e;return Object.keys(e).reduce((u,i)=>(u[i]=t.has(r[i])?t.get(r[i]):g(r[i],t),u),n),n}return e},q=(e,t,n=new Map)=>{if(!e||!t||e===t)return e;const r=a(e)?e:g(e);return n.has(t)?n.get(t):(n.set(t,r),Object.keys(t).forEach(u=>{u==="__proto__"||u==="constructor"||(S(e[u])&&S(t[u])?r[u]=q(e[u],t[u],n):a(t)?r[u]=t:r[u]=g(t[u]))}),r)},P=(e,t,n)=>w.throttle(t,e);function x(e,t,n){return y(t)?t(e,n):t}function R(e,t,n){return x(e,t,n)}function l(e,t,n){return x(e,t,n)}function C(e){return e.filter(t=>t&&!V(t))}function I(e,t,n){return Math.min(Math.max(e,t),n)}function z(e,...t){if(!e)return[void 0,void 0];if(A(t)){let n=0,r=0;return e.forEach((u,i)=>{let c=0,s=0;for(const f of t){const o=l(u,f,i)||0;o>=0?c+=o:s+=o}c>r&&(r=c),s<n&&(n=s)}),[n,r]}}function G(e,t,...n){const r=[];let u=0,i=0;for(const c of n){const s=l(e,c,t)||0;s>=0?r.push(u+=s):r.push(i+=s)}return r}function H(e,t,n,r){const u=e.map((s,f)=>l(s,t,f)||0),i=n.map((s,f)=>{const o=B.default(e,(m,h)=>l(m,s,h)||0);return o===0&&Array.isArray(r)?r[f]:o<0}),c=n.map(()=>[]);return e.forEach((s,f)=>{let o=u[f],m=u[f];n.forEach((h,O)=>{const p=l(s,h,f)||0;p>=0?c[O].push([o,o+=p]):c[O].push([m,m+=p])})}),c.forEach((s,f)=>{s.isMostlyNegative=i[f]}),c}function N(e,...t){return e?D.default(e,(r,u)=>D.default(t,i=>l(r,i,u))):void 0}function v(e,...t){return e?E.default(e,(r,u)=>E.default(t,i=>l(r,i,u))):void 0}function J(e,...t){return[N(e,...t),v(e,...t)]}function L(e,t,n){if(e.length<=1)return e[0];const r=e.map((c,s)=>l(c,n,s));r.sort((c,s)=>c-s);const u=T.default(c=>c).left,i=u(r,t,1,e.length-1);return t-r[i-1]>r[i]-t?e[i]:e[i-1]}function Q(e,t,n){return e.filter((u,i)=>{const c=l(u,n,i);return c>=t[0]&&c<=t[1]})}exports.clamp=I;exports.clean=C;exports.cloneDeep=g;exports.filterDataByRange=Q;exports.flatten=F;exports.getExtent=J;exports.getMax=v;exports.getMin=N;exports.getNearest=L;exports.getNumber=l;exports.getStackedData=H;exports.getStackedExtent=z;exports.getStackedValues=G;exports.getString=R;exports.getValue=x;exports.isAClassInstance=a;exports.isArray=A;exports.isEmpty=_;exports.isEqual=d;exports.isFunction=y;exports.isNumber=V;exports.isObject=M;exports.isPlainObject=S;exports.merge=q;exports.throttle=P;
|
|
@@ -0,0 +1,169 @@
|
|
|
1
|
+
import { throttle as M } from "../../../throttle-debounce/esm/index.js";
|
|
2
|
+
import d from "../../../d3-array/src/mean.js";
|
|
3
|
+
import S from "../../../d3-array/src/min.js";
|
|
4
|
+
import x from "../../../d3-array/src/max.js";
|
|
5
|
+
import w from "../../../d3-array/src/bisector.js";
|
|
6
|
+
const N = (t) => typeof t == "number", D = (t) => typeof t == "function", E = (t) => Array.isArray(t), _ = (t) => t instanceof Object, m = (t) => t.constructor.name !== "Function" && t.constructor.name !== "Object", y = (t) => _(t) && !E(t) && !D(t) && !m(t), P = (t) => [Object, Array].includes((t || {}).constructor) && !Object.entries(t || {}).length, O = (t, e, n = [], r = /* @__PURE__ */ new Set()) => {
|
|
7
|
+
if (Array.isArray(t)) {
|
|
8
|
+
if (!Array.isArray(e) || t.length !== e.length)
|
|
9
|
+
return !1;
|
|
10
|
+
if (r.has(t))
|
|
11
|
+
return !0;
|
|
12
|
+
r.add(t);
|
|
13
|
+
for (let u = 0; u < t.length; u++)
|
|
14
|
+
if (!O(t[u], e[u], n, r))
|
|
15
|
+
return !1;
|
|
16
|
+
return !0;
|
|
17
|
+
}
|
|
18
|
+
if (t instanceof Date && e instanceof Date)
|
|
19
|
+
return t.getTime() === e.getTime();
|
|
20
|
+
if (typeof t == "object" && t !== null && e !== null) {
|
|
21
|
+
if (typeof e != "object")
|
|
22
|
+
return !1;
|
|
23
|
+
if (t === e)
|
|
24
|
+
return !0;
|
|
25
|
+
const u = Object.keys(t).filter((c) => !n.includes(c)), f = Object.keys(e).filter((c) => !n.includes(c));
|
|
26
|
+
if (u.length !== f.length)
|
|
27
|
+
return !1;
|
|
28
|
+
if (r.has(t))
|
|
29
|
+
return !0;
|
|
30
|
+
r.add(t);
|
|
31
|
+
for (const c of u)
|
|
32
|
+
if (!O(t[c], e[c], n, r))
|
|
33
|
+
return !1;
|
|
34
|
+
return !0;
|
|
35
|
+
}
|
|
36
|
+
return t === e;
|
|
37
|
+
}, $ = (t) => t.flat(), g = (t, e = /* @__PURE__ */ new Map()) => {
|
|
38
|
+
if (typeof t != "object" || t === null)
|
|
39
|
+
return t;
|
|
40
|
+
if (t instanceof Date)
|
|
41
|
+
return new Date(t.getTime());
|
|
42
|
+
if (t instanceof Array) {
|
|
43
|
+
const n = [];
|
|
44
|
+
e.set(t, n);
|
|
45
|
+
for (const r of t)
|
|
46
|
+
n.push(e.has(r) ? e.get(r) : g(r, e));
|
|
47
|
+
return n;
|
|
48
|
+
}
|
|
49
|
+
if (m(t))
|
|
50
|
+
return t;
|
|
51
|
+
if (t instanceof Object) {
|
|
52
|
+
const n = {};
|
|
53
|
+
e.set(t, n);
|
|
54
|
+
const r = t;
|
|
55
|
+
return Object.keys(t).reduce((u, f) => (u[f] = e.has(r[f]) ? e.get(r[f]) : g(r[f], e), u), n), n;
|
|
56
|
+
}
|
|
57
|
+
return t;
|
|
58
|
+
}, v = (t, e, n = /* @__PURE__ */ new Map()) => {
|
|
59
|
+
if (!t || !e || t === e)
|
|
60
|
+
return t;
|
|
61
|
+
const r = m(t) ? t : g(t);
|
|
62
|
+
return n.has(e) ? n.get(e) : (n.set(e, r), Object.keys(e).forEach((u) => {
|
|
63
|
+
u === "__proto__" || u === "constructor" || (y(t[u]) && y(e[u]) ? r[u] = v(t[u], e[u], n) : m(e) ? r[u] = e : r[u] = g(e[u]));
|
|
64
|
+
}), r);
|
|
65
|
+
}, z = (t, e, n) => M(e, t);
|
|
66
|
+
function V(t, e, n) {
|
|
67
|
+
return D(e) ? e(t, n) : e;
|
|
68
|
+
}
|
|
69
|
+
function G(t, e, n) {
|
|
70
|
+
return V(t, e, n);
|
|
71
|
+
}
|
|
72
|
+
function l(t, e, n) {
|
|
73
|
+
return V(t, e, n);
|
|
74
|
+
}
|
|
75
|
+
function H(t) {
|
|
76
|
+
return t.filter((e) => e && !N(e));
|
|
77
|
+
}
|
|
78
|
+
function J(t, e, n) {
|
|
79
|
+
return Math.min(Math.max(t, e), n);
|
|
80
|
+
}
|
|
81
|
+
function L(t, ...e) {
|
|
82
|
+
if (!t)
|
|
83
|
+
return [void 0, void 0];
|
|
84
|
+
if (E(e)) {
|
|
85
|
+
let n = 0, r = 0;
|
|
86
|
+
return t.forEach((u, f) => {
|
|
87
|
+
let c = 0, i = 0;
|
|
88
|
+
for (const s of e) {
|
|
89
|
+
const o = l(u, s, f) || 0;
|
|
90
|
+
o >= 0 ? c += o : i += o;
|
|
91
|
+
}
|
|
92
|
+
c > r && (r = c), i < n && (n = i);
|
|
93
|
+
}), [n, r];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
function Q(t, e, ...n) {
|
|
97
|
+
const r = [];
|
|
98
|
+
let u = 0, f = 0;
|
|
99
|
+
for (const c of n) {
|
|
100
|
+
const i = l(t, c, e) || 0;
|
|
101
|
+
i >= 0 ? r.push(u += i) : r.push(f += i);
|
|
102
|
+
}
|
|
103
|
+
return r;
|
|
104
|
+
}
|
|
105
|
+
function U(t, e, n, r) {
|
|
106
|
+
const u = t.map((i, s) => l(i, e, s) || 0), f = n.map((i, s) => {
|
|
107
|
+
const o = d(t, (a, h) => l(a, i, h) || 0);
|
|
108
|
+
return o === 0 && Array.isArray(r) ? r[s] : o < 0;
|
|
109
|
+
}), c = n.map(() => []);
|
|
110
|
+
return t.forEach((i, s) => {
|
|
111
|
+
let o = u[s], a = u[s];
|
|
112
|
+
n.forEach((h, A) => {
|
|
113
|
+
const p = l(i, h, s) || 0;
|
|
114
|
+
p >= 0 ? c[A].push([o, o += p]) : c[A].push([a, a += p]);
|
|
115
|
+
});
|
|
116
|
+
}), c.forEach((i, s) => {
|
|
117
|
+
i.isMostlyNegative = f[s];
|
|
118
|
+
}), c;
|
|
119
|
+
}
|
|
120
|
+
function B(t, ...e) {
|
|
121
|
+
return t ? S(t, (r, u) => S(e, (f) => l(r, f, u))) : void 0;
|
|
122
|
+
}
|
|
123
|
+
function T(t, ...e) {
|
|
124
|
+
return t ? x(t, (r, u) => x(e, (f) => l(r, f, u))) : void 0;
|
|
125
|
+
}
|
|
126
|
+
function W(t, ...e) {
|
|
127
|
+
return [B(t, ...e), T(t, ...e)];
|
|
128
|
+
}
|
|
129
|
+
function X(t, e, n) {
|
|
130
|
+
if (t.length <= 1)
|
|
131
|
+
return t[0];
|
|
132
|
+
const r = t.map((c, i) => l(c, n, i));
|
|
133
|
+
r.sort((c, i) => c - i);
|
|
134
|
+
const u = w((c) => c).left, f = u(r, e, 1, t.length - 1);
|
|
135
|
+
return e - r[f - 1] > r[f] - e ? t[f] : t[f - 1];
|
|
136
|
+
}
|
|
137
|
+
function Y(t, e, n) {
|
|
138
|
+
return t.filter((u, f) => {
|
|
139
|
+
const c = l(u, n, f);
|
|
140
|
+
return c >= e[0] && c <= e[1];
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
export {
|
|
144
|
+
J as clamp,
|
|
145
|
+
H as clean,
|
|
146
|
+
g as cloneDeep,
|
|
147
|
+
Y as filterDataByRange,
|
|
148
|
+
$ as flatten,
|
|
149
|
+
W as getExtent,
|
|
150
|
+
T as getMax,
|
|
151
|
+
B as getMin,
|
|
152
|
+
X as getNearest,
|
|
153
|
+
l as getNumber,
|
|
154
|
+
U as getStackedData,
|
|
155
|
+
L as getStackedExtent,
|
|
156
|
+
Q as getStackedValues,
|
|
157
|
+
G as getString,
|
|
158
|
+
V as getValue,
|
|
159
|
+
m as isAClassInstance,
|
|
160
|
+
E as isArray,
|
|
161
|
+
P as isEmpty,
|
|
162
|
+
O as isEqual,
|
|
163
|
+
D as isFunction,
|
|
164
|
+
N as isNumber,
|
|
165
|
+
_ as isObject,
|
|
166
|
+
y as isPlainObject,
|
|
167
|
+
v as merge,
|
|
168
|
+
z as throttle
|
|
169
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../../../_virtual/browser.cjs");function a(){const t=()=>Math.floor((1+crypto.getRandomValues(new Uint32Array(1))[0])*65536).toString(16).substring(1);return`${t()+t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`}function b(t,u){const i=t.substr(4,t.length-5);return getComputedStyle(u).getPropertyValue(i)}function d(t,u,i=0){const[o,e,g,n]=[t.x+i,t.y+t.height-2*i,t.x+t.width-2*i,t.y+i],[r,s,h,y]=[u.x+i,u.y+u.height-2*i,u.x+u.width-2*i,u.y+i];return!(e<y||s<n||g<r||h<o)}exports.getCSSVariableValue=b;exports.guid=a;exports.rectIntersect=d;
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import "../../../../_virtual/browser.js";
|
|
2
|
+
function f() {
|
|
3
|
+
const t = () => Math.floor((1 + crypto.getRandomValues(new Uint32Array(1))[0]) * 65536).toString(16).substring(1);
|
|
4
|
+
return `${t() + t()}-${t()}-${t()}-${t()}-${t()}${t()}${t()}`;
|
|
5
|
+
}
|
|
6
|
+
function m(t, o) {
|
|
7
|
+
const i = t.substr(4, t.length - 5);
|
|
8
|
+
return getComputedStyle(o).getPropertyValue(i);
|
|
9
|
+
}
|
|
10
|
+
function r(t, o, i = 0) {
|
|
11
|
+
const [n, u, g, h] = [
|
|
12
|
+
t.x + i,
|
|
13
|
+
t.y + t.height - 2 * i,
|
|
14
|
+
t.x + t.width - 2 * i,
|
|
15
|
+
t.y + i
|
|
16
|
+
], [s, y, p, $] = [
|
|
17
|
+
o.x + i,
|
|
18
|
+
o.y + o.height - 2 * i,
|
|
19
|
+
o.x + o.width - 2 * i,
|
|
20
|
+
o.y + i
|
|
21
|
+
];
|
|
22
|
+
return !(u < $ || y < h || g < s || p < n);
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
m as getCSSVariableValue,
|
|
26
|
+
f as guid,
|
|
27
|
+
r as rectIntersect
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function s({x:v,y:f,w:l,h:n,tl:u=!1,tr:d=!1,bl:h=!1,br:o=!1,r:a=0}){let e;e=`M${v+a},${f}h${l-2*a}`;let $=d?a:0,t=d?0:a;return e+=`a${$},${$} 0 0 1 ${$},${$}`,e+=`h${t}v${t}`,e+=`v${n-2*a}`,$=o?a:0,t=o?0:a,e+=`a${$},${$} 0 0 1 ${-$},${$}`,e+=`v${t}h${-t}`,e+=`h${2*a-l}`,$=h?a:0,t=h?0:a,e+=`a${$},${$} 0 0 1 ${-$},${-$}`,e+=`h${-t}v${-t}`,e+=`v${2*a-n}`,$=u?a:0,t=u?0:a,e+=`a${$},${$} 0 0 1 ${$},${-$}`,e+=`v${-t}h${t}`,e+="z",e}exports.roundedRectPath=s;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
function s({ x: d, y: o, w: t, h: l, tl: n = !1, tr: v = !1, bl: f = !1, br: u = !1, r: e = 0 }) {
|
|
2
|
+
let a;
|
|
3
|
+
a = `M${d + e},${o}h${t - 2 * e}`;
|
|
4
|
+
let $ = v ? e : 0, h = v ? 0 : e;
|
|
5
|
+
return a += `a${$},${$} 0 0 1 ${$},${$}`, a += `h${h}v${h}`, a += `v${l - 2 * e}`, $ = u ? e : 0, h = u ? 0 : e, a += `a${$},${$} 0 0 1 ${-$},${$}`, a += `v${h}h${-h}`, a += `h${2 * e - t}`, $ = f ? e : 0, h = f ? 0 : e, a += `a${$},${$} 0 0 1 ${-$},${-$}`, a += `h${-h}v${-h}`, a += `v${2 * e - l}`, $ = n ? e : 0, h = n ? 0 : e, a += `a${$},${$} 0 0 1 ${$},${-$}`, a += `v${-h}h${h}`, a += "z", a;
|
|
6
|
+
}
|
|
7
|
+
export {
|
|
8
|
+
s as roundedRectPath
|
|
9
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../@juggle/resize-observer/lib/ResizeObserver.cjs");require("../../../@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs");const r=globalThis.ResizeObserver||e.ResizeObserver;exports.ResizeObserver=r;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("../../../../_virtual/striptags.cjs"),x=require("../types/text.cjs"),y=require("./data.cjs"),I=require("../types/svg.cjs"),S=require("../styles/index.cjs"),j=require("../../../d3-array/src/sum.cjs");function M(t){var n;return(n=t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g))===null||n===void 0?void 0:n.filter(Boolean).map(e=>e.toLowerCase()).join("-")}function w(t){return t.replace(/['"]/g,"'").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\t/g,"\\t").replace(/\f/g,"\\f")}function R(t,n=15){return t?t.length>n?`…${t.substr(t.length-n,n)}`:t:""}function z(t,n=15){if(!t)return"";const e=Math.floor((n-3)/2);return t.length>n?`${t.substr(0,e)}…${t.substr(-e,e)}`:t}function W(t,n=15){return t?t.length>n?`${t.substr(0,n)}…`:t:""}function F(t,n=15,e=x.TrimMode.Middle){if(!t)return"";let r=W(t,n);return e===x.TrimMode.Start?r=R(t,n):e===x.TrimMode.Middle&&(r=z(t,n)),r}function E(t,n=[" "]){let e=[t];for(let r=0;r<n.length;r++){const a=n[r];e.forEach((o,c)=>{const u=o.split(a),s=u.map((l,d)=>`${l}${d===u.length-1?"":a}`);e[c]=s}),e=y.flatten(e)}return e}function D(t,n,e=[" ","-",".",","]){const r=t.text();if(!r)return;const a=y.isArray(e)?e:[e],o=E(r,a),c=parseFloat(t.attr("x"))||0;t.text("");let u=t.append("tspan").attr("x",c),s=`${o[0]}`;u.text(s),o.forEach((l,d)=>{if(d===0)return;const i=`${s}${l}`;u.text(i),u.node().getComputedTextLength()>n?(u.text(s.trim()),u=t.append("tspan").attr("x",c).attr("dy","1.2em").text(l),s=l):s+=l})}function G(t,n,e,r,a,o){var c;n===void 0&&(n=50),e===void 0&&(e=x.TrimMode.Middle),a===void 0&&(a=+((c=window.getComputedStyle(t.node()))===null||c===void 0?void 0:c.fontSize)||0);const u=t.text(),s=u.length,l=a*s*o,i=Math.ceil(s*n/(1.1*l));return i<s?(t.text(F(u,i,e)),!0):!1}function b(t,n,e=S.getFontWidthToHeightRatio()){return t.length*n*e||0}function _(t,n,e){const r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"svg"),o=document.createElementNS(r,"text");o.textContent=t,o.setAttribute("font-size",`${e}`),o.setAttribute("font-family",n),a.appendChild(o),document.body.appendChild(a);const c=o.getComputedTextLength();return document.body.removeChild(a),c}function X(t,n=void 0,e=!0,r=S.UNOVIS_TEXT_SEPARATOR_DEFAULT,a=!1){const o=`${t.text}`;if(!o)return[];const c=Array.isArray(r)?r:[r];return o.split(`
|
|
2
|
+
`).map(s=>{const l=[];if(!n)return[s];const d=E(s,c);let i="";for(let g=0;g<d.length;g+=1){(e?b(i+d[g],t.fontSize,t.fontWidthToHeightRatio):_(i+d[g],t.fontFamily,t.fontSize))<n||g===0?i+=d[g]:(l.push(i.trim()),i=d[g]);const f=2;if(a)for(;i.trim().length>f&&(e?b(i,t.fontSize,t.fontWidthToHeightRatio):_(i,t.fontFamily,t.fontSize))>n;){let T=i.trim().length-f;for(;T>0;){const A=`${i.substring(0,T)}${S.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT}`;if((e?b(A,t.fontSize,t.fontWidthToHeightRatio):_(A,t.fontFamily,t.fontSize))<=n||T===1){l.push(A.trim()),i=i.substring(T);break}T--}}}return i&&l.push(i.trim()),l}).flat()}function O(t,n=void 0,e=void 0,r=!0,a=S.UNOVIS_TEXT_SEPARATOR_DEFAULT,o=!1){const c=Array.isArray(t)?t.map(i=>y.merge(S.UNOVIS_TEXT_DEFAULT,i)):[y.merge(S.UNOVIS_TEXT_DEFAULT,t)],u=c.map(i=>X(i,n,r,a,o)),s=c[0];let l=-s.fontSize*(s.lineHeight-1);const d=[];return c.forEach((i,g)=>{var h;let f=u[g];const m=g>0?d[g-1]:void 0,T=m?m.marginBottom:0,A=i.marginTop,L=Math.max(T,A);l+=L;const P=i.fontSize*i.lineHeight;let $=0;for(let p=0;p<f.length;p+=1){let v=f[p];l+=P;const C=`${v} …`,H=r?b(C,i.fontSize,i.fontWidthToHeightRatio):_(C,i.fontFamily,i.fontSize);if($=Math.max(H,$),e&&l+P>e&&p!==f.length-1){v.charAt(v.length-1)===S.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT&&(v=v.substr(0,f[p].length-1)),H<n?f[p]=C:f[p]=`${f[p].substr(0,f[p].length-2)}…`,f=f.slice(0,p+1);break}}d.push(Object.assign(Object.assign({},i),{_lines:f,_estimatedHeight:l-((m==null?void 0:m._estimatedHeight)||0),_maxWidth:Math.max($,(h=m==null?void 0:m._maxWidth)!==null&&h!==void 0?h:0)}))}),d}function q(t,n=0,e){return t.map((r,a)=>{const o=a>0?t[a-1]:void 0,c=o?o.marginBottom/o.fontSize:0,u=r.marginTop/r.fontSize,s=Math.max(c,u),l={fontSize:r.fontSize,fontFamily:r.fontFamily,fontWeight:r.fontWeight,fill:r.color,y:a===0&&e};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(l).filter(([i,g])=>g).map(([i,g])=>`${M(i)}="${w(g.toString())}"`).join(" ")}>${r._lines.map((i,g)=>{let h;return a===0&&g===0?h=.8+s:g===0?h=s+r.lineHeight:h=r.lineHeight,`<tspan x="${n}" dy="${h}em">${i.length?i:" "}</tspan>`}).join("")}</tspan>`})}function N(t){return j.default(t,n=>n._estimatedHeight)}const V=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function Z(t,n,e,r){var a,o;const c=O(n,e.width,void 0,e.fastMode,e.separator,e.wordBreak),u=(a=e.x)!==null&&a!==void 0?a:+t.getAttribute("x"),s=(o=e.y)!==null&&o!==void 0?o:+t.getAttribute("y"),l=u??0;let d=s??0;if(e.textAlign&&t.setAttribute("text-anchor",I.getTextAnchorFromTextAlign(e.textAlign)),e.verticalAlign&&e.verticalAlign!==x.VerticalAlign.Top){const i=N(c),g=e.verticalAlign===x.VerticalAlign.Middle?-i/2:e.verticalAlign===x.VerticalAlign.Bottom?-i:0;d+=g}e.textRotationAngle?t.setAttribute("transform",`rotate(${e.textRotationAngle===0||e.textRotationAngle?e.textRotationAngle:0} ${l} ${d})`):t.removeAttribute("transform");{const i=new DOMParser;t.textContent="",c.forEach(g=>{const h=q([g],l,d).join(""),f=U.default(h,V),m=i.parseFromString(f,"image/svg+xml").firstChild;t.appendChild(m)})}}exports.allowedSvgTextTags=V;exports.escapeStringKeepHash=w;exports.estimateStringPixelLength=b;exports.estimateWrappedTextHeight=N;exports.getPreciseStringLengthPx=_;exports.getWrappedText=O;exports.kebabCase=M;exports.renderTextToSvgTextElement=Z;exports.splitString=E;exports.trimSVGText=G;exports.trimString=F;exports.trimStringEnd=W;exports.trimStringMiddle=z;exports.trimStringStart=R;exports.wrapSVGText=D;
|
|
@@ -0,0 +1,178 @@
|
|
|
1
|
+
import W from "../../../../_virtual/striptags.js";
|
|
2
|
+
import { TrimMode as A, VerticalAlign as C } from "../types/text.js";
|
|
3
|
+
import { merge as z, flatten as E, isArray as F } from "./data.js";
|
|
4
|
+
import { getTextAnchorFromTextAlign as N } from "../types/svg.js";
|
|
5
|
+
import { UNOVIS_TEXT_SEPARATOR_DEFAULT as P, UNOVIS_TEXT_DEFAULT as H, getFontWidthToHeightRatio as O, UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT as M } from "../styles/index.js";
|
|
6
|
+
import j from "../../../d3-array/src/sum.js";
|
|
7
|
+
function I(t) {
|
|
8
|
+
var n;
|
|
9
|
+
return (n = t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g)) === null || n === void 0 ? void 0 : n.filter(Boolean).map((e) => e.toLowerCase()).join("-");
|
|
10
|
+
}
|
|
11
|
+
function U(t) {
|
|
12
|
+
return t.replace(/['"]/g, "'").replace(/\u0000/g, "\\0").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\v/g, "\\v").replace(/\t/g, "\\t").replace(/\f/g, "\\f");
|
|
13
|
+
}
|
|
14
|
+
function V(t, n = 15) {
|
|
15
|
+
return t ? t.length > n ? `…${t.substr(t.length - n, n)}` : t : "";
|
|
16
|
+
}
|
|
17
|
+
function D(t, n = 15) {
|
|
18
|
+
if (!t)
|
|
19
|
+
return "";
|
|
20
|
+
const e = Math.floor((n - 3) / 2);
|
|
21
|
+
return t.length > n ? `${t.substr(0, e)}…${t.substr(-e, e)}` : t;
|
|
22
|
+
}
|
|
23
|
+
function G(t, n = 15) {
|
|
24
|
+
return t ? t.length > n ? `${t.substr(0, n)}…` : t : "";
|
|
25
|
+
}
|
|
26
|
+
function X(t, n = 15, e = A.Middle) {
|
|
27
|
+
if (!t)
|
|
28
|
+
return "";
|
|
29
|
+
let r = G(t, n);
|
|
30
|
+
return e === A.Start ? r = V(t, n) : e === A.Middle && (r = D(t, n)), r;
|
|
31
|
+
}
|
|
32
|
+
function R(t, n = [" "]) {
|
|
33
|
+
let e = [t];
|
|
34
|
+
for (let r = 0; r < n.length; r++) {
|
|
35
|
+
const o = n[r];
|
|
36
|
+
e.forEach((a, g) => {
|
|
37
|
+
const c = a.split(o), s = c.map((l, u) => `${l}${u === c.length - 1 ? "" : o}`);
|
|
38
|
+
e[g] = s;
|
|
39
|
+
}), e = E(e);
|
|
40
|
+
}
|
|
41
|
+
return e;
|
|
42
|
+
}
|
|
43
|
+
function rt(t, n, e = [" ", "-", ".", ","]) {
|
|
44
|
+
const r = t.text();
|
|
45
|
+
if (!r)
|
|
46
|
+
return;
|
|
47
|
+
const o = F(e) ? e : [e], a = R(r, o), g = parseFloat(t.attr("x")) || 0;
|
|
48
|
+
t.text("");
|
|
49
|
+
let c = t.append("tspan").attr("x", g), s = `${a[0]}`;
|
|
50
|
+
c.text(s), a.forEach((l, u) => {
|
|
51
|
+
if (u === 0)
|
|
52
|
+
return;
|
|
53
|
+
const i = `${s}${l}`;
|
|
54
|
+
c.text(i), c.node().getComputedTextLength() > n ? (c.text(s.trim()), c = t.append("tspan").attr("x", g).attr("dy", "1.2em").text(l), s = l) : s += l;
|
|
55
|
+
});
|
|
56
|
+
}
|
|
57
|
+
function ot(t, n, e, r, o, a) {
|
|
58
|
+
var g;
|
|
59
|
+
n === void 0 && (n = 50), e === void 0 && (e = A.Middle), o === void 0 && (o = +((g = window.getComputedStyle(t.node())) === null || g === void 0 ? void 0 : g.fontSize) || 0);
|
|
60
|
+
const c = t.text(), s = c.length, l = o * s * a, i = Math.ceil(s * n / (1.1 * l));
|
|
61
|
+
return i < s ? (t.text(X(c, i, e)), !0) : !1;
|
|
62
|
+
}
|
|
63
|
+
function T(t, n, e = O()) {
|
|
64
|
+
return t.length * n * e || 0;
|
|
65
|
+
}
|
|
66
|
+
function b(t, n, e) {
|
|
67
|
+
const r = "http://www.w3.org/2000/svg", o = document.createElementNS(r, "svg"), a = document.createElementNS(r, "text");
|
|
68
|
+
a.textContent = t, a.setAttribute("font-size", `${e}`), a.setAttribute("font-family", n), o.appendChild(a), document.body.appendChild(o);
|
|
69
|
+
const g = a.getComputedTextLength();
|
|
70
|
+
return document.body.removeChild(o), g;
|
|
71
|
+
}
|
|
72
|
+
function Z(t, n = void 0, e = !0, r = P, o = !1) {
|
|
73
|
+
const a = `${t.text}`;
|
|
74
|
+
if (!a)
|
|
75
|
+
return [];
|
|
76
|
+
const g = Array.isArray(r) ? r : [r];
|
|
77
|
+
return a.split(`
|
|
78
|
+
`).map((s) => {
|
|
79
|
+
const l = [];
|
|
80
|
+
if (!n)
|
|
81
|
+
return [s];
|
|
82
|
+
const u = R(s, g);
|
|
83
|
+
let i = "";
|
|
84
|
+
for (let f = 0; f < u.length; f += 1) {
|
|
85
|
+
(e ? T(i + u[f], t.fontSize, t.fontWidthToHeightRatio) : b(i + u[f], t.fontFamily, t.fontSize)) < n || f === 0 ? i += u[f] : (l.push(i.trim()), i = u[f]);
|
|
86
|
+
const d = 2;
|
|
87
|
+
if (o)
|
|
88
|
+
for (; i.trim().length > d && (e ? T(i, t.fontSize, t.fontWidthToHeightRatio) : b(i, t.fontFamily, t.fontSize)) > n; ) {
|
|
89
|
+
let x = i.trim().length - d;
|
|
90
|
+
for (; x > 0; ) {
|
|
91
|
+
const v = `${i.substring(0, x)}${M}`;
|
|
92
|
+
if ((e ? T(v, t.fontSize, t.fontWidthToHeightRatio) : b(v, t.fontFamily, t.fontSize)) <= n || x === 1) {
|
|
93
|
+
l.push(v.trim()), i = i.substring(x);
|
|
94
|
+
break;
|
|
95
|
+
}
|
|
96
|
+
x--;
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
return i && l.push(i.trim()), l;
|
|
101
|
+
}).flat();
|
|
102
|
+
}
|
|
103
|
+
function B(t, n = void 0, e = void 0, r = !0, o = P, a = !1) {
|
|
104
|
+
const g = Array.isArray(t) ? t.map((i) => z(H, i)) : [z(H, t)], c = g.map((i) => Z(i, n, r, o, a)), s = g[0];
|
|
105
|
+
let l = -s.fontSize * (s.lineHeight - 1);
|
|
106
|
+
const u = [];
|
|
107
|
+
return g.forEach((i, f) => {
|
|
108
|
+
var h;
|
|
109
|
+
let d = c[f];
|
|
110
|
+
const m = f > 0 ? u[f - 1] : void 0, x = m ? m.marginBottom : 0, v = i.marginTop, _ = Math.max(x, v);
|
|
111
|
+
l += _;
|
|
112
|
+
const L = i.fontSize * i.lineHeight;
|
|
113
|
+
let y = 0;
|
|
114
|
+
for (let p = 0; p < d.length; p += 1) {
|
|
115
|
+
let S = d[p];
|
|
116
|
+
l += L;
|
|
117
|
+
const $ = `${S} …`, w = r ? T($, i.fontSize, i.fontWidthToHeightRatio) : b($, i.fontFamily, i.fontSize);
|
|
118
|
+
if (y = Math.max(w, y), e && l + L > e && p !== d.length - 1) {
|
|
119
|
+
S.charAt(S.length - 1) === M && (S = S.substr(0, d[p].length - 1)), w < n ? d[p] = $ : d[p] = `${d[p].substr(0, d[p].length - 2)}…`, d = d.slice(0, p + 1);
|
|
120
|
+
break;
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
u.push(Object.assign(Object.assign({}, i), { _lines: d, _estimatedHeight: l - ((m == null ? void 0 : m._estimatedHeight) || 0), _maxWidth: Math.max(y, (h = m == null ? void 0 : m._maxWidth) !== null && h !== void 0 ? h : 0) }));
|
|
124
|
+
}), u;
|
|
125
|
+
}
|
|
126
|
+
function Y(t, n = 0, e) {
|
|
127
|
+
return t.map((r, o) => {
|
|
128
|
+
const a = o > 0 ? t[o - 1] : void 0, g = a ? a.marginBottom / a.fontSize : 0, c = r.marginTop / r.fontSize, s = Math.max(g, c), l = {
|
|
129
|
+
fontSize: r.fontSize,
|
|
130
|
+
fontFamily: r.fontFamily,
|
|
131
|
+
fontWeight: r.fontWeight,
|
|
132
|
+
fill: r.color,
|
|
133
|
+
y: o === 0 && e
|
|
134
|
+
};
|
|
135
|
+
return `<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(l).filter(([i, f]) => f).map(([i, f]) => `${I(i)}="${U(f.toString())}"`).join(" ")}>${r._lines.map((i, f) => {
|
|
136
|
+
let h;
|
|
137
|
+
return o === 0 && f === 0 ? h = 0.8 + s : f === 0 ? h = s + r.lineHeight : h = r.lineHeight, `<tspan x="${n}" dy="${h}em">${i.length ? i : " "}</tspan>`;
|
|
138
|
+
}).join("")}</tspan>`;
|
|
139
|
+
});
|
|
140
|
+
}
|
|
141
|
+
function K(t) {
|
|
142
|
+
return j(t, (n) => n._estimatedHeight);
|
|
143
|
+
}
|
|
144
|
+
const k = ["text", "tspan", "textPath", "altGlyph", "altGlyphDef", "altGlyphItem", "glyphRef", "textRef", "textArea"];
|
|
145
|
+
function at(t, n, e, r) {
|
|
146
|
+
var o, a;
|
|
147
|
+
const g = B(n, e.width, void 0, e.fastMode, e.separator, e.wordBreak), c = (o = e.x) !== null && o !== void 0 ? o : +t.getAttribute("x"), s = (a = e.y) !== null && a !== void 0 ? a : +t.getAttribute("y"), l = c ?? 0;
|
|
148
|
+
let u = s ?? 0;
|
|
149
|
+
if (e.textAlign && t.setAttribute("text-anchor", N(e.textAlign)), e.verticalAlign && e.verticalAlign !== C.Top) {
|
|
150
|
+
const i = K(g), f = e.verticalAlign === C.Middle ? -i / 2 : e.verticalAlign === C.Bottom ? -i : 0;
|
|
151
|
+
u += f;
|
|
152
|
+
}
|
|
153
|
+
e.textRotationAngle ? t.setAttribute("transform", `rotate(${e.textRotationAngle === 0 || e.textRotationAngle ? e.textRotationAngle : 0} ${l} ${u})`) : t.removeAttribute("transform");
|
|
154
|
+
{
|
|
155
|
+
const i = new DOMParser();
|
|
156
|
+
t.textContent = "", g.forEach((f) => {
|
|
157
|
+
const h = Y([f], l, u).join(""), d = W(h, k), m = i.parseFromString(d, "image/svg+xml").firstChild;
|
|
158
|
+
t.appendChild(m);
|
|
159
|
+
});
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
export {
|
|
163
|
+
k as allowedSvgTextTags,
|
|
164
|
+
U as escapeStringKeepHash,
|
|
165
|
+
T as estimateStringPixelLength,
|
|
166
|
+
K as estimateWrappedTextHeight,
|
|
167
|
+
b as getPreciseStringLengthPx,
|
|
168
|
+
B as getWrappedText,
|
|
169
|
+
I as kebabCase,
|
|
170
|
+
at as renderTextToSvgTextElement,
|
|
171
|
+
R as splitString,
|
|
172
|
+
ot as trimSVGText,
|
|
173
|
+
X as trimString,
|
|
174
|
+
G as trimStringEnd,
|
|
175
|
+
D as trimStringMiddle,
|
|
176
|
+
V as trimStringStart,
|
|
177
|
+
rt as wrapSVGText
|
|
178
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),s=require("../../utils/props.cjs"),d=require("../../utils/context.cjs"),v=require("../../../ts/components/area/index.cjs"),y={"data-vis-component":""},m=t.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(i,{expose:p}){const a=t.inject(d.componentAccessorKey),r=i,n=t.computed(()=>a.data.value??r.data),u=s.useForwardProps(r),o=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;o.value=new v.Area(u.value),(e=o.value)==null||e.setData(n.value),a.update(o.value)})}),t.onUnmounted(()=>{var e;(e=o.value)==null||e.destroy(),a.destroy()}),t.watch(u,(e,l)=>{var c;s.arePropsEqual(e,l)||(c=o.value)==null||c.setConfig(u.value)}),t.watch(n,()=>{var e;(e=o.value)==null||e.setData(n.value)}),p({component:o}),(e,l)=>(t.openBlock(),t.createElementBlock("div",y))}});exports.default=m;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { defineComponent as i, inject as m, computed as v, ref as d, createElementBlock as y, onMounted as f, nextTick as x, onUnmounted as F, watch as c, openBlock as b } from "vue";
|
|
2
|
+
import { useForwardProps as j, arePropsEqual as B } from "../../utils/props.js";
|
|
3
|
+
import { componentAccessorKey as P } from "../../utils/context.js";
|
|
4
|
+
import { Area as k } from "../../../ts/components/area/index.js";
|
|
5
|
+
const w = { "data-vis-component": "" }, A = /* @__PURE__ */ i({
|
|
6
|
+
__name: "index",
|
|
7
|
+
props: {
|
|
8
|
+
color: {},
|
|
9
|
+
curveType: {},
|
|
10
|
+
baseline: {},
|
|
11
|
+
opacity: {},
|
|
12
|
+
cursor: {},
|
|
13
|
+
minHeight1Px: { type: Boolean },
|
|
14
|
+
x: {},
|
|
15
|
+
y: {},
|
|
16
|
+
id: { type: Function },
|
|
17
|
+
xScale: { type: [Object, Function] },
|
|
18
|
+
yScale: { type: [Object, Function] },
|
|
19
|
+
excludeFromDomainCalculation: { type: Boolean },
|
|
20
|
+
duration: {},
|
|
21
|
+
events: {},
|
|
22
|
+
attributes: {},
|
|
23
|
+
data: {}
|
|
24
|
+
},
|
|
25
|
+
setup(p, { expose: s }) {
|
|
26
|
+
const t = m(P), r = p, a = v(() => t.data.value ?? r.data), n = j(r), o = d();
|
|
27
|
+
return f(() => {
|
|
28
|
+
x(() => {
|
|
29
|
+
var e;
|
|
30
|
+
o.value = new k(n.value), (e = o.value) == null || e.setData(a.value), t.update(o.value);
|
|
31
|
+
});
|
|
32
|
+
}), F(() => {
|
|
33
|
+
var e;
|
|
34
|
+
(e = o.value) == null || e.destroy(), t.destroy();
|
|
35
|
+
}), c(n, (e, l) => {
|
|
36
|
+
var u;
|
|
37
|
+
B(e, l) || (u = o.value) == null || u.setConfig(n.value);
|
|
38
|
+
}), c(a, () => {
|
|
39
|
+
var e;
|
|
40
|
+
(e = o.value) == null || e.setData(a.value);
|
|
41
|
+
}), s({
|
|
42
|
+
component: o
|
|
43
|
+
}), (e, l) => (b(), y("div", w));
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
export {
|
|
47
|
+
A as default
|
|
48
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),u=require("../../utils/props.cjs"),d=require("../../utils/context.cjs"),x=require("../../../ts/components/axis/index.cjs"),y={"data-vis-axis":""},v=t.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(s,{expose:p}){const a=t.inject(d.axisAccessorKey),n=s,i=t.computed(()=>a.data.value??n.data),l=u.useForwardProps(n),o=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;o.value=new x.Axis(l.value),(e=o.value)==null||e.setData(i.value),a.update(o.value)})}),t.onUnmounted(()=>{var e;(e=o.value)==null||e.destroy(),a.destroy(n.type)}),t.watch(l,(e,c)=>{var r;u.arePropsEqual(e,c)||(r=o.value)==null||r.setConfig(l.value)}),t.watch(i,()=>{var e;(e=o.value)==null||e.setData(i.value)}),p({component:o}),(e,c)=>(t.openBlock(),t.createElementBlock("div",y))}});exports.default=v;
|