@visactor/vchart 1.2.3 → 1.3.0-beta.0
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/build/es5/index.js +3 -3
- package/build/index.js +67887 -64461
- package/build/index.min.js +15 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/spec.d.ts +1 -1
- package/cjs/animation/spec.js.map +1 -1
- package/cjs/animation/utils.js +2 -2
- package/cjs/animation/utils.js.map +1 -1
- package/cjs/chart/area/area.js +2 -3
- package/cjs/chart/area/area.js.map +1 -1
- package/cjs/chart/bar/bar-3d.js +2 -2
- package/cjs/chart/bar/bar-3d.js.map +1 -1
- package/cjs/chart/bar/bar.js +2 -2
- package/cjs/chart/bar/bar.js.map +1 -1
- package/cjs/chart/base-chart.d.ts +5 -2
- package/cjs/chart/base-chart.js +48 -42
- package/cjs/chart/base-chart.js.map +1 -1
- package/cjs/chart/box-plot/box-plot.js +2 -2
- package/cjs/chart/box-plot/box-plot.js.map +1 -1
- package/cjs/chart/cartesian/cartesian.js +3 -2
- package/cjs/chart/cartesian/cartesian.js.map +1 -1
- package/cjs/chart/circle-packing/circle-packing.js +2 -2
- package/cjs/chart/circle-packing/circle-packing.js.map +1 -1
- package/cjs/chart/funnel/funnel-3d.js +2 -2
- package/cjs/chart/funnel/funnel-3d.js.map +1 -1
- package/cjs/chart/funnel/funnel.js +2 -2
- package/cjs/chart/funnel/funnel.js.map +1 -1
- package/cjs/chart/gauge/gauge.js +2 -2
- package/cjs/chart/gauge/gauge.js.map +1 -1
- package/cjs/chart/heatmap/heatmap.js +2 -2
- package/cjs/chart/heatmap/heatmap.js.map +1 -1
- package/cjs/chart/histogram/histogram-3d.js +2 -2
- package/cjs/chart/histogram/histogram-3d.js.map +1 -1
- package/cjs/chart/histogram/histogram.js +2 -2
- package/cjs/chart/histogram/histogram.js.map +1 -1
- package/cjs/chart/index.d.ts +2 -2
- package/cjs/chart/index.js +3 -3
- package/cjs/chart/index.js.map +1 -1
- package/cjs/chart/interface/chart.d.ts +4 -2
- package/cjs/chart/interface/chart.js.map +1 -1
- package/cjs/chart/line/line.js +2 -3
- package/cjs/chart/line/line.js.map +1 -1
- package/cjs/chart/map/map.js +2 -2
- package/cjs/chart/map/map.js.map +1 -1
- package/cjs/chart/pie/pie-3d.js +2 -2
- package/cjs/chart/pie/pie-3d.js.map +1 -1
- package/cjs/chart/pie/pie.js +2 -2
- package/cjs/chart/pie/pie.js.map +1 -1
- package/cjs/chart/polar/progress-like.js +2 -2
- package/cjs/chart/polar/progress-like.js.map +1 -1
- package/cjs/chart/polar/rose-like.js +1 -1
- package/cjs/chart/polar/rose-like.js.map +1 -1
- package/cjs/chart/progress/circular/circular.js +2 -2
- package/cjs/chart/progress/circular/circular.js.map +1 -1
- package/cjs/chart/progress/linear/linear.js +4 -4
- package/cjs/chart/progress/linear/linear.js.map +1 -1
- package/cjs/chart/radar/radar.js +4 -5
- package/cjs/chart/radar/radar.js.map +1 -1
- package/cjs/chart/range-area/range-area.js +2 -2
- package/cjs/chart/range-area/range-area.js.map +1 -1
- package/cjs/chart/range-column/range-column-3d.js +2 -2
- package/cjs/chart/range-column/range-column-3d.js.map +1 -1
- package/cjs/chart/range-column/range-column.js +2 -2
- package/cjs/chart/range-column/range-column.js.map +1 -1
- package/cjs/chart/rose/rose.js +3 -3
- package/cjs/chart/rose/rose.js.map +1 -1
- package/cjs/chart/sankey/sankey.js +2 -2
- package/cjs/chart/sankey/sankey.js.map +1 -1
- package/cjs/chart/scatter/scatter.js +2 -2
- package/cjs/chart/scatter/scatter.js.map +1 -1
- package/cjs/chart/sequence/sequence.js +2 -2
- package/cjs/chart/sequence/sequence.js.map +1 -1
- package/cjs/chart/stack.d.ts +1 -0
- package/cjs/chart/stack.js +14 -0
- package/cjs/chart/stack.js.map +1 -1
- package/cjs/chart/sunburst/sunburst.js +2 -2
- package/cjs/chart/sunburst/sunburst.js.map +1 -1
- package/cjs/chart/treemap/treemap.d.ts +1 -1
- package/cjs/chart/treemap/treemap.js +6 -6
- package/cjs/chart/treemap/treemap.js.map +1 -1
- package/cjs/chart/util.d.ts +8 -0
- package/cjs/chart/util.js +33 -4
- package/cjs/chart/util.js.map +1 -1
- package/cjs/chart/waterfall/waterfall.js +2 -2
- package/cjs/chart/waterfall/waterfall.js.map +1 -1
- package/cjs/chart/word-cloud/word-cloud-3d.js +2 -2
- package/cjs/chart/word-cloud/word-cloud-3d.js.map +1 -1
- package/cjs/chart/word-cloud/word-cloud.js +2 -2
- package/cjs/chart/word-cloud/word-cloud.js.map +1 -1
- package/cjs/compile/compiler.d.ts +5 -1
- package/cjs/compile/compiler.js +8 -3
- package/cjs/compile/compiler.js.map +1 -1
- package/cjs/compile/interface/compilable-item.d.ts +1 -0
- package/cjs/compile/interface/compilable-item.js.map +1 -1
- package/cjs/compile/mark/compilable-mark.js +9 -10
- package/cjs/compile/mark/compilable-mark.js.map +1 -1
- package/cjs/compile/mark/interface.d.ts +2 -1
- package/cjs/compile/mark/interface.js.map +1 -1
- package/cjs/compile/mark/util.d.ts +2 -1
- package/cjs/compile/mark/util.js +21 -5
- package/cjs/compile/mark/util.js.map +1 -1
- package/cjs/component/axis/base-axis.d.ts +17 -27
- package/cjs/component/axis/base-axis.js +18 -28
- package/cjs/component/axis/base-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/axis.d.ts +3 -3
- package/cjs/component/axis/cartesian/axis.js +35 -26
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/component/axis/cartesian/band-axis.d.ts +3 -3
- package/cjs/component/axis/cartesian/band-axis.js +1 -0
- package/cjs/component/axis/cartesian/band-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/index.d.ts +1 -0
- package/cjs/component/axis/cartesian/index.js +2 -1
- package/cjs/component/axis/cartesian/index.js.map +1 -1
- package/cjs/component/axis/cartesian/interface/common.d.ts +6 -1
- package/cjs/component/axis/cartesian/interface/common.js.map +1 -1
- package/cjs/component/axis/cartesian/interface/spec.d.ts +4 -1
- package/cjs/component/axis/cartesian/interface/spec.js.map +1 -1
- package/cjs/component/axis/cartesian/linear-axis.d.ts +3 -3
- package/cjs/component/axis/cartesian/linear-axis.js +4 -3
- package/cjs/component/axis/cartesian/linear-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/log-axis.d.ts +3 -2
- package/cjs/component/axis/cartesian/log-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/symlog-axis.d.ts +16 -0
- package/cjs/component/axis/cartesian/symlog-axis.js +23 -0
- package/cjs/component/axis/cartesian/symlog-axis.js.map +1 -0
- package/cjs/component/axis/cartesian/time-axis.d.ts +3 -2
- package/cjs/component/axis/cartesian/time-axis.js +2 -2
- package/cjs/component/axis/cartesian/time-axis.js.map +1 -1
- package/cjs/component/axis/interface.d.ts +11 -8
- package/cjs/component/axis/interface.js.map +1 -1
- package/cjs/component/axis/mixin/linear-axis-mixin.js +3 -3
- package/cjs/component/axis/mixin/linear-axis-mixin.js.map +1 -1
- package/cjs/component/axis/polar/axis.d.ts +4 -3
- package/cjs/component/axis/polar/axis.js +17 -14
- package/cjs/component/axis/polar/axis.js.map +1 -1
- package/cjs/component/axis/polar/band-axis.d.ts +4 -2
- package/cjs/component/axis/polar/band-axis.js.map +1 -1
- package/cjs/component/axis/polar/interface/common.d.ts +1 -1
- package/cjs/component/axis/polar/interface/common.js.map +1 -1
- package/cjs/component/axis/polar/interface/spec.d.ts +7 -2
- package/cjs/component/axis/polar/interface/spec.js.map +1 -1
- package/cjs/component/axis/polar/linear-axis.d.ts +2 -3
- package/cjs/component/axis/polar/linear-axis.js.map +1 -1
- package/cjs/component/axis/util.d.ts +28 -0
- package/cjs/component/axis/util.js +71 -0
- package/cjs/component/axis/util.js.map +1 -0
- package/cjs/component/base/base-component.d.ts +15 -4
- package/cjs/component/base/base-component.js +20 -8
- package/cjs/component/base/base-component.js.map +1 -1
- package/cjs/component/base/interface.d.ts +8 -0
- package/cjs/component/base/interface.js +6 -0
- package/cjs/component/base/interface.js.map +1 -0
- package/cjs/component/base/util.d.ts +2 -1
- package/cjs/component/base/util.js +21 -16
- package/cjs/component/base/util.js.map +1 -1
- package/cjs/component/brush/brush.d.ts +14 -4
- package/cjs/component/brush/brush.js +75 -64
- package/cjs/component/brush/brush.js.map +1 -1
- package/cjs/component/brush/interface.d.ts +1 -0
- package/cjs/component/brush/interface.js.map +1 -1
- package/cjs/component/crosshair/base.d.ts +5 -4
- package/cjs/component/crosshair/base.js +2 -2
- package/cjs/component/crosshair/base.js.map +1 -1
- package/cjs/component/crosshair/cartesian.d.ts +3 -3
- package/cjs/component/crosshair/cartesian.js +10 -10
- package/cjs/component/crosshair/cartesian.js.map +1 -1
- package/cjs/component/crosshair/interface/spec.d.ts +8 -8
- package/cjs/component/crosshair/interface/spec.js.map +1 -1
- package/cjs/component/crosshair/interface/theme.d.ts +3 -1
- package/cjs/component/crosshair/interface/theme.js.map +1 -1
- package/cjs/component/crosshair/polar.d.ts +3 -3
- package/cjs/component/crosshair/polar.js +9 -9
- package/cjs/component/crosshair/polar.js.map +1 -1
- package/cjs/component/crosshair/util.d.ts +5 -0
- package/cjs/component/crosshair/util.js +41 -4
- package/cjs/component/crosshair/util.js.map +1 -1
- package/cjs/component/custom-mark/custom-mark.d.ts +3 -2
- package/cjs/component/custom-mark/custom-mark.js +3 -3
- package/cjs/component/custom-mark/custom-mark.js.map +1 -1
- package/cjs/component/data-zoom/data-filter-base-component.d.ts +5 -5
- package/cjs/component/data-zoom/data-filter-base-component.js +2 -9
- package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.d.ts +5 -4
- package/cjs/component/data-zoom/data-zoom/data-zoom.js +7 -7
- package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/interface.d.ts +3 -1
- package/cjs/component/data-zoom/data-zoom/interface.js.map +1 -1
- package/cjs/component/data-zoom/interface.d.ts +3 -3
- package/cjs/component/data-zoom/interface.js.map +1 -1
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.d.ts +3 -2
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/cjs/component/geo/geo-coordinate.d.ts +10 -4
- package/cjs/component/geo/geo-coordinate.js +65 -15
- package/cjs/component/geo/geo-coordinate.js.map +1 -1
- package/cjs/component/geo/projection.d.ts +1 -0
- package/cjs/component/geo/projection.js +4 -0
- package/cjs/component/geo/projection.js.map +1 -1
- package/cjs/component/index.d.ts +3 -2
- package/cjs/component/index.js +15 -1
- package/cjs/component/index.js.map +1 -1
- package/cjs/component/indicator/indicator.d.ts +3 -2
- package/cjs/component/indicator/indicator.js +11 -8
- package/cjs/component/indicator/indicator.js.map +1 -1
- package/cjs/component/indicator/interface.d.ts +5 -4
- package/cjs/component/indicator/interface.js.map +1 -1
- package/cjs/component/interface/theme.d.ts +4 -2
- package/cjs/component/interface/theme.js.map +1 -1
- package/cjs/component/interface/type.d.ts +2 -0
- package/cjs/component/interface/type.js +13 -12
- package/cjs/component/interface/type.js.map +1 -1
- package/cjs/component/label/base-label.d.ts +39 -0
- package/cjs/component/label/base-label.js +39 -0
- package/cjs/component/label/base-label.js.map +1 -0
- package/cjs/component/label/interface.d.ts +12 -1
- package/cjs/component/label/interface.js.map +1 -1
- package/cjs/component/label/label.d.ts +7 -29
- package/cjs/component/label/label.js +32 -44
- package/cjs/component/label/label.js.map +1 -1
- package/cjs/component/label/pie.d.ts +5 -0
- package/cjs/component/label/pie.js +21 -0
- package/cjs/component/label/pie.js.map +1 -0
- package/cjs/component/label/totalLabel.d.ts +27 -0
- package/cjs/component/label/totalLabel.js +107 -0
- package/cjs/component/label/totalLabel.js.map +1 -0
- package/cjs/component/label/util.d.ts +3 -1
- package/cjs/component/label/util.js +5 -5
- package/cjs/component/label/util.js.map +1 -1
- package/cjs/component/legend/base-legend.d.ts +3 -2
- package/cjs/component/legend/base-legend.js +4 -4
- package/cjs/component/legend/base-legend.js.map +1 -1
- package/cjs/component/legend/continuous/legend.d.ts +3 -4
- package/cjs/component/legend/continuous/legend.js.map +1 -1
- package/cjs/component/legend/continuous/util.js +4 -4
- package/cjs/component/legend/continuous/util.js.map +1 -1
- package/cjs/component/legend/discrete/interface.d.ts +3 -1
- package/cjs/component/legend/discrete/interface.js.map +1 -1
- package/cjs/component/legend/discrete/legend.d.ts +1 -2
- package/cjs/component/legend/discrete/legend.js +2 -2
- package/cjs/component/legend/discrete/legend.js.map +1 -1
- package/cjs/component/legend/discrete/util.js +2 -2
- package/cjs/component/legend/discrete/util.js.map +1 -1
- package/cjs/component/legend/interface.d.ts +2 -6
- package/cjs/component/legend/interface.js.map +1 -1
- package/cjs/component/legend/util.js +2 -2
- package/cjs/component/legend/util.js.map +1 -1
- package/cjs/component/map-label/component.d.ts +1 -2
- package/cjs/component/map-label/component.js.map +1 -1
- package/cjs/component/marker/base-marker.d.ts +8 -2
- package/cjs/component/marker/base-marker.js +14 -0
- package/cjs/component/marker/base-marker.js.map +1 -1
- package/cjs/component/marker/interface.d.ts +3 -2
- package/cjs/component/marker/interface.js.map +1 -1
- package/cjs/component/marker/mark-area/mark-area.d.ts +1 -2
- package/cjs/component/marker/mark-area/mark-area.js +17 -6
- package/cjs/component/marker/mark-area/mark-area.js.map +1 -1
- package/cjs/component/marker/mark-line/mark-line.d.ts +1 -2
- package/cjs/component/marker/mark-line/mark-line.js +17 -6
- package/cjs/component/marker/mark-line/mark-line.js.map +1 -1
- package/cjs/component/marker/mark-point/mark-point.d.ts +1 -2
- package/cjs/component/marker/mark-point/mark-point.js +18 -7
- package/cjs/component/marker/mark-point/mark-point.js.map +1 -1
- package/cjs/component/player/player.d.ts +1 -2
- package/cjs/component/player/player.js.map +1 -1
- package/cjs/component/poptip/interface.d.ts +15 -0
- package/cjs/component/poptip/interface.js +6 -0
- package/cjs/component/poptip/interface.js.map +1 -0
- package/cjs/component/title/interface/spec.d.ts +2 -2
- package/cjs/component/title/interface/spec.js.map +1 -1
- package/cjs/component/title/title.d.ts +2 -2
- package/cjs/component/title/title.js +2 -1
- package/cjs/component/title/title.js.map +1 -1
- package/cjs/component/tooltip/handler/base.js +3 -3
- package/cjs/component/tooltip/handler/base.js.map +1 -1
- package/cjs/component/tooltip/handler/dom/dom-tooltip-handler.d.ts +1 -1
- package/cjs/component/tooltip/handler/dom/dom-tooltip-handler.js +1 -1
- package/cjs/component/tooltip/handler/dom/dom-tooltip-handler.js.map +1 -1
- package/cjs/component/tooltip/handler/dom/interface.d.ts +9 -12
- package/cjs/component/tooltip/handler/dom/interface.js.map +1 -1
- package/cjs/component/tooltip/handler/dom/model/content-column-model.d.ts +4 -6
- package/cjs/component/tooltip/handler/dom/model/content-column-model.js +19 -17
- package/cjs/component/tooltip/handler/dom/model/content-column-model.js.map +1 -1
- package/cjs/component/tooltip/handler/dom/model/content-model.js +2 -2
- package/cjs/component/tooltip/handler/dom/model/content-model.js.map +1 -1
- package/cjs/component/tooltip/handler/dom/model/title-model.js +5 -5
- package/cjs/component/tooltip/handler/dom/model/title-model.js.map +1 -1
- package/cjs/component/tooltip/handler/dom/model/tooltip-model.js +2 -2
- package/cjs/component/tooltip/handler/dom/model/tooltip-model.js.map +1 -1
- package/cjs/component/tooltip/handler/dom/util.js +20 -13
- package/cjs/component/tooltip/handler/dom/util.js.map +1 -1
- package/cjs/component/tooltip/handler/utils/attribute.js +26 -25
- package/cjs/component/tooltip/handler/utils/attribute.js.map +1 -1
- package/cjs/component/tooltip/handler/utils/compose.d.ts +2 -2
- package/cjs/component/tooltip/handler/utils/compose.js +13 -10
- package/cjs/component/tooltip/handler/utils/compose.js.map +1 -1
- package/cjs/component/tooltip/handler/utils/get-spec.js +3 -3
- package/cjs/component/tooltip/handler/utils/get-spec.js.map +1 -1
- package/cjs/component/tooltip/handler/utils/style.d.ts +1 -1
- package/cjs/component/tooltip/handler/utils/style.js +15 -10
- package/cjs/component/tooltip/handler/utils/style.js.map +1 -1
- package/cjs/component/tooltip/interface/theme.d.ts +6 -4
- package/cjs/component/tooltip/interface/theme.js.map +1 -1
- package/cjs/component/tooltip/processor/base.js +1 -1
- package/cjs/component/tooltip/processor/base.js.map +1 -1
- package/cjs/component/tooltip/tooltip.d.ts +4 -3
- package/cjs/component/tooltip/tooltip.js +14 -7
- package/cjs/component/tooltip/tooltip.js.map +1 -1
- package/cjs/constant/index.d.ts +3 -0
- package/cjs/constant/index.js +4 -3
- package/cjs/constant/index.js.map +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/interface.d.ts +3 -0
- package/cjs/core/interface.js.map +1 -1
- package/cjs/core/vchart.d.ts +6 -1
- package/cjs/core/vchart.js +75 -27
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/data/initialize.js +9 -7
- package/cjs/data/initialize.js.map +1 -1
- package/cjs/data/transforms/data-key.d.ts +2 -2
- package/cjs/data/transforms/data-key.js.map +1 -1
- package/cjs/data/transforms/dimension-statistics.d.ts +11 -5
- package/cjs/data/transforms/dimension-statistics.js +34 -22
- package/cjs/data/transforms/dimension-statistics.js.map +1 -1
- package/cjs/data/transforms/invalid-travel.js +1 -2
- package/cjs/data/transforms/invalid-travel.js.map +1 -1
- package/cjs/data/transforms/legend-data/discrete/discrete.js +4 -2
- package/cjs/data/transforms/legend-data/discrete/discrete.js.map +1 -1
- package/cjs/data/transforms/tick-data/continuous.js +6 -3
- package/cjs/data/transforms/tick-data/continuous.js.map +1 -1
- package/cjs/data/transforms/tick-data/discrete/polar-angle.js +2 -2
- package/cjs/data/transforms/tick-data/discrete/polar-angle.js.map +1 -1
- package/cjs/data/transforms/tick-data/interface.d.ts +3 -0
- package/cjs/data/transforms/tick-data/interface.js.map +1 -1
- package/cjs/data/transforms/tick-data/util.js +5 -5
- package/cjs/data/transforms/tick-data/util.js.map +1 -1
- package/cjs/event/event-dispatcher.js +4 -2
- package/cjs/event/event-dispatcher.js.map +1 -1
- package/cjs/event/events/dimension/dimension-click.d.ts +1 -3
- package/cjs/event/events/dimension/dimension-click.js +9 -10
- package/cjs/event/events/dimension/dimension-click.js.map +1 -1
- package/cjs/event/events/dimension/dimension-hover.d.ts +2 -3
- package/cjs/event/events/dimension/dimension-hover.js +26 -17
- package/cjs/event/events/dimension/dimension-hover.js.map +1 -1
- package/cjs/event/events/dimension/util/cartesian.js +2 -2
- package/cjs/event/events/dimension/util/cartesian.js.map +1 -1
- package/cjs/event/events/dimension/util/polar.js +1 -1
- package/cjs/event/events/dimension/util/polar.js.map +1 -1
- package/cjs/event/interface.d.ts +3 -3
- package/cjs/event/interface.js.map +1 -1
- package/cjs/interaction/trigger.js +6 -2
- package/cjs/interaction/trigger.js.map +1 -1
- package/cjs/layout/label/arc-label.js.map +1 -1
- package/cjs/mark/base/base-mark.d.ts +1 -0
- package/cjs/mark/base/base-mark.js +21 -4
- package/cjs/mark/base/base-mark.js.map +1 -1
- package/cjs/mark/mark-set/index.d.ts +1 -0
- package/cjs/mark/mark-set/index.js.map +1 -1
- package/cjs/mark/symbol.js +1 -1
- package/cjs/mark/symbol.js.map +1 -1
- package/cjs/model/base-model.d.ts +6 -4
- package/cjs/model/base-model.js +16 -17
- package/cjs/model/base-model.js.map +1 -1
- package/cjs/model/interface.d.ts +8 -2
- package/cjs/model/interface.js.map +1 -1
- package/cjs/model/layout-item.d.ts +7 -7
- package/cjs/model/layout-item.js.map +1 -1
- package/cjs/model/tooltip-helper.d.ts +0 -2
- package/cjs/model/tooltip-helper.js +0 -3
- package/cjs/model/tooltip-helper.js.map +1 -1
- package/cjs/plugin/components/axis-sync-plugin/axis-sync.js.map +1 -1
- package/cjs/plugin/components/index.d.ts +0 -2
- package/cjs/plugin/components/index.js +1 -2
- package/cjs/plugin/components/index.js.map +1 -1
- package/cjs/region/region.d.ts +3 -3
- package/cjs/region/region.js.map +1 -1
- package/cjs/series/area/area.d.ts +9 -4
- package/cjs/series/area/area.js +44 -21
- package/cjs/series/area/area.js.map +1 -1
- package/cjs/series/area/constant.d.ts +2 -0
- package/cjs/series/area/constant.js +15 -0
- package/cjs/series/area/constant.js.map +1 -0
- package/cjs/series/area/interface.d.ts +2 -0
- package/cjs/series/area/interface.js.map +1 -1
- package/cjs/series/area/tooltip-helpter.d.ts +5 -0
- package/cjs/series/area/tooltip-helpter.js +24 -0
- package/cjs/series/area/tooltip-helpter.js.map +1 -0
- package/cjs/series/bar/bar-3d.d.ts +3 -1
- package/cjs/series/bar/bar-3d.js +2 -7
- package/cjs/series/bar/bar-3d.js.map +1 -1
- package/cjs/series/bar/bar.d.ts +1 -0
- package/cjs/series/bar/bar.js +11 -16
- package/cjs/series/bar/bar.js.map +1 -1
- package/cjs/series/bar/constant.d.ts +3 -0
- package/cjs/series/bar/constant.js +20 -0
- package/cjs/series/bar/constant.js.map +1 -0
- package/cjs/series/bar/interface.d.ts +3 -2
- package/cjs/series/bar/interface.js.map +1 -1
- package/cjs/series/base/base-series.d.ts +8 -6
- package/cjs/series/base/base-series.js +87 -40
- package/cjs/series/base/base-series.js.map +1 -1
- package/cjs/series/base/constant.d.ts +2 -0
- package/cjs/series/base/constant.js +15 -0
- package/cjs/series/base/constant.js.map +1 -0
- package/cjs/series/base/tooltip-helper.d.ts +0 -1
- package/cjs/series/base/tooltip-helper.js +4 -5
- package/cjs/series/base/tooltip-helper.js.map +1 -1
- package/cjs/series/box-plot/box-plot.d.ts +1 -2
- package/cjs/series/box-plot/box-plot.js +6 -15
- package/cjs/series/box-plot/box-plot.js.map +1 -1
- package/cjs/series/box-plot/constant.d.ts +2 -0
- package/cjs/series/box-plot/constant.js +19 -0
- package/cjs/series/box-plot/constant.js.map +1 -0
- package/cjs/series/cartesian/cartesian.d.ts +12 -3
- package/cjs/series/cartesian/cartesian.js +41 -19
- package/cjs/series/cartesian/cartesian.js.map +1 -1
- package/cjs/series/cartesian/interface.d.ts +3 -2
- package/cjs/series/cartesian/interface.js.map +1 -1
- package/cjs/series/circle-packing/circle-packing.d.ts +1 -2
- package/cjs/series/circle-packing/circle-packing.js +6 -11
- package/cjs/series/circle-packing/circle-packing.js.map +1 -1
- package/cjs/series/circle-packing/constant.d.ts +2 -0
- package/cjs/series/circle-packing/constant.js +15 -0
- package/cjs/series/circle-packing/constant.js.map +1 -0
- package/cjs/series/dot/constant.d.ts +2 -0
- package/cjs/series/dot/constant.js +39 -0
- package/cjs/series/dot/constant.js.map +1 -0
- package/cjs/series/dot/dot.d.ts +2 -1
- package/cjs/series/dot/dot.js +6 -32
- package/cjs/series/dot/dot.js.map +1 -1
- package/cjs/series/funnel/constant.d.ts +3 -0
- package/cjs/series/funnel/constant.js +52 -0
- package/cjs/series/funnel/constant.js.map +1 -0
- package/cjs/series/funnel/funnel-3d.d.ts +3 -2
- package/cjs/series/funnel/funnel-3d.js +2 -23
- package/cjs/series/funnel/funnel-3d.js.map +1 -1
- package/cjs/series/funnel/funnel.d.ts +2 -1
- package/cjs/series/funnel/funnel.js +15 -26
- package/cjs/series/funnel/funnel.js.map +1 -1
- package/cjs/series/gauge/constant.d.ts +3 -0
- package/cjs/series/gauge/constant.js +32 -0
- package/cjs/series/gauge/constant.js.map +1 -0
- package/cjs/series/gauge/gauge-pointer.d.ts +2 -2
- package/cjs/series/gauge/gauge-pointer.js +5 -15
- package/cjs/series/gauge/gauge-pointer.js.map +1 -1
- package/cjs/series/gauge/gauge.d.ts +2 -1
- package/cjs/series/gauge/gauge.js +8 -14
- package/cjs/series/gauge/gauge.js.map +1 -1
- package/cjs/series/geo/geo.d.ts +2 -0
- package/cjs/series/geo/geo.js +5 -1
- package/cjs/series/geo/geo.js.map +1 -1
- package/cjs/series/heatmap/constant.d.ts +2 -0
- package/cjs/series/heatmap/constant.js +19 -0
- package/cjs/series/heatmap/constant.js.map +1 -0
- package/cjs/series/heatmap/heatmap.d.ts +2 -1
- package/cjs/series/heatmap/heatmap.js +6 -15
- package/cjs/series/heatmap/heatmap.js.map +1 -1
- package/cjs/series/index.d.ts +2 -2
- package/cjs/series/index.js +3 -3
- package/cjs/series/index.js.map +1 -1
- package/cjs/series/interface/common.d.ts +1 -0
- package/cjs/series/interface/common.js.map +1 -1
- package/cjs/series/interface/series.d.ts +3 -2
- package/cjs/series/interface/series.js.map +1 -1
- package/cjs/series/interface/theme.d.ts +3 -2
- package/cjs/series/interface/theme.js +34 -1
- package/cjs/series/interface/theme.js.map +1 -1
- package/cjs/series/line/constant.d.ts +2 -0
- package/cjs/series/line/constant.js +10 -0
- package/cjs/series/line/constant.js.map +1 -0
- package/cjs/series/line/interface.d.ts +2 -2
- package/cjs/series/line/interface.js.map +1 -1
- package/cjs/series/line/line.d.ts +5 -4
- package/cjs/series/line/line.js +6 -4
- package/cjs/series/line/line.js.map +1 -1
- package/cjs/series/link/constant.d.ts +2 -0
- package/cjs/series/link/constant.js +23 -0
- package/cjs/series/link/constant.js.map +1 -0
- package/cjs/series/link/link.d.ts +1 -1
- package/cjs/series/link/link.js +3 -16
- package/cjs/series/link/link.js.map +1 -1
- package/cjs/series/map/constant.d.ts +2 -0
- package/cjs/series/map/constant.js +15 -0
- package/cjs/series/map/constant.js.map +1 -0
- package/cjs/series/map/geo-source.js +2 -2
- package/cjs/series/map/geo-source.js.map +1 -1
- package/cjs/series/map/interface.d.ts +1 -0
- package/cjs/series/map/interface.js.map +1 -1
- package/cjs/series/map/map.d.ts +2 -3
- package/cjs/series/map/map.js +10 -15
- package/cjs/series/map/map.js.map +1 -1
- package/cjs/series/mixin/line-mixin.d.ts +6 -3
- package/cjs/series/mixin/line-mixin.js +42 -26
- package/cjs/series/mixin/line-mixin.js.map +1 -1
- package/cjs/series/pie/constant.d.ts +3 -0
- package/cjs/series/pie/constant.js +28 -0
- package/cjs/series/pie/constant.js.map +1 -0
- package/cjs/series/pie/interface.d.ts +4 -7
- package/cjs/series/pie/interface.js.map +1 -1
- package/cjs/series/pie/pie-3d.d.ts +1 -1
- package/cjs/series/pie/pie-3d.js +2 -11
- package/cjs/series/pie/pie-3d.js.map +1 -1
- package/cjs/series/pie/pie.d.ts +3 -1
- package/cjs/series/pie/pie.js +21 -67
- package/cjs/series/pie/pie.js.map +1 -1
- package/cjs/series/polar/interface.d.ts +1 -0
- package/cjs/series/polar/interface.js.map +1 -1
- package/cjs/series/polar/polar.d.ts +5 -0
- package/cjs/series/polar/polar.js +17 -4
- package/cjs/series/polar/polar.js.map +1 -1
- package/cjs/series/progress/circular/circular.d.ts +1 -1
- package/cjs/series/progress/circular/circular.js +6 -15
- package/cjs/series/progress/circular/circular.js.map +1 -1
- package/cjs/series/progress/circular/constant.d.ts +2 -0
- package/cjs/series/progress/circular/constant.js +19 -0
- package/cjs/series/progress/circular/constant.js.map +1 -0
- package/cjs/series/progress/linear/constant.d.ts +2 -0
- package/cjs/series/progress/linear/constant.js +23 -0
- package/cjs/series/progress/linear/constant.js.map +1 -0
- package/cjs/series/progress/linear/linear.d.ts +1 -1
- package/cjs/series/progress/linear/linear.js +2 -15
- package/cjs/series/progress/linear/linear.js.map +1 -1
- package/cjs/series/radar/constant.d.ts +2 -0
- package/cjs/series/radar/constant.js +15 -0
- package/cjs/series/radar/constant.js.map +1 -0
- package/cjs/series/radar/radar.d.ts +4 -2
- package/cjs/series/radar/radar.js +8 -10
- package/cjs/series/radar/radar.js.map +1 -1
- package/cjs/series/range-area/constant.d.ts +2 -0
- package/cjs/series/range-area/constant.js +10 -0
- package/cjs/series/range-area/constant.js.map +1 -0
- package/cjs/series/range-area/range-area.d.ts +4 -1
- package/cjs/series/range-area/range-area.js +9 -3
- package/cjs/series/range-area/range-area.js.map +1 -1
- package/cjs/series/range-column/constant.d.ts +3 -0
- package/cjs/series/range-column/constant.js +28 -0
- package/cjs/series/range-column/constant.js.map +1 -0
- package/cjs/series/range-column/range-column-3d.d.ts +5 -1
- package/cjs/series/range-column/range-column-3d.js +3 -2
- package/cjs/series/range-column/range-column-3d.js.map +1 -1
- package/cjs/series/range-column/range-column.d.ts +2 -2
- package/cjs/series/range-column/range-column.js +4 -13
- package/cjs/series/range-column/range-column.js.map +1 -1
- package/cjs/series/rose/constant.d.ts +2 -0
- package/cjs/series/rose/constant.js +15 -0
- package/cjs/series/rose/constant.js.map +1 -0
- package/cjs/series/rose/interface.d.ts +3 -0
- package/cjs/series/rose/interface.js.map +1 -1
- package/cjs/series/rose/rose.d.ts +3 -3
- package/cjs/series/rose/rose.js +24 -45
- package/cjs/series/rose/rose.js.map +1 -1
- package/cjs/series/sankey/constant.d.ts +2 -0
- package/cjs/series/sankey/constant.js +19 -0
- package/cjs/series/sankey/constant.js.map +1 -0
- package/cjs/series/sankey/interface.d.ts +3 -2
- package/cjs/series/sankey/interface.js.map +1 -1
- package/cjs/series/sankey/sankey.d.ts +6 -2
- package/cjs/series/sankey/sankey.js +247 -102
- package/cjs/series/sankey/sankey.js.map +1 -1
- package/cjs/series/scatter/constant.d.ts +2 -0
- package/cjs/series/scatter/constant.js +15 -0
- package/cjs/series/scatter/constant.js.map +1 -0
- package/cjs/series/scatter/interface.d.ts +3 -2
- package/cjs/series/scatter/interface.js.map +1 -1
- package/cjs/series/scatter/scatter.d.ts +4 -4
- package/cjs/series/scatter/scatter.js +27 -23
- package/cjs/series/scatter/scatter.js.map +1 -1
- package/cjs/series/sunburst/constant.d.ts +2 -0
- package/cjs/series/sunburst/constant.js +15 -0
- package/cjs/series/sunburst/constant.js.map +1 -0
- package/cjs/series/sunburst/sunburst.js +2 -7
- package/cjs/series/sunburst/sunburst.js.map +1 -1
- package/cjs/series/treemap/constant.d.ts +2 -0
- package/cjs/series/treemap/constant.js +23 -0
- package/cjs/series/treemap/constant.js.map +1 -0
- package/cjs/series/treemap/treemap.d.ts +1 -1
- package/cjs/series/treemap/treemap.js +10 -22
- package/cjs/series/treemap/treemap.js.map +1 -1
- package/cjs/series/util/utils.d.ts +4 -1
- package/cjs/series/util/utils.js +8 -6
- package/cjs/series/util/utils.js.map +1 -1
- package/cjs/series/waterfall/constant.d.ts +2 -0
- package/cjs/series/waterfall/constant.js +19 -0
- package/cjs/series/waterfall/constant.js.map +1 -0
- package/cjs/series/waterfall/waterfall.d.ts +2 -2
- package/cjs/series/waterfall/waterfall.js +2 -11
- package/cjs/series/waterfall/waterfall.js.map +1 -1
- package/cjs/series/word-cloud/base.d.ts +1 -0
- package/cjs/series/word-cloud/base.js +3 -12
- package/cjs/series/word-cloud/base.js.map +1 -1
- package/cjs/series/word-cloud/constant.d.ts +2 -0
- package/cjs/series/word-cloud/constant.js +19 -0
- package/cjs/series/word-cloud/constant.js.map +1 -0
- package/cjs/series/word-cloud/word-cloud-3d.d.ts +1 -1
- package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/cjs/series/word-cloud/word-cloud.d.ts +1 -1
- package/cjs/series/word-cloud/word-cloud.js.map +1 -1
- package/cjs/theme/builtin/common/component/axis/band-axis.d.ts +2 -0
- package/cjs/theme/builtin/common/component/axis/band-axis.js.map +1 -0
- package/cjs/theme/builtin/common/component/axis/cartesian-axis.js +24 -0
- package/cjs/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -0
- package/cjs/theme/builtin/common/component/axis/common-axis.js +98 -0
- package/cjs/theme/builtin/common/component/axis/common-axis.js.map +1 -0
- package/cjs/theme/builtin/common/component/axis/linear-axis.js.map +1 -0
- package/cjs/theme/builtin/common/component/axis/polar-axis.js +25 -0
- package/cjs/theme/builtin/common/component/axis/polar-axis.js.map +1 -0
- package/cjs/theme/builtin/common/component/brush.js.map +1 -0
- package/cjs/theme/builtin/common/component/crosshair.js +108 -0
- package/cjs/theme/builtin/common/component/crosshair.js.map +1 -0
- package/cjs/theme/builtin/common/component/data-zoom.js +172 -0
- package/cjs/theme/builtin/common/component/data-zoom.js.map +1 -0
- package/cjs/theme/builtin/common/component/index.js +34 -0
- package/cjs/theme/builtin/common/component/index.js.map +1 -0
- package/cjs/theme/builtin/common/component/indicator.js +43 -0
- package/cjs/theme/builtin/common/component/indicator.js.map +1 -0
- package/cjs/theme/builtin/common/component/legend/color-legend.js +55 -0
- package/cjs/theme/builtin/common/component/legend/color-legend.js.map +1 -0
- package/cjs/theme/builtin/common/component/legend/continuous.js +74 -0
- package/cjs/theme/builtin/common/component/legend/continuous.js.map +1 -0
- package/cjs/theme/builtin/common/component/legend/discrete-legend.js +85 -0
- package/cjs/theme/builtin/common/component/legend/discrete-legend.js.map +1 -0
- package/cjs/theme/builtin/common/component/legend/size-legend.js +84 -0
- package/cjs/theme/builtin/common/component/legend/size-legend.js.map +1 -0
- package/cjs/theme/builtin/common/component/map-label.js +57 -0
- package/cjs/theme/builtin/common/component/map-label.js.map +1 -0
- package/cjs/theme/builtin/common/component/mark-area.js +45 -0
- package/cjs/theme/builtin/common/component/mark-area.js.map +1 -0
- package/cjs/theme/builtin/common/component/mark-line.js +67 -0
- package/cjs/theme/builtin/common/component/mark-line.js.map +1 -0
- package/cjs/theme/builtin/common/component/mark-point.js.map +1 -0
- package/cjs/theme/builtin/common/component/player.js +93 -0
- package/cjs/theme/builtin/common/component/player.js.map +1 -0
- package/cjs/theme/builtin/common/component/poptip.d.ts +2 -0
- package/cjs/theme/builtin/common/component/poptip.js +52 -0
- package/cjs/theme/builtin/common/component/poptip.js.map +1 -0
- package/cjs/theme/builtin/common/component/title.js +33 -0
- package/cjs/theme/builtin/common/component/title.js.map +1 -0
- package/cjs/theme/builtin/common/component/tooltip.js +87 -0
- package/cjs/theme/builtin/common/component/tooltip.js.map +1 -0
- package/cjs/theme/builtin/common/component/total-label.d.ts +2 -0
- package/cjs/theme/builtin/common/component/total-label.js +27 -0
- package/cjs/theme/builtin/common/component/total-label.js.map +1 -0
- package/cjs/theme/builtin/common/constants.js +23 -0
- package/cjs/theme/builtin/common/constants.js.map +1 -0
- package/cjs/theme/builtin/common/mark.js +85 -0
- package/cjs/theme/builtin/common/mark.js.map +1 -0
- package/cjs/theme/builtin/common/series/area.js +21 -0
- package/cjs/theme/builtin/common/series/area.js.map +1 -0
- package/cjs/theme/builtin/common/series/bar.js +16 -0
- package/cjs/theme/builtin/common/series/bar.js.map +1 -0
- package/cjs/theme/builtin/common/series/bar3d.js +19 -0
- package/cjs/theme/builtin/common/series/bar3d.js.map +1 -0
- package/cjs/theme/builtin/common/series/box-plot.js.map +1 -0
- package/cjs/theme/builtin/common/series/circle-packing.js +34 -0
- package/cjs/theme/builtin/common/series/circle-packing.js.map +1 -0
- package/cjs/theme/builtin/common/series/circular-progress.js.map +1 -0
- package/cjs/theme/builtin/common/series/dot.js +40 -0
- package/cjs/theme/builtin/common/series/dot.js.map +1 -0
- package/cjs/theme/builtin/common/series/funnel.js +48 -0
- package/cjs/theme/builtin/common/series/funnel.js.map +1 -0
- package/cjs/theme/builtin/common/series/funnel3d.js +48 -0
- package/cjs/theme/builtin/common/series/funnel3d.js.map +1 -0
- package/cjs/theme/builtin/common/series/gauge-pointer.js.map +1 -0
- package/cjs/theme/builtin/common/series/gauge.js.map +1 -0
- package/cjs/theme/builtin/common/series/heatmap.js.map +1 -0
- package/cjs/theme/builtin/common/series/index.js.map +1 -0
- package/cjs/theme/builtin/common/series/line.js +21 -0
- package/cjs/theme/builtin/common/series/line.js.map +1 -0
- package/cjs/theme/builtin/common/series/linear-progress.js.map +1 -0
- package/cjs/theme/builtin/common/series/link.js.map +1 -0
- package/cjs/theme/builtin/common/series/map.js +34 -0
- package/cjs/theme/builtin/common/series/map.js.map +1 -0
- package/cjs/theme/builtin/common/series/pie.js +21 -0
- package/cjs/theme/builtin/common/series/pie.js.map +1 -0
- package/cjs/theme/builtin/common/series/pie3d.js +18 -0
- package/cjs/theme/builtin/common/series/pie3d.js.map +1 -0
- package/cjs/theme/builtin/common/series/radar.js +20 -0
- package/cjs/theme/builtin/common/series/radar.js.map +1 -0
- package/cjs/theme/builtin/common/series/rangeColumn.js +28 -0
- package/cjs/theme/builtin/common/series/rangeColumn.js.map +1 -0
- package/cjs/theme/builtin/common/series/rose.js +18 -0
- package/cjs/theme/builtin/common/series/rose.js.map +1 -0
- package/cjs/theme/builtin/common/series/sankey.js +13 -0
- package/cjs/theme/builtin/common/series/sankey.js.map +1 -0
- package/cjs/theme/builtin/common/series/scatter.js +24 -0
- package/cjs/theme/builtin/common/series/scatter.js.map +1 -0
- package/cjs/theme/builtin/common/series/sunburst.js +44 -0
- package/cjs/theme/builtin/common/series/sunburst.js.map +1 -0
- package/cjs/theme/builtin/common/series/treemap.js +42 -0
- package/cjs/theme/builtin/common/series/treemap.js.map +1 -0
- package/cjs/theme/builtin/common/series/waterfall.js +38 -0
- package/cjs/theme/builtin/common/series/waterfall.js.map +1 -0
- package/cjs/theme/builtin/common/series/word-cloud.js.map +1 -0
- package/cjs/theme/builtin/common/series/word-cloud3d.js.map +1 -0
- package/cjs/theme/builtin/dark/color-scheme.js +35 -0
- package/cjs/theme/builtin/dark/color-scheme.js.map +1 -0
- package/cjs/theme/builtin/dark/index.d.ts +2 -0
- package/cjs/theme/builtin/dark/index.js +13 -0
- package/cjs/theme/builtin/dark/index.js.map +1 -0
- package/cjs/theme/builtin/index.d.ts +4 -0
- package/cjs/theme/builtin/index.js +26 -0
- package/cjs/theme/builtin/index.js.map +1 -0
- package/cjs/theme/builtin/light/color-scheme.js +35 -0
- package/cjs/theme/builtin/light/color-scheme.js.map +1 -0
- package/cjs/theme/builtin/light/index.js +24 -0
- package/cjs/theme/builtin/light/index.js.map +1 -0
- package/cjs/theme/color-scheme/builtin/default.d.ts +2 -0
- package/cjs/theme/color-scheme/builtin/default.js +11 -0
- package/cjs/theme/color-scheme/builtin/default.js.map +1 -0
- package/cjs/theme/color-scheme/builtin/interface.d.ts +22 -0
- package/cjs/theme/color-scheme/builtin/interface.js +6 -0
- package/cjs/theme/color-scheme/builtin/interface.js.map +1 -0
- package/cjs/theme/color-scheme/interface.d.ts +3 -2
- package/cjs/theme/color-scheme/interface.js.map +1 -1
- package/cjs/theme/color-scheme/util.d.ts +2 -1
- package/cjs/theme/color-scheme/util.js +17 -4
- package/cjs/theme/color-scheme/util.js.map +1 -1
- package/cjs/theme/index.d.ts +1 -1
- package/cjs/theme/index.js +1 -1
- package/cjs/theme/index.js.map +1 -1
- package/cjs/theme/interface.d.ts +18 -7
- package/cjs/theme/interface.js.map +1 -1
- package/cjs/theme/theme-manager.js +7 -7
- package/cjs/theme/theme-manager.js.map +1 -1
- package/cjs/typings/spec/common.d.ts +16 -4
- package/cjs/typings/spec/common.js.map +1 -1
- package/cjs/typings/tooltip/label.d.ts +10 -0
- package/cjs/typings/tooltip/label.js +6 -0
- package/cjs/typings/tooltip/label.js.map +1 -0
- package/cjs/typings/tooltip/line.d.ts +3 -2
- package/cjs/typings/tooltip/line.js.map +1 -1
- package/cjs/typings/tooltip/shape.d.ts +2 -0
- package/cjs/typings/tooltip/shape.js.map +1 -1
- package/cjs/typings/visual.d.ts +11 -21
- package/cjs/typings/visual.js.map +1 -1
- package/cjs/util/data.d.ts +0 -8
- package/cjs/util/data.js +2 -9
- package/cjs/util/data.js.map +1 -1
- package/cjs/util/object.d.ts +2 -4
- package/cjs/util/object.js +2 -18
- package/cjs/util/object.js.map +1 -1
- package/cjs/util/scale.d.ts +2 -6
- package/cjs/util/scale.js +1 -6
- package/cjs/util/scale.js.map +1 -1
- package/cjs/util/space.d.ts +4 -9
- package/cjs/util/space.js +21 -30
- package/cjs/util/space.js.map +1 -1
- package/cjs/util/spec/background.d.ts +4 -0
- package/cjs/util/spec/background.js +27 -0
- package/cjs/util/spec/background.js.map +1 -0
- package/cjs/util/spec/clone-deep.d.ts +1 -0
- package/cjs/util/spec/clone-deep.js +27 -0
- package/cjs/util/spec/clone-deep.js.map +1 -0
- package/cjs/util/spec/common.d.ts +3 -0
- package/cjs/util/spec/common.js +23 -0
- package/cjs/util/spec/common.js.map +1 -0
- package/cjs/util/spec/index.d.ts +7 -0
- package/cjs/util/spec/index.js +24 -0
- package/cjs/util/spec/index.js.map +1 -0
- package/cjs/util/spec/merge-spec.d.ts +1 -0
- package/cjs/util/spec/merge-spec.js +58 -0
- package/cjs/util/spec/merge-spec.js.map +1 -0
- package/cjs/util/spec/merge-theme.d.ts +3 -0
- package/cjs/util/spec/merge-theme.js +37 -0
- package/cjs/util/spec/merge-theme.js.map +1 -0
- package/cjs/util/spec/preprocess.d.ts +3 -0
- package/cjs/util/spec/preprocess.js +24 -0
- package/cjs/util/spec/preprocess.js.map +1 -0
- package/cjs/util/spec/transform.d.ts +3 -0
- package/cjs/util/spec/transform.js +28 -0
- package/cjs/util/spec/transform.js.map +1 -0
- package/cjs/util/text.d.ts +1 -6
- package/cjs/util/text.js +4 -22
- package/cjs/util/text.js.map +1 -1
- package/cjs/vchart-all.js +2 -2
- package/cjs/vchart-all.js.map +1 -1
- package/cjs/vchart-simple.js +3 -4
- package/cjs/vchart-simple.js.map +1 -1
- package/esm/animation/spec.d.ts +1 -1
- package/esm/animation/spec.js.map +1 -1
- package/esm/animation/utils.js +3 -3
- package/esm/animation/utils.js.map +1 -1
- package/esm/chart/area/area.js +3 -4
- package/esm/chart/area/area.js.map +1 -1
- package/esm/chart/bar/bar-3d.js +2 -2
- package/esm/chart/bar/bar-3d.js.map +1 -1
- package/esm/chart/bar/bar.js +2 -2
- package/esm/chart/bar/bar.js.map +1 -1
- package/esm/chart/base-chart.d.ts +5 -2
- package/esm/chart/base-chart.js +51 -43
- package/esm/chart/base-chart.js.map +1 -1
- package/esm/chart/box-plot/box-plot.js +1 -1
- package/esm/chart/box-plot/box-plot.js.map +1 -1
- package/esm/chart/cartesian/cartesian.js +3 -2
- package/esm/chart/cartesian/cartesian.js.map +1 -1
- package/esm/chart/circle-packing/circle-packing.js +1 -1
- package/esm/chart/circle-packing/circle-packing.js.map +1 -1
- package/esm/chart/funnel/funnel-3d.js +1 -1
- package/esm/chart/funnel/funnel-3d.js.map +1 -1
- package/esm/chart/funnel/funnel.js +1 -1
- package/esm/chart/funnel/funnel.js.map +1 -1
- package/esm/chart/gauge/gauge.js +2 -2
- package/esm/chart/gauge/gauge.js.map +1 -1
- package/esm/chart/heatmap/heatmap.js +1 -1
- package/esm/chart/heatmap/heatmap.js.map +1 -1
- package/esm/chart/histogram/histogram-3d.js +2 -2
- package/esm/chart/histogram/histogram-3d.js.map +1 -1
- package/esm/chart/histogram/histogram.js +2 -2
- package/esm/chart/histogram/histogram.js.map +1 -1
- package/esm/chart/index.d.ts +2 -2
- package/esm/chart/index.js +2 -2
- package/esm/chart/index.js.map +1 -1
- package/esm/chart/interface/chart.d.ts +4 -2
- package/esm/chart/interface/chart.js.map +1 -1
- package/esm/chart/line/line.js +1 -2
- package/esm/chart/line/line.js.map +1 -1
- package/esm/chart/map/map.js +2 -2
- package/esm/chart/map/map.js.map +1 -1
- package/esm/chart/pie/pie-3d.js +2 -2
- package/esm/chart/pie/pie-3d.js.map +1 -1
- package/esm/chart/pie/pie.js +2 -2
- package/esm/chart/pie/pie.js.map +1 -1
- package/esm/chart/polar/progress-like.js +1 -1
- package/esm/chart/polar/progress-like.js.map +1 -1
- package/esm/chart/polar/rose-like.js +1 -1
- package/esm/chart/polar/rose-like.js.map +1 -1
- package/esm/chart/progress/circular/circular.js +1 -1
- package/esm/chart/progress/circular/circular.js.map +1 -1
- package/esm/chart/progress/linear/linear.js +2 -2
- package/esm/chart/progress/linear/linear.js.map +1 -1
- package/esm/chart/radar/radar.js +5 -6
- package/esm/chart/radar/radar.js.map +1 -1
- package/esm/chart/range-area/range-area.js +1 -1
- package/esm/chart/range-area/range-area.js.map +1 -1
- package/esm/chart/range-column/range-column-3d.js +1 -1
- package/esm/chart/range-column/range-column-3d.js.map +1 -1
- package/esm/chart/range-column/range-column.js +1 -1
- package/esm/chart/range-column/range-column.js.map +1 -1
- package/esm/chart/rose/rose.js +4 -4
- package/esm/chart/rose/rose.js.map +1 -1
- package/esm/chart/sankey/sankey.js +1 -1
- package/esm/chart/sankey/sankey.js.map +1 -1
- package/esm/chart/scatter/scatter.js +2 -2
- package/esm/chart/scatter/scatter.js.map +1 -1
- package/esm/chart/sequence/sequence.js +4 -2
- package/esm/chart/sequence/sequence.js.map +1 -1
- package/esm/chart/stack.d.ts +1 -0
- package/esm/chart/stack.js +16 -2
- package/esm/chart/stack.js.map +1 -1
- package/esm/chart/sunburst/sunburst.js +1 -1
- package/esm/chart/sunburst/sunburst.js.map +1 -1
- package/esm/chart/treemap/treemap.d.ts +1 -1
- package/esm/chart/treemap/treemap.js +4 -4
- package/esm/chart/treemap/treemap.js.map +1 -1
- package/esm/chart/util.d.ts +8 -0
- package/esm/chart/util.js +34 -2
- package/esm/chart/util.js.map +1 -1
- package/esm/chart/waterfall/waterfall.js +1 -1
- package/esm/chart/waterfall/waterfall.js.map +1 -1
- package/esm/chart/word-cloud/word-cloud-3d.js +1 -1
- package/esm/chart/word-cloud/word-cloud-3d.js.map +1 -1
- package/esm/chart/word-cloud/word-cloud.js +1 -1
- package/esm/chart/word-cloud/word-cloud.js.map +1 -1
- package/esm/compile/compiler.d.ts +5 -1
- package/esm/compile/compiler.js +9 -4
- package/esm/compile/compiler.js.map +1 -1
- package/esm/compile/interface/compilable-item.d.ts +1 -0
- package/esm/compile/interface/compilable-item.js.map +1 -1
- package/esm/compile/mark/compilable-mark.js +9 -11
- package/esm/compile/mark/compilable-mark.js.map +1 -1
- package/esm/compile/mark/interface.d.ts +2 -1
- package/esm/compile/mark/interface.js.map +1 -1
- package/esm/compile/mark/util.d.ts +2 -1
- package/esm/compile/mark/util.js +19 -3
- package/esm/compile/mark/util.js.map +1 -1
- package/esm/component/axis/base-axis.d.ts +17 -27
- package/esm/component/axis/base-axis.js +19 -29
- package/esm/component/axis/base-axis.js.map +1 -1
- package/esm/component/axis/cartesian/axis.d.ts +3 -3
- package/esm/component/axis/cartesian/axis.js +31 -22
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/component/axis/cartesian/band-axis.d.ts +3 -3
- package/esm/component/axis/cartesian/band-axis.js +1 -0
- package/esm/component/axis/cartesian/band-axis.js.map +1 -1
- package/esm/component/axis/cartesian/index.d.ts +1 -0
- package/esm/component/axis/cartesian/index.js +2 -0
- package/esm/component/axis/cartesian/index.js.map +1 -1
- package/esm/component/axis/cartesian/interface/common.d.ts +6 -1
- package/esm/component/axis/cartesian/interface/common.js.map +1 -1
- package/esm/component/axis/cartesian/interface/spec.d.ts +4 -1
- package/esm/component/axis/cartesian/interface/spec.js.map +1 -1
- package/esm/component/axis/cartesian/linear-axis.d.ts +3 -3
- package/esm/component/axis/cartesian/linear-axis.js +3 -4
- package/esm/component/axis/cartesian/linear-axis.js.map +1 -1
- package/esm/component/axis/cartesian/log-axis.d.ts +3 -2
- package/esm/component/axis/cartesian/log-axis.js.map +1 -1
- package/esm/component/axis/cartesian/symlog-axis.d.ts +16 -0
- package/esm/component/axis/cartesian/symlog-axis.js +24 -0
- package/esm/component/axis/cartesian/symlog-axis.js.map +1 -0
- package/esm/component/axis/cartesian/time-axis.d.ts +3 -2
- package/esm/component/axis/cartesian/time-axis.js +3 -3
- package/esm/component/axis/cartesian/time-axis.js.map +1 -1
- package/esm/component/axis/interface.d.ts +11 -8
- package/esm/component/axis/interface.js.map +1 -1
- package/esm/component/axis/mixin/linear-axis-mixin.js +1 -1
- package/esm/component/axis/mixin/linear-axis-mixin.js.map +1 -1
- package/esm/component/axis/polar/axis.d.ts +4 -3
- package/esm/component/axis/polar/axis.js +16 -13
- package/esm/component/axis/polar/axis.js.map +1 -1
- package/esm/component/axis/polar/band-axis.d.ts +4 -2
- package/esm/component/axis/polar/band-axis.js.map +1 -1
- package/esm/component/axis/polar/interface/common.d.ts +1 -1
- package/esm/component/axis/polar/interface/common.js.map +1 -1
- package/esm/component/axis/polar/interface/spec.d.ts +7 -2
- package/esm/component/axis/polar/interface/spec.js.map +1 -1
- package/esm/component/axis/polar/linear-axis.d.ts +2 -3
- package/esm/component/axis/polar/linear-axis.js.map +1 -1
- package/esm/component/axis/util.d.ts +28 -0
- package/esm/component/axis/util.js +63 -0
- package/esm/component/axis/util.js.map +1 -0
- package/esm/component/base/base-component.d.ts +15 -4
- package/esm/component/base/base-component.js +19 -5
- package/esm/component/base/base-component.js.map +1 -1
- package/esm/component/base/interface.d.ts +8 -0
- package/esm/component/base/interface.js +2 -0
- package/esm/component/base/interface.js.map +1 -0
- package/esm/component/base/util.d.ts +2 -1
- package/esm/component/base/util.js +14 -7
- package/esm/component/base/util.js.map +1 -1
- package/esm/component/brush/brush.d.ts +14 -4
- package/esm/component/brush/brush.js +75 -63
- package/esm/component/brush/brush.js.map +1 -1
- package/esm/component/brush/interface.d.ts +1 -0
- package/esm/component/brush/interface.js.map +1 -1
- package/esm/component/crosshair/base.d.ts +5 -4
- package/esm/component/crosshair/base.js +2 -2
- package/esm/component/crosshair/base.js.map +1 -1
- package/esm/component/crosshair/cartesian.d.ts +3 -3
- package/esm/component/crosshair/cartesian.js +8 -8
- package/esm/component/crosshair/cartesian.js.map +1 -1
- package/esm/component/crosshair/interface/spec.d.ts +8 -8
- package/esm/component/crosshair/interface/spec.js.map +1 -1
- package/esm/component/crosshair/interface/theme.d.ts +3 -1
- package/esm/component/crosshair/interface/theme.js.map +1 -1
- package/esm/component/crosshair/polar.d.ts +3 -3
- package/esm/component/crosshair/polar.js +8 -8
- package/esm/component/crosshair/polar.js.map +1 -1
- package/esm/component/crosshair/util.d.ts +5 -0
- package/esm/component/crosshair/util.js +34 -0
- package/esm/component/crosshair/util.js.map +1 -1
- package/esm/component/custom-mark/custom-mark.d.ts +3 -2
- package/esm/component/custom-mark/custom-mark.js +4 -4
- package/esm/component/custom-mark/custom-mark.js.map +1 -1
- package/esm/component/data-zoom/data-filter-base-component.d.ts +5 -5
- package/esm/component/data-zoom/data-filter-base-component.js +2 -9
- package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.d.ts +5 -4
- package/esm/component/data-zoom/data-zoom/data-zoom.js +9 -7
- package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/interface.d.ts +3 -1
- package/esm/component/data-zoom/data-zoom/interface.js.map +1 -1
- package/esm/component/data-zoom/interface.d.ts +3 -3
- package/esm/component/data-zoom/interface.js.map +1 -1
- package/esm/component/data-zoom/scroll-bar/scroll-bar.d.ts +3 -2
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/esm/component/geo/geo-coordinate.d.ts +10 -4
- package/esm/component/geo/geo-coordinate.js +68 -16
- package/esm/component/geo/geo-coordinate.js.map +1 -1
- package/esm/component/geo/projection.d.ts +1 -0
- package/esm/component/geo/projection.js +4 -0
- package/esm/component/geo/projection.js.map +1 -1
- package/esm/component/index.d.ts +3 -2
- package/esm/component/index.js +4 -2
- package/esm/component/index.js.map +1 -1
- package/esm/component/indicator/indicator.d.ts +3 -2
- package/esm/component/indicator/indicator.js +9 -8
- package/esm/component/indicator/indicator.js.map +1 -1
- package/esm/component/indicator/interface.d.ts +5 -4
- package/esm/component/indicator/interface.js.map +1 -1
- package/esm/component/interface/theme.d.ts +4 -2
- package/esm/component/interface/theme.js.map +1 -1
- package/esm/component/interface/type.d.ts +2 -0
- package/esm/component/interface/type.js +13 -12
- package/esm/component/interface/type.js.map +1 -1
- package/esm/component/label/base-label.d.ts +39 -0
- package/esm/component/label/base-label.js +37 -0
- package/esm/component/label/base-label.js.map +1 -0
- package/esm/component/label/interface.d.ts +12 -1
- package/esm/component/label/interface.js.map +1 -1
- package/esm/component/label/label.d.ts +7 -29
- package/esm/component/label/label.js +36 -47
- package/esm/component/label/label.js.map +1 -1
- package/esm/component/label/pie.d.ts +5 -0
- package/esm/component/label/pie.js +13 -0
- package/esm/component/label/pie.js.map +1 -0
- package/esm/component/label/totalLabel.d.ts +27 -0
- package/esm/component/label/totalLabel.js +110 -0
- package/esm/component/label/totalLabel.js.map +1 -0
- package/esm/component/label/util.d.ts +3 -1
- package/esm/component/label/util.js +6 -4
- package/esm/component/label/util.js.map +1 -1
- package/esm/component/legend/base-legend.d.ts +3 -2
- package/esm/component/legend/base-legend.js +5 -5
- package/esm/component/legend/base-legend.js.map +1 -1
- package/esm/component/legend/continuous/legend.d.ts +3 -4
- package/esm/component/legend/continuous/legend.js.map +1 -1
- package/esm/component/legend/continuous/util.js +5 -3
- package/esm/component/legend/continuous/util.js.map +1 -1
- package/esm/component/legend/discrete/interface.d.ts +3 -1
- package/esm/component/legend/discrete/interface.js.map +1 -1
- package/esm/component/legend/discrete/legend.d.ts +1 -2
- package/esm/component/legend/discrete/legend.js +2 -2
- package/esm/component/legend/discrete/legend.js.map +1 -1
- package/esm/component/legend/discrete/util.js +4 -4
- package/esm/component/legend/discrete/util.js.map +1 -1
- package/esm/component/legend/interface.d.ts +2 -6
- package/esm/component/legend/interface.js.map +1 -1
- package/esm/component/legend/util.js +4 -2
- package/esm/component/legend/util.js.map +1 -1
- package/esm/component/map-label/component.d.ts +1 -2
- package/esm/component/map-label/component.js.map +1 -1
- package/esm/component/marker/base-marker.d.ts +8 -2
- package/esm/component/marker/base-marker.js +14 -0
- package/esm/component/marker/base-marker.js.map +1 -1
- package/esm/component/marker/interface.d.ts +3 -2
- package/esm/component/marker/interface.js.map +1 -1
- package/esm/component/marker/mark-area/mark-area.d.ts +1 -2
- package/esm/component/marker/mark-area/mark-area.js +17 -6
- package/esm/component/marker/mark-area/mark-area.js.map +1 -1
- package/esm/component/marker/mark-line/mark-line.d.ts +1 -2
- package/esm/component/marker/mark-line/mark-line.js +17 -6
- package/esm/component/marker/mark-line/mark-line.js.map +1 -1
- package/esm/component/marker/mark-point/mark-point.d.ts +1 -2
- package/esm/component/marker/mark-point/mark-point.js +18 -7
- package/esm/component/marker/mark-point/mark-point.js.map +1 -1
- package/esm/component/player/player.d.ts +1 -2
- package/esm/component/player/player.js.map +1 -1
- package/esm/component/poptip/interface.d.ts +15 -0
- package/esm/component/poptip/interface.js +2 -0
- package/esm/component/poptip/interface.js.map +1 -0
- package/esm/component/title/interface/spec.d.ts +2 -2
- package/esm/component/title/interface/spec.js.map +1 -1
- package/esm/component/title/title.d.ts +2 -2
- package/esm/component/title/title.js +2 -1
- package/esm/component/title/title.js.map +1 -1
- package/esm/component/tooltip/handler/base.js +3 -3
- package/esm/component/tooltip/handler/base.js.map +1 -1
- package/esm/component/tooltip/handler/dom/dom-tooltip-handler.d.ts +1 -1
- package/esm/component/tooltip/handler/dom/dom-tooltip-handler.js +1 -1
- package/esm/component/tooltip/handler/dom/dom-tooltip-handler.js.map +1 -1
- package/esm/component/tooltip/handler/dom/interface.d.ts +9 -12
- package/esm/component/tooltip/handler/dom/interface.js.map +1 -1
- package/esm/component/tooltip/handler/dom/model/content-column-model.d.ts +4 -6
- package/esm/component/tooltip/handler/dom/model/content-column-model.js +20 -16
- package/esm/component/tooltip/handler/dom/model/content-column-model.js.map +1 -1
- package/esm/component/tooltip/handler/dom/model/content-model.js +2 -2
- package/esm/component/tooltip/handler/dom/model/content-model.js.map +1 -1
- package/esm/component/tooltip/handler/dom/model/title-model.js +6 -6
- package/esm/component/tooltip/handler/dom/model/title-model.js.map +1 -1
- package/esm/component/tooltip/handler/dom/model/tooltip-model.js +4 -2
- package/esm/component/tooltip/handler/dom/model/tooltip-model.js.map +1 -1
- package/esm/component/tooltip/handler/dom/util.js +21 -14
- package/esm/component/tooltip/handler/dom/util.js.map +1 -1
- package/esm/component/tooltip/handler/utils/attribute.js +25 -25
- package/esm/component/tooltip/handler/utils/attribute.js.map +1 -1
- package/esm/component/tooltip/handler/utils/compose.d.ts +2 -2
- package/esm/component/tooltip/handler/utils/compose.js +11 -10
- package/esm/component/tooltip/handler/utils/compose.js.map +1 -1
- package/esm/component/tooltip/handler/utils/get-spec.js +5 -3
- package/esm/component/tooltip/handler/utils/get-spec.js.map +1 -1
- package/esm/component/tooltip/handler/utils/style.d.ts +1 -1
- package/esm/component/tooltip/handler/utils/style.js +17 -10
- package/esm/component/tooltip/handler/utils/style.js.map +1 -1
- package/esm/component/tooltip/interface/theme.d.ts +6 -4
- package/esm/component/tooltip/interface/theme.js.map +1 -1
- package/esm/component/tooltip/processor/base.js +1 -1
- package/esm/component/tooltip/processor/base.js.map +1 -1
- package/esm/component/tooltip/tooltip.d.ts +4 -3
- package/esm/component/tooltip/tooltip.js +15 -8
- package/esm/component/tooltip/tooltip.js.map +1 -1
- package/esm/constant/index.d.ts +3 -0
- package/esm/constant/index.js +6 -0
- package/esm/constant/index.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/core/interface.d.ts +3 -0
- package/esm/core/interface.js.map +1 -1
- package/esm/core/vchart.d.ts +6 -1
- package/esm/core/vchart.js +79 -28
- package/esm/core/vchart.js.map +1 -1
- package/esm/data/initialize.js +10 -7
- package/esm/data/initialize.js.map +1 -1
- package/esm/data/transforms/data-key.d.ts +2 -2
- package/esm/data/transforms/data-key.js.map +1 -1
- package/esm/data/transforms/dimension-statistics.d.ts +11 -5
- package/esm/data/transforms/dimension-statistics.js +33 -22
- package/esm/data/transforms/dimension-statistics.js.map +1 -1
- package/esm/data/transforms/invalid-travel.js +1 -2
- package/esm/data/transforms/invalid-travel.js.map +1 -1
- package/esm/data/transforms/legend-data/discrete/discrete.js +4 -3
- package/esm/data/transforms/legend-data/discrete/discrete.js.map +1 -1
- package/esm/data/transforms/tick-data/continuous.js +6 -3
- package/esm/data/transforms/tick-data/continuous.js.map +1 -1
- package/esm/data/transforms/tick-data/discrete/polar-angle.js +1 -1
- package/esm/data/transforms/tick-data/discrete/polar-angle.js.map +1 -1
- package/esm/data/transforms/tick-data/interface.d.ts +3 -0
- package/esm/data/transforms/tick-data/interface.js.map +1 -1
- package/esm/data/transforms/tick-data/util.js +1 -1
- package/esm/data/transforms/tick-data/util.js.map +1 -1
- package/esm/event/event-dispatcher.js +3 -2
- package/esm/event/event-dispatcher.js.map +1 -1
- package/esm/event/events/dimension/dimension-click.d.ts +1 -3
- package/esm/event/events/dimension/dimension-click.js +9 -10
- package/esm/event/events/dimension/dimension-click.js.map +1 -1
- package/esm/event/events/dimension/dimension-hover.d.ts +2 -3
- package/esm/event/events/dimension/dimension-hover.js +25 -16
- package/esm/event/events/dimension/dimension-hover.js.map +1 -1
- package/esm/event/events/dimension/util/cartesian.js +2 -2
- package/esm/event/events/dimension/util/cartesian.js.map +1 -1
- package/esm/event/events/dimension/util/polar.js +1 -1
- package/esm/event/events/dimension/util/polar.js.map +1 -1
- package/esm/event/interface.d.ts +3 -3
- package/esm/event/interface.js.map +1 -1
- package/esm/interaction/trigger.js +7 -3
- package/esm/interaction/trigger.js.map +1 -1
- package/esm/layout/label/arc-label.js.map +1 -1
- package/esm/mark/base/base-mark.d.ts +1 -0
- package/esm/mark/base/base-mark.js +22 -5
- package/esm/mark/base/base-mark.js.map +1 -1
- package/esm/mark/mark-set/index.d.ts +1 -0
- package/esm/mark/mark-set/index.js.map +1 -1
- package/esm/mark/symbol.js +1 -1
- package/esm/mark/symbol.js.map +1 -1
- package/esm/model/base-model.d.ts +6 -4
- package/esm/model/base-model.js +17 -17
- package/esm/model/base-model.js.map +1 -1
- package/esm/model/interface.d.ts +8 -2
- package/esm/model/interface.js.map +1 -1
- package/esm/model/layout-item.d.ts +7 -7
- package/esm/model/layout-item.js.map +1 -1
- package/esm/model/tooltip-helper.d.ts +0 -2
- package/esm/model/tooltip-helper.js +0 -3
- package/esm/model/tooltip-helper.js.map +1 -1
- package/esm/plugin/components/axis-sync-plugin/axis-sync.js.map +1 -1
- package/esm/plugin/components/index.d.ts +0 -2
- package/esm/plugin/components/index.js +0 -3
- package/esm/plugin/components/index.js.map +1 -1
- package/esm/region/region.d.ts +3 -3
- package/esm/region/region.js.map +1 -1
- package/esm/series/area/area.d.ts +9 -4
- package/esm/series/area/area.js +46 -21
- package/esm/series/area/area.js.map +1 -1
- package/esm/series/area/constant.d.ts +2 -0
- package/esm/series/area/constant.js +15 -0
- package/esm/series/area/constant.js.map +1 -0
- package/esm/series/area/interface.d.ts +2 -0
- package/esm/series/area/interface.js.map +1 -1
- package/esm/series/area/tooltip-helpter.d.ts +5 -0
- package/esm/series/area/tooltip-helpter.js +18 -0
- package/esm/series/area/tooltip-helpter.js.map +1 -0
- package/esm/series/bar/bar-3d.d.ts +3 -1
- package/esm/series/bar/bar-3d.js +3 -8
- package/esm/series/bar/bar-3d.js.map +1 -1
- package/esm/series/bar/bar.d.ts +1 -0
- package/esm/series/bar/bar.js +6 -13
- package/esm/series/bar/bar.js.map +1 -1
- package/esm/series/bar/constant.d.ts +3 -0
- package/esm/series/bar/constant.js +20 -0
- package/esm/series/bar/constant.js.map +1 -0
- package/esm/series/bar/interface.d.ts +3 -2
- package/esm/series/bar/interface.js.map +1 -1
- package/esm/series/base/base-series.d.ts +8 -6
- package/esm/series/base/base-series.js +87 -42
- package/esm/series/base/base-series.js.map +1 -1
- package/esm/series/base/constant.d.ts +2 -0
- package/esm/series/base/constant.js +11 -0
- package/esm/series/base/constant.js.map +1 -0
- package/esm/series/base/tooltip-helper.d.ts +0 -1
- package/esm/series/base/tooltip-helper.js +4 -5
- package/esm/series/base/tooltip-helper.js.map +1 -1
- package/esm/series/box-plot/box-plot.d.ts +1 -2
- package/esm/series/box-plot/box-plot.js +4 -15
- package/esm/series/box-plot/box-plot.js.map +1 -1
- package/esm/series/box-plot/constant.d.ts +2 -0
- package/esm/series/box-plot/constant.js +17 -0
- package/esm/series/box-plot/constant.js.map +1 -0
- package/esm/series/cartesian/cartesian.d.ts +12 -3
- package/esm/series/cartesian/cartesian.js +39 -18
- package/esm/series/cartesian/cartesian.js.map +1 -1
- package/esm/series/cartesian/interface.d.ts +3 -2
- package/esm/series/cartesian/interface.js.map +1 -1
- package/esm/series/circle-packing/circle-packing.d.ts +1 -2
- package/esm/series/circle-packing/circle-packing.js +4 -10
- package/esm/series/circle-packing/circle-packing.js.map +1 -1
- package/esm/series/circle-packing/constant.d.ts +2 -0
- package/esm/series/circle-packing/constant.js +13 -0
- package/esm/series/circle-packing/constant.js.map +1 -0
- package/esm/series/dot/constant.d.ts +2 -0
- package/esm/series/dot/constant.js +37 -0
- package/esm/series/dot/constant.js.map +1 -0
- package/esm/series/dot/dot.d.ts +2 -1
- package/esm/series/dot/dot.js +8 -36
- package/esm/series/dot/dot.js.map +1 -1
- package/esm/series/funnel/constant.d.ts +3 -0
- package/esm/series/funnel/constant.js +52 -0
- package/esm/series/funnel/constant.js.map +1 -0
- package/esm/series/funnel/funnel-3d.d.ts +3 -2
- package/esm/series/funnel/funnel-3d.js +3 -24
- package/esm/series/funnel/funnel-3d.js.map +1 -1
- package/esm/series/funnel/funnel.d.ts +2 -1
- package/esm/series/funnel/funnel.js +15 -24
- package/esm/series/funnel/funnel.js.map +1 -1
- package/esm/series/gauge/constant.d.ts +3 -0
- package/esm/series/gauge/constant.js +32 -0
- package/esm/series/gauge/constant.js.map +1 -0
- package/esm/series/gauge/gauge-pointer.d.ts +2 -2
- package/esm/series/gauge/gauge-pointer.js +6 -16
- package/esm/series/gauge/gauge-pointer.js.map +1 -1
- package/esm/series/gauge/gauge.d.ts +2 -1
- package/esm/series/gauge/gauge.js +6 -14
- package/esm/series/gauge/gauge.js.map +1 -1
- package/esm/series/geo/geo.d.ts +2 -0
- package/esm/series/geo/geo.js +4 -1
- package/esm/series/geo/geo.js.map +1 -1
- package/esm/series/heatmap/constant.d.ts +2 -0
- package/esm/series/heatmap/constant.js +17 -0
- package/esm/series/heatmap/constant.js.map +1 -0
- package/esm/series/heatmap/heatmap.d.ts +2 -1
- package/esm/series/heatmap/heatmap.js +5 -16
- package/esm/series/heatmap/heatmap.js.map +1 -1
- package/esm/series/index.d.ts +2 -2
- package/esm/series/index.js +2 -2
- package/esm/series/index.js.map +1 -1
- package/esm/series/interface/common.d.ts +1 -0
- package/esm/series/interface/common.js.map +1 -1
- package/esm/series/interface/series.d.ts +3 -2
- package/esm/series/interface/series.js.map +1 -1
- package/esm/series/interface/theme.d.ts +3 -2
- package/esm/series/interface/theme.js +78 -1
- package/esm/series/interface/theme.js.map +1 -1
- package/esm/series/line/constant.d.ts +2 -0
- package/esm/series/line/constant.js +6 -0
- package/esm/series/line/constant.js.map +1 -0
- package/esm/series/line/interface.d.ts +2 -2
- package/esm/series/line/interface.js.map +1 -1
- package/esm/series/line/line.d.ts +5 -4
- package/esm/series/line/line.js +8 -6
- package/esm/series/line/line.js.map +1 -1
- package/esm/series/link/constant.d.ts +2 -0
- package/esm/series/link/constant.js +21 -0
- package/esm/series/link/constant.js.map +1 -0
- package/esm/series/link/link.d.ts +1 -1
- package/esm/series/link/link.js +4 -21
- package/esm/series/link/link.js.map +1 -1
- package/esm/series/map/constant.d.ts +2 -0
- package/esm/series/map/constant.js +13 -0
- package/esm/series/map/constant.js.map +1 -0
- package/esm/series/map/geo-source.js +3 -1
- package/esm/series/map/geo-source.js.map +1 -1
- package/esm/series/map/interface.d.ts +1 -0
- package/esm/series/map/interface.js.map +1 -1
- package/esm/series/map/map.d.ts +2 -3
- package/esm/series/map/map.js +13 -16
- package/esm/series/map/map.js.map +1 -1
- package/esm/series/mixin/line-mixin.d.ts +6 -3
- package/esm/series/mixin/line-mixin.js +43 -23
- package/esm/series/mixin/line-mixin.js.map +1 -1
- package/esm/series/pie/constant.d.ts +3 -0
- package/esm/series/pie/constant.js +28 -0
- package/esm/series/pie/constant.js.map +1 -0
- package/esm/series/pie/interface.d.ts +4 -7
- package/esm/series/pie/interface.js.map +1 -1
- package/esm/series/pie/pie-3d.d.ts +1 -1
- package/esm/series/pie/pie-3d.js +3 -12
- package/esm/series/pie/pie-3d.js.map +1 -1
- package/esm/series/pie/pie.d.ts +3 -1
- package/esm/series/pie/pie.js +26 -67
- package/esm/series/pie/pie.js.map +1 -1
- package/esm/series/polar/interface.d.ts +1 -0
- package/esm/series/polar/interface.js.map +1 -1
- package/esm/series/polar/polar.d.ts +5 -0
- package/esm/series/polar/polar.js +17 -3
- package/esm/series/polar/polar.js.map +1 -1
- package/esm/series/progress/circular/circular.d.ts +1 -1
- package/esm/series/progress/circular/circular.js +3 -14
- package/esm/series/progress/circular/circular.js.map +1 -1
- package/esm/series/progress/circular/constant.d.ts +2 -0
- package/esm/series/progress/circular/constant.js +17 -0
- package/esm/series/progress/circular/constant.js.map +1 -0
- package/esm/series/progress/linear/constant.d.ts +2 -0
- package/esm/series/progress/linear/constant.js +21 -0
- package/esm/series/progress/linear/constant.js.map +1 -0
- package/esm/series/progress/linear/linear.d.ts +1 -1
- package/esm/series/progress/linear/linear.js +3 -18
- package/esm/series/progress/linear/linear.js.map +1 -1
- package/esm/series/radar/constant.d.ts +2 -0
- package/esm/series/radar/constant.js +15 -0
- package/esm/series/radar/constant.js.map +1 -0
- package/esm/series/radar/radar.d.ts +4 -2
- package/esm/series/radar/radar.js +8 -12
- package/esm/series/radar/radar.js.map +1 -1
- package/esm/series/range-area/constant.d.ts +2 -0
- package/esm/series/range-area/constant.js +4 -0
- package/esm/series/range-area/constant.js.map +1 -0
- package/esm/series/range-area/range-area.d.ts +4 -1
- package/esm/series/range-area/range-area.js +10 -4
- package/esm/series/range-area/range-area.js.map +1 -1
- package/esm/series/range-column/constant.d.ts +3 -0
- package/esm/series/range-column/constant.js +28 -0
- package/esm/series/range-column/constant.js.map +1 -0
- package/esm/series/range-column/range-column-3d.d.ts +5 -1
- package/esm/series/range-column/range-column-3d.js +3 -1
- package/esm/series/range-column/range-column-3d.js.map +1 -1
- package/esm/series/range-column/range-column.d.ts +2 -2
- package/esm/series/range-column/range-column.js +6 -13
- package/esm/series/range-column/range-column.js.map +1 -1
- package/esm/series/rose/constant.d.ts +2 -0
- package/esm/series/rose/constant.js +13 -0
- package/esm/series/rose/constant.js.map +1 -0
- package/esm/series/rose/interface.d.ts +3 -0
- package/esm/series/rose/interface.js.map +1 -1
- package/esm/series/rose/rose.d.ts +3 -3
- package/esm/series/rose/rose.js +23 -47
- package/esm/series/rose/rose.js.map +1 -1
- package/esm/series/sankey/constant.d.ts +2 -0
- package/esm/series/sankey/constant.js +17 -0
- package/esm/series/sankey/constant.js.map +1 -0
- package/esm/series/sankey/interface.d.ts +3 -2
- package/esm/series/sankey/interface.js.map +1 -1
- package/esm/series/sankey/sankey.d.ts +6 -2
- package/esm/series/sankey/sankey.js +251 -107
- package/esm/series/sankey/sankey.js.map +1 -1
- package/esm/series/scatter/constant.d.ts +2 -0
- package/esm/series/scatter/constant.js +13 -0
- package/esm/series/scatter/constant.js.map +1 -0
- package/esm/series/scatter/interface.d.ts +3 -2
- package/esm/series/scatter/interface.js.map +1 -1
- package/esm/series/scatter/scatter.d.ts +4 -4
- package/esm/series/scatter/scatter.js +27 -25
- package/esm/series/scatter/scatter.js.map +1 -1
- package/esm/series/sunburst/constant.d.ts +2 -0
- package/esm/series/sunburst/constant.js +13 -0
- package/esm/series/sunburst/constant.js.map +1 -0
- package/esm/series/sunburst/sunburst.js +5 -9
- package/esm/series/sunburst/sunburst.js.map +1 -1
- package/esm/series/treemap/constant.d.ts +2 -0
- package/esm/series/treemap/constant.js +21 -0
- package/esm/series/treemap/constant.js.map +1 -0
- package/esm/series/treemap/treemap.d.ts +1 -1
- package/esm/series/treemap/treemap.js +10 -22
- package/esm/series/treemap/treemap.js.map +1 -1
- package/esm/series/util/utils.d.ts +4 -1
- package/esm/series/util/utils.js +6 -4
- package/esm/series/util/utils.js.map +1 -1
- package/esm/series/waterfall/constant.d.ts +2 -0
- package/esm/series/waterfall/constant.js +17 -0
- package/esm/series/waterfall/constant.js.map +1 -0
- package/esm/series/waterfall/waterfall.d.ts +2 -2
- package/esm/series/waterfall/waterfall.js +3 -12
- package/esm/series/waterfall/waterfall.js.map +1 -1
- package/esm/series/word-cloud/base.d.ts +1 -0
- package/esm/series/word-cloud/base.js +3 -12
- package/esm/series/word-cloud/base.js.map +1 -1
- package/esm/series/word-cloud/constant.d.ts +2 -0
- package/esm/series/word-cloud/constant.js +17 -0
- package/esm/series/word-cloud/constant.js.map +1 -0
- package/esm/series/word-cloud/word-cloud-3d.d.ts +1 -1
- package/esm/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/esm/series/word-cloud/word-cloud.d.ts +1 -1
- package/esm/series/word-cloud/word-cloud.js.map +1 -1
- package/esm/theme/builtin/common/component/axis/band-axis.d.ts +2 -0
- package/esm/theme/builtin/common/component/axis/band-axis.js.map +1 -0
- package/esm/theme/builtin/common/component/axis/cartesian-axis.js +22 -0
- package/esm/theme/builtin/common/component/axis/cartesian-axis.js.map +1 -0
- package/esm/theme/builtin/common/component/axis/common-axis.js +92 -0
- package/esm/theme/builtin/common/component/axis/common-axis.js.map +1 -0
- package/esm/theme/builtin/common/component/axis/linear-axis.js.map +1 -0
- package/esm/theme/builtin/common/component/axis/polar-axis.js +23 -0
- package/esm/theme/builtin/common/component/axis/polar-axis.js.map +1 -0
- package/esm/theme/builtin/common/component/brush.js.map +1 -0
- package/esm/theme/builtin/common/component/crosshair.js +104 -0
- package/esm/theme/builtin/common/component/crosshair.js.map +1 -0
- package/esm/theme/builtin/common/component/data-zoom.js +166 -0
- package/esm/theme/builtin/common/component/data-zoom.js.map +1 -0
- package/esm/theme/builtin/common/component/index.js +68 -0
- package/esm/theme/builtin/common/component/index.js.map +1 -0
- package/esm/theme/builtin/common/component/indicator.js +37 -0
- package/esm/theme/builtin/common/component/indicator.js.map +1 -0
- package/esm/theme/builtin/common/component/legend/color-legend.js +51 -0
- package/esm/theme/builtin/common/component/legend/color-legend.js.map +1 -0
- package/esm/theme/builtin/common/component/legend/continuous.js +68 -0
- package/esm/theme/builtin/common/component/legend/continuous.js.map +1 -0
- package/esm/theme/builtin/common/component/legend/discrete-legend.js +79 -0
- package/esm/theme/builtin/common/component/legend/discrete-legend.js.map +1 -0
- package/esm/theme/builtin/common/component/legend/size-legend.js +80 -0
- package/esm/theme/builtin/common/component/legend/size-legend.js.map +1 -0
- package/esm/theme/builtin/common/component/map-label.js +51 -0
- package/esm/theme/builtin/common/component/map-label.js.map +1 -0
- package/esm/theme/builtin/common/component/mark-area.js +39 -0
- package/esm/theme/builtin/common/component/mark-area.js.map +1 -0
- package/esm/theme/builtin/common/component/mark-line.js +61 -0
- package/esm/theme/builtin/common/component/mark-line.js.map +1 -0
- package/esm/theme/builtin/common/component/mark-point.js.map +1 -0
- package/esm/theme/builtin/common/component/player.js +89 -0
- package/esm/theme/builtin/common/component/player.js.map +1 -0
- package/esm/theme/builtin/common/component/poptip.d.ts +2 -0
- package/esm/theme/builtin/common/component/poptip.js +46 -0
- package/esm/theme/builtin/common/component/poptip.js.map +1 -0
- package/esm/theme/builtin/common/component/title.js +27 -0
- package/esm/theme/builtin/common/component/title.js.map +1 -0
- package/esm/theme/builtin/common/component/tooltip.js +81 -0
- package/esm/theme/builtin/common/component/tooltip.js.map +1 -0
- package/esm/theme/builtin/common/component/total-label.d.ts +2 -0
- package/esm/theme/builtin/common/component/total-label.js +21 -0
- package/esm/theme/builtin/common/component/total-label.js.map +1 -0
- package/esm/theme/builtin/common/constants.js +19 -0
- package/esm/theme/builtin/common/constants.js.map +1 -0
- package/esm/theme/builtin/common/mark.js +81 -0
- package/esm/theme/builtin/common/mark.js.map +1 -0
- package/esm/theme/builtin/common/series/area.js +17 -0
- package/esm/theme/builtin/common/series/area.js.map +1 -0
- package/esm/theme/builtin/common/series/bar.js +12 -0
- package/esm/theme/builtin/common/series/bar.js.map +1 -0
- package/esm/theme/builtin/common/series/bar3d.js +15 -0
- package/esm/theme/builtin/common/series/bar3d.js.map +1 -0
- package/esm/theme/builtin/common/series/box-plot.js.map +1 -0
- package/esm/theme/builtin/common/series/circle-packing.js +28 -0
- package/esm/theme/builtin/common/series/circle-packing.js.map +1 -0
- package/esm/theme/builtin/common/series/circular-progress.js.map +1 -0
- package/esm/theme/builtin/common/series/dot.js +34 -0
- package/esm/theme/builtin/common/series/dot.js.map +1 -0
- package/esm/theme/builtin/common/series/funnel.js +42 -0
- package/esm/theme/builtin/common/series/funnel.js.map +1 -0
- package/esm/theme/builtin/common/series/funnel3d.js +42 -0
- package/esm/theme/builtin/common/series/funnel3d.js.map +1 -0
- package/esm/theme/builtin/common/series/gauge-pointer.js.map +1 -0
- package/esm/theme/builtin/common/series/gauge.js.map +1 -0
- package/esm/theme/builtin/common/series/heatmap.js.map +1 -0
- package/esm/theme/builtin/common/series/index.js.map +1 -0
- package/esm/theme/builtin/common/series/line.js +17 -0
- package/esm/theme/builtin/common/series/line.js.map +1 -0
- package/esm/theme/builtin/common/series/linear-progress.js.map +1 -0
- package/esm/theme/builtin/common/series/link.js.map +1 -0
- package/esm/theme/builtin/common/series/map.js +28 -0
- package/esm/theme/builtin/common/series/map.js.map +1 -0
- package/esm/theme/builtin/common/series/pie.js +17 -0
- package/esm/theme/builtin/common/series/pie.js.map +1 -0
- package/esm/theme/builtin/common/series/pie3d.js +14 -0
- package/esm/theme/builtin/common/series/pie3d.js.map +1 -0
- package/esm/theme/builtin/common/series/radar.js +16 -0
- package/esm/theme/builtin/common/series/radar.js.map +1 -0
- package/esm/theme/builtin/common/series/rangeColumn.js +22 -0
- package/esm/theme/builtin/common/series/rangeColumn.js.map +1 -0
- package/esm/theme/builtin/common/series/rose.js +14 -0
- package/esm/theme/builtin/common/series/rose.js.map +1 -0
- package/esm/theme/builtin/common/series/sankey.js +9 -0
- package/esm/theme/builtin/common/series/sankey.js.map +1 -0
- package/esm/theme/builtin/common/series/scatter.js +20 -0
- package/esm/theme/builtin/common/series/scatter.js.map +1 -0
- package/esm/theme/builtin/common/series/sunburst.js +40 -0
- package/esm/theme/builtin/common/series/sunburst.js.map +1 -0
- package/esm/theme/builtin/common/series/treemap.js +36 -0
- package/esm/theme/builtin/common/series/treemap.js.map +1 -0
- package/esm/theme/builtin/common/series/waterfall.js +32 -0
- package/esm/theme/builtin/common/series/waterfall.js.map +1 -0
- package/esm/theme/builtin/common/series/word-cloud.js.map +1 -0
- package/esm/theme/builtin/common/series/word-cloud3d.js.map +1 -0
- package/esm/theme/builtin/dark/color-scheme.d.ts +2 -0
- package/esm/theme/builtin/dark/color-scheme.js +29 -0
- package/esm/theme/builtin/dark/color-scheme.js.map +1 -0
- package/esm/theme/builtin/dark/index.d.ts +2 -0
- package/esm/theme/builtin/dark/index.js +7 -0
- package/esm/theme/builtin/dark/index.js.map +1 -0
- package/esm/theme/builtin/index.d.ts +4 -0
- package/esm/theme/builtin/index.js +10 -0
- package/esm/theme/builtin/index.js.map +1 -0
- package/esm/theme/builtin/light/color-scheme.d.ts +2 -0
- package/esm/theme/builtin/light/color-scheme.js +29 -0
- package/esm/theme/builtin/light/color-scheme.js.map +1 -0
- package/esm/theme/builtin/light/index.js +26 -0
- package/esm/theme/builtin/light/index.js.map +1 -0
- package/esm/theme/color-scheme/builtin/default.d.ts +2 -0
- package/esm/theme/color-scheme/builtin/default.js +7 -0
- package/esm/theme/color-scheme/builtin/default.js.map +1 -0
- package/esm/theme/color-scheme/builtin/interface.d.ts +22 -0
- package/esm/theme/color-scheme/builtin/interface.js +2 -0
- package/esm/theme/color-scheme/builtin/interface.js.map +1 -0
- package/esm/theme/color-scheme/interface.d.ts +3 -2
- package/esm/theme/color-scheme/interface.js.map +1 -1
- package/esm/theme/color-scheme/util.d.ts +2 -1
- package/esm/theme/color-scheme/util.js +14 -3
- package/esm/theme/color-scheme/util.js.map +1 -1
- package/esm/theme/index.d.ts +1 -1
- package/esm/theme/index.js +1 -1
- package/esm/theme/index.js.map +1 -1
- package/esm/theme/interface.d.ts +18 -7
- package/esm/theme/interface.js.map +1 -1
- package/esm/theme/theme-manager.js +6 -6
- package/esm/theme/theme-manager.js.map +1 -1
- package/esm/typings/spec/common.d.ts +16 -4
- package/esm/typings/spec/common.js.map +1 -1
- package/esm/typings/tooltip/label.d.ts +10 -0
- package/esm/typings/tooltip/label.js +2 -0
- package/esm/typings/tooltip/label.js.map +1 -0
- package/esm/typings/tooltip/line.d.ts +3 -2
- package/esm/typings/tooltip/line.js.map +1 -1
- package/esm/typings/tooltip/shape.d.ts +2 -0
- package/esm/typings/tooltip/shape.js.map +1 -1
- package/esm/typings/visual.d.ts +11 -21
- package/esm/typings/visual.js.map +1 -1
- package/esm/util/data.d.ts +0 -8
- package/esm/util/data.js +1 -7
- package/esm/util/data.js.map +1 -1
- package/esm/util/object.d.ts +2 -4
- package/esm/util/object.js +2 -13
- package/esm/util/object.js.map +1 -1
- package/esm/util/scale.d.ts +2 -6
- package/esm/util/scale.js +1 -5
- package/esm/util/scale.js.map +1 -1
- package/esm/util/space.d.ts +4 -9
- package/esm/util/space.js +13 -26
- package/esm/util/space.js.map +1 -1
- package/esm/util/spec/background.d.ts +4 -0
- package/esm/util/spec/background.js +21 -0
- package/esm/util/spec/background.js.map +1 -0
- package/esm/util/spec/clone-deep.d.ts +1 -0
- package/esm/util/spec/clone-deep.js +20 -0
- package/esm/util/spec/clone-deep.js.map +1 -0
- package/esm/util/spec/common.d.ts +3 -0
- package/esm/util/spec/common.js +15 -0
- package/esm/util/spec/common.js.map +1 -0
- package/esm/util/spec/index.d.ts +7 -0
- package/esm/util/spec/index.js +14 -0
- package/esm/util/spec/index.js.map +1 -0
- package/esm/util/spec/merge-spec.d.ts +1 -0
- package/esm/util/spec/merge-spec.js +48 -0
- package/esm/util/spec/merge-spec.js.map +1 -0
- package/esm/util/spec/merge-theme.d.ts +3 -0
- package/esm/util/spec/merge-theme.js +34 -0
- package/esm/util/spec/merge-theme.js.map +1 -0
- package/esm/util/spec/preprocess.d.ts +3 -0
- package/esm/util/spec/preprocess.js +20 -0
- package/esm/util/spec/preprocess.js.map +1 -0
- package/esm/util/spec/transform.d.ts +3 -0
- package/esm/util/spec/transform.js +20 -0
- package/esm/util/spec/transform.js.map +1 -0
- package/esm/util/text.d.ts +1 -6
- package/esm/util/text.js +5 -19
- package/esm/util/text.js.map +1 -1
- package/esm/vchart-all.js +4 -4
- package/esm/vchart-all.js.map +1 -1
- package/esm/vchart-simple.js +18 -2
- package/esm/vchart-simple.js.map +1 -1
- package/package.json +21 -14
- package/cjs/component/axis/utils.d.ts +0 -28
- package/cjs/component/axis/utils.js +0 -71
- package/cjs/component/axis/utils.js.map +0 -1
- package/cjs/plugin/components/axis-label-overlap-plugin.d.ts +0 -10
- package/cjs/plugin/components/axis-label-overlap-plugin.js +0 -75
- package/cjs/plugin/components/axis-label-overlap-plugin.js.map +0 -1
- package/cjs/theme/buildin-theme/config.d.ts +0 -2
- package/cjs/theme/buildin-theme/config.js +0 -8
- package/cjs/theme/buildin-theme/config.js.map +0 -1
- package/cjs/theme/buildin-theme/index.d.ts +0 -5
- package/cjs/theme/buildin-theme/index.js +0 -27
- package/cjs/theme/buildin-theme/index.js.map +0 -1
- package/cjs/theme/buildin-theme/light/color-scheme.js +0 -21
- package/cjs/theme/buildin-theme/light/color-scheme.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/axis/band-axis.d.ts +0 -2
- package/cjs/theme/buildin-theme/light/component/axis/band-axis.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/axis/cartesian-axis.js +0 -24
- package/cjs/theme/buildin-theme/light/component/axis/cartesian-axis.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/axis/common-axis.js +0 -92
- package/cjs/theme/buildin-theme/light/component/axis/common-axis.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/axis/linear-axis.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/axis/log-axis.d.ts +0 -2
- package/cjs/theme/buildin-theme/light/component/axis/log-axis.js +0 -22
- package/cjs/theme/buildin-theme/light/component/axis/log-axis.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/axis/polar-axis.js +0 -25
- package/cjs/theme/buildin-theme/light/component/axis/polar-axis.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/brush.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/crosshair.js +0 -140
- package/cjs/theme/buildin-theme/light/component/crosshair.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/data-zoom.js +0 -105
- package/cjs/theme/buildin-theme/light/component/data-zoom.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/index.js +0 -33
- package/cjs/theme/buildin-theme/light/component/index.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/indicator.js +0 -31
- package/cjs/theme/buildin-theme/light/component/indicator.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/legend/color-legend.js +0 -29
- package/cjs/theme/buildin-theme/light/component/legend/color-legend.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/legend/continuous.js +0 -60
- package/cjs/theme/buildin-theme/light/component/legend/continuous.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/legend/discrete-legend.js +0 -69
- package/cjs/theme/buildin-theme/light/component/legend/discrete-legend.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/legend/size-legend.js +0 -45
- package/cjs/theme/buildin-theme/light/component/legend/size-legend.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/map-label.js +0 -57
- package/cjs/theme/buildin-theme/light/component/map-label.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/mark-area.js +0 -34
- package/cjs/theme/buildin-theme/light/component/mark-area.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/mark-line.js +0 -56
- package/cjs/theme/buildin-theme/light/component/mark-line.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/mark-point.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/player.js +0 -64
- package/cjs/theme/buildin-theme/light/component/player.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/poptip.d.ts +0 -2
- package/cjs/theme/buildin-theme/light/component/poptip.js +0 -32
- package/cjs/theme/buildin-theme/light/component/poptip.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/title.js +0 -29
- package/cjs/theme/buildin-theme/light/component/title.js.map +0 -1
- package/cjs/theme/buildin-theme/light/component/tooltip.js +0 -65
- package/cjs/theme/buildin-theme/light/component/tooltip.js.map +0 -1
- package/cjs/theme/buildin-theme/light/constants.js +0 -16
- package/cjs/theme/buildin-theme/light/constants.js.map +0 -1
- package/cjs/theme/buildin-theme/light/index.js +0 -20
- package/cjs/theme/buildin-theme/light/index.js.map +0 -1
- package/cjs/theme/buildin-theme/light/mark.js +0 -72
- package/cjs/theme/buildin-theme/light/mark.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/area.js +0 -26
- package/cjs/theme/buildin-theme/light/series/area.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/bar.js +0 -21
- package/cjs/theme/buildin-theme/light/series/bar.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/bar3d.js +0 -24
- package/cjs/theme/buildin-theme/light/series/bar3d.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/box-plot.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/circle-packing.js +0 -22
- package/cjs/theme/buildin-theme/light/series/circle-packing.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/circular-progress.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/dot.js +0 -32
- package/cjs/theme/buildin-theme/light/series/dot.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/funnel.js +0 -45
- package/cjs/theme/buildin-theme/light/series/funnel.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/funnel3d.js +0 -45
- package/cjs/theme/buildin-theme/light/series/funnel3d.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/gauge-pointer.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/gauge.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/heatmap.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/index.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/line.js +0 -26
- package/cjs/theme/buildin-theme/light/series/line.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/linear-progress.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/link.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/map.js +0 -32
- package/cjs/theme/buildin-theme/light/series/map.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/pie.js +0 -26
- package/cjs/theme/buildin-theme/light/series/pie.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/pie3d.js +0 -25
- package/cjs/theme/buildin-theme/light/series/pie3d.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/radar.js +0 -25
- package/cjs/theme/buildin-theme/light/series/radar.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/rangeColumn.js +0 -26
- package/cjs/theme/buildin-theme/light/series/rangeColumn.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/rose.js +0 -20
- package/cjs/theme/buildin-theme/light/series/rose.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/sankey.js +0 -14
- package/cjs/theme/buildin-theme/light/series/sankey.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/scatter.js +0 -29
- package/cjs/theme/buildin-theme/light/series/scatter.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/sunburst.js +0 -35
- package/cjs/theme/buildin-theme/light/series/sunburst.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/treemap.js +0 -38
- package/cjs/theme/buildin-theme/light/series/treemap.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/waterfall.js +0 -39
- package/cjs/theme/buildin-theme/light/series/waterfall.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/word-cloud.js.map +0 -1
- package/cjs/theme/buildin-theme/light/series/word-cloud3d.js.map +0 -1
- package/cjs/util/spec.d.ts +0 -11
- package/cjs/util/spec.js +0 -80
- package/cjs/util/spec.js.map +0 -1
- package/esm/component/axis/utils.d.ts +0 -28
- package/esm/component/axis/utils.js +0 -61
- package/esm/component/axis/utils.js.map +0 -1
- package/esm/plugin/components/axis-label-overlap-plugin.d.ts +0 -10
- package/esm/plugin/components/axis-label-overlap-plugin.js +0 -72
- package/esm/plugin/components/axis-label-overlap-plugin.js.map +0 -1
- package/esm/theme/buildin-theme/config.d.ts +0 -2
- package/esm/theme/buildin-theme/config.js +0 -4
- package/esm/theme/buildin-theme/config.js.map +0 -1
- package/esm/theme/buildin-theme/index.d.ts +0 -5
- package/esm/theme/buildin-theme/index.js +0 -10
- package/esm/theme/buildin-theme/index.js.map +0 -1
- package/esm/theme/buildin-theme/light/color-scheme.js +0 -17
- package/esm/theme/buildin-theme/light/color-scheme.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/axis/band-axis.d.ts +0 -2
- package/esm/theme/buildin-theme/light/component/axis/band-axis.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/axis/cartesian-axis.js +0 -22
- package/esm/theme/buildin-theme/light/component/axis/cartesian-axis.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/axis/common-axis.js +0 -86
- package/esm/theme/buildin-theme/light/component/axis/common-axis.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/axis/linear-axis.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/axis/log-axis.d.ts +0 -2
- package/esm/theme/buildin-theme/light/component/axis/log-axis.js +0 -18
- package/esm/theme/buildin-theme/light/component/axis/log-axis.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/axis/polar-axis.js +0 -23
- package/esm/theme/buildin-theme/light/component/axis/polar-axis.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/brush.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/crosshair.js +0 -136
- package/esm/theme/buildin-theme/light/component/crosshair.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/data-zoom.js +0 -101
- package/esm/theme/buildin-theme/light/component/data-zoom.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/index.js +0 -65
- package/esm/theme/buildin-theme/light/component/index.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/indicator.js +0 -27
- package/esm/theme/buildin-theme/light/component/indicator.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/legend/color-legend.js +0 -23
- package/esm/theme/buildin-theme/light/component/legend/color-legend.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/legend/continuous.js +0 -54
- package/esm/theme/buildin-theme/light/component/legend/continuous.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/legend/discrete-legend.js +0 -63
- package/esm/theme/buildin-theme/light/component/legend/discrete-legend.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/legend/size-legend.js +0 -39
- package/esm/theme/buildin-theme/light/component/legend/size-legend.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/map-label.js +0 -53
- package/esm/theme/buildin-theme/light/component/map-label.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/mark-area.js +0 -30
- package/esm/theme/buildin-theme/light/component/mark-area.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/mark-line.js +0 -52
- package/esm/theme/buildin-theme/light/component/mark-line.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/mark-point.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/player.js +0 -60
- package/esm/theme/buildin-theme/light/component/player.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/poptip.d.ts +0 -2
- package/esm/theme/buildin-theme/light/component/poptip.js +0 -28
- package/esm/theme/buildin-theme/light/component/poptip.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/title.js +0 -23
- package/esm/theme/buildin-theme/light/component/title.js.map +0 -1
- package/esm/theme/buildin-theme/light/component/tooltip.js +0 -61
- package/esm/theme/buildin-theme/light/component/tooltip.js.map +0 -1
- package/esm/theme/buildin-theme/light/constants.js +0 -10
- package/esm/theme/buildin-theme/light/constants.js.map +0 -1
- package/esm/theme/buildin-theme/light/index.js +0 -22
- package/esm/theme/buildin-theme/light/index.js.map +0 -1
- package/esm/theme/buildin-theme/light/mark.js +0 -68
- package/esm/theme/buildin-theme/light/mark.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/area.js +0 -20
- package/esm/theme/buildin-theme/light/series/area.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/bar.js +0 -15
- package/esm/theme/buildin-theme/light/series/bar.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/bar3d.js +0 -18
- package/esm/theme/buildin-theme/light/series/bar3d.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/box-plot.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/circle-packing.js +0 -18
- package/esm/theme/buildin-theme/light/series/circle-packing.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/circular-progress.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/dot.js +0 -28
- package/esm/theme/buildin-theme/light/series/dot.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/funnel.js +0 -41
- package/esm/theme/buildin-theme/light/series/funnel.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/funnel3d.js +0 -41
- package/esm/theme/buildin-theme/light/series/funnel3d.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/gauge-pointer.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/gauge.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/heatmap.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/index.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/line.js +0 -20
- package/esm/theme/buildin-theme/light/series/line.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/linear-progress.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/link.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/map.js +0 -26
- package/esm/theme/buildin-theme/light/series/map.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/pie.js +0 -20
- package/esm/theme/buildin-theme/light/series/pie.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/pie3d.js +0 -19
- package/esm/theme/buildin-theme/light/series/pie3d.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/radar.js +0 -19
- package/esm/theme/buildin-theme/light/series/radar.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/rangeColumn.js +0 -22
- package/esm/theme/buildin-theme/light/series/rangeColumn.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/rose.js +0 -16
- package/esm/theme/buildin-theme/light/series/rose.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/sankey.js +0 -10
- package/esm/theme/buildin-theme/light/series/sankey.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/scatter.js +0 -23
- package/esm/theme/buildin-theme/light/series/scatter.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/sunburst.js +0 -29
- package/esm/theme/buildin-theme/light/series/sunburst.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/treemap.js +0 -34
- package/esm/theme/buildin-theme/light/series/treemap.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/waterfall.js +0 -35
- package/esm/theme/buildin-theme/light/series/waterfall.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/word-cloud.js.map +0 -1
- package/esm/theme/buildin-theme/light/series/word-cloud3d.js.map +0 -1
- package/esm/util/spec.d.ts +0 -11
- package/esm/util/spec.js +0 -72
- package/esm/util/spec.js.map +0 -1
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/axis/band-axis.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/axis/cartesian-axis.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/axis/common-axis.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/axis/linear-axis.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/axis/linear-axis.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/axis/polar-axis.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/brush.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/brush.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/crosshair.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/data-zoom.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/index.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/indicator.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/legend/color-legend.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/legend/continuous.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/legend/discrete-legend.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/legend/size-legend.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/map-label.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/mark-area.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/mark-line.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/mark-point.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/mark-point.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/player.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/title.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/component/tooltip.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/constants.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/mark.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/area.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/bar.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/bar3d.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/box-plot.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/box-plot.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/circle-packing.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/circular-progress.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/circular-progress.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/dot.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/funnel.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/funnel3d.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/gauge-pointer.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/gauge-pointer.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/gauge.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/gauge.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/heatmap.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/heatmap.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/index.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/index.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/line.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/linear-progress.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/linear-progress.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/link.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/link.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/map.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/pie.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/pie3d.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/radar.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/rangeColumn.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/rose.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/sankey.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/scatter.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/sunburst.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/treemap.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/waterfall.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/word-cloud.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/word-cloud.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/word-cloud3d.d.ts +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/common}/series/word-cloud3d.js +0 -0
- /package/cjs/theme/{buildin-theme/light → builtin/dark}/color-scheme.d.ts +0 -0
- /package/{esm/theme/buildin-theme → cjs/theme/builtin}/light/color-scheme.d.ts +0 -0
- /package/cjs/theme/{buildin-theme → builtin}/light/index.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/axis/band-axis.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/axis/cartesian-axis.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/axis/common-axis.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/axis/linear-axis.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/axis/linear-axis.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/axis/polar-axis.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/brush.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/brush.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/crosshair.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/data-zoom.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/index.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/indicator.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/legend/color-legend.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/legend/continuous.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/legend/discrete-legend.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/legend/size-legend.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/map-label.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/mark-area.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/mark-line.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/mark-point.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/mark-point.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/player.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/title.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/component/tooltip.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/constants.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/mark.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/area.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/bar.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/bar3d.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/box-plot.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/box-plot.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/circle-packing.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/circular-progress.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/circular-progress.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/dot.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/funnel.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/funnel3d.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/gauge-pointer.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/gauge-pointer.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/gauge.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/gauge.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/heatmap.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/heatmap.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/index.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/index.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/line.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/linear-progress.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/linear-progress.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/link.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/link.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/map.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/pie.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/pie3d.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/radar.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/rangeColumn.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/rose.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/sankey.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/scatter.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/sunburst.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/treemap.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/waterfall.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/word-cloud.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/word-cloud.js +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/word-cloud3d.d.ts +0 -0
- /package/esm/theme/{buildin-theme/light → builtin/common}/series/word-cloud3d.js +0 -0
- /package/esm/theme/{buildin-theme → builtin}/light/index.d.ts +0 -0
package/esm/util/scale.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/util/scale.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;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nimport { isString, isValid } from '@visactor/vutils';\nimport type { DataView } from '@visactor/vdataset';\nimport type { IGlobalScale } from '../scale/interface';\nimport { type IBaseScale, BandScale, LinearScale, OrdinalScale, PointScale, ThresholdScale } from '@visactor/vscale';\nimport type { IVisual, IVisualSpecBase } from '../typings/visual';\nimport { ColorOrdinalScale } from '../scale/color-ordinal-scale';\n\nconst defaultScaleMap = {\n linear: LinearScale,\n band: BandScale,\n point: PointScale,\n ordinal: OrdinalScale,\n threshold: ThresholdScale,\n colorOrdinal: ColorOrdinalScale\n};\n\nexport function createScale(type: keyof typeof defaultScaleMap): IBaseScale | null {\n const scaleConstructor = defaultScaleMap[type];\n if (scaleConstructor) {\n return new scaleConstructor();\n }\n\n return null;\n}\n\nexport function createScaleWithSpec(\n spec: IVisual<any>,\n context: {\n globalScale: IGlobalScale;\n dataStatistics: DataView;\n }\n): IBaseScale | null {\n if ('scale' in spec && spec.scale) {\n if (isString(spec.scale) && context?.globalScale) {\n return context.globalScale.registerMarkAttributeScale(spec, context.dataStatistics);\n }\n return spec.scale as unknown as IBaseScale;\n }\n const scale = createScale((spec as IVisualSpecBase<any, any>).type);\n if (scale) {\n initScaleWithSpec(scale, spec as IVisualSpecBase<any, any>);\n }\n return scale;\n}\n\n// 需要一个通用的从spec初始化scale的方法,避免在scale属性更新后需要维护多组逻辑\nfunction initScaleWithSpec(scale: IBaseScale, spec: IVisualSpecBase<any, any>) {\n if (!scale || !spec) {\n return;\n }\n\n if (spec.domain) {\n scale.domain(spec.domain);\n }\n\n if (spec.range) {\n scale.range(spec.range);\n }\n\n if (spec.specified && (<OrdinalScale>scale).specified) {\n (<OrdinalScale>scale).specified(spec.specified);\n }\n}\n\nexport function valueInScaleRange(v: number, s?: IBaseScale) {\n if (!s) {\n return v;\n }\n const range = s.range();\n const min = Math.min(range[0], range[range.length - 1]);\n const max = Math.max(range[0], range[range.length - 1]);\n return Math.min(Math.max(min, v), max);\n}\n\nexport function isSpecValueWithScale(specValue: any) {\n return isValid(specValue?.field) && isValid(specValue?.scale);\n}\n"]}
|
package/esm/util/space.d.ts
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
import type
|
|
2
|
-
import type {
|
|
3
|
-
import type { ILayoutNumber, IPercent, ILayoutOrientPadding, ILayoutRect } from '../model/interface';
|
|
1
|
+
import { type IBoundsLike } from '@visactor/vutils';
|
|
2
|
+
import type { ILayoutPaddingSpec, IPercentOffset, ILayoutNumber, IPercent, ILayoutOrientPadding, ILayoutRect } from '../model/interface';
|
|
4
3
|
import type { IPadding, IRect } from '../typings/space';
|
|
5
|
-
import { Direction } from '../typings/space';
|
|
6
4
|
import type { IPoint } from '../typings/coordinate';
|
|
7
5
|
export declare function isValidOrient(orient: string): boolean;
|
|
8
|
-
export declare function getSpecPadding(padding: IPadding | number | undefined | null, defaultPadding: IPadding): IPadding;
|
|
9
6
|
export declare function isPointInRect(point: IPoint, rect: IRect): boolean;
|
|
10
7
|
export declare function isPercent(v: any): v is IPercent;
|
|
8
|
+
export declare function isPercentOffset(v: any): v is IPercentOffset;
|
|
11
9
|
export declare function calcLayoutNumber(v: ILayoutNumber | undefined, size: number, callOp?: ILayoutRect): number;
|
|
12
10
|
export declare function calcPadding(paddingSpec: ILayoutOrientPadding, rect: ILayoutRect, callOp: ILayoutRect): IPadding;
|
|
13
11
|
export declare function boundsInRect(bounds: IBoundsLike, rect: ILayoutRect): ILayoutRect;
|
|
14
|
-
export declare function boundsOutViewBox(bounds: IBoundsLike, box: IBoundsLike, direction: Direction): {
|
|
15
|
-
start: number;
|
|
16
|
-
end: number;
|
|
17
|
-
};
|
|
18
12
|
export declare function normalizeLayoutPaddingSpec(spec: ILayoutPaddingSpec): ILayoutOrientPadding;
|
|
19
13
|
export declare function convertPoint(point: IPoint, relativePoint: IPoint, convert: boolean): IPoint;
|
|
14
|
+
export declare const getActualNumValue: (originValue: number | string, total: number) => number;
|
package/esm/util/space.js
CHANGED
|
@@ -2,8 +2,6 @@ import { isArray } from "@visactor/vutils";
|
|
|
2
2
|
|
|
3
3
|
import { isNumber, isNil, isString, isFunction, couldBeValidNumber, isObject } from "./type";
|
|
4
4
|
|
|
5
|
-
import { Direction } from "../typings/space";
|
|
6
|
-
|
|
7
5
|
export function isValidOrient(orient) {
|
|
8
6
|
switch (orient) {
|
|
9
7
|
case "left":
|
|
@@ -17,15 +15,6 @@ export function isValidOrient(orient) {
|
|
|
17
15
|
}
|
|
18
16
|
}
|
|
19
17
|
|
|
20
|
-
export function getSpecPadding(padding, defaultPadding) {
|
|
21
|
-
return isNil(padding) ? Object.assign({}, defaultPadding) : "number" == typeof padding ? {
|
|
22
|
-
top: padding,
|
|
23
|
-
bottom: padding,
|
|
24
|
-
left: padding,
|
|
25
|
-
right: padding
|
|
26
|
-
} : Object.assign(Object.assign({}, defaultPadding), padding);
|
|
27
|
-
}
|
|
28
|
-
|
|
29
18
|
export function isPointInRect(point, rect) {
|
|
30
19
|
const {x: x, y: y, width: width, height: height} = rect, {x: x0, y: y0} = point;
|
|
31
20
|
return x0 < x + width && y0 < y + height && y0 > y && x0 > x;
|
|
@@ -35,8 +24,13 @@ export function isPercent(v) {
|
|
|
35
24
|
return !!isString(v) && (!!v.endsWith("%") && couldBeValidNumber(v.substring(0, v.length - 1)));
|
|
36
25
|
}
|
|
37
26
|
|
|
27
|
+
export function isPercentOffset(v) {
|
|
28
|
+
return !!isObject(v) && ("percent" in v || "offset" in v);
|
|
29
|
+
}
|
|
30
|
+
|
|
38
31
|
export function calcLayoutNumber(v, size, callOp) {
|
|
39
|
-
|
|
32
|
+
var _a, _b;
|
|
33
|
+
return isNumber(v) ? v : isPercent(v) ? Number(v.substring(0, v.length - 1)) * size / 100 : isFunction(v) ? v(callOp) : isObject(v) ? size * (null !== (_a = v.percent) && void 0 !== _a ? _a : 0) + (null !== (_b = v.offset) && void 0 !== _b ? _b : 0) : 0;
|
|
40
34
|
}
|
|
41
35
|
|
|
42
36
|
export function calcPadding(paddingSpec, rect, callOp) {
|
|
@@ -73,24 +67,12 @@ export function boundsInRect(bounds, rect) {
|
|
|
73
67
|
};
|
|
74
68
|
}
|
|
75
69
|
|
|
76
|
-
export function boundsOutViewBox(bounds, box, direction) {
|
|
77
|
-
if (!bounds || !box) return {
|
|
78
|
-
start: 0,
|
|
79
|
-
end: 0
|
|
80
|
-
};
|
|
81
|
-
const start = -(direction === Direction.horizontal ? bounds.x1 : bounds.y1), end = direction === Direction.horizontal ? bounds.x2 - (box.x2 - box.x1) : bounds.y2 - (box.y2 - box.y1);
|
|
82
|
-
return {
|
|
83
|
-
start: start > 0 ? start : 0,
|
|
84
|
-
end: end > 0 ? end : 0
|
|
85
|
-
};
|
|
86
|
-
}
|
|
87
|
-
|
|
88
70
|
export function normalizeLayoutPaddingSpec(spec) {
|
|
89
71
|
let result = {};
|
|
90
72
|
return isArray(spec) ? (isNil(spec[0]) || (result.top = result.left = result.bottom = result.right = spec[0]),
|
|
91
73
|
isNil(spec[1]) || (result.left = result.right = spec[1]), isNil(spec[2]) || (result.bottom = spec[2]),
|
|
92
|
-
isNil(spec[3]) || (result.left = spec[3]), result) : isNumber(spec) || isPercent(spec) || isFunction(spec) ? (result.top = result.left = result.bottom = result.right = spec,
|
|
93
|
-
result) :
|
|
74
|
+
isNil(spec[3]) || (result.left = spec[3]), result) : isNumber(spec) || isPercent(spec) || isFunction(spec) || isPercentOffset(spec) ? (result.top = result.left = result.bottom = result.right = spec,
|
|
75
|
+
result) : isObject(spec) ? (result = Object.assign({}, spec), result) : result;
|
|
94
76
|
}
|
|
95
77
|
|
|
96
78
|
export function convertPoint(point, relativePoint, convert) {
|
|
@@ -99,4 +81,9 @@ export function convertPoint(point, relativePoint, convert) {
|
|
|
99
81
|
y: point.y + relativePoint.y
|
|
100
82
|
} : point;
|
|
101
83
|
}
|
|
84
|
+
|
|
85
|
+
export const getActualNumValue = (originValue, total) => {
|
|
86
|
+
const originNumValue = Number(originValue), originStrValue = originValue.toString();
|
|
87
|
+
return isNaN(originNumValue) && "%" === originStrValue[originStrValue.length - 1] ? total * (Number(originStrValue.slice(0, originStrValue.length - 1)) / 100) : originNumValue;
|
|
88
|
+
};
|
|
102
89
|
//# sourceMappingURL=space.js.map
|
package/esm/util/space.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/util/space.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"sources":["../src/util/space.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAoB,MAAM,kBAAkB,CAAC;AAC7D,OAAO,EAAE,QAAQ,EAAE,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,kBAAkB,EAAE,QAAQ,EAAE,MAAM,QAAQ,CAAC;AAY7F,MAAM,UAAU,aAAa,CAAC,MAAc;IAC1C,QAAQ,MAAM,EAAE;QACd,KAAK,MAAM,CAAC;QACZ,KAAK,OAAO,CAAC;QACb,KAAK,KAAK,CAAC;QACX,KAAK,QAAQ;YACX,OAAO,IAAI,CAAC;QACd;YACE,OAAO,KAAK,CAAC;KAChB;AACH,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,KAAa,EAAE,IAAW;IACtD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IACrC,MAAM,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IAC/B,OAAO,EAAE,GAAG,CAAC,GAAG,KAAK,IAAI,EAAE,GAAG,CAAC,GAAG,MAAM,IAAI,EAAE,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;AAC/D,CAAC;AAED,MAAM,UAAU,SAAS,CAAC,CAAM;IAC9B,IAAI,CAAC,QAAQ,CAAC,CAAC,CAAC,EAAE;QAChB,OAAO,KAAK,CAAC;KACd;IACD,IAAI,CAAC,CAAC,CAAC,QAAQ,CAAC,GAAG,CAAC,EAAE;QACpB,OAAO,KAAK,CAAC;KACd;IACD,OAAO,kBAAkB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QAAQ,CAAC,IAAI,CAAC,EAAE;QAClB,MAAM,qBAAQ,IAAI,CAAE,CAAC;QACrB,OAAO,MAAM,CAAC;KACf;IACD,OAAO,MAAM,CAAC;AAChB,CAAC;AAED,MAAM,UAAU,YAAY,CAAC,KAAa,EAAE,aAAqB,EAAE,OAAgB;IACjF,IAAI,OAAO,EAAE;QACX,OAAO;YACL,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC;YAC5B,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,aAAa,CAAC,CAAC;SAC7B,CAAC;KACH;IACD,OAAO,KAAK,CAAC;AACf,CAAC;AAQD,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,WAA4B,EAAE,KAAa,EAAU,EAAE;IACvF,MAAM,cAAc,GAAG,MAAM,CAAC,WAAW,CAAC,CAAC;IAC3C,MAAM,cAAc,GAAG,WAAW,CAAC,QAAQ,EAAE,CAAC;IAC9C,IAAI,KAAK,CAAC,cAAc,CAAC,IAAI,cAAc,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,KAAK,GAAG,EAAE;QAC9E,OAAO,KAAK,GAAG,CAAC,MAAM,CAAC,cAAc,CAAC,KAAK,CAAC,CAAC,EAAE,cAAc,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC;KACnF;IACD,OAAO,cAAc,CAAC;AACxB,CAAC,CAAC","file":"space.js","sourcesContent":["import { isArray, type IBoundsLike } from '@visactor/vutils';\nimport { isNumber, isNil, isString, isFunction, couldBeValidNumber, isObject } from './type';\nimport type {\n ILayoutPaddingSpec,\n IPercentOffset,\n ILayoutNumber,\n IPercent,\n ILayoutOrientPadding,\n ILayoutRect\n} from '../model/interface';\nimport type { IPadding, IRect } from '../typings/space';\nimport type { IPoint } from '../typings/coordinate';\n\nexport function isValidOrient(orient: string): boolean {\n switch (orient) {\n case 'left':\n case 'right':\n case 'top':\n case 'bottom':\n return true;\n default:\n return false;\n }\n}\n\nexport function isPointInRect(point: IPoint, rect: IRect) {\n const { x, y, width, height } = rect;\n const { x: x0, y: y0 } = point;\n return x0 < x + width && y0 < y + height && y0 > y && x0 > x;\n}\n\nexport function isPercent(v: any): v is IPercent {\n if (!isString(v)) {\n return false;\n }\n if (!v.endsWith('%')) {\n return false;\n }\n return couldBeValidNumber(v.substring(0, v.length - 1));\n}\n\nexport function isPercentOffset(v: any): v is IPercentOffset {\n if (!isObject(v)) {\n return false;\n }\n if ('percent' in v || 'offset' in v) {\n return true;\n }\n return false;\n}\n\nexport function calcLayoutNumber(\n v: ILayoutNumber | undefined,\n size: number,\n callOp?: ILayoutRect //如果是函数类型的话,函数的参数\n) {\n if (isNumber(v)) {\n return v;\n }\n if (isPercent(v)) {\n return (Number(v.substring(0, v.length - 1)) * size) / 100;\n }\n if (isFunction(v)) {\n return v(callOp);\n }\n if (isObject(v)) {\n return size * (v.percent ?? 0) + (v.offset ?? 0);\n }\n return 0;\n}\n\nexport function calcPadding(\n paddingSpec: ILayoutOrientPadding,\n rect: ILayoutRect,\n callOp: ILayoutRect //如果是函数类型的话,函数的参数\n): IPadding {\n const result: IPadding = {\n top: 0,\n bottom: 0,\n left: 0,\n right: 0\n };\n if (Object.values(paddingSpec).every(value => isNumber(value))) {\n result.top = (<IPadding>paddingSpec).top ?? 0;\n result.right = (<IPadding>paddingSpec).right ?? 0;\n result.bottom = (<IPadding>paddingSpec).bottom ?? 0;\n result.left = (<IPadding>paddingSpec).left ?? 0;\n return result;\n }\n const paddings = [\n {\n orients: ['left', 'right'],\n size: rect.width\n },\n {\n orients: ['top', 'bottom'],\n size: rect.height\n }\n ];\n paddings.forEach(p => {\n p.orients.forEach(o => {\n result[o] = calcLayoutNumber(paddingSpec[o], p.size, callOp);\n });\n });\n return result;\n}\n\nexport function boundsInRect(bounds: IBoundsLike, rect: ILayoutRect): ILayoutRect {\n if (!bounds) {\n return { width: 0, height: 0 };\n }\n return {\n width: Math.ceil(Math.min(bounds.x2 - bounds.x1, rect.width)),\n height: Math.ceil(Math.min(bounds.y2 - bounds.y1, rect.height))\n };\n}\n\nexport function normalizeLayoutPaddingSpec(spec: ILayoutPaddingSpec): ILayoutOrientPadding {\n let result: ILayoutOrientPadding = {};\n if (isArray(spec)) {\n if (!isNil(spec[0])) {\n result.top = result.left = result.bottom = result.right = spec[0];\n }\n if (!isNil(spec[1])) {\n result.left = result.right = spec[1];\n }\n if (!isNil(spec[2])) {\n result.bottom = spec[2];\n }\n if (!isNil(spec[3])) {\n result.left = spec[3];\n }\n return result;\n }\n if (isNumber(spec) || isPercent(spec) || isFunction(spec) || isPercentOffset(spec)) {\n result.top = result.left = result.bottom = result.right = spec;\n return result;\n }\n if (isObject(spec)) {\n result = { ...spec };\n return result;\n }\n return result;\n}\n\nexport function convertPoint(point: IPoint, relativePoint: IPoint, convert: boolean) {\n if (convert) {\n return {\n x: point.x + relativePoint.x,\n y: point.y + relativePoint.y\n };\n }\n return point;\n}\n\n/**\n * 将相对数值转换为绝对数值\n * @param originValue 原始值(相对值或绝对值)\n * @param total 总体值\n * @returns 实际绝对数值\n */\nexport const getActualNumValue = (originValue: number | string, total: number): number => {\n const originNumValue = Number(originValue);\n const originStrValue = originValue.toString();\n if (isNaN(originNumValue) && originStrValue[originStrValue.length - 1] === '%') {\n return total * (Number(originStrValue.slice(0, originStrValue.length - 1)) / 100);\n }\n return originNumValue;\n};\n"]}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
var __rest = this && this.__rest || function(s, e) {
|
|
2
|
+
var t = {};
|
|
3
|
+
for (var p in s) Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0 && (t[p] = s[p]);
|
|
4
|
+
if (null != s && "function" == typeof Object.getOwnPropertySymbols) {
|
|
5
|
+
var i = 0;
|
|
6
|
+
for (p = Object.getOwnPropertySymbols(s); i < p.length; i++) e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]) && (t[p[i]] = s[p[i]]);
|
|
7
|
+
}
|
|
8
|
+
return t;
|
|
9
|
+
};
|
|
10
|
+
|
|
11
|
+
export function convertBackgroundSpec(bg) {
|
|
12
|
+
if (!bg) return null;
|
|
13
|
+
if ("string" == typeof bg) return {
|
|
14
|
+
fill: bg,
|
|
15
|
+
fillOpacity: 1
|
|
16
|
+
};
|
|
17
|
+
if ("object" != typeof bg) return null;
|
|
18
|
+
const {x: x, y: y, width: width, height: height, x1: x1, y1: y1, image: image} = bg, rest = __rest(bg, [ "x", "y", "width", "height", "x1", "y1", "image" ]);
|
|
19
|
+
return rest.background = image, rest;
|
|
20
|
+
}
|
|
21
|
+
//# sourceMappingURL=background.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/util/spec/background.ts"],"names":[],"mappings":";;;;;;;;;;;AAEA,MAAM,UAAU,qBAAqB,CACnC,EAAmB;IAEnB,IAAI,CAAC,EAAE,EAAE;QACP,OAAO,IAAI,CAAC;KACb;IACD,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE;QAC1B,OAAO;YACL,IAAI,EAAE,EAAE;YACR,WAAW,EAAE,CAAC;SACf,CAAC;KACH;IACD,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE;QAC1B,OAAO,IAAI,CAAC;KACb;IACD,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,KAAK,KAAc,EAAE,EAAX,IAAI,UAAK,EAAE,EAApD,kDAA+C,CAAK,CAAC;IAC3D,IAAI,CAAC,UAAU,GAAG,KAAK,CAAC;IACxB,OAAO,IAAI,CAAC;AACd,CAAC","file":"background.js","sourcesContent":["import type { IBackgroundSpec, IBackgroundStyleSpec } from '../../typings';\n\nexport function convertBackgroundSpec(\n bg: IBackgroundSpec\n): Omit<IBackgroundStyleSpec, 'image'> & { background?: IBackgroundStyleSpec['image'] } {\n if (!bg) {\n return null;\n }\n if (typeof bg === 'string') {\n return {\n fill: bg,\n fillOpacity: 1\n };\n }\n if (typeof bg !== 'object') {\n return null;\n }\n const { x, y, width, height, x1, y1, image, ...rest } = bg;\n rest.background = image;\n return rest;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function cloneDeepSpec(spec: any): any;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { isArray, isBoolean, isDate, isNumber, isString, isValid } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
import { isDataView, isHTMLElement } from "./common";
|
|
4
|
+
|
|
5
|
+
export function cloneDeepSpec(spec) {
|
|
6
|
+
const value = spec;
|
|
7
|
+
let result;
|
|
8
|
+
if (!isValid(value) || "object" != typeof value) return value;
|
|
9
|
+
if (isDataView(value) || isHTMLElement(value)) return value;
|
|
10
|
+
const isArr = isArray(value), length = value.length;
|
|
11
|
+
result = isArr ? new Array(length) : "object" == typeof value ? {} : isBoolean(value) || isNumber(value) || isString(value) ? value : isDate(value) ? new Date(+value) : void 0;
|
|
12
|
+
const props = isArr ? void 0 : Object.keys(Object(value));
|
|
13
|
+
let index = -1;
|
|
14
|
+
if (result) for (;++index < (props || value).length; ) {
|
|
15
|
+
const key = props ? props[index] : index, subValue = value[key];
|
|
16
|
+
result[key] = cloneDeepSpec(subValue);
|
|
17
|
+
}
|
|
18
|
+
return result;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=clone-deep.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/util/spec/clone-deep.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,SAAS,EAAE,MAAM,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAC3F,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAMrD,MAAM,UAAU,aAAa,CAAC,IAAS;IACrC,MAAM,KAAK,GAAG,IAAI,CAAC;IAEnB,IAAI,MAAM,CAAC;IACX,IA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AAa,CAAC,QAAQ,CAAC,CAAC;SACvC;KACF;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","file":"clone-deep.js","sourcesContent":["import { isArray, isBoolean, isDate, isNumber, isString, isValid } from '@visactor/vutils';\nimport { isDataView, isHTMLElement } from './common';\n\n/**\n * 深拷贝 spec,为避免循环引用,DataView 维持原有引用\n * @param spec 原spec\n */\nexport function cloneDeepSpec(spec: any) {\n const value = spec;\n\n let result;\n if (!isValid(value) || typeof value !== 'object') {\n return value;\n }\n\n // 判断是不是不能深拷贝的对象\n if (isDataView(value) || isHTMLElement(value)) {\n return value;\n }\n\n const isArr = isArray(value);\n const length = value.length;\n // 不考虑特殊数组的额外处理\n if (isArr) {\n result = new Array(length);\n }\n // 不考虑 buffer / arguments 类型的处理以及 prototype 的额外处理\n else if (typeof value === 'object') {\n result = {};\n }\n // 不建议使用作为 Boolean / Number / String 作为构造器\n else if (isBoolean(value) || isNumber(value) || isString(value)) {\n result = value;\n } else if (isDate(value)) {\n result = new Date(+value);\n }\n // 不考虑 ArrayBuffer / DataView / TypedArray / map / set / regexp / symbol 类型\n else {\n result = undefined;\n }\n\n // 不考虑 map / set / TypedArray 类型的赋值\n\n // 不考虑对象的 symbol 属性\n const props = isArr ? undefined : Object.keys(Object(value));\n\n let index = -1;\n if (result) {\n while (++index < (props || value).length) {\n const key = props ? props[index] : index;\n const subValue = value[key];\n result[key] = cloneDeepSpec(subValue);\n }\n }\n return result;\n}\n"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { DataView } from "@visactor/vdataset";
|
|
2
|
+
|
|
3
|
+
export function isDataView(obj) {
|
|
4
|
+
return obj instanceof DataView;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
export function isHTMLElement(obj) {
|
|
8
|
+
try {
|
|
9
|
+
return obj instanceof Element;
|
|
10
|
+
} catch (_a) {
|
|
11
|
+
const htmlElementKeys = [ "children", "innerHTML", "classList", "setAttribute", "tagName", "getBoundingClientRect" ], keys = Object.keys(obj);
|
|
12
|
+
return htmlElementKeys.every((key => keys.includes(key)));
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
//# sourceMappingURL=common.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/util/spec/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAE9C,MAAM,UAAU,UAAU,CAAC,GAAQ;IACjC,OAAO,GAAG,YAAY,QAAQ,CAAC;AACjC,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,GAAQ;IACpC,IAAI;QACF,OAAO,GAAG,YAAY,OAAO,CAAC;KAC/B;IAAC,WAAM;QAEN,MAAM,eAAe,GAAsB;YACzC,UAAU;YACV,WAAW;YACX,WAAW;YACX,cAAc;YACd,SAAS;YACT,uBAAuB;SACxB,CAAC;QACF,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAC9B,OAAO,eAAe,CAAC,KAAK,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC;KACzD;AACH,CAAC","file":"common.js","sourcesContent":["import { DataView } from '@visactor/vdataset';\n\nexport function isDataView(obj: any): obj is DataView {\n return obj instanceof DataView;\n}\n\nexport function isHTMLElement(obj: any): obj is Element {\n try {\n return obj instanceof Element;\n } catch {\n // 跨端 plan B\n const htmlElementKeys: (keyof Element)[] = [\n 'children',\n 'innerHTML',\n 'classList',\n 'setAttribute',\n 'tagName',\n 'getBoundingClientRect'\n ];\n const keys = Object.keys(obj);\n return htmlElementKeys.every(key => keys.includes(key));\n }\n}\n"]}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
export * from "./background";
|
|
2
|
+
|
|
3
|
+
export * from "./clone-deep";
|
|
4
|
+
|
|
5
|
+
export * from "./common";
|
|
6
|
+
|
|
7
|
+
export * from "./merge-spec";
|
|
8
|
+
|
|
9
|
+
export * from "./merge-theme";
|
|
10
|
+
|
|
11
|
+
export * from "./preprocess";
|
|
12
|
+
|
|
13
|
+
export * from "./transform";
|
|
14
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/util/spec/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC","file":"index.js","sourcesContent":["export * from './background';\nexport * from './clone-deep';\nexport * from './common';\nexport * from './merge-spec';\nexport * from './merge-theme';\nexport * from './preprocess';\nexport * from './transform';\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function mergeSpec(target: any, ...sources: any[]): any;
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
import { isArray, isArrayLike, isPlainObject, isValid } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
function baseMerge(target, source, shallowArray = !1) {
|
|
4
|
+
if (source) {
|
|
5
|
+
if (target === source) return;
|
|
6
|
+
if (isValid(source) && "object" == typeof source) {
|
|
7
|
+
const iterable = Object(source), props = [];
|
|
8
|
+
for (const key in iterable) props.push(key);
|
|
9
|
+
let {length: length} = props, propIndex = -1;
|
|
10
|
+
for (;length--; ) {
|
|
11
|
+
const key = props[++propIndex];
|
|
12
|
+
isValid(iterable[key]) && "object" == typeof iterable[key] && !isArray(target[key]) ? baseMergeDeep(target, source, key, shallowArray) : assignMergeValue(target, key, iterable[key]);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
function baseMergeDeep(target, source, key, shallowArray = !1) {
|
|
19
|
+
const objValue = target[key], srcValue = source[key];
|
|
20
|
+
let newValue = source[key], isCommon = !0;
|
|
21
|
+
if (isArray(srcValue)) {
|
|
22
|
+
if (shallowArray) newValue = []; else if (isArray(objValue)) newValue = objValue; else if (isArrayLike(objValue)) {
|
|
23
|
+
newValue = new Array(objValue.length);
|
|
24
|
+
let index = -1;
|
|
25
|
+
const length = objValue.length;
|
|
26
|
+
for (;++index < length; ) newValue[index] = objValue[index];
|
|
27
|
+
}
|
|
28
|
+
} else isPlainObject(srcValue) ? (newValue = objValue, "function" != typeof objValue && "object" == typeof objValue || (newValue = {})) : isCommon = !1;
|
|
29
|
+
isCommon && baseMerge(newValue, srcValue, shallowArray), assignMergeValue(target, key, newValue);
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
function assignMergeValue(target, key, value) {
|
|
33
|
+
(void 0 !== value && !eq(target[key], value) || void 0 === value && !(key in target)) && (target[key] = value);
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
function eq(value, other) {
|
|
37
|
+
return value === other || Number.isNaN(value) && Number.isNaN(other);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export function mergeSpec(target, ...sources) {
|
|
41
|
+
let sourceIndex = -1;
|
|
42
|
+
const length = sources.length;
|
|
43
|
+
for (;++sourceIndex < length; ) {
|
|
44
|
+
baseMerge(target, sources[sourceIndex], !0);
|
|
45
|
+
}
|
|
46
|
+
return target;
|
|
47
|
+
}
|
|
48
|
+
//# sourceMappingURL=merge-spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/util/spec/merge-spec.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAEhF,SAAS,SAAS,CAAC,MAAW,EAAE,MAAW,EAAE,eAAwB,KAAK;IACxE,IAAI,MAAM,EAAE;QACV,IAAI,MAAM,KAAK,MAAM,EAAE;YACrB,OAAO;SACR;QACD,IAAI,OAAO,CAAC,MAAM,CAAC,IAAI,OAAO,MAAM,KAAK,QAAQ,EAAE;YAEjD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,SAAS,CAAC,MAAW,EAAE,GAAG,OAAc;IACtD,IAAI,WAAW,GAAG,CAAC,CAAC,CAAC;IACrB,MAAM,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC;IAC9B,OAAO,EAAE,WAAW,GAAG,MAAM,EAAE;QAC7B,MAAM,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,CAAC;QACpC,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;KACjC;IACD,OAAO,MAAM,CAAC;AAChB,CAAC","file":"merge-spec.js","sourcesContent":["import { isArray, isArrayLike, isPlainObject, isValid } from '@visactor/vutils';\n\nfunction baseMerge(target: any, source: any, shallowArray: boolean = false) {\n if (source) {\n if (target === source) {\n return;\n }\n if (isValid(source) && typeof source === 'object') {\n // baseFor\n const iterable = Object(source);\n const props = [];\n // keysIn\n for (const key in iterable) {\n props.push(key);\n }\n let { length } = props;\n let propIndex = -1;\n while (length--) {\n const key = props[++propIndex];\n if (\n isValid(iterable[key]) &&\n typeof iterable[key] === 'object' &&\n !isArray(target[key]) // VChart 特有逻辑\n ) {\n baseMergeDeep(target, source, key, shallowArray);\n } else {\n assignMergeValue(target, key, iterable[key]);\n }\n }\n }\n }\n}\n\n// 由于目前 VChart 内部对 spec 会先执行一次深拷贝,merge 暂时不考虑 source 中有环的问题\nfunction baseMergeDeep(target: object, source: object, key: string, shallowArray: boolean = false) {\n const objValue = target[key];\n const srcValue = source[key];\n let newValue = source[key];\n let isCommon = true;\n // 不考虑 buffer / typedArray 类型\n if (isArray(srcValue)) {\n if (shallowArray) {\n // 依据参数对数组做浅拷贝\n newValue = [];\n } else if (isArray(objValue)) {\n newValue = objValue;\n } else if (isArrayLike(objValue)) {\n // 如果 source 为数组,则 target 的 arrayLike 对象也视作为数组处理\n newValue = new Array(objValue.length);\n let index = -1;\n const length = objValue.length;\n while (++index < length) {\n newValue[index] = objValue[index];\n }\n }\n }\n // else if (isArray(srcValue) && shallowArray) {\n // newValue = [];\n // }\n // 不考虑 argument 类型\n else if (isPlainObject(srcValue)) {\n newValue = objValue;\n // 不考虑 prototype 的额外处理\n if (typeof objValue === 'function' || typeof objValue !== 'object') {\n newValue = {};\n }\n } else {\n isCommon = false;\n }\n // 对 class 等复杂对象或者浅拷贝的 array 不做拷贝处理\n if (isCommon) {\n baseMerge(newValue, srcValue, shallowArray);\n }\n assignMergeValue(target, key, newValue);\n}\n\nfunction assignMergeValue(target: object, key: string, value: any) {\n if ((value !== undefined && !eq(target[key], value)) || (value === undefined && !(key in target))) {\n // 不考虑 __proto__ 的赋值处理\n target[key] = value;\n }\n}\n\nfunction eq(value: any, other: any) {\n return value === other || (Number.isNaN(value) && Number.isNaN(other));\n}\n\n/* 与原生的 lodash merge 差异在于对数组是否应用最后一个 source 的结果\n * 以及对一些特殊情况的处理,比如对数组类型 padding 和对象类型的 padding 的 merge\n */\nexport function mergeSpec(target: any, ...sources: any[]): any {\n let sourceIndex = -1;\n const length = sources.length;\n while (++sourceIndex < length) {\n const source = sources[sourceIndex];\n baseMerge(target, source, true);\n }\n return target;\n}\n"]}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { array } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
import { transformColorSchemeToStandardStruct } from "../../theme/color-scheme/util";
|
|
4
|
+
|
|
5
|
+
import { seriesMarkInfoMap } from "../../series/interface";
|
|
6
|
+
|
|
7
|
+
import { mergeSpec } from "./merge-spec";
|
|
8
|
+
|
|
9
|
+
export function mergeTheme(target, ...sources) {
|
|
10
|
+
return mergeSpec(transformThemeToMerge(target), ...sources.map(transformThemeToMerge));
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
function transformThemeToMerge(theme) {
|
|
14
|
+
if (!theme) return theme;
|
|
15
|
+
let {colorScheme: colorScheme} = theme;
|
|
16
|
+
colorScheme && (colorScheme = Object.keys(colorScheme).reduce(((scheme, key) => {
|
|
17
|
+
const value = colorScheme[key];
|
|
18
|
+
return scheme[key] = transformColorSchemeToStandardStruct(value), scheme;
|
|
19
|
+
}), {}));
|
|
20
|
+
let {series: series} = theme;
|
|
21
|
+
const {mark: markByType, markByName: markByName} = theme;
|
|
22
|
+
return (markByType || markByName) && (series = Object.keys(seriesMarkInfoMap).reduce(((newSeriesTheme, key) => {
|
|
23
|
+
var _a;
|
|
24
|
+
const value = null !== (_a = null == series ? void 0 : series[key]) && void 0 !== _a ? _a : {}, newValue = {};
|
|
25
|
+
return Object.values(seriesMarkInfoMap[key]).forEach((({type: type, name: name}) => {
|
|
26
|
+
var _a, _b;
|
|
27
|
+
newValue[name] = mergeSpec({}, null !== (_a = null == markByType ? void 0 : markByType[array(type)[0]]) && void 0 !== _a ? _a : {}, null !== (_b = null == markByName ? void 0 : markByName[name]) && void 0 !== _b ? _b : {}, value[name]);
|
|
28
|
+
})), newSeriesTheme[key] = Object.assign(Object.assign({}, value), newValue), newSeriesTheme;
|
|
29
|
+
}), {})), Object.assign(Object.assign({}, theme), {
|
|
30
|
+
colorScheme: colorScheme,
|
|
31
|
+
series: series
|
|
32
|
+
});
|
|
33
|
+
}
|
|
34
|
+
//# sourceMappingURL=merge-theme.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/util/spec/merge-theme.ts"],"names":[],"mappings":"AAAA,OAAO,EAAc,KAAK,EAAE,MAAM,kBAAkB,CAAC;AAErD,OAAO,EAAE,oCAAoC,EAAE,MAAM,+BAA+B,CAAC;AAIrF,OAAO,EAAE,iBAAiB,EAAwB,MAAM,wBAAwB,CAAC;AACjF,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AAEzC,MAAM,UAAU,UAAU,CAAC,MAAqB,EAAE,GAAG,OAAwB;IAC3E,OAAO,SAAS,CAAC,qBAAqB,CAAC,MAAM,CAAC,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,CAAC,CAAC;AACzF,CAAC;AAED,SAAS,qBAAqB,CAAC,KAAqB;IAClD,IAAI,CAA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C,CAAC;YAC5G,CAAC,CAAC,CAAC;YACH,cAAc,CAAC,GAAG,CAAC,mCACd,KAAK,GACL,QAAQ,CACZ,CAAC;YACF,OAAO,cAAc,CAAC;QACxB,CAAC,EAAE,EAAkB,CAAC,CAAC;KACxB;IAED,uCACK,KAAK,KACR,WAAW;QACX,MAAM,IACN;AACJ,CAAC","file":"merge-theme.js","sourcesContent":["import { type Maybe, array } from '@visactor/vutils';\nimport type { ITheme } from '../../theme';\nimport { transformColorSchemeToStandardStruct } from '../../theme/color-scheme/util';\nimport type { IThemeColorScheme } from '../../theme/color-scheme/interface';\nimport type { ISeriesTheme } from '../../series/interface';\n// eslint-disable-next-line no-duplicate-imports\nimport { seriesMarkInfoMap, type ISeriesMarkInfo } from '../../series/interface';\nimport { mergeSpec } from './merge-spec';\n\nexport function mergeTheme(target: Maybe<ITheme>, ...sources: Maybe<ITheme>[]): Maybe<ITheme> {\n return mergeSpec(transformThemeToMerge(target), ...sources.map(transformThemeToMerge));\n}\n\nfunction transformThemeToMerge(theme?: Maybe<ITheme>): Maybe<ITheme> {\n if (!theme) {\n return theme;\n }\n\n // 将色板转化为标准形式\n let { colorScheme } = theme;\n if (colorScheme) {\n colorScheme = Object.keys(colorScheme).reduce<IThemeColorScheme>((scheme, key) => {\n const value = colorScheme[key];\n scheme[key] = transformColorSchemeToStandardStruct(value);\n return scheme;\n }, {} as IThemeColorScheme);\n }\n\n // 将全局 mark 主题 merge 进系列主题\n let { series } = theme;\n const { mark: markByType, markByName } = theme;\n if (markByType || markByName) {\n series = Object.keys(seriesMarkInfoMap).reduce((newSeriesTheme, key) => {\n const value = series?.[key] ?? {};\n const newValue = {};\n Object.values<ISeriesMarkInfo>(seriesMarkInfoMap[key]).forEach(({ type, name }) => {\n newValue[name] = mergeSpec({}, markByType?.[array(type)[0]] ?? {}, markByName?.[name] ?? {}, value[name]);\n });\n newSeriesTheme[key] = {\n ...value,\n ...newValue\n };\n return newSeriesTheme;\n }, {} as ISeriesTheme);\n }\n\n return {\n ...theme,\n colorScheme,\n series\n };\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { isArray, isFunction, isObject } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
import { isDataView, isHTMLElement } from "./common";
|
|
4
|
+
|
|
5
|
+
import { getActualColor, isColorKey } from "../../theme/color-scheme/util";
|
|
6
|
+
|
|
7
|
+
import { normalizeLayoutPaddingSpec } from "../space";
|
|
8
|
+
|
|
9
|
+
export function preprocessSpecOrTheme(obj, colorScheme, seriesType) {
|
|
10
|
+
if (isArray(obj)) return obj.map((element => isObject(element) && !isFunction(element) ? preprocessSpecOrTheme(element, colorScheme, seriesType) : element));
|
|
11
|
+
const newObj = {};
|
|
12
|
+
return Object.keys(obj).forEach((key => {
|
|
13
|
+
const value = obj[key];
|
|
14
|
+
if (key.includes("data")) newObj[key] = value; else if (isObject(value)) {
|
|
15
|
+
if (isFunction(value) || isDataView(value) || isHTMLElement(value)) return void (newObj[key] = value);
|
|
16
|
+
isColorKey(value) ? newObj[key] = getActualColor(value, colorScheme, seriesType) : newObj[key] = "padding" === key ? normalizeLayoutPaddingSpec(value) : preprocessSpecOrTheme(value, colorScheme, seriesType);
|
|
17
|
+
} else newObj[key] = value;
|
|
18
|
+
})), newObj;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=preprocess.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/util/spec/preprocess.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,kBAAkB,CAAC;AAGjE,OAAO,EAAE,UAAU,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AACrD,OAAO,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3E,OAAO,EAAE,0BAA0B,EAAE,MAAM,UAAU,CAAC;AAGtD,MAAM,UAAU,qBAAqB,CAAC,GAAQ,EAAE,WAA+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AAK,CAAC;SACrB;IACH,CAAC,CAAC,CAAC;IAEH,OAAO,MAAM,CAAC;AAChB,CAAC","file":"preprocess.js","sourcesContent":["import { isArray, isFunction, isObject } from '@visactor/vutils';\nimport type { SeriesTypeEnum } from '../../series/interface';\nimport type { IThemeColorScheme } from '../../theme/color-scheme/interface';\nimport { isDataView, isHTMLElement } from './common';\nimport { getActualColor, isColorKey } from '../../theme/color-scheme/util';\nimport { normalizeLayoutPaddingSpec } from '../space';\n\n/** 对 spec 或者类 spec 配置(如 theme)进行预处理,如进行语义化颜色的转换等 */\nexport function preprocessSpecOrTheme(obj: any, colorScheme?: IThemeColorScheme, seriesType?: SeriesTypeEnum): any {\n if (isArray(obj)) {\n return obj.map(element => {\n if (isObject(element) && !isFunction(element)) {\n return preprocessSpecOrTheme(element, colorScheme, seriesType);\n }\n return element;\n });\n }\n\n const newObj = {};\n Object.keys(obj).forEach(key => {\n const value = obj[key];\n // 绕过数据\n if (key.includes('data')) {\n newObj[key] = value;\n return;\n }\n if (isObject(value)) {\n // 绕过不可深拷贝的对象\n if (isFunction(value) || isDataView(value) || isHTMLElement(value)) {\n newObj[key] = value;\n return;\n }\n if (isColorKey(value)) {\n // 查询、替换语义化颜色\n newObj[key] = getActualColor(value, colorScheme, seriesType);\n } else if (key === 'padding') {\n // 标准化 padding\n newObj[key] = normalizeLayoutPaddingSpec(value);\n } else {\n newObj[key] = preprocessSpecOrTheme(value, colorScheme, seriesType);\n }\n } else {\n newObj[key] = value;\n }\n });\n\n return newObj;\n}\n"]}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { isArray } from "@visactor/vutils";
|
|
2
|
+
|
|
3
|
+
export function specTransform(spec, special = {
|
|
4
|
+
data: v => v
|
|
5
|
+
}) {
|
|
6
|
+
if (!spec) return spec;
|
|
7
|
+
if (spec.constructor === Object) {
|
|
8
|
+
const result = {};
|
|
9
|
+
for (const key in spec) if (Object.prototype.hasOwnProperty.call(spec, key)) {
|
|
10
|
+
if (special[key]) {
|
|
11
|
+
result[key] = special[key](spec[key]);
|
|
12
|
+
continue;
|
|
13
|
+
}
|
|
14
|
+
result[key] = specTransform(spec[key], special);
|
|
15
|
+
}
|
|
16
|
+
return result;
|
|
17
|
+
}
|
|
18
|
+
return isArray(spec) ? spec.map((s => specTransform(s, special))) : spec;
|
|
19
|
+
}
|
|
20
|
+
//# sourceMappingURL=transform.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/util/spec/transform.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAC;AAI3C,MAAM,UAAU,aAAa,CAC3B,IAAa,EACb,UAEI;IACF,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;CACb;IAED,IAAI,CAAC,IAAI,EAAE;QACT,OAAO,IAAI,CAAC;KACb;IAED,IAAI,IAAI,CAAC,WAAW,KAAK,MAAM,EAAE;QAC/B,MAAM,MAAM,GAAQ,EAAE,CAAC;QACvB,KAAK,MAAM,GAAG,IAAI,IAAW,EAAE;YAC7B,IAAI,MAAM,CAAC,SAAS,CAAC,cAAc,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE;gBAEnD,IAAI,OAAO,CAAC,GAAG,CAAC,EAAE;oBAChB,MAAM,CAAC,GAAG,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;oBACtC,SAAS;iBACV;gBACD,MAAM,CAAC,GAAG,CAAC,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE,OAAO,CAAC,CAAC;aACjD;SACF;QACD,OAAO,MAAM,CAAC;KACf;IAED,IAAI,OAAO,CAAC,IAAI,CAAC,EAAE;QACjB,OAAO,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,aAAa,CAAC,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;KACjD;IACD,OAAO,IAAI,CAAC;AACd,CAAC","file":"transform.js","sourcesContent":["import { isArray } from '@visactor/vutils';\n\n// todo 以目前的场景来看,并没有递归的需要。\n// 考虑到不确定性,还是递归处理spec对象,时间消耗很少\nexport function specTransform(\n spec: unknown,\n special: {\n [key: string]: (v: unknown) => unknown;\n } = {\n data: v => v\n }\n): unknown {\n if (!spec) {\n return spec;\n }\n // 如果是普通对象\n if (spec.constructor === Object) {\n const result: any = {};\n for (const key in spec as any) {\n if (Object.prototype.hasOwnProperty.call(spec, key)) {\n // todo 特殊处理怎样更合理?\n if (special[key]) {\n result[key] = special[key](spec[key]);\n continue;\n }\n result[key] = specTransform(spec[key], special);\n }\n }\n return result;\n }\n // 如果是数组\n if (isArray(spec)) {\n return spec.map(s => specTransform(s, special));\n }\n return spec;\n}\n"]}
|
package/esm/util/text.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
import type { ITextMeasureOption } from '@visactor/vutils';
|
|
2
|
-
import { TextMeasure
|
|
3
|
-
import type { IRichTextAttribute } from '@visactor/vrender';
|
|
2
|
+
import { TextMeasure } from '@visactor/vutils';
|
|
4
3
|
import type { ITextMarkSpec } from '../typings';
|
|
5
4
|
export declare const initTextMeasure: (textSpec?: Partial<ITextMarkSpec>, option?: Partial<ITextMeasureOption>, useNaiveCanvas?: boolean) => TextMeasure<ITextMarkSpec>;
|
|
6
|
-
export declare const testTextMeasure: (textSpec?: Partial<ITextMarkSpec>, useVRender?: boolean) => TestTextMeasure<any>;
|
|
7
|
-
type IRichTextBoundsParams = Partial<IRichTextAttribute>;
|
|
8
|
-
export declare function getRichTextBounds(params: IRichTextBoundsParams): import("@visactor/vutils").IBounds;
|
|
9
|
-
export {};
|
package/esm/util/text.js
CHANGED
|
@@ -1,29 +1,15 @@
|
|
|
1
|
-
import { TextMeasure
|
|
1
|
+
import { TextMeasure } from "@visactor/vutils";
|
|
2
2
|
|
|
3
|
-
import {
|
|
3
|
+
import { getTextBounds } from "@visactor/vrender";
|
|
4
4
|
|
|
5
|
-
import {
|
|
5
|
+
import { THEME_CONSTANTS } from "../theme/builtin/common/constants";
|
|
6
6
|
|
|
7
7
|
export const initTextMeasure = (textSpec, option, useNaiveCanvas) => new TextMeasure(Object.assign({
|
|
8
8
|
defaultFontParams: {
|
|
9
|
-
fontFamily:
|
|
10
|
-
fontSize:
|
|
9
|
+
fontFamily: THEME_CONSTANTS.defaultFontFamily,
|
|
10
|
+
fontSize: THEME_CONSTANTS.defaultFontSize
|
|
11
11
|
},
|
|
12
12
|
getTextBounds: useNaiveCanvas ? void 0 : getTextBounds,
|
|
13
13
|
specialCharSet: "-/: .,@%'\"~" + TextMeasure.ALPHABET_CHAR_SET + TextMeasure.ALPHABET_CHAR_SET.toUpperCase()
|
|
14
14
|
}, null != option ? option : {}), textSpec);
|
|
15
|
-
|
|
16
|
-
export const testTextMeasure = (textSpec, useVRender) => new TestTextMeasure({
|
|
17
|
-
defaultFontParams: {
|
|
18
|
-
fontFamily: DEFAULT_TEXT_FONT_FAMILY,
|
|
19
|
-
fontSize: DEFAULT_TEXT_FONT_SIZE
|
|
20
|
-
},
|
|
21
|
-
getTextBounds: useVRender ? getTextBounds : void 0
|
|
22
|
-
}, textSpec);
|
|
23
|
-
|
|
24
|
-
const richText = createRichText({});
|
|
25
|
-
|
|
26
|
-
export function getRichTextBounds(params) {
|
|
27
|
-
return richText.setAttributes(params), richText.AABBBounds;
|
|
28
|
-
}
|
|
29
15
|
//# sourceMappingURL=text.js.map
|
package/esm/util/text.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/util/text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,
|
|
1
|
+
{"version":3,"sources":["../src/util/text.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAElD,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAEpE,MAAM,CAAC,MAAM,eAAe,GAAG,CAC7B,QAAiC,EACjC,MAAoC,EACpC,cAAwB,EACI,EAAE;IAC9B,OAAO,IAAI,WAAW,iBAElB,iBAAiB,EAAE;YACjB,UAAU,EAAE,eAAe,CAAC,iBAAiB;YAC7C,QAAQ,EAAE,eAAe,CAAC,eAAe;SAC1C,EACD,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,aAAa,EACzD,cAAc,EAAE,cAAc,GAAG,WAAW,CAAC,iBAAiB,GAAG,WAAW,CAAC,iBAAiB,CAAC,WAAW,EAAE,IACzG,CAAC,MAAM,aAAN,MAAM,cAAN,MAAM,GAAI,EAAE,CAAC,GAEnB,QAAQ,CACT,CAAC;AACJ,CAAC,CAAC","file":"text.js","sourcesContent":["import type { ITextMeasureOption } from '@visactor/vutils';\n// eslint-disable-next-line no-duplicate-imports\nimport { TextMeasure } from '@visactor/vutils';\nimport { getTextBounds } from '@visactor/vrender';\nimport type { ITextMarkSpec } from '../typings';\nimport { THEME_CONSTANTS } from '../theme/builtin/common/constants';\n\nexport const initTextMeasure = (\n textSpec?: Partial<ITextMarkSpec>,\n option?: Partial<ITextMeasureOption>,\n useNaiveCanvas?: boolean\n): TextMeasure<ITextMarkSpec> => {\n return new TextMeasure<ITextMarkSpec>(\n {\n defaultFontParams: {\n fontFamily: THEME_CONSTANTS.defaultFontFamily,\n fontSize: THEME_CONSTANTS.defaultFontSize\n },\n getTextBounds: useNaiveCanvas ? undefined : getTextBounds,\n specialCharSet: '-/: .,@%\\'\"~' + TextMeasure.ALPHABET_CHAR_SET + TextMeasure.ALPHABET_CHAR_SET.toUpperCase(),\n ...(option ?? {})\n },\n textSpec\n );\n};\n"]}
|
package/esm/vchart-all.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { VChart, Factory } from "./core";
|
|
2
2
|
|
|
3
|
-
import { AreaChart, LineChart, BarChart, Bar3dChart, ScatterChart, MapChart, PieChart, Pie3dChart, RoseChart, RadarChart, CommonChart, SequenceChart, HistogramChart, Histogram3dChart, CircularProgressChart, WordCloudChart, WordCloud3dChart, FunnelChart, Funnel3dChart, LinearProgressChart, RangeColumnChart, RangeColumn3dChart, SunburstChart, CirclePackingChart,
|
|
3
|
+
import { AreaChart, LineChart, BarChart, Bar3dChart, ScatterChart, MapChart, PieChart, Pie3dChart, RoseChart, RadarChart, CommonChart, SequenceChart, HistogramChart, Histogram3dChart, CircularProgressChart, WordCloudChart, WordCloud3dChart, FunnelChart, Funnel3dChart, LinearProgressChart, RangeColumnChart, RangeColumn3dChart, SunburstChart, CirclePackingChart, TreemapChart, WaterfallChart, BoxPlotChart, SankeyChart, GaugeChart, RangeAreaChart, HeatmapChart } from "./chart";
|
|
4
4
|
|
|
5
|
-
import { CartesianLinearAxis, CartesianBandAxis, CartesianTimeAxis, PolarBandAxis, CartesianLogAxis, PolarLinearAxis, DiscreteLegend, ContinuousLegend, Tooltip, CartesianCrossHair, PolarCrossHair, DataZoom, ScrollBar, Indicator, GeoCoordinate, MarkLine, Title, MarkArea, Player, Label, MarkPoint, Brush, CustomMark, MapLabelComponent } from "./component";
|
|
5
|
+
import { CartesianLinearAxis, CartesianBandAxis, CartesianTimeAxis, PolarBandAxis, CartesianLogAxis, CartesianSymlogAxis, PolarLinearAxis, DiscreteLegend, ContinuousLegend, Tooltip, CartesianCrossHair, PolarCrossHair, DataZoom, ScrollBar, Indicator, GeoCoordinate, MarkLine, Title, MarkArea, Player, Label, MarkPoint, Brush, CustomMark, MapLabelComponent, TotalLabel } from "./component";
|
|
6
6
|
|
|
7
7
|
import { GridLayout, Layout3d } from "./layout";
|
|
8
8
|
|
|
9
9
|
import { loadPoptip } from "@visactor/vrender-components";
|
|
10
10
|
|
|
11
|
-
loadPoptip({}), VChart.useChart([ AreaChart, LineChart, BarChart, Bar3dChart, ScatterChart, MapChart, PieChart, Pie3dChart, RoseChart, RadarChart, CommonChart, SequenceChart, HistogramChart, Histogram3dChart, CircularProgressChart, WordCloudChart, WordCloud3dChart, FunnelChart, Funnel3dChart, LinearProgressChart, RangeColumnChart, RangeColumn3dChart, SunburstChart, CirclePackingChart,
|
|
12
|
-
VChart.useComponent([ CartesianLinearAxis, CartesianBandAxis, CartesianTimeAxis, CartesianLogAxis, PolarBandAxis, PolarLinearAxis, DiscreteLegend, ContinuousLegend, Tooltip, CartesianCrossHair, PolarCrossHair, DataZoom, ScrollBar, Indicator, GeoCoordinate, MarkLine, Title, MarkArea, Player, Label, MarkPoint, Brush, CustomMark, MapLabelComponent ]),
|
|
11
|
+
loadPoptip({}), VChart.useChart([ AreaChart, LineChart, BarChart, Bar3dChart, ScatterChart, MapChart, PieChart, Pie3dChart, RoseChart, RadarChart, CommonChart, SequenceChart, HistogramChart, Histogram3dChart, CircularProgressChart, WordCloudChart, WordCloud3dChart, FunnelChart, Funnel3dChart, LinearProgressChart, RangeColumnChart, RangeColumn3dChart, SunburstChart, CirclePackingChart, TreemapChart, WaterfallChart, BoxPlotChart, SankeyChart, GaugeChart, RangeAreaChart, HeatmapChart ]),
|
|
12
|
+
VChart.useComponent([ CartesianLinearAxis, CartesianBandAxis, CartesianTimeAxis, CartesianLogAxis, CartesianSymlogAxis, PolarBandAxis, PolarLinearAxis, DiscreteLegend, ContinuousLegend, Tooltip, CartesianCrossHair, PolarCrossHair, DataZoom, ScrollBar, Indicator, GeoCoordinate, MarkLine, Title, MarkArea, Player, TotalLabel, Label, MarkPoint, Brush, CustomMark, MapLabelComponent ]),
|
|
13
13
|
Factory.registerLayout("grid", GridLayout), Factory.registerLayout("layout3d", Layout3d);
|
|
14
14
|
|
|
15
15
|
export { VChart };
|
package/esm/vchart-all.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/vchart-all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,WAAW,EACX,UAAU,EACV,cAAc,EACd,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,mBAAmB,EACnB,iBAAiB,EACjB,iBAAiB,EACjB,aAAa,EACb,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,OAAO,EACP,kBAAkB,EAClB,cAAc,EACd,QAAQ,EACR,SAAS,EACT,SAAS,EACT,aAAa,EACb,QAAQ,EACR,KAAK,EACL,QAAQ,EACR,MAAM,EACN,KAAK,EACL,SAAS,EACT,KAAK,EACL,UAAU,EACV,iBAAiB,
|
|
1
|
+
{"version":3,"sources":["../src/vchart-all.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EACL,SAAS,EACT,SAAS,EACT,QAAQ,EACR,UAAU,EACV,YAAY,EACZ,QAAQ,EACR,QAAQ,EACR,UAAU,EACV,SAAS,EACT,UAAU,EACV,WAAW,EACX,aAAa,EACb,cAAc,EACd,gBAAgB,EAChB,qBAAqB,EACrB,cAAc,EACd,gBAAgB,EAChB,WAAW,EACX,aAAa,EACb,mBAAmB,EACnB,gBAAgB,EAChB,kBAAkB,EAClB,aAAa,EACb,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,YAAY,EACZ,WAAW,EACX,UAAU,EACV,cAAc,EACd,YAAY,EACb,MAAM,SAAS,CAAC;AAEjB,OAAO,EACL,mBAAmB,EACnB,iBAA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C,CAAC;AAGH,OAAO,CAAC,cAAc,CAAC,MAAM,EAAE,UAAiB,CAAC,CAAC;AAClD,OAAO,CAAC,cAAc,CAAC,UAAU,EAAE,QAAe,CAAC,CAAC;AAEpD,OAAO,EAAE,MAAM,EAAE,CAAC","file":"vchart-all.js","sourcesContent":["import { VChart, Factory } from './core';\nimport {\n AreaChart,\n LineChart,\n BarChart,\n Bar3dChart,\n ScatterChart,\n MapChart,\n PieChart,\n Pie3dChart,\n RoseChart,\n RadarChart,\n CommonChart,\n SequenceChart,\n HistogramChart,\n Histogram3dChart,\n CircularProgressChart,\n WordCloudChart,\n WordCloud3dChart,\n FunnelChart,\n Funnel3dChart,\n LinearProgressChart,\n RangeColumnChart,\n RangeColumn3dChart,\n SunburstChart,\n CirclePackingChart,\n TreemapChart,\n WaterfallChart,\n BoxPlotChart,\n SankeyChart,\n GaugeChart,\n RangeAreaChart,\n HeatmapChart\n} from './chart';\n\nimport {\n CartesianLinearAxis,\n CartesianBandAxis,\n CartesianTimeAxis,\n PolarBandAxis,\n CartesianLogAxis,\n CartesianSymlogAxis,\n PolarLinearAxis,\n DiscreteLegend,\n ContinuousLegend,\n Tooltip,\n CartesianCrossHair,\n PolarCrossHair,\n DataZoom,\n ScrollBar,\n Indicator,\n GeoCoordinate,\n MarkLine,\n Title,\n MarkArea,\n Player,\n Label,\n MarkPoint,\n Brush,\n CustomMark,\n MapLabelComponent,\n TotalLabel\n} from './component';\nimport { GridLayout, Layout3d } from './layout';\nimport { loadPoptip } from '@visactor/vrender-components';\n\n// 装载 poptip\nloadPoptip({});\n\n// charts\nVChart.useChart([\n AreaChart,\n LineChart,\n BarChart,\n Bar3dChart,\n ScatterChart,\n MapChart,\n PieChart,\n Pie3dChart,\n RoseChart,\n RadarChart,\n CommonChart,\n SequenceChart,\n HistogramChart,\n Histogram3dChart,\n CircularProgressChart,\n WordCloudChart,\n WordCloud3dChart,\n FunnelChart,\n Funnel3dChart,\n LinearProgressChart,\n RangeColumnChart,\n RangeColumn3dChart,\n SunburstChart,\n CirclePackingChart,\n TreemapChart,\n WaterfallChart,\n BoxPlotChart,\n SankeyChart,\n GaugeChart,\n RangeAreaChart,\n HeatmapChart\n]);\n\n// components\nVChart.useComponent([\n CartesianLinearAxis,\n CartesianBandAxis,\n CartesianTimeAxis,\n CartesianLogAxis,\n CartesianSymlogAxis,\n PolarBandAxis,\n PolarLinearAxis,\n DiscreteLegend,\n ContinuousLegend,\n Tooltip,\n CartesianCrossHair,\n PolarCrossHair,\n DataZoom,\n ScrollBar,\n Indicator,\n GeoCoordinate,\n MarkLine,\n Title,\n MarkArea,\n Player,\n TotalLabel,\n Label,\n MarkPoint,\n Brush,\n CustomMark,\n MapLabelComponent\n]);\n\n// layout\nFactory.registerLayout('grid', GridLayout as any);\nFactory.registerLayout('layout3d', Layout3d as any);\n\nexport { VChart };\n"]}
|