vue-chrts 0.1.0-beta.2-internal-20 → 0.1.0-beta.2-internal-21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_virtual/_commonjsHelpers.cjs +1 -0
- package/dist/_virtual/_commonjsHelpers.js +6 -0
- package/dist/_virtual/browser.cjs +1 -0
- package/dist/_virtual/browser.js +2 -0
- package/dist/_virtual/striptags.cjs +1 -0
- package/dist/_virtual/striptags.js +7 -0
- package/dist/_virtual/striptags2.cjs +1 -0
- package/dist/_virtual/striptags2.js +4 -0
- package/dist/components/Area/AreaChart.cjs +6 -0
- package/dist/components/Area/AreaChart.js +141 -0
- package/dist/components/Area/AreaChart.vue.d.ts +14 -0
- package/dist/components/Area/AreaChart2.cjs +1 -0
- package/dist/components/Area/AreaChart2.js +4 -0
- package/dist/components/Area/index.d.ts +2 -0
- package/dist/components/Area/types.d.ts +82 -0
- package/dist/components/AreaStacked/AreaStackedChart.cjs +1 -0
- package/dist/components/AreaStacked/AreaStackedChart.js +74 -0
- package/dist/components/AreaStacked/AreaStackedChart.vue.d.ts +20 -0
- package/dist/components/AreaStacked/AreaStackedChart2.cjs +1 -0
- package/dist/components/AreaStacked/AreaStackedChart2.js +4 -0
- package/dist/components/AreaStacked/index.d.ts +1 -0
- package/dist/components/Bar/BarChart.cjs +1 -0
- package/dist/components/Bar/BarChart.js +121 -0
- package/dist/components/Bar/BarChart.vue.d.ts +33 -0
- package/dist/components/Bar/BarChart2.cjs +1 -0
- package/dist/components/Bar/BarChart2.js +4 -0
- package/dist/components/Bar/index.d.ts +1 -0
- package/dist/components/Crosshair/Crosshair.vue.d.ts +12 -0
- package/dist/components/Crosshair/index.d.ts +1 -0
- package/dist/components/Donut/DonutChart.cjs +5 -0
- package/dist/components/Donut/DonutChart.js +62 -0
- package/dist/components/Donut/DonutChart.vue.d.ts +18 -0
- package/dist/components/Donut/DonutChart2.cjs +1 -0
- package/dist/components/Donut/DonutChart2.js +4 -0
- package/dist/components/Donut/index.cjs +1 -0
- package/dist/components/Donut/index.d.ts +17 -0
- package/dist/components/Donut/index.js +5 -0
- package/dist/components/Line/LineChart.cjs +1 -0
- package/dist/components/Line/LineChart.js +97 -0
- package/dist/components/Line/LineChart.vue.d.ts +27 -0
- package/dist/components/Line/LineChart2.cjs +1 -0
- package/dist/components/Line/LineChart2.js +4 -0
- package/dist/components/Line/index.d.ts +1 -0
- package/dist/components/Tooltip.cjs +1 -0
- package/dist/components/Tooltip.js +37 -0
- package/dist/components/Tooltip.vue.d.ts +19 -0
- package/dist/components/Tooltip2.cjs +1 -0
- package/dist/components/Tooltip2.js +4 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +12 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.cjs +1 -0
- package/dist/node_modules/@emotion/cache/dist/emotion-cache.browser.esm.js +279 -0
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.cjs +1 -0
- package/dist/node_modules/@emotion/css/create-instance/dist/emotion-css-create-instance.esm.js +86 -0
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.cjs +1 -0
- package/dist/node_modules/@emotion/css/dist/emotion-css.esm.js +8 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.cjs +1 -0
- package/dist/node_modules/@emotion/hash/dist/emotion-hash.esm.js +22 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.cjs +1 -0
- package/dist/node_modules/@emotion/memoize/dist/emotion-memoize.esm.js +9 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.cjs +1 -0
- package/dist/node_modules/@emotion/serialize/dist/emotion-serialize.esm.js +123 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.cjs +1 -0
- package/dist/node_modules/@emotion/sheet/dist/emotion-sheet.esm.js +44 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.cjs +1 -0
- package/dist/node_modules/@emotion/unitless/dist/emotion-unitless.esm.js +53 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.cjs +1 -0
- package/dist/node_modules/@emotion/utils/dist/emotion-utils.browser.esm.js +29 -0
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/DOMRectReadOnly.js +15 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObservation.js +20 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserver.js +31 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverBoxOptions.js +7 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverController.js +31 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverDetail.js +9 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverEntry.js +12 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/ResizeObserverSize.js +10 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/broadcastActiveObservations.js +26 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateBoxSize.js +42 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/calculateDepthForNode.js +11 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/deliverResizeLoopError.js +9 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/gatherActiveObservationsAtDepth.js +12 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasActiveObservations.js +9 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/algorithms/hasSkippedObservations.js +9 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/element.js +37 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/freeze.js +6 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/global.js +4 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/process.js +14 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueMicroTask.js +18 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/queueResizeObserver.js +9 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/resizeObservers.js +4 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.cjs +1 -0
- package/dist/node_modules/@juggle/resize-observer/lib/utils/scheduler.js +70 -0
- package/dist/node_modules/@unovis/ts/components/area/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/area/config.js +6 -0
- package/dist/node_modules/@unovis/ts/components/area/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/area/index.js +52 -0
- package/dist/node_modules/@unovis/ts/components/area/style.cjs +35 -0
- package/dist/node_modules/@unovis/ts/components/area/style.js +41 -0
- package/dist/node_modules/@unovis/ts/components/axis/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/axis/config.js +6 -0
- package/dist/node_modules/@unovis/ts/components/axis/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/axis/index.js +287 -0
- package/dist/node_modules/@unovis/ts/components/axis/style.cjs +101 -0
- package/dist/node_modules/@unovis/ts/components/axis/style.js +114 -0
- package/dist/node_modules/@unovis/ts/components/axis/types.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/axis/types.js +7 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/config.js +18 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/index.js +36 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/modules/shape.js +48 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.cjs +63 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/style.js +73 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/bullet-legend/types.js +10 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/config.js +5 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/index.js +119 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/style.cjs +22 -0
- package/dist/node_modules/@unovis/ts/components/crosshair/style.js +29 -0
- package/dist/node_modules/@unovis/ts/components/donut/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/donut/config.js +8 -0
- package/dist/node_modules/@unovis/ts/components/donut/constants.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/donut/constants.js +11 -0
- package/dist/node_modules/@unovis/ts/components/donut/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/donut/index.js +57 -0
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/donut/modules/arc.js +37 -0
- package/dist/node_modules/@unovis/ts/components/donut/style.cjs +58 -0
- package/dist/node_modules/@unovis/ts/components/donut/style.js +68 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/config.js +6 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/index.js +121 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.cjs +35 -0
- package/dist/node_modules/@unovis/ts/components/grouped-bar/style.js +43 -0
- package/dist/node_modules/@unovis/ts/components/line/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/line/config.js +6 -0
- package/dist/node_modules/@unovis/ts/components/line/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/line/index.js +86 -0
- package/dist/node_modules/@unovis/ts/components/line/style.cjs +35 -0
- package/dist/node_modules/@unovis/ts/components/line/style.js +45 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/config.js +6 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/index.js +111 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.cjs +34 -0
- package/dist/node_modules/@unovis/ts/components/stacked-bar/style.js +42 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/config.js +17 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/index.js +166 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/style.cjs +61 -0
- package/dist/node_modules/@unovis/ts/components/tooltip/style.js +71 -0
- package/dist/node_modules/@unovis/ts/containers/single-container/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/containers/single-container/config.js +5 -0
- package/dist/node_modules/@unovis/ts/containers/single-container/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/containers/single-container/index.js +71 -0
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/containers/xy-container/config.js +6 -0
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.cjs +3 -0
- package/dist/node_modules/@unovis/ts/containers/xy-container/index.js +185 -0
- package/dist/node_modules/@unovis/ts/core/component/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/component/config.js +8 -0
- package/dist/node_modules/@unovis/ts/core/component/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/component/index.js +68 -0
- package/dist/node_modules/@unovis/ts/core/container/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/container/config.js +24 -0
- package/dist/node_modules/@unovis/ts/core/container/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/container/index.js +73 -0
- package/dist/node_modules/@unovis/ts/core/xy-component/config.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/xy-component/config.js +8 -0
- package/dist/node_modules/@unovis/ts/core/xy-component/index.cjs +1 -0
- package/dist/node_modules/@unovis/ts/core/xy-component/index.js +53 -0
- package/dist/node_modules/@unovis/ts/data-models/core.cjs +1 -0
- package/dist/node_modules/@unovis/ts/data-models/core.js +14 -0
- package/dist/node_modules/@unovis/ts/data-models/series.cjs +1 -0
- package/dist/node_modules/@unovis/ts/data-models/series.js +16 -0
- package/dist/node_modules/@unovis/ts/styles/colors.cjs +1 -0
- package/dist/node_modules/@unovis/ts/styles/colors.js +18 -0
- package/dist/node_modules/@unovis/ts/styles/index.cjs +38 -0
- package/dist/node_modules/@unovis/ts/styles/index.js +63 -0
- package/dist/node_modules/@unovis/ts/styles/patterns.cjs +15 -0
- package/dist/node_modules/@unovis/ts/styles/patterns.js +45 -0
- package/dist/node_modules/@unovis/ts/types/component.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/component.js +12 -0
- package/dist/node_modules/@unovis/ts/types/curve.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/curve.js +43 -0
- package/dist/node_modules/@unovis/ts/types/direction.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/direction.js +7 -0
- package/dist/node_modules/@unovis/ts/types/position.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/position.js +22 -0
- package/dist/node_modules/@unovis/ts/types/scale.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/scale.js +40 -0
- package/dist/node_modules/@unovis/ts/types/svg.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/svg.js +15 -0
- package/dist/node_modules/@unovis/ts/types/symbol.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/symbol.js +24 -0
- package/dist/node_modules/@unovis/ts/types/text.cjs +1 -0
- package/dist/node_modules/@unovis/ts/types/text.js +22 -0
- package/dist/node_modules/@unovis/ts/utils/color.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/color.js +8 -0
- package/dist/node_modules/@unovis/ts/utils/d3.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/d3.js +12 -0
- package/dist/node_modules/@unovis/ts/utils/data.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/data.js +169 -0
- package/dist/node_modules/@unovis/ts/utils/misc.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/misc.js +28 -0
- package/dist/node_modules/@unovis/ts/utils/path.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/path.js +9 -0
- package/dist/node_modules/@unovis/ts/utils/resize-observer.cjs +1 -0
- package/dist/node_modules/@unovis/ts/utils/resize-observer.js +6 -0
- package/dist/node_modules/@unovis/ts/utils/text.cjs +2 -0
- package/dist/node_modules/@unovis/ts/utils/text.js +178 -0
- package/dist/node_modules/@unovis/vue/components/area/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/area/index.js +48 -0
- package/dist/node_modules/@unovis/vue/components/axis/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/axis/index.js +69 -0
- package/dist/node_modules/@unovis/vue/components/crosshair/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/crosshair/index.js +33 -0
- package/dist/node_modules/@unovis/vue/components/donut/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/donut/index.js +54 -0
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/grouped-bar/index.js +54 -0
- package/dist/node_modules/@unovis/vue/components/line/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/line/index.js +50 -0
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/stacked-bar/index.js +54 -0
- package/dist/node_modules/@unovis/vue/components/tooltip/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/components/tooltip/index.js +40 -0
- package/dist/node_modules/@unovis/vue/containers/single-container/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/containers/single-container/index.js +66 -0
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/containers/xy-container/index.js +102 -0
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/html-components/bullet-legend/index.js +43 -0
- package/dist/node_modules/@unovis/vue/index.cjs +1 -0
- package/dist/node_modules/@unovis/vue/index.js +10 -0
- package/dist/node_modules/@unovis/vue/utils/context.cjs +1 -0
- package/dist/node_modules/@unovis/vue/utils/context.js +8 -0
- package/dist/node_modules/@unovis/vue/utils/props.cjs +1 -0
- package/dist/node_modules/@unovis/vue/utils/props.js +18 -0
- package/dist/node_modules/d3-array/src/ascending.cjs +1 -0
- package/dist/node_modules/d3-array/src/ascending.js +6 -0
- package/dist/node_modules/d3-array/src/bisect.cjs +1 -0
- package/dist/node_modules/d3-array/src/bisect.js +9 -0
- package/dist/node_modules/d3-array/src/bisector.cjs +1 -0
- package/dist/node_modules/d3-array/src/bisector.js +37 -0
- package/dist/node_modules/d3-array/src/descending.cjs +1 -0
- package/dist/node_modules/d3-array/src/descending.js +6 -0
- package/dist/node_modules/d3-array/src/extent.cjs +1 -0
- package/dist/node_modules/d3-array/src/extent.js +9 -0
- package/dist/node_modules/d3-array/src/max.cjs +1 -0
- package/dist/node_modules/d3-array/src/max.js +15 -0
- package/dist/node_modules/d3-array/src/mean.cjs +1 -0
- package/dist/node_modules/d3-array/src/mean.js +15 -0
- package/dist/node_modules/d3-array/src/merge.cjs +1 -0
- package/dist/node_modules/d3-array/src/merge.js +10 -0
- package/dist/node_modules/d3-array/src/min.cjs +1 -0
- package/dist/node_modules/d3-array/src/min.js +15 -0
- package/dist/node_modules/d3-array/src/number.cjs +1 -0
- package/dist/node_modules/d3-array/src/number.js +6 -0
- package/dist/node_modules/d3-array/src/quantile.cjs +1 -0
- package/dist/node_modules/d3-array/src/quantile.js +12 -0
- package/dist/node_modules/d3-array/src/range.cjs +1 -0
- package/dist/node_modules/d3-array/src/range.js +9 -0
- package/dist/node_modules/d3-array/src/sum.cjs +1 -0
- package/dist/node_modules/d3-array/src/sum.js +15 -0
- package/dist/node_modules/d3-array/src/ticks.cjs +1 -0
- package/dist/node_modules/d3-array/src/ticks.js +32 -0
- package/dist/node_modules/d3-axis/src/axis.cjs +1 -0
- package/dist/node_modules/d3-axis/src/axis.js +72 -0
- package/dist/node_modules/d3-axis/src/identity.cjs +1 -0
- package/dist/node_modules/d3-axis/src/identity.js +6 -0
- package/dist/node_modules/d3-color/src/color.cjs +1 -0
- package/dist/node_modules/d3-color/src/color.js +305 -0
- package/dist/node_modules/d3-color/src/define.cjs +1 -0
- package/dist/node_modules/d3-color/src/define.js +12 -0
- package/dist/node_modules/d3-dispatch/src/dispatch.cjs +1 -0
- package/dist/node_modules/d3-dispatch/src/dispatch.js +64 -0
- package/dist/node_modules/d3-ease/src/cubic.cjs +1 -0
- package/dist/node_modules/d3-ease/src/cubic.js +6 -0
- package/dist/node_modules/d3-ease/src/linear.cjs +1 -0
- package/dist/node_modules/d3-ease/src/linear.js +4 -0
- package/dist/node_modules/d3-format/src/defaultLocale.cjs +1 -0
- package/dist/node_modules/d3-format/src/defaultLocale.js +15 -0
- package/dist/node_modules/d3-format/src/exponent.cjs +1 -0
- package/dist/node_modules/d3-format/src/exponent.js +7 -0
- package/dist/node_modules/d3-format/src/formatDecimal.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatDecimal.js +15 -0
- package/dist/node_modules/d3-format/src/formatGroup.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatGroup.js +10 -0
- package/dist/node_modules/d3-format/src/formatNumerals.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatNumerals.js +10 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatPrefixAuto.js +12 -0
- package/dist/node_modules/d3-format/src/formatRounded.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatRounded.js +10 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatSpecifier.js +28 -0
- package/dist/node_modules/d3-format/src/formatTrim.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatTrim.js +19 -0
- package/dist/node_modules/d3-format/src/formatTypes.cjs +1 -0
- package/dist/node_modules/d3-format/src/formatTypes.js +21 -0
- package/dist/node_modules/d3-format/src/identity.cjs +1 -0
- package/dist/node_modules/d3-format/src/identity.js +6 -0
- package/dist/node_modules/d3-format/src/locale.cjs +1 -0
- package/dist/node_modules/d3-format/src/locale.js +68 -0
- package/dist/node_modules/d3-format/src/precisionFixed.cjs +1 -0
- package/dist/node_modules/d3-format/src/precisionFixed.js +7 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.cjs +1 -0
- package/dist/node_modules/d3-format/src/precisionPrefix.js +7 -0
- package/dist/node_modules/d3-format/src/precisionRound.cjs +1 -0
- package/dist/node_modules/d3-format/src/precisionRound.js +7 -0
- package/dist/node_modules/d3-interpolate/src/array.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/array.js +13 -0
- package/dist/node_modules/d3-interpolate/src/color.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/color.js +24 -0
- package/dist/node_modules/d3-interpolate/src/constant.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/constant.js +4 -0
- package/dist/node_modules/d3-interpolate/src/date.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/date.js +9 -0
- package/dist/node_modules/d3-interpolate/src/number.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/number.js +8 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/numberArray.js +15 -0
- package/dist/node_modules/d3-interpolate/src/object.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/object.js +14 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/piecewise.js +12 -0
- package/dist/node_modules/d3-interpolate/src/rgb.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/rgb.js +15 -0
- package/dist/node_modules/d3-interpolate/src/round.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/round.js +8 -0
- package/dist/node_modules/d3-interpolate/src/string.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/string.js +24 -0
- package/dist/node_modules/d3-interpolate/src/transform/decompose.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/transform/decompose.js +23 -0
- package/dist/node_modules/d3-interpolate/src/transform/index.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/transform/index.js +37 -0
- package/dist/node_modules/d3-interpolate/src/transform/parse.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/transform/parse.js +13 -0
- package/dist/node_modules/d3-interpolate/src/value.cjs +1 -0
- package/dist/node_modules/d3-interpolate/src/value.js +16 -0
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.cjs +2 -0
- package/dist/node_modules/d3-interpolate-path/build/d3-interpolate-path.js +301 -0
- package/dist/node_modules/d3-path/src/path.cjs +1 -0
- package/dist/node_modules/d3-path/src/path.js +64 -0
- package/dist/node_modules/d3-scale/src/band.cjs +1 -0
- package/dist/node_modules/d3-scale/src/band.js +51 -0
- package/dist/node_modules/d3-scale/src/constant.cjs +1 -0
- package/dist/node_modules/d3-scale/src/constant.js +8 -0
- package/dist/node_modules/d3-scale/src/continuous.cjs +1 -0
- package/dist/node_modules/d3-scale/src/continuous.js +75 -0
- package/dist/node_modules/d3-scale/src/diverging.cjs +1 -0
- package/dist/node_modules/d3-scale/src/diverging.js +40 -0
- package/dist/node_modules/d3-scale/src/identity.cjs +1 -0
- package/dist/node_modules/d3-scale/src/identity.js +18 -0
- package/dist/node_modules/d3-scale/src/init.cjs +1 -0
- package/dist/node_modules/d3-scale/src/init.js +32 -0
- package/dist/node_modules/d3-scale/src/linear.cjs +1 -0
- package/dist/node_modules/d3-scale/src/linear.js +39 -0
- package/dist/node_modules/d3-scale/src/log.cjs +1 -0
- package/dist/node_modules/d3-scale/src/log.js +86 -0
- package/dist/node_modules/d3-scale/src/nice.cjs +1 -0
- package/dist/node_modules/d3-scale/src/nice.js +8 -0
- package/dist/node_modules/d3-scale/src/number.cjs +1 -0
- package/dist/node_modules/d3-scale/src/number.js +6 -0
- package/dist/node_modules/d3-scale/src/ordinal.cjs +1 -0
- package/dist/node_modules/d3-scale/src/ordinal.js +31 -0
- package/dist/node_modules/d3-scale/src/pow.cjs +1 -0
- package/dist/node_modules/d3-scale/src/pow.js +37 -0
- package/dist/node_modules/d3-scale/src/quantile.cjs +1 -0
- package/dist/node_modules/d3-scale/src/quantile.js +38 -0
- package/dist/node_modules/d3-scale/src/quantize.cjs +1 -0
- package/dist/node_modules/d3-scale/src/quantize.js +31 -0
- package/dist/node_modules/d3-scale/src/sequential.cjs +1 -0
- package/dist/node_modules/d3-scale/src/sequential.js +42 -0
- package/dist/node_modules/d3-scale/src/symlog.cjs +1 -0
- package/dist/node_modules/d3-scale/src/symlog.js +29 -0
- package/dist/node_modules/d3-scale/src/threshold.cjs +1 -0
- package/dist/node_modules/d3-scale/src/threshold.js +23 -0
- package/dist/node_modules/d3-scale/src/tickFormat.cjs +1 -0
- package/dist/node_modules/d3-scale/src/tickFormat.js +32 -0
- package/dist/node_modules/d3-scale/src/time.cjs +1 -0
- package/dist/node_modules/d3-scale/src/time.js +46 -0
- package/dist/node_modules/d3-scale/src/utcTime.cjs +1 -0
- package/dist/node_modules/d3-scale/src/utcTime.js +17 -0
- package/dist/node_modules/d3-selection/src/array.cjs +1 -0
- package/dist/node_modules/d3-selection/src/array.js +6 -0
- package/dist/node_modules/d3-selection/src/constant.cjs +1 -0
- package/dist/node_modules/d3-selection/src/constant.js +8 -0
- package/dist/node_modules/d3-selection/src/creator.cjs +1 -0
- package/dist/node_modules/d3-selection/src/creator.js +20 -0
- package/dist/node_modules/d3-selection/src/matcher.cjs +1 -0
- package/dist/node_modules/d3-selection/src/matcher.js +14 -0
- package/dist/node_modules/d3-selection/src/namespace.cjs +1 -0
- package/dist/node_modules/d3-selection/src/namespace.js +8 -0
- package/dist/node_modules/d3-selection/src/namespaces.cjs +1 -0
- package/dist/node_modules/d3-selection/src/namespaces.js +12 -0
- package/dist/node_modules/d3-selection/src/pointer.cjs +1 -0
- package/dist/node_modules/d3-selection/src/pointer.js +18 -0
- package/dist/node_modules/d3-selection/src/select.cjs +1 -0
- package/dist/node_modules/d3-selection/src/select.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/append.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/append.js +10 -0
- package/dist/node_modules/d3-selection/src/selection/attr.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/attr.js +44 -0
- package/dist/node_modules/d3-selection/src/selection/call.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/call.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/classed.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/classed.js +54 -0
- package/dist/node_modules/d3-selection/src/selection/clone.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/clone.js +14 -0
- package/dist/node_modules/d3-selection/src/selection/data.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/data.js +42 -0
- package/dist/node_modules/d3-selection/src/selection/datum.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/datum.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/dispatch.js +21 -0
- package/dist/node_modules/d3-selection/src/selection/each.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/each.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/empty.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/empty.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/enter.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/enter.js +27 -0
- package/dist/node_modules/d3-selection/src/selection/exit.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/exit.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/filter.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/filter.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/html.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/html.js +20 -0
- package/dist/node_modules/d3-selection/src/selection/index.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/index.js +87 -0
- package/dist/node_modules/d3-selection/src/selection/insert.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/insert.js +14 -0
- package/dist/node_modules/d3-selection/src/selection/iterator.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/iterator.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/join.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/join.js +7 -0
- package/dist/node_modules/d3-selection/src/selection/lower.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/lower.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/merge.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/merge.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/node.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/node.js +11 -0
- package/dist/node_modules/d3-selection/src/selection/nodes.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/nodes.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/on.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/on.js +52 -0
- package/dist/node_modules/d3-selection/src/selection/order.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/order.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/property.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/property.js +22 -0
- package/dist/node_modules/d3-selection/src/selection/raise.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/raise.js +9 -0
- package/dist/node_modules/d3-selection/src/selection/remove.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/remove.js +10 -0
- package/dist/node_modules/d3-selection/src/selection/select.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/select.js +12 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectAll.js +18 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChild.js +16 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/selectChildren.js +16 -0
- package/dist/node_modules/d3-selection/src/selection/size.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/size.js +8 -0
- package/dist/node_modules/d3-selection/src/selection/sort.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/sort.js +19 -0
- package/dist/node_modules/d3-selection/src/selection/sparse.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/sparse.js +6 -0
- package/dist/node_modules/d3-selection/src/selection/style.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/style.js +27 -0
- package/dist/node_modules/d3-selection/src/selection/text.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selection/text.js +20 -0
- package/dist/node_modules/d3-selection/src/selector.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selector.js +10 -0
- package/dist/node_modules/d3-selection/src/selectorAll.cjs +1 -0
- package/dist/node_modules/d3-selection/src/selectorAll.js +11 -0
- package/dist/node_modules/d3-selection/src/sourceEvent.cjs +1 -0
- package/dist/node_modules/d3-selection/src/sourceEvent.js +8 -0
- package/dist/node_modules/d3-selection/src/window.cjs +1 -0
- package/dist/node_modules/d3-selection/src/window.js +6 -0
- package/dist/node_modules/d3-shape/src/arc.cjs +1 -0
- package/dist/node_modules/d3-shape/src/arc.js +85 -0
- package/dist/node_modules/d3-shape/src/area.cjs +1 -0
- package/dist/node_modules/d3-shape/src/area.js +56 -0
- package/dist/node_modules/d3-shape/src/array.cjs +1 -0
- package/dist/node_modules/d3-shape/src/array.js +6 -0
- package/dist/node_modules/d3-shape/src/constant.cjs +1 -0
- package/dist/node_modules/d3-shape/src/constant.js +8 -0
- package/dist/node_modules/d3-shape/src/curve/basis.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/basis.js +60 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/basisClosed.js +51 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/basisOpen.js +46 -0
- package/dist/node_modules/d3-shape/src/curve/bundle.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/bundle.js +33 -0
- package/dist/node_modules/d3-shape/src/curve/cardinal.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/cardinal.js +65 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalClosed.js +57 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/cardinalOpen.js +50 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRom.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRom.js +72 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomClosed.js +61 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/catmullRomOpen.js +54 -0
- package/dist/node_modules/d3-shape/src/curve/linear.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/linear.js +36 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/linearClosed.js +23 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/monotone.js +93 -0
- package/dist/node_modules/d3-shape/src/curve/natural.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/natural.js +41 -0
- package/dist/node_modules/d3-shape/src/curve/step.cjs +1 -0
- package/dist/node_modules/d3-shape/src/curve/step.js +51 -0
- package/dist/node_modules/d3-shape/src/descending.cjs +1 -0
- package/dist/node_modules/d3-shape/src/descending.js +6 -0
- package/dist/node_modules/d3-shape/src/identity.cjs +1 -0
- package/dist/node_modules/d3-shape/src/identity.js +6 -0
- package/dist/node_modules/d3-shape/src/line.cjs +1 -0
- package/dist/node_modules/d3-shape/src/line.js +29 -0
- package/dist/node_modules/d3-shape/src/math.cjs +1 -0
- package/dist/node_modules/d3-shape/src/math.js +22 -0
- package/dist/node_modules/d3-shape/src/noop.cjs +1 -0
- package/dist/node_modules/d3-shape/src/noop.js +5 -0
- package/dist/node_modules/d3-shape/src/path.cjs +1 -0
- package/dist/node_modules/d3-shape/src/path.js +18 -0
- package/dist/node_modules/d3-shape/src/pie.cjs +1 -0
- package/dist/node_modules/d3-shape/src/pie.js +43 -0
- package/dist/node_modules/d3-shape/src/point.cjs +1 -0
- package/dist/node_modules/d3-shape/src/point.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/circle.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/circle.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/cross.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/cross.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/diamond.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/diamond.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/square.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/square.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/star.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/star.js +15 -0
- package/dist/node_modules/d3-shape/src/symbol/triangle.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/triangle.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol/wye.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol/wye.js +10 -0
- package/dist/node_modules/d3-shape/src/symbol.cjs +1 -0
- package/dist/node_modules/d3-shape/src/symbol.js +21 -0
- package/dist/node_modules/d3-time/src/day.cjs +1 -0
- package/dist/node_modules/d3-time/src/day.js +26 -0
- package/dist/node_modules/d3-time/src/duration.cjs +1 -0
- package/dist/node_modules/d3-time/src/duration.js +10 -0
- package/dist/node_modules/d3-time/src/hour.cjs +1 -0
- package/dist/node_modules/d3-time/src/hour.js +18 -0
- package/dist/node_modules/d3-time/src/interval.cjs +1 -0
- package/dist/node_modules/d3-time/src/interval.js +31 -0
- package/dist/node_modules/d3-time/src/millisecond.cjs +1 -0
- package/dist/node_modules/d3-time/src/millisecond.js +14 -0
- package/dist/node_modules/d3-time/src/minute.cjs +1 -0
- package/dist/node_modules/d3-time/src/minute.js +18 -0
- package/dist/node_modules/d3-time/src/month.cjs +1 -0
- package/dist/node_modules/d3-time/src/month.js +17 -0
- package/dist/node_modules/d3-time/src/second.cjs +1 -0
- package/dist/node_modules/d3-time/src/second.js +11 -0
- package/dist/node_modules/d3-time/src/ticks.cjs +1 -0
- package/dist/node_modules/d3-time/src/ticks.js +54 -0
- package/dist/node_modules/d3-time/src/week.cjs +1 -0
- package/dist/node_modules/d3-time/src/week.js +48 -0
- package/dist/node_modules/d3-time/src/year.cjs +1 -0
- package/dist/node_modules/d3-time/src/year.js +27 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.cjs +1 -0
- package/dist/node_modules/d3-time-format/src/defaultLocale.js +20 -0
- package/dist/node_modules/d3-time-format/src/locale.cjs +1 -0
- package/dist/node_modules/d3-time-format/src/locale.js +478 -0
- package/dist/node_modules/d3-timer/src/timeout.cjs +1 -0
- package/dist/node_modules/d3-timer/src/timeout.js +10 -0
- package/dist/node_modules/d3-timer/src/timer.cjs +1 -0
- package/dist/node_modules/d3-timer/src/timer.js +62 -0
- package/dist/node_modules/d3-transition/src/interrupt.cjs +1 -0
- package/dist/node_modules/d3-transition/src/interrupt.js +18 -0
- package/dist/node_modules/d3-transition/src/selection/index.cjs +1 -0
- package/dist/node_modules/d3-transition/src/selection/index.js +5 -0
- package/dist/node_modules/d3-transition/src/selection/interrupt.cjs +1 -0
- package/dist/node_modules/d3-transition/src/selection/interrupt.js +9 -0
- package/dist/node_modules/d3-transition/src/selection/transition.cjs +1 -0
- package/dist/node_modules/d3-transition/src/selection/transition.js +28 -0
- package/dist/node_modules/d3-transition/src/transition/attr.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/attr.js +49 -0
- package/dist/node_modules/d3-transition/src/transition/attrTween.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/attrTween.js +38 -0
- package/dist/node_modules/d3-transition/src/transition/delay.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/delay.js +18 -0
- package/dist/node_modules/d3-transition/src/transition/duration.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/duration.js +18 -0
- package/dist/node_modules/d3-transition/src/transition/ease.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/ease.js +14 -0
- package/dist/node_modules/d3-transition/src/transition/easeVarying.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/easeVarying.js +15 -0
- package/dist/node_modules/d3-transition/src/transition/end.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/end.js +16 -0
- package/dist/node_modules/d3-transition/src/transition/filter.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/filter.js +12 -0
- package/dist/node_modules/d3-transition/src/transition/index.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/index.js +65 -0
- package/dist/node_modules/d3-transition/src/transition/interpolate.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/interpolate.js +11 -0
- package/dist/node_modules/d3-transition/src/transition/merge.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/merge.js +13 -0
- package/dist/node_modules/d3-transition/src/transition/on.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/on.js +21 -0
- package/dist/node_modules/d3-transition/src/transition/remove.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/remove.js +13 -0
- package/dist/node_modules/d3-transition/src/transition/schedule.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/schedule.js +85 -0
- package/dist/node_modules/d3-transition/src/transition/select.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/select.js +14 -0
- package/dist/node_modules/d3-transition/src/transition/selectAll.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/selectAll.js +18 -0
- package/dist/node_modules/d3-transition/src/transition/selection.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/selection.js +8 -0
- package/dist/node_modules/d3-transition/src/transition/style.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/style.js +45 -0
- package/dist/node_modules/d3-transition/src/transition/styleTween.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/styleTween.js +23 -0
- package/dist/node_modules/d3-transition/src/transition/text.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/text.js +18 -0
- package/dist/node_modules/d3-transition/src/transition/textTween.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/textTween.js +23 -0
- package/dist/node_modules/d3-transition/src/transition/transition.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/transition.js +19 -0
- package/dist/node_modules/d3-transition/src/transition/tween.cjs +1 -0
- package/dist/node_modules/d3-transition/src/transition/tween.js +56 -0
- package/dist/node_modules/internmap/src/index.cjs +1 -0
- package/dist/node_modules/internmap/src/index.js +35 -0
- package/dist/node_modules/parse-unit/index.cjs +1 -0
- package/dist/node_modules/parse-unit/index.js +11 -0
- package/dist/node_modules/striptags/src/striptags.cjs +2 -0
- package/dist/node_modules/striptags/src/striptags.js +118 -0
- package/dist/node_modules/stylis/src/Enum.cjs +1 -0
- package/dist/node_modules/stylis/src/Enum.js +12 -0
- package/dist/node_modules/stylis/src/Middleware.cjs +1 -0
- package/dist/node_modules/stylis/src/Middleware.js +18 -0
- package/dist/node_modules/stylis/src/Parser.cjs +1 -0
- package/dist/node_modules/stylis/src/Parser.js +131 -0
- package/dist/node_modules/stylis/src/Serializer.cjs +1 -0
- package/dist/node_modules/stylis/src/Serializer.js +27 -0
- package/dist/node_modules/stylis/src/Tokenizer.cjs +1 -0
- package/dist/node_modules/stylis/src/Tokenizer.js +141 -0
- package/dist/node_modules/stylis/src/Utility.cjs +1 -0
- package/dist/node_modules/stylis/src/Utility.js +50 -0
- package/dist/node_modules/throttle-debounce/esm/index.cjs +1 -0
- package/dist/node_modules/throttle-debounce/esm/index.js +28 -0
- package/dist/node_modules/to-px/browser.cjs +1 -0
- package/dist/node_modules/to-px/browser.js +63 -0
- package/dist/types.cjs +1 -0
- package/dist/types.d.ts +5 -0
- package/dist/types.js +4 -0
- package/dist/utils.cjs +1 -0
- package/dist/utils.d.ts +1 -0
- package/dist/utils.js +18 -0
- package/package.json +22 -26
- package/dist/vue-chrts.js +0 -8524
- package/dist/vue-chrts.umd.cjs +0 -373
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { point as h } from "./basis.js";
|
|
2
|
+
function e(t) {
|
|
3
|
+
this._context = t;
|
|
4
|
+
}
|
|
5
|
+
e.prototype = {
|
|
6
|
+
areaStart: function() {
|
|
7
|
+
this._line = 0;
|
|
8
|
+
},
|
|
9
|
+
areaEnd: function() {
|
|
10
|
+
this._line = NaN;
|
|
11
|
+
},
|
|
12
|
+
lineStart: function() {
|
|
13
|
+
this._x0 = this._x1 = this._y0 = this._y1 = NaN, this._point = 0;
|
|
14
|
+
},
|
|
15
|
+
lineEnd: function() {
|
|
16
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
17
|
+
},
|
|
18
|
+
point: function(t, i) {
|
|
19
|
+
switch (t = +t, i = +i, this._point) {
|
|
20
|
+
case 0:
|
|
21
|
+
this._point = 1;
|
|
22
|
+
break;
|
|
23
|
+
case 1:
|
|
24
|
+
this._point = 2;
|
|
25
|
+
break;
|
|
26
|
+
case 2:
|
|
27
|
+
this._point = 3;
|
|
28
|
+
var s = (this._x0 + 4 * this._x1 + t) / 6, n = (this._y0 + 4 * this._y1 + i) / 6;
|
|
29
|
+
this._line ? this._context.lineTo(s, n) : this._context.moveTo(s, n);
|
|
30
|
+
break;
|
|
31
|
+
case 3:
|
|
32
|
+
this._point = 4;
|
|
33
|
+
// falls through
|
|
34
|
+
default:
|
|
35
|
+
h(this, t, i);
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i;
|
|
39
|
+
}
|
|
40
|
+
};
|
|
41
|
+
function o(t) {
|
|
42
|
+
return new e(t);
|
|
43
|
+
}
|
|
44
|
+
export {
|
|
45
|
+
o as default
|
|
46
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const a=require("./basis.cjs");function r(t,i){this._basis=new a.Basis(t),this._beta=i}r.prototype={lineStart:function(){this._x=[],this._y=[],this._basis.lineStart()},lineEnd:function(){var t=this._x,i=this._y,s=t.length-1;if(s>0)for(var e=t[0],h=i[0],_=t[s]-e,o=i[s]-h,n=-1,u;++n<=s;)u=n/s,this._basis.point(this._beta*t[n]+(1-this._beta)*(e+u*_),this._beta*i[n]+(1-this._beta)*(h+u*o));this._x=this._y=null,this._basis.lineEnd()},point:function(t,i){this._x.push(+t),this._y.push(+i)}};const l=function t(i){function s(e){return i===1?new a.Basis(e):new r(e,i)}return s.beta=function(e){return t(+e)},s}(.85);exports.default=l;
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
import { Basis as _ } from "./basis.js";
|
|
2
|
+
function a(t, i) {
|
|
3
|
+
this._basis = new _(t), this._beta = i;
|
|
4
|
+
}
|
|
5
|
+
a.prototype = {
|
|
6
|
+
lineStart: function() {
|
|
7
|
+
this._x = [], this._y = [], this._basis.lineStart();
|
|
8
|
+
},
|
|
9
|
+
lineEnd: function() {
|
|
10
|
+
var t = this._x, i = this._y, n = t.length - 1;
|
|
11
|
+
if (n > 0)
|
|
12
|
+
for (var s = t[0], u = i[0], o = t[n] - s, r = i[n] - u, e = -1, h; ++e <= n; )
|
|
13
|
+
h = e / n, this._basis.point(
|
|
14
|
+
this._beta * t[e] + (1 - this._beta) * (s + h * o),
|
|
15
|
+
this._beta * i[e] + (1 - this._beta) * (u + h * r)
|
|
16
|
+
);
|
|
17
|
+
this._x = this._y = null, this._basis.lineEnd();
|
|
18
|
+
},
|
|
19
|
+
point: function(t, i) {
|
|
20
|
+
this._x.push(+t), this._y.push(+i);
|
|
21
|
+
}
|
|
22
|
+
};
|
|
23
|
+
const b = function t(i) {
|
|
24
|
+
function n(s) {
|
|
25
|
+
return i === 1 ? new _(s) : new a(s, i);
|
|
26
|
+
}
|
|
27
|
+
return n.beta = function(s) {
|
|
28
|
+
return t(+s);
|
|
29
|
+
}, n;
|
|
30
|
+
}(0.85);
|
|
31
|
+
export {
|
|
32
|
+
b as default
|
|
33
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function s(i,t,n){i._context.bezierCurveTo(i._x1+i._k*(i._x2-i._x0),i._y1+i._k*(i._y2-i._y0),i._x2+i._k*(i._x1-t),i._y2+i._k*(i._y1-n),i._x2,i._y2)}function e(i,t){this._context=i,this._k=(1-t)/6}e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:s(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(i,t){switch(i=+i,t=+t,this._point){case 0:this._point=1,this._line?this._context.lineTo(i,t):this._context.moveTo(i,t);break;case 1:this._point=2,this._x1=i,this._y1=t;break;case 2:this._point=3;default:s(this,i,t);break}this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const o=function i(t){function n(_){return new e(_,t)}return n.tension=function(_){return i(+_)},n}(0);exports.Cardinal=e;exports.default=o;exports.point=s;
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
function s(i, t, _) {
|
|
2
|
+
i._context.bezierCurveTo(
|
|
3
|
+
i._x1 + i._k * (i._x2 - i._x0),
|
|
4
|
+
i._y1 + i._k * (i._y2 - i._y0),
|
|
5
|
+
i._x2 + i._k * (i._x1 - t),
|
|
6
|
+
i._y2 + i._k * (i._y1 - _),
|
|
7
|
+
i._x2,
|
|
8
|
+
i._y2
|
|
9
|
+
);
|
|
10
|
+
}
|
|
11
|
+
function e(i, t) {
|
|
12
|
+
this._context = i, this._k = (1 - t) / 6;
|
|
13
|
+
}
|
|
14
|
+
e.prototype = {
|
|
15
|
+
areaStart: function() {
|
|
16
|
+
this._line = 0;
|
|
17
|
+
},
|
|
18
|
+
areaEnd: function() {
|
|
19
|
+
this._line = NaN;
|
|
20
|
+
},
|
|
21
|
+
lineStart: function() {
|
|
22
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
23
|
+
},
|
|
24
|
+
lineEnd: function() {
|
|
25
|
+
switch (this._point) {
|
|
26
|
+
case 2:
|
|
27
|
+
this._context.lineTo(this._x2, this._y2);
|
|
28
|
+
break;
|
|
29
|
+
case 3:
|
|
30
|
+
s(this, this._x1, this._y1);
|
|
31
|
+
break;
|
|
32
|
+
}
|
|
33
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
34
|
+
},
|
|
35
|
+
point: function(i, t) {
|
|
36
|
+
switch (i = +i, t = +t, this._point) {
|
|
37
|
+
case 0:
|
|
38
|
+
this._point = 1, this._line ? this._context.lineTo(i, t) : this._context.moveTo(i, t);
|
|
39
|
+
break;
|
|
40
|
+
case 1:
|
|
41
|
+
this._point = 2, this._x1 = i, this._y1 = t;
|
|
42
|
+
break;
|
|
43
|
+
case 2:
|
|
44
|
+
this._point = 3;
|
|
45
|
+
// falls through
|
|
46
|
+
default:
|
|
47
|
+
s(this, i, t);
|
|
48
|
+
break;
|
|
49
|
+
}
|
|
50
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = i, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
51
|
+
}
|
|
52
|
+
};
|
|
53
|
+
const o = function i(t) {
|
|
54
|
+
function _(n) {
|
|
55
|
+
return new e(n, t);
|
|
56
|
+
}
|
|
57
|
+
return _.tension = function(n) {
|
|
58
|
+
return i(+n);
|
|
59
|
+
}, _;
|
|
60
|
+
}(0);
|
|
61
|
+
export {
|
|
62
|
+
e as Cardinal,
|
|
63
|
+
o as default,
|
|
64
|
+
s as point
|
|
65
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../noop.cjs"),_=require("./cardinal.cjs");function h(t,i){this._context=t,this._k=(1-i)/6}h.prototype={areaStart:n.default,areaEnd:n.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._x3=t,this._y3=i;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=i);break;case 2:this._point=3,this._x5=t,this._y5=i;break;default:_.point(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const o=function t(i){function e(s){return new h(s,i)}return e.tension=function(s){return t(+s)},e}(0);exports.CardinalClosed=h;exports.default=o;
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
import _ from "../noop.js";
|
|
2
|
+
import { point as o } from "./cardinal.js";
|
|
3
|
+
function n(t, i) {
|
|
4
|
+
this._context = t, this._k = (1 - i) / 6;
|
|
5
|
+
}
|
|
6
|
+
n.prototype = {
|
|
7
|
+
areaStart: _,
|
|
8
|
+
areaEnd: _,
|
|
9
|
+
lineStart: function() {
|
|
10
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._point = 0;
|
|
11
|
+
},
|
|
12
|
+
lineEnd: function() {
|
|
13
|
+
switch (this._point) {
|
|
14
|
+
case 1: {
|
|
15
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
16
|
+
break;
|
|
17
|
+
}
|
|
18
|
+
case 2: {
|
|
19
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
20
|
+
break;
|
|
21
|
+
}
|
|
22
|
+
case 3: {
|
|
23
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
24
|
+
break;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
},
|
|
28
|
+
point: function(t, i) {
|
|
29
|
+
switch (t = +t, i = +i, this._point) {
|
|
30
|
+
case 0:
|
|
31
|
+
this._point = 1, this._x3 = t, this._y3 = i;
|
|
32
|
+
break;
|
|
33
|
+
case 1:
|
|
34
|
+
this._point = 2, this._context.moveTo(this._x4 = t, this._y4 = i);
|
|
35
|
+
break;
|
|
36
|
+
case 2:
|
|
37
|
+
this._point = 3, this._x5 = t, this._y5 = i;
|
|
38
|
+
break;
|
|
39
|
+
default:
|
|
40
|
+
o(this, t, i);
|
|
41
|
+
break;
|
|
42
|
+
}
|
|
43
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
44
|
+
}
|
|
45
|
+
};
|
|
46
|
+
const c = function t(i) {
|
|
47
|
+
function h(s) {
|
|
48
|
+
return new n(s, i);
|
|
49
|
+
}
|
|
50
|
+
return h.tension = function(s) {
|
|
51
|
+
return t(+s);
|
|
52
|
+
}, h;
|
|
53
|
+
}(0);
|
|
54
|
+
export {
|
|
55
|
+
n as CardinalClosed,
|
|
56
|
+
c as default
|
|
57
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const h=require("./cardinal.cjs");function s(t,i){this._context=t,this._k=(1-i)/6}s.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:h.point(this,t,i);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const _=function t(i){function e(n){return new s(n,i)}return e.tension=function(n){return t(+n)},e}(0);exports.CardinalOpen=s;exports.default=_;
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import { point as _ } from "./cardinal.js";
|
|
2
|
+
function h(t, i) {
|
|
3
|
+
this._context = t, this._k = (1 - i) / 6;
|
|
4
|
+
}
|
|
5
|
+
h.prototype = {
|
|
6
|
+
areaStart: function() {
|
|
7
|
+
this._line = 0;
|
|
8
|
+
},
|
|
9
|
+
areaEnd: function() {
|
|
10
|
+
this._line = NaN;
|
|
11
|
+
},
|
|
12
|
+
lineStart: function() {
|
|
13
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._point = 0;
|
|
14
|
+
},
|
|
15
|
+
lineEnd: function() {
|
|
16
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
17
|
+
},
|
|
18
|
+
point: function(t, i) {
|
|
19
|
+
switch (t = +t, i = +i, this._point) {
|
|
20
|
+
case 0:
|
|
21
|
+
this._point = 1;
|
|
22
|
+
break;
|
|
23
|
+
case 1:
|
|
24
|
+
this._point = 2;
|
|
25
|
+
break;
|
|
26
|
+
case 2:
|
|
27
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
28
|
+
break;
|
|
29
|
+
case 3:
|
|
30
|
+
this._point = 4;
|
|
31
|
+
// falls through
|
|
32
|
+
default:
|
|
33
|
+
_(this, t, i);
|
|
34
|
+
break;
|
|
35
|
+
}
|
|
36
|
+
this._x0 = this._x1, this._x1 = this._x2, this._x2 = t, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
37
|
+
}
|
|
38
|
+
};
|
|
39
|
+
const o = function t(i) {
|
|
40
|
+
function s(n) {
|
|
41
|
+
return new h(n, i);
|
|
42
|
+
}
|
|
43
|
+
return s.tension = function(n) {
|
|
44
|
+
return t(+n);
|
|
45
|
+
}, s;
|
|
46
|
+
}(0);
|
|
47
|
+
export {
|
|
48
|
+
h as CardinalOpen,
|
|
49
|
+
o as default
|
|
50
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const c=require("../math.cjs"),f=require("./cardinal.cjs");function u(_,i,l){var s=_._x1,n=_._y1,e=_._x2,t=_._y2;if(_._l01_a>c.epsilon){var o=2*_._l01_2a+3*_._l01_a*_._l12_a+_._l12_2a,a=3*_._l01_a*(_._l01_a+_._l12_a);s=(s*o-_._x0*_._l12_2a+_._x2*_._l01_2a)/a,n=(n*o-_._y0*_._l12_2a+_._y2*_._l01_2a)/a}if(_._l23_a>c.epsilon){var r=2*_._l23_2a+3*_._l23_a*_._l12_a+_._l12_2a,h=3*_._l23_a*(_._l23_a+_._l12_a);e=(e*r+_._x1*_._l23_2a-i*_._l12_2a)/h,t=(t*r+_._y1*_._l23_2a-l*_._l12_2a)/h}_._context.bezierCurveTo(s,n,e,t,_._x2,_._y2)}function p(_,i){this._context=_,this._alpha=i}p.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(_,i){if(_=+_,i=+i,this._point){var l=this._x2-_,s=this._y2-i;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(l*l+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(_,i):this._context.moveTo(_,i);break;case 1:this._point=2;break;case 2:this._point=3;default:u(this,_,i);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=_,this._y0=this._y1,this._y1=this._y2,this._y2=i}};const x=function _(i){function l(s){return i?new p(s,i):new f.Cardinal(s,0)}return l.alpha=function(s){return _(+s)},l}(.5);exports.default=x;exports.point=u;
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
import { epsilon as c } from "../math.js";
|
|
2
|
+
import { Cardinal as p } from "./cardinal.js";
|
|
3
|
+
function f(_, i, l) {
|
|
4
|
+
var s = _._x1, n = _._y1, o = _._x2, t = _._y2;
|
|
5
|
+
if (_._l01_a > c) {
|
|
6
|
+
var e = 2 * _._l01_2a + 3 * _._l01_a * _._l12_a + _._l12_2a, a = 3 * _._l01_a * (_._l01_a + _._l12_a);
|
|
7
|
+
s = (s * e - _._x0 * _._l12_2a + _._x2 * _._l01_2a) / a, n = (n * e - _._y0 * _._l12_2a + _._y2 * _._l01_2a) / a;
|
|
8
|
+
}
|
|
9
|
+
if (_._l23_a > c) {
|
|
10
|
+
var h = 2 * _._l23_2a + 3 * _._l23_a * _._l12_a + _._l12_2a, r = 3 * _._l23_a * (_._l23_a + _._l12_a);
|
|
11
|
+
o = (o * h + _._x1 * _._l23_2a - i * _._l12_2a) / r, t = (t * h + _._y1 * _._l23_2a - l * _._l12_2a) / r;
|
|
12
|
+
}
|
|
13
|
+
_._context.bezierCurveTo(s, n, o, t, _._x2, _._y2);
|
|
14
|
+
}
|
|
15
|
+
function u(_, i) {
|
|
16
|
+
this._context = _, this._alpha = i;
|
|
17
|
+
}
|
|
18
|
+
u.prototype = {
|
|
19
|
+
areaStart: function() {
|
|
20
|
+
this._line = 0;
|
|
21
|
+
},
|
|
22
|
+
areaEnd: function() {
|
|
23
|
+
this._line = NaN;
|
|
24
|
+
},
|
|
25
|
+
lineStart: function() {
|
|
26
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
27
|
+
},
|
|
28
|
+
lineEnd: function() {
|
|
29
|
+
switch (this._point) {
|
|
30
|
+
case 2:
|
|
31
|
+
this._context.lineTo(this._x2, this._y2);
|
|
32
|
+
break;
|
|
33
|
+
case 3:
|
|
34
|
+
this.point(this._x2, this._y2);
|
|
35
|
+
break;
|
|
36
|
+
}
|
|
37
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
38
|
+
},
|
|
39
|
+
point: function(_, i) {
|
|
40
|
+
if (_ = +_, i = +i, this._point) {
|
|
41
|
+
var l = this._x2 - _, s = this._y2 - i;
|
|
42
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(l * l + s * s, this._alpha));
|
|
43
|
+
}
|
|
44
|
+
switch (this._point) {
|
|
45
|
+
case 0:
|
|
46
|
+
this._point = 1, this._line ? this._context.lineTo(_, i) : this._context.moveTo(_, i);
|
|
47
|
+
break;
|
|
48
|
+
case 1:
|
|
49
|
+
this._point = 2;
|
|
50
|
+
break;
|
|
51
|
+
case 2:
|
|
52
|
+
this._point = 3;
|
|
53
|
+
// falls through
|
|
54
|
+
default:
|
|
55
|
+
f(this, _, i);
|
|
56
|
+
break;
|
|
57
|
+
}
|
|
58
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = _, this._y0 = this._y1, this._y1 = this._y2, this._y2 = i;
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
const m = function _(i) {
|
|
62
|
+
function l(s) {
|
|
63
|
+
return i ? new u(s, i) : new p(s, 0);
|
|
64
|
+
}
|
|
65
|
+
return l.alpha = function(s) {
|
|
66
|
+
return _(+s);
|
|
67
|
+
}, l;
|
|
68
|
+
}(0.5);
|
|
69
|
+
export {
|
|
70
|
+
m as default,
|
|
71
|
+
f as point
|
|
72
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./cardinalClosed.cjs"),h=require("../noop.cjs"),o=require("./catmullRom.cjs");function a(i,t){this._context=i,this._alpha=t}a.prototype={areaStart:h.default,areaEnd:h.default,lineStart:function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},point:function(i,t){if(i=+i,t=+t,this._point){var _=this._x2-i,s=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(_*_+s*s,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=i,this._y3=t;break;case 1:this._point=2,this._context.moveTo(this._x4=i,this._y4=t);break;case 2:this._point=3,this._x5=i,this._y5=t;break;default:o.point(this,i,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const n=function i(t){function _(s){return t?new a(s,t):new e.CardinalClosed(s,0)}return _.alpha=function(s){return i(+s)},_}(.5);exports.default=n;
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
import { CardinalClosed as o } from "./cardinalClosed.js";
|
|
2
|
+
import h from "../noop.js";
|
|
3
|
+
import { point as n } from "./catmullRom.js";
|
|
4
|
+
function a(i, t) {
|
|
5
|
+
this._context = i, this._alpha = t;
|
|
6
|
+
}
|
|
7
|
+
a.prototype = {
|
|
8
|
+
areaStart: h,
|
|
9
|
+
areaEnd: h,
|
|
10
|
+
lineStart: function() {
|
|
11
|
+
this._x0 = this._x1 = this._x2 = this._x3 = this._x4 = this._x5 = this._y0 = this._y1 = this._y2 = this._y3 = this._y4 = this._y5 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
12
|
+
},
|
|
13
|
+
lineEnd: function() {
|
|
14
|
+
switch (this._point) {
|
|
15
|
+
case 1: {
|
|
16
|
+
this._context.moveTo(this._x3, this._y3), this._context.closePath();
|
|
17
|
+
break;
|
|
18
|
+
}
|
|
19
|
+
case 2: {
|
|
20
|
+
this._context.lineTo(this._x3, this._y3), this._context.closePath();
|
|
21
|
+
break;
|
|
22
|
+
}
|
|
23
|
+
case 3: {
|
|
24
|
+
this.point(this._x3, this._y3), this.point(this._x4, this._y4), this.point(this._x5, this._y5);
|
|
25
|
+
break;
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
point: function(i, t) {
|
|
30
|
+
if (i = +i, t = +t, this._point) {
|
|
31
|
+
var _ = this._x2 - i, s = this._y2 - t;
|
|
32
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(_ * _ + s * s, this._alpha));
|
|
33
|
+
}
|
|
34
|
+
switch (this._point) {
|
|
35
|
+
case 0:
|
|
36
|
+
this._point = 1, this._x3 = i, this._y3 = t;
|
|
37
|
+
break;
|
|
38
|
+
case 1:
|
|
39
|
+
this._point = 2, this._context.moveTo(this._x4 = i, this._y4 = t);
|
|
40
|
+
break;
|
|
41
|
+
case 2:
|
|
42
|
+
this._point = 3, this._x5 = i, this._y5 = t;
|
|
43
|
+
break;
|
|
44
|
+
default:
|
|
45
|
+
n(this, i, t);
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = i, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
49
|
+
}
|
|
50
|
+
};
|
|
51
|
+
const c = function i(t) {
|
|
52
|
+
function _(s) {
|
|
53
|
+
return t ? new a(s, t) : new o(s, 0);
|
|
54
|
+
}
|
|
55
|
+
return _.alpha = function(s) {
|
|
56
|
+
return i(+s);
|
|
57
|
+
}, _;
|
|
58
|
+
}(0.5);
|
|
59
|
+
export {
|
|
60
|
+
c as default
|
|
61
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("./cardinalOpen.cjs"),e=require("./catmullRom.cjs");function h(i,t){this._context=i,this._alpha=t}h.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},point:function(i,t){if(i=+i,t=+t,this._point){var s=this._x2-i,_=this._y2-t;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(s*s+_*_,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:e.point(this,i,t);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=i,this._y0=this._y1,this._y1=this._y2,this._y2=t}};const a=function i(t){function s(_){return t?new h(_,t):new n.CardinalOpen(_,0)}return s.alpha=function(_){return i(+_)},s}(.5);exports.default=a;
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import { CardinalOpen as n } from "./cardinalOpen.js";
|
|
2
|
+
import { point as a } from "./catmullRom.js";
|
|
3
|
+
function h(i, t) {
|
|
4
|
+
this._context = i, this._alpha = t;
|
|
5
|
+
}
|
|
6
|
+
h.prototype = {
|
|
7
|
+
areaStart: function() {
|
|
8
|
+
this._line = 0;
|
|
9
|
+
},
|
|
10
|
+
areaEnd: function() {
|
|
11
|
+
this._line = NaN;
|
|
12
|
+
},
|
|
13
|
+
lineStart: function() {
|
|
14
|
+
this._x0 = this._x1 = this._x2 = this._y0 = this._y1 = this._y2 = NaN, this._l01_a = this._l12_a = this._l23_a = this._l01_2a = this._l12_2a = this._l23_2a = this._point = 0;
|
|
15
|
+
},
|
|
16
|
+
lineEnd: function() {
|
|
17
|
+
(this._line || this._line !== 0 && this._point === 3) && this._context.closePath(), this._line = 1 - this._line;
|
|
18
|
+
},
|
|
19
|
+
point: function(i, t) {
|
|
20
|
+
if (i = +i, t = +t, this._point) {
|
|
21
|
+
var s = this._x2 - i, _ = this._y2 - t;
|
|
22
|
+
this._l23_a = Math.sqrt(this._l23_2a = Math.pow(s * s + _ * _, this._alpha));
|
|
23
|
+
}
|
|
24
|
+
switch (this._point) {
|
|
25
|
+
case 0:
|
|
26
|
+
this._point = 1;
|
|
27
|
+
break;
|
|
28
|
+
case 1:
|
|
29
|
+
this._point = 2;
|
|
30
|
+
break;
|
|
31
|
+
case 2:
|
|
32
|
+
this._point = 3, this._line ? this._context.lineTo(this._x2, this._y2) : this._context.moveTo(this._x2, this._y2);
|
|
33
|
+
break;
|
|
34
|
+
case 3:
|
|
35
|
+
this._point = 4;
|
|
36
|
+
// falls through
|
|
37
|
+
default:
|
|
38
|
+
a(this, i, t);
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
this._l01_a = this._l12_a, this._l12_a = this._l23_a, this._l01_2a = this._l12_2a, this._l12_2a = this._l23_2a, this._x0 = this._x1, this._x1 = this._x2, this._x2 = i, this._y0 = this._y1, this._y1 = this._y2, this._y2 = t;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
const l = function i(t) {
|
|
45
|
+
function s(_) {
|
|
46
|
+
return t ? new h(_, t) : new n(_, 0);
|
|
47
|
+
}
|
|
48
|
+
return s.alpha = function(_) {
|
|
49
|
+
return i(+_);
|
|
50
|
+
}, s;
|
|
51
|
+
}(0.5);
|
|
52
|
+
export {
|
|
53
|
+
l as default
|
|
54
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function e(t){this._context=t}e.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){switch(t=+t,i=+i,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;default:this._context.lineTo(t,i);break}}};function n(t){return new e(t)}exports.default=n;
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
function n(t) {
|
|
2
|
+
this._context = t;
|
|
3
|
+
}
|
|
4
|
+
n.prototype = {
|
|
5
|
+
areaStart: function() {
|
|
6
|
+
this._line = 0;
|
|
7
|
+
},
|
|
8
|
+
areaEnd: function() {
|
|
9
|
+
this._line = NaN;
|
|
10
|
+
},
|
|
11
|
+
lineStart: function() {
|
|
12
|
+
this._point = 0;
|
|
13
|
+
},
|
|
14
|
+
lineEnd: function() {
|
|
15
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
16
|
+
},
|
|
17
|
+
point: function(t, i) {
|
|
18
|
+
switch (t = +t, i = +i, this._point) {
|
|
19
|
+
case 0:
|
|
20
|
+
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
21
|
+
break;
|
|
22
|
+
case 1:
|
|
23
|
+
this._point = 2;
|
|
24
|
+
// falls through
|
|
25
|
+
default:
|
|
26
|
+
this._context.lineTo(t, i);
|
|
27
|
+
break;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
function e(t) {
|
|
32
|
+
return new n(t);
|
|
33
|
+
}
|
|
34
|
+
export {
|
|
35
|
+
e as default
|
|
36
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const n=require("../noop.cjs");function i(t){this._context=t}i.prototype={areaStart:n.default,areaEnd:n.default,lineStart:function(){this._point=0},lineEnd:function(){this._point&&this._context.closePath()},point:function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))}};function o(t){return new i(t)}exports.default=o;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import o from "../noop.js";
|
|
2
|
+
function i(t) {
|
|
3
|
+
this._context = t;
|
|
4
|
+
}
|
|
5
|
+
i.prototype = {
|
|
6
|
+
areaStart: o,
|
|
7
|
+
areaEnd: o,
|
|
8
|
+
lineStart: function() {
|
|
9
|
+
this._point = 0;
|
|
10
|
+
},
|
|
11
|
+
lineEnd: function() {
|
|
12
|
+
this._point && this._context.closePath();
|
|
13
|
+
},
|
|
14
|
+
point: function(t, n) {
|
|
15
|
+
t = +t, n = +n, this._point ? this._context.lineTo(t, n) : (this._point = 1, this._context.moveTo(t, n));
|
|
16
|
+
}
|
|
17
|
+
};
|
|
18
|
+
function r(t) {
|
|
19
|
+
return new i(t);
|
|
20
|
+
}
|
|
21
|
+
export {
|
|
22
|
+
r as default
|
|
23
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});function u(t){return t<0?-1:1}function a(t,i,n){var o=t._x1-t._x0,s=i-t._x1,e=(t._y1-t._y0)/(o||s<0&&-0),_=(n-t._y1)/(s||o<0&&-0),h=(e*s+_*o)/(o+s);return(u(e)+u(_))*Math.min(Math.abs(e),Math.abs(_),.5*Math.abs(h))||0}function l(t,i){var n=t._x1-t._x0;return n?(3*(t._y1-t._y0)/n-i)/2:i}function r(t,i,n){var o=t._x0,s=t._y0,e=t._x1,_=t._y1,h=(e-o)/3;t._context.bezierCurveTo(o+h,s+h*i,e-h,_-h*n,e,_)}function c(t){this._context=t}c.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},lineEnd:function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:r(this,this._t0,l(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(t,i){var n=NaN;if(t=+t,i=+i,!(t===this._x1&&i===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,i):this._context.moveTo(t,i);break;case 1:this._point=2;break;case 2:this._point=3,r(this,l(this,n=a(this,t,i)),n);break;default:r(this,this._t0,n=a(this,t,i));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=i,this._t0=n}}};function p(t){this._context=new f(t)}(p.prototype=Object.create(c.prototype)).point=function(t,i){c.prototype.point.call(this,i,t)};function f(t){this._context=t}f.prototype={moveTo:function(t,i){this._context.moveTo(i,t)},closePath:function(){this._context.closePath()},lineTo:function(t,i){this._context.lineTo(i,t)},bezierCurveTo:function(t,i,n,o,s,e){this._context.bezierCurveTo(i,t,o,n,e,s)}};function x(t){return new c(t)}function y(t){return new p(t)}exports.monotoneX=x;exports.monotoneY=y;
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
function u(t) {
|
|
2
|
+
return t < 0 ? -1 : 1;
|
|
3
|
+
}
|
|
4
|
+
function a(t, i, n) {
|
|
5
|
+
var o = t._x1 - t._x0, s = i - t._x1, e = (t._y1 - t._y0) / (o || s < 0 && -0), _ = (n - t._y1) / (s || o < 0 && -0), h = (e * s + _ * o) / (o + s);
|
|
6
|
+
return (u(e) + u(_)) * Math.min(Math.abs(e), Math.abs(_), 0.5 * Math.abs(h)) || 0;
|
|
7
|
+
}
|
|
8
|
+
function p(t, i) {
|
|
9
|
+
var n = t._x1 - t._x0;
|
|
10
|
+
return n ? (3 * (t._y1 - t._y0) / n - i) / 2 : i;
|
|
11
|
+
}
|
|
12
|
+
function r(t, i, n) {
|
|
13
|
+
var o = t._x0, s = t._y0, e = t._x1, _ = t._y1, h = (e - o) / 3;
|
|
14
|
+
t._context.bezierCurveTo(o + h, s + h * i, e - h, _ - h * n, e, _);
|
|
15
|
+
}
|
|
16
|
+
function c(t) {
|
|
17
|
+
this._context = t;
|
|
18
|
+
}
|
|
19
|
+
c.prototype = {
|
|
20
|
+
areaStart: function() {
|
|
21
|
+
this._line = 0;
|
|
22
|
+
},
|
|
23
|
+
areaEnd: function() {
|
|
24
|
+
this._line = NaN;
|
|
25
|
+
},
|
|
26
|
+
lineStart: function() {
|
|
27
|
+
this._x0 = this._x1 = this._y0 = this._y1 = this._t0 = NaN, this._point = 0;
|
|
28
|
+
},
|
|
29
|
+
lineEnd: function() {
|
|
30
|
+
switch (this._point) {
|
|
31
|
+
case 2:
|
|
32
|
+
this._context.lineTo(this._x1, this._y1);
|
|
33
|
+
break;
|
|
34
|
+
case 3:
|
|
35
|
+
r(this, this._t0, p(this, this._t0));
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
(this._line || this._line !== 0 && this._point === 1) && this._context.closePath(), this._line = 1 - this._line;
|
|
39
|
+
},
|
|
40
|
+
point: function(t, i) {
|
|
41
|
+
var n = NaN;
|
|
42
|
+
if (t = +t, i = +i, !(t === this._x1 && i === this._y1)) {
|
|
43
|
+
switch (this._point) {
|
|
44
|
+
case 0:
|
|
45
|
+
this._point = 1, this._line ? this._context.lineTo(t, i) : this._context.moveTo(t, i);
|
|
46
|
+
break;
|
|
47
|
+
case 1:
|
|
48
|
+
this._point = 2;
|
|
49
|
+
break;
|
|
50
|
+
case 2:
|
|
51
|
+
this._point = 3, r(this, p(this, n = a(this, t, i)), n);
|
|
52
|
+
break;
|
|
53
|
+
default:
|
|
54
|
+
r(this, this._t0, n = a(this, t, i));
|
|
55
|
+
break;
|
|
56
|
+
}
|
|
57
|
+
this._x0 = this._x1, this._x1 = t, this._y0 = this._y1, this._y1 = i, this._t0 = n;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
function x(t) {
|
|
62
|
+
this._context = new f(t);
|
|
63
|
+
}
|
|
64
|
+
(x.prototype = Object.create(c.prototype)).point = function(t, i) {
|
|
65
|
+
c.prototype.point.call(this, i, t);
|
|
66
|
+
};
|
|
67
|
+
function f(t) {
|
|
68
|
+
this._context = t;
|
|
69
|
+
}
|
|
70
|
+
f.prototype = {
|
|
71
|
+
moveTo: function(t, i) {
|
|
72
|
+
this._context.moveTo(i, t);
|
|
73
|
+
},
|
|
74
|
+
closePath: function() {
|
|
75
|
+
this._context.closePath();
|
|
76
|
+
},
|
|
77
|
+
lineTo: function(t, i) {
|
|
78
|
+
this._context.lineTo(i, t);
|
|
79
|
+
},
|
|
80
|
+
bezierCurveTo: function(t, i, n, o, s, e) {
|
|
81
|
+
this._context.bezierCurveTo(i, t, o, n, e, s);
|
|
82
|
+
}
|
|
83
|
+
};
|
|
84
|
+
function l(t) {
|
|
85
|
+
return new c(t);
|
|
86
|
+
}
|
|
87
|
+
function y(t) {
|
|
88
|
+
return new x(t);
|
|
89
|
+
}
|
|
90
|
+
export {
|
|
91
|
+
l as monotoneX,
|
|
92
|
+
y as monotoneY
|
|
93
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});function l(e){this._context=e}l.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._x=[],this._y=[]},lineEnd:function(){var e=this._x,t=this._y,n=e.length;if(n)if(this._line?this._context.lineTo(e[0],t[0]):this._context.moveTo(e[0],t[0]),n===2)this._context.lineTo(e[1],t[1]);else for(var s=h(e),o=h(t),i=0,r=1;r<n;++i,++r)this._context.bezierCurveTo(s[0][i],o[0][i],s[1][i],o[1][i],e[r],t[r]);(this._line||this._line!==0&&n===1)&&this._context.closePath(),this._line=1-this._line,this._x=this._y=null},point:function(e,t){this._x.push(+e),this._y.push(+t)}};function h(e){var t,n=e.length-1,s,o=new Array(n),i=new Array(n),r=new Array(n);for(o[0]=0,i[0]=2,r[0]=e[0]+2*e[1],t=1;t<n-1;++t)o[t]=1,i[t]=4,r[t]=4*e[t]+2*e[t+1];for(o[n-1]=2,i[n-1]=7,r[n-1]=8*e[n-1]+e[n],t=1;t<n;++t)s=o[t]/i[t-1],i[t]-=s,r[t]-=s*r[t-1];for(o[n-1]=r[n-1]/i[n-1],t=n-2;t>=0;--t)o[t]=(r[t]-o[t+1])/i[t];for(i[n-1]=(e[n]+o[n-1])/2,t=0;t<n-1;++t)i[t]=2*e[t+1]-o[t+1];return[o,i]}function a(e){return new l(e)}exports.default=a;
|