vue-chrts 0.0.168 → 0.0.170
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Area/AreaChart.cjs +3 -3
- package/dist/components/Area/AreaChart.cjs.map +1 -1
- package/dist/components/Area/AreaChart.js +31 -39
- package/dist/components/Area/AreaChart.js.map +1 -1
- package/dist/components/AreaStacked/AreaStackedChart.cjs +1 -1
- package/dist/components/AreaStacked/AreaStackedChart.cjs.map +1 -1
- package/dist/components/AreaStacked/AreaStackedChart.js +21 -26
- package/dist/components/AreaStacked/AreaStackedChart.js.map +1 -1
- package/dist/components/Bar/BarChart.cjs +1 -1
- package/dist/components/Bar/BarChart.cjs.map +1 -1
- package/dist/components/Bar/BarChart.js +40 -48
- package/dist/components/Bar/BarChart.js.map +1 -1
- package/dist/components/Crosshair/Crosshair.cjs +1 -1
- package/dist/components/Crosshair/Crosshair.cjs.map +1 -1
- package/dist/components/Crosshair/Crosshair.js +16 -18
- package/dist/components/Crosshair/Crosshair.js.map +1 -1
- package/dist/components/Donut/DonutChart.cjs +2 -2
- package/dist/components/Donut/DonutChart.cjs.map +1 -1
- package/dist/components/Donut/DonutChart.js +20 -24
- package/dist/components/Donut/DonutChart.js.map +1 -1
- package/dist/components/Line/LineChart.cjs +1 -1
- package/dist/components/Line/LineChart.cjs.map +1 -1
- package/dist/components/Line/LineChart.js +28 -35
- package/dist/components/Line/LineChart.js.map +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +1 -2
- package/dist/index.js +14 -14
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/_virtual/_commonjsHelpers.cjs +0 -2
- package/dist/_virtual/_commonjsHelpers.cjs.map +0 -1
- package/dist/_virtual/_commonjsHelpers.js +0 -7
- package/dist/_virtual/_commonjsHelpers.js.map +0 -1
- package/dist/_virtual/browser.cjs +0 -2
- package/dist/_virtual/browser.cjs.map +0 -1
- package/dist/_virtual/browser.js +0 -3
- package/dist/_virtual/browser.js.map +0 -1
- package/dist/_virtual/striptags.cjs +0 -2
- package/dist/_virtual/striptags.cjs.map +0 -1
- package/dist/_virtual/striptags.js +0 -8
- package/dist/_virtual/striptags.js.map +0 -1
- package/dist/_virtual/striptags2.cjs +0 -2
- package/dist/_virtual/striptags2.cjs.map +0 -1
- package/dist/_virtual/striptags2.js +0 -5
- package/dist/_virtual/striptags2.js.map +0 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs +0 -2
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +0 -280
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js.map +0 -1
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.cjs +0 -2
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js +0 -87
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js.map +0 -1
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.cjs +0 -2
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.js +0 -9
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.js.map +0 -1
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.cjs +0 -2
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +0 -23
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js.map +0 -1
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +0 -2
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +0 -10
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js.map +0 -1
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.cjs +0 -2
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +0 -124
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js.map +0 -1
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.cjs +0 -2
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +0 -45
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js.map +0 -1
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs +0 -2
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +0 -54
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js.map +0 -1
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs +0 -2
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs.map +0 -1
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +0 -30
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js +0 -16
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.js +0 -21
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.js +0 -32
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js +0 -8
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js +0 -32
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js +0 -13
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js +0 -11
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js +0 -27
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js +0 -43
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js +0 -12
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js +0 -13
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.js +0 -38
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.js +0 -7
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.js +0 -5
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.js +0 -15
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js +0 -19
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js +0 -10
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js +0 -5
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.cjs +0 -2
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.cjs.map +0 -1
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.js +0 -71
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/area/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/config.js +0 -7
- package/dist/node_modules/@unovis/ts/components/area/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/area/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/index.js +0 -53
- package/dist/node_modules/@unovis/ts/components/area/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/style.cjs +0 -36
- package/dist/node_modules/@unovis/ts/components/area/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/area/style.js +0 -42
- package/dist/node_modules/@unovis/ts/components/area/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/axis/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/config.js +0 -7
- package/dist/node_modules/@unovis/ts/components/axis/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/axis/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/index.js +0 -288
- package/dist/node_modules/@unovis/ts/components/axis/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/style.cjs +0 -102
- package/dist/node_modules/@unovis/ts/components/axis/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/style.js +0 -115
- package/dist/node_modules/@unovis/ts/components/axis/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/types.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/axis/types.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/axis/types.js +0 -8
- package/dist/node_modules/@unovis/ts/components/axis/types.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.js +0 -19
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.js +0 -37
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.js +0 -49
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.cjs +0 -64
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.js +0 -74
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.js +0 -11
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/crosshair/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/config.js +0 -6
- package/dist/node_modules/@unovis/ts/components/crosshair/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/crosshair/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/index.js +0 -120
- package/dist/node_modules/@unovis/ts/components/crosshair/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/style.cjs +0 -23
- package/dist/node_modules/@unovis/ts/components/crosshair/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/crosshair/style.js +0 -30
- package/dist/node_modules/@unovis/ts/components/crosshair/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/donut/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/config.js +0 -9
- package/dist/node_modules/@unovis/ts/components/donut/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/constants.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/donut/constants.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/constants.js +0 -12
- package/dist/node_modules/@unovis/ts/components/donut/constants.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/donut/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/index.js +0 -58
- package/dist/node_modules/@unovis/ts/components/donut/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.js +0 -38
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/style.cjs +0 -59
- package/dist/node_modules/@unovis/ts/components/donut/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/donut/style.js +0 -69
- package/dist/node_modules/@unovis/ts/components/donut/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.js +0 -7
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.js +0 -122
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.cjs +0 -36
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.js +0 -44
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/line/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/config.js +0 -7
- package/dist/node_modules/@unovis/ts/components/line/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/line/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/index.js +0 -87
- package/dist/node_modules/@unovis/ts/components/line/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/style.cjs +0 -36
- package/dist/node_modules/@unovis/ts/components/line/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/line/style.js +0 -46
- package/dist/node_modules/@unovis/ts/components/line/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.js +0 -7
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.js +0 -112
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.cjs +0 -35
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.js +0 -43
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/tooltip/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/config.js +0 -18
- package/dist/node_modules/@unovis/ts/components/tooltip/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/components/tooltip/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/index.js +0 -167
- package/dist/node_modules/@unovis/ts/components/tooltip/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/style.cjs +0 -62
- package/dist/node_modules/@unovis/ts/components/tooltip/style.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/components/tooltip/style.js +0 -72
- package/dist/node_modules/@unovis/ts/components/tooltip/style.js.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/containers/single-container/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/config.js +0 -6
- package/dist/node_modules/@unovis/ts/containers/single-container/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/containers/single-container/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/single-container/index.js +0 -72
- package/dist/node_modules/@unovis/ts/containers/single-container/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.js +0 -7
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.cjs +0 -4
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.js +0 -186
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/component/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/component/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/component/config.js +0 -9
- package/dist/node_modules/@unovis/ts/core/component/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/component/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/component/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/component/index.js +0 -69
- package/dist/node_modules/@unovis/ts/core/component/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/container/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/container/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/container/config.js +0 -25
- package/dist/node_modules/@unovis/ts/core/container/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/container/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/container/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/container/index.js +0 -74
- package/dist/node_modules/@unovis/ts/core/container/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/config.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/xy-component/config.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/config.js +0 -9
- package/dist/node_modules/@unovis/ts/core/xy-component/config.js.map +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/index.cjs +0 -2
- package/dist/node_modules/@unovis/ts/core/xy-component/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/core/xy-component/index.js +0 -54
- package/dist/node_modules/@unovis/ts/core/xy-component/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/data-models/core.cjs +0 -2
- package/dist/node_modules/@unovis/ts/data-models/core.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/data-models/core.js +0 -15
- package/dist/node_modules/@unovis/ts/data-models/core.js.map +0 -1
- package/dist/node_modules/@unovis/ts/data-models/series.cjs +0 -2
- package/dist/node_modules/@unovis/ts/data-models/series.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/data-models/series.js +0 -17
- package/dist/node_modules/@unovis/ts/data-models/series.js.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/colors.cjs +0 -2
- package/dist/node_modules/@unovis/ts/styles/colors.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/colors.js +0 -19
- package/dist/node_modules/@unovis/ts/styles/colors.js.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/index.cjs +0 -39
- package/dist/node_modules/@unovis/ts/styles/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/index.js +0 -64
- package/dist/node_modules/@unovis/ts/styles/index.js.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/patterns.cjs +0 -16
- package/dist/node_modules/@unovis/ts/styles/patterns.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/styles/patterns.js +0 -46
- package/dist/node_modules/@unovis/ts/styles/patterns.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/component.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/component.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/component.js +0 -13
- package/dist/node_modules/@unovis/ts/types/component.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/curve.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/curve.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/curve.js +0 -44
- package/dist/node_modules/@unovis/ts/types/curve.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/direction.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/direction.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/direction.js +0 -8
- package/dist/node_modules/@unovis/ts/types/direction.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/position.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/position.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/position.js +0 -23
- package/dist/node_modules/@unovis/ts/types/position.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/scale.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/scale.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/scale.js +0 -41
- package/dist/node_modules/@unovis/ts/types/scale.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/svg.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/svg.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/svg.js +0 -16
- package/dist/node_modules/@unovis/ts/types/svg.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/symbol.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/symbol.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/symbol.js +0 -25
- package/dist/node_modules/@unovis/ts/types/symbol.js.map +0 -1
- package/dist/node_modules/@unovis/ts/types/text.cjs +0 -2
- package/dist/node_modules/@unovis/ts/types/text.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/types/text.js +0 -23
- package/dist/node_modules/@unovis/ts/types/text.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/color.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/color.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/color.js +0 -9
- package/dist/node_modules/@unovis/ts/utils/color.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/d3.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/d3.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/d3.js +0 -13
- package/dist/node_modules/@unovis/ts/utils/d3.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/data.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/data.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/data.js +0 -171
- package/dist/node_modules/@unovis/ts/utils/data.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/misc.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/misc.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/misc.js +0 -29
- package/dist/node_modules/@unovis/ts/utils/misc.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/path.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/path.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/path.js +0 -10
- package/dist/node_modules/@unovis/ts/utils/path.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/resize-observer.cjs +0 -2
- package/dist/node_modules/@unovis/ts/utils/resize-observer.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/resize-observer.js +0 -7
- package/dist/node_modules/@unovis/ts/utils/resize-observer.js.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/text.cjs +0 -3
- package/dist/node_modules/@unovis/ts/utils/text.cjs.map +0 -1
- package/dist/node_modules/@unovis/ts/utils/text.js +0 -179
- package/dist/node_modules/@unovis/ts/utils/text.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/area/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/area/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/area/index.js +0 -49
- package/dist/node_modules/@unovis/vue/components/area/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/axis/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/axis/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/axis/index.js +0 -70
- package/dist/node_modules/@unovis/vue/components/axis/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/crosshair/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/crosshair/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/crosshair/index.js +0 -34
- package/dist/node_modules/@unovis/vue/components/crosshair/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/donut/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/donut/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/donut/index.js +0 -55
- package/dist/node_modules/@unovis/vue/components/donut/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.js +0 -55
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/line/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/line/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/line/index.js +0 -51
- package/dist/node_modules/@unovis/vue/components/line/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.js +0 -55
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/components/tooltip/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/components/tooltip/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/components/tooltip/index.js +0 -41
- package/dist/node_modules/@unovis/vue/components/tooltip/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/containers/single-container/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/containers/single-container/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/containers/single-container/index.js +0 -67
- package/dist/node_modules/@unovis/vue/containers/single-container/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.js +0 -103
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.js +0 -44
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/index.cjs +0 -2
- package/dist/node_modules/@unovis/vue/index.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/index.js +0 -11
- package/dist/node_modules/@unovis/vue/index.js.map +0 -1
- package/dist/node_modules/@unovis/vue/utils/context.cjs +0 -2
- package/dist/node_modules/@unovis/vue/utils/context.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/utils/context.js +0 -9
- package/dist/node_modules/@unovis/vue/utils/context.js.map +0 -1
- package/dist/node_modules/@unovis/vue/utils/props.cjs +0 -2
- package/dist/node_modules/@unovis/vue/utils/props.cjs.map +0 -1
- package/dist/node_modules/@unovis/vue/utils/props.js +0 -19
- package/dist/node_modules/@unovis/vue/utils/props.js.map +0 -1
- package/dist/node_modules/d3-array/src/ascending.cjs +0 -2
- package/dist/node_modules/d3-array/src/ascending.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/ascending.js +0 -7
- package/dist/node_modules/d3-array/src/ascending.js.map +0 -1
- package/dist/node_modules/d3-array/src/bisect.cjs +0 -2
- package/dist/node_modules/d3-array/src/bisect.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/bisect.js +0 -10
- package/dist/node_modules/d3-array/src/bisect.js.map +0 -1
- package/dist/node_modules/d3-array/src/bisector.cjs +0 -2
- package/dist/node_modules/d3-array/src/bisector.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/bisector.js +0 -38
- package/dist/node_modules/d3-array/src/bisector.js.map +0 -1
- package/dist/node_modules/d3-array/src/descending.cjs +0 -2
- package/dist/node_modules/d3-array/src/descending.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/descending.js +0 -7
- package/dist/node_modules/d3-array/src/descending.js.map +0 -1
- package/dist/node_modules/d3-array/src/extent.cjs +0 -2
- package/dist/node_modules/d3-array/src/extent.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/extent.js +0 -10
- package/dist/node_modules/d3-array/src/extent.js.map +0 -1
- package/dist/node_modules/d3-array/src/max.cjs +0 -2
- package/dist/node_modules/d3-array/src/max.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/max.js +0 -16
- package/dist/node_modules/d3-array/src/max.js.map +0 -1
- package/dist/node_modules/d3-array/src/mean.cjs +0 -2
- package/dist/node_modules/d3-array/src/mean.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/mean.js +0 -16
- package/dist/node_modules/d3-array/src/mean.js.map +0 -1
- package/dist/node_modules/d3-array/src/merge.cjs +0 -2
- package/dist/node_modules/d3-array/src/merge.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/merge.js +0 -11
- package/dist/node_modules/d3-array/src/merge.js.map +0 -1
- package/dist/node_modules/d3-array/src/min.cjs +0 -2
- package/dist/node_modules/d3-array/src/min.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/min.js +0 -16
- package/dist/node_modules/d3-array/src/min.js.map +0 -1
- package/dist/node_modules/d3-array/src/number.cjs +0 -2
- package/dist/node_modules/d3-array/src/number.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/number.js +0 -7
- package/dist/node_modules/d3-array/src/number.js.map +0 -1
- package/dist/node_modules/d3-array/src/quantile.cjs +0 -2
- package/dist/node_modules/d3-array/src/quantile.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/quantile.js +0 -13
- package/dist/node_modules/d3-array/src/quantile.js.map +0 -1
- package/dist/node_modules/d3-array/src/range.cjs +0 -2
- package/dist/node_modules/d3-array/src/range.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/range.js +0 -10
- package/dist/node_modules/d3-array/src/range.js.map +0 -1
- package/dist/node_modules/d3-array/src/sum.cjs +0 -2
- package/dist/node_modules/d3-array/src/sum.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/sum.js +0 -16
- package/dist/node_modules/d3-array/src/sum.js.map +0 -1
- package/dist/node_modules/d3-array/src/ticks.cjs +0 -2
- package/dist/node_modules/d3-array/src/ticks.cjs.map +0 -1
- package/dist/node_modules/d3-array/src/ticks.js +0 -33
- package/dist/node_modules/d3-array/src/ticks.js.map +0 -1
- package/dist/node_modules/d3-axis/src/axis.cjs +0 -2
- package/dist/node_modules/d3-axis/src/axis.cjs.map +0 -1
- package/dist/node_modules/d3-axis/src/axis.js +0 -73
- package/dist/node_modules/d3-axis/src/axis.js.map +0 -1
- package/dist/node_modules/d3-axis/src/identity.cjs +0 -2
- package/dist/node_modules/d3-axis/src/identity.cjs.map +0 -1
- package/dist/node_modules/d3-axis/src/identity.js +0 -7
- package/dist/node_modules/d3-axis/src/identity.js.map +0 -1
- package/dist/node_modules/d3-color/src/color.cjs +0 -2
- package/dist/node_modules/d3-color/src/color.cjs.map +0 -1
- package/dist/node_modules/d3-color/src/color.js +0 -306
- package/dist/node_modules/d3-color/src/color.js.map +0 -1
- package/dist/node_modules/d3-color/src/define.cjs +0 -2
- package/dist/node_modules/d3-color/src/define.cjs.map +0 -1
- package/dist/node_modules/d3-color/src/define.js +0 -13
- package/dist/node_modules/d3-color/src/define.js.map +0 -1
- package/dist/node_modules/d3-dispatch/src/dispatch.cjs +0 -2
- package/dist/node_modules/d3-dispatch/src/dispatch.cjs.map +0 -1
- package/dist/node_modules/d3-dispatch/src/dispatch.js +0 -65
- package/dist/node_modules/d3-dispatch/src/dispatch.js.map +0 -1
- package/dist/node_modules/d3-ease/src/cubic.cjs +0 -2
- package/dist/node_modules/d3-ease/src/cubic.cjs.map +0 -1
- package/dist/node_modules/d3-ease/src/cubic.js +0 -7
- package/dist/node_modules/d3-ease/src/cubic.js.map +0 -1
- package/dist/node_modules/d3-ease/src/linear.cjs +0 -2
- package/dist/node_modules/d3-ease/src/linear.cjs.map +0 -1
- package/dist/node_modules/d3-ease/src/linear.js +0 -5
- package/dist/node_modules/d3-ease/src/linear.js.map +0 -1
- package/dist/node_modules/d3-format/src/defaultLocale.cjs +0 -2
- package/dist/node_modules/d3-format/src/defaultLocale.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/defaultLocale.js +0 -16
- package/dist/node_modules/d3-format/src/defaultLocale.js.map +0 -1
- package/dist/node_modules/d3-format/src/exponent.cjs +0 -2
- package/dist/node_modules/d3-format/src/exponent.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/exponent.js +0 -8
- package/dist/node_modules/d3-format/src/exponent.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatDecimal.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatDecimal.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatDecimal.js +0 -16
- package/dist/node_modules/d3-format/src/formatDecimal.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatGroup.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatGroup.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatGroup.js +0 -11
- package/dist/node_modules/d3-format/src/formatGroup.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatNumerals.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatNumerals.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatNumerals.js +0 -11
- package/dist/node_modules/d3-format/src/formatNumerals.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatPrefixAuto.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatPrefixAuto.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +0 -13
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatRounded.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatRounded.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatRounded.js +0 -11
- package/dist/node_modules/d3-format/src/formatRounded.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatSpecifier.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatSpecifier.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatSpecifier.js +0 -29
- package/dist/node_modules/d3-format/src/formatSpecifier.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatTrim.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatTrim.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatTrim.js +0 -20
- package/dist/node_modules/d3-format/src/formatTrim.js.map +0 -1
- package/dist/node_modules/d3-format/src/formatTypes.cjs +0 -2
- package/dist/node_modules/d3-format/src/formatTypes.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/formatTypes.js +0 -22
- package/dist/node_modules/d3-format/src/formatTypes.js.map +0 -1
- package/dist/node_modules/d3-format/src/identity.cjs +0 -2
- package/dist/node_modules/d3-format/src/identity.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/identity.js +0 -7
- package/dist/node_modules/d3-format/src/identity.js.map +0 -1
- package/dist/node_modules/d3-format/src/locale.cjs +0 -2
- package/dist/node_modules/d3-format/src/locale.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/locale.js +0 -69
- package/dist/node_modules/d3-format/src/locale.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionFixed.cjs +0 -2
- package/dist/node_modules/d3-format/src/precisionFixed.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/precisionFixed.js +0 -8
- package/dist/node_modules/d3-format/src/precisionFixed.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionPrefix.cjs +0 -2
- package/dist/node_modules/d3-format/src/precisionPrefix.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/precisionPrefix.js +0 -8
- package/dist/node_modules/d3-format/src/precisionPrefix.js.map +0 -1
- package/dist/node_modules/d3-format/src/precisionRound.cjs +0 -2
- package/dist/node_modules/d3-format/src/precisionRound.cjs.map +0 -1
- package/dist/node_modules/d3-format/src/precisionRound.js +0 -8
- package/dist/node_modules/d3-format/src/precisionRound.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/array.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/array.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/array.js +0 -14
- package/dist/node_modules/d3-interpolate/src/array.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/color.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/color.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/color.js +0 -25
- package/dist/node_modules/d3-interpolate/src/color.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/constant.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/constant.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/constant.js +0 -5
- package/dist/node_modules/d3-interpolate/src/constant.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/date.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/date.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/date.js +0 -10
- package/dist/node_modules/d3-interpolate/src/date.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/number.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/number.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/number.js +0 -9
- package/dist/node_modules/d3-interpolate/src/number.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/numberArray.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/numberArray.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/numberArray.js +0 -16
- package/dist/node_modules/d3-interpolate/src/numberArray.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/object.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/object.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/object.js +0 -15
- package/dist/node_modules/d3-interpolate/src/object.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/piecewise.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/piecewise.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/piecewise.js +0 -13
- package/dist/node_modules/d3-interpolate/src/piecewise.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/rgb.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/rgb.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/rgb.js +0 -16
- package/dist/node_modules/d3-interpolate/src/rgb.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/round.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/round.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/round.js +0 -9
- package/dist/node_modules/d3-interpolate/src/round.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/string.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/string.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/string.js +0 -25
- package/dist/node_modules/d3-interpolate/src/string.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/decompose.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/transform/decompose.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +0 -24
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/index.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/transform/index.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/index.js +0 -38
- package/dist/node_modules/d3-interpolate/src/transform/index.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/parse.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/transform/parse.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +0 -14
- package/dist/node_modules/d3-interpolate/src/transform/parse.js.map +0 -1
- package/dist/node_modules/d3-interpolate/src/value.cjs +0 -2
- package/dist/node_modules/d3-interpolate/src/value.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate/src/value.js +0 -17
- package/dist/node_modules/d3-interpolate/src/value.js.map +0 -1
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.cjs +0 -3
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.cjs.map +0 -1
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.js +0 -302
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.js.map +0 -1
- package/dist/node_modules/d3-path/src/path.cjs +0 -2
- package/dist/node_modules/d3-path/src/path.cjs.map +0 -1
- package/dist/node_modules/d3-path/src/path.js +0 -65
- package/dist/node_modules/d3-path/src/path.js.map +0 -1
- package/dist/node_modules/d3-scale/src/band.cjs +0 -2
- package/dist/node_modules/d3-scale/src/band.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/band.js +0 -52
- package/dist/node_modules/d3-scale/src/band.js.map +0 -1
- package/dist/node_modules/d3-scale/src/constant.cjs +0 -2
- package/dist/node_modules/d3-scale/src/constant.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/constant.js +0 -9
- package/dist/node_modules/d3-scale/src/constant.js.map +0 -1
- package/dist/node_modules/d3-scale/src/continuous.cjs +0 -2
- package/dist/node_modules/d3-scale/src/continuous.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/continuous.js +0 -76
- package/dist/node_modules/d3-scale/src/continuous.js.map +0 -1
- package/dist/node_modules/d3-scale/src/diverging.cjs +0 -2
- package/dist/node_modules/d3-scale/src/diverging.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/diverging.js +0 -41
- package/dist/node_modules/d3-scale/src/diverging.js.map +0 -1
- package/dist/node_modules/d3-scale/src/identity.cjs +0 -2
- package/dist/node_modules/d3-scale/src/identity.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/identity.js +0 -19
- package/dist/node_modules/d3-scale/src/identity.js.map +0 -1
- package/dist/node_modules/d3-scale/src/init.cjs +0 -2
- package/dist/node_modules/d3-scale/src/init.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/init.js +0 -33
- package/dist/node_modules/d3-scale/src/init.js.map +0 -1
- package/dist/node_modules/d3-scale/src/linear.cjs +0 -2
- package/dist/node_modules/d3-scale/src/linear.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/linear.js +0 -40
- package/dist/node_modules/d3-scale/src/linear.js.map +0 -1
- package/dist/node_modules/d3-scale/src/log.cjs +0 -2
- package/dist/node_modules/d3-scale/src/log.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/log.js +0 -87
- package/dist/node_modules/d3-scale/src/log.js.map +0 -1
- package/dist/node_modules/d3-scale/src/nice.cjs +0 -2
- package/dist/node_modules/d3-scale/src/nice.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/nice.js +0 -9
- package/dist/node_modules/d3-scale/src/nice.js.map +0 -1
- package/dist/node_modules/d3-scale/src/number.cjs +0 -2
- package/dist/node_modules/d3-scale/src/number.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/number.js +0 -7
- package/dist/node_modules/d3-scale/src/number.js.map +0 -1
- package/dist/node_modules/d3-scale/src/ordinal.cjs +0 -2
- package/dist/node_modules/d3-scale/src/ordinal.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/ordinal.js +0 -32
- package/dist/node_modules/d3-scale/src/ordinal.js.map +0 -1
- package/dist/node_modules/d3-scale/src/pow.cjs +0 -2
- package/dist/node_modules/d3-scale/src/pow.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/pow.js +0 -38
- package/dist/node_modules/d3-scale/src/pow.js.map +0 -1
- package/dist/node_modules/d3-scale/src/quantile.cjs +0 -2
- package/dist/node_modules/d3-scale/src/quantile.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/quantile.js +0 -39
- package/dist/node_modules/d3-scale/src/quantile.js.map +0 -1
- package/dist/node_modules/d3-scale/src/quantize.cjs +0 -2
- package/dist/node_modules/d3-scale/src/quantize.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/quantize.js +0 -32
- package/dist/node_modules/d3-scale/src/quantize.js.map +0 -1
- package/dist/node_modules/d3-scale/src/sequential.cjs +0 -2
- package/dist/node_modules/d3-scale/src/sequential.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/sequential.js +0 -43
- package/dist/node_modules/d3-scale/src/sequential.js.map +0 -1
- package/dist/node_modules/d3-scale/src/symlog.cjs +0 -2
- package/dist/node_modules/d3-scale/src/symlog.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/symlog.js +0 -30
- package/dist/node_modules/d3-scale/src/symlog.js.map +0 -1
- package/dist/node_modules/d3-scale/src/threshold.cjs +0 -2
- package/dist/node_modules/d3-scale/src/threshold.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/threshold.js +0 -24
- package/dist/node_modules/d3-scale/src/threshold.js.map +0 -1
- package/dist/node_modules/d3-scale/src/tickFormat.cjs +0 -2
- package/dist/node_modules/d3-scale/src/tickFormat.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/tickFormat.js +0 -33
- package/dist/node_modules/d3-scale/src/tickFormat.js.map +0 -1
- package/dist/node_modules/d3-scale/src/time.cjs +0 -2
- package/dist/node_modules/d3-scale/src/time.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/time.js +0 -47
- package/dist/node_modules/d3-scale/src/time.js.map +0 -1
- package/dist/node_modules/d3-scale/src/utcTime.cjs +0 -2
- package/dist/node_modules/d3-scale/src/utcTime.cjs.map +0 -1
- package/dist/node_modules/d3-scale/src/utcTime.js +0 -18
- package/dist/node_modules/d3-scale/src/utcTime.js.map +0 -1
- package/dist/node_modules/d3-selection/src/array.cjs +0 -2
- package/dist/node_modules/d3-selection/src/array.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/array.js +0 -7
- package/dist/node_modules/d3-selection/src/array.js.map +0 -1
- package/dist/node_modules/d3-selection/src/constant.cjs +0 -2
- package/dist/node_modules/d3-selection/src/constant.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/constant.js +0 -9
- package/dist/node_modules/d3-selection/src/constant.js.map +0 -1
- package/dist/node_modules/d3-selection/src/creator.cjs +0 -2
- package/dist/node_modules/d3-selection/src/creator.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/creator.js +0 -21
- package/dist/node_modules/d3-selection/src/creator.js.map +0 -1
- package/dist/node_modules/d3-selection/src/matcher.cjs +0 -2
- package/dist/node_modules/d3-selection/src/matcher.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/matcher.js +0 -15
- package/dist/node_modules/d3-selection/src/matcher.js.map +0 -1
- package/dist/node_modules/d3-selection/src/namespace.cjs +0 -2
- package/dist/node_modules/d3-selection/src/namespace.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/namespace.js +0 -9
- package/dist/node_modules/d3-selection/src/namespace.js.map +0 -1
- package/dist/node_modules/d3-selection/src/namespaces.cjs +0 -2
- package/dist/node_modules/d3-selection/src/namespaces.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/namespaces.js +0 -13
- package/dist/node_modules/d3-selection/src/namespaces.js.map +0 -1
- package/dist/node_modules/d3-selection/src/pointer.cjs +0 -2
- package/dist/node_modules/d3-selection/src/pointer.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/pointer.js +0 -19
- package/dist/node_modules/d3-selection/src/pointer.js.map +0 -1
- package/dist/node_modules/d3-selection/src/select.cjs +0 -2
- package/dist/node_modules/d3-selection/src/select.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/select.js +0 -8
- package/dist/node_modules/d3-selection/src/select.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/append.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/append.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/append.js +0 -11
- package/dist/node_modules/d3-selection/src/selection/append.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/attr.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/attr.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/attr.js +0 -45
- package/dist/node_modules/d3-selection/src/selection/attr.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/call.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/call.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/call.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/call.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/classed.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/classed.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/classed.js +0 -55
- package/dist/node_modules/d3-selection/src/selection/classed.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/clone.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/clone.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/clone.js +0 -15
- package/dist/node_modules/d3-selection/src/selection/clone.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/data.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/data.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/data.js +0 -43
- package/dist/node_modules/d3-selection/src/selection/data.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/datum.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/datum.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/datum.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/datum.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/dispatch.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/dispatch.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +0 -22
- package/dist/node_modules/d3-selection/src/selection/dispatch.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/each.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/each.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/each.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/each.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/empty.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/empty.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/empty.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/empty.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/enter.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/enter.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/enter.js +0 -28
- package/dist/node_modules/d3-selection/src/selection/enter.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/exit.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/exit.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/exit.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/exit.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/filter.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/filter.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/filter.js +0 -13
- package/dist/node_modules/d3-selection/src/selection/filter.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/html.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/html.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/html.js +0 -21
- package/dist/node_modules/d3-selection/src/selection/html.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/index.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/index.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/index.js +0 -88
- package/dist/node_modules/d3-selection/src/selection/index.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/insert.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/insert.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/insert.js +0 -15
- package/dist/node_modules/d3-selection/src/selection/insert.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/iterator.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/iterator.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/iterator.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/iterator.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/join.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/join.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/join.js +0 -8
- package/dist/node_modules/d3-selection/src/selection/join.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/lower.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/lower.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/lower.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/lower.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/merge.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/merge.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/merge.js +0 -13
- package/dist/node_modules/d3-selection/src/selection/merge.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/node.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/node.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/node.js +0 -12
- package/dist/node_modules/d3-selection/src/selection/node.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/nodes.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/nodes.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/nodes.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/nodes.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/on.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/on.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/on.js +0 -53
- package/dist/node_modules/d3-selection/src/selection/on.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/order.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/order.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/order.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/order.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/property.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/property.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/property.js +0 -23
- package/dist/node_modules/d3-selection/src/selection/property.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/raise.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/raise.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/raise.js +0 -10
- package/dist/node_modules/d3-selection/src/selection/raise.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/remove.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/remove.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/remove.js +0 -11
- package/dist/node_modules/d3-selection/src/selection/remove.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/select.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/select.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/select.js +0 -13
- package/dist/node_modules/d3-selection/src/selection/select.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectAll.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/selectAll.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +0 -19
- package/dist/node_modules/d3-selection/src/selection/selectAll.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChild.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/selectChild.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +0 -17
- package/dist/node_modules/d3-selection/src/selection/selectChild.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChildren.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/selectChildren.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +0 -17
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/size.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/size.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/size.js +0 -9
- package/dist/node_modules/d3-selection/src/selection/size.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/sort.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/sort.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/sort.js +0 -20
- package/dist/node_modules/d3-selection/src/selection/sort.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/sparse.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/sparse.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/sparse.js +0 -7
- package/dist/node_modules/d3-selection/src/selection/sparse.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/style.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/style.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/style.js +0 -28
- package/dist/node_modules/d3-selection/src/selection/style.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/text.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selection/text.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selection/text.js +0 -21
- package/dist/node_modules/d3-selection/src/selection/text.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selector.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selector.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selector.js +0 -11
- package/dist/node_modules/d3-selection/src/selector.js.map +0 -1
- package/dist/node_modules/d3-selection/src/selectorAll.cjs +0 -2
- package/dist/node_modules/d3-selection/src/selectorAll.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/selectorAll.js +0 -12
- package/dist/node_modules/d3-selection/src/selectorAll.js.map +0 -1
- package/dist/node_modules/d3-selection/src/sourceEvent.cjs +0 -2
- package/dist/node_modules/d3-selection/src/sourceEvent.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/sourceEvent.js +0 -9
- package/dist/node_modules/d3-selection/src/sourceEvent.js.map +0 -1
- package/dist/node_modules/d3-selection/src/window.cjs +0 -2
- package/dist/node_modules/d3-selection/src/window.cjs.map +0 -1
- package/dist/node_modules/d3-selection/src/window.js +0 -7
- package/dist/node_modules/d3-selection/src/window.js.map +0 -1
- package/dist/node_modules/d3-shape/src/arc.cjs +0 -2
- package/dist/node_modules/d3-shape/src/arc.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/arc.js +0 -86
- package/dist/node_modules/d3-shape/src/arc.js.map +0 -1
- package/dist/node_modules/d3-shape/src/area.cjs +0 -2
- package/dist/node_modules/d3-shape/src/area.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/area.js +0 -57
- package/dist/node_modules/d3-shape/src/area.js.map +0 -1
- package/dist/node_modules/d3-shape/src/array.cjs +0 -2
- package/dist/node_modules/d3-shape/src/array.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/array.js +0 -7
- package/dist/node_modules/d3-shape/src/array.js.map +0 -1
- package/dist/node_modules/d3-shape/src/constant.cjs +0 -2
- package/dist/node_modules/d3-shape/src/constant.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/constant.js +0 -9
- package/dist/node_modules/d3-shape/src/constant.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basis.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/basis.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basis.js +0 -61
- package/dist/node_modules/d3-shape/src/curve/basis.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisClosed.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/basisClosed.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +0 -52
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisOpen.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/basisOpen.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +0 -47
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/bundle.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/bundle.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/bundle.js +0 -34
- package/dist/node_modules/d3-shape/src/curve/bundle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/cardinal.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +0 -66
- package/dist/node_modules/d3-shape/src/curve/cardinal.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +0 -58
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +0 -51
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRom.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/catmullRom.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +0 -73
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +0 -62
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +0 -55
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linear.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/linear.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linear.js +0 -37
- package/dist/node_modules/d3-shape/src/curve/linear.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linearClosed.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/linearClosed.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +0 -24
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/monotone.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/monotone.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/monotone.js +0 -94
- package/dist/node_modules/d3-shape/src/curve/monotone.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/natural.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/natural.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/natural.js +0 -42
- package/dist/node_modules/d3-shape/src/curve/natural.js.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/step.cjs +0 -2
- package/dist/node_modules/d3-shape/src/curve/step.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/curve/step.js +0 -52
- package/dist/node_modules/d3-shape/src/curve/step.js.map +0 -1
- package/dist/node_modules/d3-shape/src/descending.cjs +0 -2
- package/dist/node_modules/d3-shape/src/descending.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/descending.js +0 -7
- package/dist/node_modules/d3-shape/src/descending.js.map +0 -1
- package/dist/node_modules/d3-shape/src/identity.cjs +0 -2
- package/dist/node_modules/d3-shape/src/identity.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/identity.js +0 -7
- package/dist/node_modules/d3-shape/src/identity.js.map +0 -1
- package/dist/node_modules/d3-shape/src/line.cjs +0 -2
- package/dist/node_modules/d3-shape/src/line.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/line.js +0 -30
- package/dist/node_modules/d3-shape/src/line.js.map +0 -1
- package/dist/node_modules/d3-shape/src/math.cjs +0 -2
- package/dist/node_modules/d3-shape/src/math.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/math.js +0 -23
- package/dist/node_modules/d3-shape/src/math.js.map +0 -1
- package/dist/node_modules/d3-shape/src/noop.cjs +0 -2
- package/dist/node_modules/d3-shape/src/noop.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/noop.js +0 -6
- package/dist/node_modules/d3-shape/src/noop.js.map +0 -1
- package/dist/node_modules/d3-shape/src/path.cjs +0 -2
- package/dist/node_modules/d3-shape/src/path.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/path.js +0 -19
- package/dist/node_modules/d3-shape/src/path.js.map +0 -1
- package/dist/node_modules/d3-shape/src/pie.cjs +0 -2
- package/dist/node_modules/d3-shape/src/pie.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/pie.js +0 -44
- package/dist/node_modules/d3-shape/src/pie.js.map +0 -1
- package/dist/node_modules/d3-shape/src/point.cjs +0 -2
- package/dist/node_modules/d3-shape/src/point.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/point.js +0 -11
- package/dist/node_modules/d3-shape/src/point.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/circle.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/circle.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/circle.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/circle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/cross.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/cross.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/cross.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/cross.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/diamond.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/diamond.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/diamond.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/square.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/square.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/square.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/square.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/star.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/star.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/star.js +0 -16
- package/dist/node_modules/d3-shape/src/symbol/star.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/triangle.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/triangle.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/triangle.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/wye.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol/wye.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol/wye.js +0 -11
- package/dist/node_modules/d3-shape/src/symbol/wye.js.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol.cjs +0 -2
- package/dist/node_modules/d3-shape/src/symbol.cjs.map +0 -1
- package/dist/node_modules/d3-shape/src/symbol.js +0 -22
- package/dist/node_modules/d3-shape/src/symbol.js.map +0 -1
- package/dist/node_modules/d3-time/src/day.cjs +0 -2
- package/dist/node_modules/d3-time/src/day.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/day.js +0 -27
- package/dist/node_modules/d3-time/src/day.js.map +0 -1
- package/dist/node_modules/d3-time/src/duration.cjs +0 -2
- package/dist/node_modules/d3-time/src/duration.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/duration.js +0 -11
- package/dist/node_modules/d3-time/src/duration.js.map +0 -1
- package/dist/node_modules/d3-time/src/hour.cjs +0 -2
- package/dist/node_modules/d3-time/src/hour.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/hour.js +0 -19
- package/dist/node_modules/d3-time/src/hour.js.map +0 -1
- package/dist/node_modules/d3-time/src/interval.cjs +0 -2
- package/dist/node_modules/d3-time/src/interval.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/interval.js +0 -32
- package/dist/node_modules/d3-time/src/interval.js.map +0 -1
- package/dist/node_modules/d3-time/src/millisecond.cjs +0 -2
- package/dist/node_modules/d3-time/src/millisecond.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/millisecond.js +0 -15
- package/dist/node_modules/d3-time/src/millisecond.js.map +0 -1
- package/dist/node_modules/d3-time/src/minute.cjs +0 -2
- package/dist/node_modules/d3-time/src/minute.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/minute.js +0 -19
- package/dist/node_modules/d3-time/src/minute.js.map +0 -1
- package/dist/node_modules/d3-time/src/month.cjs +0 -2
- package/dist/node_modules/d3-time/src/month.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/month.js +0 -18
- package/dist/node_modules/d3-time/src/month.js.map +0 -1
- package/dist/node_modules/d3-time/src/second.cjs +0 -2
- package/dist/node_modules/d3-time/src/second.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/second.js +0 -12
- package/dist/node_modules/d3-time/src/second.js.map +0 -1
- package/dist/node_modules/d3-time/src/ticks.cjs +0 -2
- package/dist/node_modules/d3-time/src/ticks.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/ticks.js +0 -55
- package/dist/node_modules/d3-time/src/ticks.js.map +0 -1
- package/dist/node_modules/d3-time/src/week.cjs +0 -2
- package/dist/node_modules/d3-time/src/week.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/week.js +0 -49
- package/dist/node_modules/d3-time/src/week.js.map +0 -1
- package/dist/node_modules/d3-time/src/year.cjs +0 -2
- package/dist/node_modules/d3-time/src/year.cjs.map +0 -1
- package/dist/node_modules/d3-time/src/year.js +0 -28
- package/dist/node_modules/d3-time/src/year.js.map +0 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +0 -2
- package/dist/node_modules/d3-time-format/src/defaultLocale.cjs.map +0 -1
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +0 -21
- package/dist/node_modules/d3-time-format/src/defaultLocale.js.map +0 -1
- package/dist/node_modules/d3-time-format/src/locale.cjs +0 -2
- package/dist/node_modules/d3-time-format/src/locale.cjs.map +0 -1
- package/dist/node_modules/d3-time-format/src/locale.js +0 -479
- package/dist/node_modules/d3-time-format/src/locale.js.map +0 -1
- package/dist/node_modules/d3-timer/src/timeout.cjs +0 -2
- package/dist/node_modules/d3-timer/src/timeout.cjs.map +0 -1
- package/dist/node_modules/d3-timer/src/timeout.js +0 -11
- package/dist/node_modules/d3-timer/src/timeout.js.map +0 -1
- package/dist/node_modules/d3-timer/src/timer.cjs +0 -2
- package/dist/node_modules/d3-timer/src/timer.cjs.map +0 -1
- package/dist/node_modules/d3-timer/src/timer.js +0 -63
- package/dist/node_modules/d3-timer/src/timer.js.map +0 -1
- package/dist/node_modules/d3-transition/src/interrupt.cjs +0 -2
- package/dist/node_modules/d3-transition/src/interrupt.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/interrupt.js +0 -19
- package/dist/node_modules/d3-transition/src/interrupt.js.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/index.cjs +0 -2
- package/dist/node_modules/d3-transition/src/selection/index.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/index.js +0 -6
- package/dist/node_modules/d3-transition/src/selection/index.js.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/interrupt.cjs +0 -2
- package/dist/node_modules/d3-transition/src/selection/interrupt.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +0 -10
- package/dist/node_modules/d3-transition/src/selection/interrupt.js.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/transition.cjs +0 -2
- package/dist/node_modules/d3-transition/src/selection/transition.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/selection/transition.js +0 -29
- package/dist/node_modules/d3-transition/src/selection/transition.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/attr.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/attr.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/attr.js +0 -50
- package/dist/node_modules/d3-transition/src/transition/attr.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/attrTween.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/attrTween.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +0 -39
- package/dist/node_modules/d3-transition/src/transition/attrTween.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/delay.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/delay.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/delay.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/delay.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/duration.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/duration.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/duration.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/duration.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/ease.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/ease.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/ease.js +0 -15
- package/dist/node_modules/d3-transition/src/transition/ease.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/easeVarying.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/easeVarying.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +0 -16
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/end.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/end.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/end.js +0 -17
- package/dist/node_modules/d3-transition/src/transition/end.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/filter.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/filter.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/filter.js +0 -13
- package/dist/node_modules/d3-transition/src/transition/filter.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/index.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/index.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/index.js +0 -66
- package/dist/node_modules/d3-transition/src/transition/index.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/interpolate.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +0 -12
- package/dist/node_modules/d3-transition/src/transition/interpolate.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/merge.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/merge.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/merge.js +0 -14
- package/dist/node_modules/d3-transition/src/transition/merge.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/on.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/on.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/on.js +0 -22
- package/dist/node_modules/d3-transition/src/transition/on.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/remove.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/remove.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/remove.js +0 -14
- package/dist/node_modules/d3-transition/src/transition/remove.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/schedule.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/schedule.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/schedule.js +0 -86
- package/dist/node_modules/d3-transition/src/transition/schedule.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/select.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/select.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/select.js +0 -15
- package/dist/node_modules/d3-transition/src/transition/select.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/selectAll.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/selectAll.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/selectAll.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/selection.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/selection.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/selection.js +0 -9
- package/dist/node_modules/d3-transition/src/transition/selection.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/style.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/style.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/style.js +0 -46
- package/dist/node_modules/d3-transition/src/transition/style.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/styleTween.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/styleTween.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +0 -24
- package/dist/node_modules/d3-transition/src/transition/styleTween.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/text.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/text.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/text.js +0 -19
- package/dist/node_modules/d3-transition/src/transition/text.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/textTween.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/textTween.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/textTween.js +0 -24
- package/dist/node_modules/d3-transition/src/transition/textTween.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/transition.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/transition.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/transition.js +0 -20
- package/dist/node_modules/d3-transition/src/transition/transition.js.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/tween.cjs +0 -2
- package/dist/node_modules/d3-transition/src/transition/tween.cjs.map +0 -1
- package/dist/node_modules/d3-transition/src/transition/tween.js +0 -57
- package/dist/node_modules/d3-transition/src/transition/tween.js.map +0 -1
- package/dist/node_modules/internmap/src/index.cjs +0 -2
- package/dist/node_modules/internmap/src/index.cjs.map +0 -1
- package/dist/node_modules/internmap/src/index.js +0 -36
- package/dist/node_modules/internmap/src/index.js.map +0 -1
- package/dist/node_modules/parse-unit/index.cjs +0 -2
- package/dist/node_modules/parse-unit/index.cjs.map +0 -1
- package/dist/node_modules/parse-unit/index.js +0 -12
- package/dist/node_modules/parse-unit/index.js.map +0 -1
- package/dist/node_modules/striptags/src/striptags.cjs +0 -3
- package/dist/node_modules/striptags/src/striptags.cjs.map +0 -1
- package/dist/node_modules/striptags/src/striptags.js +0 -119
- package/dist/node_modules/striptags/src/striptags.js.map +0 -1
- package/dist/node_modules/stylis/src/Enum.cjs +0 -2
- package/dist/node_modules/stylis/src/Enum.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Enum.js +0 -13
- package/dist/node_modules/stylis/src/Enum.js.map +0 -1
- package/dist/node_modules/stylis/src/Middleware.cjs +0 -2
- package/dist/node_modules/stylis/src/Middleware.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Middleware.js +0 -19
- package/dist/node_modules/stylis/src/Middleware.js.map +0 -1
- package/dist/node_modules/stylis/src/Parser.cjs +0 -2
- package/dist/node_modules/stylis/src/Parser.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Parser.js +0 -132
- package/dist/node_modules/stylis/src/Parser.js.map +0 -1
- package/dist/node_modules/stylis/src/Serializer.cjs +0 -2
- package/dist/node_modules/stylis/src/Serializer.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Serializer.js +0 -28
- package/dist/node_modules/stylis/src/Serializer.js.map +0 -1
- package/dist/node_modules/stylis/src/Tokenizer.cjs +0 -2
- package/dist/node_modules/stylis/src/Tokenizer.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Tokenizer.js +0 -142
- package/dist/node_modules/stylis/src/Tokenizer.js.map +0 -1
- package/dist/node_modules/stylis/src/Utility.cjs +0 -2
- package/dist/node_modules/stylis/src/Utility.cjs.map +0 -1
- package/dist/node_modules/stylis/src/Utility.js +0 -51
- package/dist/node_modules/stylis/src/Utility.js.map +0 -1
- package/dist/node_modules/throttle-debounce/esm/index.cjs +0 -2
- package/dist/node_modules/throttle-debounce/esm/index.cjs.map +0 -1
- package/dist/node_modules/throttle-debounce/esm/index.js +0 -29
- package/dist/node_modules/throttle-debounce/esm/index.js.map +0 -1
- package/dist/node_modules/to-px/browser.cjs +0 -2
- package/dist/node_modules/to-px/browser.cjs.map +0 -1
- package/dist/node_modules/to-px/browser.js +0 -64
- package/dist/node_modules/to-px/browser.js.map +0 -1
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path.cjs","sources":["../../../../../node_modules/@unovis/ts/utils/path.js"],"sourcesContent":["import { range, min, max } from 'd3-array';\nimport { line, curveCardinal, curveCardinalClosed } from 'd3-shape';\nimport { clamp } from './data.js';\n\n/*\r\n * Generate SVG path for rectangle with rounded corners\r\n *\r\n * @param {Object} props - Configuration object\r\n * @param {Number} props.x - Rect top left X coordinate\r\n * @param {Number} props.y - Rect top left Y coordinate\r\n * @param {Number} props.w - Rect width\r\n * @param {Number} props.h - Rect height\r\n * @param {Bool} [props.tl=false] - Round top left corner\r\n * @param {Bool} [props.tr=false] - Round top right corner\r\n * @param {Bool} [props.bl=false] - Round bottom left corner\r\n * @param {Bool} [props.br=false] - Round bottom right corner\r\n * @param {Number} [props.r=0] - Corner Radius\r\n * @return {String} Path string for the `d` attribute\r\n */\r\nfunction roundedRectPath({ x, y, w, h, tl = false, tr = false, bl = false, br = false, r = 0, }) {\r\n let path;\r\n path = `M${x + r},${y}h${w - 2 * r}`;\r\n let roundedR = tr ? r : 0;\r\n let angularR = tr ? 0 : r;\r\n path += `a${roundedR},${roundedR} 0 0 1 ${roundedR},${roundedR}`;\r\n path += `h${angularR}v${angularR}`;\r\n path += `v${h - 2 * r}`;\r\n roundedR = br ? r : 0;\r\n angularR = br ? 0 : r;\r\n path += `a${roundedR},${roundedR} 0 0 1 ${-roundedR},${roundedR}`;\r\n path += `v${angularR}h${-angularR}`;\r\n path += `h${2 * r - w}`;\r\n roundedR = bl ? r : 0;\r\n angularR = bl ? 0 : r;\r\n path += `a${roundedR},${roundedR} 0 0 1 ${-roundedR},${-roundedR}`;\r\n path += `h${-angularR}v${-angularR}`;\r\n path += `v${2 * r - h}`;\r\n roundedR = tl ? r : 0;\r\n angularR = tl ? 0 : r;\r\n path += `a${roundedR},${roundedR} 0 0 1 ${roundedR},${-roundedR}`;\r\n path += `v${-angularR}h${angularR}`;\r\n path += 'z';\r\n return path;\r\n}\r\nfunction polygon(size, n = 6, endAngle = 2 * Math.PI, open = false) {\r\n const r = n === 4 ? Math.sqrt(0.5) * size : size / 3.6 * 2;\r\n const deltaAngle = n === 4 ? Math.PI / 4 : 0; // rotate to 45 grads if shape is a rectangle\r\n const shiftedEndAngle = endAngle - deltaAngle;\r\n const completion = (shiftedEndAngle < 0 ? endAngle : shiftedEndAngle) / (2 * Math.PI);\r\n const nSegments = Math.ceil(n * completion);\r\n const centerAngle = 1 / n * Math.PI * 2; // /\\\r\n const baseAngle = (Math.PI - centerAngle) / 2; // /__\\\r\n const data = range(nSegments + (shiftedEndAngle >= 0 ? 1 : 0))\r\n .map((d, i) => {\r\n const isLastSegment = i === nSegments || (nSegments === 1 && shiftedEndAngle < 0);\r\n let mult = isLastSegment ? ((completion * n) % 1 || 1) : 1; // Handle partial shape\r\n if (shiftedEndAngle < 0) {\r\n mult += 0.5;\r\n }\r\n const angle = centerAngle * (i - 1 + mult);\r\n let radius;\r\n if (isLastSegment) {\r\n const thirdAngle = Math.PI - baseAngle - centerAngle * mult;\r\n radius = r * Math.sin(baseAngle) / Math.sin(thirdAngle); // Law of sines\r\n }\r\n else {\r\n radius = r;\r\n }\r\n return {\r\n x: Math.sin(angle + deltaAngle) * radius,\r\n y: -Math.cos(angle + deltaAngle) * radius,\r\n };\r\n });\r\n if (n === 4) {\r\n const angle = centerAngle * (-1 + 0.5);\r\n const thirdAngle = Math.PI * 0.5;\r\n const radius = r * Math.sin(baseAngle) / Math.sin(thirdAngle); // Law of sines\r\n data.unshift({\r\n x: Math.sin(angle + deltaAngle) * radius,\r\n y: -Math.cos(angle + deltaAngle) * radius,\r\n });\r\n }\r\n const path = line()\r\n /* eslint-disable-next-line dot-notation */\r\n .x(d => d['x'])\r\n /* eslint-disable-next-line dot-notation */\r\n .y(d => d['y'])\r\n .curve((open ? curveCardinal : curveCardinalClosed).tension(0.95));\r\n return path(data);\r\n}\r\nfunction circlePath(cx, cy, r) {\r\n return `\n M ${cx} ${cy}\n m ${-r}, 0\n a ${r},${r} 0 1,1 ${r * 2},0\n a ${r},${r} 0 1,1 ${-r * 2},0`;\r\n}\r\nfunction scoreRectPath({ x, y, w, h, r = 0, score = 1 }) {\r\n let path;\r\n const side = 1 / 4;\r\n const halfSide = side / 2;\r\n let part = score;\r\n // 8 1\r\n // - -\r\n // 7 | | 2\r\n // 6 | | 3\r\n // - -\r\n // 5 4\r\n // 1\r\n const hLength = min([w * 0.5 * (part / halfSide) + r, w * 0.5 - r]);\r\n path = `M${x + w * 0.5},${y}h${hLength}`;\r\n // 2, 3\r\n part = score - 1 / 8;\r\n if (part > 0) {\r\n path += `a${r},${r} 0 0 1 ${r},${r}`;\r\n const vLength = clamp(h * (part / side) - r, 0, h - 2 * r);\r\n path += `v${vLength}`;\r\n }\r\n // 4, 5\r\n part = score - 3 / 8;\r\n if (part > 0) {\r\n path += `a${r},${r} 0 0 1 ${-r},${r}`;\r\n const hLength = clamp(r - w * (part / side), 2 * r - w, 0);\r\n path += `h${hLength}`;\r\n }\r\n // 6, 7\r\n part = score - 5 / 8;\r\n if (part > 0) {\r\n path += `a${r},${r} 0 0 1 ${-r},${-r}`;\r\n const vLength = clamp(r - h * (part / side), 2 * r - h, 0);\r\n path += `v${vLength}`;\r\n }\r\n // 8\r\n part = score - 7 / 8;\r\n if (part > 0) {\r\n path += `a${r},${r} 0 0 1 ${r},${-r}`;\r\n const hLength = max([w * 0.5 * (part / halfSide) - r, 0]);\r\n path += `h${hLength}`;\r\n }\r\n return path;\r\n}\r\n/*\r\n * Replace L path command with arc with specified radius\r\n * @param {String} path - the path string\r\n * @param {number} r - radius in pixels\r\n * @returns {String} new path string\r\n */\r\nfunction convertLineToArc(path, r) {\r\n return path.toString().replace(/L(?<x>-?\\d*\\.?\\d*),(?<y>-?\\d+\\.?\\d*)/gm, (_, x, y) => `A ${r} ${r} 0 0 0 ${x} ${y}`);\r\n}\n\nexport { circlePath, convertLineToArc, polygon, roundedRectPath, scoreRectPath };\n//# sourceMappingURL=path.js.map\n"],"names":["roundedRectPath","x","y","w","h","tl","tr","bl","br","r","path","roundedR","angularR"],"mappings":"gFAmBA,SAASA,EAAgB,CAAE,EAAAC,EAAG,EAAAC,EAAG,EAAAC,EAAG,EAAAC,EAAG,GAAAC,EAAK,GAAO,GAAAC,EAAK,GAAO,GAAAC,EAAK,GAAO,GAAAC,EAAK,GAAO,EAAAC,EAAI,GAAM,CAC7F,IAAIC,EACJA,EAAO,IAAIT,EAAIQ,CAAC,IAAIP,CAAC,IAAIC,EAAI,EAAIM,CAAC,GAClC,IAAIE,EAAWL,EAAKG,EAAI,EACpBG,EAAWN,EAAK,EAAIG,EACxB,OAAAC,GAAQ,IAAIC,CAAQ,IAAIA,CAAQ,UAAUA,CAAQ,IAAIA,CAAQ,GAC9DD,GAAQ,IAAIE,CAAQ,IAAIA,CAAQ,GAChCF,GAAQ,IAAIN,EAAI,EAAIK,CAAC,GACrBE,EAAWH,EAAKC,EAAI,EACpBG,EAAWJ,EAAK,EAAIC,EACpBC,GAAQ,IAAIC,CAAQ,IAAIA,CAAQ,UAAU,CAACA,CAAQ,IAAIA,CAAQ,GAC/DD,GAAQ,IAAIE,CAAQ,IAAI,CAACA,CAAQ,GACjCF,GAAQ,IAAI,EAAID,EAAIN,CAAC,GACrBQ,EAAWJ,EAAKE,EAAI,EACpBG,EAAWL,EAAK,EAAIE,EACpBC,GAAQ,IAAIC,CAAQ,IAAIA,CAAQ,UAAU,CAACA,CAAQ,IAAI,CAACA,CAAQ,GAChED,GAAQ,IAAI,CAACE,CAAQ,IAAI,CAACA,CAAQ,GAClCF,GAAQ,IAAI,EAAID,EAAIL,CAAC,GACrBO,EAAWN,EAAKI,EAAI,EACpBG,EAAWP,EAAK,EAAII,EACpBC,GAAQ,IAAIC,CAAQ,IAAIA,CAAQ,UAAUA,CAAQ,IAAI,CAACA,CAAQ,GAC/DD,GAAQ,IAAI,CAACE,CAAQ,IAAIA,CAAQ,GACjCF,GAAQ,IACDA,CACX","x_google_ignoreList":[0]}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
function s({ x: d, y: o, w: t, h: l, tl: n = !1, tr: v = !1, bl: f = !1, br: u = !1, r: e = 0 }) {
|
|
2
|
-
let a;
|
|
3
|
-
a = `M${d + e},${o}h${t - 2 * e}`;
|
|
4
|
-
let $ = v ? e : 0, h = v ? 0 : e;
|
|
5
|
-
return a += `a${$},${$} 0 0 1 ${$},${$}`, a += `h${h}v${h}`, a += `v${l - 2 * e}`, $ = u ? e : 0, h = u ? 0 : e, a += `a${$},${$} 0 0 1 ${-$},${$}`, a += `v${h}h${-h}`, a += `h${2 * e - t}`, $ = f ? e : 0, h = f ? 0 : e, a += `a${$},${$} 0 0 1 ${-$},${-$}`, a += `h${-h}v${-h}`, a += `v${2 * e - l}`, $ = n ? e : 0, h = n ? 0 : e, a += `a${$},${$} 0 0 1 ${$},${-$}`, a += `v${-h}h${h}`, a += "z", a;
|
|
6
|
-
}
|
|
7
|
-
export {
|
|
8
|
-
s as roundedRectPath
|
|
9
|
-
};
|
|
10
|
-
//# sourceMappingURL=path.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"path.js","sources":["../../../../../node_modules/@unovis/ts/utils/path.js"],"sourcesContent":["import { range, min, max } from 'd3-array';\nimport { line, curveCardinal, curveCardinalClosed } from 'd3-shape';\nimport { clamp } from './data.js';\n\n/*\r\n * Generate SVG path for rectangle with rounded corners\r\n *\r\n * @param {Object} props - Configuration object\r\n * @param {Number} props.x - Rect top left X coordinate\r\n * @param {Number} props.y - Rect top left Y coordinate\r\n * @param {Number} props.w - Rect width\r\n * @param {Number} props.h - Rect height\r\n * @param {Bool} [props.tl=false] - Round top left corner\r\n * @param {Bool} [props.tr=false] - Round top right corner\r\n * @param {Bool} [props.bl=false] - Round bottom left corner\r\n * @param {Bool} [props.br=false] - Round bottom right corner\r\n * @param {Number} [props.r=0] - Corner Radius\r\n * @return {String} Path string for the `d` attribute\r\n */\r\nfunction roundedRectPath({ x, y, w, h, tl = false, tr = false, bl = false, br = false, r = 0, }) {\r\n let path;\r\n path = `M${x + r},${y}h${w - 2 * r}`;\r\n let roundedR = tr ? r : 0;\r\n let angularR = tr ? 0 : r;\r\n path += `a${roundedR},${roundedR} 0 0 1 ${roundedR},${roundedR}`;\r\n path += `h${angularR}v${angularR}`;\r\n path += `v${h - 2 * r}`;\r\n roundedR = br ? r : 0;\r\n angularR = br ? 0 : r;\r\n path += `a${roundedR},${roundedR} 0 0 1 ${-roundedR},${roundedR}`;\r\n path += `v${angularR}h${-angularR}`;\r\n path += `h${2 * r - w}`;\r\n roundedR = bl ? r : 0;\r\n angularR = bl ? 0 : r;\r\n path += `a${roundedR},${roundedR} 0 0 1 ${-roundedR},${-roundedR}`;\r\n path += `h${-angularR}v${-angularR}`;\r\n path += `v${2 * r - h}`;\r\n roundedR = tl ? r : 0;\r\n angularR = tl ? 0 : r;\r\n path += `a${roundedR},${roundedR} 0 0 1 ${roundedR},${-roundedR}`;\r\n path += `v${-angularR}h${angularR}`;\r\n path += 'z';\r\n return path;\r\n}\r\nfunction polygon(size, n = 6, endAngle = 2 * Math.PI, open = false) {\r\n const r = n === 4 ? Math.sqrt(0.5) * size : size / 3.6 * 2;\r\n const deltaAngle = n === 4 ? Math.PI / 4 : 0; // rotate to 45 grads if shape is a rectangle\r\n const shiftedEndAngle = endAngle - deltaAngle;\r\n const completion = (shiftedEndAngle < 0 ? endAngle : shiftedEndAngle) / (2 * Math.PI);\r\n const nSegments = Math.ceil(n * completion);\r\n const centerAngle = 1 / n * Math.PI * 2; // /\\\r\n const baseAngle = (Math.PI - centerAngle) / 2; // /__\\\r\n const data = range(nSegments + (shiftedEndAngle >= 0 ? 1 : 0))\r\n .map((d, i) => {\r\n const isLastSegment = i === nSegments || (nSegments === 1 && shiftedEndAngle < 0);\r\n let mult = isLastSegment ? ((completion * n) % 1 || 1) : 1; // Handle partial shape\r\n if (shiftedEndAngle < 0) {\r\n mult += 0.5;\r\n }\r\n const angle = centerAngle * (i - 1 + mult);\r\n let radius;\r\n if (isLastSegment) {\r\n const thirdAngle = Math.PI - baseAngle - centerAngle * mult;\r\n radius = r * Math.sin(baseAngle) / Math.sin(thirdAngle); // Law of sines\r\n }\r\n else {\r\n radius = r;\r\n }\r\n return {\r\n x: Math.sin(angle + deltaAngle) * radius,\r\n y: -Math.cos(angle + deltaAngle) * radius,\r\n };\r\n });\r\n if (n === 4) {\r\n const angle = centerAngle * (-1 + 0.5);\r\n const thirdAngle = Math.PI * 0.5;\r\n const radius = r * Math.sin(baseAngle) / Math.sin(thirdAngle); // Law of sines\r\n data.unshift({\r\n x: Math.sin(angle + deltaAngle) * radius,\r\n y: -Math.cos(angle + deltaAngle) * radius,\r\n });\r\n }\r\n const path = line()\r\n /* eslint-disable-next-line dot-notation */\r\n .x(d => d['x'])\r\n /* eslint-disable-next-line dot-notation */\r\n .y(d => d['y'])\r\n .curve((open ? curveCardinal : curveCardinalClosed).tension(0.95));\r\n return path(data);\r\n}\r\nfunction circlePath(cx, cy, r) {\r\n return `\n M ${cx} ${cy}\n m ${-r}, 0\n a ${r},${r} 0 1,1 ${r * 2},0\n a ${r},${r} 0 1,1 ${-r * 2},0`;\r\n}\r\nfunction scoreRectPath({ x, y, w, h, r = 0, score = 1 }) {\r\n let path;\r\n const side = 1 / 4;\r\n const halfSide = side / 2;\r\n let part = score;\r\n // 8 1\r\n // - -\r\n // 7 | | 2\r\n // 6 | | 3\r\n // - -\r\n // 5 4\r\n // 1\r\n const hLength = min([w * 0.5 * (part / halfSide) + r, w * 0.5 - r]);\r\n path = `M${x + w * 0.5},${y}h${hLength}`;\r\n // 2, 3\r\n part = score - 1 / 8;\r\n if (part > 0) {\r\n path += `a${r},${r} 0 0 1 ${r},${r}`;\r\n const vLength = clamp(h * (part / side) - r, 0, h - 2 * r);\r\n path += `v${vLength}`;\r\n }\r\n // 4, 5\r\n part = score - 3 / 8;\r\n if (part > 0) {\r\n path += `a${r},${r} 0 0 1 ${-r},${r}`;\r\n const hLength = clamp(r - w * (part / side), 2 * r - w, 0);\r\n path += `h${hLength}`;\r\n }\r\n // 6, 7\r\n part = score - 5 / 8;\r\n if (part > 0) {\r\n path += `a${r},${r} 0 0 1 ${-r},${-r}`;\r\n const vLength = clamp(r - h * (part / side), 2 * r - h, 0);\r\n path += `v${vLength}`;\r\n }\r\n // 8\r\n part = score - 7 / 8;\r\n if (part > 0) {\r\n path += `a${r},${r} 0 0 1 ${r},${-r}`;\r\n const hLength = max([w * 0.5 * (part / halfSide) - r, 0]);\r\n path += `h${hLength}`;\r\n }\r\n return path;\r\n}\r\n/*\r\n * Replace L path command with arc with specified radius\r\n * @param {String} path - the path string\r\n * @param {number} r - radius in pixels\r\n * @returns {String} new path string\r\n */\r\nfunction convertLineToArc(path, r) {\r\n return path.toString().replace(/L(?<x>-?\\d*\\.?\\d*),(?<y>-?\\d+\\.?\\d*)/gm, (_, x, y) => `A ${r} ${r} 0 0 0 ${x} ${y}`);\r\n}\n\nexport { circlePath, convertLineToArc, polygon, roundedRectPath, scoreRectPath };\n//# sourceMappingURL=path.js.map\n"],"names":["roundedRectPath","x","y","w","h","tl","tr","bl","br","r","path","roundedR","angularR"],"mappings":"AAmBA,SAASA,EAAgB,EAAE,GAAAC,GAAG,GAAAC,GAAG,GAAAC,GAAG,GAAAC,GAAG,IAAAC,IAAK,IAAO,IAAAC,IAAK,IAAO,IAAAC,IAAK,IAAO,IAAAC,IAAK,IAAO,GAAAC,IAAI,KAAM;AAC7F,MAAIC;AACJ,EAAAA,IAAO,IAAIT,IAAIQ,CAAC,IAAIP,CAAC,IAAIC,IAAI,IAAIM,CAAC;AAClC,MAAIE,IAAWL,IAAKG,IAAI,GACpBG,IAAWN,IAAK,IAAIG;AACxB,SAAAC,KAAQ,IAAIC,CAAQ,IAAIA,CAAQ,UAAUA,CAAQ,IAAIA,CAAQ,IAC9DD,KAAQ,IAAIE,CAAQ,IAAIA,CAAQ,IAChCF,KAAQ,IAAIN,IAAI,IAAIK,CAAC,IACrBE,IAAWH,IAAKC,IAAI,GACpBG,IAAWJ,IAAK,IAAIC,GACpBC,KAAQ,IAAIC,CAAQ,IAAIA,CAAQ,UAAU,CAACA,CAAQ,IAAIA,CAAQ,IAC/DD,KAAQ,IAAIE,CAAQ,IAAI,CAACA,CAAQ,IACjCF,KAAQ,IAAI,IAAID,IAAIN,CAAC,IACrBQ,IAAWJ,IAAKE,IAAI,GACpBG,IAAWL,IAAK,IAAIE,GACpBC,KAAQ,IAAIC,CAAQ,IAAIA,CAAQ,UAAU,CAACA,CAAQ,IAAI,CAACA,CAAQ,IAChED,KAAQ,IAAI,CAACE,CAAQ,IAAI,CAACA,CAAQ,IAClCF,KAAQ,IAAI,IAAID,IAAIL,CAAC,IACrBO,IAAWN,IAAKI,IAAI,GACpBG,IAAWP,IAAK,IAAII,GACpBC,KAAQ,IAAIC,CAAQ,IAAIA,CAAQ,UAAUA,CAAQ,IAAI,CAACA,CAAQ,IAC/DD,KAAQ,IAAI,CAACE,CAAQ,IAAIA,CAAQ,IACjCF,KAAQ,KACDA;AACX;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../../@juggle/resize-observer/lib/ResizeObserver.cjs");require("../../../@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs");const r=globalThis.ResizeObserver||e.ResizeObserver;exports.ResizeObserver=r;
|
|
2
|
-
//# sourceMappingURL=resize-observer.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resize-observer.cjs","sources":["../../../../../node_modules/@unovis/ts/utils/resize-observer.js"],"sourcesContent":["import { ResizeObserver as ResizeObserver$1 } from '@juggle/resize-observer';\n\nconst ResizeObserver = globalThis.ResizeObserver || ResizeObserver$1;\n\nexport { ResizeObserver };\n//# sourceMappingURL=resize-observer.js.map\n"],"names":["ResizeObserver","ResizeObserver$1"],"mappings":"2OAEK,MAACA,EAAiB,WAAW,gBAAkBC,EAAAA","x_google_ignoreList":[0]}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { ResizeObserver as e } from "../../../@juggle/resize-observer/lib/ResizeObserver.js";
|
|
2
|
-
import "../../../@juggle/resize-observer/lib/algorithms/calculateBoxSize.js";
|
|
3
|
-
const i = globalThis.ResizeObserver || e;
|
|
4
|
-
export {
|
|
5
|
-
i as ResizeObserver
|
|
6
|
-
};
|
|
7
|
-
//# sourceMappingURL=resize-observer.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resize-observer.js","sources":["../../../../../node_modules/@unovis/ts/utils/resize-observer.js"],"sourcesContent":["import { ResizeObserver as ResizeObserver$1 } from '@juggle/resize-observer';\n\nconst ResizeObserver = globalThis.ResizeObserver || ResizeObserver$1;\n\nexport { ResizeObserver };\n//# sourceMappingURL=resize-observer.js.map\n"],"names":["ResizeObserver","ResizeObserver$1"],"mappings":";;AAEK,MAACA,IAAiB,WAAW,kBAAkBC;","x_google_ignoreList":[0]}
|
|
@@ -1,3 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const U=require("../../../../_virtual/striptags.cjs"),x=require("../types/text.cjs"),y=require("./data.cjs"),I=require("../types/svg.cjs"),S=require("../styles/index.cjs"),j=require("../../../d3-array/src/sum.cjs");function M(t){var n;return(n=t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g))===null||n===void 0?void 0:n.filter(Boolean).map(e=>e.toLowerCase()).join("-")}function w(t){return t.replace(/['"]/g,"'").replace(/\u0000/g,"\\0").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\v/g,"\\v").replace(/\t/g,"\\t").replace(/\f/g,"\\f")}function R(t,n=15){return t?t.length>n?`…${t.substr(t.length-n,n)}`:t:""}function z(t,n=15){if(!t)return"";const e=Math.floor((n-3)/2);return t.length>n?`${t.substr(0,e)}…${t.substr(-e,e)}`:t}function W(t,n=15){return t?t.length>n?`${t.substr(0,n)}…`:t:""}function F(t,n=15,e=x.TrimMode.Middle){if(!t)return"";let r=W(t,n);return e===x.TrimMode.Start?r=R(t,n):e===x.TrimMode.Middle&&(r=z(t,n)),r}function E(t,n=[" "]){let e=[t];for(let r=0;r<n.length;r++){const a=n[r];e.forEach((o,c)=>{const u=o.split(a),s=u.map((l,d)=>`${l}${d===u.length-1?"":a}`);e[c]=s}),e=y.flatten(e)}return e}function D(t,n,e=[" ","-",".",","]){const r=t.text();if(!r)return;const a=y.isArray(e)?e:[e],o=E(r,a),c=parseFloat(t.attr("x"))||0;t.text("");let u=t.append("tspan").attr("x",c),s=`${o[0]}`;u.text(s),o.forEach((l,d)=>{if(d===0)return;const i=`${s}${l}`;u.text(i),u.node().getComputedTextLength()>n?(u.text(s.trim()),u=t.append("tspan").attr("x",c).attr("dy","1.2em").text(l),s=l):s+=l})}function G(t,n,e,r,a,o){var c;n===void 0&&(n=50),e===void 0&&(e=x.TrimMode.Middle),a===void 0&&(a=+((c=window.getComputedStyle(t.node()))===null||c===void 0?void 0:c.fontSize)||0);const u=t.text(),s=u.length,l=a*s*o,i=Math.ceil(s*n/(1.1*l));return i<s?(t.text(F(u,i,e)),!0):!1}function b(t,n,e=S.getFontWidthToHeightRatio()){return t.length*n*e||0}function _(t,n,e){const r="http://www.w3.org/2000/svg",a=document.createElementNS(r,"svg"),o=document.createElementNS(r,"text");o.textContent=t,o.setAttribute("font-size",`${e}`),o.setAttribute("font-family",n),a.appendChild(o),document.body.appendChild(a);const c=o.getComputedTextLength();return document.body.removeChild(a),c}function X(t,n=void 0,e=!0,r=S.UNOVIS_TEXT_SEPARATOR_DEFAULT,a=!1){const o=`${t.text}`;if(!o)return[];const c=Array.isArray(r)?r:[r];return o.split(`
|
|
2
|
-
`).map(s=>{const l=[];if(!n)return[s];const d=E(s,c);let i="";for(let g=0;g<d.length;g+=1){(e?b(i+d[g],t.fontSize,t.fontWidthToHeightRatio):_(i+d[g],t.fontFamily,t.fontSize))<n||g===0?i+=d[g]:(l.push(i.trim()),i=d[g]);const f=2;if(a)for(;i.trim().length>f&&(e?b(i,t.fontSize,t.fontWidthToHeightRatio):_(i,t.fontFamily,t.fontSize))>n;){let T=i.trim().length-f;for(;T>0;){const A=`${i.substring(0,T)}${S.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT}`;if((e?b(A,t.fontSize,t.fontWidthToHeightRatio):_(A,t.fontFamily,t.fontSize))<=n||T===1){l.push(A.trim()),i=i.substring(T);break}T--}}}return i&&l.push(i.trim()),l}).flat()}function O(t,n=void 0,e=void 0,r=!0,a=S.UNOVIS_TEXT_SEPARATOR_DEFAULT,o=!1){const c=Array.isArray(t)?t.map(i=>y.merge(S.UNOVIS_TEXT_DEFAULT,i)):[y.merge(S.UNOVIS_TEXT_DEFAULT,t)],u=c.map(i=>X(i,n,r,a,o)),s=c[0];let l=-s.fontSize*(s.lineHeight-1);const d=[];return c.forEach((i,g)=>{var h;let f=u[g];const m=g>0?d[g-1]:void 0,T=m?m.marginBottom:0,A=i.marginTop,L=Math.max(T,A);l+=L;const P=i.fontSize*i.lineHeight;let $=0;for(let p=0;p<f.length;p+=1){let v=f[p];l+=P;const C=`${v} …`,H=r?b(C,i.fontSize,i.fontWidthToHeightRatio):_(C,i.fontFamily,i.fontSize);if($=Math.max(H,$),e&&l+P>e&&p!==f.length-1){v.charAt(v.length-1)===S.UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT&&(v=v.substr(0,f[p].length-1)),H<n?f[p]=C:f[p]=`${f[p].substr(0,f[p].length-2)}…`,f=f.slice(0,p+1);break}}d.push(Object.assign(Object.assign({},i),{_lines:f,_estimatedHeight:l-((m==null?void 0:m._estimatedHeight)||0),_maxWidth:Math.max($,(h=m==null?void 0:m._maxWidth)!==null&&h!==void 0?h:0)}))}),d}function q(t,n=0,e){return t.map((r,a)=>{const o=a>0?t[a-1]:void 0,c=o?o.marginBottom/o.fontSize:0,u=r.marginTop/r.fontSize,s=Math.max(c,u),l={fontSize:r.fontSize,fontFamily:r.fontFamily,fontWeight:r.fontWeight,fill:r.color,y:a===0&&e};return`<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(l).filter(([i,g])=>g).map(([i,g])=>`${M(i)}="${w(g.toString())}"`).join(" ")}>${r._lines.map((i,g)=>{let h;return a===0&&g===0?h=.8+s:g===0?h=s+r.lineHeight:h=r.lineHeight,`<tspan x="${n}" dy="${h}em">${i.length?i:" "}</tspan>`}).join("")}</tspan>`})}function N(t){return j.default(t,n=>n._estimatedHeight)}const V=["text","tspan","textPath","altGlyph","altGlyphDef","altGlyphItem","glyphRef","textRef","textArea"];function Z(t,n,e,r){var a,o;const c=O(n,e.width,void 0,e.fastMode,e.separator,e.wordBreak),u=(a=e.x)!==null&&a!==void 0?a:+t.getAttribute("x"),s=(o=e.y)!==null&&o!==void 0?o:+t.getAttribute("y"),l=u??0;let d=s??0;if(e.textAlign&&t.setAttribute("text-anchor",I.getTextAnchorFromTextAlign(e.textAlign)),e.verticalAlign&&e.verticalAlign!==x.VerticalAlign.Top){const i=N(c),g=e.verticalAlign===x.VerticalAlign.Middle?-i/2:e.verticalAlign===x.VerticalAlign.Bottom?-i:0;d+=g}e.textRotationAngle?t.setAttribute("transform",`rotate(${e.textRotationAngle===0||e.textRotationAngle?e.textRotationAngle:0} ${l} ${d})`):t.removeAttribute("transform");{const i=new DOMParser;t.textContent="",c.forEach(g=>{const h=q([g],l,d).join(""),f=U.default(h,V),m=i.parseFromString(f,"image/svg+xml").firstChild;t.appendChild(m)})}}exports.allowedSvgTextTags=V;exports.escapeStringKeepHash=w;exports.estimateStringPixelLength=b;exports.estimateWrappedTextHeight=N;exports.getPreciseStringLengthPx=_;exports.getWrappedText=O;exports.kebabCase=M;exports.renderTextToSvgTextElement=Z;exports.splitString=E;exports.trimSVGText=G;exports.trimString=F;exports.trimStringEnd=W;exports.trimStringMiddle=z;exports.trimStringStart=R;exports.wrapSVGText=D;
|
|
3
|
-
//# sourceMappingURL=text.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.cjs","sources":["../../../../../node_modules/@unovis/ts/utils/text.js"],"sourcesContent":["import { sum } from 'd3-array';\nimport striptags from 'striptags';\nimport { TrimMode, VerticalAlign, TextAlign } from '../types/text.js';\nimport { flatten, isArray, merge } from './data.js';\nimport { getTextAnchorFromTextAlign } from '../types/svg.js';\nimport { getFontWidthToHeightRatio, UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT, UNOVIS_TEXT_SEPARATOR_DEFAULT, UNOVIS_TEXT_DEFAULT } from '../styles/index.js';\n\n/**\r\n * Converts a kebab-case string to camelCase.\r\n *\r\n * @param {string} str - The kebab-case string to be converted.\r\n * @returns {string} The resulting camelCase string.\r\n */\r\nfunction kebabCaseToCamel(str) {\r\n return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());\r\n}\r\n/**\r\n * Converts a given string to kebab-case.\r\n * @param {string} str - The input string to be converted to kebab-case.\r\n * @returns {string} - The kebab-cased string.\r\n */\r\nfunction kebabCase(str) {\r\n var _a;\r\n return (_a = str.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g)) === null || _a === void 0 ? void 0 : _a.filter(Boolean).map(x => x.toLowerCase()).join('-');\r\n}\r\nfunction escapeStringKeepHash(str) {\r\n return str\r\n .replace(/['\"]/g, ''') // Escapes quotes with '\r\n // eslint-disable-next-line no-control-regex\r\n .replace(/\\u0000/g, '\\\\0') // Escapes null characters\r\n .replace(/\\n/g, '\\\\n') // Escapes new lines\r\n .replace(/\\r/g, '\\\\r') // Escapes carriage returns\r\n .replace(/\\v/g, '\\\\v') // Escapes vertical tabs\r\n .replace(/\\t/g, '\\\\t') // Escapes horizontal tabs\r\n .replace(/\\f/g, '\\\\f'); // Escapes form feeds\r\n}\r\n/**\r\n * Trims the input string from the start, leaving only the specified maximum length.\r\n * @param {string} str - The input string to be trimmed.\r\n * @param {number} [maxLength=15] - The maximum allowed length of the trimmed string.\r\n * @returns {string} - The trimmed string.\r\n */\r\nfunction trimStringStart(str, maxLength = 15) {\r\n if (!str)\r\n return '';\r\n return str.length > maxLength ? `…${str.substr(str.length - maxLength, maxLength)}` : str;\r\n}\r\n/**\r\n * Trims the input string from the middle, leaving only the specified maximum length.\r\n * @param {string} str - The input string to be trimmed.\r\n * @param {number} [maxLength=15] - The maximum allowed length of the trimmed string.\r\n * @returns {string} - The trimmed string.\r\n */\r\nfunction trimStringMiddle(str, maxLength = 15) {\r\n if (!str)\r\n return '';\r\n const dist = Math.floor((maxLength - 3) / 2);\r\n return str.length > maxLength ? `${str.substr(0, dist)}…${str.substr(-dist, dist)}` : str;\r\n}\r\n/**\r\n * Trims the input string from the end, leaving only the specified maximum length.\r\n * @param {string} str - The input string to be trimmed.\r\n * @param {number} [maxLength=15] - The maximum allowed length of the trimmed string.\r\n * @returns {string} - The trimmed string.\r\n */\r\nfunction trimStringEnd(str, maxLength = 15) {\r\n if (!str)\r\n return '';\r\n return str.length > maxLength ? `${str.substr(0, maxLength)}…` : str;\r\n}\r\n/**\r\n * Trims the input string according to the specified trim mode.\r\n * @param {string} str - The input string to be trimmed.\r\n * @param {number} [length=15] - The maximum allowed length of the trimmed string.\r\n * @param {TrimMode} [type=TrimMode.Middle] - The trim mode to be applied.\r\n * @returns {string} - The trimmed string.\r\n */\r\nfunction trimString(str, length = 15, type = TrimMode.Middle) {\r\n if (!str)\r\n return '';\r\n let result = trimStringEnd(str, length);\r\n if (type === TrimMode.Start)\r\n result = trimStringStart(str, length);\r\n else if (type === TrimMode.Middle)\r\n result = trimStringMiddle(str, length);\r\n return result;\r\n}\r\n/**\r\n * Splits the input string according to the specified separators.\r\n * @param {string} text - The input string to be split.\r\n * @param {string[]} [separators=[' ']] - The array of separators to be used for splitting.\r\n * @returns {string[]} - The array of split words.\r\n */\r\nfunction splitString(text, separators = [' ']) {\r\n let result = [text];\r\n for (let i = 0; i < separators.length; i++) {\r\n const sep = separators[i];\r\n result.forEach((d, index) => {\r\n const separated = d.split(sep);\r\n const words = separated.map((word, j) => `${word}${j === separated.length - 1 ? '' : sep}`);\r\n result[index] = words;\r\n });\r\n result = flatten(result);\r\n }\r\n return result;\r\n}\r\n/**\r\n * Wraps an SVG text element to fit within the specified width.\r\n * @param {Selection<SVGTextElement, any, SVGElement, any>} textElement - The SVG text element to be wrapped.\r\n * @param {number} width - The maximum allowed width for the text element.\r\n * @param {(string | string[])} [separator=[' ', '-', '.', ',']] - The separator(s) to be used for wrapping.\r\n */\r\nfunction wrapSVGText(textElement, width, separator = [' ', '-', '.', ',']) {\r\n const text = textElement.text();\r\n if (!text)\r\n return;\r\n // Wrap\r\n const separators = (isArray(separator) ? separator : [separator]);\r\n const words = splitString(text, separators);\r\n const x = parseFloat(textElement.attr('x')) || 0;\r\n textElement.text('');\r\n let tspan = textElement.append('tspan').attr('x', x);\r\n let tspanContent = `${words[0]}`;\r\n tspan.text(tspanContent);\r\n words.forEach((word, i) => {\r\n if (i === 0)\r\n return;\r\n const tspanText = `${tspanContent}${word}`;\r\n tspan.text(tspanText);\r\n const tspanWidth = tspan.node().getComputedTextLength();\r\n if (tspanWidth > width) {\r\n tspan.text(tspanContent.trim());\r\n tspan = textElement.append('tspan')\r\n .attr('x', x)\r\n .attr('dy', '1.2em')\r\n .text(word);\r\n tspanContent = word;\r\n }\r\n else\r\n tspanContent += word;\r\n });\r\n}\r\n/**\r\n * Trims an SVG text element based on the specified max width, trim type, and other options.\r\n * @param {Selection<SVGTextElement, any, SVGElement, any>} svgTextSelection - The D3 selection of the SVG text element to be trimmed.\r\n * @param {number} [maxWidth=50] - The maximum width of the text element.\r\n * @param {TrimMode} [trimType=TrimMode.Middle] - The type of trim (start, middle, or end).\r\n * @param {boolean} [fastMode=true] - Whether to use a fast estimation method for text length calculation.\r\n * @param {number} [fontSize=0] - The font size of the text.\r\n * @param {number} [fontWidthToHeightRatio=getFontWidthToHeightRatio()] - The font width to height ratio.\r\n * @returns {boolean} True if the text was trimmed, false otherwise.\r\n */\r\nfunction trimSVGText(svgTextSelection, maxWidth, trimType, fastMode, fontSize, fontWidthToHeightRatio) {\r\n var _a;\r\n if (maxWidth === void 0) { maxWidth = 50; }\r\n if (trimType === void 0) { trimType = TrimMode.Middle; }\r\n if (fastMode === void 0) { fastMode = true; }\r\n if (fontSize === void 0) { fontSize = +((_a = window.getComputedStyle(svgTextSelection.node())) === null || _a === void 0 ? void 0 : _a.fontSize) || 0; }\r\n if (fontWidthToHeightRatio === void 0) { fontWidthToHeightRatio = getFontWidthToHeightRatio(); }\r\n const text = svgTextSelection.text();\r\n const textLength = text.length;\r\n const textWidth = fastMode ? fontSize * textLength * fontWidthToHeightRatio : svgTextSelection.node().getComputedTextLength();\r\n const tolerance = 1.1;\r\n const maxCharacters = Math.ceil(textLength * maxWidth / (tolerance * textWidth));\r\n if (maxCharacters < textLength) {\r\n svgTextSelection.text(trimString(text, maxCharacters, trimType));\r\n return true;\r\n }\r\n return false;\r\n}\r\n/**\r\n * Estimates the length of a string in pixels.\r\n * @param {string} str - The string to be measured.\r\n * @param {number} fontSize - The font size of the string.\r\n * @param {number} [fontWidthToHeightRatio=getFontWidthToHeightRatio()] - The font width to height ratio.\r\n * @returns {number} The estimated length of the string in pixels.\r\n */\r\nfunction estimateStringPixelLength(str, fontSize, fontWidthToHeightRatio = getFontWidthToHeightRatio()) {\r\n return str.length * fontSize * fontWidthToHeightRatio || 0;\r\n}\r\n/**\r\n * Calculates the precise length of a string in pixels.\r\n * @param {string} str - The string to be measured.\r\n * @param {string} [fontFamily] - The font family of the string.\r\n * @param {(string | number)} [fontSize] - The font size of the string.\r\n * @returns {number} The precise length of the string in pixels.\r\n */\r\nfunction getPreciseStringLengthPx(str, fontFamily, fontSize) {\r\n const svgNS = 'http://www.w3.org/2000/svg';\r\n const svg = document.createElementNS(svgNS, 'svg');\r\n const text = document.createElementNS(svgNS, 'text');\r\n text.textContent = str;\r\n text.setAttribute('font-size', `${fontSize}`);\r\n text.setAttribute('font-family', fontFamily);\r\n svg.appendChild(text);\r\n document.body.appendChild(svg);\r\n const length = text.getComputedTextLength();\r\n document.body.removeChild(svg);\r\n return length;\r\n}\r\n/**\r\n * Estimates the dimensions of an SVG text element.\r\n *\r\n * @export\r\n * @param {Selection<SVGTextElement, any, SVGElement, any>} svgTextSelection - The D3 selection of the SVG text element.\r\n * @param {number} fontSize - The font size.\r\n * @param {number} [dy=0.32] - The line height scaling factor.\r\n * @param {boolean} [fastMode=true] - Whether to use a fast estimation method or a more accurate one.\r\n * @param {number} [fontWidthToHeightRatio] - The font width-to-height ratio.\r\n * @returns {{width: number, height: number}} - The estimated dimensions of the text element.\r\n */\r\nfunction estimateTextSize(svgTextSelection, fontSize, dy = 0.32, fastMode = true, fontWidthToHeightRatio) {\r\n fontWidthToHeightRatio = fontWidthToHeightRatio || getFontWidthToHeightRatio();\r\n const tspanSelection = svgTextSelection.selectAll('tspan');\r\n const lines = tspanSelection.size() || 1;\r\n const height = svgTextSelection.text() ? 0.85 * fontSize * lines * (1 + dy) - dy : 0;\r\n let width = 0;\r\n if (tspanSelection.empty()) {\r\n const textLength = svgTextSelection.text().length;\r\n width = fastMode ? fontSize * textLength * fontWidthToHeightRatio : svgTextSelection.node().getComputedTextLength();\r\n }\r\n else {\r\n for (const tspan of tspanSelection.nodes()) {\r\n const tspanTextLength = tspan.textContent.length;\r\n const w = fastMode ? fontSize * tspanTextLength * fontWidthToHeightRatio : tspan.getComputedTextLength();\r\n if (w > width)\r\n width = w;\r\n }\r\n }\r\n return { width, height };\r\n}\r\n/**\r\n * Breaks a text block into lines based on the specified width.\r\n *\r\n * @param {UnovisText} textBlock - The text block to break into lines.\r\n * @param {number | undefined} [width=undefined] - The maximum width of a line in pixels.\r\n * @param {(number | undefined)} [height=undefined] - The height limit for the wrapped text in pixels.\r\n * @param {boolean} [fastMode=true] - Whether to use a fast estimation method or a more accurate one.\r\n * @param {string | string[]} [separator] - The word separators.\r\n * @returns {string[]} - The text split into lines.\r\n */\r\nfunction breakTextIntoLines(textBlock, width = undefined, fastMode = true, separator = UNOVIS_TEXT_SEPARATOR_DEFAULT, wordBreak = false) {\r\n const text = `${textBlock.text}`;\r\n if (!text)\r\n return [];\r\n const separators = Array.isArray(separator) ? separator : [separator];\r\n const splitByNewLine = text.split('\\n');\r\n return splitByNewLine.map((str) => {\r\n const lines = [];\r\n if (!width)\r\n return [str];\r\n const words = splitString(str, separators);\r\n let line = '';\r\n for (let i = 0; i < words.length; i += 1) {\r\n const textLengthPx = fastMode\r\n ? estimateStringPixelLength(line + words[i], textBlock.fontSize, textBlock.fontWidthToHeightRatio)\r\n : getPreciseStringLengthPx(line + words[i], textBlock.fontFamily, textBlock.fontSize);\r\n if (textLengthPx < width || i === 0) {\r\n line += words[i];\r\n }\r\n else {\r\n lines.push(line.trim());\r\n line = words[i];\r\n }\r\n // Word break functionality\r\n const minCharactersOnLine = 2;\r\n if (wordBreak) {\r\n while (line.trim().length > minCharactersOnLine) {\r\n const subLineLengthPx = fastMode\r\n ? estimateStringPixelLength(line, textBlock.fontSize, textBlock.fontWidthToHeightRatio)\r\n : getPreciseStringLengthPx(line, textBlock.fontFamily, textBlock.fontSize);\r\n if (subLineLengthPx > width) {\r\n let breakIndex = (line.trim()).length - minCharactersOnLine; // Place at least `minCharactersOnLine` characters onto the next line\r\n while (breakIndex > 0) {\r\n const subLine = `${line.substring(0, breakIndex)}${UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT}`; // Use hyphen when force breaking words\r\n const subLinePx = fastMode\r\n ? estimateStringPixelLength(subLine, textBlock.fontSize, textBlock.fontWidthToHeightRatio)\r\n : getPreciseStringLengthPx(subLine, textBlock.fontFamily, textBlock.fontSize);\r\n // If the subline is less than the width, or just one character left, break the line\r\n if (subLinePx <= width || breakIndex === 1) {\r\n lines.push(subLine.trim());\r\n line = line.substring(breakIndex);\r\n break;\r\n }\r\n breakIndex--;\r\n }\r\n }\r\n else {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n // Adding the final line after the loop\r\n if (line)\r\n lines.push(line.trim());\r\n return lines;\r\n }).flat();\r\n}\r\n/**\r\n * Wraps a text or array of texts to fit within specified width and height, if provided.\r\n *\r\n * @export\r\n * @param {UnovisText | UnovisText[]} text - The text or array of texts to wrap.\r\n * @param {number | undefined} [width=undefined] - The maximum width of a line in pixels.\r\n * @param {boolean} [fastMode=true] - Whether to use a fast estimation method or a more accurate one.\r\n * @param {string | string[]} [separator] - The word separators.\r\n * @returns {UnovisWrappedText[]} - The wrapped texts.\r\n */\r\nfunction getWrappedText(text, width = undefined, height = undefined, fastMode = true, separator = UNOVIS_TEXT_SEPARATOR_DEFAULT, wordBreak = false) {\r\n // Merge input text with default values and convert it to an array if it's not already\r\n const textArrays = Array.isArray(text) ? text.map(t => merge(UNOVIS_TEXT_DEFAULT, t)) : [merge(UNOVIS_TEXT_DEFAULT, text)];\r\n // Break input text into lines based on width and separator\r\n const textWrapped = textArrays.map(block => breakTextIntoLines(block, width, fastMode, separator, wordBreak));\r\n const firstBlock = textArrays[0];\r\n let h = -firstBlock.fontSize * (firstBlock.lineHeight - 1);\r\n const blocks = [];\r\n // Process each text block and its lines based on height limit\r\n textArrays.forEach((text, i) => {\r\n var _a;\r\n let lines = textWrapped[i];\r\n const prevBlock = i > 0 ? blocks[i - 1] : undefined;\r\n const prevBlockMarginBottomPx = prevBlock ? prevBlock.marginBottom : 0;\r\n const marginTopPx = text.marginTop;\r\n const effectiveMarginPx = Math.max(prevBlockMarginBottomPx, marginTopPx);\r\n h += effectiveMarginPx;\r\n const dh = text.fontSize * text.lineHeight;\r\n let maxWidth = 0;\r\n // Iterate over lines and handle text overflow based on the height limit if provided\r\n for (let k = 0; k < lines.length; k += 1) {\r\n let line = lines[k];\r\n h += dh;\r\n const lineWithEllipsis = `${line} …`;\r\n const textLengthPx = fastMode\r\n ? estimateStringPixelLength(lineWithEllipsis, text.fontSize, text.fontWidthToHeightRatio)\r\n : getPreciseStringLengthPx(lineWithEllipsis, text.fontFamily, text.fontSize);\r\n maxWidth = Math.max(textLengthPx, maxWidth);\r\n if (height && (h + dh) > height && (k !== lines.length - 1)) {\r\n // Remove hyphen character from the end of the line if it's there\r\n const lastCharacter = line.charAt(line.length - 1);\r\n if (lastCharacter === UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT) {\r\n line = line.substr(0, lines[k].length - 1);\r\n }\r\n if (textLengthPx < width) {\r\n lines[k] = lineWithEllipsis;\r\n }\r\n else {\r\n lines[k] = `${lines[k].substr(0, lines[k].length - 2)}…`;\r\n }\r\n lines = lines.slice(0, k + 1);\r\n break;\r\n }\r\n }\r\n // Create wrapped text block with its calculated properties\r\n blocks.push(Object.assign(Object.assign({}, text), { _lines: lines, _estimatedHeight: h - ((prevBlock === null || prevBlock === void 0 ? void 0 : prevBlock._estimatedHeight) || 0), _maxWidth: Math.max(maxWidth, (_a = prevBlock === null || prevBlock === void 0 ? void 0 : prevBlock._maxWidth) !== null && _a !== void 0 ? _a : 0) }));\r\n });\r\n return blocks;\r\n}\r\n/**\r\n * Renders a text or array of texts to SVG tspan strings.\r\n *\r\n * @param {UnovisWrappedText[]} blocks - The wrapped text blocks.\r\n * @param {number} [x=0] - The x-coordinate for the tspan elements.\r\n * @param {number} [y] - The y-coordinate for the tspan elements.\r\n * @returns {string[]} - The SVG tspan strings.\r\n */\r\nfunction renderTextToTspanStrings(blocks, x = 0, y) {\r\n return blocks.map((b, i) => {\r\n const prevBlock = i > 0 ? blocks[i - 1] : undefined;\r\n const prevBlockMarginBottomEm = prevBlock ? prevBlock.marginBottom / prevBlock.fontSize : 0;\r\n const marginTopEm = b.marginTop / b.fontSize;\r\n const marginEm = Math.max(prevBlockMarginBottomEm, marginTopEm);\r\n const attributes = {\r\n fontSize: b.fontSize,\r\n fontFamily: b.fontFamily,\r\n fontWeight: b.fontWeight,\r\n fill: b.color,\r\n y: (i === 0) && y,\r\n };\r\n const attributesString = Object.entries(attributes)\r\n .filter(([_, value]) => value)\r\n .map(([key, value]) => `${kebabCase(key)}=\"${escapeStringKeepHash(value.toString())}\"`)\r\n .join(' ');\r\n return `<tspan xmlns=\"http://www.w3.org/2000/svg\" ${attributesString}>${b._lines.map((line, k) => {\r\n let dy;\r\n if (i === 0 && k === 0)\r\n dy = 0.8 + marginEm;\r\n else if (k === 0)\r\n dy = marginEm + b.lineHeight;\r\n else\r\n dy = b.lineHeight;\r\n return `<tspan x=\"${x}\" dy=\"${dy}em\">${line.length ? line : ' '}</tspan>`;\r\n }).join('')}</tspan>`;\r\n });\r\n}\r\n/**\r\n * Estimates the height of wrapped text blocks.\r\n *\r\n * @export\r\n * @param {UnovisWrappedText[]} blocks - The wrapped text blocks.\r\n * @returns {number} - The estimated height of the wrapped text blocks.\r\n */\r\nfunction estimateWrappedTextHeight(blocks) {\r\n return sum(blocks, b => b._estimatedHeight);\r\n}\r\nconst allowedSvgTextTags = ['text', 'tspan', 'textPath', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'glyphRef', 'textRef', 'textArea'];\r\n/**\r\n * Renders a text or array of texts to an SVG text element.\r\n * Calling this function will replace the contents of the specified SVG text element.\r\n *\r\n * @export\r\n * @param {SVGTextElement} textElement - The SVG text element to render the text into.\r\n * @param {UnovisText | UnovisText[]} text - The text or array of texts to render.\r\n * @param {UnovisTextOptions} options - The text options.\r\n */\r\nfunction renderTextToSvgTextElement(textElement, text, options, trimmed) {\r\n var _a, _b;\r\n const wrappedText = getWrappedText(text, options.width, undefined, options.fastMode, options.separator, options.wordBreak);\r\n const textElementX = (_a = options.x) !== null && _a !== void 0 ? _a : +textElement.getAttribute('x');\r\n const textElementY = (_b = options.y) !== null && _b !== void 0 ? _b : +textElement.getAttribute('y');\r\n const x = textElementX !== null && textElementX !== void 0 ? textElementX : 0;\r\n let y = textElementY !== null && textElementY !== void 0 ? textElementY : 0;\r\n if (options.textAlign) {\r\n textElement.setAttribute('text-anchor', getTextAnchorFromTextAlign(options.textAlign));\r\n }\r\n if (options.verticalAlign && options.verticalAlign !== VerticalAlign.Top) {\r\n const height = estimateWrappedTextHeight(wrappedText);\r\n const dy = options.verticalAlign === VerticalAlign.Middle ? -height / 2\r\n : options.verticalAlign === VerticalAlign.Bottom ? -height : 0;\r\n y += dy;\r\n }\r\n if (options.textRotationAngle) {\r\n textElement.setAttribute('transform', `rotate(${(options.textRotationAngle === 0 || options.textRotationAngle) ? options.textRotationAngle : 0} ${x} ${y})`);\r\n }\r\n else {\r\n textElement.removeAttribute('transform');\r\n }\r\n if (!trimmed) {\r\n const parser = new DOMParser();\r\n textElement.textContent = '';\r\n wrappedText.forEach(block => {\r\n const svgCode = renderTextToTspanStrings([block], x, y).join('');\r\n const svgCodeSanitized = striptags(svgCode, allowedSvgTextTags);\r\n const parsedSvgCode = parser.parseFromString(svgCodeSanitized, 'image/svg+xml').firstChild;\r\n textElement.appendChild(parsedSvgCode);\r\n });\r\n }\r\n}\r\n/**\r\n * Renders a text or array of texts into a frame.\r\n * Calling this function will replace the contents of the specified SVG group.\r\n *\r\n * @export\r\n * @param {SVGGElement} group - The SVG group element to render the text into.\r\n * @param {UnovisText | UnovisText[]} text - The text or array of texts to render.\r\n * @param {UnovisTextFrameOptions} frameOptions - The text frame options.\r\n */\r\nfunction renderTextIntoFrame(group, text, frameOptions) {\r\n var _a, _b;\r\n const wrappedText = getWrappedText(text, frameOptions.width, frameOptions.height, frameOptions.fastMode, frameOptions.separator, frameOptions.wordBreak);\r\n const x = frameOptions.textAlign === TextAlign.Center ? frameOptions.width / 2\r\n : frameOptions.textAlign === TextAlign.Right ? frameOptions.width : 0;\r\n let y = 0;\r\n const height = estimateWrappedTextHeight(wrappedText);\r\n // If the frame has height, the text will be vertically aligned within the frame.\r\n // If not, the text will be aligned against the `y` position of the frame.\r\n const dh = frameOptions.height - height;\r\n y = frameOptions.verticalAlign === VerticalAlign.Middle ? dh / 2\r\n : frameOptions.verticalAlign === VerticalAlign.Bottom ? dh : 0;\r\n const translate = (frameOptions.x || frameOptions.y)\r\n ? `transform=\"translate(${(_a = frameOptions.x) !== null && _a !== void 0 ? _a : 0},${(_b = frameOptions.y) !== null && _b !== void 0 ? _b : 0})\"`\r\n : '';\r\n const svgCode = `<text\n xmlns=\"http://www.w3.org/2000/svg\"\n text-anchor=\"${getTextAnchorFromTextAlign(frameOptions.textAlign)}\"\n ${translate}\n >\n ${renderTextToTspanStrings(wrappedText, x, y).join('')}\n </text>`;\r\n const parser = new DOMParser();\r\n const svgCodeSanitized = striptags(svgCode, allowedSvgTextTags);\r\n const parsedSvgCode = parser.parseFromString(svgCodeSanitized, 'image/svg+xml').firstChild;\r\n group.textContent = '';\r\n group.appendChild(parsedSvgCode);\r\n}\n\nexport { allowedSvgTextTags, escapeStringKeepHash, estimateStringPixelLength, estimateTextSize, estimateWrappedTextHeight, getPreciseStringLengthPx, getWrappedText, kebabCase, kebabCaseToCamel, renderTextIntoFrame, renderTextToSvgTextElement, splitString, trimSVGText, trimString, trimStringEnd, trimStringMiddle, trimStringStart, wrapSVGText };\n//# sourceMappingURL=text.js.map\n"],"names":["kebabCase","str","_a","x","escapeStringKeepHash","trimStringStart","maxLength","trimStringMiddle","dist","trimStringEnd","trimString","length","type","TrimMode","result","splitString","text","separators","i","sep","d","index","separated","words","word","j","flatten","wrapSVGText","textElement","width","separator","isArray","tspan","tspanContent","tspanText","trimSVGText","svgTextSelection","maxWidth","trimType","fastMode","fontSize","fontWidthToHeightRatio","textLength","textWidth","maxCharacters","estimateStringPixelLength","getFontWidthToHeightRatio","getPreciseStringLengthPx","fontFamily","svgNS","svg","breakTextIntoLines","textBlock","UNOVIS_TEXT_SEPARATOR_DEFAULT","wordBreak","lines","line","minCharactersOnLine","breakIndex","subLine","UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT","getWrappedText","height","textArrays","t","merge","UNOVIS_TEXT_DEFAULT","textWrapped","block","firstBlock","h","blocks","prevBlock","prevBlockMarginBottomPx","marginTopPx","effectiveMarginPx","dh","k","lineWithEllipsis","textLengthPx","renderTextToTspanStrings","y","b","prevBlockMarginBottomEm","marginTopEm","marginEm","attributes","_","value","key","dy","estimateWrappedTextHeight","sum","allowedSvgTextTags","renderTextToSvgTextElement","options","trimmed","_b","wrappedText","textElementX","textElementY","getTextAnchorFromTextAlign","VerticalAlign","parser","svgCode","svgCodeSanitized","striptags","parsedSvgCode"],"mappings":"uSAqBA,SAASA,EAAUC,EAAK,CACpB,IAAIC,EACJ,OAAQA,EAAKD,EAAI,MAAM,8DAA8D,KAAO,MAAQC,IAAO,OAAS,OAASA,EAAG,OAAO,OAAO,EAAE,IAAIC,GAAKA,EAAE,aAAa,EAAE,KAAK,GAAG,CACtL,CACA,SAASC,EAAqBH,EAAK,CAC/B,OAAOA,EACF,QAAQ,QAAS,OAAO,EAExB,QAAQ,UAAW,KAAK,EACxB,QAAQ,MAAO,KAAK,EACpB,QAAQ,MAAO,KAAK,EACpB,QAAQ,MAAO,KAAK,EACpB,QAAQ,MAAO,KAAK,EACpB,QAAQ,MAAO,KAAK,CAC7B,CAOA,SAASI,EAAgBJ,EAAKK,EAAY,GAAI,CAC1C,OAAKL,EAEEA,EAAI,OAASK,EAAY,IAAIL,EAAI,OAAOA,EAAI,OAASK,EAAWA,CAAS,CAAC,GAAKL,EAD3E,EAEf,CAOA,SAASM,EAAiBN,EAAKK,EAAY,GAAI,CAC3C,GAAI,CAACL,EACD,MAAO,GACX,MAAMO,EAAO,KAAK,OAAOF,EAAY,GAAK,CAAC,EAC3C,OAAOL,EAAI,OAASK,EAAY,GAAGL,EAAI,OAAO,EAAGO,CAAI,CAAC,IAAIP,EAAI,OAAO,CAACO,EAAMA,CAAI,CAAC,GAAKP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,EAAK,CAACrE,EAAY,aAAa,GAAG,EAC9FzB,EAAIgG,GAAkE,EAC5E,IAAIlB,EAAImB,GAAkE,EAI1E,GAHIL,EAAQ,WACRnE,EAAY,aAAa,cAAeyE,EAA0B,2BAACN,EAAQ,SAAS,CAAC,EAErFA,EAAQ,eAAiBA,EAAQ,gBAAkBO,EAAAA,cAAc,IAAK,CACtE,MAAMxC,EAAS6B,EAA0BO,CAAW,EAC9CR,EAAKK,EAAQ,gBAAkBO,EAAa,cAAC,OAAS,CAACxC,EAAS,EAChEiC,EAAQ,gBAAkBO,EAAa,cAAC,OAAS,CAACxC,EAAS,EACjEmB,GAAKS,CACR,CACGK,EAAQ,kBACRnE,EAAY,aAAa,YAAa,UAAWmE,EAAQ,oBAAsB,GAAKA,EAAQ,kBAAqBA,EAAQ,kBAAoB,CAAC,IAAI5F,CAAC,IAAI8E,CAAC,GAAG,EAG3JrD,EAAY,gBAAgB,WAAW,EAE7B,CACV,MAAM2E,EAAS,IAAI,UACnB3E,EAAY,YAAc,GAC1BsE,EAAY,QAAQ9B,GAAS,CACzB,MAAMoC,EAAUxB,EAAyB,CAACZ,CAAK,EAAGjE,EAAG8E,CAAC,EAAE,KAAK,EAAE,EACzDwB,EAAmBC,EAAAA,QAAUF,EAASX,CAAkB,EACxDc,EAAgBJ,EAAO,gBAAgBE,EAAkB,eAAe,EAAE,WAChF7E,EAAY,YAAY+E,CAAa,CACjD,CAAS,CACJ,CACL","x_google_ignoreList":[0]}
|
|
@@ -1,179 +0,0 @@
|
|
|
1
|
-
import W from "../../../../_virtual/striptags.js";
|
|
2
|
-
import { TrimMode as A, VerticalAlign as C } from "../types/text.js";
|
|
3
|
-
import { flatten as E, merge as z, isArray as F } from "./data.js";
|
|
4
|
-
import { getTextAnchorFromTextAlign as N } from "../types/svg.js";
|
|
5
|
-
import { UNOVIS_TEXT_SEPARATOR_DEFAULT as P, UNOVIS_TEXT_DEFAULT as H, getFontWidthToHeightRatio as O, UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT as M } from "../styles/index.js";
|
|
6
|
-
import j from "../../../d3-array/src/sum.js";
|
|
7
|
-
function I(t) {
|
|
8
|
-
var n;
|
|
9
|
-
return (n = t.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g)) === null || n === void 0 ? void 0 : n.filter(Boolean).map((e) => e.toLowerCase()).join("-");
|
|
10
|
-
}
|
|
11
|
-
function U(t) {
|
|
12
|
-
return t.replace(/['"]/g, "'").replace(/\u0000/g, "\\0").replace(/\n/g, "\\n").replace(/\r/g, "\\r").replace(/\v/g, "\\v").replace(/\t/g, "\\t").replace(/\f/g, "\\f");
|
|
13
|
-
}
|
|
14
|
-
function V(t, n = 15) {
|
|
15
|
-
return t ? t.length > n ? `…${t.substr(t.length - n, n)}` : t : "";
|
|
16
|
-
}
|
|
17
|
-
function D(t, n = 15) {
|
|
18
|
-
if (!t)
|
|
19
|
-
return "";
|
|
20
|
-
const e = Math.floor((n - 3) / 2);
|
|
21
|
-
return t.length > n ? `${t.substr(0, e)}…${t.substr(-e, e)}` : t;
|
|
22
|
-
}
|
|
23
|
-
function G(t, n = 15) {
|
|
24
|
-
return t ? t.length > n ? `${t.substr(0, n)}…` : t : "";
|
|
25
|
-
}
|
|
26
|
-
function X(t, n = 15, e = A.Middle) {
|
|
27
|
-
if (!t)
|
|
28
|
-
return "";
|
|
29
|
-
let r = G(t, n);
|
|
30
|
-
return e === A.Start ? r = V(t, n) : e === A.Middle && (r = D(t, n)), r;
|
|
31
|
-
}
|
|
32
|
-
function R(t, n = [" "]) {
|
|
33
|
-
let e = [t];
|
|
34
|
-
for (let r = 0; r < n.length; r++) {
|
|
35
|
-
const o = n[r];
|
|
36
|
-
e.forEach((a, g) => {
|
|
37
|
-
const c = a.split(o), s = c.map((l, u) => `${l}${u === c.length - 1 ? "" : o}`);
|
|
38
|
-
e[g] = s;
|
|
39
|
-
}), e = E(e);
|
|
40
|
-
}
|
|
41
|
-
return e;
|
|
42
|
-
}
|
|
43
|
-
function rt(t, n, e = [" ", "-", ".", ","]) {
|
|
44
|
-
const r = t.text();
|
|
45
|
-
if (!r)
|
|
46
|
-
return;
|
|
47
|
-
const o = F(e) ? e : [e], a = R(r, o), g = parseFloat(t.attr("x")) || 0;
|
|
48
|
-
t.text("");
|
|
49
|
-
let c = t.append("tspan").attr("x", g), s = `${a[0]}`;
|
|
50
|
-
c.text(s), a.forEach((l, u) => {
|
|
51
|
-
if (u === 0)
|
|
52
|
-
return;
|
|
53
|
-
const i = `${s}${l}`;
|
|
54
|
-
c.text(i), c.node().getComputedTextLength() > n ? (c.text(s.trim()), c = t.append("tspan").attr("x", g).attr("dy", "1.2em").text(l), s = l) : s += l;
|
|
55
|
-
});
|
|
56
|
-
}
|
|
57
|
-
function ot(t, n, e, r, o, a) {
|
|
58
|
-
var g;
|
|
59
|
-
n === void 0 && (n = 50), e === void 0 && (e = A.Middle), o === void 0 && (o = +((g = window.getComputedStyle(t.node())) === null || g === void 0 ? void 0 : g.fontSize) || 0);
|
|
60
|
-
const c = t.text(), s = c.length, l = o * s * a, i = Math.ceil(s * n / (1.1 * l));
|
|
61
|
-
return i < s ? (t.text(X(c, i, e)), !0) : !1;
|
|
62
|
-
}
|
|
63
|
-
function T(t, n, e = O()) {
|
|
64
|
-
return t.length * n * e || 0;
|
|
65
|
-
}
|
|
66
|
-
function b(t, n, e) {
|
|
67
|
-
const r = "http://www.w3.org/2000/svg", o = document.createElementNS(r, "svg"), a = document.createElementNS(r, "text");
|
|
68
|
-
a.textContent = t, a.setAttribute("font-size", `${e}`), a.setAttribute("font-family", n), o.appendChild(a), document.body.appendChild(o);
|
|
69
|
-
const g = a.getComputedTextLength();
|
|
70
|
-
return document.body.removeChild(o), g;
|
|
71
|
-
}
|
|
72
|
-
function Z(t, n = void 0, e = !0, r = P, o = !1) {
|
|
73
|
-
const a = `${t.text}`;
|
|
74
|
-
if (!a)
|
|
75
|
-
return [];
|
|
76
|
-
const g = Array.isArray(r) ? r : [r];
|
|
77
|
-
return a.split(`
|
|
78
|
-
`).map((s) => {
|
|
79
|
-
const l = [];
|
|
80
|
-
if (!n)
|
|
81
|
-
return [s];
|
|
82
|
-
const u = R(s, g);
|
|
83
|
-
let i = "";
|
|
84
|
-
for (let f = 0; f < u.length; f += 1) {
|
|
85
|
-
(e ? T(i + u[f], t.fontSize, t.fontWidthToHeightRatio) : b(i + u[f], t.fontFamily, t.fontSize)) < n || f === 0 ? i += u[f] : (l.push(i.trim()), i = u[f]);
|
|
86
|
-
const d = 2;
|
|
87
|
-
if (o)
|
|
88
|
-
for (; i.trim().length > d && (e ? T(i, t.fontSize, t.fontWidthToHeightRatio) : b(i, t.fontFamily, t.fontSize)) > n; ) {
|
|
89
|
-
let x = i.trim().length - d;
|
|
90
|
-
for (; x > 0; ) {
|
|
91
|
-
const v = `${i.substring(0, x)}${M}`;
|
|
92
|
-
if ((e ? T(v, t.fontSize, t.fontWidthToHeightRatio) : b(v, t.fontFamily, t.fontSize)) <= n || x === 1) {
|
|
93
|
-
l.push(v.trim()), i = i.substring(x);
|
|
94
|
-
break;
|
|
95
|
-
}
|
|
96
|
-
x--;
|
|
97
|
-
}
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
return i && l.push(i.trim()), l;
|
|
101
|
-
}).flat();
|
|
102
|
-
}
|
|
103
|
-
function B(t, n = void 0, e = void 0, r = !0, o = P, a = !1) {
|
|
104
|
-
const g = Array.isArray(t) ? t.map((i) => z(H, i)) : [z(H, t)], c = g.map((i) => Z(i, n, r, o, a)), s = g[0];
|
|
105
|
-
let l = -s.fontSize * (s.lineHeight - 1);
|
|
106
|
-
const u = [];
|
|
107
|
-
return g.forEach((i, f) => {
|
|
108
|
-
var h;
|
|
109
|
-
let d = c[f];
|
|
110
|
-
const m = f > 0 ? u[f - 1] : void 0, x = m ? m.marginBottom : 0, v = i.marginTop, _ = Math.max(x, v);
|
|
111
|
-
l += _;
|
|
112
|
-
const L = i.fontSize * i.lineHeight;
|
|
113
|
-
let y = 0;
|
|
114
|
-
for (let p = 0; p < d.length; p += 1) {
|
|
115
|
-
let S = d[p];
|
|
116
|
-
l += L;
|
|
117
|
-
const $ = `${S} …`, w = r ? T($, i.fontSize, i.fontWidthToHeightRatio) : b($, i.fontFamily, i.fontSize);
|
|
118
|
-
if (y = Math.max(w, y), e && l + L > e && p !== d.length - 1) {
|
|
119
|
-
S.charAt(S.length - 1) === M && (S = S.substr(0, d[p].length - 1)), w < n ? d[p] = $ : d[p] = `${d[p].substr(0, d[p].length - 2)}…`, d = d.slice(0, p + 1);
|
|
120
|
-
break;
|
|
121
|
-
}
|
|
122
|
-
}
|
|
123
|
-
u.push(Object.assign(Object.assign({}, i), { _lines: d, _estimatedHeight: l - ((m == null ? void 0 : m._estimatedHeight) || 0), _maxWidth: Math.max(y, (h = m == null ? void 0 : m._maxWidth) !== null && h !== void 0 ? h : 0) }));
|
|
124
|
-
}), u;
|
|
125
|
-
}
|
|
126
|
-
function Y(t, n = 0, e) {
|
|
127
|
-
return t.map((r, o) => {
|
|
128
|
-
const a = o > 0 ? t[o - 1] : void 0, g = a ? a.marginBottom / a.fontSize : 0, c = r.marginTop / r.fontSize, s = Math.max(g, c), l = {
|
|
129
|
-
fontSize: r.fontSize,
|
|
130
|
-
fontFamily: r.fontFamily,
|
|
131
|
-
fontWeight: r.fontWeight,
|
|
132
|
-
fill: r.color,
|
|
133
|
-
y: o === 0 && e
|
|
134
|
-
};
|
|
135
|
-
return `<tspan xmlns="http://www.w3.org/2000/svg" ${Object.entries(l).filter(([i, f]) => f).map(([i, f]) => `${I(i)}="${U(f.toString())}"`).join(" ")}>${r._lines.map((i, f) => {
|
|
136
|
-
let h;
|
|
137
|
-
return o === 0 && f === 0 ? h = 0.8 + s : f === 0 ? h = s + r.lineHeight : h = r.lineHeight, `<tspan x="${n}" dy="${h}em">${i.length ? i : " "}</tspan>`;
|
|
138
|
-
}).join("")}</tspan>`;
|
|
139
|
-
});
|
|
140
|
-
}
|
|
141
|
-
function K(t) {
|
|
142
|
-
return j(t, (n) => n._estimatedHeight);
|
|
143
|
-
}
|
|
144
|
-
const k = ["text", "tspan", "textPath", "altGlyph", "altGlyphDef", "altGlyphItem", "glyphRef", "textRef", "textArea"];
|
|
145
|
-
function at(t, n, e, r) {
|
|
146
|
-
var o, a;
|
|
147
|
-
const g = B(n, e.width, void 0, e.fastMode, e.separator, e.wordBreak), c = (o = e.x) !== null && o !== void 0 ? o : +t.getAttribute("x"), s = (a = e.y) !== null && a !== void 0 ? a : +t.getAttribute("y"), l = c ?? 0;
|
|
148
|
-
let u = s ?? 0;
|
|
149
|
-
if (e.textAlign && t.setAttribute("text-anchor", N(e.textAlign)), e.verticalAlign && e.verticalAlign !== C.Top) {
|
|
150
|
-
const i = K(g), f = e.verticalAlign === C.Middle ? -i / 2 : e.verticalAlign === C.Bottom ? -i : 0;
|
|
151
|
-
u += f;
|
|
152
|
-
}
|
|
153
|
-
e.textRotationAngle ? t.setAttribute("transform", `rotate(${e.textRotationAngle === 0 || e.textRotationAngle ? e.textRotationAngle : 0} ${l} ${u})`) : t.removeAttribute("transform");
|
|
154
|
-
{
|
|
155
|
-
const i = new DOMParser();
|
|
156
|
-
t.textContent = "", g.forEach((f) => {
|
|
157
|
-
const h = Y([f], l, u).join(""), d = W(h, k), m = i.parseFromString(d, "image/svg+xml").firstChild;
|
|
158
|
-
t.appendChild(m);
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
export {
|
|
163
|
-
k as allowedSvgTextTags,
|
|
164
|
-
U as escapeStringKeepHash,
|
|
165
|
-
T as estimateStringPixelLength,
|
|
166
|
-
K as estimateWrappedTextHeight,
|
|
167
|
-
b as getPreciseStringLengthPx,
|
|
168
|
-
B as getWrappedText,
|
|
169
|
-
I as kebabCase,
|
|
170
|
-
at as renderTextToSvgTextElement,
|
|
171
|
-
R as splitString,
|
|
172
|
-
ot as trimSVGText,
|
|
173
|
-
X as trimString,
|
|
174
|
-
G as trimStringEnd,
|
|
175
|
-
D as trimStringMiddle,
|
|
176
|
-
V as trimStringStart,
|
|
177
|
-
rt as wrapSVGText
|
|
178
|
-
};
|
|
179
|
-
//# sourceMappingURL=text.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sources":["../../../../../node_modules/@unovis/ts/utils/text.js"],"sourcesContent":["import { sum } from 'd3-array';\nimport striptags from 'striptags';\nimport { TrimMode, VerticalAlign, TextAlign } from '../types/text.js';\nimport { flatten, isArray, merge } from './data.js';\nimport { getTextAnchorFromTextAlign } from '../types/svg.js';\nimport { getFontWidthToHeightRatio, UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT, UNOVIS_TEXT_SEPARATOR_DEFAULT, UNOVIS_TEXT_DEFAULT } from '../styles/index.js';\n\n/**\r\n * Converts a kebab-case string to camelCase.\r\n *\r\n * @param {string} str - The kebab-case string to be converted.\r\n * @returns {string} The resulting camelCase string.\r\n */\r\nfunction kebabCaseToCamel(str) {\r\n return str.replace(/-([a-z])/g, (_, letter) => letter.toUpperCase());\r\n}\r\n/**\r\n * Converts a given string to kebab-case.\r\n * @param {string} str - The input string to be converted to kebab-case.\r\n * @returns {string} - The kebab-cased string.\r\n */\r\nfunction kebabCase(str) {\r\n var _a;\r\n return (_a = str.match(/[A-Z]{2,}(?=[A-Z][a-z0-9]*|\\b)|[A-Z]?[a-z0-9]*|[A-Z]|[0-9]+/g)) === null || _a === void 0 ? void 0 : _a.filter(Boolean).map(x => x.toLowerCase()).join('-');\r\n}\r\nfunction escapeStringKeepHash(str) {\r\n return str\r\n .replace(/['\"]/g, ''') // Escapes quotes with '\r\n // eslint-disable-next-line no-control-regex\r\n .replace(/\\u0000/g, '\\\\0') // Escapes null characters\r\n .replace(/\\n/g, '\\\\n') // Escapes new lines\r\n .replace(/\\r/g, '\\\\r') // Escapes carriage returns\r\n .replace(/\\v/g, '\\\\v') // Escapes vertical tabs\r\n .replace(/\\t/g, '\\\\t') // Escapes horizontal tabs\r\n .replace(/\\f/g, '\\\\f'); // Escapes form feeds\r\n}\r\n/**\r\n * Trims the input string from the start, leaving only the specified maximum length.\r\n * @param {string} str - The input string to be trimmed.\r\n * @param {number} [maxLength=15] - The maximum allowed length of the trimmed string.\r\n * @returns {string} - The trimmed string.\r\n */\r\nfunction trimStringStart(str, maxLength = 15) {\r\n if (!str)\r\n return '';\r\n return str.length > maxLength ? `…${str.substr(str.length - maxLength, maxLength)}` : str;\r\n}\r\n/**\r\n * Trims the input string from the middle, leaving only the specified maximum length.\r\n * @param {string} str - The input string to be trimmed.\r\n * @param {number} [maxLength=15] - The maximum allowed length of the trimmed string.\r\n * @returns {string} - The trimmed string.\r\n */\r\nfunction trimStringMiddle(str, maxLength = 15) {\r\n if (!str)\r\n return '';\r\n const dist = Math.floor((maxLength - 3) / 2);\r\n return str.length > maxLength ? `${str.substr(0, dist)}…${str.substr(-dist, dist)}` : str;\r\n}\r\n/**\r\n * Trims the input string from the end, leaving only the specified maximum length.\r\n * @param {string} str - The input string to be trimmed.\r\n * @param {number} [maxLength=15] - The maximum allowed length of the trimmed string.\r\n * @returns {string} - The trimmed string.\r\n */\r\nfunction trimStringEnd(str, maxLength = 15) {\r\n if (!str)\r\n return '';\r\n return str.length > maxLength ? `${str.substr(0, maxLength)}…` : str;\r\n}\r\n/**\r\n * Trims the input string according to the specified trim mode.\r\n * @param {string} str - The input string to be trimmed.\r\n * @param {number} [length=15] - The maximum allowed length of the trimmed string.\r\n * @param {TrimMode} [type=TrimMode.Middle] - The trim mode to be applied.\r\n * @returns {string} - The trimmed string.\r\n */\r\nfunction trimString(str, length = 15, type = TrimMode.Middle) {\r\n if (!str)\r\n return '';\r\n let result = trimStringEnd(str, length);\r\n if (type === TrimMode.Start)\r\n result = trimStringStart(str, length);\r\n else if (type === TrimMode.Middle)\r\n result = trimStringMiddle(str, length);\r\n return result;\r\n}\r\n/**\r\n * Splits the input string according to the specified separators.\r\n * @param {string} text - The input string to be split.\r\n * @param {string[]} [separators=[' ']] - The array of separators to be used for splitting.\r\n * @returns {string[]} - The array of split words.\r\n */\r\nfunction splitString(text, separators = [' ']) {\r\n let result = [text];\r\n for (let i = 0; i < separators.length; i++) {\r\n const sep = separators[i];\r\n result.forEach((d, index) => {\r\n const separated = d.split(sep);\r\n const words = separated.map((word, j) => `${word}${j === separated.length - 1 ? '' : sep}`);\r\n result[index] = words;\r\n });\r\n result = flatten(result);\r\n }\r\n return result;\r\n}\r\n/**\r\n * Wraps an SVG text element to fit within the specified width.\r\n * @param {Selection<SVGTextElement, any, SVGElement, any>} textElement - The SVG text element to be wrapped.\r\n * @param {number} width - The maximum allowed width for the text element.\r\n * @param {(string | string[])} [separator=[' ', '-', '.', ',']] - The separator(s) to be used for wrapping.\r\n */\r\nfunction wrapSVGText(textElement, width, separator = [' ', '-', '.', ',']) {\r\n const text = textElement.text();\r\n if (!text)\r\n return;\r\n // Wrap\r\n const separators = (isArray(separator) ? separator : [separator]);\r\n const words = splitString(text, separators);\r\n const x = parseFloat(textElement.attr('x')) || 0;\r\n textElement.text('');\r\n let tspan = textElement.append('tspan').attr('x', x);\r\n let tspanContent = `${words[0]}`;\r\n tspan.text(tspanContent);\r\n words.forEach((word, i) => {\r\n if (i === 0)\r\n return;\r\n const tspanText = `${tspanContent}${word}`;\r\n tspan.text(tspanText);\r\n const tspanWidth = tspan.node().getComputedTextLength();\r\n if (tspanWidth > width) {\r\n tspan.text(tspanContent.trim());\r\n tspan = textElement.append('tspan')\r\n .attr('x', x)\r\n .attr('dy', '1.2em')\r\n .text(word);\r\n tspanContent = word;\r\n }\r\n else\r\n tspanContent += word;\r\n });\r\n}\r\n/**\r\n * Trims an SVG text element based on the specified max width, trim type, and other options.\r\n * @param {Selection<SVGTextElement, any, SVGElement, any>} svgTextSelection - The D3 selection of the SVG text element to be trimmed.\r\n * @param {number} [maxWidth=50] - The maximum width of the text element.\r\n * @param {TrimMode} [trimType=TrimMode.Middle] - The type of trim (start, middle, or end).\r\n * @param {boolean} [fastMode=true] - Whether to use a fast estimation method for text length calculation.\r\n * @param {number} [fontSize=0] - The font size of the text.\r\n * @param {number} [fontWidthToHeightRatio=getFontWidthToHeightRatio()] - The font width to height ratio.\r\n * @returns {boolean} True if the text was trimmed, false otherwise.\r\n */\r\nfunction trimSVGText(svgTextSelection, maxWidth, trimType, fastMode, fontSize, fontWidthToHeightRatio) {\r\n var _a;\r\n if (maxWidth === void 0) { maxWidth = 50; }\r\n if (trimType === void 0) { trimType = TrimMode.Middle; }\r\n if (fastMode === void 0) { fastMode = true; }\r\n if (fontSize === void 0) { fontSize = +((_a = window.getComputedStyle(svgTextSelection.node())) === null || _a === void 0 ? void 0 : _a.fontSize) || 0; }\r\n if (fontWidthToHeightRatio === void 0) { fontWidthToHeightRatio = getFontWidthToHeightRatio(); }\r\n const text = svgTextSelection.text();\r\n const textLength = text.length;\r\n const textWidth = fastMode ? fontSize * textLength * fontWidthToHeightRatio : svgTextSelection.node().getComputedTextLength();\r\n const tolerance = 1.1;\r\n const maxCharacters = Math.ceil(textLength * maxWidth / (tolerance * textWidth));\r\n if (maxCharacters < textLength) {\r\n svgTextSelection.text(trimString(text, maxCharacters, trimType));\r\n return true;\r\n }\r\n return false;\r\n}\r\n/**\r\n * Estimates the length of a string in pixels.\r\n * @param {string} str - The string to be measured.\r\n * @param {number} fontSize - The font size of the string.\r\n * @param {number} [fontWidthToHeightRatio=getFontWidthToHeightRatio()] - The font width to height ratio.\r\n * @returns {number} The estimated length of the string in pixels.\r\n */\r\nfunction estimateStringPixelLength(str, fontSize, fontWidthToHeightRatio = getFontWidthToHeightRatio()) {\r\n return str.length * fontSize * fontWidthToHeightRatio || 0;\r\n}\r\n/**\r\n * Calculates the precise length of a string in pixels.\r\n * @param {string} str - The string to be measured.\r\n * @param {string} [fontFamily] - The font family of the string.\r\n * @param {(string | number)} [fontSize] - The font size of the string.\r\n * @returns {number} The precise length of the string in pixels.\r\n */\r\nfunction getPreciseStringLengthPx(str, fontFamily, fontSize) {\r\n const svgNS = 'http://www.w3.org/2000/svg';\r\n const svg = document.createElementNS(svgNS, 'svg');\r\n const text = document.createElementNS(svgNS, 'text');\r\n text.textContent = str;\r\n text.setAttribute('font-size', `${fontSize}`);\r\n text.setAttribute('font-family', fontFamily);\r\n svg.appendChild(text);\r\n document.body.appendChild(svg);\r\n const length = text.getComputedTextLength();\r\n document.body.removeChild(svg);\r\n return length;\r\n}\r\n/**\r\n * Estimates the dimensions of an SVG text element.\r\n *\r\n * @export\r\n * @param {Selection<SVGTextElement, any, SVGElement, any>} svgTextSelection - The D3 selection of the SVG text element.\r\n * @param {number} fontSize - The font size.\r\n * @param {number} [dy=0.32] - The line height scaling factor.\r\n * @param {boolean} [fastMode=true] - Whether to use a fast estimation method or a more accurate one.\r\n * @param {number} [fontWidthToHeightRatio] - The font width-to-height ratio.\r\n * @returns {{width: number, height: number}} - The estimated dimensions of the text element.\r\n */\r\nfunction estimateTextSize(svgTextSelection, fontSize, dy = 0.32, fastMode = true, fontWidthToHeightRatio) {\r\n fontWidthToHeightRatio = fontWidthToHeightRatio || getFontWidthToHeightRatio();\r\n const tspanSelection = svgTextSelection.selectAll('tspan');\r\n const lines = tspanSelection.size() || 1;\r\n const height = svgTextSelection.text() ? 0.85 * fontSize * lines * (1 + dy) - dy : 0;\r\n let width = 0;\r\n if (tspanSelection.empty()) {\r\n const textLength = svgTextSelection.text().length;\r\n width = fastMode ? fontSize * textLength * fontWidthToHeightRatio : svgTextSelection.node().getComputedTextLength();\r\n }\r\n else {\r\n for (const tspan of tspanSelection.nodes()) {\r\n const tspanTextLength = tspan.textContent.length;\r\n const w = fastMode ? fontSize * tspanTextLength * fontWidthToHeightRatio : tspan.getComputedTextLength();\r\n if (w > width)\r\n width = w;\r\n }\r\n }\r\n return { width, height };\r\n}\r\n/**\r\n * Breaks a text block into lines based on the specified width.\r\n *\r\n * @param {UnovisText} textBlock - The text block to break into lines.\r\n * @param {number | undefined} [width=undefined] - The maximum width of a line in pixels.\r\n * @param {(number | undefined)} [height=undefined] - The height limit for the wrapped text in pixels.\r\n * @param {boolean} [fastMode=true] - Whether to use a fast estimation method or a more accurate one.\r\n * @param {string | string[]} [separator] - The word separators.\r\n * @returns {string[]} - The text split into lines.\r\n */\r\nfunction breakTextIntoLines(textBlock, width = undefined, fastMode = true, separator = UNOVIS_TEXT_SEPARATOR_DEFAULT, wordBreak = false) {\r\n const text = `${textBlock.text}`;\r\n if (!text)\r\n return [];\r\n const separators = Array.isArray(separator) ? separator : [separator];\r\n const splitByNewLine = text.split('\\n');\r\n return splitByNewLine.map((str) => {\r\n const lines = [];\r\n if (!width)\r\n return [str];\r\n const words = splitString(str, separators);\r\n let line = '';\r\n for (let i = 0; i < words.length; i += 1) {\r\n const textLengthPx = fastMode\r\n ? estimateStringPixelLength(line + words[i], textBlock.fontSize, textBlock.fontWidthToHeightRatio)\r\n : getPreciseStringLengthPx(line + words[i], textBlock.fontFamily, textBlock.fontSize);\r\n if (textLengthPx < width || i === 0) {\r\n line += words[i];\r\n }\r\n else {\r\n lines.push(line.trim());\r\n line = words[i];\r\n }\r\n // Word break functionality\r\n const minCharactersOnLine = 2;\r\n if (wordBreak) {\r\n while (line.trim().length > minCharactersOnLine) {\r\n const subLineLengthPx = fastMode\r\n ? estimateStringPixelLength(line, textBlock.fontSize, textBlock.fontWidthToHeightRatio)\r\n : getPreciseStringLengthPx(line, textBlock.fontFamily, textBlock.fontSize);\r\n if (subLineLengthPx > width) {\r\n let breakIndex = (line.trim()).length - minCharactersOnLine; // Place at least `minCharactersOnLine` characters onto the next line\r\n while (breakIndex > 0) {\r\n const subLine = `${line.substring(0, breakIndex)}${UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT}`; // Use hyphen when force breaking words\r\n const subLinePx = fastMode\r\n ? estimateStringPixelLength(subLine, textBlock.fontSize, textBlock.fontWidthToHeightRatio)\r\n : getPreciseStringLengthPx(subLine, textBlock.fontFamily, textBlock.fontSize);\r\n // If the subline is less than the width, or just one character left, break the line\r\n if (subLinePx <= width || breakIndex === 1) {\r\n lines.push(subLine.trim());\r\n line = line.substring(breakIndex);\r\n break;\r\n }\r\n breakIndex--;\r\n }\r\n }\r\n else {\r\n break;\r\n }\r\n }\r\n }\r\n }\r\n // Adding the final line after the loop\r\n if (line)\r\n lines.push(line.trim());\r\n return lines;\r\n }).flat();\r\n}\r\n/**\r\n * Wraps a text or array of texts to fit within specified width and height, if provided.\r\n *\r\n * @export\r\n * @param {UnovisText | UnovisText[]} text - The text or array of texts to wrap.\r\n * @param {number | undefined} [width=undefined] - The maximum width of a line in pixels.\r\n * @param {boolean} [fastMode=true] - Whether to use a fast estimation method or a more accurate one.\r\n * @param {string | string[]} [separator] - The word separators.\r\n * @returns {UnovisWrappedText[]} - The wrapped texts.\r\n */\r\nfunction getWrappedText(text, width = undefined, height = undefined, fastMode = true, separator = UNOVIS_TEXT_SEPARATOR_DEFAULT, wordBreak = false) {\r\n // Merge input text with default values and convert it to an array if it's not already\r\n const textArrays = Array.isArray(text) ? text.map(t => merge(UNOVIS_TEXT_DEFAULT, t)) : [merge(UNOVIS_TEXT_DEFAULT, text)];\r\n // Break input text into lines based on width and separator\r\n const textWrapped = textArrays.map(block => breakTextIntoLines(block, width, fastMode, separator, wordBreak));\r\n const firstBlock = textArrays[0];\r\n let h = -firstBlock.fontSize * (firstBlock.lineHeight - 1);\r\n const blocks = [];\r\n // Process each text block and its lines based on height limit\r\n textArrays.forEach((text, i) => {\r\n var _a;\r\n let lines = textWrapped[i];\r\n const prevBlock = i > 0 ? blocks[i - 1] : undefined;\r\n const prevBlockMarginBottomPx = prevBlock ? prevBlock.marginBottom : 0;\r\n const marginTopPx = text.marginTop;\r\n const effectiveMarginPx = Math.max(prevBlockMarginBottomPx, marginTopPx);\r\n h += effectiveMarginPx;\r\n const dh = text.fontSize * text.lineHeight;\r\n let maxWidth = 0;\r\n // Iterate over lines and handle text overflow based on the height limit if provided\r\n for (let k = 0; k < lines.length; k += 1) {\r\n let line = lines[k];\r\n h += dh;\r\n const lineWithEllipsis = `${line} …`;\r\n const textLengthPx = fastMode\r\n ? estimateStringPixelLength(lineWithEllipsis, text.fontSize, text.fontWidthToHeightRatio)\r\n : getPreciseStringLengthPx(lineWithEllipsis, text.fontFamily, text.fontSize);\r\n maxWidth = Math.max(textLengthPx, maxWidth);\r\n if (height && (h + dh) > height && (k !== lines.length - 1)) {\r\n // Remove hyphen character from the end of the line if it's there\r\n const lastCharacter = line.charAt(line.length - 1);\r\n if (lastCharacter === UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT) {\r\n line = line.substr(0, lines[k].length - 1);\r\n }\r\n if (textLengthPx < width) {\r\n lines[k] = lineWithEllipsis;\r\n }\r\n else {\r\n lines[k] = `${lines[k].substr(0, lines[k].length - 2)}…`;\r\n }\r\n lines = lines.slice(0, k + 1);\r\n break;\r\n }\r\n }\r\n // Create wrapped text block with its calculated properties\r\n blocks.push(Object.assign(Object.assign({}, text), { _lines: lines, _estimatedHeight: h - ((prevBlock === null || prevBlock === void 0 ? void 0 : prevBlock._estimatedHeight) || 0), _maxWidth: Math.max(maxWidth, (_a = prevBlock === null || prevBlock === void 0 ? void 0 : prevBlock._maxWidth) !== null && _a !== void 0 ? _a : 0) }));\r\n });\r\n return blocks;\r\n}\r\n/**\r\n * Renders a text or array of texts to SVG tspan strings.\r\n *\r\n * @param {UnovisWrappedText[]} blocks - The wrapped text blocks.\r\n * @param {number} [x=0] - The x-coordinate for the tspan elements.\r\n * @param {number} [y] - The y-coordinate for the tspan elements.\r\n * @returns {string[]} - The SVG tspan strings.\r\n */\r\nfunction renderTextToTspanStrings(blocks, x = 0, y) {\r\n return blocks.map((b, i) => {\r\n const prevBlock = i > 0 ? blocks[i - 1] : undefined;\r\n const prevBlockMarginBottomEm = prevBlock ? prevBlock.marginBottom / prevBlock.fontSize : 0;\r\n const marginTopEm = b.marginTop / b.fontSize;\r\n const marginEm = Math.max(prevBlockMarginBottomEm, marginTopEm);\r\n const attributes = {\r\n fontSize: b.fontSize,\r\n fontFamily: b.fontFamily,\r\n fontWeight: b.fontWeight,\r\n fill: b.color,\r\n y: (i === 0) && y,\r\n };\r\n const attributesString = Object.entries(attributes)\r\n .filter(([_, value]) => value)\r\n .map(([key, value]) => `${kebabCase(key)}=\"${escapeStringKeepHash(value.toString())}\"`)\r\n .join(' ');\r\n return `<tspan xmlns=\"http://www.w3.org/2000/svg\" ${attributesString}>${b._lines.map((line, k) => {\r\n let dy;\r\n if (i === 0 && k === 0)\r\n dy = 0.8 + marginEm;\r\n else if (k === 0)\r\n dy = marginEm + b.lineHeight;\r\n else\r\n dy = b.lineHeight;\r\n return `<tspan x=\"${x}\" dy=\"${dy}em\">${line.length ? line : ' '}</tspan>`;\r\n }).join('')}</tspan>`;\r\n });\r\n}\r\n/**\r\n * Estimates the height of wrapped text blocks.\r\n *\r\n * @export\r\n * @param {UnovisWrappedText[]} blocks - The wrapped text blocks.\r\n * @returns {number} - The estimated height of the wrapped text blocks.\r\n */\r\nfunction estimateWrappedTextHeight(blocks) {\r\n return sum(blocks, b => b._estimatedHeight);\r\n}\r\nconst allowedSvgTextTags = ['text', 'tspan', 'textPath', 'altGlyph', 'altGlyphDef', 'altGlyphItem', 'glyphRef', 'textRef', 'textArea'];\r\n/**\r\n * Renders a text or array of texts to an SVG text element.\r\n * Calling this function will replace the contents of the specified SVG text element.\r\n *\r\n * @export\r\n * @param {SVGTextElement} textElement - The SVG text element to render the text into.\r\n * @param {UnovisText | UnovisText[]} text - The text or array of texts to render.\r\n * @param {UnovisTextOptions} options - The text options.\r\n */\r\nfunction renderTextToSvgTextElement(textElement, text, options, trimmed) {\r\n var _a, _b;\r\n const wrappedText = getWrappedText(text, options.width, undefined, options.fastMode, options.separator, options.wordBreak);\r\n const textElementX = (_a = options.x) !== null && _a !== void 0 ? _a : +textElement.getAttribute('x');\r\n const textElementY = (_b = options.y) !== null && _b !== void 0 ? _b : +textElement.getAttribute('y');\r\n const x = textElementX !== null && textElementX !== void 0 ? textElementX : 0;\r\n let y = textElementY !== null && textElementY !== void 0 ? textElementY : 0;\r\n if (options.textAlign) {\r\n textElement.setAttribute('text-anchor', getTextAnchorFromTextAlign(options.textAlign));\r\n }\r\n if (options.verticalAlign && options.verticalAlign !== VerticalAlign.Top) {\r\n const height = estimateWrappedTextHeight(wrappedText);\r\n const dy = options.verticalAlign === VerticalAlign.Middle ? -height / 2\r\n : options.verticalAlign === VerticalAlign.Bottom ? -height : 0;\r\n y += dy;\r\n }\r\n if (options.textRotationAngle) {\r\n textElement.setAttribute('transform', `rotate(${(options.textRotationAngle === 0 || options.textRotationAngle) ? options.textRotationAngle : 0} ${x} ${y})`);\r\n }\r\n else {\r\n textElement.removeAttribute('transform');\r\n }\r\n if (!trimmed) {\r\n const parser = new DOMParser();\r\n textElement.textContent = '';\r\n wrappedText.forEach(block => {\r\n const svgCode = renderTextToTspanStrings([block], x, y).join('');\r\n const svgCodeSanitized = striptags(svgCode, allowedSvgTextTags);\r\n const parsedSvgCode = parser.parseFromString(svgCodeSanitized, 'image/svg+xml').firstChild;\r\n textElement.appendChild(parsedSvgCode);\r\n });\r\n }\r\n}\r\n/**\r\n * Renders a text or array of texts into a frame.\r\n * Calling this function will replace the contents of the specified SVG group.\r\n *\r\n * @export\r\n * @param {SVGGElement} group - The SVG group element to render the text into.\r\n * @param {UnovisText | UnovisText[]} text - The text or array of texts to render.\r\n * @param {UnovisTextFrameOptions} frameOptions - The text frame options.\r\n */\r\nfunction renderTextIntoFrame(group, text, frameOptions) {\r\n var _a, _b;\r\n const wrappedText = getWrappedText(text, frameOptions.width, frameOptions.height, frameOptions.fastMode, frameOptions.separator, frameOptions.wordBreak);\r\n const x = frameOptions.textAlign === TextAlign.Center ? frameOptions.width / 2\r\n : frameOptions.textAlign === TextAlign.Right ? frameOptions.width : 0;\r\n let y = 0;\r\n const height = estimateWrappedTextHeight(wrappedText);\r\n // If the frame has height, the text will be vertically aligned within the frame.\r\n // If not, the text will be aligned against the `y` position of the frame.\r\n const dh = frameOptions.height - height;\r\n y = frameOptions.verticalAlign === VerticalAlign.Middle ? dh / 2\r\n : frameOptions.verticalAlign === VerticalAlign.Bottom ? dh : 0;\r\n const translate = (frameOptions.x || frameOptions.y)\r\n ? `transform=\"translate(${(_a = frameOptions.x) !== null && _a !== void 0 ? _a : 0},${(_b = frameOptions.y) !== null && _b !== void 0 ? _b : 0})\"`\r\n : '';\r\n const svgCode = `<text\n xmlns=\"http://www.w3.org/2000/svg\"\n text-anchor=\"${getTextAnchorFromTextAlign(frameOptions.textAlign)}\"\n ${translate}\n >\n ${renderTextToTspanStrings(wrappedText, x, y).join('')}\n </text>`;\r\n const parser = new DOMParser();\r\n const svgCodeSanitized = striptags(svgCode, allowedSvgTextTags);\r\n const parsedSvgCode = parser.parseFromString(svgCodeSanitized, 'image/svg+xml').firstChild;\r\n group.textContent = '';\r\n group.appendChild(parsedSvgCode);\r\n}\n\nexport { allowedSvgTextTags, escapeStringKeepHash, estimateStringPixelLength, estimateTextSize, estimateWrappedTextHeight, getPreciseStringLengthPx, getWrappedText, kebabCase, kebabCaseToCamel, renderTextIntoFrame, renderTextToSvgTextElement, splitString, trimSVGText, trimString, trimStringEnd, trimStringMiddle, trimStringStart, wrapSVGText };\n//# sourceMappingURL=text.js.map\n"],"names":["kebabCase","str","_a","x","escapeStringKeepHash","trimStringStart","maxLength","trimStringMiddle","dist","trimStringEnd","trimString","length","type","TrimMode","result","splitString","text","separators","i","sep","d","index","separated","words","word","j","flatten","wrapSVGText","textElement","width","separator","isArray","tspan","tspanContent","tspanText","trimSVGText","svgTextSelection","maxWidth","trimType","fastMode","fontSize","fontWidthToHeightRatio","textLength","textWidth","maxCharacters","estimateStringPixelLength","getFontWidthToHeightRatio","getPreciseStringLengthPx","fontFamily","svgNS","svg","breakTextIntoLines","textBlock","UNOVIS_TEXT_SEPARATOR_DEFAULT","wordBreak","lines","line","minCharactersOnLine","breakIndex","subLine","UNOVIS_TEXT_HYPHEN_CHARACTER_DEFAULT","getWrappedText","height","textArrays","t","merge","UNOVIS_TEXT_DEFAULT","textWrapped","block","firstBlock","h","blocks","prevBlock","prevBlockMarginBottomPx","marginTopPx","effectiveMarginPx","dh","k","lineWithEllipsis","textLengthPx","renderTextToTspanStrings","y","b","prevBlockMarginBottomEm","marginTopEm","marginEm","attributes","_","value","key","dy","estimateWrappedTextHeight","sum","allowedSvgTextTags","renderTextToSvgTextElement","options","trimmed","_b","wrappedText","textElementX","textElementY","getTextAnchorFromTextAlign","VerticalAlign","parser","svgCode","svgCodeSanitized","striptags","parsedSvgCode"],"mappings":";;;;;;AAqBA,SAASA,EAAUC,GAAK;AACpB,MAAIC;AACJ,UAAQA,IAAKD,EAAI,MAAM,8DAA8D,OAAO,QAAQC,MAAO,SAAS,SAASA,EAAG,OAAO,OAAO,EAAE,IAAI,CAAAC,MAAKA,EAAE,aAAa,EAAE,KAAK,GAAG;AACtL;AACA,SAASC,EAAqBH,GAAK;AAC/B,SAAOA,EACF,QAAQ,SAAS,OAAO,EAExB,QAAQ,WAAW,KAAK,EACxB,QAAQ,OAAO,KAAK,EACpB,QAAQ,OAAO,KAAK,EACpB,QAAQ,OAAO,KAAK,EACpB,QAAQ,OAAO,KAAK,EACpB,QAAQ,OAAO,KAAK;AAC7B;AAOA,SAASI,EAAgBJ,GAAKK,IAAY,IAAI;AAC1C,SAAKL,IAEEA,EAAI,SAASK,IAAY,IAAIL,EAAI,OAAOA,EAAI,SAASK,GAAWA,CAAS,CAAC,KAAKL,IAD3E;AAEf;AAOA,SAASM,EAAiBN,GAAKK,IAAY,IAAI;AAC3C,MAAI,CAACL;AACD,WAAO;AACX,QAAMO,IAAO,KAAK,OAAOF,IAAY,KAAK,CAAC;AAC3C,SAAOL,EAAI,SAASK,IAAY,GAAGL,EAAI,OAAO,GAAGO,CAAI,CAAC,IAAIP,EAAI,OAAO,CAACO,GAAMA,CAAI,CAAC,KAAKP;AAC1F;AAOA,SAASQ,EAAcR,GAAKK,IAAY,IAAI;AACx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Y,aAAa,GAAG,GAC9FwE,KAAgBH,IAAKF,EAAQ,OAAO,QAAQE,MAAO,SAASA,IAAK,CAACrE,EAAY,aAAa,GAAG,GAC9FzB,IAAIgG,KAAkE;AAC5E,MAAIlB,IAAImB,KAAkE;AAI1E,MAHIL,EAAQ,aACRnE,EAAY,aAAa,eAAeyE,EAA2BN,EAAQ,SAAS,CAAC,GAErFA,EAAQ,iBAAiBA,EAAQ,kBAAkBO,EAAc,KAAK;AACtE,UAAMxC,IAAS6B,EAA0BO,CAAW,GAC9CR,IAAKK,EAAQ,kBAAkBO,EAAc,SAAS,CAACxC,IAAS,IAChEiC,EAAQ,kBAAkBO,EAAc,SAAS,CAACxC,IAAS;AACjE,IAAAmB,KAAKS;AAAA,EACR;AACD,EAAIK,EAAQ,oBACRnE,EAAY,aAAa,aAAa,UAAWmE,EAAQ,sBAAsB,KAAKA,EAAQ,oBAAqBA,EAAQ,oBAAoB,CAAC,IAAI5F,CAAC,IAAI8E,CAAC,GAAG,IAG3JrD,EAAY,gBAAgB,WAAW;AAE7B;AACV,UAAM2E,IAAS,IAAI;AACnB,IAAA3E,EAAY,cAAc,IAC1BsE,EAAY,QAAQ,CAAA9B,MAAS;AACzB,YAAMoC,IAAUxB,EAAyB,CAACZ,CAAK,GAAGjE,GAAG8E,CAAC,EAAE,KAAK,EAAE,GACzDwB,IAAmBC,EAAUF,GAASX,CAAkB,GACxDc,IAAgBJ,EAAO,gBAAgBE,GAAkB,eAAe,EAAE;AAChF,MAAA7E,EAAY,YAAY+E,CAAa;AAAA,IACjD,CAAS;AAAA,EACJ;AACL;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),s=require("../../utils/props.cjs"),d=require("../../utils/context.cjs"),v=require("../../../ts/components/area/index.cjs"),y={"data-vis-component":""},m=t.defineComponent({__name:"index",props:{color:{},curveType:{},baseline:{},opacity:{},cursor:{},minHeight1Px:{type:Boolean},x:{},y:{},id:{type:Function},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(i,{expose:p}){const a=t.inject(d.componentAccessorKey),r=i,n=t.computed(()=>a.data.value??r.data),u=s.useForwardProps(r),o=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;o.value=new v.Area(u.value),(e=o.value)==null||e.setData(n.value),a.update(o.value)})}),t.onUnmounted(()=>{var e;(e=o.value)==null||e.destroy(),a.destroy()}),t.watch(u,(e,l)=>{var c;s.arePropsEqual(e,l)||(c=o.value)==null||c.setConfig(u.value)}),t.watch(n,()=>{var e;(e=o.value)==null||e.setData(n.value)}),p({component:o}),(e,l)=>(t.openBlock(),t.createElementBlock("div",y))}});exports.default=m;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/@unovis/vue/components/area/index.js"],"sourcesContent":["import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as f, nextTick as x, onUnmounted as _, watch as u, openBlock as F, createElementBlock as b } from \"vue\";\nimport { Area as i } from \"@unovis/ts\";\nimport { useForwardProps as h, arePropsEqual as B } from \"../../utils/props.js\";\nimport { componentAccessorKey as g } from \"../../utils/context.js\";\nconst j = { \"data-vis-component\": \"\" }, D = i.selectors, P = /* @__PURE__ */ d({\n __name: \"index\",\n props: {\n color: {},\n curveType: {},\n baseline: {},\n opacity: {},\n cursor: {},\n minHeight1Px: { type: Boolean },\n x: {},\n y: {},\n id: { type: Function },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(l, { expose: p }) {\n const o = m(g), c = l, a = v(() => o.data.value ?? c.data), n = h(c), t = y();\n return f(() => {\n x(() => {\n var e;\n t.value = new i(n.value), (e = t.value) == null || e.setData(a.value), o.update(t.value);\n });\n }), _(() => {\n var e;\n (e = t.value) == null || e.destroy(), o.destroy();\n }), u(n, (e, r) => {\n var s;\n B(e, r) || (s = t.value) == null || s.setConfig(n.value);\n }), u(a, () => {\n var e;\n (e = t.value) == null || e.setData(a.value);\n }), p({\n component: t\n }), (e, r) => (F(), b(\"div\", j));\n }\n});\nexport {\n D as VisAreaSelectors,\n P as default\n};\n//# sourceMappingURL=index.js.map\n"],"names":["j","P","d","l","o","m","g","c","a","v","n","h","t","y","f","x","i","_","u","r","s","B","F","b"],"mappings":"8PAIMA,EAAI,CAAE,qBAAsB,EAAI,EAAmBC,EAAoBC,EAAAA,gBAAE,CAC7E,OAAQ,QACR,MAAO,CACL,MAAO,CAAE,EACT,UAAW,CAAE,EACb,SAAU,CAAE,EACZ,QAAS,CAAE,EACX,OAAQ,CAAE,EACV,aAAc,CAAE,KAAM,OAAS,EAC/B,EAAG,CAAE,EACL,EAAG,CAAE,EACL,GAAI,CAAE,KAAM,QAAU,EACtB,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAG,EACpC,OAAQ,CAAE,KAAM,CAAC,OAAQ,QAAQ,CAAG,EACpC,6BAA8B,CAAE,KAAM,OAAS,EAC/C,SAAU,CAAE,EACZ,OAAQ,CAAE,EACV,WAAY,CAAE,EACd,KAAM,CAAA,CACP,EACD,MAAMC,EAAG,CAAE,OAAQ,CAAC,EAAI,CACtB,MAAMC,EAAIC,EAAC,OAACC,sBAAC,EAAGC,EAAIJ,EAAGK,EAAIC,EAAC,SAAC,IAAML,EAAE,KAAK,OAASG,EAAE,IAAI,EAAGG,EAAIC,EAAAA,gBAAEJ,CAAC,EAAGK,EAAIC,MAAG,EAC7E,OAAOC,EAAC,UAAC,IAAM,CACbC,EAAAA,SAAE,IAAM,CACN,IAAI,EACJH,EAAE,MAAQ,IAAII,OAAEN,EAAE,KAAK,GAAI,EAAIE,EAAE,QAAU,MAAQ,EAAE,QAAQJ,EAAE,KAAK,EAAGJ,EAAE,OAAOQ,EAAE,KAAK,CAC/F,CAAO,CACP,CAAK,EAAGK,EAAC,YAAC,IAAM,CACV,IAAI,GACH,EAAIL,EAAE,QAAU,MAAQ,EAAE,QAAO,EAAIR,EAAE,QAAS,CAClD,CAAA,EAAGc,EAAAA,MAAER,EAAG,CAAC,EAAGS,IAAM,CACjB,IAAIC,EACJC,EAAAA,cAAE,EAAGF,CAAC,IAAMC,EAAIR,EAAE,QAAU,MAAQQ,EAAE,UAAUV,EAAE,KAAK,CAC7D,CAAK,EAAGQ,EAAAA,MAAEV,EAAG,IAAM,CACb,IAAI,GACH,EAAII,EAAE,QAAU,MAAQ,EAAE,QAAQJ,EAAE,KAAK,CAC3C,CAAA,EAAG,EAAE,CACJ,UAAWI,CACjB,CAAK,EAAG,CAAC,EAAGO,KAAOG,EAAAA,UAAG,EAAEC,qBAAE,MAAOvB,CAAC,EAClC,CACA,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
import { defineComponent as i, inject as m, computed as v, ref as d, createElementBlock as y, onMounted as f, nextTick as x, onUnmounted as F, watch as c, openBlock as b } from "vue";
|
|
2
|
-
import { useForwardProps as j, arePropsEqual as B } from "../../utils/props.js";
|
|
3
|
-
import { componentAccessorKey as P } from "../../utils/context.js";
|
|
4
|
-
import { Area as k } from "../../../ts/components/area/index.js";
|
|
5
|
-
const w = { "data-vis-component": "" }, A = /* @__PURE__ */ i({
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
color: {},
|
|
9
|
-
curveType: {},
|
|
10
|
-
baseline: {},
|
|
11
|
-
opacity: {},
|
|
12
|
-
cursor: {},
|
|
13
|
-
minHeight1Px: { type: Boolean },
|
|
14
|
-
x: {},
|
|
15
|
-
y: {},
|
|
16
|
-
id: { type: Function },
|
|
17
|
-
xScale: { type: [Object, Function] },
|
|
18
|
-
yScale: { type: [Object, Function] },
|
|
19
|
-
excludeFromDomainCalculation: { type: Boolean },
|
|
20
|
-
duration: {},
|
|
21
|
-
events: {},
|
|
22
|
-
attributes: {},
|
|
23
|
-
data: {}
|
|
24
|
-
},
|
|
25
|
-
setup(p, { expose: s }) {
|
|
26
|
-
const t = m(P), r = p, a = v(() => t.data.value ?? r.data), n = j(r), o = d();
|
|
27
|
-
return f(() => {
|
|
28
|
-
x(() => {
|
|
29
|
-
var e;
|
|
30
|
-
o.value = new k(n.value), (e = o.value) == null || e.setData(a.value), t.update(o.value);
|
|
31
|
-
});
|
|
32
|
-
}), F(() => {
|
|
33
|
-
var e;
|
|
34
|
-
(e = o.value) == null || e.destroy(), t.destroy();
|
|
35
|
-
}), c(n, (e, l) => {
|
|
36
|
-
var u;
|
|
37
|
-
B(e, l) || (u = o.value) == null || u.setConfig(n.value);
|
|
38
|
-
}), c(a, () => {
|
|
39
|
-
var e;
|
|
40
|
-
(e = o.value) == null || e.setData(a.value);
|
|
41
|
-
}), s({
|
|
42
|
-
component: o
|
|
43
|
-
}), (e, l) => (b(), y("div", w));
|
|
44
|
-
}
|
|
45
|
-
});
|
|
46
|
-
export {
|
|
47
|
-
A as default
|
|
48
|
-
};
|
|
49
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../node_modules/@unovis/vue/components/area/index.js"],"sourcesContent":["import { defineComponent as d, inject as m, computed as v, ref as y, onMounted as f, nextTick as x, onUnmounted as _, watch as u, openBlock as F, createElementBlock as b } from \"vue\";\nimport { Area as i } from \"@unovis/ts\";\nimport { useForwardProps as h, arePropsEqual as B } from \"../../utils/props.js\";\nimport { componentAccessorKey as g } from \"../../utils/context.js\";\nconst j = { \"data-vis-component\": \"\" }, D = i.selectors, P = /* @__PURE__ */ d({\n __name: \"index\",\n props: {\n color: {},\n curveType: {},\n baseline: {},\n opacity: {},\n cursor: {},\n minHeight1Px: { type: Boolean },\n x: {},\n y: {},\n id: { type: Function },\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(l, { expose: p }) {\n const o = m(g), c = l, a = v(() => o.data.value ?? c.data), n = h(c), t = y();\n return f(() => {\n x(() => {\n var e;\n t.value = new i(n.value), (e = t.value) == null || e.setData(a.value), o.update(t.value);\n });\n }), _(() => {\n var e;\n (e = t.value) == null || e.destroy(), o.destroy();\n }), u(n, (e, r) => {\n var s;\n B(e, r) || (s = t.value) == null || s.setConfig(n.value);\n }), u(a, () => {\n var e;\n (e = t.value) == null || e.setData(a.value);\n }), p({\n component: t\n }), (e, r) => (F(), b(\"div\", j));\n }\n});\nexport {\n D as VisAreaSelectors,\n P as default\n};\n//# sourceMappingURL=index.js.map\n"],"names":["j","P","d","l","p","o","m","g","c","v","h","t","y","f","x","i","_","u","r","s","B","F","b"],"mappings":";;;;AAIK,MAACA,IAAI,EAAE,sBAAsB,GAAI,GAAmBC,IAAoBC,gBAAAA,EAAE;AAAA,EAC7E,QAAQ;AAAA,EACR,OAAO;AAAA,IACL,OAAO,CAAE;AAAA,IACT,WAAW,CAAE;AAAA,IACb,UAAU,CAAE;AAAA,IACZ,SAAS,CAAE;AAAA,IACX,QAAQ,CAAE;AAAA,IACV,cAAc,EAAE,MAAM,QAAS;AAAA,IAC/B,GAAG,CAAE;AAAA,IACL,GAAG,CAAE;AAAA,IACL,IAAI,EAAE,MAAM,SAAU;AAAA,IACtB,QAAQ,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAG;AAAA,IACpC,QAAQ,EAAE,MAAM,CAAC,QAAQ,QAAQ,EAAG;AAAA,IACpC,8BAA8B,EAAE,MAAM,QAAS;AAAA,IAC/C,UAAU,CAAE;AAAA,IACZ,QAAQ,CAAE;AAAA,IACV,YAAY,CAAE;AAAA,IACd,MAAM,CAAA;AAAA,EACP;AAAA,EACD,MAAMC,GAAG,EAAE,QAAQC,EAAC,GAAI;AACtB,UAAMC,IAAIC,EAAEC,CAAC,GAAGC,IAAIL,GAAG,IAAIM,EAAE,MAAMJ,EAAE,KAAK,SAASG,EAAE,IAAI,GAAG,IAAIE,EAAEF,CAAC,GAAGG,IAAIC,EAAG;AAC7E,WAAOC,EAAE,MAAM;AACbC,MAAAA,EAAE,MAAM;AACN,YAAI;AACJ,QAAAH,EAAE,QAAQ,IAAII,EAAE,EAAE,KAAK,IAAI,IAAIJ,EAAE,UAAU,QAAQ,EAAE,QAAQ,EAAE,KAAK,GAAGN,EAAE,OAAOM,EAAE,KAAK;AAAA,MAC/F,CAAO;AAAA,IACP,CAAK,GAAGK,EAAE,MAAM;AACV,UAAI;AACJ,OAAC,IAAIL,EAAE,UAAU,QAAQ,EAAE,QAAO,GAAIN,EAAE,QAAS;AAAA,IAClD,CAAA,GAAGY,EAAE,GAAG,CAAC,GAAGC,MAAM;AACjB,UAAIC;AACJC,MAAAA,EAAE,GAAGF,CAAC,MAAMC,IAAIR,EAAE,UAAU,QAAQQ,EAAE,UAAU,EAAE,KAAK;AAAA,IAC7D,CAAK,GAAGF,EAAE,GAAG,MAAM;AACb,UAAI;AACJ,OAAC,IAAIN,EAAE,UAAU,QAAQ,EAAE,QAAQ,EAAE,KAAK;AAAA,IAC3C,CAAA,GAAGP,EAAE;AAAA,MACJ,WAAWO;AAAA,IACjB,CAAK,GAAG,CAAC,GAAGO,OAAOG,EAAG,GAAEC,EAAE,OAAOtB,CAAC;AAAA,EAClC;AACA,CAAC;","x_google_ignoreList":[0]}
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const t=require("vue"),u=require("../../utils/props.cjs"),d=require("../../utils/context.cjs"),x=require("../../../ts/components/axis/index.cjs"),y={"data-vis-axis":""},v=t.defineComponent({__name:"index",props:{position:{},type:{},fullSize:{type:Boolean},label:{},labelFontSize:{},labelMargin:{},labelColor:{},gridLine:{type:Boolean},tickLine:{type:Boolean},domainLine:{type:Boolean},minMaxTicksOnly:{type:Boolean},minMaxTicksOnlyWhenWidthIsLess:{},tickFormat:{type:Function},tickValues:{},numTicks:{},tickTextFitMode:{},tickTextWidth:{},tickTextSeparator:{},tickTextForceWordBreak:{type:Boolean},tickTextTrimType:{},tickTextFontSize:{},tickTextAlign:{},tickTextColor:{},tickTextAngle:{},tickTextHideOverlapping:{type:Boolean},tickPadding:{},x:{},y:{},id:{type:Function},color:{},xScale:{type:[Object,Function]},yScale:{type:[Object,Function]},excludeFromDomainCalculation:{type:Boolean},duration:{},events:{},attributes:{},data:{}},setup(s,{expose:p}){const a=t.inject(d.axisAccessorKey),n=s,i=t.computed(()=>a.data.value??n.data),l=u.useForwardProps(n),o=t.ref();return t.onMounted(()=>{t.nextTick(()=>{var e;o.value=new x.Axis(l.value),(e=o.value)==null||e.setData(i.value),a.update(o.value)})}),t.onUnmounted(()=>{var e;(e=o.value)==null||e.destroy(),a.destroy(n.type)}),t.watch(l,(e,c)=>{var r;u.arePropsEqual(e,c)||(r=o.value)==null||r.setConfig(l.value)}),t.watch(i,()=>{var e;(e=o.value)==null||e.setData(i.value)}),p({component:o}),(e,c)=>(t.openBlock(),t.createElementBlock("div",y))}});exports.default=v;
|
|
2
|
-
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../../node_modules/@unovis/vue/components/axis/index.js"],"sourcesContent":["import { defineComponent as d, inject as x, computed as m, ref as y, onMounted as k, nextTick as T, onUnmounted as v, watch as s, openBlock as f, createElementBlock as B } from \"vue\";\nimport { Axis as r } from \"@unovis/ts\";\nimport { useForwardProps as F, arePropsEqual as g } from \"../../utils/props.js\";\nimport { axisAccessorKey as _ } from \"../../utils/context.js\";\nconst b = { \"data-vis-axis\": \"\" }, M = r.selectors, O = /* @__PURE__ */ d({\n __name: \"index\",\n props: {\n position: {},\n type: {},\n fullSize: { type: Boolean },\n label: {},\n labelFontSize: {},\n labelMargin: {},\n labelColor: {},\n gridLine: { type: Boolean },\n tickLine: { type: Boolean },\n domainLine: { type: Boolean },\n minMaxTicksOnly: { type: Boolean },\n minMaxTicksOnlyWhenWidthIsLess: {},\n tickFormat: { type: Function },\n tickValues: {},\n numTicks: {},\n tickTextFitMode: {},\n tickTextWidth: {},\n tickTextSeparator: {},\n tickTextForceWordBreak: { type: Boolean },\n tickTextTrimType: {},\n tickTextFontSize: {},\n tickTextAlign: {},\n tickTextColor: {},\n tickTextAngle: {},\n tickTextHideOverlapping: { type: Boolean },\n tickPadding: {},\n x: {},\n y: {},\n id: { type: Function },\n color: {},\n xScale: { type: [Object, Function] },\n yScale: { type: [Object, Function] },\n excludeFromDomainCalculation: { type: Boolean },\n duration: {},\n events: {},\n attributes: {},\n data: {}\n },\n setup(p, { expose: u }) {\n const o = x(_), a = p, n = m(() => o.data.value ?? a.data), i = F(a), t = y();\n return k(() => {\n T(() => {\n var e;\n t.value = new r(i.value), (e = t.value) == null || e.setData(n.value), o.update(t.value);\n });\n }), v(() => {\n var e;\n (e = t.value) == null || e.destroy(), o.destroy(a.type);\n }), s(i, (e, c) => {\n var l;\n g(e, c) || (l = t.value) == null || l.setConfig(i.value);\n }), s(n, () => {\n var e;\n (e = t.value) == null || e.setData(n.value);\n }), u({\n component: t\n }), (e, c) => (f(), B(\"div\", b));\n }\n});\nexport {\n M as VisAxisSelectors,\n O as default\n};\n//# sourceMappingURL=index.js.map\n"],"names":["b","O","d","p","u","o","x","_","a","n","m","i","F","t","y","k","T","r","v","s","l","g","f","B"],"mappings":"8PAIMA,EAAI,CAAE,gBAAiB,EAAI,EAAmBC,EAAoBC,EAAAA,gBAAE,CACxE,OAAQ,QACR,MAAO,CACL,SAAU,CAAE,EACZ,KAAM,CAAE,EACR,SAAU,CAAE,KAAM,OAAS,EAC3B,MAAO,CAAE,EACT,cAAe,CAAE,EACjB,YAAa,CAAE,EACf,WAAY,CAAE,EACd,SAAU,CAAE,KAAM,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Q,EAAE,QAAO,EAAIR,EAAE,QAAQG,EAAE,IAAI,CACvD,CAAA,EAAGW,EAAAA,MAAER,EAAG,CAAC,EAAG,IAAM,CACjB,IAAIS,EACJC,EAAAA,cAAE,EAAG,CAAC,IAAMD,EAAIP,EAAE,QAAU,MAAQO,EAAE,UAAUT,EAAE,KAAK,CAC7D,CAAK,EAAGQ,EAAAA,MAAEV,EAAG,IAAM,CACb,IAAI,GACH,EAAII,EAAE,QAAU,MAAQ,EAAE,QAAQJ,EAAE,KAAK,CAC3C,CAAA,EAAGL,EAAE,CACJ,UAAWS,CACjB,CAAK,EAAG,CAAC,EAAG,KAAOS,EAAAA,UAAG,EAAEC,qBAAE,MAAOvB,CAAC,EAClC,CACA,CAAC","x_google_ignoreList":[0]}
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
import { defineComponent as s, inject as d, computed as m, ref as x, createElementBlock as y, onMounted as k, nextTick as v, onUnmounted as T, watch as r, openBlock as B } from "vue";
|
|
2
|
-
import { useForwardProps as F, arePropsEqual as f } from "../../utils/props.js";
|
|
3
|
-
import { axisAccessorKey as b } from "../../utils/context.js";
|
|
4
|
-
import { Axis as g } from "../../../ts/components/axis/index.js";
|
|
5
|
-
const O = { "data-vis-axis": "" }, A = /* @__PURE__ */ s({
|
|
6
|
-
__name: "index",
|
|
7
|
-
props: {
|
|
8
|
-
position: {},
|
|
9
|
-
type: {},
|
|
10
|
-
fullSize: { type: Boolean },
|
|
11
|
-
label: {},
|
|
12
|
-
labelFontSize: {},
|
|
13
|
-
labelMargin: {},
|
|
14
|
-
labelColor: {},
|
|
15
|
-
gridLine: { type: Boolean },
|
|
16
|
-
tickLine: { type: Boolean },
|
|
17
|
-
domainLine: { type: Boolean },
|
|
18
|
-
minMaxTicksOnly: { type: Boolean },
|
|
19
|
-
minMaxTicksOnlyWhenWidthIsLess: {},
|
|
20
|
-
tickFormat: { type: Function },
|
|
21
|
-
tickValues: {},
|
|
22
|
-
numTicks: {},
|
|
23
|
-
tickTextFitMode: {},
|
|
24
|
-
tickTextWidth: {},
|
|
25
|
-
tickTextSeparator: {},
|
|
26
|
-
tickTextForceWordBreak: { type: Boolean },
|
|
27
|
-
tickTextTrimType: {},
|
|
28
|
-
tickTextFontSize: {},
|
|
29
|
-
tickTextAlign: {},
|
|
30
|
-
tickTextColor: {},
|
|
31
|
-
tickTextAngle: {},
|
|
32
|
-
tickTextHideOverlapping: { type: Boolean },
|
|
33
|
-
tickPadding: {},
|
|
34
|
-
x: {},
|
|
35
|
-
y: {},
|
|
36
|
-
id: { type: Function },
|
|
37
|
-
color: {},
|
|
38
|
-
xScale: { type: [Object, Function] },
|
|
39
|
-
yScale: { type: [Object, Function] },
|
|
40
|
-
excludeFromDomainCalculation: { type: Boolean },
|
|
41
|
-
duration: {},
|
|
42
|
-
events: {},
|
|
43
|
-
attributes: {},
|
|
44
|
-
data: {}
|
|
45
|
-
},
|
|
46
|
-
setup(p, { expose: u }) {
|
|
47
|
-
const o = d(b), a = p, n = m(() => o.data.value ?? a.data), i = F(a), t = x();
|
|
48
|
-
return k(() => {
|
|
49
|
-
v(() => {
|
|
50
|
-
var e;
|
|
51
|
-
t.value = new g(i.value), (e = t.value) == null || e.setData(n.value), o.update(t.value);
|
|
52
|
-
});
|
|
53
|
-
}), T(() => {
|
|
54
|
-
var e;
|
|
55
|
-
(e = t.value) == null || e.destroy(), o.destroy(a.type);
|
|
56
|
-
}), r(i, (e, l) => {
|
|
57
|
-
var c;
|
|
58
|
-
f(e, l) || (c = t.value) == null || c.setConfig(i.value);
|
|
59
|
-
}), r(n, () => {
|
|
60
|
-
var e;
|
|
61
|
-
(e = t.value) == null || e.setData(n.value);
|
|
62
|
-
}), u({
|
|
63
|
-
component: t
|
|
64
|
-
}), (e, l) => (B(), y("div", O));
|
|
65
|
-
}
|
|
66
|
-
});
|
|
67
|
-
export {
|
|
68
|
-
A as default
|
|
69
|
-
};
|
|
70
|
-
//# sourceMappingURL=index.js.map
|