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 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../types/position.cjs"),P=require("../../utils/data.cjs"),y=require("./config.cjs"),p=require("./style.cjs"),_=require("../../../../d3-selection/src/select.cjs"),g=require("../../../../d3-selection/src/pointer.cjs");class C{constructor(t={}){this._defaultConfig=y.TooltipDefaultConfig,this.config=this._defaultConfig,this._setUpEventsThrottled=P.throttle(this._setUpEvents,500),this._setContainerPositionThrottled=P.throttle(this._setContainerPosition,500),this._isShown=!1,this.element=document.createElement("div"),this.div=_.default(this.element).attr("class",p.root),this.setConfig(t),this.components=this.config.components,this._mutationObserver=new MutationObserver(()=>{this._isShown&&(!this.config.followCursor&&this._hoveredElement?this.placeByElement(this._hoveredElement):this._position&&this.place({x:this._position[0],y:this._position[1]}))}),this._mutationObserver.observe(this.div.node(),{childList:!0,subtree:!0})}setConfig(t){var i;this.prevConfig=this.config,this.config=P.merge(this._defaultConfig,t),this.prevConfig.horizontalPlacement!==this.config.horizontalPlacement&&this.overrideHorizontalPlacement(void 0),this.config.container&&this.config.container!==((i=this.prevConfig)===null||i===void 0?void 0:i.container)&&this.setContainer(this.config.container),this._setUpAttributes()}setContainer(t){var i;(i=this.element.parentNode)===null||i===void 0||i.removeChild(this.element),this._container=t,this._container.appendChild(this.element),this._setContainerPositionThrottled()}getContainer(){return this._container}hasContainer(){return!!this._container&&this._container.isConnected}setComponents(t){this.components=t}update(){this._container&&this._setUpEventsThrottled()}show(t,i){this.render(t),this.place(i)}hide(){this.div.classed(p.show,!1).on("transitionend",()=>{this.div.classed(p.hidden,!this._isShown)}),this._isShown=!1}display(){this.div.classed(p.hidden,!1).classed(p.show,!0),this._isShown=!0}place(t){if(this._position=[t.x,t.y],!this.hasContainer()){console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");return}const{config:i}=this,n=this.element.offsetWidth,e=this.element.offsetHeight,a=this._overriddenHorizontalPlacement||(i.horizontalPlacement===o.Position.Auto?o.Position.Center:i.horizontalPlacement),l=i.verticalPlacement===o.Position.Auto?t.y-e<0?o.Position.Bottom:o.Position.Top:i.verticalPlacement,c=5,s=a===o.Position.Left?-n-c-i.horizontalShift:a===o.Position.Center?-n/2:c+i.horizontalShift,r=l===o.Position.Bottom?c+i.verticalShift:l===o.Position.Center?-e/2:-5-i.verticalShift-e,[f,h]=this._constraintPosToContainer(t.x+s,t.y+r,n,e);this._applyPosition(f,h,e)}placeByElement(t){const{config:i}=this;this._hoveredElement=t;const n=5,e=this.element.offsetWidth,a=this.element.offsetHeight,l=this.isContainerBody(),c=l?window.innerWidth:this._container.scrollWidth,s=t.getBoundingClientRect(),r=l?[s.x,s.y]:g.default({clientX:s.x,clientY:s.y,pageX:s.x,pageY:s.y},this._container),f=this._overriddenHorizontalPlacement||(i.horizontalPlacement===o.Position.Auto?r[0]-e<0?o.Position.Right:r[0]+e>c?o.Position.Left:o.Position.Center:i.horizontalPlacement);let h=0;switch(f){case o.Position.Left:h=-e-n-i.horizontalShift;break;case o.Position.Right:h=s.width+n+i.horizontalShift;break;case o.Position.Center:default:h=(-e+s.width)/2;break}const d=i.verticalPlacement===o.Position.Auto?f!==o.Position.Center?o.Position.Center:r[1]-a<0?o.Position.Bottom:o.Position.Top:i.verticalPlacement;let m=-a;switch(d){case o.Position.Center:m+=(a+s.height)/2;break;case o.Position.Bottom:m+=a+s.height+n+i.verticalShift;break;case o.Position.Top:default:m+=-5-i.verticalShift;break}const[u,v]=this._constraintPosToContainer(r[0]+h,r[1]+m,e,a);this._applyPosition(u,v,a)}isContainerBody(){return this._container===document.body}overrideHorizontalPlacement(t){this._overriddenHorizontalPlacement=t}render(t){var i;const{config:n,prevConfig:e}=this;t instanceof HTMLElement?this.div.select(":first-child").node()!==t&&this.div.html("").append(()=>t):t&&this.div.html(t),this.div.classed((i=n.className)!==null&&i!==void 0?i:"",!!n.className).classed(p.nonInteractive,!n.allowHover||n.followCursor),e!=null&&e.className&&e.className!==n.className&&this.div.classed(e.className,!1),this.display()}_applyPosition(t,i,n){const e=this.isContainerBody(),a=e?window.innerHeight:this._container.scrollHeight;this.div.classed(p.positionFixed,e).style("top",e?`${i}px`:"unset").style("bottom",e?"unset":`${a-i-n}px`).style("left",`${t}px`)}_constraintPosToContainer(t,i,n,e){const a=this.isContainerBody(),l=a?window.innerHeight:this._container.scrollHeight,c=a?window.innerWidth:this._container.scrollWidth,s=10,r=t>c-n-s,f=t<s,h=r?c-n-s:f?s:t,d=10,m=i>l-e-d,u=i<d,v=m?l-e-d:u?d:i;return[c<n?0:h,l<e?0:v]}_setContainerPosition(){var t;this._container!==document.body&&((t=getComputedStyle(this._container))===null||t===void 0?void 0:t.position)==="static"&&(this._container.style.position="relative")}_setUpEvents(){const{config:t}=this;this.components.forEach(i=>{const n=_.default(i.element);n.on("mousemove.tooltip",e=>{const a=e.composedPath&&e.composedPath()||e.path||[e.target];for(const l of Object.keys(t.triggers)){const c=t.triggers[l];if(!c)continue;const s=n.selectAll(`.${l}`).nodes();for(const r of a){if(r===n.node())break;if(r.classList.contains(l)){const f=s.indexOf(r),h=_.default(r).datum(),d=c(h,f,s),[m,u]=this.isContainerBody()?[e.clientX,e.clientY]:g.default(e,this._container);d===null?this.hide():(this.render(d),t.followCursor?this.place({x:m,y:u}):this.placeByElement(r)),e.stopPropagation();return}}}this._isShown&&this.hide()}).on("mouseleave.tooltip",e=>{e.stopPropagation(),this.hide()})}),t.allowHover&&!t.followCursor?this.div.on("mouseenter.tooltip",this.display.bind(this)).on("mouseleave.tooltip",this.hide.bind(this)):this.div.on("mouseenter.tooltip",null).on("mouseleave.tooltip",null)}_setUpAttributes(){const t=this.config.attributes;t&&Object.keys(t).forEach(i=>{this.div.attr(i,t[i])})}destroy(){var t;this._mutationObserver.disconnect(),(t=this.div)===null||t===void 0||t.remove()}}C.selectors=p;exports.Tooltip=C;
|
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
import { Position as o } from "../../types/position.js";
|
|
2
|
+
import { throttle as _, merge as P } from "../../utils/data.js";
|
|
3
|
+
import { TooltipDefaultConfig as w } from "./config.js";
|
|
4
|
+
import * as b from "./style.js";
|
|
5
|
+
import { root as z, show as g, hidden as C, nonInteractive as B, positionFixed as H } from "./style.js";
|
|
6
|
+
import u from "../../../../d3-selection/src/select.js";
|
|
7
|
+
import y from "../../../../d3-selection/src/pointer.js";
|
|
8
|
+
class T {
|
|
9
|
+
constructor(t = {}) {
|
|
10
|
+
this._defaultConfig = w, this.config = this._defaultConfig, this._setUpEventsThrottled = _(this._setUpEvents, 500), this._setContainerPositionThrottled = _(this._setContainerPosition, 500), this._isShown = !1, this.element = document.createElement("div"), this.div = u(this.element).attr("class", z), this.setConfig(t), this.components = this.config.components, this._mutationObserver = new MutationObserver(() => {
|
|
11
|
+
this._isShown && (!this.config.followCursor && this._hoveredElement ? this.placeByElement(this._hoveredElement) : this._position && this.place({ x: this._position[0], y: this._position[1] }));
|
|
12
|
+
}), this._mutationObserver.observe(this.div.node(), { childList: !0, subtree: !0 });
|
|
13
|
+
}
|
|
14
|
+
setConfig(t) {
|
|
15
|
+
var e;
|
|
16
|
+
this.prevConfig = this.config, this.config = P(this._defaultConfig, t), this.prevConfig.horizontalPlacement !== this.config.horizontalPlacement && this.overrideHorizontalPlacement(void 0), this.config.container && this.config.container !== ((e = this.prevConfig) === null || e === void 0 ? void 0 : e.container) && this.setContainer(this.config.container), this._setUpAttributes();
|
|
17
|
+
}
|
|
18
|
+
setContainer(t) {
|
|
19
|
+
var e;
|
|
20
|
+
(e = this.element.parentNode) === null || e === void 0 || e.removeChild(this.element), this._container = t, this._container.appendChild(this.element), this._setContainerPositionThrottled();
|
|
21
|
+
}
|
|
22
|
+
getContainer() {
|
|
23
|
+
return this._container;
|
|
24
|
+
}
|
|
25
|
+
hasContainer() {
|
|
26
|
+
return !!this._container && this._container.isConnected;
|
|
27
|
+
}
|
|
28
|
+
setComponents(t) {
|
|
29
|
+
this.components = t;
|
|
30
|
+
}
|
|
31
|
+
update() {
|
|
32
|
+
this._container && this._setUpEventsThrottled();
|
|
33
|
+
}
|
|
34
|
+
/** Show the tooltip by providing content and position */
|
|
35
|
+
show(t, e) {
|
|
36
|
+
this.render(t), this.place(e);
|
|
37
|
+
}
|
|
38
|
+
/** Hide the tooltip */
|
|
39
|
+
hide() {
|
|
40
|
+
this.div.classed(g, !1).on("transitionend", () => {
|
|
41
|
+
this.div.classed(C, !this._isShown);
|
|
42
|
+
}), this._isShown = !1;
|
|
43
|
+
}
|
|
44
|
+
/** Simply displays the tooltip with its previous content on position */
|
|
45
|
+
display() {
|
|
46
|
+
this.div.classed(C, !1).classed(g, !0), this._isShown = !0;
|
|
47
|
+
}
|
|
48
|
+
place(t) {
|
|
49
|
+
if (this._position = [t.x, t.y], !this.hasContainer()) {
|
|
50
|
+
console.warn("Unovis | Tooltip: Container was not set or is not initialized yet");
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const { config: e } = this, n = this.element.offsetWidth, i = this.element.offsetHeight, r = this._overriddenHorizontalPlacement || (e.horizontalPlacement === o.Auto ? o.Center : e.horizontalPlacement), l = e.verticalPlacement === o.Auto ? t.y - i < 0 ? o.Bottom : o.Top : e.verticalPlacement, h = 5, s = r === o.Left ? -n - h - e.horizontalShift : r === o.Center ? -n / 2 : h + e.horizontalShift, a = l === o.Bottom ? h + e.verticalShift : l === o.Center ? -i / 2 : -5 - e.verticalShift - i, [f, c] = this._constraintPosToContainer(t.x + s, t.y + a, n, i);
|
|
54
|
+
this._applyPosition(f, c, i);
|
|
55
|
+
}
|
|
56
|
+
placeByElement(t) {
|
|
57
|
+
const { config: e } = this;
|
|
58
|
+
this._hoveredElement = t;
|
|
59
|
+
const n = 5, i = this.element.offsetWidth, r = this.element.offsetHeight, l = this.isContainerBody(), h = l ? window.innerWidth : this._container.scrollWidth, s = t.getBoundingClientRect(), a = l ? [s.x, s.y] : y({
|
|
60
|
+
clientX: s.x,
|
|
61
|
+
clientY: s.y,
|
|
62
|
+
pageX: s.x,
|
|
63
|
+
pageY: s.y
|
|
64
|
+
}, this._container), f = this._overriddenHorizontalPlacement || (e.horizontalPlacement === o.Auto ? a[0] - i < 0 ? o.Right : a[0] + i > h ? o.Left : o.Center : e.horizontalPlacement);
|
|
65
|
+
let c = 0;
|
|
66
|
+
switch (f) {
|
|
67
|
+
case o.Left:
|
|
68
|
+
c = -i - n - e.horizontalShift;
|
|
69
|
+
break;
|
|
70
|
+
case o.Right:
|
|
71
|
+
c = s.width + n + e.horizontalShift;
|
|
72
|
+
break;
|
|
73
|
+
case o.Center:
|
|
74
|
+
default:
|
|
75
|
+
c = (-i + s.width) / 2;
|
|
76
|
+
break;
|
|
77
|
+
}
|
|
78
|
+
const d = e.verticalPlacement === o.Auto ? f !== o.Center ? o.Center : a[1] - r < 0 ? o.Bottom : o.Top : e.verticalPlacement;
|
|
79
|
+
let m = -r;
|
|
80
|
+
switch (d) {
|
|
81
|
+
case o.Center:
|
|
82
|
+
m += (r + s.height) / 2;
|
|
83
|
+
break;
|
|
84
|
+
case o.Bottom:
|
|
85
|
+
m += r + s.height + n + e.verticalShift;
|
|
86
|
+
break;
|
|
87
|
+
case o.Top:
|
|
88
|
+
default:
|
|
89
|
+
m += -5 - e.verticalShift;
|
|
90
|
+
break;
|
|
91
|
+
}
|
|
92
|
+
const [p, v] = this._constraintPosToContainer(a[0] + c, a[1] + m, i, r);
|
|
93
|
+
this._applyPosition(p, v, r);
|
|
94
|
+
}
|
|
95
|
+
isContainerBody() {
|
|
96
|
+
return this._container === document.body;
|
|
97
|
+
}
|
|
98
|
+
/** Allows to override the horizontal placement of the tooltip which is useful when you want to define custom positioning behavior.
|
|
99
|
+
* This method has been added for Crosshair to allow it position tooltip left or right of the crosshair line
|
|
100
|
+
* (see the `_showTooltip` method of the Crosshair component).
|
|
101
|
+
*/
|
|
102
|
+
overrideHorizontalPlacement(t) {
|
|
103
|
+
this._overriddenHorizontalPlacement = t;
|
|
104
|
+
}
|
|
105
|
+
render(t) {
|
|
106
|
+
var e;
|
|
107
|
+
const { config: n, prevConfig: i } = this;
|
|
108
|
+
t instanceof HTMLElement ? this.div.select(":first-child").node() !== t && this.div.html("").append(() => t) : t && this.div.html(t), this.div.classed((e = n.className) !== null && e !== void 0 ? e : "", !!n.className).classed(B, !n.allowHover || n.followCursor), i != null && i.className && i.className !== n.className && this.div.classed(i.className, !1), this.display();
|
|
109
|
+
}
|
|
110
|
+
_applyPosition(t, e, n) {
|
|
111
|
+
const i = this.isContainerBody(), r = i ? window.innerHeight : this._container.scrollHeight;
|
|
112
|
+
this.div.classed(H, i).style("top", i ? `${e}px` : "unset").style("bottom", i ? "unset" : `${r - e - n}px`).style("left", `${t}px`);
|
|
113
|
+
}
|
|
114
|
+
_constraintPosToContainer(t, e, n, i) {
|
|
115
|
+
const r = this.isContainerBody(), l = r ? window.innerHeight : this._container.scrollHeight, h = r ? window.innerWidth : this._container.scrollWidth, s = 10, a = t > h - n - s, f = t < s, c = a ? h - n - s : f ? s : t, d = 10, m = e > l - i - d, p = e < d, v = m ? l - i - d : p ? d : e;
|
|
116
|
+
return [
|
|
117
|
+
h < n ? 0 : c,
|
|
118
|
+
l < i ? 0 : v
|
|
119
|
+
];
|
|
120
|
+
}
|
|
121
|
+
_setContainerPosition() {
|
|
122
|
+
var t;
|
|
123
|
+
this._container !== document.body && ((t = getComputedStyle(this._container)) === null || t === void 0 ? void 0 : t.position) === "static" && (this._container.style.position = "relative");
|
|
124
|
+
}
|
|
125
|
+
_setUpEvents() {
|
|
126
|
+
const { config: t } = this;
|
|
127
|
+
this.components.forEach((e) => {
|
|
128
|
+
const n = u(e.element);
|
|
129
|
+
n.on("mousemove.tooltip", (i) => {
|
|
130
|
+
const r = i.composedPath && i.composedPath() || i.path || [i.target];
|
|
131
|
+
for (const l of Object.keys(t.triggers)) {
|
|
132
|
+
const h = t.triggers[l];
|
|
133
|
+
if (!h)
|
|
134
|
+
continue;
|
|
135
|
+
const s = n.selectAll(`.${l}`).nodes();
|
|
136
|
+
for (const a of r) {
|
|
137
|
+
if (a === n.node())
|
|
138
|
+
break;
|
|
139
|
+
if (a.classList.contains(l)) {
|
|
140
|
+
const f = s.indexOf(a), c = u(a).datum(), d = h(c, f, s), [m, p] = this.isContainerBody() ? [i.clientX, i.clientY] : y(i, this._container);
|
|
141
|
+
d === null ? this.hide() : (this.render(d), t.followCursor ? this.place({ x: m, y: p }) : this.placeByElement(a)), i.stopPropagation();
|
|
142
|
+
return;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
this._isShown && this.hide();
|
|
147
|
+
}).on("mouseleave.tooltip", (i) => {
|
|
148
|
+
i.stopPropagation(), this.hide();
|
|
149
|
+
});
|
|
150
|
+
}), t.allowHover && !t.followCursor ? this.div.on("mouseenter.tooltip", this.display.bind(this)).on("mouseleave.tooltip", this.hide.bind(this)) : this.div.on("mouseenter.tooltip", null).on("mouseleave.tooltip", null);
|
|
151
|
+
}
|
|
152
|
+
_setUpAttributes() {
|
|
153
|
+
const t = this.config.attributes;
|
|
154
|
+
t && Object.keys(t).forEach((e) => {
|
|
155
|
+
this.div.attr(e, t[e]);
|
|
156
|
+
});
|
|
157
|
+
}
|
|
158
|
+
destroy() {
|
|
159
|
+
var t;
|
|
160
|
+
this._mutationObserver.disconnect(), (t = this.div) === null || t === void 0 || t.remove();
|
|
161
|
+
}
|
|
162
|
+
}
|
|
163
|
+
T.selectors = b;
|
|
164
|
+
export {
|
|
165
|
+
T as Tooltip
|
|
166
|
+
};
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../../../@emotion/css/dist/emotion-css.esm.cjs"),t=o.css`
|
|
2
|
+
label: tooltip;
|
|
3
|
+
display: inline-block;
|
|
4
|
+
left: 0;
|
|
5
|
+
bottom: 0;
|
|
6
|
+
min-width: max-content;
|
|
7
|
+
position: absolute;
|
|
8
|
+
opacity: 0;
|
|
9
|
+
transition: opacity;
|
|
10
|
+
transition-duration: var(--vis-tooltip-transition-duration);
|
|
11
|
+
z-index: 999999;
|
|
12
|
+
padding: var(--vis-tooltip-padding);
|
|
13
|
+
color: var(--vis-tooltip-text-color);
|
|
14
|
+
border-radius: var(--vis-tooltip-border-radius);
|
|
15
|
+
box-shadow: var(--vis-tooltip-box-shadow);
|
|
16
|
+
border: solid 1px var(--vis-tooltip-border-color);
|
|
17
|
+
background-color: var(--vis-tooltip-background-color);
|
|
18
|
+
backdrop-filter: var(--vis-tooltip-backdrop-filter);
|
|
19
|
+
`,i=t,r=o.injectGlobal`
|
|
20
|
+
:root {
|
|
21
|
+
--vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
|
|
22
|
+
--vis-tooltip-border-color: #e5e9f7;
|
|
23
|
+
--vis-tooltip-text-color: #000;
|
|
24
|
+
--vis-tooltip-shadow-color: rgba(172, 179, 184, 0.35);
|
|
25
|
+
--vis-tooltip-backdrop-filter: none;
|
|
26
|
+
--vis-tooltip-padding: 10px 15px;
|
|
27
|
+
--vis-tooltip-border-radius: 5px;
|
|
28
|
+
--vis-tooltip-transition-duration: 300ms;
|
|
29
|
+
--vis-tooltip-box-shadow: none;
|
|
30
|
+
|
|
31
|
+
--vis-dark-tooltip-background-color: rgba(30,30,30, 0.95);
|
|
32
|
+
--vis-dark-tooltip-text-color: #e5e9f7;
|
|
33
|
+
--vis-dark-tooltip-border-color: var(--vis-color-grey);
|
|
34
|
+
--vis-dark-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
body.theme-dark ${`.${t}`} {
|
|
38
|
+
--vis-tooltip-background-color: var(--vis-dark-tooltip-background-color);
|
|
39
|
+
--vis-tooltip-text-color: var(--vis-dark-tooltip-text-color);
|
|
40
|
+
--vis-tooltip-border-color: var(--vis-dark-tooltip-border-color);
|
|
41
|
+
--vis-tooltip-shadow-color: var(--vis-dark-tooltip-shadow-color);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
body.theme-dark {
|
|
45
|
+
--vis-tooltip-background-color: rgba(30,30,30, 0.95);
|
|
46
|
+
--vis-tooltip-text-color: #e5e9f7;
|
|
47
|
+
--vis-tooltip-border-color: var(--vis-color-grey);
|
|
48
|
+
--vis-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
49
|
+
}
|
|
50
|
+
`,s=o.css`
|
|
51
|
+
bottom: unset;
|
|
52
|
+
position: fixed;
|
|
53
|
+
`,l=o.css`
|
|
54
|
+
opacity: 1;
|
|
55
|
+
`,a=o.css`
|
|
56
|
+
display: none;
|
|
57
|
+
`,e=o.css`
|
|
58
|
+
label: non-interactive;
|
|
59
|
+
pointer-events: none;
|
|
60
|
+
user-select: none;
|
|
61
|
+
`;exports.hidden=a;exports.nonInteractive=e;exports.positionFixed=s;exports.root=t;exports.show=l;exports.tooltip=i;exports.variables=r;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import { css as o, injectGlobal as i } from "../../../../@emotion/css/dist/emotion-css.esm.js";
|
|
2
|
+
const t = o`
|
|
3
|
+
label: tooltip;
|
|
4
|
+
display: inline-block;
|
|
5
|
+
left: 0;
|
|
6
|
+
bottom: 0;
|
|
7
|
+
min-width: max-content;
|
|
8
|
+
position: absolute;
|
|
9
|
+
opacity: 0;
|
|
10
|
+
transition: opacity;
|
|
11
|
+
transition-duration: var(--vis-tooltip-transition-duration);
|
|
12
|
+
z-index: 999999;
|
|
13
|
+
padding: var(--vis-tooltip-padding);
|
|
14
|
+
color: var(--vis-tooltip-text-color);
|
|
15
|
+
border-radius: var(--vis-tooltip-border-radius);
|
|
16
|
+
box-shadow: var(--vis-tooltip-box-shadow);
|
|
17
|
+
border: solid 1px var(--vis-tooltip-border-color);
|
|
18
|
+
background-color: var(--vis-tooltip-background-color);
|
|
19
|
+
backdrop-filter: var(--vis-tooltip-backdrop-filter);
|
|
20
|
+
`, l = t, a = i`
|
|
21
|
+
:root {
|
|
22
|
+
--vis-tooltip-background-color: rgba(255, 255, 255, 0.95);
|
|
23
|
+
--vis-tooltip-border-color: #e5e9f7;
|
|
24
|
+
--vis-tooltip-text-color: #000;
|
|
25
|
+
--vis-tooltip-shadow-color: rgba(172, 179, 184, 0.35);
|
|
26
|
+
--vis-tooltip-backdrop-filter: none;
|
|
27
|
+
--vis-tooltip-padding: 10px 15px;
|
|
28
|
+
--vis-tooltip-border-radius: 5px;
|
|
29
|
+
--vis-tooltip-transition-duration: 300ms;
|
|
30
|
+
--vis-tooltip-box-shadow: none;
|
|
31
|
+
|
|
32
|
+
--vis-dark-tooltip-background-color: rgba(30,30,30, 0.95);
|
|
33
|
+
--vis-dark-tooltip-text-color: #e5e9f7;
|
|
34
|
+
--vis-dark-tooltip-border-color: var(--vis-color-grey);
|
|
35
|
+
--vis-dark-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
body.theme-dark ${`.${t}`} {
|
|
39
|
+
--vis-tooltip-background-color: var(--vis-dark-tooltip-background-color);
|
|
40
|
+
--vis-tooltip-text-color: var(--vis-dark-tooltip-text-color);
|
|
41
|
+
--vis-tooltip-border-color: var(--vis-dark-tooltip-border-color);
|
|
42
|
+
--vis-tooltip-shadow-color: var(--vis-dark-tooltip-shadow-color);
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
body.theme-dark {
|
|
46
|
+
--vis-tooltip-background-color: rgba(30,30,30, 0.95);
|
|
47
|
+
--vis-tooltip-text-color: #e5e9f7;
|
|
48
|
+
--vis-tooltip-border-color: var(--vis-color-grey);
|
|
49
|
+
--vis-tooltip-shadow-color: rgba(0,0,0, 0.95);
|
|
50
|
+
}
|
|
51
|
+
`, s = o`
|
|
52
|
+
bottom: unset;
|
|
53
|
+
position: fixed;
|
|
54
|
+
`, d = o`
|
|
55
|
+
opacity: 1;
|
|
56
|
+
`, e = o`
|
|
57
|
+
display: none;
|
|
58
|
+
`, n = o`
|
|
59
|
+
label: non-interactive;
|
|
60
|
+
pointer-events: none;
|
|
61
|
+
user-select: none;
|
|
62
|
+
`;
|
|
63
|
+
export {
|
|
64
|
+
e as hidden,
|
|
65
|
+
n as nonInteractive,
|
|
66
|
+
s as positionFixed,
|
|
67
|
+
t as root,
|
|
68
|
+
d as show,
|
|
69
|
+
l as tooltip,
|
|
70
|
+
a as variables
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../core/container/config.cjs"),e=Object.assign(Object.assign({},n.ContainerDefaultConfig),{tooltip:void 0,annotations:void 0});exports.SingleContainerDefaultConfig=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});require("../../styles/index.cjs");const m=require("../../core/container/index.cjs"),u=require("../../utils/d3.cjs"),o=require("../../types/component.cjs"),f=require("./config.cjs");class v extends m.ContainerCore{constructor(t,e,i){var n;super(t),this._defaultConfig=f.SingleContainerDefaultConfig,this.config=this._defaultConfig,e&&(this.updateContainer(e,!0),this.component=e.component),i&&this.setData(i,!0),!((n=this.component)===null||n===void 0)&&n.datamodel.data&&this.render()}setData(t,e){var i;const{config:n}=this;this.component&&this.component.setData(t),e||this.render(),(i=n.tooltip)===null||i===void 0||i.hide()}updateContainer(t,e){super.updateContainer(t),this._removeAllChildren(),this.component=t.component,t.sizing&&(this.component.sizing=t.sizing),this.element.appendChild(this.component.element);const i=t.tooltip;i&&(i.hasContainer()||i.setContainer(this._container),i.setComponents([this.component]));const n=t.annotations;n&&this.element.appendChild(n.element),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),e||this.render()}updateComponent(t,e){this.component.setConfig(t),e||this.render()}update(t,e,i){t&&this.updateContainer(t,!0),e&&this.updateComponent(e,!0),i&&this.setData(i,!0),this.render()}getFitWidthScale(){const{config:t,component:e}=this,i=e;if(!i.getWidth)return 1;const n=i.getWidth()+t.margin.left+t.margin.right;return this.width/n}_preRender(){var t;super._preRender(),this.component.setSize(this.width,this.height,this.containerWidth,this.containerHeight),(t=this.config.annotations)===null||t===void 0||t.setSize(this.width,this.height,this.containerWidth,this.containerHeight)}_render(t){var e;const{config:i,component:n}=this;super._render(t),n.g.attr("transform",`translate(${i.margin.left},${i.margin.top})`),n.render(t),(e=i.annotations)===null||e===void 0||e.render(t),i.tooltip&&i.tooltip.update()}render(t=this.config.duration){const{config:e,component:i}=this;if(e.sizing===o.Sizing.Extend||e.sizing===o.Sizing.FitWidth){const n=e.sizing===o.Sizing.FitWidth,s=i,r=s.getWidth()+e.margin.left+e.margin.right,h=s.getHeight()+e.margin.top+e.margin.bottom,a=n?this.getFitWidthScale():1,c=this.svg.attr("width"),p=this.svg.attr("height"),l=r*a,d=h*a,g=c||p;u.smartTransition(this.svg,g?t:0).attr("width",l).attr("height",d).attr("viewBox",`0 0 ${r} ${n?d:h}`).attr("preserveAspectRatio","xMinYMin")}else this.svg.attr("width",this.config.width||this.containerWidth).attr("height",this.config.height||this.containerHeight);this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(t)})}_onResize(){var t;const{config:e}=this;super._onResize(),(t=e.tooltip)===null||t===void 0||t.hide()}destroy(){var t,e;const{component:i,config:n}=this;super.destroy(),i==null||i.destroy(),(t=n.tooltip)===null||t===void 0||t.destroy(),(e=n.annotations)===null||e===void 0||e.destroy()}}exports.SingleContainer=v;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
import "../../styles/index.js";
|
|
2
|
+
import { ContainerCore as g } from "../../core/container/index.js";
|
|
3
|
+
import { smartTransition as f } from "../../utils/d3.js";
|
|
4
|
+
import { Sizing as o } from "../../types/component.js";
|
|
5
|
+
import { SingleContainerDefaultConfig as u } from "./config.js";
|
|
6
|
+
class w extends g {
|
|
7
|
+
constructor(t, i, e) {
|
|
8
|
+
var n;
|
|
9
|
+
super(t), this._defaultConfig = u, this.config = this._defaultConfig, i && (this.updateContainer(i, !0), this.component = i.component), e && this.setData(e, !0), !((n = this.component) === null || n === void 0) && n.datamodel.data && this.render();
|
|
10
|
+
}
|
|
11
|
+
setData(t, i) {
|
|
12
|
+
var e;
|
|
13
|
+
const { config: n } = this;
|
|
14
|
+
this.component && this.component.setData(t), i || this.render(), (e = n.tooltip) === null || e === void 0 || e.hide();
|
|
15
|
+
}
|
|
16
|
+
updateContainer(t, i) {
|
|
17
|
+
super.updateContainer(t), this._removeAllChildren(), this.component = t.component, t.sizing && (this.component.sizing = t.sizing), this.element.appendChild(this.component.element);
|
|
18
|
+
const e = t.tooltip;
|
|
19
|
+
e && (e.hasContainer() || e.setContainer(this._container), e.setComponents([this.component]));
|
|
20
|
+
const n = t.annotations;
|
|
21
|
+
n && this.element.appendChild(n.element), this.element.appendChild(this._svgDefs.node()), this.element.appendChild(this._svgDefsExternal.node()), i || this.render();
|
|
22
|
+
}
|
|
23
|
+
updateComponent(t, i) {
|
|
24
|
+
this.component.setConfig(t), i || this.render();
|
|
25
|
+
}
|
|
26
|
+
update(t, i, e) {
|
|
27
|
+
t && this.updateContainer(t, !0), i && this.updateComponent(i, !0), e && this.setData(e, !0), this.render();
|
|
28
|
+
}
|
|
29
|
+
getFitWidthScale() {
|
|
30
|
+
const { config: t, component: i } = this, e = i;
|
|
31
|
+
if (!e.getWidth)
|
|
32
|
+
return 1;
|
|
33
|
+
const n = e.getWidth() + t.margin.left + t.margin.right;
|
|
34
|
+
return this.width / n;
|
|
35
|
+
}
|
|
36
|
+
_preRender() {
|
|
37
|
+
var t;
|
|
38
|
+
super._preRender(), this.component.setSize(this.width, this.height, this.containerWidth, this.containerHeight), (t = this.config.annotations) === null || t === void 0 || t.setSize(this.width, this.height, this.containerWidth, this.containerHeight);
|
|
39
|
+
}
|
|
40
|
+
_render(t) {
|
|
41
|
+
var i;
|
|
42
|
+
const { config: e, component: n } = this;
|
|
43
|
+
super._render(t), n.g.attr("transform", `translate(${e.margin.left},${e.margin.top})`), n.render(t), (i = e.annotations) === null || i === void 0 || i.render(t), e.tooltip && e.tooltip.update();
|
|
44
|
+
}
|
|
45
|
+
// Re-defining the `render()` function to handle different sizing techniques (`Sizing.Extend` and `Sizing.FitWidth`)
|
|
46
|
+
// Not calling `super.render()` because we don't want it to interfere with setting the SVG size here.
|
|
47
|
+
render(t = this.config.duration) {
|
|
48
|
+
const { config: i, component: e } = this;
|
|
49
|
+
if (i.sizing === o.Extend || i.sizing === o.FitWidth) {
|
|
50
|
+
const n = i.sizing === o.FitWidth, s = e, r = s.getWidth() + i.margin.left + i.margin.right, h = s.getHeight() + i.margin.top + i.margin.bottom, a = n ? this.getFitWidthScale() : 1, p = this.svg.attr("width"), c = this.svg.attr("height"), m = r * a, d = h * a, l = p || c;
|
|
51
|
+
f(this.svg, l ? t : 0).attr("width", m).attr("height", d).attr("viewBox", `0 0 ${r} ${n ? d : h}`).attr("preserveAspectRatio", "xMinYMin");
|
|
52
|
+
} else
|
|
53
|
+
this.svg.attr("width", this.config.width || this.containerWidth).attr("height", this.config.height || this.containerHeight);
|
|
54
|
+
this._resizeObserver || this._setUpResizeObserver(), cancelAnimationFrame(this._renderAnimationFrameId), this._renderAnimationFrameId = requestAnimationFrame(() => {
|
|
55
|
+
this._preRender(), this._render(t);
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
_onResize() {
|
|
59
|
+
var t;
|
|
60
|
+
const { config: i } = this;
|
|
61
|
+
super._onResize(), (t = i.tooltip) === null || t === void 0 || t.hide();
|
|
62
|
+
}
|
|
63
|
+
destroy() {
|
|
64
|
+
var t, i;
|
|
65
|
+
const { component: e, config: n } = this;
|
|
66
|
+
super.destroy(), e == null || e.destroy(), (t = n.tooltip) === null || t === void 0 || t.destroy(), (i = n.annotations) === null || i === void 0 || i.destroy();
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
export {
|
|
70
|
+
w as SingleContainer
|
|
71
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const n=require("../../core/container/config.cjs"),e=require("../../types/direction.cjs"),i=Object.assign(Object.assign({},n.ContainerDefaultConfig),{components:[],tooltip:void 0,crosshair:void 0,annotations:void 0,xAxis:void 0,yAxis:void 0,autoMargin:!0,xScale:void 0,xDomain:void 0,xDomainMinConstraint:void 0,xDomainMaxConstraint:void 0,xRange:void 0,yScale:void 0,yDomain:void 0,yDomainMinConstraint:void 0,yDomainMaxConstraint:void 0,yRange:void 0,yDirection:e.Direction.North,preventEmptyDomain:null,scaleByDomain:!1});exports.XYContainerDefaultConfig=i;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { ContainerDefaultConfig as n } from "../../core/container/config.js";
|
|
2
|
+
import { Direction as e } from "../../types/direction.js";
|
|
3
|
+
const a = Object.assign(Object.assign({}, n), { components: [], tooltip: void 0, crosshair: void 0, annotations: void 0, xAxis: void 0, yAxis: void 0, autoMargin: !0, xScale: void 0, xDomain: void 0, xDomainMinConstraint: void 0, xDomainMaxConstraint: void 0, xRange: void 0, yScale: void 0, yDomain: void 0, yDomainMinConstraint: void 0, yDomainMaxConstraint: void 0, yRange: void 0, yDirection: e.North, preventEmptyDomain: null, scaleByDomain: !1 });
|
|
4
|
+
export {
|
|
5
|
+
a as XYContainerDefaultConfig
|
|
6
|
+
};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const C=require("../../../../@emotion/css/dist/emotion-css.esm.cjs");require("../../styles/index.cjs");const M=require("../../core/container/index.cjs"),E=require("../../data-models/core.cjs"),D=require("../../components/axis/types.cjs"),m=require("../../types/scale.cjs"),N=require("../../types/direction.cjs"),g=require("../../utils/data.cjs"),R=require("../../utils/misc.cjs"),P=require("./config.cjs"),Y=require("../../../../d3-array/src/extent.cjs"),T=require("../../../../d3-array/src/merge.cjs");class q extends M.ContainerCore{constructor(t,i,e){var n,s;super(t),this._defaultConfig=P.XYContainerDefaultConfig,this.datamodel=new E.CoreDataModel,this.config=this._defaultConfig,this._clipPathId=R.guid(),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");const o="saturate",r=window.location.href.replace(window.location.hash,"");this.svg.attr("class",C.css`
|
|
2
|
+
--highlight-filter-id: url(${r}#${o}); // defining a css variable
|
|
3
|
+
`),this._svgDefs.append("filter").attr("id",o).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||!((n=this.components)===null||n===void 0)&&n.some(a=>a.datamodel.data))&&this.render(),(s=document.fonts)===null||s===void 0||s.ready.then(()=>{this._firstRender||this._renderAxes(0)})}get components(){return this.config.components}get width(){const t=this._getMargin();return g.clamp(this.containerWidth-t.left-t.right,0,Number.POSITIVE_INFINITY)}get height(){const t=this._getMargin();return g.clamp(this.containerHeight-t.top-t.bottom,0,Number.POSITIVE_INFINITY)}setData(t,i){var e,n,s,o;const{components:r,config:a}=this;t&&(this.datamodel.data=t,r.forEach(l=>{l.setData(t)}),(e=a.crosshair)===null||e===void 0||e.setData(t),(n=a.xAxis)===null||n===void 0||n.setData(t),(s=a.yAxis)===null||s===void 0||s.setData(t),(o=a.tooltip)===null||o===void 0||o.hide(),i||this.render())}updateContainer(t,i){super.updateContainer(t),this._removeAllChildren(),this.setData(this.datamodel.data,!0),t.xAxis&&(this.config.xAxis.config.type=D.AxisType.X,this.element.appendChild(t.xAxis.element)),t.yAxis&&(this.config.yAxis.config.type=D.AxisType.Y,this.element.appendChild(t.yAxis.element));for(const o of this.components)this.element.appendChild(o.element);const e=t.tooltip;e&&(e.hasContainer()||e.setContainer(this._container),e.setComponents(this.components));const n=t.crosshair;n&&(n.setContainer(this.svg),n.tooltip=e,this.element.appendChild(n.element));const s=t.annotations;s&&this.element.appendChild(s.element),this.element.appendChild(this._clipPath.node()),this.element.appendChild(this._svgDefs.node()),this.element.appendChild(this._svgDefsExternal.node()),i||this.render()}updateComponents(t,i){const{config:e}=this;this.components.forEach((n,s)=>{t[s]&&n.setConfig(t[s])}),this._updateScales(...this.components,e.xAxis,e.yAxis,e.crosshair),i||this.render()}update(t,i,e){e&&(this.datamodel.data=e),t&&this.updateContainer(t,!0),i&&this.updateComponents(i,!0),this.render()}_preRender(){const{config:t}=this;super._preRender(),t.autoMargin&&this._setAutoMargin();const i=g.clean([...this.components,t.xAxis,t.yAxis,t.crosshair,t.annotations]);for(const e of i)e.setSize(this.width,this.height,this.containerWidth,this.containerHeight);this._updateScales(...this.components,t.xAxis,t.yAxis,t.crosshair)}_render(t){var i,e,n,s,o;const{config:r}=this;super._render();const a=this._getMargin();for(const d of this.components)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);this._renderAxes(this._firstRender?0:t);const l=2;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();const p=r.crosshair;if(p){const d=this.components.filter(h=>!h.stacked).map(h=>h.config.y),f=this.components.filter(h=>h.stacked).map(h=>h.config.y),c=(e=this.components.find(h=>h.config.baseline))===null||e===void 0?void 0:e.config,_=c==null?void 0:c.baseline;p.accessors={x:(n=this.components[0])===null||n===void 0?void 0:n.config.x,y:g.flatten(d),yStacked:g.flatten(f),baseline:_},p.g.attr("transform",`translate(${a.left},${a.top})`).style("clip-path",`url(#${this._clipPathId})`).style("-webkit-clip-path",`url(#${this._clipPathId})`),p.hide()}(s=r.annotations)===null||s===void 0||s.g.attr("transform",`translate(${a.left},${a.top})`),(o=r.annotations)===null||o===void 0||o.render(),this._firstRender=!1}_updateScales(...t){const i=g.clean(t||this.components);this._setScales(...i),this._updateScalesDomain(...i),this._updateScalesRange(...i)}_setScales(...t){const{config:i}=this;t&&(i.xScale&&t.forEach(e=>e.setScale(m.ScaleDimension.X,i.xScale)),i.yScale&&t.forEach(e=>e.setScale(m.ScaleDimension.Y,i.yScale)))}_updateScalesDomain(...t){const{config:i}=this;if(!t)return;const e=t.filter(n=>!n.config.excludeFromDomainCalculation);Object.values(m.ScaleDimension).forEach(n=>{var s,o,r,a,l,p,d,f;const[c,_]=Y.default(T.default(e.map(y=>y.getDataExtent(n,i.scaleByDomain)))),h=n===m.ScaleDimension.Y?i.yDomain:i.xDomain,u=n===m.ScaleDimension.Y?i.yDomainMinConstraint:i.xDomainMinConstraint,v=n===m.ScaleDimension.Y?i.yDomainMaxConstraint:i.xDomainMaxConstraint,b=(o=(s=h==null?void 0:h[0])!==null&&s!==void 0?s:c)!==null&&o!==void 0?o:0,I=(a=(r=h==null?void 0:h[1])!==null&&r!==void 0?r:_)!==null&&a!==void 0?a:1,x=[g.clamp(b,(l=u==null?void 0:u[0])!==null&&l!==void 0?l:Number.NEGATIVE_INFINITY,(p=u==null?void 0:u[1])!==null&&p!==void 0?p:Number.POSITIVE_INFINITY),g.clamp(I,(d=v==null?void 0:v[0])!==null&&d!==void 0?d:Number.NEGATIVE_INFINITY,(f=v==null?void 0:v[1])!==null&&f!==void 0?f:Number.POSITIVE_INFINITY)];if(x[0]===x[1]){const y=e.some(A=>{var S;return((S=A.datamodel.data)===null||S===void 0?void 0:S.length)>0});(i.preventEmptyDomain||i.preventEmptyDomain===null&&(!y||n===m.ScaleDimension.Y))&&(x[1]=x[0]+1)}t.forEach(y=>y.setScaleDomain(n,x))})}_updateScalesRange(...t){var i,e,n,s,o,r;const{config:a}=this;if(!t)return;const l=a.yDirection===N.Direction.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-((n=a.padding.bottom)!==null&&n!==void 0?n:0),(s=a.padding.top)!==null&&s!==void 0?s:0];l&&d.reverse();for(const c of t)c.setSize(this.width,this.height,this.containerWidth,this.containerHeight),c.setScaleRange(m.ScaleDimension.X,(o=a.xRange)!==null&&o!==void 0?o:p),c.setScaleRange(m.ScaleDimension.Y,(r=a.yRange)!==null&&r!==void 0?r:d);const f=t.map(c=>c.bleed).reduce((c,_)=>{for(const h of Object.keys(c)){const u=h;c[u]<_[u]&&(c[u]=_[u])}return c},{top:0,bottom:0,left:0,right:0});for(const c of t)c.setScaleRange(m.ScaleDimension.X,[p[0]+f.left,p[1]-f.right]),c.setScaleRange(m.ScaleDimension.Y,l?[d[0]+f.top,d[1]-f.bottom]:[d[0]-f.bottom,d[1]+f.top])}_renderAxes(t){const{config:{xAxis:i,yAxis:e}}=this,n=this._getMargin();g.clean([i,e]).forEach(o=>{const r=o.getOffset(n);o.g.attr("transform",`translate(${r.left},${r.top})`),o.render(t)})}_setAutoMargin(){const{config:{xAxis:t,yAxis:i}}=this,e=g.clean([...this.components,t,i]);this._setScales(...e),this._updateScalesDomain(...e);const n=this._firstRender?2:1;for(let s=0;s<n;s+=1){const o={top:0,bottom:0,left:0,right:0};this._updateScalesRange(...e),g.clean([t,i]).forEach(a=>{a.preRender();const l=a.getRequiredMargin();o.top<l.top&&(o.top=l.top),o.bottom<l.bottom&&(o.bottom=l.bottom),o.left<l.left&&(o.left=l.left),o.right<l.right&&(o.right=l.right)}),this._axisMargin=o}}_getMargin(){const{config:{margin:t}}=this;return{top:t.top+this._axisMargin.top,bottom:t.bottom+this._axisMargin.bottom,left:t.left+this._axisMargin.left,right:t.right+this._axisMargin.right}}destroy(){const{components:t,config:{tooltip:i,crosshair:e,annotations:n,xAxis:s,yAxis:o}}=this;super.destroy();for(const r of t)r==null||r.destroy();i==null||i.destroy(),e==null||e.destroy(),n==null||n.destroy(),s==null||s.destroy(),o==null||o.destroy()}}exports.XYContainer=q;
|
|
@@ -0,0 +1,185 @@
|
|
|
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
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t={duration:600,events:{},attributes:{}};exports.ComponentDefaultConfig=t;
|
|
@@ -0,0 +1 @@
|
|
|
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=_;
|