vue-chrts 0.0.168 → 0.0.170
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/components/Area/AreaChart.cjs +3 -3
- package/dist/components/Area/AreaChart.cjs.map +1 -1
- package/dist/components/Area/AreaChart.js +31 -39
- package/dist/components/Area/AreaChart.js.map +1 -1
- package/dist/components/AreaStacked/AreaStackedChart.cjs +1 -1
- package/dist/components/AreaStacked/AreaStackedChart.cjs.map +1 -1
- package/dist/components/AreaStacked/AreaStackedChart.js +21 -26
- package/dist/components/AreaStacked/AreaStackedChart.js.map +1 -1
- package/dist/components/Bar/BarChart.cjs +1 -1
- package/dist/components/Bar/BarChart.cjs.map +1 -1
- package/dist/components/Bar/BarChart.js +40 -48
- package/dist/components/Bar/BarChart.js.map +1 -1
- package/dist/components/Crosshair/Crosshair.cjs +1 -1
- package/dist/components/Crosshair/Crosshair.cjs.map +1 -1
- package/dist/components/Crosshair/Crosshair.js +16 -18
- package/dist/components/Crosshair/Crosshair.js.map +1 -1
- package/dist/components/Donut/DonutChart.cjs +2 -2
- package/dist/components/Donut/DonutChart.cjs.map +1 -1
- package/dist/components/Donut/DonutChart.js +20 -24
- package/dist/components/Donut/DonutChart.js.map +1 -1
- package/dist/components/Line/LineChart.cjs +1 -1
- package/dist/components/Line/LineChart.cjs.map +1 -1
- package/dist/components/Line/LineChart.js +28 -35
- package/dist/components/Line/LineChart.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/_virtual/_commonjsHelpers.cjs +0 -2
- package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -7
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/browser.cjs +0 -2
- package/dist/_virtual/browser.cjs.map +0 -1
- package/dist/_virtual/browser.js +0 -3
- package/dist/_virtual/browser.js.map +0 -1
- package/dist/_virtual/striptags.cjs +0 -2
- package/dist/_virtual/striptags.cjs.map +0 -1
- package/dist/_virtual/striptags.js +0 -8
- package/dist/_virtual/striptags.js.map +0 -1
- package/dist/_virtual/striptags2.cjs +0 -2
- package/dist/_virtual/striptags2.cjs.map +0 -1
- package/dist/_virtual/striptags2.js +0 -5
- package/dist/_virtual/striptags2.js.map +0 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs +0 -2
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -280
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js.map +0 -1
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.cjs +0 -2
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js +0 -87
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js.map +0 -1
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.cjs +0 -2
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.js +0 -9
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.js.map +0 -1
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.cjs +0 -2
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -23
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +0 -1
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +0 -2
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -10
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +0 -1
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.cjs +0 -2
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -124
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +0 -1
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.cjs +0 -2
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -45
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +0 -1
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs +0 -2
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -54
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +0 -1
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs +0 -2
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -30
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js +0 -16
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.js +0 -21
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.js +0 -32
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js +0 -8
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js +0 -32
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js +0 -13
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js +0 -11
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js +0 -27
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js +0 -43
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js +0 -12
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js +0 -13
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.js +0 -38
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.js +0 -7
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.js +0 -5
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.js +0 -15
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js +0 -19
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js +0 -5
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.js +0 -71
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/area/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/config.js +0 -7
- package/dist/node_modules/@unovis/ts/components/area/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/area/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/index.js +0 -53
- package/dist/node_modules/@unovis/ts/components/area/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/style.cjs +0 -36
- package/dist/node_modules/@unovis/ts/components/area/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/style.js +0 -42
- package/dist/node_modules/@unovis/ts/components/area/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/axis/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/config.js +0 -7
- package/dist/node_modules/@unovis/ts/components/axis/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/axis/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/index.js +0 -288
- package/dist/node_modules/@unovis/ts/components/axis/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/style.cjs +0 -102
- package/dist/node_modules/@unovis/ts/components/axis/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/style.js +0 -115
- package/dist/node_modules/@unovis/ts/components/axis/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/types.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/axis/types.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/types.js +0 -8
- package/dist/node_modules/@unovis/ts/components/axis/types.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.js +0 -19
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.js +0 -37
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.js +0 -49
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.cjs +0 -64
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.js +0 -74
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.js +0 -11
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/crosshair/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/crosshair/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/crosshair/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/index.js +0 -120
- package/dist/node_modules/@unovis/ts/components/crosshair/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/style.cjs +0 -23
- package/dist/node_modules/@unovis/ts/components/crosshair/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/style.js +0 -30
- package/dist/node_modules/@unovis/ts/components/crosshair/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/donut/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/config.js +0 -9
- package/dist/node_modules/@unovis/ts/components/donut/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/constants.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/donut/constants.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/constants.js +0 -12
- package/dist/node_modules/@unovis/ts/components/donut/constants.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/donut/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/index.js +0 -58
- package/dist/node_modules/@unovis/ts/components/donut/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.js +0 -38
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/style.cjs +0 -59
- package/dist/node_modules/@unovis/ts/components/donut/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/style.js +0 -69
- package/dist/node_modules/@unovis/ts/components/donut/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.js +0 -7
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.js +0 -122
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.cjs +0 -36
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.js +0 -44
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/line/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/config.js +0 -7
- package/dist/node_modules/@unovis/ts/components/line/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/line/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/index.js +0 -87
- package/dist/node_modules/@unovis/ts/components/line/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/style.cjs +0 -36
- package/dist/node_modules/@unovis/ts/components/line/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/style.js +0 -46
- package/dist/node_modules/@unovis/ts/components/line/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.js +0 -7
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.js +0 -112
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.cjs +0 -35
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.js +0 -43
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/tooltip/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/config.js +0 -18
- package/dist/node_modules/@unovis/ts/components/tooltip/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/tooltip/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/index.js +0 -167
- package/dist/node_modules/@unovis/ts/components/tooltip/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/style.cjs +0 -62
- package/dist/node_modules/@unovis/ts/components/tooltip/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/style.js +0 -72
- package/dist/node_modules/@unovis/ts/components/tooltip/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/containers/single-container/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/config.js +0 -6
- package/dist/node_modules/@unovis/ts/containers/single-container/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/containers/single-container/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/index.js +0 -72
- package/dist/node_modules/@unovis/ts/containers/single-container/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.js +0 -7
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.cjs +0 -4
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.js +0 -186
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/component/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/component/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/component/config.js +0 -9
- package/dist/node_modules/@unovis/ts/core/component/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/component/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/component/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/component/index.js +0 -69
- package/dist/node_modules/@unovis/ts/core/component/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/container/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/container/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/container/config.js +0 -25
- package/dist/node_modules/@unovis/ts/core/container/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/container/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/container/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/container/index.js +0 -74
- package/dist/node_modules/@unovis/ts/core/container/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/xy-component/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/config.js +0 -9
- package/dist/node_modules/@unovis/ts/core/xy-component/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/xy-component/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/index.js +0 -54
- package/dist/node_modules/@unovis/ts/core/xy-component/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/data-models/core.cjs +0 -2
- package/dist/node_modules/@unovis/ts/data-models/core.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/data-models/core.js +0 -15
- package/dist/node_modules/@unovis/ts/data-models/core.js.map +0 -1
- package/dist/node_modules/@unovis/ts/data-models/series.cjs +0 -2
- package/dist/node_modules/@unovis/ts/data-models/series.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/data-models/series.js +0 -17
- package/dist/node_modules/@unovis/ts/data-models/series.js.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/colors.cjs +0 -2
- package/dist/node_modules/@unovis/ts/styles/colors.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/colors.js +0 -19
- package/dist/node_modules/@unovis/ts/styles/colors.js.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/index.cjs +0 -39
- package/dist/node_modules/@unovis/ts/styles/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/index.js +0 -64
- package/dist/node_modules/@unovis/ts/styles/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/patterns.cjs +0 -16
- package/dist/node_modules/@unovis/ts/styles/patterns.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/patterns.js +0 -46
- package/dist/node_modules/@unovis/ts/styles/patterns.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/component.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/component.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/component.js +0 -13
- package/dist/node_modules/@unovis/ts/types/component.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/curve.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/curve.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/curve.js +0 -44
- package/dist/node_modules/@unovis/ts/types/curve.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/direction.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/direction.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/direction.js +0 -8
- package/dist/node_modules/@unovis/ts/types/direction.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/position.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/position.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/position.js +0 -23
- package/dist/node_modules/@unovis/ts/types/position.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/scale.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/scale.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/scale.js +0 -41
- package/dist/node_modules/@unovis/ts/types/scale.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/svg.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/svg.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/svg.js +0 -16
- package/dist/node_modules/@unovis/ts/types/svg.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/symbol.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/symbol.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/symbol.js +0 -25
- package/dist/node_modules/@unovis/ts/types/symbol.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/text.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/text.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/text.js +0 -23
- package/dist/node_modules/@unovis/ts/types/text.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/color.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/color.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/color.js +0 -9
- package/dist/node_modules/@unovis/ts/utils/color.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/d3.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/d3.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/d3.js +0 -13
- package/dist/node_modules/@unovis/ts/utils/d3.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/data.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/data.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/data.js +0 -171
- package/dist/node_modules/@unovis/ts/utils/data.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/misc.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/misc.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/misc.js +0 -29
- package/dist/node_modules/@unovis/ts/utils/misc.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/path.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/path.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/path.js +0 -10
- package/dist/node_modules/@unovis/ts/utils/path.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/resize-observer.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/resize-observer.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/resize-observer.js +0 -7
- package/dist/node_modules/@unovis/ts/utils/resize-observer.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/text.cjs +0 -3
- package/dist/node_modules/@unovis/ts/utils/text.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/text.js +0 -179
- package/dist/node_modules/@unovis/ts/utils/text.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/area/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/area/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/area/index.js +0 -49
- package/dist/node_modules/@unovis/vue/components/area/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/axis/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/axis/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/axis/index.js +0 -70
- package/dist/node_modules/@unovis/vue/components/axis/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/crosshair/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/crosshair/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/crosshair/index.js +0 -34
- package/dist/node_modules/@unovis/vue/components/crosshair/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/donut/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/donut/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/donut/index.js +0 -55
- package/dist/node_modules/@unovis/vue/components/donut/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.js +0 -55
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/line/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/line/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/line/index.js +0 -51
- package/dist/node_modules/@unovis/vue/components/line/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.js +0 -55
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/tooltip/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/tooltip/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/tooltip/index.js +0 -41
- package/dist/node_modules/@unovis/vue/components/tooltip/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/containers/single-container/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/containers/single-container/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/containers/single-container/index.js +0 -67
- package/dist/node_modules/@unovis/vue/containers/single-container/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.js +0 -103
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.js +0 -44
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/index.js +0 -11
- package/dist/node_modules/@unovis/vue/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/utils/context.cjs +0 -2
- package/dist/node_modules/@unovis/vue/utils/context.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/utils/context.js +0 -9
- package/dist/node_modules/@unovis/vue/utils/context.js.map +0 -1
- package/dist/node_modules/@unovis/vue/utils/props.cjs +0 -2
- package/dist/node_modules/@unovis/vue/utils/props.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/utils/props.js +0 -19
- package/dist/node_modules/@unovis/vue/utils/props.js.map +0 -1
- package/dist/node_modules/d3-array/src/ascending.cjs +0 -2
- package/dist/node_modules/d3-array/src/ascending.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/ascending.js +0 -7
- package/dist/node_modules/d3-array/src/ascending.js.map +0 -1
- package/dist/node_modules/d3-array/src/bisect.cjs +0 -2
- package/dist/node_modules/d3-array/src/bisect.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/bisect.js +0 -10
- package/dist/node_modules/d3-array/src/bisect.js.map +0 -1
- package/dist/node_modules/d3-array/src/bisector.cjs +0 -2
- package/dist/node_modules/d3-array/src/bisector.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/bisector.js +0 -38
- package/dist/node_modules/d3-array/src/bisector.js.map +0 -1
- package/dist/node_modules/d3-array/src/descending.cjs +0 -2
- package/dist/node_modules/d3-array/src/descending.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/descending.js +0 -7
- package/dist/node_modules/d3-array/src/descending.js.map +0 -1
- package/dist/node_modules/d3-array/src/extent.cjs +0 -2
- package/dist/node_modules/d3-array/src/extent.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/extent.js +0 -10
- package/dist/node_modules/d3-array/src/extent.js.map +0 -1
- package/dist/node_modules/d3-array/src/max.cjs +0 -2
- package/dist/node_modules/d3-array/src/max.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/max.js +0 -16
- package/dist/node_modules/d3-array/src/max.js.map +0 -1
- package/dist/node_modules/d3-array/src/mean.cjs +0 -2
- package/dist/node_modules/d3-array/src/mean.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/mean.js +0 -16
- package/dist/node_modules/d3-array/src/mean.js.map +0 -1
- package/dist/node_modules/d3-array/src/merge.cjs +0 -2
- package/dist/node_modules/d3-array/src/merge.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/merge.js +0 -11
- package/dist/node_modules/d3-array/src/merge.js.map +0 -1
- package/dist/node_modules/d3-array/src/min.cjs +0 -2
- package/dist/node_modules/d3-array/src/min.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/min.js +0 -16
- package/dist/node_modules/d3-array/src/min.js.map +0 -1
- package/dist/node_modules/d3-array/src/number.cjs +0 -2
- package/dist/node_modules/d3-array/src/number.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/number.js +0 -7
- package/dist/node_modules/d3-array/src/number.js.map +0 -1
- package/dist/node_modules/d3-array/src/quantile.cjs +0 -2
- package/dist/node_modules/d3-array/src/quantile.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/quantile.js +0 -13
- package/dist/node_modules/d3-array/src/quantile.js.map +0 -1
- package/dist/node_modules/d3-array/src/range.cjs +0 -2
- package/dist/node_modules/d3-array/src/range.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/range.js +0 -10
- package/dist/node_modules/d3-array/src/range.js.map +0 -1
- package/dist/node_modules/d3-array/src/sum.cjs +0 -2
- package/dist/node_modules/d3-array/src/sum.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/sum.js +0 -16
- package/dist/node_modules/d3-array/src/sum.js.map +0 -1
- package/dist/node_modules/d3-array/src/ticks.cjs +0 -2
- package/dist/node_modules/d3-array/src/ticks.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/ticks.js +0 -33
- package/dist/node_modules/d3-array/src/ticks.js.map +0 -1
- package/dist/node_modules/d3-axis/src/axis.cjs +0 -2
- package/dist/node_modules/d3-axis/src/axis.cjs.map +0 -1
- package/dist/node_modules/d3-axis/src/axis.js +0 -73
- package/dist/node_modules/d3-axis/src/axis.js.map +0 -1
- package/dist/node_modules/d3-axis/src/identity.cjs +0 -2
- package/dist/node_modules/d3-axis/src/identity.cjs.map +0 -1
- package/dist/node_modules/d3-axis/src/identity.js +0 -7
- package/dist/node_modules/d3-axis/src/identity.js.map +0 -1
- package/dist/node_modules/d3-color/src/color.cjs +0 -2
- package/dist/node_modules/d3-color/src/color.cjs.map +0 -1
- package/dist/node_modules/d3-color/src/color.js +0 -306
- package/dist/node_modules/d3-color/src/color.js.map +0 -1
- package/dist/node_modules/d3-color/src/define.cjs +0 -2
- package/dist/node_modules/d3-color/src/define.cjs.map +0 -1
- package/dist/node_modules/d3-color/src/define.js +0 -13
- package/dist/node_modules/d3-color/src/define.js.map +0 -1
- package/dist/node_modules/d3-dispatch/src/dispatch.cjs +0 -2
- package/dist/node_modules/d3-dispatch/src/dispatch.cjs.map +0 -1
- package/dist/node_modules/d3-dispatch/src/dispatch.js +0 -65
- package/dist/node_modules/d3-dispatch/src/dispatch.js.map +0 -1
- package/dist/node_modules/d3-ease/src/cubic.cjs +0 -2
- package/dist/node_modules/d3-ease/src/cubic.cjs.map +0 -1
- package/dist/node_modules/d3-ease/src/cubic.js +0 -7
- package/dist/node_modules/d3-ease/src/cubic.js.map +0 -1
- package/dist/node_modules/d3-ease/src/linear.cjs +0 -2
- package/dist/node_modules/d3-ease/src/linear.cjs.map +0 -1
- package/dist/node_modules/d3-ease/src/linear.js +0 -5
- package/dist/node_modules/d3-ease/src/linear.js.map +0 -1
- package/dist/node_modules/d3-format/src/defaultLocale.cjs +0 -2
- package/dist/node_modules/d3-format/src/defaultLocale.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/defaultLocale.js +0 -16
- package/dist/node_modules/d3-format/src/defaultLocale.js.map +0 -1
- package/dist/node_modules/d3-format/src/exponent.cjs +0 -2
- package/dist/node_modules/d3-format/src/exponent.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/exponent.js +0 -8
- package/dist/node_modules/d3-format/src/exponent.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatDecimal.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatDecimal.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatDecimal.js +0 -16
- package/dist/node_modules/d3-format/src/formatDecimal.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatGroup.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatGroup.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatGroup.js +0 -11
- package/dist/node_modules/d3-format/src/formatGroup.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatNumerals.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatNumerals.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatNumerals.js +0 -11
- package/dist/node_modules/d3-format/src/formatNumerals.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatPrefixAuto.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatPrefixAuto.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -13
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatRounded.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatRounded.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatRounded.js +0 -11
- package/dist/node_modules/d3-format/src/formatRounded.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatSpecifier.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatSpecifier.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -29
- package/dist/node_modules/d3-format/src/formatSpecifier.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatTrim.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatTrim.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatTrim.js +0 -20
- package/dist/node_modules/d3-format/src/formatTrim.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatTypes.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatTypes.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatTypes.js +0 -22
- package/dist/node_modules/d3-format/src/formatTypes.js.map +0 -1
- package/dist/node_modules/d3-format/src/identity.cjs +0 -2
- package/dist/node_modules/d3-format/src/identity.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/identity.js +0 -7
- package/dist/node_modules/d3-format/src/identity.js.map +0 -1
- package/dist/node_modules/d3-format/src/locale.cjs +0 -2
- package/dist/node_modules/d3-format/src/locale.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/locale.js +0 -69
- package/dist/node_modules/d3-format/src/locale.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionFixed.cjs +0 -2
- package/dist/node_modules/d3-format/src/precisionFixed.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/precisionFixed.js +0 -8
- package/dist/node_modules/d3-format/src/precisionFixed.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionPrefix.cjs +0 -2
- package/dist/node_modules/d3-format/src/precisionPrefix.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -8
- package/dist/node_modules/d3-format/src/precisionPrefix.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionRound.cjs +0 -2
- package/dist/node_modules/d3-format/src/precisionRound.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/precisionRound.js +0 -8
- package/dist/node_modules/d3-format/src/precisionRound.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/array.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/array.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/array.js +0 -14
- package/dist/node_modules/d3-interpolate/src/array.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/color.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/color.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/color.js +0 -25
- package/dist/node_modules/d3-interpolate/src/color.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/constant.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/constant.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/constant.js +0 -5
- package/dist/node_modules/d3-interpolate/src/constant.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/date.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/date.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/date.js +0 -10
- package/dist/node_modules/d3-interpolate/src/date.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/number.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/number.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/number.js +0 -9
- package/dist/node_modules/d3-interpolate/src/number.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/numberArray.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/numberArray.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -16
- package/dist/node_modules/d3-interpolate/src/numberArray.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/object.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/object.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/object.js +0 -15
- package/dist/node_modules/d3-interpolate/src/object.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/piecewise.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/piecewise.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -13
- package/dist/node_modules/d3-interpolate/src/piecewise.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/rgb.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/rgb.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/rgb.js +0 -16
- package/dist/node_modules/d3-interpolate/src/rgb.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/round.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/round.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/round.js +0 -9
- package/dist/node_modules/d3-interpolate/src/round.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/string.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/string.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/string.js +0 -25
- package/dist/node_modules/d3-interpolate/src/string.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/decompose.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/transform/decompose.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +0 -24
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/index.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/transform/index.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/index.js +0 -38
- package/dist/node_modules/d3-interpolate/src/transform/index.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/parse.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/transform/parse.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +0 -14
- package/dist/node_modules/d3-interpolate/src/transform/parse.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/value.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/value.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/value.js +0 -17
- package/dist/node_modules/d3-interpolate/src/value.js.map +0 -1
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.cjs +0 -3
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.js +0 -302
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.js.map +0 -1
- package/dist/node_modules/d3-path/src/path.cjs +0 -2
- package/dist/node_modules/d3-path/src/path.cjs.map +0 -1
- package/dist/node_modules/d3-path/src/path.js +0 -65
- package/dist/node_modules/d3-path/src/path.js.map +0 -1
- package/dist/node_modules/d3-scale/src/band.cjs +0 -2
- package/dist/node_modules/d3-scale/src/band.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/band.js +0 -52
- package/dist/node_modules/d3-scale/src/band.js.map +0 -1
- package/dist/node_modules/d3-scale/src/constant.cjs +0 -2
- package/dist/node_modules/d3-scale/src/constant.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/constant.js +0 -9
- package/dist/node_modules/d3-scale/src/constant.js.map +0 -1
- package/dist/node_modules/d3-scale/src/continuous.cjs +0 -2
- package/dist/node_modules/d3-scale/src/continuous.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/continuous.js +0 -76
- package/dist/node_modules/d3-scale/src/continuous.js.map +0 -1
- package/dist/node_modules/d3-scale/src/diverging.cjs +0 -2
- package/dist/node_modules/d3-scale/src/diverging.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/diverging.js +0 -41
- package/dist/node_modules/d3-scale/src/diverging.js.map +0 -1
- package/dist/node_modules/d3-scale/src/identity.cjs +0 -2
- package/dist/node_modules/d3-scale/src/identity.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/identity.js +0 -19
- package/dist/node_modules/d3-scale/src/identity.js.map +0 -1
- package/dist/node_modules/d3-scale/src/init.cjs +0 -2
- package/dist/node_modules/d3-scale/src/init.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/init.js +0 -33
- package/dist/node_modules/d3-scale/src/init.js.map +0 -1
- package/dist/node_modules/d3-scale/src/linear.cjs +0 -2
- package/dist/node_modules/d3-scale/src/linear.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/linear.js +0 -40
- package/dist/node_modules/d3-scale/src/linear.js.map +0 -1
- package/dist/node_modules/d3-scale/src/log.cjs +0 -2
- package/dist/node_modules/d3-scale/src/log.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/log.js +0 -87
- package/dist/node_modules/d3-scale/src/log.js.map +0 -1
- package/dist/node_modules/d3-scale/src/nice.cjs +0 -2
- package/dist/node_modules/d3-scale/src/nice.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/nice.js +0 -9
- package/dist/node_modules/d3-scale/src/nice.js.map +0 -1
- package/dist/node_modules/d3-scale/src/number.cjs +0 -2
- package/dist/node_modules/d3-scale/src/number.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/number.js +0 -7
- package/dist/node_modules/d3-scale/src/number.js.map +0 -1
- package/dist/node_modules/d3-scale/src/ordinal.cjs +0 -2
- package/dist/node_modules/d3-scale/src/ordinal.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/ordinal.js +0 -32
- package/dist/node_modules/d3-scale/src/ordinal.js.map +0 -1
- package/dist/node_modules/d3-scale/src/pow.cjs +0 -2
- package/dist/node_modules/d3-scale/src/pow.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/pow.js +0 -38
- package/dist/node_modules/d3-scale/src/pow.js.map +0 -1
- package/dist/node_modules/d3-scale/src/quantile.cjs +0 -2
- package/dist/node_modules/d3-scale/src/quantile.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/quantile.js +0 -39
- package/dist/node_modules/d3-scale/src/quantile.js.map +0 -1
- package/dist/node_modules/d3-scale/src/quantize.cjs +0 -2
- package/dist/node_modules/d3-scale/src/quantize.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/quantize.js +0 -32
- package/dist/node_modules/d3-scale/src/quantize.js.map +0 -1
- package/dist/node_modules/d3-scale/src/sequential.cjs +0 -2
- package/dist/node_modules/d3-scale/src/sequential.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/sequential.js +0 -43
- package/dist/node_modules/d3-scale/src/sequential.js.map +0 -1
- package/dist/node_modules/d3-scale/src/symlog.cjs +0 -2
- package/dist/node_modules/d3-scale/src/symlog.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/symlog.js +0 -30
- package/dist/node_modules/d3-scale/src/symlog.js.map +0 -1
- package/dist/node_modules/d3-scale/src/threshold.cjs +0 -2
- package/dist/node_modules/d3-scale/src/threshold.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/threshold.js +0 -24
- package/dist/node_modules/d3-scale/src/threshold.js.map +0 -1
- package/dist/node_modules/d3-scale/src/tickFormat.cjs +0 -2
- package/dist/node_modules/d3-scale/src/tickFormat.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/tickFormat.js +0 -33
- package/dist/node_modules/d3-scale/src/tickFormat.js.map +0 -1
- package/dist/node_modules/d3-scale/src/time.cjs +0 -2
- package/dist/node_modules/d3-scale/src/time.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/time.js +0 -47
- package/dist/node_modules/d3-scale/src/time.js.map +0 -1
- package/dist/node_modules/d3-scale/src/utcTime.cjs +0 -2
- package/dist/node_modules/d3-scale/src/utcTime.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/utcTime.js +0 -18
- package/dist/node_modules/d3-scale/src/utcTime.js.map +0 -1
- package/dist/node_modules/d3-selection/src/array.cjs +0 -2
- package/dist/node_modules/d3-selection/src/array.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/array.js +0 -7
- package/dist/node_modules/d3-selection/src/array.js.map +0 -1
- package/dist/node_modules/d3-selection/src/constant.cjs +0 -2
- package/dist/node_modules/d3-selection/src/constant.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/constant.js +0 -9
- package/dist/node_modules/d3-selection/src/constant.js.map +0 -1
- package/dist/node_modules/d3-selection/src/creator.cjs +0 -2
- package/dist/node_modules/d3-selection/src/creator.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/creator.js +0 -21
- package/dist/node_modules/d3-selection/src/creator.js.map +0 -1
- package/dist/node_modules/d3-selection/src/matcher.cjs +0 -2
- package/dist/node_modules/d3-selection/src/matcher.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/matcher.js +0 -15
- package/dist/node_modules/d3-selection/src/matcher.js.map +0 -1
- package/dist/node_modules/d3-selection/src/namespace.cjs +0 -2
- package/dist/node_modules/d3-selection/src/namespace.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/namespace.js +0 -9
- package/dist/node_modules/d3-selection/src/namespace.js.map +0 -1
- package/dist/node_modules/d3-selection/src/namespaces.cjs +0 -2
- package/dist/node_modules/d3-selection/src/namespaces.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/namespaces.js +0 -13
- package/dist/node_modules/d3-selection/src/namespaces.js.map +0 -1
- package/dist/node_modules/d3-selection/src/pointer.cjs +0 -2
- package/dist/node_modules/d3-selection/src/pointer.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/pointer.js +0 -19
- package/dist/node_modules/d3-selection/src/pointer.js.map +0 -1
- package/dist/node_modules/d3-selection/src/select.cjs +0 -2
- package/dist/node_modules/d3-selection/src/select.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/select.js +0 -8
- package/dist/node_modules/d3-selection/src/select.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/append.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/append.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/append.js +0 -11
- package/dist/node_modules/d3-selection/src/selection/append.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/attr.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/attr.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/attr.js +0 -45
- package/dist/node_modules/d3-selection/src/selection/attr.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/call.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/call.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/call.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/call.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/classed.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/classed.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/classed.js +0 -55
- package/dist/node_modules/d3-selection/src/selection/classed.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/clone.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/clone.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/clone.js +0 -15
- package/dist/node_modules/d3-selection/src/selection/clone.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/data.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/data.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/data.js +0 -43
- package/dist/node_modules/d3-selection/src/selection/data.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/datum.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/datum.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/datum.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/datum.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/dispatch.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/dispatch.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +0 -22
- package/dist/node_modules/d3-selection/src/selection/dispatch.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/each.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/each.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/each.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/each.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/empty.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/empty.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/empty.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/empty.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/enter.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/enter.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/enter.js +0 -28
- package/dist/node_modules/d3-selection/src/selection/enter.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/exit.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/exit.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/exit.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/exit.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/filter.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/filter.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/filter.js +0 -13
- package/dist/node_modules/d3-selection/src/selection/filter.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/html.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/html.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/html.js +0 -21
- package/dist/node_modules/d3-selection/src/selection/html.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/index.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/index.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/index.js +0 -88
- package/dist/node_modules/d3-selection/src/selection/index.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/insert.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/insert.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/insert.js +0 -15
- package/dist/node_modules/d3-selection/src/selection/insert.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/iterator.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/iterator.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/iterator.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/iterator.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/join.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/join.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/join.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/join.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/lower.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/lower.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/lower.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/lower.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/merge.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/merge.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/merge.js +0 -13
- package/dist/node_modules/d3-selection/src/selection/merge.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/node.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/node.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/node.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/node.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/nodes.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/nodes.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/nodes.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/nodes.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/on.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/on.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/on.js +0 -53
- package/dist/node_modules/d3-selection/src/selection/on.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/order.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/order.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/order.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/order.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/property.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/property.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/property.js +0 -23
- package/dist/node_modules/d3-selection/src/selection/property.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/raise.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/raise.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/raise.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/raise.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/remove.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/remove.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/remove.js +0 -11
- package/dist/node_modules/d3-selection/src/selection/remove.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/select.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/select.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/select.js +0 -13
- package/dist/node_modules/d3-selection/src/selection/select.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectAll.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/selectAll.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +0 -19
- package/dist/node_modules/d3-selection/src/selection/selectAll.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChild.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/selectChild.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +0 -17
- package/dist/node_modules/d3-selection/src/selection/selectChild.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChildren.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/selectChildren.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +0 -17
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/size.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/size.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/size.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/size.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/sort.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/sort.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/sort.js +0 -20
- package/dist/node_modules/d3-selection/src/selection/sort.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/sparse.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/sparse.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/sparse.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/sparse.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/style.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/style.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/style.js +0 -28
- package/dist/node_modules/d3-selection/src/selection/style.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/text.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/text.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/text.js +0 -21
- package/dist/node_modules/d3-selection/src/selection/text.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selector.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selector.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selector.js +0 -11
- package/dist/node_modules/d3-selection/src/selector.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selectorAll.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selectorAll.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selectorAll.js +0 -12
- package/dist/node_modules/d3-selection/src/selectorAll.js.map +0 -1
- package/dist/node_modules/d3-selection/src/sourceEvent.cjs +0 -2
- package/dist/node_modules/d3-selection/src/sourceEvent.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/sourceEvent.js +0 -9
- package/dist/node_modules/d3-selection/src/sourceEvent.js.map +0 -1
- package/dist/node_modules/d3-selection/src/window.cjs +0 -2
- package/dist/node_modules/d3-selection/src/window.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/window.js +0 -7
- package/dist/node_modules/d3-selection/src/window.js.map +0 -1
- package/dist/node_modules/d3-shape/src/arc.cjs +0 -2
- package/dist/node_modules/d3-shape/src/arc.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/arc.js +0 -86
- package/dist/node_modules/d3-shape/src/arc.js.map +0 -1
- package/dist/node_modules/d3-shape/src/area.cjs +0 -2
- package/dist/node_modules/d3-shape/src/area.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/area.js +0 -57
- package/dist/node_modules/d3-shape/src/area.js.map +0 -1
- package/dist/node_modules/d3-shape/src/array.cjs +0 -2
- package/dist/node_modules/d3-shape/src/array.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/array.js +0 -7
- package/dist/node_modules/d3-shape/src/array.js.map +0 -1
- package/dist/node_modules/d3-shape/src/constant.cjs +0 -2
- package/dist/node_modules/d3-shape/src/constant.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/constant.js +0 -9
- package/dist/node_modules/d3-shape/src/constant.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basis.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/basis.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basis.js +0 -61
- package/dist/node_modules/d3-shape/src/curve/basis.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisClosed.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/basisClosed.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -52
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisOpen.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/basisOpen.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -47
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/bundle.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/bundle.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/bundle.js +0 -34
- package/dist/node_modules/d3-shape/src/curve/bundle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/cardinal.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +0 -66
- package/dist/node_modules/d3-shape/src/curve/cardinal.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +0 -58
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +0 -51
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRom.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/catmullRom.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +0 -73
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +0 -62
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +0 -55
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linear.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/linear.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linear.js +0 -37
- package/dist/node_modules/d3-shape/src/curve/linear.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linearClosed.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/linearClosed.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -24
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/monotone.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/monotone.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -94
- package/dist/node_modules/d3-shape/src/curve/monotone.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/natural.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/natural.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/natural.js +0 -42
- package/dist/node_modules/d3-shape/src/curve/natural.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/step.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/step.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/step.js +0 -52
- package/dist/node_modules/d3-shape/src/curve/step.js.map +0 -1
- package/dist/node_modules/d3-shape/src/descending.cjs +0 -2
- package/dist/node_modules/d3-shape/src/descending.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/descending.js +0 -7
- package/dist/node_modules/d3-shape/src/descending.js.map +0 -1
- package/dist/node_modules/d3-shape/src/identity.cjs +0 -2
- package/dist/node_modules/d3-shape/src/identity.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/identity.js +0 -7
- package/dist/node_modules/d3-shape/src/identity.js.map +0 -1
- package/dist/node_modules/d3-shape/src/line.cjs +0 -2
- package/dist/node_modules/d3-shape/src/line.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/line.js +0 -30
- package/dist/node_modules/d3-shape/src/line.js.map +0 -1
- package/dist/node_modules/d3-shape/src/math.cjs +0 -2
- package/dist/node_modules/d3-shape/src/math.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/math.js +0 -23
- package/dist/node_modules/d3-shape/src/math.js.map +0 -1
- package/dist/node_modules/d3-shape/src/noop.cjs +0 -2
- package/dist/node_modules/d3-shape/src/noop.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/noop.js +0 -6
- package/dist/node_modules/d3-shape/src/noop.js.map +0 -1
- package/dist/node_modules/d3-shape/src/path.cjs +0 -2
- package/dist/node_modules/d3-shape/src/path.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/path.js +0 -19
- package/dist/node_modules/d3-shape/src/path.js.map +0 -1
- package/dist/node_modules/d3-shape/src/pie.cjs +0 -2
- package/dist/node_modules/d3-shape/src/pie.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/pie.js +0 -44
- package/dist/node_modules/d3-shape/src/pie.js.map +0 -1
- package/dist/node_modules/d3-shape/src/point.cjs +0 -2
- package/dist/node_modules/d3-shape/src/point.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/point.js +0 -11
- package/dist/node_modules/d3-shape/src/point.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/circle.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/circle.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/circle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/cross.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/cross.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/cross.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/diamond.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/diamond.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/square.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/square.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/square.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/square.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/star.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/star.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/star.js +0 -16
- package/dist/node_modules/d3-shape/src/symbol/star.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/triangle.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/triangle.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/wye.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/wye.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/wye.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol.js +0 -22
- package/dist/node_modules/d3-shape/src/symbol.js.map +0 -1
- package/dist/node_modules/d3-time/src/day.cjs +0 -2
- package/dist/node_modules/d3-time/src/day.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/day.js +0 -27
- package/dist/node_modules/d3-time/src/day.js.map +0 -1
- package/dist/node_modules/d3-time/src/duration.cjs +0 -2
- package/dist/node_modules/d3-time/src/duration.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/duration.js +0 -11
- package/dist/node_modules/d3-time/src/duration.js.map +0 -1
- package/dist/node_modules/d3-time/src/hour.cjs +0 -2
- package/dist/node_modules/d3-time/src/hour.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/hour.js +0 -19
- package/dist/node_modules/d3-time/src/hour.js.map +0 -1
- package/dist/node_modules/d3-time/src/interval.cjs +0 -2
- package/dist/node_modules/d3-time/src/interval.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/interval.js +0 -32
- package/dist/node_modules/d3-time/src/interval.js.map +0 -1
- package/dist/node_modules/d3-time/src/millisecond.cjs +0 -2
- package/dist/node_modules/d3-time/src/millisecond.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/millisecond.js +0 -15
- package/dist/node_modules/d3-time/src/millisecond.js.map +0 -1
- package/dist/node_modules/d3-time/src/minute.cjs +0 -2
- package/dist/node_modules/d3-time/src/minute.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/minute.js +0 -19
- package/dist/node_modules/d3-time/src/minute.js.map +0 -1
- package/dist/node_modules/d3-time/src/month.cjs +0 -2
- package/dist/node_modules/d3-time/src/month.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/month.js +0 -18
- package/dist/node_modules/d3-time/src/month.js.map +0 -1
- package/dist/node_modules/d3-time/src/second.cjs +0 -2
- package/dist/node_modules/d3-time/src/second.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/second.js +0 -12
- package/dist/node_modules/d3-time/src/second.js.map +0 -1
- package/dist/node_modules/d3-time/src/ticks.cjs +0 -2
- package/dist/node_modules/d3-time/src/ticks.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/ticks.js +0 -55
- package/dist/node_modules/d3-time/src/ticks.js.map +0 -1
- package/dist/node_modules/d3-time/src/week.cjs +0 -2
- package/dist/node_modules/d3-time/src/week.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/week.js +0 -49
- package/dist/node_modules/d3-time/src/week.js.map +0 -1
- package/dist/node_modules/d3-time/src/year.cjs +0 -2
- package/dist/node_modules/d3-time/src/year.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/year.js +0 -28
- package/dist/node_modules/d3-time/src/year.js.map +0 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +0 -2
- package/dist/node_modules/d3-time-format/src/defaultLocale.cjs.map +0 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -21
- package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +0 -1
- package/dist/node_modules/d3-time-format/src/locale.cjs +0 -2
- package/dist/node_modules/d3-time-format/src/locale.cjs.map +0 -1
- package/dist/node_modules/d3-time-format/src/locale.js +0 -479
- package/dist/node_modules/d3-time-format/src/locale.js.map +0 -1
- package/dist/node_modules/d3-timer/src/timeout.cjs +0 -2
- package/dist/node_modules/d3-timer/src/timeout.cjs.map +0 -1
- package/dist/node_modules/d3-timer/src/timeout.js +0 -11
- package/dist/node_modules/d3-timer/src/timeout.js.map +0 -1
- package/dist/node_modules/d3-timer/src/timer.cjs +0 -2
- package/dist/node_modules/d3-timer/src/timer.cjs.map +0 -1
- package/dist/node_modules/d3-timer/src/timer.js +0 -63
- package/dist/node_modules/d3-timer/src/timer.js.map +0 -1
- package/dist/node_modules/d3-transition/src/interrupt.cjs +0 -2
- package/dist/node_modules/d3-transition/src/interrupt.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/interrupt.js +0 -19
- package/dist/node_modules/d3-transition/src/interrupt.js.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/index.cjs +0 -2
- package/dist/node_modules/d3-transition/src/selection/index.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/index.js +0 -6
- package/dist/node_modules/d3-transition/src/selection/index.js.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/interrupt.cjs +0 -2
- package/dist/node_modules/d3-transition/src/selection/interrupt.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +0 -10
- package/dist/node_modules/d3-transition/src/selection/interrupt.js.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/transition.cjs +0 -2
- package/dist/node_modules/d3-transition/src/selection/transition.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/transition.js +0 -29
- package/dist/node_modules/d3-transition/src/selection/transition.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/attr.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/attr.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/attr.js +0 -50
- package/dist/node_modules/d3-transition/src/transition/attr.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/attrTween.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/attrTween.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +0 -39
- package/dist/node_modules/d3-transition/src/transition/attrTween.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/delay.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/delay.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/delay.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/delay.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/duration.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/duration.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/duration.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/duration.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/ease.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/ease.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/ease.js +0 -15
- package/dist/node_modules/d3-transition/src/transition/ease.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/easeVarying.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/easeVarying.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +0 -16
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/end.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/end.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/end.js +0 -17
- package/dist/node_modules/d3-transition/src/transition/end.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/filter.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/filter.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/filter.js +0 -13
- package/dist/node_modules/d3-transition/src/transition/filter.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/index.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/index.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/index.js +0 -66
- package/dist/node_modules/d3-transition/src/transition/index.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/interpolate.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +0 -12
- package/dist/node_modules/d3-transition/src/transition/interpolate.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/merge.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/merge.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/merge.js +0 -14
- package/dist/node_modules/d3-transition/src/transition/merge.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/on.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/on.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/on.js +0 -22
- package/dist/node_modules/d3-transition/src/transition/on.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/remove.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/remove.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/remove.js +0 -14
- package/dist/node_modules/d3-transition/src/transition/remove.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/schedule.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/schedule.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/schedule.js +0 -86
- package/dist/node_modules/d3-transition/src/transition/schedule.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/select.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/select.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/select.js +0 -15
- package/dist/node_modules/d3-transition/src/transition/select.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/selectAll.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/selectAll.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/selectAll.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/selection.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/selection.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/selection.js +0 -9
- package/dist/node_modules/d3-transition/src/transition/selection.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/style.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/style.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/style.js +0 -46
- package/dist/node_modules/d3-transition/src/transition/style.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/styleTween.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/styleTween.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +0 -24
- package/dist/node_modules/d3-transition/src/transition/styleTween.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/text.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/text.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/text.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/text.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/textTween.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/textTween.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/textTween.js +0 -24
- package/dist/node_modules/d3-transition/src/transition/textTween.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/transition.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/transition.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/transition.js +0 -20
- package/dist/node_modules/d3-transition/src/transition/transition.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/tween.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/tween.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/tween.js +0 -57
- package/dist/node_modules/d3-transition/src/transition/tween.js.map +0 -1
- package/dist/node_modules/internmap/src/index.cjs +0 -2
- package/dist/node_modules/internmap/src/index.cjs.map +0 -1
- package/dist/node_modules/internmap/src/index.js +0 -36
- package/dist/node_modules/internmap/src/index.js.map +0 -1
- package/dist/node_modules/parse-unit/index.cjs +0 -2
- package/dist/node_modules/parse-unit/index.cjs.map +0 -1
- package/dist/node_modules/parse-unit/index.js +0 -12
- package/dist/node_modules/parse-unit/index.js.map +0 -1
- package/dist/node_modules/striptags/src/striptags.cjs +0 -3
- package/dist/node_modules/striptags/src/striptags.cjs.map +0 -1
- package/dist/node_modules/striptags/src/striptags.js +0 -119
- package/dist/node_modules/striptags/src/striptags.js.map +0 -1
- package/dist/node_modules/stylis/src/Enum.cjs +0 -2
- package/dist/node_modules/stylis/src/Enum.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Enum.js +0 -13
- package/dist/node_modules/stylis/src/Enum.js.map +0 -1
- package/dist/node_modules/stylis/src/Middleware.cjs +0 -2
- package/dist/node_modules/stylis/src/Middleware.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Middleware.js +0 -19
- package/dist/node_modules/stylis/src/Middleware.js.map +0 -1
- package/dist/node_modules/stylis/src/Parser.cjs +0 -2
- package/dist/node_modules/stylis/src/Parser.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Parser.js +0 -132
- package/dist/node_modules/stylis/src/Parser.js.map +0 -1
- package/dist/node_modules/stylis/src/Serializer.cjs +0 -2
- package/dist/node_modules/stylis/src/Serializer.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Serializer.js +0 -28
- package/dist/node_modules/stylis/src/Serializer.js.map +0 -1
- package/dist/node_modules/stylis/src/Tokenizer.cjs +0 -2
- package/dist/node_modules/stylis/src/Tokenizer.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Tokenizer.js +0 -142
- package/dist/node_modules/stylis/src/Tokenizer.js.map +0 -1
- package/dist/node_modules/stylis/src/Utility.cjs +0 -2
- package/dist/node_modules/stylis/src/Utility.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Utility.js +0 -51
- package/dist/node_modules/stylis/src/Utility.js.map +0 -1
- package/dist/node_modules/throttle-debounce/esm/index.cjs +0 -2
- package/dist/node_modules/throttle-debounce/esm/index.cjs.map +0 -1
- package/dist/node_modules/throttle-debounce/esm/index.js +0 -29
- package/dist/node_modules/throttle-debounce/esm/index.js.map +0 -1
- package/dist/node_modules/to-px/browser.cjs +0 -2
- package/dist/node_modules/to-px/browser.cjs.map +0 -1
- package/dist/node_modules/to-px/browser.js +0 -64
- package/dist/node_modules/to-px/browser.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/@unovis/ts/components/stacked-bar/index.js"],"sourcesContent":["import { min, max } from 'd3-array';\nimport { XYComponentCore } from '../../core/xy-component/index.js';\nimport { isArray, getNumber, isNumber, getStackedData, getString, isEmpty, clamp, getStackedExtent, getExtent } from '../../utils/data.js';\nimport { roundedRectPath } from '../../utils/path.js';\nimport { smartTransition } from '../../utils/d3.js';\nimport { getColor } from '../../utils/color.js';\nimport { Orientation } from '../../types/position.js';\nimport { StackedBarDefaultConfig } from './config.js';\nimport * as style from './style.js';\nimport { barGroup, barGroupExit, bar } from './style.js';\n\nclass StackedBar extends XYComponentCore {\r\n constructor(config) {\r\n super();\r\n this._defaultConfig = StackedBarDefaultConfig;\r\n this.config = this._defaultConfig;\r\n this.getAccessors = () => (isArray(this.config.y) ? this.config.y : [this.config.y]);\r\n this.stacked = true;\r\n this.events = {};\r\n this._barData = [];\r\n if (config)\r\n this.setConfig(config);\r\n }\r\n get bleed() {\r\n this._barData = this._getVisibleData();\r\n if (this._barData.length === 0)\r\n return { top: 0, bottom: 0, left: 0, right: 0 };\r\n // By default, horizontal orientation is \"flipped\", i.e. the `yDirection` of `XYContainer` is set to `Direction.North`\r\n const isHorizontalAndFlipped = !this.isVertical() && (this.dataScale.range()[0] > this.dataScale.range()[1]);\r\n const dataDomain = this.dataScale.domain();\r\n const halfGroupWidth = this._getBarWidth() / 2;\r\n const dataScaleValues = this._barData.map((d, i) => getNumber(d, this.config.x, i));\r\n const firstDataValue = min(dataScaleValues);\r\n const lastDataValue = max(dataScaleValues);\r\n const firstValuePx = this.dataScale(firstDataValue);\r\n const lastValuePx = this.dataScale(lastDataValue);\r\n const dataDomainRequiredStart = this.dataScale.invert(firstValuePx + (isHorizontalAndFlipped ? halfGroupWidth : -halfGroupWidth));\r\n const dataDomainRequiredEnd = this.dataScale.invert(lastValuePx + (isHorizontalAndFlipped ? -halfGroupWidth : halfGroupWidth));\r\n const bleedPxStart = dataDomainRequiredStart <= dataDomain[0] ? this.dataScale(dataDomain[0]) - this.dataScale(dataDomainRequiredStart) : 0;\r\n const bleedPxEnd = dataDomainRequiredEnd > dataDomain[1] ? this.dataScale(dataDomainRequiredEnd) - this.dataScale(dataDomain[1]) : 0;\r\n return {\r\n top: this.isVertical() ? 0 : (isHorizontalAndFlipped ? -bleedPxEnd : bleedPxStart),\r\n bottom: this.isVertical() ? 0 : (isHorizontalAndFlipped ? -bleedPxStart : bleedPxEnd),\r\n left: this.isVertical() ? bleedPxStart : 0,\r\n right: this.isVertical() ? bleedPxEnd : 0,\r\n };\r\n }\r\n get dataScale() {\r\n return this.isVertical() ? this.xScale : this.yScale;\r\n }\r\n get valueScale() {\r\n return this.isVertical() ? this.yScale : this.xScale;\r\n }\r\n isVertical() {\r\n return this.config.orientation === Orientation.Vertical;\r\n }\r\n _render(customDuration) {\r\n const { config } = this;\r\n const duration = isNumber(customDuration) ? customDuration : config.duration;\r\n const yAccessors = this.getAccessors();\r\n const stacked = getStackedData(this._barData, 0, yAccessors, this._prevNegative);\r\n this._prevNegative = stacked.map(s => !!s.isMostlyNegative);\r\n const barGroups = this.g\r\n .selectAll(`.${barGroup}`)\r\n .data(this._barData, (d, i) => { var _a; return `${(_a = getString(d, config.id, i)) !== null && _a !== void 0 ? _a : i}`; });\r\n const getBarGroupsTransform = (d, i) => {\r\n const v = this.dataScale(getNumber(d, config.x, i));\r\n const x = this.isVertical() ? v : 0;\r\n const y = this.isVertical() ? 0 : v;\r\n return `translate(${x},${y})`;\r\n };\r\n const barGroupsEnter = barGroups.enter().append('g')\r\n .attr('class', barGroup)\r\n .attr('transform', getBarGroupsTransform)\r\n .style('opacity', 1);\r\n const barGroupsMerged = barGroupsEnter.merge(barGroups);\r\n smartTransition(barGroupsMerged, duration)\r\n .attr('transform', getBarGroupsTransform)\r\n .style('opacity', 1);\r\n const barGroupExit$1 = barGroups.exit()\r\n .attr('class', barGroupExit);\r\n smartTransition(barGroupExit$1, duration)\r\n .style('opacity', 0)\r\n .remove();\r\n // Animate bars from exiting groups going down\r\n smartTransition(barGroupExit$1.selectAll(`.${bar}`), duration)\r\n .attr('transform', this.isVertical()\r\n ? `translate(0,${this._height / 3})`\r\n : `translate(${this._width / 6},0)`);\r\n // Render Bars\r\n const bars = barGroupsMerged\r\n .selectAll(`.${bar}`)\r\n .data((d, j) => stacked.map((s, stackIndex) => (Object.assign(Object.assign({}, d), { _index: j, _stacked: s[j], \r\n // Ending bar if the next stack is not the same as the current one\r\n _ending: (stackIndex === stacked.length - 1) ||\r\n ((stackIndex <= stacked.length - 1) && stacked[stackIndex + 1][j][0] !== s[j][1]) }))));\r\n const barsEnter = bars.enter().append('path')\r\n .attr('class', bar)\r\n .attr('d', (d, j) => this._getBarPath(d, j, true))\r\n .style('fill', (d, j) => getColor(d, config.color, j));\r\n const barsMerged = barsEnter.merge(bars);\r\n smartTransition(barsMerged, duration)\r\n .attr('d', (d, j) => this._getBarPath(d, j))\r\n .style('fill', (d, j) => getColor(d, config.color, j))\r\n .style('cursor', (d, j) => getString(d, config.cursor, j));\r\n smartTransition(bars.exit(), duration)\r\n .style('opacity', 0)\r\n .remove();\r\n }\r\n _getBarWidth() {\r\n const { config, datamodel: { data } } = this;\r\n if (isEmpty(data))\r\n return 0;\r\n if (config.barWidth)\r\n return min([config.barWidth, config.barMaxWidth]);\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n const isOrdinal = this.dataScale.bandwidth;\r\n const domain = (this.dataScale.domain ? this.dataScale.domain() : []);\r\n const domainLength = isOrdinal ? domain.length : domain[1] - domain[0];\r\n // If the dataStep property is provided the amount of data elements is calculates as domainLength / dataStep\r\n // otherwise we get the number of data elements within the domain range\r\n // Or if the scale is ordinal we use data.length\r\n let dataSize = (1 + domainLength / config.dataStep) ||\r\n (!isOrdinal && data.filter((d, i) => {\r\n const value = getNumber(d, config.x, i);\r\n return (value >= domain[0]) && (value <= domain[1]);\r\n }).length) ||\r\n data.length;\r\n // We increase the dataSize by 1 to take into account possible additional domain space\r\n if (!isOrdinal && dataSize >= 2)\r\n dataSize += 1;\r\n const c = dataSize < 2 ? 1 : 1 - config.barPadding;\r\n const barWidth = c * (this.isVertical() ? this._width : this._height) / dataSize;\r\n return min([barWidth, config.barMaxWidth]);\r\n }\r\n _getVisibleData() {\r\n const { config, datamodel: { data } } = this;\r\n const groupWidth = this._getBarWidth();\r\n const halfGroupWidthPx = data.length < 2 ? 0 : groupWidth / 2;\r\n const scale = this.dataScale;\r\n const halfGroupWidth = Math.abs(scale.invert(halfGroupWidthPx) - scale.invert(0));\r\n const filtered = data === null || data === void 0 ? void 0 : data.filter((d, i) => {\r\n const v = getNumber(d, config.x, i);\r\n const domain = scale.domain();\r\n const domainMin = +domain[0];\r\n const domainMax = +domain[1];\r\n return (v >= (domainMin - halfGroupWidth)) && (v <= (domainMax + halfGroupWidth));\r\n });\r\n return filtered;\r\n }\r\n _getBarPath(d, accessorIndex, isEntering = false) {\r\n const { config } = this;\r\n const yAccessors = this.getAccessors();\r\n const barWidth = this._getBarWidth();\r\n const isNegative = d._stacked[1] < 0;\r\n const isEnding = d._ending; // The most top bar or, if the value is negative, the most bottom bar\r\n const value = getNumber(d, yAccessors[accessorIndex], d._index);\r\n const height = isEntering ? 0 : Math.abs(this.valueScale(d._stacked[0]) - this.valueScale(d._stacked[1]));\r\n const h = !isEntering && config.barMinHeight1Px && (height < 1) && isFinite(value) && (value !== config.barMinHeightZeroValue) ? 1 : height;\r\n const y = isEntering\r\n ? this.valueScale(0)\r\n : this.valueScale(isNegative ? d._stacked[0] : d._stacked[1]) - (height < 1 && config.barMinHeight1Px ? 1 : 0);\r\n const x = -barWidth / 2;\r\n const width = barWidth;\r\n const cornerRadius = config.roundedCorners\r\n ? isNumber(config.roundedCorners) ? +config.roundedCorners : width / 2\r\n : 0;\r\n const cornerRadiusClamped = clamp(cornerRadius, 0, Math.min(height, width) / 2);\r\n const isNorthDirected = this.yScale.range()[0] > this.yScale.range()[1];\r\n return roundedRectPath({\r\n x: this.isVertical() ? x : y - h,\r\n y: this.isVertical() ? y + (isNorthDirected ? 0 : -h) : x,\r\n w: this.isVertical() ? width : h,\r\n h: this.isVertical() ? h : width,\r\n tl: isEnding && (this.isVertical()\r\n ? (!isNegative && isNorthDirected) || (isNegative && !isNorthDirected)\r\n : isNegative),\r\n tr: isEnding && (this.isVertical()\r\n ? (!isNegative && isNorthDirected) || (isNegative && !isNorthDirected)\r\n : !isNegative),\r\n br: isEnding && (this.isVertical()\r\n ? (isNegative && isNorthDirected) || (!isNegative && !isNorthDirected)\r\n : !isNegative),\r\n bl: isEnding && (this.isVertical()\r\n ? (isNegative && isNorthDirected) || (!isNegative && !isNorthDirected)\r\n : isNegative),\r\n r: cornerRadiusClamped,\r\n });\r\n }\r\n getValueScaleExtent(scaleByVisibleData) {\r\n const { datamodel } = this;\r\n const yAccessors = this.getAccessors();\r\n const data = scaleByVisibleData ? this._getVisibleData() : datamodel.data;\r\n return getStackedExtent(data, ...yAccessors);\r\n }\r\n getDataScaleExtent() {\r\n const { config, datamodel } = this;\r\n return getExtent(datamodel.data, config.x);\r\n }\r\n getYDataExtent(scaleByVisibleData) {\r\n return this.isVertical() ? this.getValueScaleExtent(scaleByVisibleData) : this.getDataScaleExtent();\r\n }\r\n getXDataExtent() {\r\n return this.isVertical() ? this.getDataScaleExtent() : this.getValueScaleExtent(false);\r\n }\r\n}\r\nStackedBar.selectors = style;\n\nexport { StackedBar };\n//# sourceMappingURL=index.js.map\n"],"names":["StackedBar","XYComponentCore","config","StackedBarDefaultConfig","isArray","isHorizontalAndFlipped","dataDomain","halfGroupWidth","dataScaleValues","d","i","getNumber","firstDataValue","min","lastDataValue","max","firstValuePx","lastValuePx","dataDomainRequiredStart","dataDomainRequiredEnd","bleedPxStart","bleedPxEnd","Orientation","customDuration","duration","isNumber","yAccessors","stacked","getStackedData","s","barGroups","barGroup","_a","getString","getBarGroupsTransform","v","x","y","barGroupsMerged","smartTransition","barGroupExit$1","barGroupExit","bar","bars","j","stackIndex","barsMerged","getColor","data","isEmpty","isOrdinal","domain","dataSize","value","barWidth","groupWidth","halfGroupWidthPx","scale","domainMin","domainMax","accessorIndex","isEntering","isNegative","isEnding","height","h","width","cornerRadius","cornerRadiusClamped","clamp","isNorthDirected","roundedRectPath","scaleByVisibleData","datamodel","getStackedExtent","getExtent","style"],"mappings":"icAWA,MAAMA,UAAmBC,EAAAA,eAAgB,CACrC,YAAYC,EAAQ,CAChB,QACA,KAAK,eAAiBC,0BACtB,KAAK,OAAS,KAAK,eACnB,KAAK,aAAe,IAAOC,EAAAA,QAAQ,KAAK,OAAO,CAAC,EAAI,KAAK,OAAO,EAAI,CAAC,KAAK,OAAO,CAAC,EAClF,KAAK,QAAU,GACf,KAAK,OAAS,GACd,KAAK,SAAW,GACZF,GACA,KAAK,UAAUA,CAAM,CAC5B,CACD,IAAI,OAAQ,CAER,GADA,KAAK,SAAW,KAAK,kBACjB,KAAK,SAAS,SAAW,EACzB,MAAO,CAAE,IAAK,EAAG,OAAQ,EAAG,KAAM,EAAG,MAAO,GAEhD,MAAMG,EAAyB,CAAC,KAAK,WAAU,GAAO,KAAK,UAAU,MAAO,EAAC,CAAC,EAAI,KAAK,UAAU,MAAO,EAAC,CAAC,EACpGC,EAAa,KAAK,UAAU,OAAM,EAClCC,EAAiB,KAAK,aAAY,EAAK,EACvCC,EAAkB,KAAK,SAAS,IAAI,CAACC,EAAGC,IAAMC,EAAAA,UAAUF,EAAG,KAAK,OAAO,EAAGC,CAAC,CAAC,EAC5EE,EAAiBC,UAAIL,CAAe,EACpCM,EAAgBC,UAAIP,CAAe,EACnCQ,EAAe,KAAK,UAAUJ,CAAc,E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GAAGtB,CAAU,CAC9C,CACD,oBAAqB,CACjB,KAAM,CAAE,OAAAxB,EAAQ,UAAAuE,CAAW,EAAG,KAC9B,OAAOE,EAAS,UAACF,EAAU,KAAMvE,EAAO,CAAC,CAC5C,CACD,eAAesE,EAAoB,CAC/B,OAAO,KAAK,WAAU,EAAK,KAAK,oBAAoBA,CAAkB,EAAI,KAAK,oBAClF,CACD,gBAAiB,CACb,OAAO,KAAK,WAAU,EAAK,KAAK,mBAAkB,EAAK,KAAK,oBAAoB,EAAK,CACxF,CACL,CACAxE,EAAW,UAAY4E","x_google_ignoreList":[0]}
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
import { XYComponentCore as W } from "../../core/xy-component/index.js";
|
|
2
|
-
import { isArray as M, getNumber as b, isNumber as V, getStackedData as A, getString as y, isEmpty as P, getStackedExtent as C, getExtent as G, clamp as k } from "../../utils/data.js";
|
|
3
|
-
import { roundedRectPath as B } from "../../utils/path.js";
|
|
4
|
-
import { smartTransition as S } from "../../utils/d3.js";
|
|
5
|
-
import { getColor as v } from "../../utils/color.js";
|
|
6
|
-
import { Orientation as $ } from "../../types/position.js";
|
|
7
|
-
import { StackedBarDefaultConfig as N } from "./config.js";
|
|
8
|
-
import * as w from "./style.js";
|
|
9
|
-
import { barGroup as D, barGroupExit as R, bar as x } from "./style.js";
|
|
10
|
-
import _ from "../../../../d3-array/src/min.js";
|
|
11
|
-
import H from "../../../../d3-array/src/max.js";
|
|
12
|
-
class O extends W {
|
|
13
|
-
constructor(t) {
|
|
14
|
-
super(), this._defaultConfig = N, this.config = this._defaultConfig, this.getAccessors = () => M(this.config.y) ? this.config.y : [this.config.y], this.stacked = !0, this.events = {}, this._barData = [], t && this.setConfig(t);
|
|
15
|
-
}
|
|
16
|
-
get bleed() {
|
|
17
|
-
if (this._barData = this._getVisibleData(), this._barData.length === 0)
|
|
18
|
-
return { top: 0, bottom: 0, left: 0, right: 0 };
|
|
19
|
-
const t = !this.isVertical() && this.dataScale.range()[0] > this.dataScale.range()[1], a = this.dataScale.domain(), s = this._getBarWidth() / 2, i = this._barData.map((p, e) => b(p, this.config.x, e)), d = _(i), c = H(i), n = this.dataScale(d), u = this.dataScale(c), g = this.dataScale.invert(n + (t ? s : -s)), l = this.dataScale.invert(u + (t ? -s : s)), o = g <= a[0] ? this.dataScale(a[0]) - this.dataScale(g) : 0, f = l > a[1] ? this.dataScale(l) - this.dataScale(a[1]) : 0;
|
|
20
|
-
return {
|
|
21
|
-
top: this.isVertical() ? 0 : t ? -f : o,
|
|
22
|
-
bottom: this.isVertical() ? 0 : t ? -o : f,
|
|
23
|
-
left: this.isVertical() ? o : 0,
|
|
24
|
-
right: this.isVertical() ? f : 0
|
|
25
|
-
};
|
|
26
|
-
}
|
|
27
|
-
get dataScale() {
|
|
28
|
-
return this.isVertical() ? this.xScale : this.yScale;
|
|
29
|
-
}
|
|
30
|
-
get valueScale() {
|
|
31
|
-
return this.isVertical() ? this.yScale : this.xScale;
|
|
32
|
-
}
|
|
33
|
-
isVertical() {
|
|
34
|
-
return this.config.orientation === $.Vertical;
|
|
35
|
-
}
|
|
36
|
-
_render(t) {
|
|
37
|
-
const { config: a } = this, s = V(t) ? t : a.duration, i = this.getAccessors(), d = A(this._barData, 0, i, this._prevNegative);
|
|
38
|
-
this._prevNegative = d.map((e) => !!e.isMostlyNegative);
|
|
39
|
-
const c = this.g.selectAll(`.${D}`).data(this._barData, (e, r) => {
|
|
40
|
-
var m;
|
|
41
|
-
return `${(m = y(e, a.id, r)) !== null && m !== void 0 ? m : r}`;
|
|
42
|
-
}), n = (e, r) => {
|
|
43
|
-
const m = this.dataScale(b(e, a.x, r)), h = this.isVertical() ? m : 0, E = this.isVertical() ? 0 : m;
|
|
44
|
-
return `translate(${h},${E})`;
|
|
45
|
-
}, g = c.enter().append("g").attr("class", D).attr("transform", n).style("opacity", 1).merge(c);
|
|
46
|
-
S(g, s).attr("transform", n).style("opacity", 1);
|
|
47
|
-
const l = c.exit().attr("class", R);
|
|
48
|
-
S(l, s).style("opacity", 0).remove(), S(l.selectAll(`.${x}`), s).attr("transform", this.isVertical() ? `translate(0,${this._height / 3})` : `translate(${this._width / 6},0)`);
|
|
49
|
-
const o = g.selectAll(`.${x}`).data((e, r) => d.map((m, h) => Object.assign(Object.assign({}, e), {
|
|
50
|
-
_index: r,
|
|
51
|
-
_stacked: m[r],
|
|
52
|
-
// Ending bar if the next stack is not the same as the current one
|
|
53
|
-
_ending: h === d.length - 1 || h <= d.length - 1 && d[h + 1][r][0] !== m[r][1]
|
|
54
|
-
}))), p = o.enter().append("path").attr("class", x).attr("d", (e, r) => this._getBarPath(e, r, !0)).style("fill", (e, r) => v(e, a.color, r)).merge(o);
|
|
55
|
-
S(p, s).attr("d", (e, r) => this._getBarPath(e, r)).style("fill", (e, r) => v(e, a.color, r)).style("cursor", (e, r) => y(e, a.cursor, r)), S(o.exit(), s).style("opacity", 0).remove();
|
|
56
|
-
}
|
|
57
|
-
_getBarWidth() {
|
|
58
|
-
const { config: t, datamodel: { data: a } } = this;
|
|
59
|
-
if (P(a))
|
|
60
|
-
return 0;
|
|
61
|
-
if (t.barWidth)
|
|
62
|
-
return _([t.barWidth, t.barMaxWidth]);
|
|
63
|
-
const s = this.dataScale.bandwidth, i = this.dataScale.domain ? this.dataScale.domain() : [];
|
|
64
|
-
let c = 1 + (s ? i.length : i[1] - i[0]) / t.dataStep || !s && a.filter((g, l) => {
|
|
65
|
-
const o = b(g, t.x, l);
|
|
66
|
-
return o >= i[0] && o <= i[1];
|
|
67
|
-
}).length || a.length;
|
|
68
|
-
!s && c >= 2 && (c += 1);
|
|
69
|
-
const u = (c < 2 ? 1 : 1 - t.barPadding) * (this.isVertical() ? this._width : this._height) / c;
|
|
70
|
-
return _([u, t.barMaxWidth]);
|
|
71
|
-
}
|
|
72
|
-
_getVisibleData() {
|
|
73
|
-
const { config: t, datamodel: { data: a } } = this, s = this._getBarWidth(), i = a.length < 2 ? 0 : s / 2, d = this.dataScale, c = Math.abs(d.invert(i) - d.invert(0));
|
|
74
|
-
return a == null ? void 0 : a.filter((u, g) => {
|
|
75
|
-
const l = b(u, t.x, g), o = d.domain(), f = +o[0], p = +o[1];
|
|
76
|
-
return l >= f - c && l <= p + c;
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
_getBarPath(t, a, s = !1) {
|
|
80
|
-
const { config: i } = this, d = this.getAccessors(), c = this._getBarWidth(), n = t._stacked[1] < 0, u = t._ending, g = b(t, d[a], t._index), l = s ? 0 : Math.abs(this.valueScale(t._stacked[0]) - this.valueScale(t._stacked[1])), o = !s && i.barMinHeight1Px && l < 1 && isFinite(g) && g !== i.barMinHeightZeroValue ? 1 : l, f = s ? this.valueScale(0) : this.valueScale(n ? t._stacked[0] : t._stacked[1]) - (l < 1 && i.barMinHeight1Px ? 1 : 0), p = -c / 2, e = c, r = i.roundedCorners ? V(i.roundedCorners) ? +i.roundedCorners : e / 2 : 0, m = k(r, 0, Math.min(l, e) / 2), h = this.yScale.range()[0] > this.yScale.range()[1];
|
|
81
|
-
return B({
|
|
82
|
-
x: this.isVertical() ? p : f - o,
|
|
83
|
-
y: this.isVertical() ? f + (h ? 0 : -o) : p,
|
|
84
|
-
w: this.isVertical() ? e : o,
|
|
85
|
-
h: this.isVertical() ? o : e,
|
|
86
|
-
tl: u && (this.isVertical() ? !n && h || n && !h : n),
|
|
87
|
-
tr: u && (this.isVertical() ? !n && h || n && !h : !n),
|
|
88
|
-
br: u && (this.isVertical() ? n && h || !n && !h : !n),
|
|
89
|
-
bl: u && (this.isVertical() ? n && h || !n && !h : n),
|
|
90
|
-
r: m
|
|
91
|
-
});
|
|
92
|
-
}
|
|
93
|
-
getValueScaleExtent(t) {
|
|
94
|
-
const { datamodel: a } = this, s = this.getAccessors(), i = t ? this._getVisibleData() : a.data;
|
|
95
|
-
return C(i, ...s);
|
|
96
|
-
}
|
|
97
|
-
getDataScaleExtent() {
|
|
98
|
-
const { config: t, datamodel: a } = this;
|
|
99
|
-
return G(a.data, t.x);
|
|
100
|
-
}
|
|
101
|
-
getYDataExtent(t) {
|
|
102
|
-
return this.isVertical() ? this.getValueScaleExtent(t) : this.getDataScaleExtent();
|
|
103
|
-
}
|
|
104
|
-
getXDataExtent() {
|
|
105
|
-
return this.isVertical() ? this.getDataScaleExtent() : this.getValueScaleExtent(!1);
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
O.selectors = w;
|
|
109
|
-
export {
|
|
110
|
-
O as StackedBar
|
|
111
|
-
};
|
|
112
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@unovis/ts/components/stacked-bar/index.js"],"sourcesContent":["import { min, max } from 'd3-array';\nimport { XYComponentCore } from '../../core/xy-component/index.js';\nimport { isArray, getNumber, isNumber, getStackedData, getString, isEmpty, clamp, getStackedExtent, getExtent } from '../../utils/data.js';\nimport { roundedRectPath } from '../../utils/path.js';\nimport { smartTransition } from '../../utils/d3.js';\nimport { getColor } from '../../utils/color.js';\nimport { Orientation } from '../../types/position.js';\nimport { StackedBarDefaultConfig } from './config.js';\nimport * as style from './style.js';\nimport { barGroup, barGroupExit, bar } from './style.js';\n\nclass StackedBar extends XYComponentCore {\r\n constructor(config) {\r\n super();\r\n this._defaultConfig = StackedBarDefaultConfig;\r\n this.config = this._defaultConfig;\r\n this.getAccessors = () => (isArray(this.config.y) ? this.config.y : [this.config.y]);\r\n this.stacked = true;\r\n this.events = {};\r\n this._barData = [];\r\n if (config)\r\n this.setConfig(config);\r\n }\r\n get bleed() {\r\n this._barData = this._getVisibleData();\r\n if (this._barData.length === 0)\r\n return { top: 0, bottom: 0, left: 0, right: 0 };\r\n // By default, horizontal orientation is \"flipped\", i.e. the `yDirection` of `XYContainer` is set to `Direction.North`\r\n const isHorizontalAndFlipped = !this.isVertical() && (this.dataScale.range()[0] > this.dataScale.range()[1]);\r\n const dataDomain = this.dataScale.domain();\r\n const halfGroupWidth = this._getBarWidth() / 2;\r\n const dataScaleValues = this._barData.map((d, i) => getNumber(d, this.config.x, i));\r\n const firstDataValue = min(dataScaleValues);\r\n const lastDataValue = max(dataScaleValues);\r\n const firstValuePx = this.dataScale(firstDataValue);\r\n const lastValuePx = this.dataScale(lastDataValue);\r\n const dataDomainRequiredStart = this.dataScale.invert(firstValuePx + (isHorizontalAndFlipped ? halfGroupWidth : -halfGroupWidth));\r\n const dataDomainRequiredEnd = this.dataScale.invert(lastValuePx + (isHorizontalAndFlipped ? -halfGroupWidth : halfGroupWidth));\r\n const bleedPxStart = dataDomainRequiredStart <= dataDomain[0] ? this.dataScale(dataDomain[0]) - this.dataScale(dataDomainRequiredStart) : 0;\r\n const bleedPxEnd = dataDomainRequiredEnd > dataDomain[1] ? this.dataScale(dataDomainRequiredEnd) - this.dataScale(dataDomain[1]) : 0;\r\n return {\r\n top: this.isVertical() ? 0 : (isHorizontalAndFlipped ? -bleedPxEnd : bleedPxStart),\r\n bottom: this.isVertical() ? 0 : (isHorizontalAndFlipped ? -bleedPxStart : bleedPxEnd),\r\n left: this.isVertical() ? bleedPxStart : 0,\r\n right: this.isVertical() ? bleedPxEnd : 0,\r\n };\r\n }\r\n get dataScale() {\r\n return this.isVertical() ? this.xScale : this.yScale;\r\n }\r\n get valueScale() {\r\n return this.isVertical() ? this.yScale : this.xScale;\r\n }\r\n isVertical() {\r\n return this.config.orientation === Orientation.Vertical;\r\n }\r\n _render(customDuration) {\r\n const { config } = this;\r\n const duration = isNumber(customDuration) ? customDuration : config.duration;\r\n const yAccessors = this.getAccessors();\r\n const stacked = getStackedData(this._barData, 0, yAccessors, this._prevNegative);\r\n this._prevNegative = stacked.map(s => !!s.isMostlyNegative);\r\n const barGroups = this.g\r\n .selectAll(`.${barGroup}`)\r\n .data(this._barData, (d, i) => { var _a; return `${(_a = getString(d, config.id, i)) !== null && _a !== void 0 ? _a : i}`; });\r\n const getBarGroupsTransform = (d, i) => {\r\n const v = this.dataScale(getNumber(d, config.x, i));\r\n const x = this.isVertical() ? v : 0;\r\n const y = this.isVertical() ? 0 : v;\r\n return `translate(${x},${y})`;\r\n };\r\n const barGroupsEnter = barGroups.enter().append('g')\r\n .attr('class', barGroup)\r\n .attr('transform', getBarGroupsTransform)\r\n .style('opacity', 1);\r\n const barGroupsMerged = barGroupsEnter.merge(barGroups);\r\n smartTransition(barGroupsMerged, duration)\r\n .attr('transform', getBarGroupsTransform)\r\n .style('opacity', 1);\r\n const barGroupExit$1 = barGroups.exit()\r\n .attr('class', barGroupExit);\r\n smartTransition(barGroupExit$1, duration)\r\n .style('opacity', 0)\r\n .remove();\r\n // Animate bars from exiting groups going down\r\n smartTransition(barGroupExit$1.selectAll(`.${bar}`), duration)\r\n .attr('transform', this.isVertical()\r\n ? `translate(0,${this._height / 3})`\r\n : `translate(${this._width / 6},0)`);\r\n // Render Bars\r\n const bars = barGroupsMerged\r\n .selectAll(`.${bar}`)\r\n .data((d, j) => stacked.map((s, stackIndex) => (Object.assign(Object.assign({}, d), { _index: j, _stacked: s[j], \r\n // Ending bar if the next stack is not the same as the current one\r\n _ending: (stackIndex === stacked.length - 1) ||\r\n ((stackIndex <= stacked.length - 1) && stacked[stackIndex + 1][j][0] !== s[j][1]) }))));\r\n const barsEnter = bars.enter().append('path')\r\n .attr('class', bar)\r\n .attr('d', (d, j) => this._getBarPath(d, j, true))\r\n .style('fill', (d, j) => getColor(d, config.color, j));\r\n const barsMerged = barsEnter.merge(bars);\r\n smartTransition(barsMerged, duration)\r\n .attr('d', (d, j) => this._getBarPath(d, j))\r\n .style('fill', (d, j) => getColor(d, config.color, j))\r\n .style('cursor', (d, j) => getString(d, config.cursor, j));\r\n smartTransition(bars.exit(), duration)\r\n .style('opacity', 0)\r\n .remove();\r\n }\r\n _getBarWidth() {\r\n const { config, datamodel: { data } } = this;\r\n if (isEmpty(data))\r\n return 0;\r\n if (config.barWidth)\r\n return min([config.barWidth, config.barMaxWidth]);\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n const isOrdinal = this.dataScale.bandwidth;\r\n const domain = (this.dataScale.domain ? this.dataScale.domain() : []);\r\n const domainLength = isOrdinal ? domain.length : domain[1] - domain[0];\r\n // If the dataStep property is provided the amount of data elements is calculates as domainLength / dataStep\r\n // otherwise we get the number of data elements within the domain range\r\n // Or if the scale is ordinal we use data.length\r\n let dataSize = (1 + domainLength / config.dataStep) ||\r\n (!isOrdinal && data.filter((d, i) => {\r\n const value = getNumber(d, config.x, i);\r\n return (value >= domain[0]) && (value <= domain[1]);\r\n }).length) ||\r\n data.length;\r\n // We increase the dataSize by 1 to take into account possible additional domain space\r\n if (!isOrdinal && dataSize >= 2)\r\n dataSize += 1;\r\n const c = dataSize < 2 ? 1 : 1 - config.barPadding;\r\n const barWidth = c * (this.isVertical() ? this._width : this._height) / dataSize;\r\n return min([barWidth, config.barMaxWidth]);\r\n }\r\n _getVisibleData() {\r\n const { config, datamodel: { data } } = this;\r\n const groupWidth = this._getBarWidth();\r\n const halfGroupWidthPx = data.length < 2 ? 0 : groupWidth / 2;\r\n const scale = this.dataScale;\r\n const halfGroupWidth = Math.abs(scale.invert(halfGroupWidthPx) - scale.invert(0));\r\n const filtered = data === null || data === void 0 ? void 0 : data.filter((d, i) => {\r\n const v = getNumber(d, config.x, i);\r\n const domain = scale.domain();\r\n const domainMin = +domain[0];\r\n const domainMax = +domain[1];\r\n return (v >= (domainMin - halfGroupWidth)) && (v <= (domainMax + halfGroupWidth));\r\n });\r\n return filtered;\r\n }\r\n _getBarPath(d, accessorIndex, isEntering = false) {\r\n const { config } = this;\r\n const yAccessors = this.getAccessors();\r\n const barWidth = this._getBarWidth();\r\n const isNegative = d._stacked[1] < 0;\r\n const isEnding = d._ending; // The most top bar or, if the value is negative, the most bottom bar\r\n const value = getNumber(d, yAccessors[accessorIndex], d._index);\r\n const height = isEntering ? 0 : Math.abs(this.valueScale(d._stacked[0]) - this.valueScale(d._stacked[1]));\r\n const h = !isEntering && config.barMinHeight1Px && (height < 1) && isFinite(value) && (value !== config.barMinHeightZeroValue) ? 1 : height;\r\n const y = isEntering\r\n ? this.valueScale(0)\r\n : this.valueScale(isNegative ? d._stacked[0] : d._stacked[1]) - (height < 1 && config.barMinHeight1Px ? 1 : 0);\r\n const x = -barWidth / 2;\r\n const width = barWidth;\r\n const cornerRadius = config.roundedCorners\r\n ? isNumber(config.roundedCorners) ? +config.roundedCorners : width / 2\r\n : 0;\r\n const cornerRadiusClamped = clamp(cornerRadius, 0, Math.min(height, width) / 2);\r\n const isNorthDirected = this.yScale.range()[0] > this.yScale.range()[1];\r\n return roundedRectPath({\r\n x: this.isVertical() ? x : y - h,\r\n y: this.isVertical() ? y + (isNorthDirected ? 0 : -h) : x,\r\n w: this.isVertical() ? width : h,\r\n h: this.isVertical() ? h : width,\r\n tl: isEnding && (this.isVertical()\r\n ? (!isNegative && isNorthDirected) || (isNegative && !isNorthDirected)\r\n : isNegative),\r\n tr: isEnding && (this.isVertical()\r\n ? (!isNegative && isNorthDirected) || (isNegative && !isNorthDirected)\r\n : !isNegative),\r\n br: isEnding && (this.isVertical()\r\n ? (isNegative && isNorthDirected) || (!isNegative && !isNorthDirected)\r\n : !isNegative),\r\n bl: isEnding && (this.isVertical()\r\n ? (isNegative && isNorthDirected) || (!isNegative && !isNorthDirected)\r\n : isNegative),\r\n r: cornerRadiusClamped,\r\n });\r\n }\r\n getValueScaleExtent(scaleByVisibleData) {\r\n const { datamodel } = this;\r\n const yAccessors = this.getAccessors();\r\n const data = scaleByVisibleData ? this._getVisibleData() : datamodel.data;\r\n return getStackedExtent(data, ...yAccessors);\r\n }\r\n getDataScaleExtent() {\r\n const { config, datamodel } = this;\r\n return getExtent(datamodel.data, config.x);\r\n }\r\n getYDataExtent(scaleByVisibleData) {\r\n return this.isVertical() ? this.getValueScaleExtent(scaleByVisibleData) : this.getDataScaleExtent();\r\n }\r\n getXDataExtent() {\r\n return this.isVertical() ? this.getDataScaleExtent() : this.getValueScaleExtent(false);\r\n }\r\n}\r\nStackedBar.selectors = style;\n\nexport { StackedBar };\n//# sourceMappingURL=index.js.map\n"],"names":["StackedBar","XYComponentCore","config","StackedBarDefaultConfig","isArray","isHorizontalAndFlipped","dataDomain","halfGroupWidth","dataScaleValues","d","i","getNumber","firstDataValue","min","lastDataValue","max","firstValuePx","lastValuePx","dataDomainRequiredStart","dataDomainRequiredEnd","bleedPxStart","bleedPxEnd","Orientation","customDuration","duration","isNumber","yAccessors","stacked","getStackedData","s","barGroups","barGroup","_a","getString","getBarGroupsTransform","v","x","y","barGroupsMerged","smartTransition","barGroupExit$1","barGroupExit","bar","bars","j","stackIndex","barsMerged","getColor","data","isEmpty","isOrdinal","domain","dataSize","value","barWidth","groupWidth","halfGroupWidthPx","scale","domainMin","domainMax","accessorIndex","isEntering","isNegative","isEnding","height","h","width","cornerRadius","cornerRadiusClamped","clamp","isNorthDirected","roundedRectPath","scaleByVisibleData","datamodel","getStackedExtent","getExtent","style"],"mappings":";;;;;;;;;;;AAWA,MAAMA,UAAmBC,EAAgB;AAAA,EACrC,YAAYC,GAAQ;AAChB,aACA,KAAK,iBAAiBC,GACtB,KAAK,SAAS,KAAK,gBACnB,KAAK,eAAe,MAAOC,EAAQ,KAAK,OAAO,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,KAAK,OAAO,CAAC,GAClF,KAAK,UAAU,IACf,KAAK,SAAS,IACd,KAAK,WAAW,IACZF,KACA,KAAK,UAAUA,CAAM;AAAA,EAC5B;AAAA,EACD,IAAI,QAAQ;AAER,QADA,KAAK,WAAW,KAAK,mBACjB,KAAK,SAAS,WAAW;AACzB,aAAO,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAAO;AAEhD,UAAMG,IAAyB,CAAC,KAAK,WAAU,KAAO,KAAK,UAAU,MAAO,EAAC,CAAC,IAAI,KAAK,UAAU,MAAO,EAAC,CAAC,GACpGC,IAAa,KAAK,UAAU,OAAM,GAClCC,IAAiB,KAAK,aAAY,IAAK,GACvCC,IAA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R;AAAA,MACP,IAAIC,MAAa,KAAK,WAAY,IAC3BD,KAAcQ,KAAqB,CAACR,KAAc,CAACQ,IACpDR;AAAA,MACN,GAAGM;AAAA,IACf,CAAS;AAAA,EACJ;AAAA,EACD,oBAAoBI,GAAoB;AACpC,UAAM,EAAE,WAAAC,EAAW,IAAG,MAChB/C,IAAa,KAAK,gBAClBsB,IAAOwB,IAAqB,KAAK,gBAAiB,IAAGC,EAAU;AACrE,WAAOC,EAAiB1B,GAAM,GAAGtB,CAAU;AAAA,EAC9C;AAAA,EACD,qBAAqB;AACjB,UAAM,EAAE,QAAAxB,GAAQ,WAAAuE,EAAW,IAAG;AAC9B,WAAOE,EAAUF,EAAU,MAAMvE,EAAO,CAAC;AAAA,EAC5C;AAAA,EACD,eAAesE,GAAoB;AAC/B,WAAO,KAAK,WAAU,IAAK,KAAK,oBAAoBA,CAAkB,IAAI,KAAK;EAClF;AAAA,EACD,iBAAiB;AACb,WAAO,KAAK,WAAU,IAAK,KAAK,mBAAkB,IAAK,KAAK,oBAAoB,EAAK;AAAA,EACxF;AACL;AACAxE,EAAW,YAAY4E;","x_google_ignoreList":[0]}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const r=require("../../../../@emotion/css/dist/emotion-css.esm.cjs"),o=r.css`
|
|
2
|
-
label: stacked-bar-component;
|
|
3
|
-
`,s=r.injectGlobal`
|
|
4
|
-
:root {
|
|
5
|
-
--vis-stacked-bar-cursor: default;
|
|
6
|
-
--vis-stacked-bar-fill-color: var(--vis-color-main);
|
|
7
|
-
--vis-stacked-bar-stroke-color: none;
|
|
8
|
-
--vis-stacked-bar-stroke-width: 0px;
|
|
9
|
-
--vis-stacked-bar-hover-stroke-width: none;
|
|
10
|
-
--vis-stacked-bar-hover-stroke-color: none;
|
|
11
|
-
|
|
12
|
-
/* Dark Theme */
|
|
13
|
-
--vis-dark-stacked-bar-stroke-color: none;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
body.theme-dark ${`.${o}`} {
|
|
17
|
-
--vis-stacked-bar-stroke-color: var(--vis-dark-stacked-bar-stroke-color);
|
|
18
|
-
}
|
|
19
|
-
`,a=r.css`
|
|
20
|
-
label: bar;
|
|
21
|
-
fill: var(--vis-stacked-bar-fill-color);
|
|
22
|
-
stroke: var(--vis-stacked-bar-stroke-color);
|
|
23
|
-
stroke-width: var(--vis-stacked-bar-stroke-width);
|
|
24
|
-
cursor: var(--vis-stacked-bar-cursor);
|
|
25
|
-
|
|
26
|
-
&:hover {
|
|
27
|
-
stroke-width: var(--vis-stacked-bar-hover-stroke-width);
|
|
28
|
-
stroke: var(--vis-stacked-bar-hover-stroke-color);
|
|
29
|
-
}
|
|
30
|
-
`,e=r.css`
|
|
31
|
-
label: barGroup;
|
|
32
|
-
`,t=r.css`
|
|
33
|
-
label: barGroupExit;
|
|
34
|
-
`;exports.bar=a;exports.barGroup=e;exports.barGroupExit=t;exports.globalStyles=s;exports.root=o;
|
|
35
|
-
//# sourceMappingURL=style.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.cjs","sources":["../../../../../../node_modules/@unovis/ts/components/stacked-bar/style.js"],"sourcesContent":["import { css, injectGlobal } from '@emotion/css';\n\nconst root = css `\n label: stacked-bar-component;\n`;\r\nconst globalStyles = injectGlobal `\n :root {\n --vis-stacked-bar-cursor: default;\n --vis-stacked-bar-fill-color: var(--vis-color-main);\n --vis-stacked-bar-stroke-color: none;\n --vis-stacked-bar-stroke-width: 0px;\n --vis-stacked-bar-hover-stroke-width: none;\n --vis-stacked-bar-hover-stroke-color: none;\n\n /* Dark Theme */\n --vis-dark-stacked-bar-stroke-color: none;\n }\n\n body.theme-dark ${`.${root}`} {\n --vis-stacked-bar-stroke-color: var(--vis-dark-stacked-bar-stroke-color);\n }\n`;\r\nconst bar = css `\n label: bar;\n fill: var(--vis-stacked-bar-fill-color);\n stroke: var(--vis-stacked-bar-stroke-color);\n stroke-width: var(--vis-stacked-bar-stroke-width);\n cursor: var(--vis-stacked-bar-cursor);\n\n &:hover {\n stroke-width: var(--vis-stacked-bar-hover-stroke-width);\n stroke: var(--vis-stacked-bar-hover-stroke-color);\n }\n`;\r\nconst barGroup = css `\n label: barGroup;\n`;\r\nconst barGroupExit = css `\n label: barGroupExit;\n`;\n\nexport { bar, barGroup, barGroupExit, globalStyles, root };\n//# sourceMappingURL=style.js.map\n"],"names":["root","css","globalStyles","injectGlobal","bar","barGroup","barGroupExit"],"mappings":"qJAEMA,EAAOC,EAAAA;AAAAA;AAAAA,EAGPC,EAAeC,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,oBAaD,IAAIH,CAAI,EAAE;AAAA;AAAA;AAAA,EAIxBI,EAAMH,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,EAYNI,EAAWJ,EAAAA;AAAAA;AAAAA,EAGXK,EAAeL,EAAAA;AAAAA;AAAAA","x_google_ignoreList":[0]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { css as r, injectGlobal as o } from "../../../../@emotion/css/dist/emotion-css.esm.js";
|
|
2
|
-
const a = r`
|
|
3
|
-
label: stacked-bar-component;
|
|
4
|
-
`, e = o`
|
|
5
|
-
:root {
|
|
6
|
-
--vis-stacked-bar-cursor: default;
|
|
7
|
-
--vis-stacked-bar-fill-color: var(--vis-color-main);
|
|
8
|
-
--vis-stacked-bar-stroke-color: none;
|
|
9
|
-
--vis-stacked-bar-stroke-width: 0px;
|
|
10
|
-
--vis-stacked-bar-hover-stroke-width: none;
|
|
11
|
-
--vis-stacked-bar-hover-stroke-color: none;
|
|
12
|
-
|
|
13
|
-
/* Dark Theme */
|
|
14
|
-
--vis-dark-stacked-bar-stroke-color: none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
body.theme-dark ${`.${a}`} {
|
|
18
|
-
--vis-stacked-bar-stroke-color: var(--vis-dark-stacked-bar-stroke-color);
|
|
19
|
-
}
|
|
20
|
-
`, t = r`
|
|
21
|
-
label: bar;
|
|
22
|
-
fill: var(--vis-stacked-bar-fill-color);
|
|
23
|
-
stroke: var(--vis-stacked-bar-stroke-color);
|
|
24
|
-
stroke-width: var(--vis-stacked-bar-stroke-width);
|
|
25
|
-
cursor: var(--vis-stacked-bar-cursor);
|
|
26
|
-
|
|
27
|
-
&:hover {
|
|
28
|
-
stroke-width: var(--vis-stacked-bar-hover-stroke-width);
|
|
29
|
-
stroke: var(--vis-stacked-bar-hover-stroke-color);
|
|
30
|
-
}
|
|
31
|
-
`, c = r`
|
|
32
|
-
label: barGroup;
|
|
33
|
-
`, k = r`
|
|
34
|
-
label: barGroupExit;
|
|
35
|
-
`;
|
|
36
|
-
export {
|
|
37
|
-
t as bar,
|
|
38
|
-
c as barGroup,
|
|
39
|
-
k as barGroupExit,
|
|
40
|
-
e as globalStyles,
|
|
41
|
-
a as root
|
|
42
|
-
};
|
|
43
|
-
//# sourceMappingURL=style.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sources":["../../../../../../node_modules/@unovis/ts/components/stacked-bar/style.js"],"sourcesContent":["import { css, injectGlobal } from '@emotion/css';\n\nconst root = css `\n label: stacked-bar-component;\n`;\r\nconst globalStyles = injectGlobal `\n :root {\n --vis-stacked-bar-cursor: default;\n --vis-stacked-bar-fill-color: var(--vis-color-main);\n --vis-stacked-bar-stroke-color: none;\n --vis-stacked-bar-stroke-width: 0px;\n --vis-stacked-bar-hover-stroke-width: none;\n --vis-stacked-bar-hover-stroke-color: none;\n\n /* Dark Theme */\n --vis-dark-stacked-bar-stroke-color: none;\n }\n\n body.theme-dark ${`.${root}`} {\n --vis-stacked-bar-stroke-color: var(--vis-dark-stacked-bar-stroke-color);\n }\n`;\r\nconst bar = css `\n label: bar;\n fill: var(--vis-stacked-bar-fill-color);\n stroke: var(--vis-stacked-bar-stroke-color);\n stroke-width: var(--vis-stacked-bar-stroke-width);\n cursor: var(--vis-stacked-bar-cursor);\n\n &:hover {\n stroke-width: var(--vis-stacked-bar-hover-stroke-width);\n stroke: var(--vis-stacked-bar-hover-stroke-color);\n }\n`;\r\nconst barGroup = css `\n label: barGroup;\n`;\r\nconst barGroupExit = css `\n label: barGroupExit;\n`;\n\nexport { bar, barGroup, barGroupExit, globalStyles, root };\n//# sourceMappingURL=style.js.map\n"],"names":["root","css","globalStyles","injectGlobal","bar","barGroup","barGroupExit"],"mappings":";AAEK,MAACA,IAAOC;AAAA;AAAA,GAGPC,IAAeC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAaD,IAAIH,CAAI,EAAE;AAAA;AAAA;AAAA,GAIxBI,IAAMH;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAYNI,IAAWJ;AAAA;AAAA,GAGXK,IAAeL;AAAA;AAAA;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const o=require("../../types/position.cjs"),t={components:[],container:void 0,followCursor:!0,allowHover:!0,horizontalPlacement:o.Position.Auto,horizontalShift:0,verticalPlacement:o.Position.Top,verticalShift:0,attributes:{},triggers:{},className:void 0};exports.TooltipDefaultConfig=t;
|
|
2
|
-
//# sourceMappingURL=config.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.cjs","sources":["../../../../../../node_modules/@unovis/ts/components/tooltip/config.js"],"sourcesContent":["import { Position } from '../../types/position.js';\n\n// Types\r\nconst TooltipDefaultConfig = {\r\n components: [],\r\n container: undefined,\r\n followCursor: true,\r\n allowHover: true,\r\n horizontalPlacement: Position.Auto,\r\n horizontalShift: 0,\r\n verticalPlacement: Position.Top,\r\n verticalShift: 0,\r\n attributes: {},\r\n triggers: {},\r\n className: undefined,\r\n};\n\nexport { TooltipDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["TooltipDefaultConfig","Position"],"mappings":"4HAGMA,EAAuB,CACzB,WAAY,CAAE,EACd,UAAW,OACX,aAAc,GACd,WAAY,GACZ,oBAAqBC,EAAQ,SAAC,KAC9B,gBAAiB,EACjB,kBAAmBA,EAAQ,SAAC,IAC5B,cAAe,EACf,WAAY,CAAE,EACd,SAAU,CAAE,EACZ,UAAW,MACf","x_google_ignoreList":[0]}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Position as o } from "../../types/position.js";
|
|
2
|
-
const e = {
|
|
3
|
-
components: [],
|
|
4
|
-
container: void 0,
|
|
5
|
-
followCursor: !0,
|
|
6
|
-
allowHover: !0,
|
|
7
|
-
horizontalPlacement: o.Auto,
|
|
8
|
-
horizontalShift: 0,
|
|
9
|
-
verticalPlacement: o.Top,
|
|
10
|
-
verticalShift: 0,
|
|
11
|
-
attributes: {},
|
|
12
|
-
triggers: {},
|
|
13
|
-
className: void 0
|
|
14
|
-
};
|
|
15
|
-
export {
|
|
16
|
-
e as TooltipDefaultConfig
|
|
17
|
-
};
|
|
18
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sources":["../../../../../../node_modules/@unovis/ts/components/tooltip/config.js"],"sourcesContent":["import { Position } from '../../types/position.js';\n\n// Types\r\nconst TooltipDefaultConfig = {\r\n components: [],\r\n container: undefined,\r\n followCursor: true,\r\n allowHover: true,\r\n horizontalPlacement: Position.Auto,\r\n horizontalShift: 0,\r\n verticalPlacement: Position.Top,\r\n verticalShift: 0,\r\n attributes: {},\r\n triggers: {},\r\n className: undefined,\r\n};\n\nexport { TooltipDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["TooltipDefaultConfig","Position"],"mappings":";AAGK,MAACA,IAAuB;AAAA,EACzB,YAAY,CAAE;AAAA,EACd,WAAW;AAAA,EACX,cAAc;AAAA,EACd,YAAY;AAAA,EACZ,qBAAqBC,EAAS;AAAA,EAC9B,iBAAiB;AAAA,EACjB,mBAAmBA,EAAS;AAAA,EAC5B,eAAe;AAAA,EACf,YAAY,CAAE;AAAA,EACd,UAAU,CAAE;AAAA,EACZ,WAAW;AACf;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
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;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/@unovis/ts/components/tooltip/index.js"],"sourcesContent":["import { select, pointer } from 'd3-selection';\nimport { Position } from '../../types/position.js';\nimport { throttle, merge } from '../../utils/data.js';\nimport { TooltipDefaultConfig } from './config.js';\nimport * as style from './style.js';\nimport { root, show, hidden, nonInteractive, positionFixed } from './style.js';\n\nclass Tooltip {\r\n constructor(config = {}) {\r\n this._defaultConfig = TooltipDefaultConfig;\r\n this.config = this._defaultConfig;\r\n this._setUpEventsThrottled = throttle(this._setUpEvents, 500);\r\n this._setContainerPositionThrottled = throttle(this._setContainerPosition, 500);\r\n this._isShown = false;\r\n this.element = document.createElement('div');\r\n this.div = select(this.element).attr('class', root);\r\n this.setConfig(config);\r\n this.components = this.config.components;\r\n // Set up MutationObserver to automatically re-position the tooltip\r\n // if the content has been dynamically changed\r\n this._mutationObserver = new MutationObserver(() => {\r\n if (!this._isShown)\r\n return;\r\n // Handle changes to the content of this.div\r\n // Add your logic here\r\n if (!this.config.followCursor && this._hoveredElement) {\r\n this.placeByElement(this._hoveredElement);\r\n }\r\n else if (this._position) {\r\n this.place({ x: this._position[0], y: this._position[1] });\r\n }\r\n });\r\n this._mutationObserver.observe(this.div.node(), { childList: true, subtree: true });\r\n }\r\n setConfig(config) {\r\n var _a;\r\n this.prevConfig = this.config;\r\n this.config = merge(this._defaultConfig, config);\r\n // Reset `this._overriddenHorizontalPlacement` if the `horizontalPlacement` has changed\r\n if (this.prevConfig.horizontalPlacement !== this.config.horizontalPlacement) {\r\n this.overrideHorizontalPlacement(undefined);\r\n }\r\n if (this.config.container && (this.config.container !== ((_a = this.prevConfig) === null || _a === void 0 ? void 0 : _a.container))) {\r\n this.setContainer(this.config.container);\r\n }\r\n this._setUpAttributes();\r\n }\r\n setContainer(container) {\r\n var _a;\r\n (_a = this.element.parentNode) === null || _a === void 0 ? void 0 : _a.removeChild(this.element);\r\n this._container = container;\r\n this._container.appendChild(this.element);\r\n this._setContainerPositionThrottled();\r\n }\r\n getContainer() {\r\n return this._container;\r\n }\r\n hasContainer() {\r\n return !!this._container && this._container.isConnected;\r\n }\r\n setComponents(components) {\r\n this.components = components;\r\n }\r\n update() {\r\n if (!this._container)\r\n return;\r\n this._setUpEventsThrottled();\r\n }\r\n /** Show the tooltip by providing content and position */\r\n show(html, pos) {\r\n this.render(html);\r\n this.place(pos);\r\n }\r\n /** Hide the tooltip */\r\n hide() {\r\n this.div\r\n .classed(show, false) // The `show` class triggers the opacity transition\r\n .on('transitionend', () => {\r\n // We hide the element once the transition completes\r\n // This ensures container overflow will not occur when the window is resized\r\n this.div.classed(hidden, !this._isShown);\r\n });\r\n this._isShown = false;\r\n }\r\n /** Simply displays the tooltip with its previous content on position */\r\n display() {\r\n this.div\r\n .classed(hidden, false) // The `hidden` class sets `display: none;`\r\n .classed(show, true); // The `show` class triggers the opacity transition\r\n this._isShown = true;\r\n }\r\n place(pos) {\r\n this._position = [pos.x, pos.y];\r\n if (!this.hasContainer()) {\r\n console.warn('Unovis | Tooltip: Container was not set or is not initialized yet');\r\n return;\r\n }\r\n const { config } = this;\r\n const tooltipWidth = this.element.offsetWidth;\r\n const tooltipHeight = this.element.offsetHeight;\r\n const horizontalPlacement = this._overriddenHorizontalPlacement ||\r\n (config.horizontalPlacement === Position.Auto\r\n ? Position.Center\r\n : config.horizontalPlacement);\r\n const verticalPlacement = config.verticalPlacement === Position.Auto\r\n ? ((pos.y - tooltipHeight) < 0 ? Position.Bottom : Position.Top)\r\n : config.verticalPlacement;\r\n // Todo: Get rid of the hardcoded margin in version 2.0\r\n // Can be simply replaced with `verticalShift` and `horizontalShift`\r\n // but it'll be a breaking change\r\n const margin = 5;\r\n const translateX = horizontalPlacement === Position.Left ? -tooltipWidth - margin - config.horizontalShift\r\n : horizontalPlacement === Position.Center ? -tooltipWidth / 2\r\n : margin + config.horizontalShift;\r\n const translateY = verticalPlacement === Position.Bottom ? margin + config.verticalShift\r\n : verticalPlacement === Position.Center ? -tooltipHeight / 2\r\n : -margin - config.verticalShift - tooltipHeight;\r\n // translateX and translateY variables shift the tooltip from the default position (above the cursor, centred horizontally)\r\n const [top, left] = this._constraintPosToContainer(pos.x + translateX, pos.y + translateY, tooltipWidth, tooltipHeight);\r\n this._applyPosition(top, left, tooltipHeight);\r\n }\r\n placeByElement(hoveredElement) {\r\n const { config } = this;\r\n // Store the hovered element and the event for future reference,\r\n // i.e. to re-position the tooltip if the content has been changed\r\n // by something else and it was captured by the MutationObserver\r\n this._hoveredElement = hoveredElement;\r\n // Todo: Get rid of the hardcoded margin in version 2.0\r\n // Can be simply replaced with `verticalShift` and `horizontalShift`\r\n // but it'll be a breaking change\r\n const margin = 5;\r\n const tooltipWidth = this.element.offsetWidth;\r\n const tooltipHeight = this.element.offsetHeight;\r\n const isContainerBody = this.isContainerBody();\r\n const containerWidth = isContainerBody ? window.innerWidth : this._container.scrollWidth;\r\n const hoveredElementRect = hoveredElement.getBoundingClientRect();\r\n // We use D3's point transformation to get the correct position of the element by pretending it's a pointer event\r\n // See more: https://github.com/d3/d3-selection/blob/main/src/pointer.js\r\n const elementPos = isContainerBody ? [hoveredElementRect.x, hoveredElementRect.y] : pointer({\r\n clientX: hoveredElementRect.x,\r\n clientY: hoveredElementRect.y,\r\n pageX: hoveredElementRect.x,\r\n pageY: hoveredElementRect.y,\r\n }, this._container);\r\n const horizontalPlacement = this._overriddenHorizontalPlacement || (config.horizontalPlacement === Position.Auto\r\n ? (elementPos[0] - tooltipWidth < 0 ? Position.Right\r\n : elementPos[0] + tooltipWidth > containerWidth ? Position.Left : Position.Center)\r\n : config.horizontalPlacement);\r\n let translateX = 0;\r\n switch (horizontalPlacement) {\r\n case Position.Left:\r\n translateX = -tooltipWidth - margin - config.horizontalShift;\r\n break;\r\n case Position.Right:\r\n translateX = hoveredElementRect.width + margin + config.horizontalShift;\r\n break;\r\n case Position.Center:\r\n default:\r\n translateX = (-tooltipWidth + hoveredElementRect.width) / 2;\r\n break;\r\n }\r\n const verticalPlacement = config.verticalPlacement === Position.Auto\r\n ? (horizontalPlacement !== Position.Center ? Position.Center\r\n : elementPos[1] - tooltipHeight < 0 ? Position.Bottom : Position.Top)\r\n : config.verticalPlacement;\r\n let translateY = -tooltipHeight;\r\n switch (verticalPlacement) {\r\n case Position.Center:\r\n translateY += (tooltipHeight + hoveredElementRect.height) / 2;\r\n break;\r\n case Position.Bottom:\r\n translateY += tooltipHeight + hoveredElementRect.height + margin + config.verticalShift;\r\n break;\r\n case Position.Top:\r\n default:\r\n translateY += -margin - config.verticalShift;\r\n break;\r\n }\r\n const [top, left] = this._constraintPosToContainer(elementPos[0] + translateX, elementPos[1] + translateY, tooltipWidth, tooltipHeight);\r\n this._applyPosition(top, left, tooltipHeight);\r\n }\r\n isContainerBody() {\r\n return this._container === document.body;\r\n }\r\n /** Allows to override the horizontal placement of the tooltip which is useful when you want to define custom positioning behavior.\r\n * This method has been added for Crosshair to allow it position tooltip left or right of the crosshair line\r\n * (see the `_showTooltip` method of the Crosshair component).\r\n */\r\n overrideHorizontalPlacement(placement) {\r\n this._overriddenHorizontalPlacement = placement;\r\n }\r\n render(html) {\r\n var _a;\r\n const { config, prevConfig } = this;\r\n if (html instanceof HTMLElement) {\r\n const node = this.div.select(':first-child').node();\r\n if (node !== html)\r\n this.div.html('').append(() => html);\r\n }\r\n else if (html) {\r\n this.div.html(html);\r\n }\r\n this.div\r\n .classed((_a = config.className) !== null && _a !== void 0 ? _a : '', Boolean(config.className))\r\n .classed(nonInteractive, !config.allowHover || config.followCursor);\r\n // Remove the previous class name if it was set\r\n if ((prevConfig === null || prevConfig === void 0 ? void 0 : prevConfig.className) && prevConfig.className !== config.className) {\r\n this.div.classed(prevConfig.className, false);\r\n }\r\n this.display();\r\n }\r\n _applyPosition(x, y, tooltipHeight) {\r\n const isContainerBody = this.isContainerBody();\r\n const containerHeight = isContainerBody ? window.innerHeight : this._container.scrollHeight;\r\n this.div\r\n .classed(positionFixed, isContainerBody)\r\n .style('top', isContainerBody ? `${y}px` : 'unset')\r\n .style('bottom', !isContainerBody ? `${containerHeight - y - tooltipHeight}px` : 'unset')\r\n .style('left', `${x}px`);\r\n }\r\n _constraintPosToContainer(top, left, tooltipWidth, tooltipHeight) {\r\n const isContainerBody = this.isContainerBody();\r\n const containerHeight = isContainerBody ? window.innerHeight : this._container.scrollHeight;\r\n const containerWidth = isContainerBody ? window.innerWidth : this._container.scrollWidth;\r\n // // Constraint to container\r\n const paddingX = 10;\r\n const hitRight = top > (containerWidth - tooltipWidth - paddingX);\r\n const hitLeft = top < paddingX;\r\n const constrainedLeft = hitRight ? containerWidth - tooltipWidth - paddingX\r\n : hitLeft ? paddingX : top;\r\n const paddingY = 10;\r\n const hitBottom = left > (containerHeight - tooltipHeight - paddingY);\r\n const hitTop = left < paddingY;\r\n const constrainedTop = hitBottom ? containerHeight - tooltipHeight - paddingY\r\n : hitTop ? paddingY : left;\r\n return [\r\n containerWidth < tooltipWidth ? 0 : constrainedLeft,\r\n containerHeight < tooltipHeight ? 0 : constrainedTop,\r\n ];\r\n }\r\n _setContainerPosition() {\r\n var _a;\r\n // Tooltip position calculation relies on the parent position\r\n // If it's not set (static), we set it to `relative` (not a good practice)\r\n if (this._container !== document.body && ((_a = getComputedStyle(this._container)) === null || _a === void 0 ? void 0 : _a.position) === 'static') {\r\n this._container.style.position = 'relative';\r\n }\r\n }\r\n _setUpEvents() {\r\n const { config } = this;\r\n // We use the Event Delegation pattern to set up Tooltip events\r\n // Every component will have single `mousemove` and `mouseleave` event listener functions, where we'll check\r\n // the `path` of the event and trigger corresponding callbacks\r\n this.components.forEach(component => {\r\n const selection = select(component.element);\r\n selection\r\n .on('mousemove.tooltip', (e) => {\r\n const path = (e.composedPath && e.composedPath()) || e.path || [e.target];\r\n // Go through all of the configured triggers\r\n for (const className of Object.keys(config.triggers)) {\r\n const template = config.triggers[className];\r\n if (!template)\r\n continue; // Skip if the trigger is not configured\r\n const els = selection.selectAll(`.${className}`).nodes();\r\n // Go through all of the elements in the event path (from the deepest element upwards)\r\n for (const el of path) {\r\n if (el === selection.node())\r\n break; // Break on the component's level (usually the `<g>` element)\r\n if (el.classList.contains(className)) { // If there's a match, show the tooltip\r\n const i = els.indexOf(el);\r\n const d = select(el).datum();\r\n const content = template(d, i, els);\r\n const [x, y] = this.isContainerBody() ? [e.clientX, e.clientY] : pointer(e, this._container);\r\n if (content === null) {\r\n // If the content is `null`, we hide the tooltip\r\n this.hide();\r\n }\r\n else {\r\n // Otherwise we show the tooltip, but don't render the content if it's `undefined` or\r\n // an empty string. This way we can allow it to work with things like `createPortal` in React\r\n this.render(content);\r\n if (config.followCursor)\r\n this.place({ x, y });\r\n else\r\n this.placeByElement(el);\r\n }\r\n // Stop propagation to prevent other interfering events from being triggered, e.g. Crosshair\r\n e.stopPropagation();\r\n // Stop looking for other matches\r\n return;\r\n }\r\n }\r\n }\r\n // Hide the tooltip if the event didn't pass through any of the configured triggers.\r\n // We use the `this._isShown` condition as a little performance optimization tweak\r\n // (we don't want the tooltip to update its class on every mouse movement, see `this.hide()`).\r\n if (this._isShown)\r\n this.hide();\r\n })\r\n .on('mouseleave.tooltip', (e) => {\r\n e.stopPropagation(); // Stop propagation to prevent other interfering events from being triggered, e.g. Crosshair\r\n this.hide();\r\n });\r\n });\r\n // Set up Tooltip hover\r\n if (config.allowHover && !config.followCursor) {\r\n this.div\r\n .on('mouseenter.tooltip', this.display.bind(this))\r\n .on('mouseleave.tooltip', this.hide.bind(this));\r\n }\r\n else {\r\n this.div\r\n .on('mouseenter.tooltip', null)\r\n .on('mouseleave.tooltip', null);\r\n }\r\n }\r\n _setUpAttributes() {\r\n const attributesMap = this.config.attributes;\r\n if (!attributesMap)\r\n return;\r\n Object.keys(attributesMap).forEach(attr => {\r\n this.div.attr(attr, attributesMap[attr]);\r\n });\r\n }\r\n destroy() {\r\n var _a;\r\n this._mutationObserver.disconnect();\r\n (_a = this.div) === null || _a === void 0 ? void 0 : _a.remove();\r\n }\r\n}\r\nTooltip.selectors = style;\n\nexport { Tooltip };\n//# sourceMappingURL=index.js.map\n"],"names":["Tooltip","config","TooltipDefaultConfig","throttle","select","root","_a","merge","container","components","html","pos","show","hidden","tooltipWidth","tooltipHeight","horizontalPlacement","Position","verticalPlacement","margin","translateX","translateY","top","left","hoveredElement","isContainerBody","containerWidth","hoveredElementRect","elementPos","pointer","placement","prevConfig","nonInteractive","x","y","containerHeight","positionFixed","paddingX","hitRight","hitLeft","constrainedLeft","paddingY","hitBottom","hitTop","constrainedTop","component","selection","path","className","template","els","el","i","d","content","attributesMap","attr","style"],"mappings":"4TAOA,MAAMA,CAAQ,CACV,YAAYC,EAAS,GAAI,CACrB,KAAK,eAAiBC,uBACtB,KAAK,OAAS,KAAK,eACnB,KAAK,sBAAwBC,EAAQ,SAAC,KAAK,aAAc,GAAG,EAC5D,KAAK,+BAAiCA,EAAQ,SAAC,KAAK,sBAAuB,GAAG,EAC9E,KAAK,SAAW,GAChB,KAAK,QAAU,SAAS,cAAc,KAAK,EAC3C,KAAK,IAAMC,EAAAA,QAAO,KAAK,OAAO,EAAE,KAAK,QAASC,EAAAA,IAAI,EAClD,KAAK,UAAUJ,CAAM,EACrB,KAAK,WAAa,KAAK,OAAO,WAG9B,KAAK,kBAAoB,IAAI,iBAAiB,IAAM,CAC3C,KAAK,WAIN,CAAC,KAAK,OAAO,cAAgB,KAAK,gBAClC,KAAK,eAAe,KAAK,eAAe,EAEnC,KAAK,WACV,KAAK,MAAM,CAAE,EAAG,KAAK,UAAU,CAAC,EAAG,EAAG,KAAK,UAAU,CAAC,CAAG,CAAA,EAEzE,CAAS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,CACJ,CACJ,CAIG,KAAK,UACL,KAAK,KAAI,CAC7B,CAAa,EACI,GAAG,qBAAuB,GAAM,CACjC,EAAE,gBAAe,EACjB,KAAK,KAAI,CACzB,CAAa,CACb,CAAS,EAEGlD,EAAO,YAAc,CAACA,EAAO,aAC7B,KAAK,IACA,GAAG,qBAAsB,KAAK,QAAQ,KAAK,IAAI,CAAC,EAChD,GAAG,qBAAsB,KAAK,KAAK,KAAK,IAAI,CAAC,EAGlD,KAAK,IACA,GAAG,qBAAsB,IAAI,EAC7B,GAAG,qBAAsB,IAAI,CAEzC,CACD,kBAAmB,CACf,MAAMsD,EAAgB,KAAK,OAAO,WAC7BA,GAEL,OAAO,KAAKA,CAAa,EAAE,QAAQC,GAAQ,CACvC,KAAK,IAAI,KAAKA,EAAMD,EAAcC,CAAI,CAAC,CACnD,CAAS,CACJ,CACD,SAAU,CACN,IAAIlD,EACJ,KAAK,kBAAkB,cACtBA,EAAK,KAAK,OAAS,MAAQA,IAAO,QAAkBA,EAAG,QAC3D,CACL,CACAN,EAAQ,UAAYyD","x_google_ignoreList":[0]}
|
|
@@ -1,167 +0,0 @@
|
|
|
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
|
-
};
|
|
167
|
-
//# sourceMappingURL=index.js.map
|