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,122 +0,0 @@
|
|
|
1
|
-
import { XYComponentCore as R } from "../../core/xy-component/index.js";
|
|
2
|
-
import { isArray as H, getNumber as x, isNumber as M, getString as A, isEmpty as N, getMin as w, getMax as L, getExtent as O, clamp as T } from "../../utils/data.js";
|
|
3
|
-
import { roundedRectPath as q } from "../../utils/path.js";
|
|
4
|
-
import { smartTransition as V } from "../../utils/d3.js";
|
|
5
|
-
import { getColor as C } from "../../utils/color.js";
|
|
6
|
-
import { Direction as v } from "../../types/direction.js";
|
|
7
|
-
import { Orientation as z } from "../../types/position.js";
|
|
8
|
-
import { GroupedBarDefaultConfig as X } from "./config.js";
|
|
9
|
-
import * as Y from "./style.js";
|
|
10
|
-
import { barGroup as P, barGroupExit as F, bar as E } from "./style.js";
|
|
11
|
-
import G from "../../../../d3-array/src/min.js";
|
|
12
|
-
import I from "../../../../d3-array/src/max.js";
|
|
13
|
-
import k from "../../../../d3-scale/src/band.js";
|
|
14
|
-
import J from "../../../../d3-array/src/range.js";
|
|
15
|
-
class K extends R {
|
|
16
|
-
constructor(a) {
|
|
17
|
-
super(), this._defaultConfig = X, this.config = this._defaultConfig, this.getAccessors = () => H(this.config.y) ? this.config.y : [this.config.y], this.events = {}, this._barData = [], a && this.setConfig(a);
|
|
18
|
-
}
|
|
19
|
-
get bleed() {
|
|
20
|
-
if (this._barData = this._getVisibleData(), this._barData.length === 0)
|
|
21
|
-
return { top: 0, bottom: 0, left: 0, right: 0 };
|
|
22
|
-
const a = !this.isVertical() && this.dataScale.range()[0] > this.dataScale.range()[1], t = this.dataScale.domain(), e = this._getGroupWidth() / 2, i = this._barData.map((p, f) => x(p, this.config.x, f)), r = G(i), s = I(i), h = this.dataScale(r), d = this.dataScale(s), u = this.dataScale.invert(h + (a ? e : -e)), l = this.dataScale.invert(d + (a ? -e : e)), o = u <= t[0] ? this.dataScale(t[0]) - this.dataScale(u) : 0, g = l > t[1] ? this.dataScale(l) - this.dataScale(t[1]) : 0;
|
|
23
|
-
return {
|
|
24
|
-
top: this.isVertical() ? 0 : a ? -g : o,
|
|
25
|
-
bottom: this.isVertical() ? 0 : a ? -o : g,
|
|
26
|
-
left: this.isVertical() ? o : 0,
|
|
27
|
-
right: this.isVertical() ? g : 0
|
|
28
|
-
};
|
|
29
|
-
}
|
|
30
|
-
get dataScale() {
|
|
31
|
-
return this.isVertical() ? this.xScale : this.yScale;
|
|
32
|
-
}
|
|
33
|
-
get valueScale() {
|
|
34
|
-
return this.isVertical() ? this.yScale : this.xScale;
|
|
35
|
-
}
|
|
36
|
-
isVertical() {
|
|
37
|
-
return this.config.orientation === z.Vertical;
|
|
38
|
-
}
|
|
39
|
-
_render(a) {
|
|
40
|
-
const { config: t } = this, e = M(a) ? a : t.duration, i = this._getGroupWidth(), r = this.getAccessors(), s = [-i / 2, i / 2], h = k().domain(J(r.length)).range(s).paddingInner(t.barPadding).paddingOuter(t.barPadding), d = this.g.selectAll(`.${P}`).data(this._barData, (c, n) => {
|
|
41
|
-
var m;
|
|
42
|
-
return `${(m = A(c, t.id, n)) !== null && m !== void 0 ? m : n}`;
|
|
43
|
-
}), u = (c, n) => {
|
|
44
|
-
const m = this.dataScale(x(c, t.x, n)), b = this.isVertical() ? m : 0, S = this.isVertical() ? 0 : m;
|
|
45
|
-
return `translate(${b},${S})`;
|
|
46
|
-
}, o = d.enter().append("g").attr("class", P).attr("transform", u).style("opacity", 1).merge(d);
|
|
47
|
-
V(o, e).attr("transform", u).style("opacity", 1);
|
|
48
|
-
const g = d.exit().attr("class", F);
|
|
49
|
-
V(g, e).style("opacity", 0).remove(), V(g.selectAll(`.${E}`), e).attr("transform", (c, n, m) => this.isVertical() ? `translate(0,${this.yScale(0)}) scale(1,0)` : `translate(${this.xScale(0)},0) scale(0,1)`);
|
|
50
|
-
const p = h.bandwidth(), f = o.selectAll(`.${E}`).data((c) => r.map(() => c)), y = this._getValueAxisDirection(), B = f.enter().append("path").attr("class", E).attr("d", (c, n) => {
|
|
51
|
-
const m = h(n), b = this.valueScale(0), S = p;
|
|
52
|
-
return this._getBarPath(m, b, S, 0, !1, y);
|
|
53
|
-
}).style("fill", (c, n) => C(c, t.color, n)).merge(f);
|
|
54
|
-
V(B, e).attr("d", (c, n) => {
|
|
55
|
-
const m = h(n), b = p, S = x(c, r[n]), D = S < 0;
|
|
56
|
-
let W = D ? this.valueScale(0) : this.valueScale(S || 0), _ = Math.abs(this.valueScale(0) - this.valueScale(S)) || 0;
|
|
57
|
-
if (_ < t.barMinHeight) {
|
|
58
|
-
const $ = y === v.North ? -1 : 1;
|
|
59
|
-
W = this.valueScale(0) + $ * t.barMinHeight, _ = t.barMinHeight;
|
|
60
|
-
}
|
|
61
|
-
return this._getBarPath(m, W, b, _, D, y);
|
|
62
|
-
}).style("fill", (c, n) => C(c, t.color, n)).style("cursor", (c, n) => A(c, t.cursor, n)), V(f.exit(), e).remove();
|
|
63
|
-
}
|
|
64
|
-
_getValueAxisDirection() {
|
|
65
|
-
return this.valueScale.range()[0] > this.valueScale.range()[1] ? v.North : v.South;
|
|
66
|
-
}
|
|
67
|
-
_getVisibleData() {
|
|
68
|
-
const { config: a, datamodel: { data: t } } = this, e = this._getGroupWidth(), i = t.length < 2 ? 0 : e / 2, r = this.dataScale, s = Math.abs(r.invert(i) - r.invert(0));
|
|
69
|
-
return t == null ? void 0 : t.filter((d, u) => {
|
|
70
|
-
const l = x(d, a.x, u), o = r.domain(), g = +o[0], p = +o[1];
|
|
71
|
-
return l >= g - s && l <= p + s;
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
_getBarPath(a, t, e, i, r, s) {
|
|
75
|
-
const { config: h } = this, d = h.roundedCorners ? M(h.roundedCorners) ? +h.roundedCorners : e / 2 : 0, u = T(d, 0, Math.min(i, e) / 2), l = s === v.North, o = this.isVertical() && r !== l, g = this.isVertical() && r === l, p = !this.isVertical() && r, f = !this.isVertical() && !r;
|
|
76
|
-
return q({
|
|
77
|
-
x: this.isVertical() ? a : t + (l ? 0 : -i),
|
|
78
|
-
y: this.isVertical() ? t + (l ? 0 : -i) : a,
|
|
79
|
-
w: this.isVertical() ? e : i,
|
|
80
|
-
h: this.isVertical() ? i : e,
|
|
81
|
-
tl: o || p,
|
|
82
|
-
tr: o || f,
|
|
83
|
-
bl: g || p,
|
|
84
|
-
br: g || f,
|
|
85
|
-
r: u
|
|
86
|
-
});
|
|
87
|
-
}
|
|
88
|
-
_getGroupWidth() {
|
|
89
|
-
const { config: a, datamodel: { data: t } } = this;
|
|
90
|
-
if (N(t))
|
|
91
|
-
return 0;
|
|
92
|
-
if (a.groupWidth)
|
|
93
|
-
return G([a.groupWidth, a.groupMaxWidth]);
|
|
94
|
-
const e = this.dataScale.bandwidth, i = this.dataScale.domain ? this.dataScale.domain() : [];
|
|
95
|
-
let s = 1 + (e ? i.length : i[1] - i[0]) / a.dataStep || !e && t.filter((u, l) => {
|
|
96
|
-
const o = x(u, a.x, l);
|
|
97
|
-
return o >= i[0] && o <= i[1];
|
|
98
|
-
}).length || t.length;
|
|
99
|
-
!e && s >= 2 && (s += 1);
|
|
100
|
-
const d = (s < 2 ? 1 : 1 - a.groupPadding) * (this.isVertical() ? this._width : this._height) / s;
|
|
101
|
-
return G([d, a.groupMaxWidth]);
|
|
102
|
-
}
|
|
103
|
-
getValueScaleExtent(a) {
|
|
104
|
-
const { datamodel: t } = this, e = this.getAccessors(), i = a ? this._getVisibleData() : t.data, r = w(i, ...e), s = L(i, ...e);
|
|
105
|
-
return [r > 0 ? 0 : r, s < 0 ? 0 : s];
|
|
106
|
-
}
|
|
107
|
-
getDataScaleExtent() {
|
|
108
|
-
const { config: a, datamodel: t } = this;
|
|
109
|
-
return O(t.data, a.x);
|
|
110
|
-
}
|
|
111
|
-
getYDataExtent(a) {
|
|
112
|
-
return this.isVertical() ? this.getValueScaleExtent(a) : this.getDataScaleExtent();
|
|
113
|
-
}
|
|
114
|
-
getXDataExtent() {
|
|
115
|
-
return this.isVertical() ? this.getDataScaleExtent() : this.getValueScaleExtent(!1);
|
|
116
|
-
}
|
|
117
|
-
}
|
|
118
|
-
K.selectors = Y;
|
|
119
|
-
export {
|
|
120
|
-
K as GroupedBar
|
|
121
|
-
};
|
|
122
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@unovis/ts/components/grouped-bar/index.js"],"sourcesContent":["import { scaleBand } from 'd3-scale';\nimport { min, max, range } from 'd3-array';\nimport { XYComponentCore } from '../../core/xy-component/index.js';\nimport { isArray, getNumber, isNumber, getString, clamp, isEmpty, getMin, getMax, getExtent } from '../../utils/data.js';\nimport { roundedRectPath } from '../../utils/path.js';\nimport { smartTransition } from '../../utils/d3.js';\nimport { getColor } from '../../utils/color.js';\nimport { Direction } from '../../types/direction.js';\nimport { Orientation } from '../../types/position.js';\nimport { GroupedBarDefaultConfig } from './config.js';\nimport * as style from './style.js';\nimport { barGroup, barGroupExit, bar } from './style.js';\n\nclass GroupedBar extends XYComponentCore {\r\n constructor(config) {\r\n super();\r\n this._defaultConfig = GroupedBarDefaultConfig;\r\n this.config = this._defaultConfig;\r\n this.getAccessors = () => isArray(this.config.y) ? this.config.y : [this.config.y];\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._getGroupWidth() / 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)\r\n ? customDuration\r\n : config.duration;\r\n const groupWidth = this._getGroupWidth();\r\n const yAccessors = this.getAccessors();\r\n const innerBandScaleRange = [-groupWidth / 2, groupWidth / 2];\r\n const innerBandScale = scaleBand()\r\n .domain(range(yAccessors.length))\r\n .range(innerBandScaleRange)\r\n .paddingInner(config.barPadding)\r\n .paddingOuter(config.barPadding);\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\r\n .enter()\r\n .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().attr('class', barGroupExit);\r\n smartTransition(barGroupExit$1, duration).style('opacity', 0).remove();\r\n // Animate exiting bars going down\r\n smartTransition(barGroupExit$1.selectAll(`.${bar}`), duration)\r\n .attr('transform', (d, i, e) => {\r\n return this.isVertical()\r\n ? `translate(0,${this.yScale(0)}) scale(1,0)`\r\n : `translate(${this.xScale(0)},0) scale(0,1)`;\r\n });\r\n const barWidth = innerBandScale.bandwidth();\r\n const bars = barGroupsMerged\r\n .selectAll(`.${bar}`)\r\n .data((d) => yAccessors.map(() => d));\r\n const valueAxisDirection = this._getValueAxisDirection();\r\n const barsEnter = bars\r\n .enter()\r\n .append('path')\r\n .attr('class', bar)\r\n .attr('d', (d, i) => {\r\n const x = innerBandScale(i);\r\n const y = this.valueScale(0);\r\n const width = barWidth;\r\n const height = 0;\r\n return this._getBarPath(x, y, width, height, false, valueAxisDirection);\r\n })\r\n .style('fill', (d, i) => getColor(d, config.color, i));\r\n const barsMerged = barsEnter.merge(bars);\r\n smartTransition(barsMerged, duration)\r\n .attr('d', (d, j) => {\r\n const x = innerBandScale(j);\r\n const width = barWidth;\r\n // Todo: Find a way to pass the datum index to `getNumber` below\r\n const value = getNumber(d, yAccessors[j]);\r\n const isNegative = value < 0;\r\n let y = isNegative ? this.valueScale(0) : this.valueScale(value || 0);\r\n let height = Math.abs(this.valueScale(0) - this.valueScale(value)) || 0;\r\n // Optionally set minimum bar height\r\n if (height < config.barMinHeight) {\r\n const dir = valueAxisDirection === Direction.North ? -1 : 1;\r\n y = this.valueScale(0) + dir * config.barMinHeight;\r\n height = config.barMinHeight;\r\n }\r\n return this._getBarPath(x, y, width, height, isNegative, valueAxisDirection);\r\n })\r\n .style('fill', (d, i) => getColor(d, config.color, i))\r\n .style('cursor', (d, i) => getString(d, config.cursor, i));\r\n smartTransition(bars.exit(), duration).remove();\r\n }\r\n _getValueAxisDirection() {\r\n return this.valueScale.range()[0] > this.valueScale.range()[1]\r\n ? Direction.North\r\n : Direction.South;\r\n }\r\n _getVisibleData() {\r\n const { config, datamodel: { data }, } = this;\r\n const groupWidth = this._getGroupWidth();\r\n const halfGroupWidth = data.length < 2 ? 0 : groupWidth / 2;\r\n const dataScale = this.dataScale;\r\n const xHalfGroupWidth = Math.abs(dataScale.invert(halfGroupWidth) -\r\n dataScale.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 = dataScale.domain();\r\n const domainMin = +domain[0];\r\n const domainMax = +domain[1];\r\n return (v >= domainMin - xHalfGroupWidth && v <= domainMax + xHalfGroupWidth);\r\n });\r\n return filtered;\r\n }\r\n _getBarPath(x, y, width, height, isNegative, direction) {\r\n const { config } = this;\r\n const cornerRadius = config.roundedCorners\r\n ? isNumber(config.roundedCorners)\r\n ? +config.roundedCorners\r\n : width / 2\r\n : 0;\r\n const cornerRadiusClamped = clamp(cornerRadius, 0, Math.min(height, width) / 2);\r\n const isNorthDirected = direction === Direction.North;\r\n const roundedTop = this.isVertical() && isNegative !== isNorthDirected;\r\n const roundedBottom = this.isVertical() && isNegative === isNorthDirected;\r\n const roundedLeft = !this.isVertical() && isNegative;\r\n const roundedRight = !this.isVertical() && !isNegative;\r\n return roundedRectPath({\r\n x: this.isVertical() ? x : y + (isNorthDirected ? 0 : -height),\r\n y: this.isVertical() ? y + (isNorthDirected ? 0 : -height) : x,\r\n w: this.isVertical() ? width : height,\r\n h: this.isVertical() ? height : width,\r\n tl: roundedTop || roundedLeft,\r\n tr: roundedTop || roundedRight,\r\n bl: roundedBottom || roundedLeft,\r\n br: roundedBottom || roundedRight,\r\n r: cornerRadiusClamped,\r\n });\r\n }\r\n _getGroupWidth() {\r\n const { config, datamodel: { data }, } = this;\r\n if (isEmpty(data))\r\n return 0;\r\n if (config.groupWidth) {\r\n return min([config.groupWidth, config.groupMaxWidth]);\r\n }\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 &&\r\n 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.groupPadding;\r\n const groupWidth = (c * (this.isVertical() ? this._width : this._height)) / dataSize;\r\n return min([groupWidth, config.groupMaxWidth]);\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 const min = getMin(data, ...yAccessors);\r\n const max = getMax(data, ...yAccessors);\r\n return [min > 0 ? 0 : min, max < 0 ? 0 : max];\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()\r\n ? this.getValueScaleExtent(scaleByVisibleData)\r\n : this.getDataScaleExtent();\r\n }\r\n getXDataExtent() {\r\n return this.isVertical()\r\n ? this.getDataScaleExtent()\r\n : this.getValueScaleExtent(false);\r\n }\r\n}\r\nGroupedBar.selectors = style;\n\nexport { GroupedBar };\n//# sourceMappingURL=index.js.map\n"],"names":["GroupedBar","XYComponentCore","config","GroupedBarDefaultConfig","isArray","isHorizontalAndFlipped","dataDomain","halfGroupWidth","dataScaleValues","d","i","getNumber","firstDataValue","min","lastDataValue","max","firstValuePx","lastValuePx","dataDomainRequiredStart","dataDomainRequiredEnd","bleedPxStart","bleedPxEnd","Orientation","customDuration","duration","isNumber","groupWidth","yAccessors","innerBandScaleRange","innerBandScale","scaleBand","range","barGroups","barGroup","_a","getString","getBarGroupsTransform","v","x","y","barGroupsMerged","smartTransition","barGroupExit$1","barGroupExit","bar","e","barWidth","bars","valueAxisDirection","barsMerged","width","getColor","j","value","isNegative","height","dir","Direction","data","dataScale","xHalfGroupWidth","domain","domainMin","domainMax","direction","cornerRadius","cornerRadiusClamped","clamp","isNorthDirected","roundedTop","roundedBottom","roundedLeft","roundedRight","roundedRectPath","isEmpty","isOrdinal","dataSize","scaleByVisibleData","datamodel","getMin","getMax","getExtent","style"],"mappings":";;;;;;;;;;;;;;AAaA,MAAMA,UAAmBC,EAAgB;AAAA,EACrC,YAAYC,GAAQ;AAChB,aACA,KAAK,iBAAiBC,GACtB,KAAK,SAAS,KAAK,gBACnB,KAAK,eAAe,MAAMC,EAAQ,KAAK,OAAO,CAAC,IAAI,KAAK,OAAO,IAAI,CAAC,KAAK,OAAO,CAAC,GACjF,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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AAI,CAACiB,KAAaC,KAAY,MAC1BA,KAAY;AAEhB,UAAMlD,KADIkD,IAAW,IAAI,IAAI,IAAI1E,EAAO,iBACf,KAAK,WAAU,IAAK,KAAK,SAAS,KAAK,WAAY0E;AAC5E,WAAO/D,EAAI,CAACa,GAAYxB,EAAO,aAAa,CAAC;AAAA,EAChD;AAAA,EACD,oBAAoB2E,GAAoB;AACpC,UAAM,EAAE,WAAAC,EAAW,IAAG,MAChBnD,IAAa,KAAK,gBAClB+B,IAAOmB,IAAqB,KAAK,gBAAiB,IAAGC,EAAU,MAC/DjE,IAAMkE,EAAOrB,GAAM,GAAG/B,CAAU,GAChCZ,IAAMiE,EAAOtB,GAAM,GAAG/B,CAAU;AACtC,WAAO,CAACd,IAAM,IAAI,IAAIA,GAAKE,IAAM,IAAI,IAAIA,CAAG;AAAA,EAC/C;AAAA,EACD,qBAAqB;AACjB,UAAM,EAAE,QAAAb,GAAQ,WAAA4E,EAAW,IAAG;AAC9B,WAAOG,EAAUH,EAAU,MAAM5E,EAAO,CAAC;AAAA,EAC5C;AAAA,EACD,eAAe2E,GAAoB;AAC/B,WAAO,KAAK,WAAY,IAClB,KAAK,oBAAoBA,CAAkB,IAC3C,KAAK,mBAAkB;AAAA,EAChC;AAAA,EACD,iBAAiB;AACb,WAAO,KAAK,WAAY,IAClB,KAAK,mBAAoB,IACzB,KAAK,oBAAoB,EAAK;AAAA,EACvC;AACL;AACA7E,EAAW,YAAYkF;","x_google_ignoreList":[0]}
|
|
@@ -1,36 +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: grouped-bar-component;
|
|
3
|
-
`,e=r.injectGlobal`
|
|
4
|
-
:root {
|
|
5
|
-
--vis-grouped-bar-cursor: default;
|
|
6
|
-
--vis-grouped-bar-fill-color: var(--vis-color-main);
|
|
7
|
-
--vis-grouped-bar-stroke-color: none;
|
|
8
|
-
--vis-grouped-bar-stroke-width: 0px;
|
|
9
|
-
--vis-grouped-bar-hover-stroke-width: 1px;
|
|
10
|
-
--vis-grouped-bar-hover-stroke-color: none;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
/* Dark Theme */
|
|
14
|
-
--vis-dark-grouped-bar-stroke-color: none;
|
|
15
|
-
}
|
|
16
|
-
|
|
17
|
-
body.theme-dark ${`.${o}`} {
|
|
18
|
-
--vis-grouped-bar-stroke-color: var(--vis-dark-grouped-bar-stroke-color);
|
|
19
|
-
}
|
|
20
|
-
`,s=r.css`
|
|
21
|
-
label: bar;
|
|
22
|
-
fill: var(--vis-grouped-bar-fill-color);
|
|
23
|
-
stroke: var(--vis-grouped-bar-stroke-color);
|
|
24
|
-
stroke-width: var(--vis-grouped-bar-stroke-width);
|
|
25
|
-
cursor: var(--vis-grouped-bar-cursor);
|
|
26
|
-
|
|
27
|
-
&:hover {
|
|
28
|
-
stroke-width: var(--vis-grouped-bar-hover-stroke-width);
|
|
29
|
-
stroke: var(--vis-grouped-bar-hover-stroke-color);
|
|
30
|
-
}
|
|
31
|
-
`,a=r.css`
|
|
32
|
-
label: barGroup;
|
|
33
|
-
`,t=r.css`
|
|
34
|
-
label: barGroupExit;
|
|
35
|
-
`;exports.bar=s;exports.barGroup=a;exports.barGroupExit=t;exports.globalStyles=e;exports.root=o;
|
|
36
|
-
//# sourceMappingURL=style.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.cjs","sources":["../../../../../../node_modules/@unovis/ts/components/grouped-bar/style.js"],"sourcesContent":["import { css, injectGlobal } from '@emotion/css';\n\nconst root = css `\n label: grouped-bar-component;\n`;\r\nconst globalStyles = injectGlobal `\n :root {\n --vis-grouped-bar-cursor: default;\n --vis-grouped-bar-fill-color: var(--vis-color-main);\n --vis-grouped-bar-stroke-color: none;\n --vis-grouped-bar-stroke-width: 0px;\n --vis-grouped-bar-hover-stroke-width: 1px;\n --vis-grouped-bar-hover-stroke-color: none;\n\n\n /* Dark Theme */\n --vis-dark-grouped-bar-stroke-color: none;\n }\n\n body.theme-dark ${`.${root}`} {\n --vis-grouped-bar-stroke-color: var(--vis-dark-grouped-bar-stroke-color);\n }\n`;\r\nconst bar = css `\n label: bar;\n fill: var(--vis-grouped-bar-fill-color);\n stroke: var(--vis-grouped-bar-stroke-color);\n stroke-width: var(--vis-grouped-bar-stroke-width);\n cursor: var(--vis-grouped-bar-cursor);\n\n &:hover {\n stroke-width: var(--vis-grouped-bar-hover-stroke-width);\n stroke: var(--vis-grouped-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;AAAAA,oBAcD,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,44 +0,0 @@
|
|
|
1
|
-
import { css as r, injectGlobal as o } from "../../../../@emotion/css/dist/emotion-css.esm.js";
|
|
2
|
-
const e = r`
|
|
3
|
-
label: grouped-bar-component;
|
|
4
|
-
`, s = o`
|
|
5
|
-
:root {
|
|
6
|
-
--vis-grouped-bar-cursor: default;
|
|
7
|
-
--vis-grouped-bar-fill-color: var(--vis-color-main);
|
|
8
|
-
--vis-grouped-bar-stroke-color: none;
|
|
9
|
-
--vis-grouped-bar-stroke-width: 0px;
|
|
10
|
-
--vis-grouped-bar-hover-stroke-width: 1px;
|
|
11
|
-
--vis-grouped-bar-hover-stroke-color: none;
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/* Dark Theme */
|
|
15
|
-
--vis-dark-grouped-bar-stroke-color: none;
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
body.theme-dark ${`.${e}`} {
|
|
19
|
-
--vis-grouped-bar-stroke-color: var(--vis-dark-grouped-bar-stroke-color);
|
|
20
|
-
}
|
|
21
|
-
`, t = r`
|
|
22
|
-
label: bar;
|
|
23
|
-
fill: var(--vis-grouped-bar-fill-color);
|
|
24
|
-
stroke: var(--vis-grouped-bar-stroke-color);
|
|
25
|
-
stroke-width: var(--vis-grouped-bar-stroke-width);
|
|
26
|
-
cursor: var(--vis-grouped-bar-cursor);
|
|
27
|
-
|
|
28
|
-
&:hover {
|
|
29
|
-
stroke-width: var(--vis-grouped-bar-hover-stroke-width);
|
|
30
|
-
stroke: var(--vis-grouped-bar-hover-stroke-color);
|
|
31
|
-
}
|
|
32
|
-
`, i = r`
|
|
33
|
-
label: barGroup;
|
|
34
|
-
`, l = r`
|
|
35
|
-
label: barGroupExit;
|
|
36
|
-
`;
|
|
37
|
-
export {
|
|
38
|
-
t as bar,
|
|
39
|
-
i as barGroup,
|
|
40
|
-
l as barGroupExit,
|
|
41
|
-
s as globalStyles,
|
|
42
|
-
e as root
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=style.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sources":["../../../../../../node_modules/@unovis/ts/components/grouped-bar/style.js"],"sourcesContent":["import { css, injectGlobal } from '@emotion/css';\n\nconst root = css `\n label: grouped-bar-component;\n`;\r\nconst globalStyles = injectGlobal `\n :root {\n --vis-grouped-bar-cursor: default;\n --vis-grouped-bar-fill-color: var(--vis-color-main);\n --vis-grouped-bar-stroke-color: none;\n --vis-grouped-bar-stroke-width: 0px;\n --vis-grouped-bar-hover-stroke-width: 1px;\n --vis-grouped-bar-hover-stroke-color: none;\n\n\n /* Dark Theme */\n --vis-dark-grouped-bar-stroke-color: none;\n }\n\n body.theme-dark ${`.${root}`} {\n --vis-grouped-bar-stroke-color: var(--vis-dark-grouped-bar-stroke-color);\n }\n`;\r\nconst bar = css `\n label: bar;\n fill: var(--vis-grouped-bar-fill-color);\n stroke: var(--vis-grouped-bar-stroke-color);\n stroke-width: var(--vis-grouped-bar-stroke-width);\n cursor: var(--vis-grouped-bar-cursor);\n\n &:hover {\n stroke-width: var(--vis-grouped-bar-hover-stroke-width);\n stroke: var(--vis-grouped-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;AAAA,oBAcD,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 e=require("../../core/xy-component/config.cjs"),n=require("../../types/curve.cjs"),i=Object.assign(Object.assign({},e.XYComponentDefaultConfig),{curveType:n.CurveType.MonotoneX,lineWidth:2,lineDashArray:void 0,fallbackValue:void 0,highlightOnHover:!1,cursor:null,interpolateMissingData:!1});exports.LineDefaultConfig=i;
|
|
2
|
-
//# sourceMappingURL=config.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.cjs","sources":["../../../../../../node_modules/@unovis/ts/components/line/config.js"],"sourcesContent":["import { XYComponentDefaultConfig } from '../../core/xy-component/config.js';\nimport { CurveType } from '../../types/curve.js';\n\nconst LineDefaultConfig = Object.assign(Object.assign({}, XYComponentDefaultConfig), { curveType: CurveType.MonotoneX, lineWidth: 2, lineDashArray: undefined, fallbackValue: undefined, highlightOnHover: false, cursor: null, interpolateMissingData: false });\n\nexport { LineDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["LineDefaultConfig","XYComponentDefaultConfig","CurveType"],"mappings":"yKAGMA,EAAoB,OAAO,OAAO,OAAO,OAAO,GAAIC,EAAAA,wBAAwB,EAAG,CAAE,UAAWC,EAAAA,UAAU,UAAW,UAAW,EAAG,cAAe,OAAW,cAAe,OAAW,iBAAkB,GAAO,OAAQ,KAAM,uBAAwB,EAAO,CAAA","x_google_ignoreList":[0]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { XYComponentDefaultConfig as e } from "../../core/xy-component/config.js";
|
|
2
|
-
import { CurveType as n } from "../../types/curve.js";
|
|
3
|
-
const t = Object.assign(Object.assign({}, e), { curveType: n.MonotoneX, lineWidth: 2, lineDashArray: void 0, fallbackValue: void 0, highlightOnHover: !1, cursor: null, interpolateMissingData: !1 });
|
|
4
|
-
export {
|
|
5
|
-
t as LineDefaultConfig
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sources":["../../../../../../node_modules/@unovis/ts/components/line/config.js"],"sourcesContent":["import { XYComponentDefaultConfig } from '../../core/xy-component/config.js';\nimport { CurveType } from '../../types/curve.js';\n\nconst LineDefaultConfig = Object.assign(Object.assign({}, XYComponentDefaultConfig), { curveType: CurveType.MonotoneX, lineWidth: 2, lineDashArray: undefined, fallbackValue: undefined, highlightOnHover: false, cursor: null, interpolateMissingData: false });\n\nexport { LineDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["LineDefaultConfig","XYComponentDefaultConfig","CurveType"],"mappings":";;AAGK,MAACA,IAAoB,OAAO,OAAO,OAAO,OAAO,IAAIC,CAAwB,GAAG,EAAE,WAAWC,EAAU,WAAW,WAAW,GAAG,eAAe,QAAW,eAAe,QAAW,kBAAkB,IAAO,QAAQ,MAAM,wBAAwB,GAAO,CAAA;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const O=require("../../../../d3-interpolate-path/build/d3-interpolate-path.cjs"),j=require("../../core/xy-component/index.cjs"),u=require("../../utils/data.cjs"),C=require("../../utils/d3.cjs"),D=require("../../utils/color.cjs"),$=require("../../types/curve.cjs"),q=require("../../types/direction.cjs"),L=require("./config.cjs"),o=require("./style.cjs"),M=require("../../../../d3-shape/src/line.cjs"),N=require("../../../../d3-selection/src/select.cjs");class S extends j.XYComponentCore{constructor(t){super(),this._defaultConfig=L.LineDefaultConfig,this.config=this._defaultConfig,this.curve=$.Curve[$.CurveType.MonotoneX],this.events={[S.selectors.line]:{mouseover:this._highlight.bind(this),mouseleave:this._resetHighlight.bind(this)}},t&&this.setConfig(t)}get bleed(){const{config:{lineWidth:t}}=this,e=this.yScale.domain(),h=(this.yScale.range()[0]>this.yScale.range()[1]?q.Direction.North:q.Direction.South)===q.Direction.South,p=t>3,f=t>=10;return{top:!f&&(!h&&e[1]===0||h&&e[0]===0)?0:t/2,bottom:!f&&(!h&&e[0]===0||h&&e[1]===0)?0:t/2,left:p?t/2:0,right:p?t/2:0}}_render(t){super._render(t);const{config:e,datamodel:{data:c}}=this,h=u.isNumber(t)?t:e.duration;this.curve=$.Curve[e.curveType],this.lineGen=M.default().x(s=>s.x).y(s=>s.y).defined(s=>s.defined).curve(this.curve);const p=u.isArray(e.y)?e.y:[e.y],f=c.map((s,i)=>this.xScale(u.getNumber(s,e.x,i))),A=p.map(s=>{const i=c.map((a,r)=>{const n=u.getNumber(a,s,r),l=(u.isNumber(n)||n===null)&&isFinite(n)?n:e.fallbackValue,b=e.interpolateMissingData?(u.isNumber(n)||n===null)&&isFinite(n):isFinite(l);return{x:f[r],y:this.yScale(l??0),defined:b,value:l}}),v=i.reduce((a,r)=>r.defined||a,!1);let d=!1;const g=i.reduce((a,r,n)=>{!r.defined&&isFinite(e.fallbackValue)&&a.push(Object.assign(Object.assign({},r),{defined:!0})),!r.defined&&!d&&(d=!0);const l=n>0&&!i[n-1].defined||n<i.length-1&&!i[n+1].defined;return r.defined&&l&&(d||a.push(Object.assign(Object.assign({},r),{defined:!1})),a.push(r),d=!1),a},[]),m=v&&i.some(a=>a.value!==null);return{values:i,defined:v,gaps:g,visible:m}}),P=this.g.selectAll(`.${o.line}`).data(A),y=P.enter().append("g").attr("class",o.line);y.append("path").attr("class",o.linePath).attr("stroke",(s,i)=>D.getColor(c,e.color,i)).attr("stroke-opacity",0).attr("stroke-width",e.lineWidth),y.append("path").attr("class",o.lineSelectionHelper).attr("d",this._emptyPath()),y.append("path").attr("class",o.interpolatedPath).attr("d",this._emptyPath()).style("opacity",0);const x=y.merge(P);x.style("cursor",(s,i)=>u.getString(c,e.cursor,i)),x.each((s,i,v)=>{var d;const g=N.default(v[i]),m=g.select(`.${o.linePath}`),a=g.select(`.${o.lineSelectionHelper}`),r=g.select(`.${o.interpolatedPath}`),n=s.visible,l=u.getValue(c,e.lineDashArray,i),b=C.smartTransition(m,h).attr("stroke",D.getColor(c,e.color,i)).attr("stroke-width",e.lineWidth).attr("stroke-opacity",n?1:0).style("stroke-dasharray",(d=l==null?void 0:l.join(" "))!==null&&d!==void 0?d:null),T=s.values.some(_=>!_.defined),k=this.lineGen(s.values);if(h&&!T){const _=m.attr("d")||this._emptyPath(),H=k||this._emptyPath();b.attrTween("d",()=>O.interpolatePath(_,H))}else s.visible&&b.attr("d",k);a.attr("d",k).attr("visibility",n?null:"hidden"),T&&e.interpolateMissingData?C.smartTransition(r,h).attr("d",this.lineGen(s.gaps)).attr("stroke",D.getColor(c,e.color,i)).attr("stroke-width",e.lineWidth-1).style("opacity",1):r.transition().duration(h).style("opacity",0)}),C.smartTransition(P.exit(),h).style("opacity",0).remove()}_emptyPath(){const t=this.xScale.range(),e=this.yScale.range();return`M${t[0]},${e[0]} L${t[1]},${e[0]}`}_highlight(t){const{config:e}=this;e.highlightOnHover&&this.g.selectAll(`.${o.line}`).classed(o.dim,c=>c!==t)}_resetHighlight(){const{config:t}=this;t.highlightOnHover&&this.g.selectAll(`.${o.line}`).classed(o.dim,!1)}}S.selectors=o;exports.Line=S;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/@unovis/ts/components/line/index.js"],"sourcesContent":["import { select } from 'd3-selection';\nimport { line } from 'd3-shape';\nimport { interpolatePath } from 'd3-interpolate-path';\nimport { XYComponentCore } from '../../core/xy-component/index.js';\nimport { isNumber, isArray, getNumber, getString, getValue } from '../../utils/data.js';\nimport { smartTransition } from '../../utils/d3.js';\nimport { getColor } from '../../utils/color.js';\nimport { Curve, CurveType } from '../../types/curve.js';\nimport { Direction } from '../../types/direction.js';\nimport { LineDefaultConfig } from './config.js';\nimport * as style from './style.js';\nimport { line as line$1, linePath, lineSelectionHelper, interpolatedPath, dim } from './style.js';\n\nclass Line extends XYComponentCore {\r\n constructor(config) {\r\n super();\r\n this._defaultConfig = LineDefaultConfig;\r\n this.config = this._defaultConfig;\r\n this.curve = Curve[CurveType.MonotoneX];\r\n this.events = {\r\n [Line.selectors.line]: {\r\n mouseover: this._highlight.bind(this),\r\n mouseleave: this._resetHighlight.bind(this),\r\n },\r\n };\r\n if (config)\r\n this.setConfig(config);\r\n }\r\n get bleed() {\r\n const { config: { lineWidth } } = this;\r\n const yDomain = this.yScale.domain();\r\n const yDirection = this.yScale.range()[0] > this.yScale.range()[1]\r\n ? Direction.North\r\n : Direction.South;\r\n const isYDirectionSouth = yDirection === Direction.South;\r\n const isLineThick = lineWidth > 3;\r\n const isLineVeryThick = lineWidth >= 10;\r\n return {\r\n top: !isLineVeryThick && ((!isYDirectionSouth && (yDomain[1] === 0)) || (isYDirectionSouth && (yDomain[0] === 0))) ? 0 : lineWidth / 2,\r\n bottom: !isLineVeryThick && ((!isYDirectionSouth && (yDomain[0] === 0)) || (isYDirectionSouth && (yDomain[1] === 0))) ? 0 : lineWidth / 2,\r\n left: isLineThick ? lineWidth / 2 : 0,\r\n right: isLineThick ? lineWidth / 2 : 0,\r\n };\r\n }\r\n _render(customDuration) {\r\n super._render(customDuration);\r\n const { config, datamodel: { data } } = this;\r\n const duration = isNumber(customDuration) ? customDuration : config.duration;\r\n this.curve = Curve[config.curveType];\r\n this.lineGen = line()\r\n .x(d => d.x)\r\n .y(d => d.y)\r\n .defined(d => d.defined)\r\n .curve(this.curve);\r\n const yAccessors = (isArray(config.y) ? config.y : [config.y]);\r\n const lineDataX = data.map((d, i) => this.xScale(getNumber(d, config.x, i)));\r\n const lineData = yAccessors.map(a => {\r\n const ld = data.map((d, i) => {\r\n const rawValue = getNumber(d, a, i);\r\n // If `rawValue` is not numerical or if it's not finite (`NaN`, `undefined`, ...), we replace it with `config.fallbackValue`\r\n const value = (isNumber(rawValue) || (rawValue === null)) && isFinite(rawValue) ? rawValue : config.fallbackValue;\r\n const defined = config.interpolateMissingData\r\n ? (isNumber(rawValue) || (rawValue === null)) && isFinite(rawValue)\r\n : isFinite(value);\r\n return {\r\n x: lineDataX[i],\r\n y: this.yScale(value !== null && value !== void 0 ? value : 0),\r\n defined,\r\n value,\r\n };\r\n });\r\n const defined = ld.reduce((def, d) => (d.defined || def), false);\r\n let validGap = false;\r\n const gaps = ld.reduce((acc, d, i) => {\r\n // Gaps include fallback values if configured.\r\n if (!d.defined && isFinite(config.fallbackValue)) {\r\n acc.push(Object.assign(Object.assign({}, d), { defined: true }));\r\n }\r\n if (!d.defined && !validGap)\r\n validGap = true;\r\n const isEndpoint = (i > 0 && !ld[i - 1].defined) || (i < ld.length - 1 && !ld[i + 1].defined);\r\n if (d.defined && isEndpoint) {\r\n // If no undefined points have been found since the last endpoint, we insert one to enforce breaks between adjacent gaps.\r\n if (!validGap)\r\n acc.push(Object.assign(Object.assign({}, d), { defined: false }));\r\n acc.push(d);\r\n validGap = false;\r\n }\r\n return acc;\r\n }, []);\r\n // If the line consists only of `null` values, we'll still render it but it'll be invisible.\r\n // Such trick allows us to have better animated transitions.\r\n const visible = defined && ld.some(d => d.value !== null);\r\n return {\r\n values: ld,\r\n defined,\r\n gaps,\r\n visible,\r\n };\r\n });\r\n const lines = this.g\r\n .selectAll(`.${line$1}`)\r\n .data(lineData);\r\n const linesEnter = lines.enter().append('g')\r\n .attr('class', line$1);\r\n linesEnter\r\n .append('path')\r\n .attr('class', linePath)\r\n .attr('stroke', (d, i) => getColor(data, config.color, i))\r\n .attr('stroke-opacity', 0)\r\n .attr('stroke-width', config.lineWidth);\r\n linesEnter\r\n .append('path')\r\n .attr('class', lineSelectionHelper)\r\n .attr('d', this._emptyPath());\r\n linesEnter.append('path')\r\n .attr('class', interpolatedPath)\r\n .attr('d', this._emptyPath())\r\n .style('opacity', 0);\r\n const linesMerged = linesEnter.merge(lines);\r\n linesMerged.style('cursor', (d, i) => getString(data, config.cursor, i));\r\n linesMerged.each((d, i, elements) => {\r\n var _a;\r\n const group = select(elements[i]);\r\n const linePath$1 = group.select(`.${linePath}`);\r\n const lineSelectionHelper$1 = group.select(`.${lineSelectionHelper}`);\r\n const lineGaps = group.select(`.${interpolatedPath}`);\r\n const isLineVisible = d.visible;\r\n const dashArray = getValue(data, config.lineDashArray, i);\r\n const transition = smartTransition(linePath$1, duration)\r\n .attr('stroke', getColor(data, config.color, i))\r\n .attr('stroke-width', config.lineWidth)\r\n .attr('stroke-opacity', isLineVisible ? 1 : 0)\r\n .style('stroke-dasharray', (_a = dashArray === null || dashArray === void 0 ? void 0 : dashArray.join(' ')) !== null && _a !== void 0 ? _a : null); // We use `.style` because there's also a default CSS-variable for stroke-dasharray\r\n const hasUndefinedSegments = d.values.some(d => !d.defined);\r\n const svgPathD = this.lineGen(d.values);\r\n if (duration && !hasUndefinedSegments) {\r\n const previous = linePath$1.attr('d') || this._emptyPath();\r\n const next = svgPathD || this._emptyPath();\r\n const t = transition;\r\n t.attrTween('d', () => interpolatePath(previous, next));\r\n }\r\n else if (d.visible) {\r\n transition.attr('d', svgPathD);\r\n }\r\n lineSelectionHelper$1\r\n .attr('d', svgPathD)\r\n .attr('visibility', isLineVisible ? null : 'hidden');\r\n if (hasUndefinedSegments && config.interpolateMissingData) {\r\n smartTransition(lineGaps, duration)\r\n .attr('d', this.lineGen(d.gaps))\r\n .attr('stroke', getColor(data, config.color, i))\r\n .attr('stroke-width', config.lineWidth - 1)\r\n .style('opacity', 1);\r\n }\r\n else {\r\n lineGaps.transition()\r\n .duration(duration)\r\n .style('opacity', 0);\r\n }\r\n });\r\n smartTransition(lines.exit(), duration)\r\n .style('opacity', 0)\r\n .remove();\r\n }\r\n _emptyPath() {\r\n const xRange = this.xScale.range();\r\n const yRange = this.yScale.range();\r\n return `M${xRange[0]},${yRange[0]} L${xRange[1]},${yRange[0]}`;\r\n }\r\n _highlight(datum) {\r\n const { config } = this;\r\n if (config.highlightOnHover) {\r\n this.g\r\n .selectAll(`.${line$1}`)\r\n .classed(dim, d => d !== datum);\r\n }\r\n }\r\n _resetHighlight() {\r\n const { config } = this;\r\n if (config.highlightOnHover) {\r\n this.g\r\n .selectAll(`.${line$1}`)\r\n .classed(dim, false);\r\n }\r\n }\r\n}\r\nLine.selectors = style;\n\nexport { Line };\n//# sourceMappingURL=index.js.map\n"],"names":["Line","XYComponentCore","config","LineDefaultConfig","Curve","CurveType","lineWidth","yDomain","isYDirectionSouth","Direction","isLineThick","isLineVeryThick","customDuration","data","duration","isNumber","line","d","yAccessors","isArray","lineDataX","getNumber","lineData","a","ld","i","rawValue","value","defined","def","validGap","gaps","acc","isEndpoint","visible","lines","line$1","linesEnter","linePath","getColor","lineSelectionHelper","interpolatedPath","linesMerged","getString","elements","_a","group","select","linePath$1","lineSelectionHelper$1","lineGaps","isLineVisible","dashArray","getValue","transition","smartTransition","hasUndefinedSegments","svgPathD","previous","next","interpolatePath","xRange","yRange","datum","dim","style"],"mappings":"shBAaA,MAAMA,UAAaC,EAAAA,eAAgB,CAC/B,YAAYC,EAAQ,CAChB,QACA,KAAK,eAAiBC,oBACtB,KAAK,OAAS,KAAK,eACnB,KAAK,MAAQC,EAAAA,MAAMC,EAAS,UAAC,SAAS,EACtC,KAAK,OAAS,CACV,CAACL,EAAK,UAAU,IAAI,EAAG,CACnB,UAAW,KAAK,WAAW,KAAK,IAAI,EACpC,WAAY,KAAK,gBAAgB,KAAK,IAAI,CAC7C,CACb,EACYE,GACA,KAAK,UAAUA,CAAM,CAC5B,CACD,IAAI,OAAQ,CACR,KAAM,CAAE,OAAQ,CAAE,UAAAI,CAAW,CAAA,EAAK,KAC5BC,EAAU,KAAK,OAAO,OAAM,EAI5BC,GAHa,KAAK,OAAO,MAAO,EAAC,CAAC,EAAI,KAAK,OAAO,MAAK,EAAG,CAAC,EAC3DC,EAAAA,UAAU,MACVA,EAAAA,UAAU,SACyBA,EAAS,UAAC,MAC7CC,EAAcJ,EAAY,EAC1BK,EAAkBL,GAAa,GACrC,MAAO,CACH,IAAK,CAACK,IAAqB,CAACH,GAAsBD,EAAQ,CAAC,IAAM,GAAQC,GAAsBD,EAAQ,CAAC,IAAM,GAAO,EAAID,EAAY,EACrI,OAAQ,CAACK,IAAqB,CAACH,GAAsBD,EAAQ,CAAC,IAAM,GAAQC,GAAsBD,EAAQ,CAAC,IAAM,GAAO,EAAID,EAAY,EACxI,KAAMI,EAAcJ,EAAY,EAAI,EACpC,MAAOI,EAAcJ,EAAY,EAAI,CACjD,CACK,CACD,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C,EAC9C,KAAK,eAAgBA,EAAO,UAAY,CAAC,EACzC,MAAM,UAAW,CAAC,EAGvBgD,EAAS,WAAY,EAChB,SAASpC,CAAQ,EACjB,MAAM,UAAW,CAAC,CAEvC,CAAS,EACDyC,EAAAA,gBAAgBpB,EAAM,KAAM,EAAErB,CAAQ,EACjC,MAAM,UAAW,CAAC,EAClB,QACR,CACD,YAAa,CACT,MAAM+C,EAAS,KAAK,OAAO,MAAK,EAC1BC,EAAS,KAAK,OAAO,MAAK,EAChC,MAAO,IAAID,EAAO,CAAC,CAAC,IAAIC,EAAO,CAAC,CAAC,KAAKD,EAAO,CAAC,CAAC,IAAIC,EAAO,CAAC,CAAC,EAC/D,CACD,WAAWC,EAAO,CACd,KAAM,CAAE,OAAA7D,CAAQ,EAAG,KACfA,EAAO,kBACP,KAAK,EACA,UAAU,IAAIkC,EAAM,IAAA,EAAE,EACtB,QAAQ4B,EAAAA,IAAK/C,GAAKA,IAAM8C,CAAK,CAEzC,CACD,iBAAkB,CACd,KAAM,CAAE,OAAA7D,CAAQ,EAAG,KACfA,EAAO,kBACP,KAAK,EACA,UAAU,IAAIkC,EAAM,IAAA,EAAE,EACtB,QAAQ4B,EAAAA,IAAK,EAAK,CAE9B,CACL,CACAhE,EAAK,UAAYiE","x_google_ignoreList":[0]}
|
|
@@ -1,87 +0,0 @@
|
|
|
1
|
-
import { interpolatePath as M } from "../../../../d3-interpolate-path/build/d3-interpolate-path.js";
|
|
2
|
-
import { XYComponentCore as F } from "../../core/xy-component/index.js";
|
|
3
|
-
import { isNumber as _, isArray as W, getNumber as H, getString as N, getValue as X } from "../../utils/data.js";
|
|
4
|
-
import { smartTransition as $ } from "../../utils/d3.js";
|
|
5
|
-
import { getColor as x } from "../../utils/color.js";
|
|
6
|
-
import { Curve as O, CurveType as E } from "../../types/curve.js";
|
|
7
|
-
import { Direction as D } from "../../types/direction.js";
|
|
8
|
-
import { LineDefaultConfig as R } from "./config.js";
|
|
9
|
-
import * as Y from "./style.js";
|
|
10
|
-
import { line as v, linePath as T, lineSelectionHelper as V, interpolatedPath as j, dim as w } from "./style.js";
|
|
11
|
-
import U from "../../../../d3-shape/src/line.js";
|
|
12
|
-
import q from "../../../../d3-selection/src/select.js";
|
|
13
|
-
class P extends F {
|
|
14
|
-
constructor(e) {
|
|
15
|
-
super(), this._defaultConfig = R, this.config = this._defaultConfig, this.curve = O[E.MonotoneX], this.events = {
|
|
16
|
-
[P.selectors.line]: {
|
|
17
|
-
mouseover: this._highlight.bind(this),
|
|
18
|
-
mouseleave: this._resetHighlight.bind(this)
|
|
19
|
-
}
|
|
20
|
-
}, e && this.setConfig(e);
|
|
21
|
-
}
|
|
22
|
-
get bleed() {
|
|
23
|
-
const { config: { lineWidth: e } } = this, t = this.yScale.domain(), c = (this.yScale.range()[0] > this.yScale.range()[1] ? D.North : D.South) === D.South, p = e > 3, f = e >= 10;
|
|
24
|
-
return {
|
|
25
|
-
top: !f && (!c && t[1] === 0 || c && t[0] === 0) ? 0 : e / 2,
|
|
26
|
-
bottom: !f && (!c && t[0] === 0 || c && t[1] === 0) ? 0 : e / 2,
|
|
27
|
-
left: p ? e / 2 : 0,
|
|
28
|
-
right: p ? e / 2 : 0
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
_render(e) {
|
|
32
|
-
super._render(e);
|
|
33
|
-
const { config: t, datamodel: { data: l } } = this, c = _(e) ? e : t.duration;
|
|
34
|
-
this.curve = O[t.curveType], this.lineGen = U().x((s) => s.x).y((s) => s.y).defined((s) => s.defined).curve(this.curve);
|
|
35
|
-
const p = W(t.y) ? t.y : [t.y], f = l.map((s, i) => this.xScale(H(s, t.x, i))), G = p.map((s) => {
|
|
36
|
-
const i = l.map((r, o) => {
|
|
37
|
-
const n = H(r, s, o), a = (_(n) || n === null) && isFinite(n) ? n : t.fallbackValue, y = t.interpolateMissingData ? (_(n) || n === null) && isFinite(n) : isFinite(a);
|
|
38
|
-
return {
|
|
39
|
-
x: f[o],
|
|
40
|
-
y: this.yScale(a ?? 0),
|
|
41
|
-
defined: y,
|
|
42
|
-
value: a
|
|
43
|
-
};
|
|
44
|
-
}), g = i.reduce((r, o) => o.defined || r, !1);
|
|
45
|
-
let h = !1;
|
|
46
|
-
const d = i.reduce((r, o, n) => {
|
|
47
|
-
!o.defined && isFinite(t.fallbackValue) && r.push(Object.assign(Object.assign({}, o), { defined: !0 })), !o.defined && !h && (h = !0);
|
|
48
|
-
const a = n > 0 && !i[n - 1].defined || n < i.length - 1 && !i[n + 1].defined;
|
|
49
|
-
return o.defined && a && (h || r.push(Object.assign(Object.assign({}, o), { defined: !1 })), r.push(o), h = !1), r;
|
|
50
|
-
}, []), m = g && i.some((r) => r.value !== null);
|
|
51
|
-
return {
|
|
52
|
-
values: i,
|
|
53
|
-
defined: g,
|
|
54
|
-
gaps: d,
|
|
55
|
-
visible: m
|
|
56
|
-
};
|
|
57
|
-
}), b = this.g.selectAll(`.${v}`).data(G), u = b.enter().append("g").attr("class", v);
|
|
58
|
-
u.append("path").attr("class", T).attr("stroke", (s, i) => x(l, t.color, i)).attr("stroke-opacity", 0).attr("stroke-width", t.lineWidth), u.append("path").attr("class", V).attr("d", this._emptyPath()), u.append("path").attr("class", j).attr("d", this._emptyPath()).style("opacity", 0);
|
|
59
|
-
const C = u.merge(b);
|
|
60
|
-
C.style("cursor", (s, i) => N(l, t.cursor, i)), C.each((s, i, g) => {
|
|
61
|
-
var h;
|
|
62
|
-
const d = q(g[i]), m = d.select(`.${T}`), r = d.select(`.${V}`), o = d.select(`.${j}`), n = s.visible, a = X(l, t.lineDashArray, i), y = $(m, c).attr("stroke", x(l, t.color, i)).attr("stroke-width", t.lineWidth).attr("stroke-opacity", n ? 1 : 0).style("stroke-dasharray", (h = a == null ? void 0 : a.join(" ")) !== null && h !== void 0 ? h : null), A = s.values.some((k) => !k.defined), S = this.lineGen(s.values);
|
|
63
|
-
if (c && !A) {
|
|
64
|
-
const k = m.attr("d") || this._emptyPath(), L = S || this._emptyPath();
|
|
65
|
-
y.attrTween("d", () => M(k, L));
|
|
66
|
-
} else s.visible && y.attr("d", S);
|
|
67
|
-
r.attr("d", S).attr("visibility", n ? null : "hidden"), A && t.interpolateMissingData ? $(o, c).attr("d", this.lineGen(s.gaps)).attr("stroke", x(l, t.color, i)).attr("stroke-width", t.lineWidth - 1).style("opacity", 1) : o.transition().duration(c).style("opacity", 0);
|
|
68
|
-
}), $(b.exit(), c).style("opacity", 0).remove();
|
|
69
|
-
}
|
|
70
|
-
_emptyPath() {
|
|
71
|
-
const e = this.xScale.range(), t = this.yScale.range();
|
|
72
|
-
return `M${e[0]},${t[0]} L${e[1]},${t[0]}`;
|
|
73
|
-
}
|
|
74
|
-
_highlight(e) {
|
|
75
|
-
const { config: t } = this;
|
|
76
|
-
t.highlightOnHover && this.g.selectAll(`.${v}`).classed(w, (l) => l !== e);
|
|
77
|
-
}
|
|
78
|
-
_resetHighlight() {
|
|
79
|
-
const { config: e } = this;
|
|
80
|
-
e.highlightOnHover && this.g.selectAll(`.${v}`).classed(w, !1);
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
P.selectors = Y;
|
|
84
|
-
export {
|
|
85
|
-
P as Line
|
|
86
|
-
};
|
|
87
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@unovis/ts/components/line/index.js"],"sourcesContent":["import { select } from 'd3-selection';\nimport { line } from 'd3-shape';\nimport { interpolatePath } from 'd3-interpolate-path';\nimport { XYComponentCore } from '../../core/xy-component/index.js';\nimport { isNumber, isArray, getNumber, getString, getValue } from '../../utils/data.js';\nimport { smartTransition } from '../../utils/d3.js';\nimport { getColor } from '../../utils/color.js';\nimport { Curve, CurveType } from '../../types/curve.js';\nimport { Direction } from '../../types/direction.js';\nimport { LineDefaultConfig } from './config.js';\nimport * as style from './style.js';\nimport { line as line$1, linePath, lineSelectionHelper, interpolatedPath, dim } from './style.js';\n\nclass Line extends XYComponentCore {\r\n constructor(config) {\r\n super();\r\n this._defaultConfig = LineDefaultConfig;\r\n this.config = this._defaultConfig;\r\n this.curve = Curve[CurveType.MonotoneX];\r\n this.events = {\r\n [Line.selectors.line]: {\r\n mouseover: this._highlight.bind(this),\r\n mouseleave: this._resetHighlight.bind(this),\r\n },\r\n };\r\n if (config)\r\n this.setConfig(config);\r\n }\r\n get bleed() {\r\n const { config: { lineWidth } } = this;\r\n const yDomain = this.yScale.domain();\r\n const yDirection = this.yScale.range()[0] > this.yScale.range()[1]\r\n ? Direction.North\r\n : Direction.South;\r\n const isYDirectionSouth = yDirection === Direction.South;\r\n const isLineThick = lineWidth > 3;\r\n const isLineVeryThick = lineWidth >= 10;\r\n return {\r\n top: !isLineVeryThick && ((!isYDirectionSouth && (yDomain[1] === 0)) || (isYDirectionSouth && (yDomain[0] === 0))) ? 0 : lineWidth / 2,\r\n bottom: !isLineVeryThick && ((!isYDirectionSouth && (yDomain[0] === 0)) || (isYDirectionSouth && (yDomain[1] === 0))) ? 0 : lineWidth / 2,\r\n left: isLineThick ? lineWidth / 2 : 0,\r\n right: isLineThick ? lineWidth / 2 : 0,\r\n };\r\n }\r\n _render(customDuration) {\r\n super._render(customDuration);\r\n const { config, datamodel: { data } } = this;\r\n const duration = isNumber(customDuration) ? customDuration : config.duration;\r\n this.curve = Curve[config.curveType];\r\n this.lineGen = line()\r\n .x(d => d.x)\r\n .y(d => d.y)\r\n .defined(d => d.defined)\r\n .curve(this.curve);\r\n const yAccessors = (isArray(config.y) ? config.y : [config.y]);\r\n const lineDataX = data.map((d, i) => this.xScale(getNumber(d, config.x, i)));\r\n const lineData = yAccessors.map(a => {\r\n const ld = data.map((d, i) => {\r\n const rawValue = getNumber(d, a, i);\r\n // If `rawValue` is not numerical or if it's not finite (`NaN`, `undefined`, ...), we replace it with `config.fallbackValue`\r\n const value = (isNumber(rawValue) || (rawValue === null)) && isFinite(rawValue) ? rawValue : config.fallbackValue;\r\n const defined = config.interpolateMissingData\r\n ? (isNumber(rawValue) || (rawValue === null)) && isFinite(rawValue)\r\n : isFinite(value);\r\n return {\r\n x: lineDataX[i],\r\n y: this.yScale(value !== null && value !== void 0 ? value : 0),\r\n defined,\r\n value,\r\n };\r\n });\r\n const defined = ld.reduce((def, d) => (d.defined || def), false);\r\n let validGap = false;\r\n const gaps = ld.reduce((acc, d, i) => {\r\n // Gaps include fallback values if configured.\r\n if (!d.defined && isFinite(config.fallbackValue)) {\r\n acc.push(Object.assign(Object.assign({}, d), { defined: true }));\r\n }\r\n if (!d.defined && !validGap)\r\n validGap = true;\r\n const isEndpoint = (i > 0 && !ld[i - 1].defined) || (i < ld.length - 1 && !ld[i + 1].defined);\r\n if (d.defined && isEndpoint) {\r\n // If no undefined points have been found since the last endpoint, we insert one to enforce breaks between adjacent gaps.\r\n if (!validGap)\r\n acc.push(Object.assign(Object.assign({}, d), { defined: false }));\r\n acc.push(d);\r\n validGap = false;\r\n }\r\n return acc;\r\n }, []);\r\n // If the line consists only of `null` values, we'll still render it but it'll be invisible.\r\n // Such trick allows us to have better animated transitions.\r\n const visible = defined && ld.some(d => d.value !== null);\r\n return {\r\n values: ld,\r\n defined,\r\n gaps,\r\n visible,\r\n };\r\n });\r\n const lines = this.g\r\n .selectAll(`.${line$1}`)\r\n .data(lineData);\r\n const linesEnter = lines.enter().append('g')\r\n .attr('class', line$1);\r\n linesEnter\r\n .append('path')\r\n .attr('class', linePath)\r\n .attr('stroke', (d, i) => getColor(data, config.color, i))\r\n .attr('stroke-opacity', 0)\r\n .attr('stroke-width', config.lineWidth);\r\n linesEnter\r\n .append('path')\r\n .attr('class', lineSelectionHelper)\r\n .attr('d', this._emptyPath());\r\n linesEnter.append('path')\r\n .attr('class', interpolatedPath)\r\n .attr('d', this._emptyPath())\r\n .style('opacity', 0);\r\n const linesMerged = linesEnter.merge(lines);\r\n linesMerged.style('cursor', (d, i) => getString(data, config.cursor, i));\r\n linesMerged.each((d, i, elements) => {\r\n var _a;\r\n const group = select(elements[i]);\r\n const linePath$1 = group.select(`.${linePath}`);\r\n const lineSelectionHelper$1 = group.select(`.${lineSelectionHelper}`);\r\n const lineGaps = group.select(`.${interpolatedPath}`);\r\n const isLineVisible = d.visible;\r\n const dashArray = getValue(data, config.lineDashArray, i);\r\n const transition = smartTransition(linePath$1, duration)\r\n .attr('stroke', getColor(data, config.color, i))\r\n .attr('stroke-width', config.lineWidth)\r\n .attr('stroke-opacity', isLineVisible ? 1 : 0)\r\n .style('stroke-dasharray', (_a = dashArray === null || dashArray === void 0 ? void 0 : dashArray.join(' ')) !== null && _a !== void 0 ? _a : null); // We use `.style` because there's also a default CSS-variable for stroke-dasharray\r\n const hasUndefinedSegments = d.values.some(d => !d.defined);\r\n const svgPathD = this.lineGen(d.values);\r\n if (duration && !hasUndefinedSegments) {\r\n const previous = linePath$1.attr('d') || this._emptyPath();\r\n const next = svgPathD || this._emptyPath();\r\n const t = transition;\r\n t.attrTween('d', () => interpolatePath(previous, next));\r\n }\r\n else if (d.visible) {\r\n transition.attr('d', svgPathD);\r\n }\r\n lineSelectionHelper$1\r\n .attr('d', svgPathD)\r\n .attr('visibility', isLineVisible ? null : 'hidden');\r\n if (hasUndefinedSegments && config.interpolateMissingData) {\r\n smartTransition(lineGaps, duration)\r\n .attr('d', this.lineGen(d.gaps))\r\n .attr('stroke', getColor(data, config.color, i))\r\n .attr('stroke-width', config.lineWidth - 1)\r\n .style('opacity', 1);\r\n }\r\n else {\r\n lineGaps.transition()\r\n .duration(duration)\r\n .style('opacity', 0);\r\n }\r\n });\r\n smartTransition(lines.exit(), duration)\r\n .style('opacity', 0)\r\n .remove();\r\n }\r\n _emptyPath() {\r\n const xRange = this.xScale.range();\r\n const yRange = this.yScale.range();\r\n return `M${xRange[0]},${yRange[0]} L${xRange[1]},${yRange[0]}`;\r\n }\r\n _highlight(datum) {\r\n const { config } = this;\r\n if (config.highlightOnHover) {\r\n this.g\r\n .selectAll(`.${line$1}`)\r\n .classed(dim, d => d !== datum);\r\n }\r\n }\r\n _resetHighlight() {\r\n const { config } = this;\r\n if (config.highlightOnHover) {\r\n this.g\r\n .selectAll(`.${line$1}`)\r\n .classed(dim, false);\r\n }\r\n }\r\n}\r\nLine.selectors = style;\n\nexport { Line };\n//# sourceMappingURL=index.js.map\n"],"names":["Line","XYComponentCore","config","LineDefaultConfig","Curve","CurveType","lineWidth","yDomain","isYDirectionSouth","Direction","isLineThick","isLineVeryThick","customDuration","data","duration","isNumber","line","d","yAccessors","isArray","lineDataX","getNumber","lineData","a","ld","i","rawValue","value","defined","def","validGap","gaps","acc","isEndpoint","visible","lines","line$1","linesEnter","linePath","getColor","lineSelectionHelper","interpolatedPath","linesMerged","getString","elements","_a","group","select","linePath$1","lineSelectionHelper$1","lineGaps","isLineVisible","dashArray","getValue","transition","smartTransition","hasUndefinedSegments","svgPathD","previous","next","interpolatePath","xRange","yRange","datum","dim","style"],"mappings":";;;;;;;;;;;;AAaA,MAAMA,UAAaC,EAAgB;AAAA,EAC/B,YAAYC,GAAQ;AAChB,aACA,KAAK,iBAAiBC,GACtB,KAAK,SAAS,KAAK,gBACnB,KAAK,QAAQC,EAAMC,EAAU,SAAS,GACtC,KAAK,SAAS;AAAA,MACV,CAACL,EAAK,UAAU,IAAI,GAAG;AAAA,QACnB,WAAW,KAAK,WAAW,KAAK,IAAI;AAAA,QACpC,YAAY,KAAK,gBAAgB,KAAK,IAAI;AAAA,MAC7C;AAAA,IACb,GACYE,KACA,KAAK,UAAUA,CAAM;AAAA,EAC5B;AAAA,EACD,IAAI,QAAQ;AACR,UAAM,EAAE,QAAQ,EAAE,WAAAI,EAAW,EAAA,IAAK,MAC5BC,IAAU,KAAK,OAAO,OAAM,GAI5BC,KAHa,KAAK,OAAO,MAAO,EAAC,CAAC,IAAI,KAAK,OAAO,MAAK,EAAG,CAAC,IAC3DC,EAAU,QACVA,EAAU,WACyBA,EAAU,OAC7CC,IAAcJ,IAAY,GAC1BK,IAAkBL,KAAa;AACrC,WAAO;AAAA,MACH,KAAK,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@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../../@emotion/css/dist/emotion-css.esm.cjs"),s=e.injectGlobal`
|
|
2
|
-
:root {
|
|
3
|
-
--vis-line-cursor: default;
|
|
4
|
-
--vis-line-stroke-dasharray: none;
|
|
5
|
-
--vis-line-stroke-dashoffset: 0;
|
|
6
|
-
|
|
7
|
-
--vis-line-gapfill-stroke-dasharray: 2 3;
|
|
8
|
-
--vis-line-gapfill-stroke-opacity: 0.8;
|
|
9
|
-
--vis-line-gapfill-stroke-dashoffset: 0;
|
|
10
|
-
}
|
|
11
|
-
`,l=e.css`
|
|
12
|
-
label: line-component;
|
|
13
|
-
`,t=e.css`
|
|
14
|
-
label: line;
|
|
15
|
-
transition: opacity 200ms;
|
|
16
|
-
cursor: var(--vis-line-cursor);
|
|
17
|
-
`,o=e.css`
|
|
18
|
-
label: linePath;
|
|
19
|
-
fill: none;
|
|
20
|
-
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
21
|
-
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
22
|
-
`,i=e.css`
|
|
23
|
-
label: lineSelectionHelper;
|
|
24
|
-
fill: none;
|
|
25
|
-
stroke: rgba(0, 0, 0, 0);
|
|
26
|
-
stroke-width: 8px;
|
|
27
|
-
`,a=e.css`
|
|
28
|
-
opacity: 0.2;
|
|
29
|
-
`,r=e.css`
|
|
30
|
-
label: interpolated-path;
|
|
31
|
-
fill: none;
|
|
32
|
-
stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
|
|
33
|
-
stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
|
|
34
|
-
stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
|
|
35
|
-
`;exports.dim=a;exports.globalStyles=s;exports.interpolatedPath=r;exports.line=t;exports.linePath=o;exports.lineSelectionHelper=i;exports.root=l;
|
|
36
|
-
//# sourceMappingURL=style.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.cjs","sources":["../../../../../../node_modules/@unovis/ts/components/line/style.js"],"sourcesContent":["import { injectGlobal, css } from '@emotion/css';\n\nconst globalStyles = injectGlobal `\n :root {\n --vis-line-cursor: default;\n --vis-line-stroke-dasharray: none;\n --vis-line-stroke-dashoffset: 0;\n\n --vis-line-gapfill-stroke-dasharray: 2 3;\n --vis-line-gapfill-stroke-opacity: 0.8;\n --vis-line-gapfill-stroke-dashoffset: 0;\n }\n`;\r\nconst root = css `\n label: line-component;\n`;\r\nconst line = css `\n label: line;\n transition: opacity 200ms;\n cursor: var(--vis-line-cursor);\n`;\r\nconst linePath = css `\n label: linePath;\n fill: none;\n stroke-dasharray: var(--vis-line-stroke-dasharray);\n stroke-dashoffset: var(--vis-line-stroke-dashoffset);\n`;\r\nconst lineSelectionHelper = css `\n label: lineSelectionHelper;\n fill: none;\n stroke: rgba(0, 0, 0, 0);\n stroke-width: 8px;\n`;\r\nconst dim = css `\n opacity: 0.2;\n`;\r\nconst interpolatedPath = css `\n label: interpolated-path;\n fill: none;\n stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);\n stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);\n stroke-opacity: var(--vis-line-gapfill-stroke-opacity);\n`;\n\nexport { dim, globalStyles, interpolatedPath, line, linePath, lineSelectionHelper, root };\n//# sourceMappingURL=style.js.map\n"],"names":["globalStyles","injectGlobal","root","css","line","linePath","lineSelectionHelper","dim","interpolatedPath"],"mappings":"qJAEMA,EAAeC,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,EAWfC,EAAOC,EAAAA;AAAAA;AAAAA,EAGPC,EAAOD,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA,EAKPE,EAAWF,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,EAMXG,EAAsBH,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA,EAMtBI,EAAMJ,EAAAA;AAAAA;AAAAA,EAGNK,EAAmBL,EAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA;AAAAA","x_google_ignoreList":[0]}
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
import { css as e, injectGlobal as s } from "../../../../@emotion/css/dist/emotion-css.esm.js";
|
|
2
|
-
const o = s`
|
|
3
|
-
:root {
|
|
4
|
-
--vis-line-cursor: default;
|
|
5
|
-
--vis-line-stroke-dasharray: none;
|
|
6
|
-
--vis-line-stroke-dashoffset: 0;
|
|
7
|
-
|
|
8
|
-
--vis-line-gapfill-stroke-dasharray: 2 3;
|
|
9
|
-
--vis-line-gapfill-stroke-opacity: 0.8;
|
|
10
|
-
--vis-line-gapfill-stroke-dashoffset: 0;
|
|
11
|
-
}
|
|
12
|
-
`, a = e`
|
|
13
|
-
label: line-component;
|
|
14
|
-
`, t = e`
|
|
15
|
-
label: line;
|
|
16
|
-
transition: opacity 200ms;
|
|
17
|
-
cursor: var(--vis-line-cursor);
|
|
18
|
-
`, i = e`
|
|
19
|
-
label: linePath;
|
|
20
|
-
fill: none;
|
|
21
|
-
stroke-dasharray: var(--vis-line-stroke-dasharray);
|
|
22
|
-
stroke-dashoffset: var(--vis-line-stroke-dashoffset);
|
|
23
|
-
`, r = e`
|
|
24
|
-
label: lineSelectionHelper;
|
|
25
|
-
fill: none;
|
|
26
|
-
stroke: rgba(0, 0, 0, 0);
|
|
27
|
-
stroke-width: 8px;
|
|
28
|
-
`, n = e`
|
|
29
|
-
opacity: 0.2;
|
|
30
|
-
`, f = e`
|
|
31
|
-
label: interpolated-path;
|
|
32
|
-
fill: none;
|
|
33
|
-
stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);
|
|
34
|
-
stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);
|
|
35
|
-
stroke-opacity: var(--vis-line-gapfill-stroke-opacity);
|
|
36
|
-
`;
|
|
37
|
-
export {
|
|
38
|
-
n as dim,
|
|
39
|
-
o as globalStyles,
|
|
40
|
-
f as interpolatedPath,
|
|
41
|
-
t as line,
|
|
42
|
-
i as linePath,
|
|
43
|
-
r as lineSelectionHelper,
|
|
44
|
-
a as root
|
|
45
|
-
};
|
|
46
|
-
//# sourceMappingURL=style.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"style.js","sources":["../../../../../../node_modules/@unovis/ts/components/line/style.js"],"sourcesContent":["import { injectGlobal, css } from '@emotion/css';\n\nconst globalStyles = injectGlobal `\n :root {\n --vis-line-cursor: default;\n --vis-line-stroke-dasharray: none;\n --vis-line-stroke-dashoffset: 0;\n\n --vis-line-gapfill-stroke-dasharray: 2 3;\n --vis-line-gapfill-stroke-opacity: 0.8;\n --vis-line-gapfill-stroke-dashoffset: 0;\n }\n`;\r\nconst root = css `\n label: line-component;\n`;\r\nconst line = css `\n label: line;\n transition: opacity 200ms;\n cursor: var(--vis-line-cursor);\n`;\r\nconst linePath = css `\n label: linePath;\n fill: none;\n stroke-dasharray: var(--vis-line-stroke-dasharray);\n stroke-dashoffset: var(--vis-line-stroke-dashoffset);\n`;\r\nconst lineSelectionHelper = css `\n label: lineSelectionHelper;\n fill: none;\n stroke: rgba(0, 0, 0, 0);\n stroke-width: 8px;\n`;\r\nconst dim = css `\n opacity: 0.2;\n`;\r\nconst interpolatedPath = css `\n label: interpolated-path;\n fill: none;\n stroke-dasharray: var(--vis-line-gapfill-stroke-dasharray);\n stroke-dashoffset: var(--vis-line-gapfill-stroke-dashoffset);\n stroke-opacity: var(--vis-line-gapfill-stroke-opacity);\n`;\n\nexport { dim, globalStyles, interpolatedPath, line, linePath, lineSelectionHelper, root };\n//# sourceMappingURL=style.js.map\n"],"names":["globalStyles","injectGlobal","root","css","line","linePath","lineSelectionHelper","dim","interpolatedPath"],"mappings":";AAEK,MAACA,IAAeC;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,GAWfC,IAAOC;AAAA;AAAA,GAGPC,IAAOD;AAAA;AAAA;AAAA;AAAA,GAKPE,IAAWF;AAAA;AAAA;AAAA;AAAA;AAAA,GAMXG,IAAsBH;AAAA;AAAA;AAAA;AAAA;AAAA,GAMtBI,IAAMJ;AAAA;AAAA,GAGNK,IAAmBL;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../core/xy-component/config.cjs"),n=require("../../types/position.cjs"),i=Object.assign(Object.assign({},e.XYComponentDefaultConfig),{color:void 0,barMaxWidth:void 0,barWidth:void 0,dataStep:void 0,barPadding:0,roundedCorners:2,cursor:null,barMinHeight1Px:!1,barMinHeightZeroValue:null,orientation:n.Orientation.Vertical});exports.StackedBarDefaultConfig=i;
|
|
2
|
-
//# sourceMappingURL=config.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.cjs","sources":["../../../../../../node_modules/@unovis/ts/components/stacked-bar/config.js"],"sourcesContent":["import { XYComponentDefaultConfig } from '../../core/xy-component/config.js';\nimport { Orientation } from '../../types/position.js';\n\nconst StackedBarDefaultConfig = Object.assign(Object.assign({}, XYComponentDefaultConfig), { color: undefined, barMaxWidth: undefined, barWidth: undefined, dataStep: undefined, barPadding: 0.0, roundedCorners: 2, cursor: null, barMinHeight1Px: false, barMinHeightZeroValue: null, orientation: Orientation.Vertical });\n\nexport { StackedBarDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["StackedBarDefaultConfig","XYComponentDefaultConfig","Orientation"],"mappings":"4KAGMA,EAA0B,OAAO,OAAO,OAAO,OAAO,CAAA,EAAIC,EAAAA,wBAAwB,EAAG,CAAE,MAAO,OAAW,YAAa,OAAW,SAAU,OAAW,SAAU,OAAW,WAAY,EAAK,eAAgB,EAAG,OAAQ,KAAM,gBAAiB,GAAO,sBAAuB,KAAM,YAAaC,EAAAA,YAAY,QAAU,CAAA","x_google_ignoreList":[0]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { XYComponentDefaultConfig as e } from "../../core/xy-component/config.js";
|
|
2
|
-
import { Orientation as n } from "../../types/position.js";
|
|
3
|
-
const t = Object.assign(Object.assign({}, e), { color: void 0, barMaxWidth: void 0, barWidth: void 0, dataStep: void 0, barPadding: 0, roundedCorners: 2, cursor: null, barMinHeight1Px: !1, barMinHeightZeroValue: null, orientation: n.Vertical });
|
|
4
|
-
export {
|
|
5
|
-
t as StackedBarDefaultConfig
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sources":["../../../../../../node_modules/@unovis/ts/components/stacked-bar/config.js"],"sourcesContent":["import { XYComponentDefaultConfig } from '../../core/xy-component/config.js';\nimport { Orientation } from '../../types/position.js';\n\nconst StackedBarDefaultConfig = Object.assign(Object.assign({}, XYComponentDefaultConfig), { color: undefined, barMaxWidth: undefined, barWidth: undefined, dataStep: undefined, barPadding: 0.0, roundedCorners: 2, cursor: null, barMinHeight1Px: false, barMinHeightZeroValue: null, orientation: Orientation.Vertical });\n\nexport { StackedBarDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["StackedBarDefaultConfig","XYComponentDefaultConfig","Orientation"],"mappings":";;AAGK,MAACA,IAA0B,OAAO,OAAO,OAAO,OAAO,CAAA,GAAIC,CAAwB,GAAG,EAAE,OAAO,QAAW,aAAa,QAAW,UAAU,QAAW,UAAU,QAAW,YAAY,GAAK,gBAAgB,GAAG,QAAQ,MAAM,iBAAiB,IAAO,uBAAuB,MAAM,aAAaC,EAAY,SAAU,CAAA;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const D=require("../../core/xy-component/index.cjs"),d=require("../../utils/data.cjs"),E=require("../../utils/path.cjs"),x=require("../../utils/d3.cjs"),V=require("../../utils/color.cjs"),M=require("../../types/position.cjs"),W=require("./config.cjs"),p=require("./style.cjs"),_=require("../../../../d3-array/src/min.cjs"),P=require("../../../../d3-array/src/max.cjs");class y extends D.XYComponentCore{constructor(t){super(),this._defaultConfig=W.StackedBarDefaultConfig,this.config=this._defaultConfig,this.getAccessors=()=>d.isArray(this.config.y)?this.config.y:[this.config.y],this.stacked=!0,this.events={},this._barData=[],t&&this.setConfig(t)}get bleed(){if(this._barData=this._getVisibleData(),this._barData.length===0)return{top:0,bottom:0,left:0,right:0};const t=!this.isVertical()&&this.dataScale.range()[0]>this.dataScale.range()[1],a=this.dataScale.domain(),s=this._getBarWidth()/2,i=this._barData.map((f,e)=>d.getNumber(f,this.config.x,e)),g=_.default(i),o=P.default(i),n=this.dataScale(g),b=this.dataScale(o),u=this.dataScale.invert(n+(t?s:-s)),l=this.dataScale.invert(b+(t?-s:s)),c=u<=a[0]?this.dataScale(a[0])-this.dataScale(u):0,S=l>a[1]?this.dataScale(l)-this.dataScale(a[1]):0;return{top:this.isVertical()?0:t?-S:c,bottom:this.isVertical()?0:t?-c:S,left:this.isVertical()?c:0,right:this.isVertical()?S:0}}get dataScale(){return this.isVertical()?this.xScale:this.yScale}get valueScale(){return this.isVertical()?this.yScale:this.xScale}isVertical(){return this.config.orientation===M.Orientation.Vertical}_render(t){const{config:a}=this,s=d.isNumber(t)?t:a.duration,i=this.getAccessors(),g=d.getStackedData(this._barData,0,i,this._prevNegative);this._prevNegative=g.map(e=>!!e.isMostlyNegative);const o=this.g.selectAll(`.${p.barGroup}`).data(this._barData,(e,r)=>{var m;return`${(m=d.getString(e,a.id,r))!==null&&m!==void 0?m:r}`}),n=(e,r)=>{const m=this.dataScale(d.getNumber(e,a.x,r)),h=this.isVertical()?m:0,v=this.isVertical()?0:m;return`translate(${h},${v})`},u=o.enter().append("g").attr("class",p.barGroup).attr("transform",n).style("opacity",1).merge(o);x.smartTransition(u,s).attr("transform",n).style("opacity",1);const l=o.exit().attr("class",p.barGroupExit);x.smartTransition(l,s).style("opacity",0).remove(),x.smartTransition(l.selectAll(`.${p.bar}`),s).attr("transform",this.isVertical()?`translate(0,${this._height/3})`:`translate(${this._width/6},0)`);const c=u.selectAll(`.${p.bar}`).data((e,r)=>g.map((m,h)=>Object.assign(Object.assign({},e),{_index:r,_stacked:m[r],_ending:h===g.length-1||h<=g.length-1&&g[h+1][r][0]!==m[r][1]}))),f=c.enter().append("path").attr("class",p.bar).attr("d",(e,r)=>this._getBarPath(e,r,!0)).style("fill",(e,r)=>V.getColor(e,a.color,r)).merge(c);x.smartTransition(f,s).attr("d",(e,r)=>this._getBarPath(e,r)).style("fill",(e,r)=>V.getColor(e,a.color,r)).style("cursor",(e,r)=>d.getString(e,a.cursor,r)),x.smartTransition(c.exit(),s).style("opacity",0).remove()}_getBarWidth(){const{config:t,datamodel:{data:a}}=this;if(d.isEmpty(a))return 0;if(t.barWidth)return _.default([t.barWidth,t.barMaxWidth]);const s=this.dataScale.bandwidth,i=this.dataScale.domain?this.dataScale.domain():[];let o=1+(s?i.length:i[1]-i[0])/t.dataStep||!s&&a.filter((u,l)=>{const c=d.getNumber(u,t.x,l);return c>=i[0]&&c<=i[1]}).length||a.length;!s&&o>=2&&(o+=1);const b=(o<2?1:1-t.barPadding)*(this.isVertical()?this._width:this._height)/o;return _.default([b,t.barMaxWidth])}_getVisibleData(){const{config:t,datamodel:{data:a}}=this,s=this._getBarWidth(),i=a.length<2?0:s/2,g=this.dataScale,o=Math.abs(g.invert(i)-g.invert(0));return a==null?void 0:a.filter((b,u)=>{const l=d.getNumber(b,t.x,u),c=g.domain(),S=+c[0],f=+c[1];return l>=S-o&&l<=f+o})}_getBarPath(t,a,s=!1){const{config:i}=this,g=this.getAccessors(),o=this._getBarWidth(),n=t._stacked[1]<0,b=t._ending,u=d.getNumber(t,g[a],t._index),l=s?0:Math.abs(this.valueScale(t._stacked[0])-this.valueScale(t._stacked[1])),c=!s&&i.barMinHeight1Px&&l<1&&isFinite(u)&&u!==i.barMinHeightZeroValue?1:l,S=s?this.valueScale(0):this.valueScale(n?t._stacked[0]:t._stacked[1])-(l<1&&i.barMinHeight1Px?1:0),f=-o/2,e=o,r=i.roundedCorners?d.isNumber(i.roundedCorners)?+i.roundedCorners:e/2:0,m=d.clamp(r,0,Math.min(l,e)/2),h=this.yScale.range()[0]>this.yScale.range()[1];return E.roundedRectPath({x:this.isVertical()?f:S-c,y:this.isVertical()?S+(h?0:-c):f,w:this.isVertical()?e:c,h:this.isVertical()?c:e,tl:b&&(this.isVertical()?!n&&h||n&&!h:n),tr:b&&(this.isVertical()?!n&&h||n&&!h:!n),br:b&&(this.isVertical()?n&&h||!n&&!h:!n),bl:b&&(this.isVertical()?n&&h||!n&&!h:n),r:m})}getValueScaleExtent(t){const{datamodel:a}=this,s=this.getAccessors(),i=t?this._getVisibleData():a.data;return d.getStackedExtent(i,...s)}getDataScaleExtent(){const{config:t,datamodel:a}=this;return d.getExtent(a.data,t.x)}getYDataExtent(t){return this.isVertical()?this.getValueScaleExtent(t):this.getDataScaleExtent()}getXDataExtent(){return this.isVertical()?this.getDataScaleExtent():this.getValueScaleExtent(!1)}}y.selectors=p;exports.StackedBar=y;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|