vue-chrts 0.0.169 → 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,186 +0,0 @@
|
|
|
1
|
-
import { css as E } from "../../../../@emotion/css/dist/emotion-css.esm.js";
|
|
2
|
-
import "../../styles/index.js";
|
|
3
|
-
import { ContainerCore as N } from "../../core/container/index.js";
|
|
4
|
-
import { CoreDataModel as R } from "../../data-models/core.js";
|
|
5
|
-
import { AxisType as D } from "../../components/axis/types.js";
|
|
6
|
-
import { ScaleDimension as u } from "../../types/scale.js";
|
|
7
|
-
import { Direction as P } from "../../types/direction.js";
|
|
8
|
-
import { clamp as b, clean as y, flatten as S } from "../../utils/data.js";
|
|
9
|
-
import { guid as Y } from "../../utils/misc.js";
|
|
10
|
-
import { XYContainerDefaultConfig as $ } from "./config.js";
|
|
11
|
-
import w from "../../../../d3-array/src/extent.js";
|
|
12
|
-
import T from "../../../../d3-array/src/merge.js";
|
|
13
|
-
class J extends N {
|
|
14
|
-
constructor(t, i, e) {
|
|
15
|
-
var o, n;
|
|
16
|
-
super(t), this._defaultConfig = $, this.datamodel = new R(), this.config = this._defaultConfig, this._clipPathId = Y(), this._axisMargin = { top: 0, bottom: 0, left: 0, right: 0 }, this._firstRender = !0, this._clipPath = this.svg.append("clipPath").attr("id", this._clipPathId), this._clipPath.append("rect");
|
|
17
|
-
const s = "saturate", r = window.location.href.replace(window.location.hash, "");
|
|
18
|
-
this.svg.attr("class", E`
|
|
19
|
-
--highlight-filter-id: url(${r}#${s}); // defining a css variable
|
|
20
|
-
`), this._svgDefs.append("filter").attr("id", s).attr("filterUnits", "objectBoundingBox").html('<feColorMatrix type="saturate" in="SourceGraphic" values="1.35"/>'), i && this.updateContainer(i, !0), e && this.setData(e, !0), (this.config.xAxis || this.config.yAxis || !((o = this.components) === null || o === void 0) && o.some((a) => a.datamodel.data)) && this.render(), (n = document.fonts) === null || n === void 0 || n.ready.then(() => {
|
|
21
|
-
this._firstRender || this._renderAxes(0);
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
get components() {
|
|
25
|
-
return this.config.components;
|
|
26
|
-
}
|
|
27
|
-
// Overriding ContainerCore default get width method to work with axis auto margin
|
|
28
|
-
get width() {
|
|
29
|
-
const t = this._getMargin();
|
|
30
|
-
return b(this.containerWidth - t.left - t.right, 0, Number.POSITIVE_INFINITY);
|
|
31
|
-
}
|
|
32
|
-
// Overriding ContainerCore default get height method to work with axis auto margin
|
|
33
|
-
get height() {
|
|
34
|
-
const t = this._getMargin();
|
|
35
|
-
return b(this.containerHeight - t.top - t.bottom, 0, Number.POSITIVE_INFINITY);
|
|
36
|
-
}
|
|
37
|
-
setData(t, i) {
|
|
38
|
-
var e, o, n, s;
|
|
39
|
-
const { components: r, config: a } = this;
|
|
40
|
-
t && (this.datamodel.data = t, r.forEach((l) => {
|
|
41
|
-
l.setData(t);
|
|
42
|
-
}), (e = a.crosshair) === null || e === void 0 || e.setData(t), (o = a.xAxis) === null || o === void 0 || o.setData(t), (n = a.yAxis) === null || n === void 0 || n.setData(t), (s = a.tooltip) === null || s === void 0 || s.hide(), i || this.render());
|
|
43
|
-
}
|
|
44
|
-
updateContainer(t, i) {
|
|
45
|
-
super.updateContainer(t), this._removeAllChildren(), this.setData(this.datamodel.data, !0), t.xAxis && (this.config.xAxis.config.type = D.X, this.element.appendChild(t.xAxis.element)), t.yAxis && (this.config.yAxis.config.type = D.Y, this.element.appendChild(t.yAxis.element));
|
|
46
|
-
for (const s of this.components)
|
|
47
|
-
this.element.appendChild(s.element);
|
|
48
|
-
const e = t.tooltip;
|
|
49
|
-
e && (e.hasContainer() || e.setContainer(this._container), e.setComponents(this.components));
|
|
50
|
-
const o = t.crosshair;
|
|
51
|
-
o && (o.setContainer(this.svg), o.tooltip = e, this.element.appendChild(o.element));
|
|
52
|
-
const n = t.annotations;
|
|
53
|
-
n && this.element.appendChild(n.element), this.element.appendChild(this._clipPath.node()), this.element.appendChild(this._svgDefs.node()), this.element.appendChild(this._svgDefsExternal.node()), i || this.render();
|
|
54
|
-
}
|
|
55
|
-
updateComponents(t, i) {
|
|
56
|
-
const { config: e } = this;
|
|
57
|
-
this.components.forEach((o, n) => {
|
|
58
|
-
t[n] && o.setConfig(t[n]);
|
|
59
|
-
}), this._updateScales(...this.components, e.xAxis, e.yAxis, e.crosshair), i || this.render();
|
|
60
|
-
}
|
|
61
|
-
update(t, i, e) {
|
|
62
|
-
e && (this.datamodel.data = e), t && this.updateContainer(t, !0), i && this.updateComponents(i, !0), this.render();
|
|
63
|
-
}
|
|
64
|
-
_preRender() {
|
|
65
|
-
const { config: t } = this;
|
|
66
|
-
super._preRender(), t.autoMargin && this._setAutoMargin();
|
|
67
|
-
const i = y([...this.components, t.xAxis, t.yAxis, t.crosshair, t.annotations]);
|
|
68
|
-
for (const e of i)
|
|
69
|
-
e.setSize(this.width, this.height, this.containerWidth, this.containerHeight);
|
|
70
|
-
this._updateScales(...this.components, t.xAxis, t.yAxis, t.crosshair);
|
|
71
|
-
}
|
|
72
|
-
_render(t) {
|
|
73
|
-
var i, e, o, n, s;
|
|
74
|
-
const { config: r } = this;
|
|
75
|
-
super._render();
|
|
76
|
-
const a = this._getMargin();
|
|
77
|
-
for (const d of this.components)
|
|
78
|
-
d.g.attr("transform", `translate(${a.left},${a.top})`).style("clip-path", d.clippable ? `url(#${this._clipPathId})` : null).style("-webkit-clip-path", d.clippable ? `url(#${this._clipPathId})` : null), d.render(t);
|
|
79
|
-
this._renderAxes(this._firstRender ? 0 : t);
|
|
80
|
-
const l = 2;
|
|
81
|
-
this._clipPath.select("rect").attr("x", -2).attr("y", -2).attr("width", this.width + 2 * l).attr("height", this.height + 2 * l), (i = r.tooltip) === null || i === void 0 || i.update();
|
|
82
|
-
const p = r.crosshair;
|
|
83
|
-
if (p) {
|
|
84
|
-
const d = this.components.filter((c) => !c.stacked).map((c) => c.config.y), f = this.components.filter((c) => c.stacked).map((c) => c.config.y), h = (e = this.components.find((c) => c.config.baseline)) === null || e === void 0 ? void 0 : e.config, g = h == null ? void 0 : h.baseline;
|
|
85
|
-
p.accessors = {
|
|
86
|
-
x: (o = this.components[0]) === null || o === void 0 ? void 0 : o.config.x,
|
|
87
|
-
y: S(d),
|
|
88
|
-
yStacked: S(f),
|
|
89
|
-
baseline: g
|
|
90
|
-
}, p.g.attr("transform", `translate(${a.left},${a.top})`).style("clip-path", `url(#${this._clipPathId})`).style("-webkit-clip-path", `url(#${this._clipPathId})`), p.hide();
|
|
91
|
-
}
|
|
92
|
-
(n = r.annotations) === null || n === void 0 || n.g.attr("transform", `translate(${a.left},${a.top})`), (s = r.annotations) === null || s === void 0 || s.render(), this._firstRender = !1;
|
|
93
|
-
}
|
|
94
|
-
_updateScales(...t) {
|
|
95
|
-
const i = y(t || this.components);
|
|
96
|
-
this._setScales(...i), this._updateScalesDomain(...i), this._updateScalesRange(...i);
|
|
97
|
-
}
|
|
98
|
-
_setScales(...t) {
|
|
99
|
-
const { config: i } = this;
|
|
100
|
-
t && (i.xScale && t.forEach((e) => e.setScale(u.X, i.xScale)), i.yScale && t.forEach((e) => e.setScale(u.Y, i.yScale)));
|
|
101
|
-
}
|
|
102
|
-
_updateScalesDomain(...t) {
|
|
103
|
-
const { config: i } = this;
|
|
104
|
-
if (!t)
|
|
105
|
-
return;
|
|
106
|
-
const e = t.filter((o) => !o.config.excludeFromDomainCalculation);
|
|
107
|
-
Object.values(u).forEach((o) => {
|
|
108
|
-
var n, s, r, a, l, p, d, f;
|
|
109
|
-
const [h, g] = w(T(e.map((x) => x.getDataExtent(o, i.scaleByDomain)))), c = o === u.Y ? i.yDomain : i.xDomain, m = o === u.Y ? i.yDomainMinConstraint : i.xDomainMinConstraint, _ = o === u.Y ? i.yDomainMaxConstraint : i.xDomainMaxConstraint, A = (s = (n = c == null ? void 0 : c[0]) !== null && n !== void 0 ? n : h) !== null && s !== void 0 ? s : 0, C = (a = (r = c == null ? void 0 : c[1]) !== null && r !== void 0 ? r : g) !== null && a !== void 0 ? a : 1, v = [
|
|
110
|
-
b(A, (l = m == null ? void 0 : m[0]) !== null && l !== void 0 ? l : Number.NEGATIVE_INFINITY, (p = m == null ? void 0 : m[1]) !== null && p !== void 0 ? p : Number.POSITIVE_INFINITY),
|
|
111
|
-
b(C, (d = _ == null ? void 0 : _[0]) !== null && d !== void 0 ? d : Number.NEGATIVE_INFINITY, (f = _ == null ? void 0 : _[1]) !== null && f !== void 0 ? f : Number.POSITIVE_INFINITY)
|
|
112
|
-
];
|
|
113
|
-
if (v[0] === v[1]) {
|
|
114
|
-
const x = e.some((M) => {
|
|
115
|
-
var I;
|
|
116
|
-
return ((I = M.datamodel.data) === null || I === void 0 ? void 0 : I.length) > 0;
|
|
117
|
-
});
|
|
118
|
-
(i.preventEmptyDomain || i.preventEmptyDomain === null && (!x || o === u.Y)) && (v[1] = v[0] + 1);
|
|
119
|
-
}
|
|
120
|
-
t.forEach((x) => x.setScaleDomain(o, v));
|
|
121
|
-
});
|
|
122
|
-
}
|
|
123
|
-
_updateScalesRange(...t) {
|
|
124
|
-
var i, e, o, n, s, r;
|
|
125
|
-
const { config: a } = this;
|
|
126
|
-
if (!t)
|
|
127
|
-
return;
|
|
128
|
-
const l = a.yDirection === P.South, p = [(i = a.padding.left) !== null && i !== void 0 ? i : 0, this.width - ((e = a.padding.right) !== null && e !== void 0 ? e : 0)], d = [this.height - ((o = a.padding.bottom) !== null && o !== void 0 ? o : 0), (n = a.padding.top) !== null && n !== void 0 ? n : 0];
|
|
129
|
-
l && d.reverse();
|
|
130
|
-
for (const h of t)
|
|
131
|
-
h.setSize(this.width, this.height, this.containerWidth, this.containerHeight), h.setScaleRange(u.X, (s = a.xRange) !== null && s !== void 0 ? s : p), h.setScaleRange(u.Y, (r = a.yRange) !== null && r !== void 0 ? r : d);
|
|
132
|
-
const f = t.map((h) => h.bleed).reduce((h, g) => {
|
|
133
|
-
for (const c of Object.keys(h)) {
|
|
134
|
-
const m = c;
|
|
135
|
-
h[m] < g[m] && (h[m] = g[m]);
|
|
136
|
-
}
|
|
137
|
-
return h;
|
|
138
|
-
}, { top: 0, bottom: 0, left: 0, right: 0 });
|
|
139
|
-
for (const h of t)
|
|
140
|
-
h.setScaleRange(u.X, [p[0] + f.left, p[1] - f.right]), h.setScaleRange(
|
|
141
|
-
u.Y,
|
|
142
|
-
l ? [d[0] + f.top, d[1] - f.bottom] : [d[0] - f.bottom, d[1] + f.top]
|
|
143
|
-
// if Y axis is directed upwards
|
|
144
|
-
);
|
|
145
|
-
}
|
|
146
|
-
_renderAxes(t) {
|
|
147
|
-
const { config: { xAxis: i, yAxis: e } } = this, o = this._getMargin();
|
|
148
|
-
y([i, e]).forEach((s) => {
|
|
149
|
-
const r = s.getOffset(o);
|
|
150
|
-
s.g.attr("transform", `translate(${r.left},${r.top})`), s.render(t);
|
|
151
|
-
});
|
|
152
|
-
}
|
|
153
|
-
_setAutoMargin() {
|
|
154
|
-
const { config: { xAxis: t, yAxis: i } } = this, e = y([...this.components, t, i]);
|
|
155
|
-
this._setScales(...e), this._updateScalesDomain(...e);
|
|
156
|
-
const o = this._firstRender ? 2 : 1;
|
|
157
|
-
for (let n = 0; n < o; n += 1) {
|
|
158
|
-
const s = { top: 0, bottom: 0, left: 0, right: 0 };
|
|
159
|
-
this._updateScalesRange(...e), y([t, i]).forEach((a) => {
|
|
160
|
-
a.preRender();
|
|
161
|
-
const l = a.getRequiredMargin();
|
|
162
|
-
s.top < l.top && (s.top = l.top), s.bottom < l.bottom && (s.bottom = l.bottom), s.left < l.left && (s.left = l.left), s.right < l.right && (s.right = l.right);
|
|
163
|
-
}), this._axisMargin = s;
|
|
164
|
-
}
|
|
165
|
-
}
|
|
166
|
-
_getMargin() {
|
|
167
|
-
const { config: { margin: t } } = this;
|
|
168
|
-
return {
|
|
169
|
-
top: t.top + this._axisMargin.top,
|
|
170
|
-
bottom: t.bottom + this._axisMargin.bottom,
|
|
171
|
-
left: t.left + this._axisMargin.left,
|
|
172
|
-
right: t.right + this._axisMargin.right
|
|
173
|
-
};
|
|
174
|
-
}
|
|
175
|
-
destroy() {
|
|
176
|
-
const { components: t, config: { tooltip: i, crosshair: e, annotations: o, xAxis: n, yAxis: s } } = this;
|
|
177
|
-
super.destroy();
|
|
178
|
-
for (const r of t)
|
|
179
|
-
r == null || r.destroy();
|
|
180
|
-
i == null || i.destroy(), e == null || e.destroy(), o == null || o.destroy(), n == null || n.destroy(), s == null || s.destroy();
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
export {
|
|
184
|
-
J as XYContainer
|
|
185
|
-
};
|
|
186
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@unovis/ts/containers/xy-container/index.js"],"sourcesContent":["import { css } from '@emotion/css';\nimport { extent, merge } from 'd3-array';\nimport '../../styles/index.js';\nimport { ContainerCore } from '../../core/container/index.js';\nimport { CoreDataModel } from '../../data-models/core.js';\nimport { AxisType } from '../../components/axis/types.js';\nimport { ScaleDimension } from '../../types/scale.js';\nimport { Direction } from '../../types/direction.js';\nimport { clamp, clean, flatten } from '../../utils/data.js';\nimport { guid } from '../../utils/misc.js';\nimport { XYContainerDefaultConfig } from './config.js';\n\nclass XYContainer extends ContainerCore {\r\n constructor(element, config, data) {\r\n var _a, _b;\r\n super(element);\r\n this._defaultConfig = XYContainerDefaultConfig;\r\n this.datamodel = new CoreDataModel();\r\n this.config = this._defaultConfig;\r\n this._clipPathId = guid();\r\n this._axisMargin = { top: 0, bottom: 0, left: 0, right: 0 };\r\n this._firstRender = true;\r\n this._clipPath = this.svg.append('clipPath')\r\n .attr('id', this._clipPathId);\r\n this._clipPath.append('rect');\r\n // When the base tag is specified on the HTML head,\r\n // Safari fails to find the corresponding filter URL.\r\n // We have to provide tull url in order to fix that\r\n const highlightFilterId = 'saturate';\r\n const baseUrl = window.location.href.replace(window.location.hash, '');\r\n this.svg.attr('class', css `\n --highlight-filter-id: url(${baseUrl}#${highlightFilterId}); // defining a css variable\n `);\r\n this._svgDefs.append('filter')\r\n .attr('id', highlightFilterId)\r\n .attr('filterUnits', 'objectBoundingBox')\r\n .html('<feColorMatrix type=\"saturate\" in=\"SourceGraphic\" values=\"1.35\"/>');\r\n if (config) {\r\n this.updateContainer(config, true);\r\n }\r\n if (data) {\r\n this.setData(data, true);\r\n }\r\n // Render if there are axes or components with data\r\n if (this.config.xAxis ||\r\n this.config.yAxis ||\r\n ((_a = this.components) === null || _a === void 0 ? void 0 : _a.some(c => c.datamodel.data))) {\r\n this.render();\r\n }\r\n // Force re-render axes when fonts are loaded\r\n (_b = document.fonts) === null || _b === void 0 ? void 0 : _b.ready.then(() => {\r\n if (!this._firstRender)\r\n this._renderAxes(0);\r\n });\r\n }\r\n get components() {\r\n return this.config.components;\r\n }\r\n // Overriding ContainerCore default get width method to work with axis auto margin\r\n get width() {\r\n const margin = this._getMargin();\r\n return clamp(this.containerWidth - margin.left - margin.right, 0, Number.POSITIVE_INFINITY);\r\n }\r\n // Overriding ContainerCore default get height method to work with axis auto margin\r\n get height() {\r\n const margin = this._getMargin();\r\n return clamp(this.containerHeight - margin.top - margin.bottom, 0, Number.POSITIVE_INFINITY);\r\n }\r\n setData(data, preventRender) {\r\n var _a, _b, _c, _d;\r\n const { components, config } = this;\r\n if (!data)\r\n return;\r\n this.datamodel.data = data;\r\n components.forEach((c) => {\r\n c.setData(data);\r\n });\r\n (_a = config.crosshair) === null || _a === void 0 ? void 0 : _a.setData(data);\r\n (_b = config.xAxis) === null || _b === void 0 ? void 0 : _b.setData(data);\r\n (_c = config.yAxis) === null || _c === void 0 ? void 0 : _c.setData(data);\r\n (_d = config.tooltip) === null || _d === void 0 ? void 0 : _d.hide();\r\n if (!preventRender)\r\n this.render();\r\n }\r\n updateContainer(containerConfig, preventRender) {\r\n super.updateContainer(containerConfig);\r\n this._removeAllChildren();\r\n // If there were any new components added we need to pass them data\r\n this.setData(this.datamodel.data, true);\r\n // Set up the axes\r\n if (containerConfig.xAxis) {\r\n this.config.xAxis.config.type = AxisType.X;\r\n this.element.appendChild(containerConfig.xAxis.element);\r\n }\r\n if (containerConfig.yAxis) {\r\n this.config.yAxis.config.type = AxisType.Y;\r\n this.element.appendChild(containerConfig.yAxis.element);\r\n }\r\n // Re-insert elements to the DOM\r\n for (const c of this.components) {\r\n this.element.appendChild(c.element);\r\n }\r\n // Set up the tooltip\r\n const tooltip = containerConfig.tooltip;\r\n if (tooltip) {\r\n if (!tooltip.hasContainer())\r\n tooltip.setContainer(this._container);\r\n tooltip.setComponents(this.components);\r\n }\r\n // Set up the crosshair\r\n const crosshair = containerConfig.crosshair;\r\n if (crosshair) {\r\n crosshair.setContainer(this.svg);\r\n crosshair.tooltip = tooltip;\r\n this.element.appendChild(crosshair.element);\r\n }\r\n // Set up annotations\r\n const annotations = containerConfig.annotations;\r\n if (annotations) {\r\n this.element.appendChild(annotations.element);\r\n }\r\n // Clipping path\r\n this.element.appendChild(this._clipPath.node());\r\n // Defs\r\n this.element.appendChild(this._svgDefs.node());\r\n this.element.appendChild(this._svgDefsExternal.node());\r\n // Rendering\r\n if (!preventRender)\r\n this.render();\r\n }\r\n updateComponents(componentConfigs, preventRender) {\r\n const { config } = this;\r\n this.components.forEach((c, i) => {\r\n const componentConfig = componentConfigs[i];\r\n if (componentConfig) {\r\n c.setConfig(componentConfigs[i]);\r\n }\r\n });\r\n this._updateScales(...this.components, config.xAxis, config.yAxis, config.crosshair);\r\n if (!preventRender)\r\n this.render();\r\n }\r\n update(containerConfig, componentConfigs, data) {\r\n if (data)\r\n this.datamodel.data = data; // Just updating the data model because the `updateContainer` method has the `setData` step inside\r\n if (containerConfig)\r\n this.updateContainer(containerConfig, true);\r\n if (componentConfigs)\r\n this.updateComponents(componentConfigs, true);\r\n this.render();\r\n }\r\n _preRender() {\r\n const { config } = this;\r\n super._preRender();\r\n // Calculate extra margin required to fit the axes\r\n if (config.autoMargin) {\r\n this._setAutoMargin();\r\n }\r\n // Pass size to the components\r\n const components = clean([...this.components, config.xAxis, config.yAxis, config.crosshair, config.annotations]);\r\n for (const c of components) {\r\n c.setSize(this.width, this.height, this.containerWidth, this.containerHeight);\r\n }\r\n // Update Scales of all the components at once to calculate required paddings and sync them\r\n this._updateScales(...this.components, config.xAxis, config.yAxis, config.crosshair);\r\n }\r\n _render(customDuration) {\r\n var _a, _b, _c, _d, _e;\r\n const { config } = this;\r\n super._render();\r\n // Get chart total margin after auto margin calculations\r\n const margin = this._getMargin();\r\n // Render components\r\n for (const c of this.components) {\r\n c.g.attr('transform', `translate(${margin.left},${margin.top})`)\r\n .style('clip-path', c.clippable ? `url(#${this._clipPathId})` : null)\r\n .style('-webkit-clip-path', c.clippable ? `url(#${this._clipPathId})` : null);\r\n c.render(customDuration);\r\n }\r\n this._renderAxes(this._firstRender ? 0 : customDuration);\r\n // Clip RectsetSize\r\n // Extending the clipping path to allow small overflow (e.g. Line will looks better that way when it touches the edges)\r\n const clipPathExtension = 2;\r\n this._clipPath.select('rect')\r\n .attr('x', -clipPathExtension)\r\n .attr('y', -clipPathExtension)\r\n .attr('width', this.width + 2 * clipPathExtension)\r\n .attr('height', this.height + 2 * clipPathExtension);\r\n // Tooltip\r\n (_a = config.tooltip) === null || _a === void 0 ? void 0 : _a.update(); // Re-bind events\r\n // Crosshair\r\n const crosshair = config.crosshair;\r\n if (crosshair) {\r\n // Pass accessors\r\n const yAccessors = this.components.filter(c => !c.stacked).map(c => c.config.y);\r\n const yStackedAccessors = this.components.filter(c => c.stacked).map(c => c.config.y);\r\n const baselineComponentConfig = (_b = this.components.find(c => c.config.baseline)) === null || _b === void 0 ? void 0 : _b.config;\r\n const baselineAccessor = baselineComponentConfig === null || baselineComponentConfig === void 0 ? void 0 : baselineComponentConfig.baseline;\r\n crosshair.accessors = {\r\n x: (_c = this.components[0]) === null || _c === void 0 ? void 0 : _c.config.x,\r\n y: flatten(yAccessors),\r\n yStacked: flatten(yStackedAccessors),\r\n baseline: baselineAccessor,\r\n };\r\n crosshair.g.attr('transform', `translate(${margin.left},${margin.top})`)\r\n .style('clip-path', `url(#${this._clipPathId})`)\r\n .style('-webkit-clip-path', `url(#${this._clipPathId})`);\r\n crosshair.hide();\r\n }\r\n (_d = config.annotations) === null || _d === void 0 ? void 0 : _d.g.attr('transform', `translate(${margin.left},${margin.top})`);\r\n (_e = config.annotations) === null || _e === void 0 ? void 0 : _e.render();\r\n this._firstRender = false;\r\n }\r\n _updateScales(...components) {\r\n const c = clean(components || this.components);\r\n this._setScales(...c);\r\n this._updateScalesDomain(...c);\r\n this._updateScalesRange(...c);\r\n }\r\n _setScales(...components) {\r\n const { config } = this;\r\n if (!components)\r\n return;\r\n // Set the X and Y scales\r\n if (config.xScale)\r\n components.forEach(c => c.setScale(ScaleDimension.X, config.xScale));\r\n if (config.yScale)\r\n components.forEach(c => c.setScale(ScaleDimension.Y, config.yScale));\r\n }\r\n _updateScalesDomain(...components) {\r\n const { config } = this;\r\n if (!components)\r\n return;\r\n const componentsWithDomain = components.filter(c => !c.config.excludeFromDomainCalculation);\r\n // Loop over all the dimensions\r\n Object.values(ScaleDimension).forEach((dimension) => {\r\n var _a, _b, _c, _d, _e, _f, _g, _h;\r\n const [min, max] = extent(merge(componentsWithDomain.map(c => c.getDataExtent(dimension, config.scaleByDomain)))); // Components with undefined dimension accessors will return [undefined, undefined] but d3.extent will take care of that\r\n const configuredDomain = dimension === ScaleDimension.Y ? config.yDomain : config.xDomain;\r\n const configuredDomainMinConstraint = dimension === ScaleDimension.Y ? config.yDomainMinConstraint : config.xDomainMinConstraint;\r\n const configuredDomainMaxConstraint = dimension === ScaleDimension.Y ? config.yDomainMaxConstraint : config.xDomainMaxConstraint;\r\n const domainMin = (_b = (_a = configuredDomain === null || configuredDomain === void 0 ? void 0 : configuredDomain[0]) !== null && _a !== void 0 ? _a : min) !== null && _b !== void 0 ? _b : 0;\r\n const domainMax = (_d = (_c = configuredDomain === null || configuredDomain === void 0 ? void 0 : configuredDomain[1]) !== null && _c !== void 0 ? _c : max) !== null && _d !== void 0 ? _d : 1;\r\n const domain = [\r\n clamp(domainMin, (_e = configuredDomainMinConstraint === null || configuredDomainMinConstraint === void 0 ? void 0 : configuredDomainMinConstraint[0]) !== null && _e !== void 0 ? _e : Number.NEGATIVE_INFINITY, (_f = configuredDomainMinConstraint === null || configuredDomainMinConstraint === void 0 ? void 0 : configuredDomainMinConstraint[1]) !== null && _f !== void 0 ? _f : Number.POSITIVE_INFINITY),\r\n clamp(domainMax, (_g = configuredDomainMaxConstraint === null || configuredDomainMaxConstraint === void 0 ? void 0 : configuredDomainMaxConstraint[0]) !== null && _g !== void 0 ? _g : Number.NEGATIVE_INFINITY, (_h = configuredDomainMaxConstraint === null || configuredDomainMaxConstraint === void 0 ? void 0 : configuredDomainMaxConstraint[1]) !== null && _h !== void 0 ? _h : Number.POSITIVE_INFINITY),\r\n ];\r\n // Extend the X and Y domains if they're empty and `preventEmptyDomain` was explicitly set to `true`\r\n // or just the X domain if there is no data provided and `preventEmptyDomain` set to `null`\r\n if (domain[0] === domain[1]) {\r\n const hasDataProvided = componentsWithDomain.some(c => { var _a; return ((_a = c.datamodel.data) === null || _a === void 0 ? void 0 : _a.length) > 0; });\r\n if (config.preventEmptyDomain || (config.preventEmptyDomain === null && (!hasDataProvided || dimension === ScaleDimension.Y))) {\r\n domain[1] = domain[0] + 1;\r\n }\r\n }\r\n components.forEach(c => c.setScaleDomain(dimension, domain));\r\n });\r\n }\r\n _updateScalesRange(...components) {\r\n var _a, _b, _c, _d, _e, _f;\r\n const { config } = this;\r\n if (!components)\r\n return;\r\n // Set initial scale range\r\n const isYDirectionSouth = config.yDirection === Direction.South;\r\n const xRange = [(_a = config.padding.left) !== null && _a !== void 0 ? _a : 0, this.width - ((_b = config.padding.right) !== null && _b !== void 0 ? _b : 0)];\r\n const yRange = [this.height - ((_c = config.padding.bottom) !== null && _c !== void 0 ? _c : 0), (_d = config.padding.top) !== null && _d !== void 0 ? _d : 0];\r\n if (isYDirectionSouth)\r\n yRange.reverse();\r\n for (const c of components) {\r\n c.setSize(this.width, this.height, this.containerWidth, this.containerHeight);\r\n c.setScaleRange(ScaleDimension.X, (_e = config.xRange) !== null && _e !== void 0 ? _e : xRange);\r\n c.setScaleRange(ScaleDimension.Y, (_f = config.yRange) !== null && _f !== void 0 ? _f : yRange);\r\n }\r\n // Get and combine bleed\r\n const bleed = components.map(c => c.bleed).reduce((bleed, b) => {\r\n for (const key of Object.keys(bleed)) {\r\n const k = key;\r\n if (bleed[k] < b[k])\r\n bleed[k] = b[k];\r\n }\r\n return bleed;\r\n }, { top: 0, bottom: 0, left: 0, right: 0 });\r\n // Update scale range\r\n for (const c of components) {\r\n c.setScaleRange(ScaleDimension.X, [xRange[0] + bleed.left, xRange[1] - bleed.right]);\r\n c.setScaleRange(ScaleDimension.Y, isYDirectionSouth\r\n ? [yRange[0] + bleed.top, yRange[1] - bleed.bottom] // if Y axis is directed downwards\r\n : [yRange[0] - bleed.bottom, yRange[1] + bleed.top] // if Y axis is directed upwards\r\n );\r\n }\r\n }\r\n _renderAxes(duration) {\r\n const { config: { xAxis, yAxis } } = this;\r\n const margin = this._getMargin();\r\n const axes = clean([xAxis, yAxis]);\r\n axes.forEach(axis => {\r\n const offset = axis.getOffset(margin);\r\n axis.g.attr('transform', `translate(${offset.left},${offset.top})`);\r\n axis.render(duration);\r\n });\r\n }\r\n _setAutoMargin() {\r\n const { config: { xAxis, yAxis } } = this;\r\n // At first we need to set the domain to the scales\r\n const components = clean([...this.components, xAxis, yAxis]);\r\n this._setScales(...components);\r\n this._updateScalesDomain(...components);\r\n // Calculate margin required by the axes\r\n // We do two iterations on the first render, because the amount and size of ticks can change\r\n // after new margin are calculated and applied (axes dimensions will change).\r\n // That's needed for correct label placement.\r\n const numIterations = this._firstRender ? 2 : 1;\r\n for (let i = 0; i < numIterations; i += 1) {\r\n const axisMargin = { top: 0, bottom: 0, left: 0, right: 0 };\r\n this._updateScalesRange(...components);\r\n const axes = clean([xAxis, yAxis]);\r\n axes.forEach(axis => {\r\n axis.preRender();\r\n const m = axis.getRequiredMargin();\r\n if (axisMargin.top < m.top)\r\n axisMargin.top = m.top;\r\n if (axisMargin.bottom < m.bottom)\r\n axisMargin.bottom = m.bottom;\r\n if (axisMargin.left < m.left)\r\n axisMargin.left = m.left;\r\n if (axisMargin.right < m.right)\r\n axisMargin.right = m.right;\r\n });\r\n this._axisMargin = axisMargin;\r\n }\r\n }\r\n _getMargin() {\r\n const { config: { margin } } = this;\r\n return {\r\n top: margin.top + this._axisMargin.top,\r\n bottom: margin.bottom + this._axisMargin.bottom,\r\n left: margin.left + this._axisMargin.left,\r\n right: margin.right + this._axisMargin.right,\r\n };\r\n }\r\n destroy() {\r\n const { components, config: { tooltip, crosshair, annotations, xAxis, yAxis } } = this;\r\n super.destroy();\r\n for (const c of components)\r\n c === null || c === void 0 ? void 0 : c.destroy();\r\n tooltip === null || tooltip === void 0 ? void 0 : tooltip.destroy();\r\n crosshair === null || crosshair === void 0 ? void 0 : crosshair.destroy();\r\n annotations === null || annotations === void 0 ? void 0 : annotations.destroy();\r\n xAxis === null || xAxis === void 0 ? void 0 : xAxis.destroy();\r\n yAxis === null || yAxis === void 0 ? void 0 : yAxis.destroy();\r\n }\r\n}\n\nexport { XYContainer };\n//# sourceMappingURL=index.js.map\n"],"names":["XYContainer","ContainerCore","element","config","data","_a","_b","XYContainerDefaultConfig","CoreDataModel","guid","highlightFilterId","baseUrl","css","c","margin","clamp","preventRender","_c","_d","components","containerConfig","AxisType","tooltip","crosshair","annotations","componentConfigs","i","clean","customDuration","_e","clipPathExtension","yAccessors","yStackedAccessors","baselineComponentConfig","baselineAccessor","flatten","ScaleDimension","componentsWithDomain","dimension","_f","_g","_h","min","max","extent","merge","configuredDomain","configuredDomainMinConstraint","configuredDomainMaxConstraint","domainMin","domainMax","domain","hasDataProvided","isYDirectionSouth","Direction","xRange","yRange","bleed","b","key","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AAY,WACtEsC,KAAU,QAAoCA,EAAM,WACpDC,KAAU,QAAoCA,EAAM;EACvD;AACL;","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.cjs","sources":["../../../../../../node_modules/@unovis/ts/core/component/config.js"],"sourcesContent":["const ComponentDefaultConfig = {\r\n duration: 600,\r\n events: {},\r\n attributes: {},\r\n};\n\nexport { ComponentDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["ComponentDefaultConfig"],"mappings":"gFAAK,MAACA,EAAyB,CAC3B,SAAU,IACV,OAAQ,CAAE,EACV,WAAY,CAAE,CAClB","x_google_ignoreList":[0]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sources":["../../../../../../node_modules/@unovis/ts/core/component/config.js"],"sourcesContent":["const ComponentDefaultConfig = {\r\n duration: 600,\r\n events: {},\r\n attributes: {},\r\n};\n\nexport { ComponentDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["ComponentDefaultConfig"],"mappings":"AAAK,MAACA,IAAyB;AAAA,EAC3B,UAAU;AAAA,EACV,QAAQ,CAAE;AAAA,EACV,YAAY,CAAE;AAClB;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../data-models/core.cjs"),r=require("../../utils/data.cjs"),g=require("../../utils/misc.cjs"),s=require("../../types/component.cjs"),f=require("./config.cjs"),m=require("../../../../d3-selection/src/select.cjs");class _{constructor(t=s.ComponentType.SVG){var e,i;this.type=s.ComponentType.SVG,this.datamodel=new a.CoreDataModel,this.sizing=s.Sizing.Fit,this.events={},this._defaultConfig=f.ComponentDefaultConfig,this._width=400,this._height=200,this._containerWidth=void 0,this._containerHeight=void 0,this._setUpComponentEventsThrottled=r.throttle(this._setUpComponentEvents,500),this._setCustomAttributesThrottled=r.throttle(this._setCustomAttributes,500),t===s.ComponentType.SVG?this.element=document.createElementNS("http://www.w3.org/2000/svg","g"):this.element=document.createElement("div"),this.uid=g.guid(),this.g=m.default(this.element);const n=(i=(e=this.constructor)===null||e===void 0?void 0:e.selectors)===null||i===void 0?void 0:i.root;n&&this.g.attr("class",n)}setConfig(t){this.prevConfig=this.config,this.config=r.merge(this._defaultConfig,t)}setData(t){this.datamodel.data=t}setSize(t,e,i,n){isFinite(t)&&(this._width=t),isFinite(e)&&(this._height=e),isFinite(i)&&(this._containerWidth=i),isFinite(n)&&(this._containerHeight=n)}render(t=this.config.duration){this._render(t);const e="animating";t&&(this.g.attr(e,""),this.g.transition(e).duration(t).on("end interrupt",()=>{this.g.attr(e,null)})),this._setUpComponentEventsThrottled(),this._setCustomAttributesThrottled()}get bleed(){return{top:0,bottom:0,left:0,right:0}}_render(t=this.config.duration){}_setCustomAttributes(){const t=this.config.attributes;Object.keys(t).forEach(e=>{Object.keys(t[e]).forEach(i=>{this.g.selectAll(`.${e}`).attr(i,t[e][i])})})}_setUpComponentEvents(){this._bindEvents(this.events),this._bindEvents(this.config.events,".user")}_bindEvents(t=this.events,e=""){Object.keys(t).forEach(i=>{Object.keys(t[i]).forEach(n=>{const h=this.g.selectAll(`.${i}`);h.on(n+e,(c,l)=>{const d=h.nodes(),u=d.indexOf(c.currentTarget),o=t[i][n];return o==null?void 0:o(l,c,u,d)})})})}destroy(){var t;(t=this.g)===null||t===void 0||t.remove(),this.element=void 0}isDestroyed(){return!this.element}}exports.ComponentCore=_;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/@unovis/ts/core/component/index.js"],"sourcesContent":["import { select } from 'd3-selection';\nimport { CoreDataModel } from '../../data-models/core.js';\nimport { throttle, merge } from '../../utils/data.js';\nimport { guid } from '../../utils/misc.js';\nimport { ComponentType, Sizing } from '../../types/component.js';\nimport { ComponentDefaultConfig } from './config.js';\n\nclass ComponentCore {\r\n constructor(type = ComponentType.SVG) {\r\n var _a, _b;\r\n this.type = ComponentType.SVG;\r\n this.datamodel = new CoreDataModel();\r\n this.sizing = Sizing.Fit; // Supported by SingleContainer and a subset of components only (Sankey)\r\n this.events = {};\r\n /** Default configuration */\r\n this._defaultConfig = ComponentDefaultConfig;\r\n /** Component width in pixels. This property is set automatically by the container. */\r\n this._width = 400;\r\n /** Component height in pixels. This property is set automatically by the container. */\r\n this._height = 200;\r\n /** Container width in pixels. This property is set automatically by the container. */\r\n this._containerWidth = undefined;\r\n /** Container height in pixels. This property is set automatically by the container. */\r\n this._containerHeight = undefined;\r\n this._setUpComponentEventsThrottled = throttle(this._setUpComponentEvents, 500);\r\n this._setCustomAttributesThrottled = throttle(this._setCustomAttributes, 500);\r\n if (type === ComponentType.SVG) {\r\n this.element = document.createElementNS('http://www.w3.org/2000/svg', 'g');\r\n }\r\n else {\r\n this.element = document.createElement('div');\r\n }\r\n this.uid = guid();\r\n this.g = select(this.element);\r\n // Setting the root class if available\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n // eslint-disable-next-line dot-notation\r\n const rootClass = (_b = (_a = this.constructor) === null || _a === void 0 ? void 0 : _a['selectors']) === null || _b === void 0 ? void 0 : _b.root;\r\n if (rootClass)\r\n this.g.attr('class', rootClass);\r\n }\r\n setConfig(config) {\r\n this.prevConfig = this.config; // Store the previous config instance\r\n this.config = merge(this._defaultConfig, config);\r\n }\r\n setData(data) {\r\n this.datamodel.data = data;\r\n }\r\n setSize(width, height, containerWidth, containerHeight) {\r\n if (isFinite(width))\r\n this._width = width;\r\n if (isFinite(height))\r\n this._height = height;\r\n if (isFinite(containerWidth))\r\n this._containerWidth = containerWidth;\r\n if (isFinite(containerHeight))\r\n this._containerHeight = containerHeight;\r\n }\r\n render(duration = this.config.duration) {\r\n this._render(duration);\r\n // While transition is in progress, we add the 'animating' attribute to the component's SVG group\r\n const ANIMATING_ATTR = 'animating';\r\n if (duration) {\r\n this.g.attr(ANIMATING_ATTR, '');\r\n const transition = this.g\r\n .transition(ANIMATING_ATTR)\r\n .duration(duration);\r\n transition.on('end interrupt', () => {\r\n this.g.attr(ANIMATING_ATTR, null);\r\n });\r\n }\r\n this._setUpComponentEventsThrottled();\r\n this._setCustomAttributesThrottled();\r\n }\r\n get bleed() {\r\n return { top: 0, bottom: 0, left: 0, right: 0 };\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-empty-function\r\n _render(duration = this.config.duration) {\r\n }\r\n _setCustomAttributes() {\r\n const attributeMap = this.config.attributes;\r\n Object.keys(attributeMap).forEach(className => {\r\n Object.keys(attributeMap[className]).forEach(attr => {\r\n const selection = this.g\r\n .selectAll(`.${className}`);\r\n selection.attr(attr, attributeMap[className][attr]);\r\n });\r\n });\r\n }\r\n _setUpComponentEvents() {\r\n // Set up default events\r\n this._bindEvents(this.events);\r\n // Set up user-defined events\r\n this._bindEvents(this.config.events, '.user');\r\n }\r\n _bindEvents(events = this.events, suffix = '') {\r\n Object.keys(events).forEach(className => {\r\n Object.keys(events[className]).forEach(eventType => {\r\n const selection = this.g\r\n .selectAll(`.${className}`);\r\n selection.on(eventType + suffix, (event, d) => {\r\n const els = selection.nodes();\r\n const i = els.indexOf(event.currentTarget);\r\n const eventFunction = events[className][eventType];\r\n return eventFunction === null || eventFunction === void 0 ? void 0 : eventFunction(d, event, i, els);\r\n });\r\n });\r\n });\r\n }\r\n destroy() {\r\n var _a;\r\n (_a = this.g) === null || _a === void 0 ? void 0 : _a.remove();\r\n this.element = undefined;\r\n }\r\n isDestroyed() {\r\n return !this.element;\r\n }\r\n}\n\nexport { ComponentCore };\n//# sourceMappingURL=index.js.map\n"],"names":["ComponentCore","type","ComponentType","_a","_b","CoreDataModel","Sizing","ComponentDefaultConfig","throttle","guid","select","rootClass","config","merge","data","width","height","containerWidth","containerHeight","duration","ANIMATING_ATTR","attributeMap","className","attr","events","suffix","eventType","selection","event","d","els","i","eventFunction"],"mappings":"wTAOA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CACD,aAAc,CACV,MAAO,CAAC,KAAK,OAChB,CACL","x_google_ignoreList":[0]}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
import { CoreDataModel as u } from "../../data-models/core.js";
|
|
2
|
-
import { throttle as l, merge as a } from "../../utils/data.js";
|
|
3
|
-
import { guid as m } from "../../utils/misc.js";
|
|
4
|
-
import { ComponentType as o, Sizing as g } from "../../types/component.js";
|
|
5
|
-
import { ComponentDefaultConfig as _ } from "./config.js";
|
|
6
|
-
import p from "../../../../d3-selection/src/select.js";
|
|
7
|
-
class w {
|
|
8
|
-
constructor(t = o.SVG) {
|
|
9
|
-
var e, i;
|
|
10
|
-
this.type = o.SVG, this.datamodel = new u(), this.sizing = g.Fit, this.events = {}, this._defaultConfig = _, this._width = 400, this._height = 200, this._containerWidth = void 0, this._containerHeight = void 0, this._setUpComponentEventsThrottled = l(this._setUpComponentEvents, 500), this._setCustomAttributesThrottled = l(this._setCustomAttributes, 500), t === o.SVG ? this.element = document.createElementNS("http://www.w3.org/2000/svg", "g") : this.element = document.createElement("div"), this.uid = m(), this.g = p(this.element);
|
|
11
|
-
const s = (i = (e = this.constructor) === null || e === void 0 ? void 0 : e.selectors) === null || i === void 0 ? void 0 : i.root;
|
|
12
|
-
s && this.g.attr("class", s);
|
|
13
|
-
}
|
|
14
|
-
setConfig(t) {
|
|
15
|
-
this.prevConfig = this.config, this.config = a(this._defaultConfig, t);
|
|
16
|
-
}
|
|
17
|
-
setData(t) {
|
|
18
|
-
this.datamodel.data = t;
|
|
19
|
-
}
|
|
20
|
-
setSize(t, e, i, s) {
|
|
21
|
-
isFinite(t) && (this._width = t), isFinite(e) && (this._height = e), isFinite(i) && (this._containerWidth = i), isFinite(s) && (this._containerHeight = s);
|
|
22
|
-
}
|
|
23
|
-
render(t = this.config.duration) {
|
|
24
|
-
this._render(t);
|
|
25
|
-
const e = "animating";
|
|
26
|
-
t && (this.g.attr(e, ""), this.g.transition(e).duration(t).on("end interrupt", () => {
|
|
27
|
-
this.g.attr(e, null);
|
|
28
|
-
})), this._setUpComponentEventsThrottled(), this._setCustomAttributesThrottled();
|
|
29
|
-
}
|
|
30
|
-
get bleed() {
|
|
31
|
-
return { top: 0, bottom: 0, left: 0, right: 0 };
|
|
32
|
-
}
|
|
33
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
34
|
-
_render(t = this.config.duration) {
|
|
35
|
-
}
|
|
36
|
-
_setCustomAttributes() {
|
|
37
|
-
const t = this.config.attributes;
|
|
38
|
-
Object.keys(t).forEach((e) => {
|
|
39
|
-
Object.keys(t[e]).forEach((i) => {
|
|
40
|
-
this.g.selectAll(`.${e}`).attr(i, t[e][i]);
|
|
41
|
-
});
|
|
42
|
-
});
|
|
43
|
-
}
|
|
44
|
-
_setUpComponentEvents() {
|
|
45
|
-
this._bindEvents(this.events), this._bindEvents(this.config.events, ".user");
|
|
46
|
-
}
|
|
47
|
-
_bindEvents(t = this.events, e = "") {
|
|
48
|
-
Object.keys(t).forEach((i) => {
|
|
49
|
-
Object.keys(t[i]).forEach((s) => {
|
|
50
|
-
const r = this.g.selectAll(`.${i}`);
|
|
51
|
-
r.on(s + e, (h, c) => {
|
|
52
|
-
const d = r.nodes(), f = d.indexOf(h.currentTarget), n = t[i][s];
|
|
53
|
-
return n == null ? void 0 : n(c, h, f, d);
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
});
|
|
57
|
-
}
|
|
58
|
-
destroy() {
|
|
59
|
-
var t;
|
|
60
|
-
(t = this.g) === null || t === void 0 || t.remove(), this.element = void 0;
|
|
61
|
-
}
|
|
62
|
-
isDestroyed() {
|
|
63
|
-
return !this.element;
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
export {
|
|
67
|
-
w as ComponentCore
|
|
68
|
-
};
|
|
69
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@unovis/ts/core/component/index.js"],"sourcesContent":["import { select } from 'd3-selection';\nimport { CoreDataModel } from '../../data-models/core.js';\nimport { throttle, merge } from '../../utils/data.js';\nimport { guid } from '../../utils/misc.js';\nimport { ComponentType, Sizing } from '../../types/component.js';\nimport { ComponentDefaultConfig } from './config.js';\n\nclass ComponentCore {\r\n constructor(type = ComponentType.SVG) {\r\n var _a, _b;\r\n this.type = ComponentType.SVG;\r\n this.datamodel = new CoreDataModel();\r\n this.sizing = Sizing.Fit; // Supported by SingleContainer and a subset of components only (Sankey)\r\n this.events = {};\r\n /** Default configuration */\r\n this._defaultConfig = ComponentDefaultConfig;\r\n /** Component width in pixels. This property is set automatically by the container. */\r\n this._width = 400;\r\n /** Component height in pixels. This property is set automatically by the container. */\r\n this._height = 200;\r\n /** Container width in pixels. This property is set automatically by the container. */\r\n this._containerWidth = undefined;\r\n /** Container height in pixels. This property is set automatically by the container. */\r\n this._containerHeight = undefined;\r\n this._setUpComponentEventsThrottled = throttle(this._setUpComponentEvents, 500);\r\n this._setCustomAttributesThrottled = throttle(this._setCustomAttributes, 500);\r\n if (type === ComponentType.SVG) {\r\n this.element = document.createElementNS('http://www.w3.org/2000/svg', 'g');\r\n }\r\n else {\r\n this.element = document.createElement('div');\r\n }\r\n this.uid = guid();\r\n this.g = select(this.element);\r\n // Setting the root class if available\r\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\r\n // @ts-ignore\r\n // eslint-disable-next-line dot-notation\r\n const rootClass = (_b = (_a = this.constructor) === null || _a === void 0 ? void 0 : _a['selectors']) === null || _b === void 0 ? void 0 : _b.root;\r\n if (rootClass)\r\n this.g.attr('class', rootClass);\r\n }\r\n setConfig(config) {\r\n this.prevConfig = this.config; // Store the previous config instance\r\n this.config = merge(this._defaultConfig, config);\r\n }\r\n setData(data) {\r\n this.datamodel.data = data;\r\n }\r\n setSize(width, height, containerWidth, containerHeight) {\r\n if (isFinite(width))\r\n this._width = width;\r\n if (isFinite(height))\r\n this._height = height;\r\n if (isFinite(containerWidth))\r\n this._containerWidth = containerWidth;\r\n if (isFinite(containerHeight))\r\n this._containerHeight = containerHeight;\r\n }\r\n render(duration = this.config.duration) {\r\n this._render(duration);\r\n // While transition is in progress, we add the 'animating' attribute to the component's SVG group\r\n const ANIMATING_ATTR = 'animating';\r\n if (duration) {\r\n this.g.attr(ANIMATING_ATTR, '');\r\n const transition = this.g\r\n .transition(ANIMATING_ATTR)\r\n .duration(duration);\r\n transition.on('end interrupt', () => {\r\n this.g.attr(ANIMATING_ATTR, null);\r\n });\r\n }\r\n this._setUpComponentEventsThrottled();\r\n this._setCustomAttributesThrottled();\r\n }\r\n get bleed() {\r\n return { top: 0, bottom: 0, left: 0, right: 0 };\r\n }\r\n // eslint-disable-next-line @typescript-eslint/no-empty-function\r\n _render(duration = this.config.duration) {\r\n }\r\n _setCustomAttributes() {\r\n const attributeMap = this.config.attributes;\r\n Object.keys(attributeMap).forEach(className => {\r\n Object.keys(attributeMap[className]).forEach(attr => {\r\n const selection = this.g\r\n .selectAll(`.${className}`);\r\n selection.attr(attr, attributeMap[className][attr]);\r\n });\r\n });\r\n }\r\n _setUpComponentEvents() {\r\n // Set up default events\r\n this._bindEvents(this.events);\r\n // Set up user-defined events\r\n this._bindEvents(this.config.events, '.user');\r\n }\r\n _bindEvents(events = this.events, suffix = '') {\r\n Object.keys(events).forEach(className => {\r\n Object.keys(events[className]).forEach(eventType => {\r\n const selection = this.g\r\n .selectAll(`.${className}`);\r\n selection.on(eventType + suffix, (event, d) => {\r\n const els = selection.nodes();\r\n const i = els.indexOf(event.currentTarget);\r\n const eventFunction = events[className][eventType];\r\n return eventFunction === null || eventFunction === void 0 ? void 0 : eventFunction(d, event, i, els);\r\n });\r\n });\r\n });\r\n }\r\n destroy() {\r\n var _a;\r\n (_a = this.g) === null || _a === void 0 ? void 0 : _a.remove();\r\n this.element = undefined;\r\n }\r\n isDestroyed() {\r\n return !this.element;\r\n }\r\n}\n\nexport { ComponentCore };\n//# sourceMappingURL=index.js.map\n"],"names":["ComponentCore","type","ComponentType","_a","_b","CoreDataModel","Sizing","ComponentDefaultConfig","throttle","guid","select","rootClass","config","merge","data","width","height","containerWidth","containerHeight","duration","ANIMATING_ATTR","attributeMap","className","attr","events","suffix","eventType","selection","event","d","els","i","eventFunction"],"mappings":";;;;;;AAOA,MAAMA,EAAc;AAAA,EAChB,YAAYC,IAAOC,EAAc,KAAK;AAClC,QAAIC,GAAIC;AACR,SAAK,OAAOF,EAAc,KAC1B,KAAK,YAAY,IAAIG,KACrB,KAAK,SAASC,EAAO,KACrB,KAAK,SAAS,IAEd,KAAK,iBAAiBC,GAEtB,KAAK,SAAS,KAEd,KAAK,UAAU,KAEf,KAAK,kBAAkB,QAEvB,KAAK,mBAAmB,QACxB,KAAK,iCAAiCC,EAAS,KAAK,uBAAuB,GAAG,GAC9E,KAAK,gCAAgCA,EAAS,KAAK,sBAAsB,GAAG,GACxEP,MAASC,EAAc,MACvB,KAAK,UAAU,SAAS,gBAAgB,8BAA8B,GAAG,IAGzE,KAAK,UAAU,SAAS,cAAc,KAAK,GAE/C,KAAK,MAAMO,KACX,KAAK,IAAIC,EAAO,KAAK,OAAO;AAK5B,UAAMC,KAAaP,KAAMD,IAAK,KAAK,iBAAiB,QAAQA,MAAO,SAAS,SAASA,EAAG,eAAkB,QAAQC,MAAO,SAAS,SAASA,EAAG;AAC9I,IAAIO,KACA,KAAK,EAAE,KAAK,SAASA,CAAS;AAAA,EACrC;AAAA,EACD,UAAUC,GAAQ;AACd,SAAK,aAAa,KAAK,QACvB,KAAK,SAASC,EAAM,KAAK,gBAAgBD,CAAM;AAAA,EAClD;AAAA,EACD,QAAQE,GAAM;AACV,SAAK,UAAU,OAAOA;AAAA,EACzB;AAAA,EACD,QAAQC,GAAOC,GAAQC,GAAgBC,GAAiB;AACpD,IAAI,SAASH,CAAK,MACd,KAAK,SAASA,IACd,SAASC,CAAM,MACf,KAAK,UAAUA,IACf,SAASC,CAAc,MACvB,KAAK,kBAAkBA,IACvB,SAASC,CAAe,MACx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,IAAMH,EAAU,SAChBI,IAAID,EAAI,QAAQF,EAAM,aAAa,GACnCI,IAAgBR,EAAOF,CAAS,EAAEI,CAAS;AACjD,iBAAOM,KAAkB,OAAmC,SAASA,EAAcH,GAAGD,GAAOG,GAAGD,CAAG;AAAA,QACvH,CAAiB;AAAA,MACjB,CAAa;AAAA,IACb,CAAS;AAAA,EACJ;AAAA,EACD,UAAU;AACN,QAAI3B;AACJ,KAACA,IAAK,KAAK,OAAO,QAAQA,MAAO,UAAkBA,EAAG,UACtD,KAAK,UAAU;AAAA,EAClB;AAAA,EACD,cAAc;AACV,WAAO,CAAC,KAAK;AAAA,EAChB;AACL;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../types/component.cjs"),n={duration:void 0,margin:{top:0,bottom:0,left:0,right:0},padding:{top:0,bottom:0,left:0,right:0},sizing:e.Sizing.Fit,width:void 0,height:void 0,svgDefs:void 0,ariaLabel:void 0};exports.ContainerDefaultConfig=n;
|
|
2
|
-
//# sourceMappingURL=config.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.cjs","sources":["../../../../../../node_modules/@unovis/ts/core/container/config.js"],"sourcesContent":["import { Sizing } from '../../types/component.js';\n\n// Core\r\nconst ContainerDefaultConfig = {\r\n duration: undefined,\r\n margin: {\r\n top: 0,\r\n bottom: 0,\r\n left: 0,\r\n right: 0,\r\n },\r\n padding: {\r\n top: 0,\r\n bottom: 0,\r\n left: 0,\r\n right: 0,\r\n },\r\n sizing: Sizing.Fit,\r\n width: undefined,\r\n height: undefined,\r\n svgDefs: undefined,\r\n ariaLabel: undefined,\r\n};\n\nexport { ContainerDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["ContainerDefaultConfig","Sizing"],"mappings":"6HAGMA,EAAyB,CAC3B,SAAU,OACV,OAAQ,CACJ,IAAK,EACL,OAAQ,EACR,KAAM,EACN,MAAO,CACV,EACD,QAAS,CACL,IAAK,EACL,OAAQ,EACR,KAAM,EACN,MAAO,CACV,EACD,OAAQC,EAAM,OAAC,IACf,MAAO,OACP,OAAQ,OACR,QAAS,OACT,UAAW,MACf","x_google_ignoreList":[0]}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { Sizing as i } from "../../types/component.js";
|
|
2
|
-
const t = {
|
|
3
|
-
duration: void 0,
|
|
4
|
-
margin: {
|
|
5
|
-
top: 0,
|
|
6
|
-
bottom: 0,
|
|
7
|
-
left: 0,
|
|
8
|
-
right: 0
|
|
9
|
-
},
|
|
10
|
-
padding: {
|
|
11
|
-
top: 0,
|
|
12
|
-
bottom: 0,
|
|
13
|
-
left: 0,
|
|
14
|
-
right: 0
|
|
15
|
-
},
|
|
16
|
-
sizing: i.Fit,
|
|
17
|
-
width: void 0,
|
|
18
|
-
height: void 0,
|
|
19
|
-
svgDefs: void 0,
|
|
20
|
-
ariaLabel: void 0
|
|
21
|
-
};
|
|
22
|
-
export {
|
|
23
|
-
t as ContainerDefaultConfig
|
|
24
|
-
};
|
|
25
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sources":["../../../../../../node_modules/@unovis/ts/core/container/config.js"],"sourcesContent":["import { Sizing } from '../../types/component.js';\n\n// Core\r\nconst ContainerDefaultConfig = {\r\n duration: undefined,\r\n margin: {\r\n top: 0,\r\n bottom: 0,\r\n left: 0,\r\n right: 0,\r\n },\r\n padding: {\r\n top: 0,\r\n bottom: 0,\r\n left: 0,\r\n right: 0,\r\n },\r\n sizing: Sizing.Fit,\r\n width: undefined,\r\n height: undefined,\r\n svgDefs: undefined,\r\n ariaLabel: undefined,\r\n};\n\nexport { ContainerDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["ContainerDefaultConfig","Sizing"],"mappings":";AAGK,MAACA,IAAyB;AAAA,EAC3B,UAAU;AAAA,EACV,QAAQ;AAAA,IACJ,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,OAAO;AAAA,EACV;AAAA,EACD,SAAS;AAAA,IACL,KAAK;AAAA,IACL,QAAQ;AAAA,IACR,MAAM;AAAA,IACN,OAAO;AAAA,EACV;AAAA,EACD,QAAQC,EAAO;AAAA,EACf,OAAO;AAAA,EACP,QAAQ;AAAA,EACR,SAAS;AAAA,EACT,WAAW;AACf;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=require("../../types/component.cjs"),r=require("../../utils/data.cjs"),c=require("../../utils/resize-observer.cjs"),d=require("./config.cjs"),o=require("../../../../d3-selection/src/select.cjs");class t{constructor(e){this._defaultConfig=d.ContainerDefaultConfig,this._isFirstRender=!0,this._renderAnimationFrameId=null,this._container=e;const i=o.default(this._container);i.attr("role","figure"),this.svg=i.append("svg").style("display","block").attr("xmlns","http://www.w3.org/2000/svg").attr("height",t.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden",!0),this._svgDefs=this.svg.append("defs"),this._svgDefsExternal=this.svg.append("defs"),this.element=this.svg.node()}updateContainer(e){var i;this.prevConfig=this.config,this.config=r.merge(this._defaultConfig,e),(e==null?void 0:e.svgDefs)!==((i=this.prevConfig)===null||i===void 0?void 0:i.svgDefs)&&(this._svgDefsExternal.selectAll("*").remove(),this._svgDefsExternal.html(e.svgDefs))}_preRender(){}_render(e){const{config:i}=this;o.default(this._container).attr("aria-label",i.ariaLabel),this._isFirstRender=!1}render(e=this.config.duration){const i=this.config.width||this.containerWidth,s=this.config.height||this.containerHeight;this.svg.attr("width",i).attr("height",s),this._resizeObserver||this._setUpResizeObserver(),cancelAnimationFrame(this._renderAnimationFrameId),this._renderAnimationFrameId=requestAnimationFrame(()=>{this._preRender(),this._render(e)})}get containerWidth(){return this.config.width?this.element.clientWidth:this._container.clientWidth||this._container.getBoundingClientRect().width}get containerHeight(){return this.config.height?this.element.clientHeight:this._container.clientHeight||this._container.getBoundingClientRect().height||t.DEFAULT_CONTAINER_HEIGHT}get width(){return r.clamp(this.containerWidth-this.config.margin.left-this.config.margin.right,0,Number.POSITIVE_INFINITY)}get height(){return r.clamp(this.containerHeight-this.config.margin.top-this.config.margin.bottom,0,Number.POSITIVE_INFINITY)}_removeAllChildren(){for(;this.element.firstChild;)this.element.removeChild(this.element.firstChild)}_onResize(){const{config:e}=this;(e.sizing===a.Sizing.Fit||e.sizing===a.Sizing.FitWidth)&&this.render(0)}_setUpResizeObserver(){if(this._resizeObserver)return;const e=this._container.getBoundingClientRect();this._containerSize={width:e.width,height:e.height},this._resizeObserver=new c.ResizeObserver((i,s)=>{cancelAnimationFrame(this._resizeObserverAnimationFrameId),this._resizeObserverAnimationFrameId=requestAnimationFrame(()=>{const h=this._container.getBoundingClientRect(),n={width:h.width,height:h.height};!r.isEqual(this._containerSize,n)&&n.width&&n.height&&(this._containerSize=n,this._onResize())})}),this._resizeObserver.observe(this._container)}destroy(){var e;cancelAnimationFrame(this._renderAnimationFrameId),cancelAnimationFrame(this._resizeObserverAnimationFrameId),(e=this._resizeObserver)===null||e===void 0||e.disconnect(),this.svg.remove()}}t.DEFAULT_CONTAINER_HEIGHT=300;exports.ContainerCore=t;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/@unovis/ts/core/container/index.js"],"sourcesContent":["import { select } from 'd3-selection';\nimport { Sizing } from '../../types/component.js';\nimport { merge, clamp, isEqual } from '../../utils/data.js';\nimport { ResizeObserver } from '../../utils/resize-observer.js';\nimport { ContainerDefaultConfig } from './config.js';\n\nclass ContainerCore {\r\n constructor(element) {\r\n this._defaultConfig = ContainerDefaultConfig;\r\n this._isFirstRender = true;\r\n this._renderAnimationFrameId = null;\r\n this._container = element;\r\n // Setting `role` attribute to `image` to make the container accessible\r\n const container = select(this._container);\r\n container.attr('role', 'figure');\r\n // Create SVG element for visualizations\r\n this.svg = container.append('svg')\r\n // We set `display` to `block` because inline elements have an invisible\r\n // inline space that adds 4px to the height of the container\r\n .style('display', 'block')\r\n .attr('xmlns', 'http://www.w3.org/2000/svg')\r\n .attr('height', ContainerCore.DEFAULT_CONTAINER_HEIGHT) // Overriding default SVG height of 150\r\n .attr('aria-hidden', true);\r\n this._svgDefs = this.svg.append('defs');\r\n this._svgDefsExternal = this.svg.append('defs');\r\n this.element = this.svg.node();\r\n }\r\n updateContainer(config) {\r\n var _a;\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n this.prevConfig = this.config;\r\n this.config = merge(this._defaultConfig, config);\r\n // Add `svgDefs` if provided in the config\r\n if ((config === null || config === void 0 ? void 0 : config.svgDefs) !== ((_a = this.prevConfig) === null || _a === void 0 ? void 0 : _a.svgDefs)) {\r\n this._svgDefsExternal.selectAll('*').remove();\r\n this._svgDefsExternal.html(config.svgDefs);\r\n }\r\n }\r\n // The `_preRender` step should be used to perform some actions before rendering.\r\n // For example, calculating scales, setting component sizes, etc ...\r\n // eslint-disable-next-line @typescript-eslint/no-empty-function\r\n _preRender() { }\r\n // The `_render` step should be used to perform the actual rendering\r\n _render(duration) {\r\n const { config } = this;\r\n // Apply the `aria-label` attribute\r\n select(this._container)\r\n .attr('aria-label', config.ariaLabel);\r\n this._isFirstRender = false;\r\n }\r\n // Warning: Some Containers (i.e. Single Container) may override this method, so if you introduce any changes here,\r\n // make sure to check that other containers didn't break after them.\r\n render(duration = this.config.duration) {\r\n const width = this.config.width || this.containerWidth;\r\n const height = this.config.height || this.containerHeight;\r\n // We set SVG size in `render()` instead of `_render()`, because the size values in pixels will become\r\n // available only in the next animation when being accessed via `element.clientWidth` and `element.clientHeight`,\r\n // and we rely on those values when setting width and size of the components.\r\n this.svg\r\n .attr('width', width)\r\n .attr('height', height);\r\n // Set up Resize Observer. We do it in `render()` to capture container size change if it happened\r\n // in the next animation frame after the initial `render` was called.\r\n if (!this._resizeObserver)\r\n this._setUpResizeObserver();\r\n // Schedule the actual rendering in the next frame\r\n cancelAnimationFrame(this._renderAnimationFrameId);\r\n this._renderAnimationFrameId = requestAnimationFrame(() => {\r\n this._preRender();\r\n this._render(duration);\r\n });\r\n }\r\n get containerWidth() {\r\n return this.config.width\r\n ? this.element.clientWidth\r\n : (this._container.clientWidth || this._container.getBoundingClientRect().width);\r\n }\r\n get containerHeight() {\r\n return this.config.height\r\n ? this.element.clientHeight\r\n : (this._container.clientHeight || this._container.getBoundingClientRect().height || ContainerCore.DEFAULT_CONTAINER_HEIGHT);\r\n }\r\n get width() {\r\n return clamp(this.containerWidth - this.config.margin.left - this.config.margin.right, 0, Number.POSITIVE_INFINITY);\r\n }\r\n get height() {\r\n return clamp(this.containerHeight - this.config.margin.top - this.config.margin.bottom, 0, Number.POSITIVE_INFINITY);\r\n }\r\n _removeAllChildren() {\r\n while (this.element.firstChild) {\r\n this.element.removeChild(this.element.firstChild);\r\n }\r\n }\r\n _onResize() {\r\n const { config } = this;\r\n const redrawOnResize = config.sizing === Sizing.Fit || config.sizing === Sizing.FitWidth;\r\n if (redrawOnResize)\r\n this.render(0);\r\n }\r\n _setUpResizeObserver() {\r\n if (this._resizeObserver)\r\n return;\r\n const containerRect = this._container.getBoundingClientRect();\r\n this._containerSize = { width: containerRect.width, height: containerRect.height };\r\n this._resizeObserver = new ResizeObserver((entries, observer) => {\r\n // Using request animation frame to avoid multiple resize events when scrollbars appear/disappear\r\n // See more: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver#observation_errors\r\n cancelAnimationFrame(this._resizeObserverAnimationFrameId);\r\n this._resizeObserverAnimationFrameId = requestAnimationFrame(() => {\r\n const resizedContainerRect = this._container.getBoundingClientRect();\r\n const resizedContainerSize = { width: resizedContainerRect.width, height: resizedContainerRect.height };\r\n const hasSizeChanged = !isEqual(this._containerSize, resizedContainerSize);\r\n // Do resize only if element is attached to the DOM\r\n // will come in useful when some ancestor of container becomes detached\r\n if (hasSizeChanged && resizedContainerSize.width && resizedContainerSize.height) {\r\n this._containerSize = resizedContainerSize;\r\n this._onResize();\r\n }\r\n });\r\n });\r\n this._resizeObserver.observe(this._container);\r\n }\r\n destroy() {\r\n var _a;\r\n cancelAnimationFrame(this._renderAnimationFrameId);\r\n cancelAnimationFrame(this._resizeObserverAnimationFrameId);\r\n (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\r\n this.svg.remove();\r\n }\r\n}\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nContainerCore.DEFAULT_CONTAINER_HEIGHT = 300;\n\nexport { ContainerCore };\n//# sourceMappingURL=index.js.map\n"],"names":["ContainerCore","element","ContainerDefaultConfig","container","select","config","_a","merge","duration","width","height","clamp","Sizing","containerRect","ResizeObserver","entries","observer","resizedContainerRect","resizedContainerSize","isEqual"],"mappings":"2RAMA,MAAMA,CAAc,CAChB,YAAYC,EAAS,CACjB,KAAK,eAAiBC,yBACtB,KAAK,eAAiB,GACtB,KAAK,wBAA0B,KAC/B,KAAK,WAAaD,EAElB,MAAME,EAAYC,EAAAA,QAAO,KAAK,UAAU,EACxCD,EAAU,KAAK,OAAQ,QAAQ,EAE/B,KAAK,IAAMA,EAAU,OAAO,KAAK,EAG5B,MAAM,UAAW,OAAO,EACxB,KAAK,QAAS,4BAA4B,EAC1C,KAAK,SAAUH,EAAc,wBAAwB,EACrD,KAAK,cAAe,EAAI,EAC7B,KAAK,SAAW,KAAK,IAAI,OAAO,MAAM,EACtC,KAAK,iBAAmB,KAAK,IAAI,OAAO,MAAM,EAC9C,KAAK,QAAU,KAAK,IAAI,KAAI,CAC/B,CACD,gBAAgBK,EAAQ,CACpB,IAAIC,EAEJ,KAAK,WAAa,KAAK,OACvB,KAAK,OAASC,EAAK,MAAC,KAAK,eAAgBF,CAAM,GAE1CA,GAAW,KAA4B,OAASA,EAAO,aAAeC,EAAK,KAAK,cAAgB,MAAQA,IAAO,OAAS,OAASA,EAAG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,OAAAN,CAAQ,EAAG,MACIA,EAAO,SAAWO,EAAM,OAAC,KAAOP,EAAO,SAAWO,EAAM,OAAC,WAE5E,KAAK,OAAO,CAAC,CACpB,CACD,sBAAuB,CACnB,GAAI,KAAK,gBACL,OACJ,MAAMC,EAAgB,KAAK,WAAW,sBAAqB,EAC3D,KAAK,eAAiB,CAAE,MAAOA,EAAc,MAAO,OAAQA,EAAc,QAC1E,KAAK,gBAAkB,IAAIC,EAAc,eAAC,CAACC,EAASC,IAAa,CAG7D,qBAAqB,KAAK,+BAA+B,EACzD,KAAK,gCAAkC,sBAAsB,IAAM,CAC/D,MAAMC,EAAuB,KAAK,WAAW,sBAAqB,EAC5DC,EAAuB,CAAE,MAAOD,EAAqB,MAAO,OAAQA,EAAqB,QACxE,CAACE,EAAO,QAAC,KAAK,eAAgBD,CAAoB,GAGnDA,EAAqB,OAASA,EAAqB,SACrE,KAAK,eAAiBA,EACtB,KAAK,UAAS,EAElC,CAAa,CACb,CAAS,EACD,KAAK,gBAAgB,QAAQ,KAAK,UAAU,CAC/C,CACD,SAAU,CACN,IAAIZ,EACJ,qBAAqB,KAAK,uBAAuB,EACjD,qBAAqB,KAAK,+BAA+B,GACxDA,EAAK,KAAK,mBAAqB,MAAQA,IAAO,QAAkBA,EAAG,aACpE,KAAK,IAAI,QACZ,CACL,CAEAN,EAAc,yBAA2B","x_google_ignoreList":[0]}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { Sizing as h } from "../../types/component.js";
|
|
2
|
-
import { merge as d, clamp as o, isEqual as g } from "../../utils/data.js";
|
|
3
|
-
import { ResizeObserver as c } from "../../utils/resize-observer.js";
|
|
4
|
-
import { ContainerDefaultConfig as l } from "./config.js";
|
|
5
|
-
import a from "../../../../d3-selection/src/select.js";
|
|
6
|
-
class n {
|
|
7
|
-
constructor(e) {
|
|
8
|
-
this._defaultConfig = l, this._isFirstRender = !0, this._renderAnimationFrameId = null, this._container = e;
|
|
9
|
-
const i = a(this._container);
|
|
10
|
-
i.attr("role", "figure"), this.svg = i.append("svg").style("display", "block").attr("xmlns", "http://www.w3.org/2000/svg").attr("height", n.DEFAULT_CONTAINER_HEIGHT).attr("aria-hidden", !0), this._svgDefs = this.svg.append("defs"), this._svgDefsExternal = this.svg.append("defs"), this.element = this.svg.node();
|
|
11
|
-
}
|
|
12
|
-
updateContainer(e) {
|
|
13
|
-
var i;
|
|
14
|
-
this.prevConfig = this.config, this.config = d(this._defaultConfig, e), (e == null ? void 0 : e.svgDefs) !== ((i = this.prevConfig) === null || i === void 0 ? void 0 : i.svgDefs) && (this._svgDefsExternal.selectAll("*").remove(), this._svgDefsExternal.html(e.svgDefs));
|
|
15
|
-
}
|
|
16
|
-
// The `_preRender` step should be used to perform some actions before rendering.
|
|
17
|
-
// For example, calculating scales, setting component sizes, etc ...
|
|
18
|
-
// eslint-disable-next-line @typescript-eslint/no-empty-function
|
|
19
|
-
_preRender() {
|
|
20
|
-
}
|
|
21
|
-
// The `_render` step should be used to perform the actual rendering
|
|
22
|
-
_render(e) {
|
|
23
|
-
const { config: i } = this;
|
|
24
|
-
a(this._container).attr("aria-label", i.ariaLabel), this._isFirstRender = !1;
|
|
25
|
-
}
|
|
26
|
-
// Warning: Some Containers (i.e. Single Container) may override this method, so if you introduce any changes here,
|
|
27
|
-
// make sure to check that other containers didn't break after them.
|
|
28
|
-
render(e = this.config.duration) {
|
|
29
|
-
const i = this.config.width || this.containerWidth, r = this.config.height || this.containerHeight;
|
|
30
|
-
this.svg.attr("width", i).attr("height", r), this._resizeObserver || this._setUpResizeObserver(), cancelAnimationFrame(this._renderAnimationFrameId), this._renderAnimationFrameId = requestAnimationFrame(() => {
|
|
31
|
-
this._preRender(), this._render(e);
|
|
32
|
-
});
|
|
33
|
-
}
|
|
34
|
-
get containerWidth() {
|
|
35
|
-
return this.config.width ? this.element.clientWidth : this._container.clientWidth || this._container.getBoundingClientRect().width;
|
|
36
|
-
}
|
|
37
|
-
get containerHeight() {
|
|
38
|
-
return this.config.height ? this.element.clientHeight : this._container.clientHeight || this._container.getBoundingClientRect().height || n.DEFAULT_CONTAINER_HEIGHT;
|
|
39
|
-
}
|
|
40
|
-
get width() {
|
|
41
|
-
return o(this.containerWidth - this.config.margin.left - this.config.margin.right, 0, Number.POSITIVE_INFINITY);
|
|
42
|
-
}
|
|
43
|
-
get height() {
|
|
44
|
-
return o(this.containerHeight - this.config.margin.top - this.config.margin.bottom, 0, Number.POSITIVE_INFINITY);
|
|
45
|
-
}
|
|
46
|
-
_removeAllChildren() {
|
|
47
|
-
for (; this.element.firstChild; )
|
|
48
|
-
this.element.removeChild(this.element.firstChild);
|
|
49
|
-
}
|
|
50
|
-
_onResize() {
|
|
51
|
-
const { config: e } = this;
|
|
52
|
-
(e.sizing === h.Fit || e.sizing === h.FitWidth) && this.render(0);
|
|
53
|
-
}
|
|
54
|
-
_setUpResizeObserver() {
|
|
55
|
-
if (this._resizeObserver)
|
|
56
|
-
return;
|
|
57
|
-
const e = this._container.getBoundingClientRect();
|
|
58
|
-
this._containerSize = { width: e.width, height: e.height }, this._resizeObserver = new c((i, r) => {
|
|
59
|
-
cancelAnimationFrame(this._resizeObserverAnimationFrameId), this._resizeObserverAnimationFrameId = requestAnimationFrame(() => {
|
|
60
|
-
const s = this._container.getBoundingClientRect(), t = { width: s.width, height: s.height };
|
|
61
|
-
!g(this._containerSize, t) && t.width && t.height && (this._containerSize = t, this._onResize());
|
|
62
|
-
});
|
|
63
|
-
}), this._resizeObserver.observe(this._container);
|
|
64
|
-
}
|
|
65
|
-
destroy() {
|
|
66
|
-
var e;
|
|
67
|
-
cancelAnimationFrame(this._renderAnimationFrameId), cancelAnimationFrame(this._resizeObserverAnimationFrameId), (e = this._resizeObserver) === null || e === void 0 || e.disconnect(), this.svg.remove();
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
n.DEFAULT_CONTAINER_HEIGHT = 300;
|
|
71
|
-
export {
|
|
72
|
-
n as ContainerCore
|
|
73
|
-
};
|
|
74
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@unovis/ts/core/container/index.js"],"sourcesContent":["import { select } from 'd3-selection';\nimport { Sizing } from '../../types/component.js';\nimport { merge, clamp, isEqual } from '../../utils/data.js';\nimport { ResizeObserver } from '../../utils/resize-observer.js';\nimport { ContainerDefaultConfig } from './config.js';\n\nclass ContainerCore {\r\n constructor(element) {\r\n this._defaultConfig = ContainerDefaultConfig;\r\n this._isFirstRender = true;\r\n this._renderAnimationFrameId = null;\r\n this._container = element;\r\n // Setting `role` attribute to `image` to make the container accessible\r\n const container = select(this._container);\r\n container.attr('role', 'figure');\r\n // Create SVG element for visualizations\r\n this.svg = container.append('svg')\r\n // We set `display` to `block` because inline elements have an invisible\r\n // inline space that adds 4px to the height of the container\r\n .style('display', 'block')\r\n .attr('xmlns', 'http://www.w3.org/2000/svg')\r\n .attr('height', ContainerCore.DEFAULT_CONTAINER_HEIGHT) // Overriding default SVG height of 150\r\n .attr('aria-hidden', true);\r\n this._svgDefs = this.svg.append('defs');\r\n this._svgDefsExternal = this.svg.append('defs');\r\n this.element = this.svg.node();\r\n }\r\n updateContainer(config) {\r\n var _a;\r\n // eslint-disable-next-line @typescript-eslint/naming-convention\r\n this.prevConfig = this.config;\r\n this.config = merge(this._defaultConfig, config);\r\n // Add `svgDefs` if provided in the config\r\n if ((config === null || config === void 0 ? void 0 : config.svgDefs) !== ((_a = this.prevConfig) === null || _a === void 0 ? void 0 : _a.svgDefs)) {\r\n this._svgDefsExternal.selectAll('*').remove();\r\n this._svgDefsExternal.html(config.svgDefs);\r\n }\r\n }\r\n // The `_preRender` step should be used to perform some actions before rendering.\r\n // For example, calculating scales, setting component sizes, etc ...\r\n // eslint-disable-next-line @typescript-eslint/no-empty-function\r\n _preRender() { }\r\n // The `_render` step should be used to perform the actual rendering\r\n _render(duration) {\r\n const { config } = this;\r\n // Apply the `aria-label` attribute\r\n select(this._container)\r\n .attr('aria-label', config.ariaLabel);\r\n this._isFirstRender = false;\r\n }\r\n // Warning: Some Containers (i.e. Single Container) may override this method, so if you introduce any changes here,\r\n // make sure to check that other containers didn't break after them.\r\n render(duration = this.config.duration) {\r\n const width = this.config.width || this.containerWidth;\r\n const height = this.config.height || this.containerHeight;\r\n // We set SVG size in `render()` instead of `_render()`, because the size values in pixels will become\r\n // available only in the next animation when being accessed via `element.clientWidth` and `element.clientHeight`,\r\n // and we rely on those values when setting width and size of the components.\r\n this.svg\r\n .attr('width', width)\r\n .attr('height', height);\r\n // Set up Resize Observer. We do it in `render()` to capture container size change if it happened\r\n // in the next animation frame after the initial `render` was called.\r\n if (!this._resizeObserver)\r\n this._setUpResizeObserver();\r\n // Schedule the actual rendering in the next frame\r\n cancelAnimationFrame(this._renderAnimationFrameId);\r\n this._renderAnimationFrameId = requestAnimationFrame(() => {\r\n this._preRender();\r\n this._render(duration);\r\n });\r\n }\r\n get containerWidth() {\r\n return this.config.width\r\n ? this.element.clientWidth\r\n : (this._container.clientWidth || this._container.getBoundingClientRect().width);\r\n }\r\n get containerHeight() {\r\n return this.config.height\r\n ? this.element.clientHeight\r\n : (this._container.clientHeight || this._container.getBoundingClientRect().height || ContainerCore.DEFAULT_CONTAINER_HEIGHT);\r\n }\r\n get width() {\r\n return clamp(this.containerWidth - this.config.margin.left - this.config.margin.right, 0, Number.POSITIVE_INFINITY);\r\n }\r\n get height() {\r\n return clamp(this.containerHeight - this.config.margin.top - this.config.margin.bottom, 0, Number.POSITIVE_INFINITY);\r\n }\r\n _removeAllChildren() {\r\n while (this.element.firstChild) {\r\n this.element.removeChild(this.element.firstChild);\r\n }\r\n }\r\n _onResize() {\r\n const { config } = this;\r\n const redrawOnResize = config.sizing === Sizing.Fit || config.sizing === Sizing.FitWidth;\r\n if (redrawOnResize)\r\n this.render(0);\r\n }\r\n _setUpResizeObserver() {\r\n if (this._resizeObserver)\r\n return;\r\n const containerRect = this._container.getBoundingClientRect();\r\n this._containerSize = { width: containerRect.width, height: containerRect.height };\r\n this._resizeObserver = new ResizeObserver((entries, observer) => {\r\n // Using request animation frame to avoid multiple resize events when scrollbars appear/disappear\r\n // See more: https://developer.mozilla.org/en-US/docs/Web/API/ResizeObserver#observation_errors\r\n cancelAnimationFrame(this._resizeObserverAnimationFrameId);\r\n this._resizeObserverAnimationFrameId = requestAnimationFrame(() => {\r\n const resizedContainerRect = this._container.getBoundingClientRect();\r\n const resizedContainerSize = { width: resizedContainerRect.width, height: resizedContainerRect.height };\r\n const hasSizeChanged = !isEqual(this._containerSize, resizedContainerSize);\r\n // Do resize only if element is attached to the DOM\r\n // will come in useful when some ancestor of container becomes detached\r\n if (hasSizeChanged && resizedContainerSize.width && resizedContainerSize.height) {\r\n this._containerSize = resizedContainerSize;\r\n this._onResize();\r\n }\r\n });\r\n });\r\n this._resizeObserver.observe(this._container);\r\n }\r\n destroy() {\r\n var _a;\r\n cancelAnimationFrame(this._renderAnimationFrameId);\r\n cancelAnimationFrame(this._resizeObserverAnimationFrameId);\r\n (_a = this._resizeObserver) === null || _a === void 0 ? void 0 : _a.disconnect();\r\n this.svg.remove();\r\n }\r\n}\r\n// eslint-disable-next-line @typescript-eslint/naming-convention\r\nContainerCore.DEFAULT_CONTAINER_HEIGHT = 300;\n\nexport { ContainerCore };\n//# sourceMappingURL=index.js.map\n"],"names":["ContainerCore","element","ContainerDefaultConfig","container","select","config","_a","merge","duration","width","height","clamp","Sizing","containerRect","ResizeObserver","entries","observer","resizedContainerRect","resizedContainerSize","isEqual"],"mappings":";;;;;AAMA,MAAMA,EAAc;AAAA,EAChB,YAAYC,GAAS;AACjB,SAAK,iBAAiBC,GACtB,KAAK,iBAAiB,IACtB,KAAK,0BAA0B,MAC/B,KAAK,aAAaD;AAElB,UAAME,IAAYC,EAAO,KAAK,UAAU;AACxC,IAAAD,EAAU,KAAK,QAAQ,QAAQ,GAE/B,KAAK,MAAMA,EAAU,OAAO,KAAK,EAG5B,MAAM,WAAW,OAAO,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AAU;AAAA,EAC/C;AAAA,EACD,UAAU;AACN,QAAIZ;AACJ,yBAAqB,KAAK,uBAAuB,GACjD,qBAAqB,KAAK,+BAA+B,IACxDA,IAAK,KAAK,qBAAqB,QAAQA,MAAO,UAAkBA,EAAG,cACpE,KAAK,IAAI;EACZ;AACL;AAEAN,EAAc,2BAA2B;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const i=require("../component/config.cjs"),t=Object.assign(Object.assign({},i.ComponentDefaultConfig),{x:void 0,y:void 0,id:(e,o)=>{var n;return(n=e.id)!==null&&n!==void 0?n:`${o}`},color:e=>e.color,xScale:void 0,yScale:void 0,excludeFromDomainCalculation:!1});exports.XYComponentDefaultConfig=t;
|
|
2
|
-
//# sourceMappingURL=config.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.cjs","sources":["../../../../../../node_modules/@unovis/ts/core/xy-component/config.js"],"sourcesContent":["import { ComponentDefaultConfig } from '../component/config.js';\n\n// Config\r\nconst XYComponentDefaultConfig = Object.assign(Object.assign({}, ComponentDefaultConfig), { x: undefined, y: undefined, id: (d, i) => { var _a; return (_a = d.id) !== null && _a !== void 0 ? _a : `${i}`; }, color: (d) => d.color, xScale: undefined, yScale: undefined, excludeFromDomainCalculation: false });\n\nexport { XYComponentDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["XYComponentDefaultConfig","ComponentDefaultConfig","d","i","_a"],"mappings":"2HAGMA,EAA2B,OAAO,OAAO,OAAO,OAAO,GAAIC,EAAAA,sBAAsB,EAAG,CAAE,EAAG,OAAW,EAAG,OAAW,GAAI,CAACC,EAAGC,IAAM,CAAE,IAAIC,EAAI,OAAQA,EAAKF,EAAE,MAAQ,MAAQE,IAAO,OAASA,EAAK,GAAGD,CAAC,IAAO,MAAQD,GAAMA,EAAE,MAAO,OAAQ,OAAW,OAAQ,OAAW,6BAA8B,EAAO,CAAA","x_google_ignoreList":[0]}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ComponentDefaultConfig as i } from "../component/config.js";
|
|
2
|
-
const d = Object.assign(Object.assign({}, i), { x: void 0, y: void 0, id: (e, o) => {
|
|
3
|
-
var n;
|
|
4
|
-
return (n = e.id) !== null && n !== void 0 ? n : `${o}`;
|
|
5
|
-
}, color: (e) => e.color, xScale: void 0, yScale: void 0, excludeFromDomainCalculation: !1 });
|
|
6
|
-
export {
|
|
7
|
-
d as XYComponentDefaultConfig
|
|
8
|
-
};
|
|
9
|
-
//# sourceMappingURL=config.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"config.js","sources":["../../../../../../node_modules/@unovis/ts/core/xy-component/config.js"],"sourcesContent":["import { ComponentDefaultConfig } from '../component/config.js';\n\n// Config\r\nconst XYComponentDefaultConfig = Object.assign(Object.assign({}, ComponentDefaultConfig), { x: undefined, y: undefined, id: (d, i) => { var _a; return (_a = d.id) !== null && _a !== void 0 ? _a : `${i}`; }, color: (d) => d.color, xScale: undefined, yScale: undefined, excludeFromDomainCalculation: false });\n\nexport { XYComponentDefaultConfig };\n//# sourceMappingURL=config.js.map\n"],"names":["XYComponentDefaultConfig","ComponentDefaultConfig","d","i","_a"],"mappings":";AAGK,MAACA,IAA2B,OAAO,OAAO,OAAO,OAAO,IAAIC,CAAsB,GAAG,EAAE,GAAG,QAAW,GAAG,QAAW,IAAI,CAACC,GAAGC,MAAM;AAAE,MAAIC;AAAI,UAAQA,IAAKF,EAAE,QAAQ,QAAQE,MAAO,SAASA,IAAK,GAAGD,CAAC;GAAO,OAAO,CAACD,MAAMA,EAAE,OAAO,QAAQ,QAAW,QAAQ,QAAW,8BAA8B,GAAO,CAAA;","x_google_ignoreList":[0]}
|