@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/gauge/gauge.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"sources":["../src/series/gauge/gauge.ts"],"names":[],"mappings":";;;AAAA,qCAA8C;AA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AY,CAAC,SAAS,CAAC,CAAC;SACvC;IACH,CAAC;IAES,mBAAmB,CAAC,KAAY;;QACxC,MAAM,KAAK,GAAG,IAAA,cAAO,EAAC,KAAK,CAAC,8BAAmB,CAAC,CAAC;YAC/C,CAAC,CAAC,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,8BAAmB,CAAC,CAAC,CAAC;YACnE,CAAC,CAAC,IAAI,CAAC,WAAW,CAAC;QACrB,OAAO,KAAK,GAAG,CAAC,MAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,mCAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;IAES,iBAAiB,CAAC,KAAY;;QACtC,MAAM,KAAK,GAAG,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,CAAC,KAAK,CAAC,4BAAiB,CAAC,CAAC,CAAC,CAAC;QAC9E,OAAO,KAAK,GAAG,CAAC,MAAA,IAAI,CAAC,KAAK,CAAC,QAAQ,mCAAI,CAAC,CAAC,GAAG,CAAC,CAAC;IAChD,CAAC;IAED,aAAa;;QACX,MAAM,YAAY,GAAG,MAAC,MAAA,IAAI,CAAC,KAAK,0CAAE,eAA0C,0CAAE,MAAM,CAAC;QAErF,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAClC,IAAA,uBAAe,EACb,+BAAsB,CAAC,gBAAgB,CACrC;YACE,UAAU,EAAE,IAAI,CAAC,WAAW;SAC7B,EACD,YAAY,CACb,EACD,IAAA,2BAAmB,EAAC,8BAAkB,CAAC,OAAO,EAAE,IAAI,CAAC,KAAK,CAAC,CAC5D,CACF,CAAC;IACJ,CAAC;IAED,mBAAmB;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;;AArIH,kCAsIC;AArIiB,gBAAI,GAAW,0BAAc,CAAC,KAAK,CAAC;AAGpC,gBAAI,GAAkB,0BAAe,CAAC","file":"gauge.js","sourcesContent":["import { isValid, radians } from '../../util';\nimport type { SeriesMarkMap } from '../interface';\n// eslint-disable-next-line no-duplicate-imports\nimport { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface';\nimport type { IGaugeSeriesSpec, IGaugeSeriesTheme } from './interface';\nimport { ProgressLikeSeries } from '../polar/progress-like/progress-like';\nimport type { IProgressArcMark } from '../../mark/progress-arc';\nimport { registerDataSetInstanceTransform } from '../../data/register';\nimport { SEGMENT_FIELD_END, SEGMENT_FIELD_START } from '../../constant';\nimport type { Datum } from '@visactor/vgrammar';\nimport type { Maybe } from '../../typings';\nimport type { IStateAnimateSpec } from '../../animation/spec';\nimport { animationConfig, userAnimationConfig } from '../../animation/utils';\nimport { DEFAULT_MARK_ANIMATION } from '../../animation/config';\nimport { VChart } from '../../core/vchart';\n// eslint-disable-next-line no-duplicate-imports\nimport { ProgressArcMark } from '../../mark/progress-arc';\nimport { gaugeSeriesMark } from './constant';\n\nVChart.useMark([ProgressArcMark]);\n\nexport class GaugeSeries<T extends IGaugeSeriesSpec = IGaugeSeriesSpec> extends ProgressLikeSeries<T> {\n static readonly type: string = SeriesTypeEnum.gauge;\n type = SeriesTypeEnum.gauge;\n\n static readonly mark: SeriesMarkMap = gaugeSeriesMark;\n\n protected declare _theme: Maybe<IGaugeSeriesTheme>;\n\n private _segmentMark: IProgressArcMark | null = null;\n private _trackMark: IProgressArcMark | null = null;\n\n protected _stack: boolean = false;\n protected _padAngle: number = 0;\n\n setAttrFromSpec(): void {\n super.setAttrFromSpec();\n\n this._padAngle = radians(this._spec.padAngle ?? 0);\n }\n\n initData(): void {\n super.initData();\n\n /**\n * @description 将数据排序并调整图元的起始点为上一个数据的终点,但是终点维持不变\n */\n const spiltSegment = (data: Datum[], op: string) => {\n // 数据处理\n const dataCollect = [...data];\n dataCollect.sort((a, b) => a[this._angleField[0]] - b[this._angleField[0]]);\n dataCollect.forEach((datum: any, i) => {\n datum[SEGMENT_FIELD_END] = datum[this._angleField[0]];\n if (i > 0) {\n datum[SEGMENT_FIELD_START] = dataCollect[i - 1][SEGMENT_FIELD_END];\n } else {\n datum[SEGMENT_FIELD_START] = undefined;\n }\n });\n return dataCollect;\n };\n\n registerDataSetInstanceTransform(this._option.dataSet, 'spiltSegment', spiltSegment);\n this.getViewDataFilter()?.transform(\n {\n type: 'spiltSegment'\n },\n false\n );\n }\n\n initMark(): void {\n this._trackMark = this._createMark(GaugeSeries.mark.track) as IProgressArcMark;\n this._segmentMark = this._createMark(GaugeSeries.mark.segment, {\n isSeriesMark: true\n }) as IProgressArcMark;\n }\n\n initMarkStyle(): void {\n this.initTrackMarkStyle();\n this.initSegmentMarkStyle();\n }\n\n private initSegmentMarkStyle() {\n const segmentMark = this._segmentMark;\n if (segmentMark) {\n this.setMarkStyle(segmentMark, {\n x: () => this.angleAxisHelper.center().x,\n y: () => this.angleAxisHelper.center().y,\n startAngle: this._getAngleValueStart.bind(this),\n endAngle: this._getAngleValueEnd.bind(this),\n innerRadius: () => this._computeLayoutRadius() * (this._spec.innerRadius ?? 0),\n // 需要优先兼容this._spec.radius\n outerRadius: () => this._computeLayoutRadius() * (this._spec.radius ?? this._spec.outerRadius ?? 1),\n cap: this._spec.roundCap ?? false,\n boundsMode: 'imprecise',\n cornerRadius: this._spec.cornerRadius,\n fill: this.getColorAttribute(),\n zIndex: 200,\n // eslint-disable-next-line @typescript-eslint/ban-ts-comment\n // @ts-ignore\n // forceShowCap 是内部属性,不在接口中暴露\n forceShowCap: true\n });\n this._trigger.registerMark(segmentMark);\n this._tooltipHelper?.activeTriggerSet.mark.add(segmentMark);\n }\n }\n\n private initTrackMarkStyle() {\n const trackMark = this._trackMark;\n if (trackMark) {\n this.setMarkStyle(trackMark, {\n x: () => this.angleAxisHelper.center().x,\n y: () => this.angleAxisHelper.center().y,\n startAngle: this._startAngle,\n endAngle: this._endAngle,\n cornerRadius: this._spec.cornerRadius,\n zIndex: 100\n });\n this._trigger.registerMark(trackMark);\n }\n }\n\n protected _getAngleValueStart(datum: Datum) {\n const angle = isValid(datum[SEGMENT_FIELD_START])\n ? this.angleAxisHelper.dataToPosition([datum[SEGMENT_FIELD_START]])\n : this._startAngle;\n return angle + (this._spec.padAngle ?? 0) / 2;\n }\n\n protected _getAngleValueEnd(datum: Datum) {\n const angle = this.angleAxisHelper.dataToPosition([datum[SEGMENT_FIELD_END]]);\n return angle - (this._spec.padAngle ?? 0) / 2;\n }\n\n initAnimation() {\n const appearPreset = (this._spec?.animationAppear as IStateAnimateSpec<any>)?.preset;\n\n this._segmentMark.setAnimationConfig(\n animationConfig(\n DEFAULT_MARK_ANIMATION.circularProgress(\n {\n startAngle: this._startAngle\n },\n appearPreset\n ),\n userAnimationConfig(SeriesMarkNameEnum.segment, this._spec)\n )\n );\n }\n\n getDefaultShapeType() {\n return 'circle';\n }\n}\n"]}
|
package/cjs/series/geo/geo.d.ts
CHANGED
|
@@ -18,6 +18,8 @@ export declare abstract class GeoSeries<T extends IGeoSeriesSpec = IGeoSeriesSpe
|
|
|
18
18
|
_valueField: string;
|
|
19
19
|
get valueField(): string;
|
|
20
20
|
set valueField(f: string);
|
|
21
|
+
protected _nameProperty: string;
|
|
22
|
+
getNameProperty(): string;
|
|
21
23
|
_coordinateHelper: IGeoCoordinateHelper;
|
|
22
24
|
getCoordinateHelper(): IGeoCoordinateHelper;
|
|
23
25
|
setCoordinateHelper(h: IGeoCoordinateHelper): void;
|
package/cjs/series/geo/geo.js
CHANGED
|
@@ -8,7 +8,8 @@ const type_1 = require("../interface/type"), base_series_1 = require("../base/ba
|
|
|
8
8
|
|
|
9
9
|
class GeoSeries extends base_series_1.BaseSeries {
|
|
10
10
|
constructor() {
|
|
11
|
-
super(...arguments), this.type = type_1.SeriesTypeEnum.geo, this.coordinate = "geo"
|
|
11
|
+
super(...arguments), this.type = type_1.SeriesTypeEnum.geo, this.coordinate = "geo",
|
|
12
|
+
this._nameProperty = "name";
|
|
12
13
|
}
|
|
13
14
|
getMapViewData() {
|
|
14
15
|
var _a;
|
|
@@ -26,6 +27,9 @@ class GeoSeries extends base_series_1.BaseSeries {
|
|
|
26
27
|
set valueField(f) {
|
|
27
28
|
this._valueField = f;
|
|
28
29
|
}
|
|
30
|
+
getNameProperty() {
|
|
31
|
+
return this._nameProperty;
|
|
32
|
+
}
|
|
29
33
|
getCoordinateHelper() {
|
|
30
34
|
return this._coordinateHelper;
|
|
31
35
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/geo/geo.ts"],"names":[],"mappings":";;;AAGA,4CAAmD;AACnD,qDAAiD;AACjD,qCAAmC;AAGnC,6CAAwC;AAGxC,MAAsB,SAAqD,SAAQ,wBAAa;IAAhG;;QACE,SAAI,GAAG,qBAAc,CAAC,GAAG,CAAC;QACjB,eAAU,GAAG,KAAK,CAAC;IAwM9B,CAAC;IArMC,cAAc;;QACZ,OAAO,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IAC1C,CAAC;IAKD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IACD,IAAI,SAAS,CAAC,CAAS;QACrB,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;IACtB,CAAC;IAGD,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IACD,IAAI,UAAU,CAAC,CAAS;QACtB,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;IACvB,CAAC;IAGD,mBAAmB;QACjB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IACD,mBAAmB,CAAC,CAAuB;QACzC,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC;IAC7B,CAAC;IAED,kBAAkB;QAChB,MAAM,MAAM,GAAmE,EAAE,CAAC;QAClF,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC9D,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,WAAW,EAAE,UAAU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AAI,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;SAChH;IACH,CAAC;IAGD,aAAa;;QACX,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,OAAO,CACL,MAAA,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,kBAAkB,0CAAE,UAAU,0CAAG,IAAI,CAAC,YAAY,CAAC,0CAAE,MAAM,mCAChE,MAAA,MAAA,IAAI,CAAC,sBAAsB,0CAAE,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,0CAAE,MAAM,mCAClE,EAAE,CACH,CAAC;SACH;QACD,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACpB;QACD,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;SAC3B;QACD,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,QAAQ;;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;QACjB,MAAA,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,0CAAE,iBAAiB,EAAE,CAAC;QACrD,MAAA,IAAI,CAAC,sBAAsB,0CAAE,iBAAiB,EAAE,CAAC;IACnD,CAAC;CACF;AA1MD,8BA0MC","file":"geo.js","sourcesContent":["import type { IGeoCoordinateHelper } from '../../component/geo/interface';\nimport type { IPoint } from '../../typings';\nimport type { IGeoSeries } from '../interface';\nimport { SeriesTypeEnum } from '../interface/type';\nimport { BaseSeries } from '../base/base-series';\nimport { isNil } from '../../util';\nimport type { SeriesData } from '../base/series-data';\nimport type { DataView } from '@visactor/vdataset';\nimport { PREFIX } from '../../constant';\nimport type { IGeoSeriesSpec } from './interface';\n\nexport abstract class GeoSeries<T extends IGeoSeriesSpec = IGeoSeriesSpec> extends BaseSeries<T> implements IGeoSeries {\n type = SeriesTypeEnum.geo;\n readonly coordinate = 'geo';\n\n protected _mapViewData: SeriesData;\n getMapViewData() {\n return this._mapViewData?.getDataView();\n }\n\n protected _mapViewDataStatistics!: DataView;\n\n _nameField!: string;\n get nameField() {\n return this._nameField;\n }\n set nameField(f: string) {\n this._nameField = f;\n }\n\n _valueField!: string;\n get valueField() {\n return this._valueField;\n }\n set valueField(f: string) {\n this._valueField = f;\n }\n\n _coordinateHelper!: IGeoCoordinateHelper;\n getCoordinateHelper() {\n return this._coordinateHelper;\n }\n setCoordinateHelper(h: IGeoCoordinateHelper) {\n this._coordinateHelper = h;\n }\n\n getStatisticFields() {\n const fields: { key: string; operations: Array<'max' | 'min' | 'values'> }[] = [];\n fields.push({ key: this._nameField, operations: ['values'] });\n fields.push({ key: this._valueField, operations: ['max', 'min'] });\n return fields;\n }\n\n getGroupFields(): string[] {\n return null;\n }\n\n // position\n dataToPosition(datum: any): IPoint | null {\n let result: IPoint | null = null;\n\n if (!datum) {\n return result;\n }\n const { dataToPosition, latitudeField, longitudeField } = this._coordinateHelper;\n\n // 从地理数据映射中获取\n result = this.nameToPosition(datum);\n\n // 从用户传入的经纬度获取\n if (result === null) {\n const lonValue = longitudeField ? datum?.[longitudeField] : Number.NaN;\n const latValue = latitudeField ? datum?.[latitudeField] : Number.NaN;\n result = dataToPosition?.([lonValue, latValue]) ?? null;\n }\n\n return result;\n }\n\n protected nameToPosition(datum: any): IPoint | null {\n const name = this._getDatumName(datum);\n if (isNil(name)) {\n return null;\n }\n\n const mapData = this.getMapViewData()?.latestData?.filter((data: any) => this._getDatumName(data) === name)[0];\n if (isNil(mapData)) {\n return null;\n }\n\n const { dataToPosition } = this._coordinateHelper;\n const center = this._getDatumCenter(mapData);\n\n const pos = dataToPosition?.(center);\n if (isNil(pos) || isNaN(pos.x) || isNaN(pos.y)) {\n return null;\n }\n return pos;\n }\n\n protected abstract _getDatumCenter(datum: any): [number, number];\n protected abstract _getDatumName(datum: any): string;\n\n dataToLatitude(latValue: number) {\n if (!this._coordinateHelper) {\n return Number.NaN;\n }\n const { dataToLatitude } = this._coordinateHelper;\n return dataToLatitude(latValue);\n }\n\n dataToLongitude(lonValue: number) {\n if (!this._coordinateHelper) {\n return Number.NaN;\n }\n const { dataToLatitude } = this._coordinateHelper;\n return dataToLatitude(lonValue);\n }\n\n valueToPosition(lonValue: number, latValue: number): IPoint {\n return {\n x: this.dataToLongitude(lonValue),\n y: this.dataToLatitude(latValue)\n };\n }\n\n positionToData(p: IPoint) {\n // TODO\n }\n latitudeToData(lat: number) {\n // TODO\n }\n longitudeToData(lon: number) {\n // TODO\n }\n\n dataToPositionX(data: any): number {\n this._option.onError('Method not implemented.');\n return 0;\n }\n dataToPositionY(data: any): number {\n this._option.onError('Method not implemented.');\n return 0;\n }\n dataToPositionZ(data: any): number {\n this._option.onError('Method not implemented.');\n return 0;\n }\n\n release() {\n super.release();\n this._mapViewData.release();\n this._mapViewData = this._mapViewDataStatistics = null;\n }\n\n // TODO: geo 不支持 stack,这些方法没有意义\n getStackGroupFields() {\n return [this._nameField];\n }\n\n getStackValueField() {\n // TODO: hack\n return this._spec.valueField;\n }\n\n setValueFieldToStack(): void {\n // do nothing\n }\n\n setValueFieldToPercent(): void {\n //do nothing\n }\n\n setValueFieldToStackOffsetSilhouette(): void {\n // do nothing\n }\n\n compileData() {\n this._mapViewData?.compile();\n }\n\n protected initStatisticalData(): void {\n super.initStatisticalData();\n if (this._mapViewData) {\n const viewDataName = `${PREFIX}_series_${this.id}_mapViewDataStatic`;\n this._mapViewDataStatistics = this.createStatisticalData(viewDataName, this._mapViewData.getDataView());\n this._mapViewData.getDataView().target.removeListener('change', this._mapViewDataStatistics.reRunAllTransform);\n }\n }\n\n /** seriesField */\n getSeriesKeys(): string[] {\n if (this._seriesField) {\n return (\n this._rawDataStatistics?.latestData?.[this._seriesField]?.values ??\n this._mapViewDataStatistics?.latestData[this._seriesField]?.values ??\n []\n );\n }\n if (this.name) {\n return [this.name];\n }\n if (this.userId) {\n return [`${this.userId}`];\n }\n return [`${this.type}_${this.id}`];\n }\n\n fillData() {\n super.fillData();\n this._mapViewData.getDataView()?.reRunAllTransform();\n this._mapViewDataStatistics?.reRunAllTransform();\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/series/geo/geo.ts"],"names":[],"mappings":";;;AAGA,4CAAmD;AACnD,qDAAiD;AACjD,qCAAmC;AAGnC,6CAAwC;AAGxC,MAAsB,SAAqD,SAAQ,wBAAa;IAAhG;;QACE,SAAI,GAAG,qBAAc,CAAC,GAAG,CAAC;QACjB,eAAU,GAAG,KAAK,CAAC;QAyBlB,kBAAa,GAAW,MAAM,CAAC;IAoL3C,CAAC;IA1MC,cAAc;;QACZ,OAAO,MAAA,IAAI,CAAC,YAAY,0CAAE,WAAW,EAAE,CAAC;IAC1C,CAAC;IAKD,IAAI,SAAS;QACX,OAAO,IAAI,CAAC,UAAU,CAAC;IACzB,CAAC;IACD,IAAI,SAAS,CAAC,CAAS;QACrB,IAAI,CAAC,UAAU,GAAG,CAAC,CAAC;IACtB,CAAC;IAGD,IAAI,UAAU;QACZ,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IACD,IAAI,UAAU,CAAC,CAAS;QACtB,IAAI,CAAC,WAAW,GAAG,CAAC,CAAC;IACvB,CAAC;IAGD,eAAe;QACb,OAAO,IAAI,CAAC,aAAa,CAAC;IAC5B,CAAC;IAGD,mBAAmB;QACjB,OAAO,IAAI,CAAC,iBAAiB,CAAC;IAChC,CAAC;IACD,mBAAmB,CAAC,CAAuB;QACzC,IAAI,CAAC,iBAAiB,GAAG,CAAC,CAAC;IAC7B,CAAC;IAED,kBAAkB;QAChB,MAAM,MAAM,GAAmE,EAAE,CAAC;QAClF,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,CAAC,UAAU,EAAE,UAAU,EAAE,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;QAC9D,MAAM,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,IAAI,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c,CAAC,QAAQ,EAAE,IAAI,CAAC,sBAAsB,CAAC,iBAAiB,CAAC,CAAC;SAChH;IACH,CAAC;IAGD,aAAa;;QACX,IAAI,IAAI,CAAC,YAAY,EAAE;YACrB,OAAO,CACL,MAAA,MAAA,MAAA,MAAA,MAAA,IAAI,CAAC,kBAAkB,0CAAE,UAAU,0CAAG,IAAI,CAAC,YAAY,CAAC,0CAAE,MAAM,mCAChE,MAAA,MAAA,IAAI,CAAC,sBAAsB,0CAAE,UAAU,CAAC,IAAI,CAAC,YAAY,CAAC,0CAAE,MAAM,mCAClE,EAAE,CACH,CAAC;SACH;QACD,IAAI,IAAI,CAAC,IAAI,EAAE;YACb,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;SACpB;QACD,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,OAAO,CAAC,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC;SAC3B;QACD,OAAO,CAAC,GAAG,IAAI,CAAC,IAAI,IAAI,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC;IACrC,CAAC;IAED,QAAQ;;QACN,KAAK,CAAC,QAAQ,EAAE,CAAC;QACjB,MAAA,IAAI,CAAC,YAAY,CAAC,WAAW,EAAE,0CAAE,iBAAiB,EAAE,CAAC;QACrD,MAAA,IAAI,CAAC,sBAAsB,0CAAE,iBAAiB,EAAE,CAAC;IACnD,CAAC;CACF;AA/MD,8BA+MC","file":"geo.js","sourcesContent":["import type { IGeoCoordinateHelper } from '../../component/geo/interface';\nimport type { IPoint } from '../../typings';\nimport type { IGeoSeries } from '../interface';\nimport { SeriesTypeEnum } from '../interface/type';\nimport { BaseSeries } from '../base/base-series';\nimport { isNil } from '../../util';\nimport type { SeriesData } from '../base/series-data';\nimport type { DataView } from '@visactor/vdataset';\nimport { PREFIX } from '../../constant';\nimport type { IGeoSeriesSpec } from './interface';\n\nexport abstract class GeoSeries<T extends IGeoSeriesSpec = IGeoSeriesSpec> extends BaseSeries<T> implements IGeoSeries {\n type = SeriesTypeEnum.geo;\n readonly coordinate = 'geo';\n\n protected _mapViewData: SeriesData;\n getMapViewData() {\n return this._mapViewData?.getDataView();\n }\n\n protected _mapViewDataStatistics!: DataView;\n\n _nameField!: string;\n get nameField() {\n return this._nameField;\n }\n set nameField(f: string) {\n this._nameField = f;\n }\n\n _valueField!: string;\n get valueField() {\n return this._valueField;\n }\n set valueField(f: string) {\n this._valueField = f;\n }\n\n protected _nameProperty: string = 'name';\n getNameProperty() {\n return this._nameProperty;\n }\n\n _coordinateHelper!: IGeoCoordinateHelper;\n getCoordinateHelper() {\n return this._coordinateHelper;\n }\n setCoordinateHelper(h: IGeoCoordinateHelper) {\n this._coordinateHelper = h;\n }\n\n getStatisticFields() {\n const fields: { key: string; operations: Array<'max' | 'min' | 'values'> }[] = [];\n fields.push({ key: this._nameField, operations: ['values'] });\n fields.push({ key: this._valueField, operations: ['max', 'min'] });\n return fields;\n }\n\n getGroupFields(): string[] {\n return null;\n }\n\n // position\n dataToPosition(datum: any): IPoint | null {\n let result: IPoint | null = null;\n\n if (!datum) {\n return result;\n }\n const { dataToPosition, latitudeField, longitudeField } = this._coordinateHelper;\n\n // 从地理数据映射中获取\n result = this.nameToPosition(datum);\n\n // 从用户传入的经纬度获取\n if (result === null) {\n const lonValue = longitudeField ? datum?.[longitudeField] : Number.NaN;\n const latValue = latitudeField ? datum?.[latitudeField] : Number.NaN;\n result = dataToPosition?.([lonValue, latValue]) ?? null;\n }\n\n return result;\n }\n\n protected nameToPosition(datum: any): IPoint | null {\n const name = this._getDatumName(datum);\n if (isNil(name)) {\n return null;\n }\n\n const mapData = this.getMapViewData()?.latestData?.filter((data: any) => this._getDatumName(data) === name)[0];\n if (isNil(mapData)) {\n return null;\n }\n\n const { dataToPosition } = this._coordinateHelper;\n const center = this._getDatumCenter(mapData);\n\n const pos = dataToPosition?.(center);\n if (isNil(pos) || isNaN(pos.x) || isNaN(pos.y)) {\n return null;\n }\n return pos;\n }\n\n protected abstract _getDatumCenter(datum: any): [number, number];\n protected abstract _getDatumName(datum: any): string;\n\n dataToLatitude(latValue: number) {\n if (!this._coordinateHelper) {\n return Number.NaN;\n }\n const { dataToLatitude } = this._coordinateHelper;\n return dataToLatitude(latValue);\n }\n\n dataToLongitude(lonValue: number) {\n if (!this._coordinateHelper) {\n return Number.NaN;\n }\n const { dataToLatitude } = this._coordinateHelper;\n return dataToLatitude(lonValue);\n }\n\n valueToPosition(lonValue: number, latValue: number): IPoint {\n return {\n x: this.dataToLongitude(lonValue),\n y: this.dataToLatitude(latValue)\n };\n }\n\n positionToData(p: IPoint) {\n // TODO\n }\n latitudeToData(lat: number) {\n // TODO\n }\n longitudeToData(lon: number) {\n // TODO\n }\n\n dataToPositionX(data: any): number {\n this._option.onError('Method not implemented.');\n return 0;\n }\n dataToPositionY(data: any): number {\n this._option.onError('Method not implemented.');\n return 0;\n }\n dataToPositionZ(data: any): number {\n this._option.onError('Method not implemented.');\n return 0;\n }\n\n release() {\n super.release();\n this._mapViewData.release();\n this._mapViewData = this._mapViewDataStatistics = null;\n }\n\n // TODO: geo 不支持 stack,这些方法没有意义\n getStackGroupFields() {\n return [this._nameField];\n }\n\n getStackValueField() {\n // TODO: hack\n return this._spec.valueField;\n }\n\n setValueFieldToStack(): void {\n // do nothing\n }\n\n setValueFieldToPercent(): void {\n //do nothing\n }\n\n setValueFieldToStackOffsetSilhouette(): void {\n // do nothing\n }\n\n compileData() {\n this._mapViewData?.compile();\n }\n\n protected initStatisticalData(): void {\n super.initStatisticalData();\n if (this._mapViewData) {\n const viewDataName = `${PREFIX}_series_${this.id}_mapViewDataStatic`;\n this._mapViewDataStatistics = this.createStatisticalData(viewDataName, this._mapViewData.getDataView());\n this._mapViewData.getDataView().target.removeListener('change', this._mapViewDataStatistics.reRunAllTransform);\n }\n }\n\n /** seriesField */\n getSeriesKeys(): string[] {\n if (this._seriesField) {\n return (\n this._rawDataStatistics?.latestData?.[this._seriesField]?.values ??\n this._mapViewDataStatistics?.latestData[this._seriesField]?.values ??\n []\n );\n }\n if (this.name) {\n return [this.name];\n }\n if (this.userId) {\n return [`${this.userId}`];\n }\n return [`${this.type}_${this.id}`];\n }\n\n fillData() {\n super.fillData();\n this._mapViewData.getDataView()?.reRunAllTransform();\n this._mapViewDataStatistics?.reRunAllTransform();\n }\n}\n"]}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: !0
|
|
5
|
+
}), exports.heatmapSeriesMark = void 0;
|
|
6
|
+
|
|
7
|
+
const interface_1 = require("../../mark/interface"), constant_1 = require("../base/constant"), common_1 = require("../interface/common");
|
|
8
|
+
|
|
9
|
+
exports.heatmapSeriesMark = Object.assign(Object.assign({}, constant_1.baseSeriesMark), {
|
|
10
|
+
[common_1.SeriesMarkNameEnum.cell]: {
|
|
11
|
+
name: common_1.SeriesMarkNameEnum.cell,
|
|
12
|
+
type: interface_1.MarkTypeEnum.cell
|
|
13
|
+
},
|
|
14
|
+
[common_1.SeriesMarkNameEnum.cellBackground]: {
|
|
15
|
+
name: common_1.SeriesMarkNameEnum.cellBackground,
|
|
16
|
+
type: interface_1.MarkTypeEnum.cell
|
|
17
|
+
}
|
|
18
|
+
});
|
|
19
|
+
//# sourceMappingURL=constant.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/series/heatmap/constant.ts"],"names":[],"mappings":";;;AAAA,oDAAoD;AACpD,+CAAkD;AAClD,gDAA6E;AAEhE,QAAA,iBAAiB,mCACzB,yBAAc,KACjB,CAAC,2BAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,2BAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,wBAAY,CAAC,IAAI,EAAE,EACrF,CAAC,2BAAkB,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,EAAE,2BAAkB,CAAC,cAAc,EAAE,IAAI,EAAE,wBAAY,CAAC,IAAI,EAAE,IACzG","file":"constant.js","sourcesContent":["import { MarkTypeEnum } from '../../mark/interface';\nimport { baseSeriesMark } from '../base/constant';\nimport { SeriesMarkNameEnum, type SeriesMarkMap } from '../interface/common';\n\nexport const heatmapSeriesMark: SeriesMarkMap = {\n ...baseSeriesMark,\n [SeriesMarkNameEnum.cell]: { name: SeriesMarkNameEnum.cell, type: MarkTypeEnum.cell },\n [SeriesMarkNameEnum.cellBackground]: { name: SeriesMarkNameEnum.cellBackground, type: MarkTypeEnum.cell }\n};\n"]}
|
|
@@ -7,7 +7,7 @@ import type { SeriesMarkMap } from '../interface';
|
|
|
7
7
|
import { SeriesTypeEnum } from '../interface';
|
|
8
8
|
import type { ICellMark } from '../../mark/cell';
|
|
9
9
|
export declare const DefaultBandWidth = 6;
|
|
10
|
-
export declare class HeatmapSeries extends CartesianSeries<
|
|
10
|
+
export declare class HeatmapSeries<T extends IHeatmapSeriesSpec = IHeatmapSeriesSpec> extends CartesianSeries<T> {
|
|
11
11
|
static readonly type: string;
|
|
12
12
|
type: SeriesTypeEnum;
|
|
13
13
|
static readonly mark: SeriesMarkMap;
|
|
@@ -32,6 +32,7 @@ export declare class HeatmapSeries extends CartesianSeries<IHeatmapSeriesSpec> {
|
|
|
32
32
|
updateSpec(spec: IHeatmapSeriesSpec): {
|
|
33
33
|
change: boolean;
|
|
34
34
|
reMake: boolean;
|
|
35
|
+
reMakeData: boolean;
|
|
35
36
|
reRender: boolean;
|
|
36
37
|
reSize: boolean;
|
|
37
38
|
reCompile: boolean;
|
|
@@ -4,13 +4,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: !0
|
|
5
5
|
}), exports.HeatmapSeries = exports.DefaultBandWidth = void 0;
|
|
6
6
|
|
|
7
|
-
const cartesian_1 = require("../cartesian/cartesian"),
|
|
7
|
+
const cartesian_1 = require("../cartesian/cartesian"), constant_1 = require("../../constant"), util_1 = require("../../util"), utils_1 = require("../../animation/utils"), interface_1 = require("../interface"), config_1 = require("../../animation/config"), vutils_1 = require("@visactor/vutils"), tooltip_helper_1 = require("./tooltip-helper"), vchart_1 = require("../../core/vchart"), cell_1 = require("../../mark/cell"), text_1 = require("../../mark/text"), constant_2 = require("./constant");
|
|
8
8
|
|
|
9
9
|
vchart_1.VChart.useMark([ cell_1.CellMark, text_1.TextMark ]), exports.DefaultBandWidth = 6;
|
|
10
10
|
|
|
11
11
|
class HeatmapSeries extends cartesian_1.CartesianSeries {
|
|
12
12
|
constructor() {
|
|
13
|
-
super(...arguments), this.type =
|
|
13
|
+
super(...arguments), this.type = interface_1.SeriesTypeEnum.heatmap;
|
|
14
14
|
}
|
|
15
15
|
getFieldValue() {
|
|
16
16
|
return this._fieldValue;
|
|
@@ -32,7 +32,7 @@ class HeatmapSeries extends cartesian_1.CartesianSeries {
|
|
|
32
32
|
morph: (0, utils_1.shouldDoMorph)(this._spec.animation, this._spec.morph, (0, utils_1.userAnimationConfig)("cell", this._spec)),
|
|
33
33
|
defaultMorphElementKey: this.getDimensionField()[0],
|
|
34
34
|
isSeriesMark: !0,
|
|
35
|
-
label: (0, util_1.
|
|
35
|
+
label: (0, util_1.mergeSpec)({
|
|
36
36
|
animation: this._spec.animation
|
|
37
37
|
}, this._spec.label),
|
|
38
38
|
progressive: progressive
|
|
@@ -86,7 +86,7 @@ class HeatmapSeries extends cartesian_1.CartesianSeries {
|
|
|
86
86
|
var _a, _b;
|
|
87
87
|
const appearPreset = null === (_b = null === (_a = this._spec) || void 0 === _a ? void 0 : _a.animationAppear) || void 0 === _b ? void 0 : _b.preset;
|
|
88
88
|
this._cellMark.setAnimationConfig((0, utils_1.animationConfig)(config_1.DEFAULT_MARK_ANIMATION.heatmap(appearPreset), (0,
|
|
89
|
-
utils_1.userAnimationConfig)(
|
|
89
|
+
utils_1.userAnimationConfig)(interface_1.SeriesMarkNameEnum.cell, this._spec), {
|
|
90
90
|
dataIndex: datum => {
|
|
91
91
|
var _a, _b, _c;
|
|
92
92
|
const xValue = null == datum ? void 0 : datum[this._fieldX[0]];
|
|
@@ -117,15 +117,6 @@ class HeatmapSeries extends cartesian_1.CartesianSeries {
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
|
|
120
|
-
exports.HeatmapSeries = HeatmapSeries, HeatmapSeries.type =
|
|
121
|
-
HeatmapSeries.mark =
|
|
122
|
-
[interface_2.SeriesMarkNameEnum.cell]: {
|
|
123
|
-
name: interface_2.SeriesMarkNameEnum.cell,
|
|
124
|
-
type: interface_1.MarkTypeEnum.cell
|
|
125
|
-
},
|
|
126
|
-
[interface_2.SeriesMarkNameEnum.cellBackground]: {
|
|
127
|
-
name: interface_2.SeriesMarkNameEnum.cellBackground,
|
|
128
|
-
type: interface_1.MarkTypeEnum.cell
|
|
129
|
-
}
|
|
130
|
-
});
|
|
120
|
+
exports.HeatmapSeries = HeatmapSeries, HeatmapSeries.type = interface_1.SeriesTypeEnum.heatmap,
|
|
121
|
+
HeatmapSeries.mark = constant_2.heatmapSeriesMark;
|
|
131
122
|
//# sourceMappingURL=heatmap.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/heatmap/heatmap.ts"],"names":[],"mappings":";;;AACA,sDAAyD;AACzD,oDAAoD;AACpD,6CAAgD;AAEhD,qCAA0C;AAE1C,iDAA4F;AAK5F,4CAAkE;AAClE,mDAAgE;AAGhE,6CAAoD;AACpD,qDAA8D;AAC9D,qDAAiD;AACjD,8CAA2C;AAC3C,0CAA2C;AAC3C,0CAA2C;AAE3C,eAAM,CAAC,OAAO,CAAC,CAAC,eAAQ,EAAE,eAAQ,CAAC,CAAC,CAAC;AAExB,QAAA,gBAAgB,GAAG,CAAC,CAAC;AAElC,MAAa,aAAc,SAAQ,2BAAmC;IAAtE;;QAEE,SAAI,GAAG,0BAAc,CAAC,OAAO,CAAC;IAsLhC,CAAC;IAxKC,aAAa;QACX,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IACD,aAAa,CAAC,CAAoB;QAChC,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AAM,CAAC;IAChB,CAAC;IAES,WAAW;QACnB,IAAI,CAAC,cAAc,GAAG,IAAI,2CAA0B,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED,mBAAmB;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,iBAAiB;QACf,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;;AAvLH,sCAwLC;AAvLiB,kBAAI,GAAW,0BAAc,CAAC,OAAO,CAAC;AAGtC,kBAAI,mCACf,wBAAU,CAAC,IAAI,KAClB,CAAC,8BAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,IAAI,EAAE,8BAAkB,CAAC,IAAI,EAAE,IAAI,EAAE,wBAAY,CAAC,IAAI,EAAE,EACrF,CAAC,8BAAkB,CAAC,cAAc,CAAC,EAAE,EAAE,IAAI,EAAE,8BAAkB,CAAC,cAAc,EAAE,IAAI,EAAE,wBAAY,CAAC,IAAI,EAAE,IACzG","file":"heatmap.js","sourcesContent":["/* eslint-disable no-duplicate-imports */\nimport { CartesianSeries } from '../cartesian/cartesian';\nimport { MarkTypeEnum } from '../../mark/interface';\nimport { AttributeLevel } from '../../constant';\nimport type { Maybe, Datum } from '../../typings';\nimport { array, merge } from '../../util';\nimport type { HeatmapAppearPreset } from './animation';\nimport { animationConfig, shouldDoMorph, userAnimationConfig } from '../../animation/utils';\nimport type { IHeatmapSeriesSpec, IHeatmapSeriesTheme } from './interface';\nimport type { IAxisHelper } from '../../component/axis/cartesian/interface';\nimport type { ITextMark } from '../../mark/text';\nimport type { SeriesMarkMap } from '../interface';\nimport { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface';\nimport { DEFAULT_MARK_ANIMATION } from '../../animation/config';\nimport type { IStateAnimateSpec } from '../../animation/spec';\nimport type { ICellMark } from '../../mark/cell';\nimport { normalizePadding } from '@visactor/vutils';\nimport { HeatmapSeriesTooltipHelper } from './tooltip-helper';\nimport { BaseSeries } from '../base/base-series';\nimport { VChart } from '../../core/vchart';\nimport { CellMark } from '../../mark/cell';\nimport { TextMark } from '../../mark/text';\n\nVChart.useMark([CellMark, TextMark]);\n\nexport const DefaultBandWidth = 6; // 默认的bandWidth,避免连续轴没有bandWidth\n\nexport class HeatmapSeries extends CartesianSeries<IHeatmapSeriesSpec> {\n static readonly type: string = SeriesTypeEnum.heatmap;\n type = SeriesTypeEnum.heatmap;\n\n static readonly mark: SeriesMarkMap = {\n ...BaseSeries.mark,\n [SeriesMarkNameEnum.cell]: { name: SeriesMarkNameEnum.cell, type: MarkTypeEnum.cell },\n [SeriesMarkNameEnum.cellBackground]: { name: SeriesMarkNameEnum.cellBackground, type: MarkTypeEnum.cell }\n };\n\n protected declare _theme: Maybe<IHeatmapSeriesTheme>;\n\n protected _cellMark: ICellMark;\n protected _backgroundMark: ICellMark;\n\n protected _fieldValue!: string[];\n getFieldValue() {\n return this._fieldValue;\n }\n setFieldValue(f: string | string[]) {\n this._fieldValue = array(f);\n }\n\n setAttrFromSpec() {\n super.setAttrFromSpec();\n this.setFieldValue(this._spec.valueField);\n }\n\n initMark(): void {\n const progressive = {\n progressiveStep: this._spec.progressiveStep,\n progressiveThreshold: this._spec.progressiveThreshold,\n large: this._spec.large,\n largeThreshold: this._spec.largeThreshold\n };\n\n this._cellMark = this._createMark(HeatmapSeries.mark.cell, {\n morph: shouldDoMorph(this._spec.animation, this._spec.morph, userAnimationConfig('cell', this._spec)),\n defaultMorphElementKey: this.getDimensionField()[0],\n isSeriesMark: true,\n label: merge({ animation: this._spec.animation }, this._spec.label),\n progressive\n }) as ICellMark;\n\n this._backgroundMark = this._createMark(HeatmapSeries.mark.cellBackground, {\n progressive\n }) as ICellMark;\n }\n\n initMarkStyle(): void {\n this.initCellMarkStyle();\n this.initCellBackgroundMarkStyle();\n }\n\n initLabelMarkStyle(textMark: ITextMark) {\n if (!textMark) {\n return;\n }\n this.setMarkStyle(textMark, {\n fill: this.getColorAttribute(),\n text: (datum: Datum) => {\n return datum[this.getMeasureField()[0]];\n }\n });\n }\n\n initCellMarkStyle() {\n this.setMarkStyle(\n this._cellMark,\n {\n x: (datum: Datum) => {\n const pos = this.dataToPositionX(datum);\n return pos;\n },\n y: (datum: Datum) => {\n const pos = this.dataToPositionY(datum);\n return pos;\n },\n size: () => {\n return [this.getCellSize(this._xAxisHelper), this.getCellSize(this._yAxisHelper)];\n },\n fill: this.getColorAttribute()\n },\n 'normal',\n AttributeLevel.Series\n );\n\n this._trigger.registerMark(this._cellMark);\n this._tooltipHelper?.activeTriggerSet.mark.add(this._cellMark);\n }\n\n initCellBackgroundMarkStyle() {\n const padding = normalizePadding(this._spec.cellBackground?.style?.padding ?? 0);\n this.setMarkStyle(\n this._backgroundMark,\n {\n x: (datum: Datum) => {\n const width = this.getCellSize(this._xAxisHelper);\n const pos = this.dataToPositionX(datum);\n return pos - width / 2 + padding[3];\n },\n y: (datum: Datum) => {\n const height = this.getCellSize(this._yAxisHelper);\n const pos = this.dataToPositionY(datum);\n return pos - height / 2 + padding[0];\n },\n width: () => {\n return this.getCellSize(this._xAxisHelper) - padding[1] - padding[3];\n },\n height: () => {\n return this.getCellSize(this._yAxisHelper) - padding[0] - padding[2];\n }\n },\n 'normal',\n AttributeLevel.Series\n );\n }\n\n // 通用的默认颜色映射 用户设置优先级比这个高,会在setStyle中处理\n getColorAttribute() {\n return {\n // TODO: 为热力图实现默认线性颜色 scale\n scale: this._option.globalScale.getScale('color') ?? this.getDefaultColorScale(),\n field: this.getFieldValue[0]\n };\n }\n\n initAnimation() {\n const appearPreset = (this._spec?.animationAppear as IStateAnimateSpec<HeatmapAppearPreset>)?.preset;\n // 分组数据的dataIndex应该与x轴顺序一致,而非data[DEFAULT_DATA_INDEX]顺序\n const dataIndex = (datum: any) => {\n const xValue = datum?.[this._fieldX[0]];\n const xIndex = this.getViewDataStatistics()?.latestData?.[this._fieldX[0]]?.values.indexOf(xValue);\n // 不应该出现xIndex === -1 || undefined的情况\n return xIndex || 0;\n };\n\n this._cellMark.setAnimationConfig(\n animationConfig(\n DEFAULT_MARK_ANIMATION.heatmap(appearPreset),\n userAnimationConfig(SeriesMarkNameEnum.cell, this._spec),\n {\n dataIndex\n }\n )\n );\n }\n\n protected getCellSize(axisHelper: IAxisHelper) {\n return axisHelper.getBandwidth?.(0) ?? DefaultBandWidth;\n }\n\n /**\n * spec 更新\n * @param spec\n * @returns\n */\n updateSpec(spec: IHeatmapSeriesSpec) {\n // super updateSpec 会执行 setAttrFromSpec 所以先缓存比对值\n const { direction } = this._spec;\n const result = super.updateSpec(spec);\n if (spec.direction !== direction) {\n result.change = true;\n result.reRender = true;\n result.reMake = true;\n }\n return result;\n }\n\n protected initTooltip() {\n this._tooltipHelper = new HeatmapSeriesTooltipHelper(this);\n }\n\n getDefaultShapeType(): string {\n return 'square';\n }\n\n getDimensionField(): string[] {\n return [].concat(this.fieldX, this.fieldY);\n }\n\n getMeasureField(): string[] {\n return this.getFieldValue();\n }\n}\n"]}
|
|
1
|
+
{"version":3,"sources":["../src/series/heatmap/heatmap.ts"],"names":[],"mappings":";;;AACA,sDAAyD;AACzD,6CAAgD;AAEhD,qCAA8C;AAE9C,iDAA4F;AAK5F,4CAAkE;AAClE,mDAAgE;AAGhE,6CAAoD;AACpD,qDAA8D;AAC9D,8CAA2C;AAC3C,0CAA2C;AAC3C,0CAA2C;AAC3C,yCAA+C;AAE/C,eAAM,CAAC,OAAO,CAAC,CAAC,eAAQ,EAAE,eAAQ,CAAC,CAAC,CAAC;AAExB,QAAA,gBAAgB,GAAG,CAAC,CAAC;AAElC,MAAa,aAAiE,SAAQ,2BAAkB;IAAxG;;QAEE,SAAI,GAAG,0BAAc,CAAC,OAAO,CAAC;IAkLhC,CAAC;IAxKC,aAAa;QACX,OAAO,IAAI,CAAC,WAAW,CAAC;IAC1B,CAAC;IACD,aAAa,CAAC,CAA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ACD,OAAO,MAAM,CAAC;IAChB,CAAC;IAES,WAAW;QACnB,IAAI,CAAC,cAAc,GAAG,IAAI,2CAA0B,CAAC,IAAI,CAAC,CAAC;IAC7D,CAAC;IAED,mBAAmB;QACjB,OAAO,QAAQ,CAAC;IAClB,CAAC;IAED,iBAAiB;QACf,OAAO,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,MAAM,EAAE,IAAI,CAAC,MAAM,CAAC,CAAC;IAC7C,CAAC;IAED,eAAe;QACb,OAAO,IAAI,CAAC,aAAa,EAAE,CAAC;IAC9B,CAAC;;AAnLH,sCAoLC;AAnLiB,kBAAI,GAAW,0BAAc,CAAC,OAAO,CAAC;AAGtC,kBAAI,GAAkB,4BAAiB,CAAC","file":"heatmap.js","sourcesContent":["/* eslint-disable no-duplicate-imports */\nimport { CartesianSeries } from '../cartesian/cartesian';\nimport { AttributeLevel } from '../../constant';\nimport type { Maybe, Datum } from '../../typings';\nimport { array, mergeSpec } from '../../util';\nimport type { HeatmapAppearPreset } from './animation';\nimport { animationConfig, shouldDoMorph, userAnimationConfig } from '../../animation/utils';\nimport type { IHeatmapSeriesSpec, IHeatmapSeriesTheme } from './interface';\nimport type { IAxisHelper } from '../../component/axis/cartesian/interface';\nimport type { ITextMark } from '../../mark/text';\nimport type { SeriesMarkMap } from '../interface';\nimport { SeriesMarkNameEnum, SeriesTypeEnum } from '../interface';\nimport { DEFAULT_MARK_ANIMATION } from '../../animation/config';\nimport type { IStateAnimateSpec } from '../../animation/spec';\nimport type { ICellMark } from '../../mark/cell';\nimport { normalizePadding } from '@visactor/vutils';\nimport { HeatmapSeriesTooltipHelper } from './tooltip-helper';\nimport { VChart } from '../../core/vchart';\nimport { CellMark } from '../../mark/cell';\nimport { TextMark } from '../../mark/text';\nimport { heatmapSeriesMark } from './constant';\n\nVChart.useMark([CellMark, TextMark]);\n\nexport const DefaultBandWidth = 6; // 默认的bandWidth,避免连续轴没有bandWidth\n\nexport class HeatmapSeries<T extends IHeatmapSeriesSpec = IHeatmapSeriesSpec> extends CartesianSeries<T> {\n static readonly type: string = SeriesTypeEnum.heatmap;\n type = SeriesTypeEnum.heatmap;\n\n static readonly mark: SeriesMarkMap = heatmapSeriesMark;\n\n protected declare _theme: Maybe<IHeatmapSeriesTheme>;\n\n protected _cellMark: ICellMark;\n protected _backgroundMark: ICellMark;\n\n protected _fieldValue!: string[];\n getFieldValue() {\n return this._fieldValue;\n }\n setFieldValue(f: string | string[]) {\n this._fieldValue = array(f);\n }\n\n setAttrFromSpec() {\n super.setAttrFromSpec();\n this.setFieldValue(this._spec.valueField);\n }\n\n initMark(): void {\n const progressive = {\n progressiveStep: this._spec.progressiveStep,\n progressiveThreshold: this._spec.progressiveThreshold,\n large: this._spec.large,\n largeThreshold: this._spec.largeThreshold\n };\n\n this._cellMark = this._createMark(HeatmapSeries.mark.cell, {\n morph: shouldDoMorph(this._spec.animation, this._spec.morph, userAnimationConfig('cell', this._spec)),\n defaultMorphElementKey: this.getDimensionField()[0],\n isSeriesMark: true,\n label: mergeSpec({ animation: this._spec.animation }, this._spec.label),\n progressive\n }) as ICellMark;\n\n this._backgroundMark = this._createMark(HeatmapSeries.mark.cellBackground, {\n progressive\n }) as ICellMark;\n }\n\n initMarkStyle(): void {\n this.initCellMarkStyle();\n this.initCellBackgroundMarkStyle();\n }\n\n initLabelMarkStyle(textMark: ITextMark) {\n if (!textMark) {\n return;\n }\n this.setMarkStyle(textMark, {\n fill: this.getColorAttribute(),\n text: (datum: Datum) => {\n return datum[this.getMeasureField()[0]];\n }\n });\n }\n\n initCellMarkStyle() {\n this.setMarkStyle(\n this._cellMark,\n {\n x: (datum: Datum) => {\n const pos = this.dataToPositionX(datum);\n return pos;\n },\n y: (datum: Datum) => {\n const pos = this.dataToPositionY(datum);\n return pos;\n },\n size: () => {\n return [this.getCellSize(this._xAxisHelper), this.getCellSize(this._yAxisHelper)];\n },\n fill: this.getColorAttribute()\n },\n 'normal',\n AttributeLevel.Series\n );\n\n this._trigger.registerMark(this._cellMark);\n this._tooltipHelper?.activeTriggerSet.mark.add(this._cellMark);\n }\n\n initCellBackgroundMarkStyle() {\n const padding = normalizePadding(this._spec.cellBackground?.style?.padding ?? 0);\n this.setMarkStyle(\n this._backgroundMark,\n {\n x: (datum: Datum) => {\n const width = this.getCellSize(this._xAxisHelper);\n const pos = this.dataToPositionX(datum);\n return pos - width / 2 + padding[3];\n },\n y: (datum: Datum) => {\n const height = this.getCellSize(this._yAxisHelper);\n const pos = this.dataToPositionY(datum);\n return pos - height / 2 + padding[0];\n },\n width: () => {\n return this.getCellSize(this._xAxisHelper) - padding[1] - padding[3];\n },\n height: () => {\n return this.getCellSize(this._yAxisHelper) - padding[0] - padding[2];\n }\n },\n 'normal',\n AttributeLevel.Series\n );\n }\n\n // 通用的默认颜色映射 用户设置优先级比这个高,会在setStyle中处理\n getColorAttribute() {\n return {\n // TODO: 为热力图实现默认线性颜色 scale\n scale: this._option.globalScale.getScale('color') ?? this.getDefaultColorScale(),\n field: this.getFieldValue[0]\n };\n }\n\n initAnimation() {\n const appearPreset = (this._spec?.animationAppear as IStateAnimateSpec<HeatmapAppearPreset>)?.preset;\n // 分组数据的dataIndex应该与x轴顺序一致,而非data[DEFAULT_DATA_INDEX]顺序\n const dataIndex = (datum: any) => {\n const xValue = datum?.[this._fieldX[0]];\n const xIndex = this.getViewDataStatistics()?.latestData?.[this._fieldX[0]]?.values.indexOf(xValue);\n // 不应该出现xIndex === -1 || undefined的情况\n return xIndex || 0;\n };\n\n this._cellMark.setAnimationConfig(\n animationConfig(\n DEFAULT_MARK_ANIMATION.heatmap(appearPreset),\n userAnimationConfig(SeriesMarkNameEnum.cell, this._spec),\n {\n dataIndex\n }\n )\n );\n }\n\n protected getCellSize(axisHelper: IAxisHelper) {\n return axisHelper.getBandwidth?.(0) ?? DefaultBandWidth;\n }\n\n /**\n * spec 更新\n * @param spec\n * @returns\n */\n updateSpec(spec: IHeatmapSeriesSpec) {\n // super updateSpec 会执行 setAttrFromSpec 所以先缓存比对值\n const { direction } = this._spec;\n const result = super.updateSpec(spec);\n if (spec.direction !== direction) {\n result.change = true;\n result.reRender = true;\n result.reMake = true;\n }\n return result;\n }\n\n protected initTooltip() {\n this._tooltipHelper = new HeatmapSeriesTooltipHelper(this);\n }\n\n getDefaultShapeType(): string {\n return 'square';\n }\n\n getDimensionField(): string[] {\n return [].concat(this.fieldX, this.fieldY);\n }\n\n getMeasureField(): string[] {\n return this.getFieldValue();\n }\n}\n"]}
|
package/cjs/series/index.d.ts
CHANGED
|
@@ -46,7 +46,7 @@ import { CirclePackingSeries } from './circle-packing/circle-packing';
|
|
|
46
46
|
import type { ICirclePackingSeriesSpec } from './circle-packing/interface';
|
|
47
47
|
import { SankeySeries } from './sankey/sankey';
|
|
48
48
|
import type { ISankeySeriesSpec } from './sankey/interface';
|
|
49
|
-
import {
|
|
49
|
+
import { TreemapSeries } from './treemap/treemap';
|
|
50
50
|
import type { ITreemapSeriesSpec } from './treemap/interface';
|
|
51
51
|
import type { IGaugePointerSeriesSpec, IGaugeSeriesSpec } from './gauge';
|
|
52
52
|
import { GaugePointerSeries, GaugeSeries } from './gauge';
|
|
@@ -62,5 +62,5 @@ import { ProgressLikeSeries } from './polar/progress-like';
|
|
|
62
62
|
import type { IRoseLikeSeriesSpec } from './polar/rose-like';
|
|
63
63
|
import { RoseLikeSeries } from './polar/rose-like';
|
|
64
64
|
import type { ISeries } from './interface';
|
|
65
|
-
export { WaterfallSeries, Bar3dSeries, BarSeries, BoxPlotSeries, LineSeries, RadarSeries, RangeAreaSeries, RangeColumn3dSeries, RangeColumnSeries, MapSeries, Pie3dSeries, PieSeries, SankeySeries, ScatterSeries, SunburstSeries, RoseLikeSeries, RoseSeries, AreaSeries, DotSeries, LinearProgressSeries, LinkSeries, CirclePackingSeries, CircularProgressSeries, WordCloud3dSeries, WordCloudSeries, Funnel3dSeries, FunnelSeries,
|
|
65
|
+
export { WaterfallSeries, Bar3dSeries, BarSeries, BoxPlotSeries, LineSeries, RadarSeries, RangeAreaSeries, RangeColumn3dSeries, RangeColumnSeries, MapSeries, Pie3dSeries, PieSeries, SankeySeries, ScatterSeries, SunburstSeries, RoseLikeSeries, RoseSeries, AreaSeries, DotSeries, LinearProgressSeries, LinkSeries, CirclePackingSeries, CircularProgressSeries, WordCloud3dSeries, WordCloudSeries, Funnel3dSeries, FunnelSeries, TreemapSeries as TreemapSeries, GaugePointerSeries, GaugeSeries, HeatmapSeries, BaseSeries, CartesianSeries, PolarSeries, ProgressLikeSeries };
|
|
66
66
|
export type { ISeries, IRoseLikeSeriesSpec, IAreaSeriesSpec, IBar3dSeriesSpec, IBarSeriesSpec, IBoxPlotSeriesSpec, ICartesianSeriesSpec, ICirclePackingSeriesSpec, ICircularProgressSeriesSpec, IDotSeriesSpec, IFunnel3dSeriesSpec, IFunnelSeriesSpec, IGaugePointerSeriesSpec, IGaugeSeriesSpec, IHeatmapSeriesSpec, ILineSeriesSpec, ILinearProgressSeriesSpec, ILinkSeriesSpec, IMapSeriesSpec, IPie3dSeriesSpec, IPieSeriesSpec, IPolarSeriesSpec, IProgressLikeSeriesSpec, IRadarSeriesSpec, IRangeAreaSeriesSpec, IRangeColumn3dSeriesSpec, IRangeColumnSeriesSpec, IRoseSeriesSpec, ISankeySeriesSpec, IScatterSeriesSpec, ISunburstSeriesSpec, ITreemapSeriesSpec, IWaterfallSeriesSpec, IWordCloud3dSeriesSpec, IWordCloudSeriesSpec };
|
package/cjs/series/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: !0
|
|
5
|
-
}), exports.ProgressLikeSeries = exports.PolarSeries = exports.CartesianSeries = exports.BaseSeries = exports.HeatmapSeries = exports.GaugeSeries = exports.GaugePointerSeries = exports.
|
|
5
|
+
}), exports.ProgressLikeSeries = exports.PolarSeries = exports.CartesianSeries = exports.BaseSeries = exports.HeatmapSeries = exports.GaugeSeries = exports.GaugePointerSeries = exports.TreemapSeries = exports.FunnelSeries = exports.Funnel3dSeries = exports.WordCloudSeries = exports.WordCloud3dSeries = exports.CircularProgressSeries = exports.CirclePackingSeries = exports.LinkSeries = exports.LinearProgressSeries = exports.DotSeries = exports.AreaSeries = exports.RoseSeries = exports.RoseLikeSeries = exports.SunburstSeries = exports.ScatterSeries = exports.SankeySeries = exports.PieSeries = exports.Pie3dSeries = exports.MapSeries = exports.RangeColumnSeries = exports.RangeColumn3dSeries = exports.RangeAreaSeries = exports.RadarSeries = exports.LineSeries = exports.BoxPlotSeries = exports.BarSeries = exports.Bar3dSeries = exports.WaterfallSeries = void 0;
|
|
6
6
|
|
|
7
7
|
const waterfall_1 = require("./waterfall/waterfall");
|
|
8
8
|
|
|
@@ -240,10 +240,10 @@ Object.defineProperty(exports, "SankeySeries", {
|
|
|
240
240
|
|
|
241
241
|
const treemap_1 = require("./treemap/treemap");
|
|
242
242
|
|
|
243
|
-
Object.defineProperty(exports, "
|
|
243
|
+
Object.defineProperty(exports, "TreemapSeries", {
|
|
244
244
|
enumerable: !0,
|
|
245
245
|
get: function() {
|
|
246
|
-
return treemap_1.
|
|
246
|
+
return treemap_1.TreemapSeries;
|
|
247
247
|
}
|
|
248
248
|
});
|
|
249
249
|
|
package/cjs/series/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/index.ts"],"names":[],"mappings":";;;AAIA,qDAAwD;AAmEtD,gGAnEO,2BAAe,OAmEP;AAjEjB,kDAAoD;AAoElD,8FApEO,wBAAa,OAoEP;AAlEf,sCAAyC;AAmEvC,2FAnEO,iBAAU,OAmEP;AAjEZ,mCAAsC;AA+DpC,0FA/DO,eAAS,OA+DP;AA9DX,yCAA2C;AA6DzC,4FA7DO,oBAAW,OA6DP;AA3Db,8DAAgE;AAkE9D,kGAlEO,gCAAiB,OAkEP;AAjEnB,oEAAqE;AAgEnE,oGAhEO,qCAAmB,OAgEP;AA9DrB,wDAA0D;AA6DxD,gGA7DO,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C1C,4FA3CO,mBAAW,OA2CP;AAxCb,yDAA2D;AAyCzD,mGAzCO,kCAAkB,OAyCP;AAvCpB,iDAAmD;AAoBjD,+FApBO,0BAAc,OAoBP","file":"index.js","sourcesContent":["/* eslint-disable no-duplicate-imports */\n/**\n * @description export all mark modules\n */\nimport { WaterfallSeries } from './waterfall/waterfall';\nimport type { IWaterfallSeriesSpec } from './waterfall/interface';\nimport { BoxPlotSeries } from './box-plot/box-plot';\nimport type { IBoxPlotSeriesSpec } from './box-plot/interface';\nimport { LineSeries } from './line/line';\nimport type { ILineSeriesSpec } from './line/interface';\nimport { BarSeries } from './bar/bar';\nimport { Bar3dSeries } from './bar/bar-3d';\nimport type { IBar3dSeriesSpec, IBarSeriesSpec } from './bar/interface';\nimport { RangeColumnSeries } from './range-column/range-column';\nimport { RangeColumn3dSeries } from './range-column/range-column-3d';\nimport type { IRangeColumn3dSeriesSpec, IRangeColumnSeriesSpec } from './range-column/interface';\nimport { RangeAreaSeries } from './range-area/range-area';\nimport type { IRangeAreaSeriesSpec } from './range-area/interface';\nimport { MapSeries } from './map/map';\nimport type { IMapSeriesSpec } from './map/interface';\nimport { PieSeries } from './pie/pie';\nimport { Pie3dSeries } from './pie/pie-3d';\nimport type { IPie3dSeriesSpec } from './pie/interface';\nimport type { IPieSeriesSpec } from './pie/interface';\nimport { ScatterSeries } from './scatter/scatter';\nimport type { IScatterSeriesSpec } from './scatter/interface';\nimport { RoseSeries } from './rose/rose';\nimport type { IRoseSeriesSpec } from './rose/interface';\nimport { RadarSeries } from './radar/radar';\nimport type { IRadarSeriesSpec } from './radar/interface';\nimport { AreaSeries } from './area/area';\nimport type { IAreaSeriesSpec } from './area/interface';\nimport { DotSeries } from './dot/dot';\nimport type { IDotSeriesSpec } from './dot/interface';\nimport { LinkSeries } from './link/link';\nimport type { ILinkSeriesSpec } from './link/interface';\nimport { CircularProgressSeries } from './progress/circular/circular';\nimport type { ICircularProgressSeriesSpec } from './progress/circular/interface';\nimport { LinearProgressSeries } from './progress/linear/linear';\nimport type { ILinearProgressSeriesSpec } from './progress/linear/interface';\nimport { WordCloudSeries } from './word-cloud/word-cloud';\nimport { WordCloud3dSeries } from './word-cloud/word-cloud-3d';\nimport type { IWordCloud3dSeriesSpec, IWordCloudSeriesSpec } from './word-cloud/interface';\nimport { FunnelSeries } from './funnel/funnel';\nimport { Funnel3dSeries } from './funnel/funnel-3d';\nimport type { IFunnel3dSeriesSpec, IFunnelSeriesSpec } from './funnel/interface';\nimport { SunburstSeries } from './sunburst/sunburst';\nimport type { ISunburstSeriesSpec } from './sunburst/interface';\nimport { CirclePackingSeries } from './circle-packing/circle-packing';\nimport type { ICirclePackingSeriesSpec } from './circle-packing/interface';\nimport { SankeySeries } from './sankey/sankey';\nimport type { ISankeySeriesSpec } from './sankey/interface';\nimport { TreemapSeries } from './treemap/treemap';\nimport type { ITreemapSeriesSpec } from './treemap/interface';\nimport type { IGaugePointerSeriesSpec, IGaugeSeriesSpec } from './gauge';\nimport { GaugePointerSeries, GaugeSeries } from './gauge';\nimport { HeatmapSeries } from './heatmap/heatmap';\nimport type { IHeatmapSeriesSpec } from './heatmap/interface';\nimport { BaseSeries } from './base/base-series';\nimport type { ICartesianSeriesSpec } from './cartesian';\nimport { CartesianSeries } from './cartesian';\nimport { PolarSeries } from './polar/polar';\nimport type { IPolarSeriesSpec } from './polar/interface';\nimport type { IProgressLikeSeriesSpec } from './polar/progress-like';\nimport { ProgressLikeSeries } from './polar/progress-like';\nimport type { IRoseLikeSeriesSpec } from './polar/rose-like';\nimport { RoseLikeSeries } from './polar/rose-like';\n\nimport type { ISeries } from './interface';\n\nexport {\n WaterfallSeries,\n Bar3dSeries,\n BarSeries,\n BoxPlotSeries,\n LineSeries,\n RadarSeries,\n RangeAreaSeries,\n RangeColumn3dSeries,\n RangeColumnSeries,\n MapSeries,\n Pie3dSeries,\n PieSeries,\n SankeySeries,\n ScatterSeries,\n SunburstSeries,\n RoseLikeSeries,\n RoseSeries,\n AreaSeries,\n DotSeries,\n LinearProgressSeries,\n LinkSeries,\n CirclePackingSeries,\n CircularProgressSeries,\n WordCloud3dSeries,\n WordCloudSeries,\n Funnel3dSeries,\n FunnelSeries,\n TreemapSeries as TreemapSeries,\n GaugePointerSeries,\n GaugeSeries,\n HeatmapSeries,\n BaseSeries,\n CartesianSeries,\n PolarSeries,\n ProgressLikeSeries\n};\n\nexport type {\n ISeries,\n IRoseLikeSeriesSpec,\n IAreaSeriesSpec,\n IBar3dSeriesSpec,\n IBarSeriesSpec,\n IBoxPlotSeriesSpec,\n ICartesianSeriesSpec,\n ICirclePackingSeriesSpec,\n ICircularProgressSeriesSpec,\n IDotSeriesSpec,\n IFunnel3dSeriesSpec,\n IFunnelSeriesSpec,\n IGaugePointerSeriesSpec,\n IGaugeSeriesSpec,\n IHeatmapSeriesSpec,\n ILineSeriesSpec,\n ILinearProgressSeriesSpec,\n ILinkSeriesSpec,\n IMapSeriesSpec,\n IPie3dSeriesSpec,\n IPieSeriesSpec,\n IPolarSeriesSpec,\n IProgressLikeSeriesSpec,\n IRadarSeriesSpec,\n IRangeAreaSeriesSpec,\n IRangeColumn3dSeriesSpec,\n IRangeColumnSeriesSpec,\n IRoseSeriesSpec,\n ISankeySeriesSpec,\n IScatterSeriesSpec,\n ISunburstSeriesSpec,\n ITreemapSeriesSpec,\n IWaterfallSeriesSpec,\n IWordCloud3dSeriesSpec,\n IWordCloudSeriesSpec\n};\n"]}
|
|
@@ -35,6 +35,7 @@ export interface ISeriesStackDataNode {
|
|
|
35
35
|
}
|
|
36
36
|
export interface ISeriesStackDataLeaf {
|
|
37
37
|
values: any[];
|
|
38
|
+
total?: number;
|
|
38
39
|
}
|
|
39
40
|
export type ISeriesStackDataMeta = ISeriesStackDataNode | ISeriesStackDataLeaf;
|
|
40
41
|
export type ISeriesStackData = ISeriesStackDataNode;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/interface/common.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"sources":["../src/series/interface/common.ts"],"names":[],"mappings":";;;AAkHA,IAAY,kBAiDX;AAjDD,WAAY,kBAAkB;IAC5B,qCAAe,CAAA;IACf,qCAAe,CAAA;IACf,mCAAa,CAAA;IACb,mCAAa,CAAA;IACb,iCAAW,CAAA;IACX,qCAAe,CAAA;IACf,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,qDAA+B,CAAA;IAC/B,qCAAe,CAAA;IACf,uDAAiC,CAAA;IACjC,mCAAa,CAAA;IACb,iCAAW,CAAA;IACX,qCAAe,CAAA;IACf,2CAAqB,CAAA;IACrB,uCAAiB,CAAA;IACjB,uCAAiB,CAAA;IACjB,2CAAqB,CAAA;IACrB,6CAAuB,CAAA;IACvB,iDAA2B,CAAA;IAC3B,uDAAiC,CAAA;IACjC,+CAAyB,CAAA;IACzB,uDAAiC,CAAA;IACjC,iCAAW,CAAA;IACX,qDAA+B,CAAA;IAC/B,yCAAmB,CAAA;IACnB,yCAAmB,CAAA;IACnB,qCAAe,CAAA;IACf,mCAAa,CAAA;IACb,uDAAiC,CAAA;IACjC,mCAAa,CAAA;IACb,qCAAe,CAAA;IACf,iCAAW,CAAA;IACX,qCAAe,CAAA;IACf,6CAAuB,CAAA;IACvB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,2CAAqB,CAAA;IACrB,mCAAa,CAAA;IACb,mCAAa,CAAA;IACb,2CAAqB,CAAA;IACrB,yCAAmB,CAAA;IACnB,mCAAa,CAAA;IACb,mDAA6B,CAAA;IAC7B,+CAAyB,CAAA;IACzB,+CAAyB,CAAA;IACzB,mCAAa,CAAA;IACb,iDAA2B,CAAA;AAC7B,CAAC,EAjDW,kBAAkB,GAAlB,0BAAkB,KAAlB,0BAAkB,QAiD7B","file":"common.js","sourcesContent":["import type { DataView } from '@visactor/vdataset';\nimport type { IGrammarItem } from '../../compile/interface';\nimport type { IGroupMark } from '../../mark/group';\nimport type { IModelMarkInfo, IModelOption } from '../../model/interface';\nimport type { IRegion } from '../../region/interface';\nimport type { RenderMode } from '../../typings/spec/common';\nimport type { ISeries } from './series';\nimport type { IMarkProgressiveConfig } from '../../mark/interface';\nimport type { StringOrNumber } from '../../typings';\nimport type { ILabelSpec } from '../../component/label';\n\n// export type SeriesStyle = 'color' | 'size' | 'shape';\n\nexport interface ISeriesSeriesInfo {\n key: string;\n index?: number;\n // 样式的值类型可能是 StringOrNumber | number[] | xxxx\n style: (attribute: string) => any;\n /** series 对应的缩略图类型 */\n shapeType: string;\n}\n\nexport interface ISeriesOption extends IModelOption {\n mode: RenderMode;\n region: IRegion;\n getSeriesData: (id: StringOrNumber | undefined, index: number | undefined) => DataView | undefined;\n}\n\nexport interface ISeriesConstructor {\n type: string;\n mark?: SeriesMarkMap;\n new (spec: any, options: ISeriesOption): ISeries;\n}\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface ISeriesInitOption {}\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface ISeriesUpdateDataOption {}\n\nexport interface ISeriesStackDataNode {\n nodes: {\n [key: string]: ISeriesStackDataMeta;\n };\n}\nexport interface ISeriesStackDataLeaf {\n values: any[];\n total?: number;\n}\n\nexport type ISeriesStackDataMeta = ISeriesStackDataNode | ISeriesStackDataLeaf;\nexport type ISeriesStackData = ISeriesStackDataNode;\n\nexport type ISeriesStyle = ISeriesStyleItem[];\nexport type ISeriesStyleItem = {\n name: string;\n} & {\n [markName: string]: {\n style?: any;\n };\n};\n\nexport interface ISeriesMarkInitOption {\n /** theme spec */\n themeSpec?: any;\n\n /** mark spec */\n markSpec?: any;\n\n /** 是否在编译时更新实际数据 */\n skipBeforeLayouted?: boolean;\n\n /** 父级 mark(如果是 undefined 则默认是系列的 root mark,如果是 false 则不配置父级 mark) */\n parent?: IGroupMark | false;\n\n /** 是否是 series field 所作用的 mark(用于 tooltip shape 取色等) */\n isSeriesMark?: boolean;\n\n /** 该 mark 依赖于哪些语法元素 */\n depend?: IGrammarItem | IGrammarItem[];\n\n /** 数据 key 值 */\n key?: string;\n\n /** 分组 key 值 */\n groupKey?: string;\n\n /** morph 配置开关 */\n morph?: boolean;\n\n /** morph元素的唯一key */\n defaultMorphElementKey?: string;\n\n /** 绑定系列数据(如果是 undefined 则默认是系列的 data,如果是 false 则不配置数据) */\n dataView?: DataView | false;\n /** 系列数据编译产物的名称 */\n dataProductId?: string;\n /** mark scale 如果需要使用统计信息设置domain的话,使用的统计数据 */\n dataStatistics?: DataView;\n\n /** 渐进渲染相关配置 */\n progressive?: IMarkProgressiveConfig;\n\n /** 标签spec */\n label?: ILabelSpec;\n\n /** 是否支持 3d */\n support3d?: boolean;\n}\n\nexport interface ISeriesMarkInfo extends IModelMarkInfo {\n /** mark 名称 */\n name: SeriesMarkNameEnum | string;\n}\n\nexport enum SeriesMarkNameEnum {\n label = 'label',\n point = 'point',\n line = 'line',\n area = 'area',\n bar = 'bar',\n bar3d = 'bar3d',\n boxPlot = 'boxPlot',\n outlier = 'outlier',\n circlePacking = 'circlePacking',\n group = 'group',\n gridBackground = 'gridBackground',\n grid = 'grid',\n dot = 'dot',\n title = 'title',\n subTitle = 'subTitle',\n symbol = 'symbol',\n funnel = 'funnel',\n funnel3d = 'funnel3d',\n transform = 'transform',\n transform3d = 'transform3d',\n transformLabel = 'transformLabel',\n outerLabel = 'outerLabel',\n outerLabelLine = 'outerLabelLine',\n pin = 'pin',\n pinBackground = 'pinBackground',\n pointer = 'pointer',\n segment = 'segment',\n track = 'track',\n cell = 'cell',\n cellBackground = 'cellBackground',\n link = 'link',\n arrow = 'arrow',\n pie = 'pie',\n pie3d = 'pie3d',\n labelLine = 'labelLine',\n progress = 'progress',\n minLabel = 'minLabel',\n maxLabel = 'maxLabel',\n rose = 'rose',\n node = 'node',\n sunburst = 'sunburst',\n nonLeaf = 'nonLeaf',\n leaf = 'leaf',\n nonLeafLabel = 'nonLeafLabel',\n leaderLine = 'leaderLine',\n stackLabel = 'stackLabel',\n word = 'word',\n fillingWord = 'fillingWord'\n}\n\nexport type SeriesMarkMap = Partial<Record<SeriesMarkNameEnum, ISeriesMarkInfo>>;\n"]}
|
|
@@ -9,7 +9,7 @@ import type { IBaseScale } from '@visactor/vscale';
|
|
|
9
9
|
import type { Group } from '../base/group';
|
|
10
10
|
import type { IAxisHelper } from '../../component/axis/cartesian/interface';
|
|
11
11
|
import type { IPolarAxisHelper } from '../../component/axis/polar/interface';
|
|
12
|
-
import type { ISeriesSeriesInfo, ISeriesStackData
|
|
12
|
+
import type { ISeriesSeriesInfo, ISeriesStackData } from './common';
|
|
13
13
|
import type { ISeriesTooltipHelper } from './tooltip-helper';
|
|
14
14
|
import type { IInvalidType, Datum, DirectionType } from '../../typings';
|
|
15
15
|
import type { StateValueType } from '../../compile/mark';
|
|
@@ -31,7 +31,7 @@ export interface ISeries extends IModel, ILayoutItem {
|
|
|
31
31
|
getViewDataStatistics?: () => DataView | undefined;
|
|
32
32
|
getDataSet?: () => DataSet;
|
|
33
33
|
getFieldAlias: (field: string) => string;
|
|
34
|
-
updateRawData: (d: any
|
|
34
|
+
updateRawData: (d: any) => void;
|
|
35
35
|
setData?: (dv: DataView) => void;
|
|
36
36
|
rawDataUpdate: (d: DataView) => void;
|
|
37
37
|
viewDataUpdate: (d: DataView) => void;
|
|
@@ -143,6 +143,7 @@ export interface IGeoSeries extends ISeries {
|
|
|
143
143
|
nameField?: string;
|
|
144
144
|
valueField?: string;
|
|
145
145
|
getMapViewData: () => DataView;
|
|
146
|
+
getNameProperty: () => string;
|
|
146
147
|
dataToPosition: (datum: any) => IPoint | null;
|
|
147
148
|
dataToLatitude: (latValue: any) => number | null;
|
|
148
149
|
dataToLongitude: (lonValue: any) => number | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../src/series/interface/series.ts"],"names":[],"mappings":"","file":"series.js","sourcesContent":["import type { ITrigger } from '../../interaction/interface';\nimport type { PanEventParam, ZoomEventParam } from '../../event/interface';\nimport type { IModel, ILayoutItem } from '../../model/interface';\nimport type { DataSet, DataView, ITransformOptions } from '@visactor/vdataset';\nimport type { IMark } from '../../mark/interface';\nimport type { CoordinateType, IPoint, IPolarPoint } from '../../typings/coordinate';\nimport type { IRegion } from '../../region/interface';\nimport type { IBaseScale } from '@visactor/vscale';\nimport type { Group } from '../base/group';\nimport type { IAxisHelper } from '../../component/axis/cartesian/interface';\nimport type { IPolarAxisHelper } from '../../component/axis/polar/interface';\nimport type { ISeriesSeriesInfo, ISeriesStackData, ISeriesUpdateDataOption } from './common';\nimport type { ISeriesTooltipHelper } from './tooltip-helper';\nimport type { IInvalidType, Datum, DirectionType
|
|
1
|
+
{"version":3,"sources":["../src/series/interface/series.ts"],"names":[],"mappings":"","file":"series.js","sourcesContent":["import type { ITrigger } from '../../interaction/interface';\nimport type { PanEventParam, ZoomEventParam } from '../../event/interface';\nimport type { IModel, ILayoutItem } from '../../model/interface';\nimport type { DataSet, DataView, ITransformOptions } from '@visactor/vdataset';\nimport type { IMark } from '../../mark/interface';\nimport type { CoordinateType, IPoint, IPolarPoint } from '../../typings/coordinate';\nimport type { IRegion } from '../../region/interface';\nimport type { IBaseScale } from '@visactor/vscale';\nimport type { Group } from '../base/group';\nimport type { IAxisHelper } from '../../component/axis/cartesian/interface';\nimport type { IPolarAxisHelper } from '../../component/axis/polar/interface';\nimport type { ISeriesSeriesInfo, ISeriesStackData, ISeriesUpdateDataOption } from './common';\nimport type { ISeriesTooltipHelper } from './tooltip-helper';\nimport type { IInvalidType, Datum, DirectionType } from '../../typings';\nimport type { StateValueType } from '../../compile/mark';\nimport type { StatisticOperations } from '../../data/transforms/dimension-statistics';\nimport type { IGroupMark } from '../../mark/group';\nimport type { ITextMark } from '../../mark/text';\nimport type { IArcLabelSpec } from '../pie/interface';\nimport type { IGeoCoordinateHelper } from '../../component/geo/interface';\n\n// 使用类型约束系列支持的样式,但是感觉这样不合理 不使用这样的方式去做\n// export interface ISeries<A extends string> extends IModel\n\nexport interface ISeries extends IModel, ILayoutItem {\n readonly type: string;\n readonly name?: string;\n\n // 配置\n getSpec: () => any;\n\n // 坐标系信息\n readonly coordinate: CoordinateType;\n\n // 数据\n getRawData: () => DataView | undefined;\n getViewDataFilter: () => DataView | undefined;\n getViewData: () => DataView | undefined;\n getViewDataProductId: () => string | undefined;\n getRawDataStatistics?: () => DataView | undefined;\n getViewDataStatistics?: () => DataView | undefined;\n getDataSet?: () => DataSet;\n getFieldAlias: (field: string) => string;\n // 更新原始数据\n updateRawData: (d: any) => void;\n setData?: (dv: DataView) => void;\n rawDataUpdate: (d: DataView) => void;\n viewDataUpdate: (d: DataView) => void;\n viewDataStatisticsUpdate: (d: DataView) => void;\n addViewDataFilter: (option: ITransformOptions) => void;\n reFilterViewData: () => void;\n reTransformViewData: () => void;\n fillData: () => void;\n\n /**\n * 常见数据使用问题\n *\n * 一、使用图表最终展示数据\n * 比如 markline,数值轴 这样的组件\n * 需要操作展示数据,做 筛选 | 变换 的\n * 比如图例,datazoom\n series.getViewData().transform({},false)\n * 需要获取展示数据,生成自身数据做自身展示的 使用消息机制。比如 轴\n series.event.on('viewDataStatisticsUpdate' | 'viewDataUpdate', { filter: ({ model }) => model?.id === series.id }, () => {\n this.updateData();\n });\n *\n * 二、使用图表原始数据\n * 比如图例,datazoom\n * 需要使用原始数据信息,生成自身数据\n * 比如图例,datazoom\n series.getRawData().parserData | latestData // parserData latestData 区别见下面说明\n series.getRawDataStatistics().latestData\n\n series.event.on('rawDataUpdate', { filter: ({ model }) => model?.id === series.id }, () => {\n this.updateData();\n });\n * 或者使用系列自身的特殊api 特殊情况外不建议这样用\n series.getSeriesInfoList()\n\n * 建议:使用数据时需要注意数据更新,使用系列数据更新组件数据的场景,只建议使用消息监听\n series.event.on(\n 'viewDataStatisticsUpdate' |\n 'viewDataUpdate' |\n 'rawDataUpdate',\n { filter: ({ model }) => model?.id === series.id })\n */\n\n // 区域\n getRegion: () => IRegion;\n\n // mark\n initMark: () => void;\n getMarks: () => IMark[];\n getMarksWithoutRoot: () => IMark[];\n getMarkNameMap: () => Record<string, IMark>;\n getMarksInType: (type: string | string[]) => IMark[];\n getMarkInName: (name: string) => IMark | undefined;\n getMarkInId: (id: number) => IMark | undefined;\n\n getRootMark: () => IGroupMark;\n\n // tooltip\n tooltipHelper: ISeriesTooltipHelper;\n\n // example\n /**\n * [\n * {\n * fields: {\n * x: '周一',\n * __VChart_STACK: 'stack'\n * },\n * valueField: 'y',\n * values: [{x: '周一', y: 20}];\n * },\n * {\n * fields: {\n * x: '周一',\n * stack: 'stackA'\n * },\n * valueField: 'y',\n * values: [{x: '周一', y: 20, stack: 'stackA'}];\n * },\n * {\n * fields: {\n * x: '周一',\n * stack: 'stackB'\n * },\n * valueField: 'y',\n * values: [{x: '周一', y: 20, stack: 'stackB'}];\n * },\n * ]\n */\n getStackData: () => ISeriesStackData;\n\n getStack: () => boolean;\n\n getStackValueField: () => string;\n setValueFieldToStack: () => void;\n setValueFieldToPercent: () => void;\n setValueFieldToStackOffsetSilhouette: () => void;\n\n getStackGroupFields: () => string[];\n getSeriesField: () => string | undefined;\n getSeriesKeys: () => string[];\n getSeriesStyle: (datum: Datum) => ISeriesSeriesInfo['style'];\n getSeriesInfoInField: (field: string) => ISeriesSeriesInfo[];\n getSeriesInfoList: () => ISeriesSeriesInfo[];\n getGroups: () => Group | undefined;\n getDimensionField: () => string[];\n getMeasureField: () => string[];\n getStatisticFields: () => { key: string; operations: StatisticOperations }[];\n\n setSeriesField: (field: string) => void;\n handleZoom?: (e: ZoomEventParam) => void;\n handlePan?: (e: PanEventParam) => void;\n\n // 数据映射\n dataToPosition: (datum: Datum) => IPoint | null;\n dataToPositionX: (datum: Datum) => number | null;\n dataToPositionY: (datum: Datum) => number | null;\n dataToPositionZ?: (datum: Datum) => number | null;\n valueToPosition: (value1: any, value2?: any) => IPoint;\n\n getColorAttribute: () => { scale: IBaseScale; field: string };\n getDefaultColorDomain: () => any[];\n\n getInvalidType: () => IInvalidType;\n\n // 交互\n getTrigger: () => ITrigger;\n\n /**\n * 获取系列默认的缩略图形\n * @returns 默认的缩略图形\n */\n getDefaultShapeType: () => string;\n /** 获取系列标签配置 */\n initLabelMarkStyle?: (textMark: ITextMark) => void;\n}\n\nexport interface ICartesianSeries extends ISeries {\n readonly coordinate: 'cartesian';\n readonly direction: DirectionType;\n\n scaleX: IBaseScale;\n setScaleX: (s: IBaseScale) => void;\n scaleY: IBaseScale;\n setScaleY: (s: IBaseScale) => void;\n scaleZ?: IBaseScale;\n setScaleZ: (s: IBaseScale) => void;\n // 要考虑基于多个field的场景\n fieldX: string[];\n setFieldX: (field: string | string[], level?: number) => void;\n fieldX2: string;\n setFieldX2: (field: string) => void;\n fieldY: string[];\n setFieldY: (field: string | string[], level?: number) => void;\n fieldY2: string;\n setFieldY2: (field: string) => void;\n fieldZ?: string[];\n setFieldZ: (field: string | string[], level?: number) => void;\n\n positionToData: (p: IPoint) => any | null;\n positionToDataX: (xPos: number) => any | null;\n positionToDataY: (yPos: number) => any | null;\n\n // 轴API\n getXAxisHelper: () => IAxisHelper;\n setXAxisHelper: (h: IAxisHelper) => void;\n getYAxisHelper: () => IAxisHelper;\n setYAxisHelper: (h: IAxisHelper) => void;\n getZAxisHelper: () => IAxisHelper | undefined;\n setZAxisHelper: (h: IAxisHelper) => void;\n\n dataToPositionX1: (datum: Datum) => number | null;\n dataToPositionY1: (datum: Datum) => number | null;\n\n valueToPosition: (value1: any, value2: any) => IPoint;\n}\n\nexport interface IPolarSeries extends ISeries {\n readonly coordinate: 'polar';\n\n outerRadius: number;\n innerRadius: number;\n\n getRadiusField: () => string[];\n setRadiusField: (field: string | string[], level?: number) => void;\n getAngleField: () => string[];\n setAngleField: (field: string | string[], level?: number) => void;\n\n // 轴将是一个实现了 scale 的组件。这里接收的可以是一个轴\n radiusScale: IBaseScale;\n setRadiusScale: (s: IBaseScale) => void;\n angleScale: IBaseScale;\n setAngleScale: (s: IBaseScale) => void;\n\n // TODO:\n positionToData: (point: IPolarPoint) => any;\n radiusToData: (radius: number) => any;\n angleToData: (angle: number) => any;\n\n // 轴\n radiusAxisHelper: IPolarAxisHelper;\n angleAxisHelper: IPolarAxisHelper;\n\n valueToPosition: (value1: any, value2: any) => IPoint;\n}\n\nexport interface IGeoSeries extends ISeries {\n readonly coordinate: 'geo';\n\n nameField?: string;\n valueField?: string;\n\n getMapViewData: () => DataView;\n getNameProperty: () => string;\n\n dataToPosition: (datum: any) => IPoint | null;\n dataToLatitude: (latValue: any) => number | null;\n dataToLongitude: (lonValue: any) => number | null;\n\n positionToData: (p: IPoint) => any;\n latitudeToData: (lat: number) => any;\n longitudeToData: (lon: number) => any;\n\n getCoordinateHelper: () => IGeoCoordinateHelper;\n setCoordinateHelper: (helper: IGeoCoordinateHelper) => void;\n\n valueToPosition: (value1: any, value2: any) => IPoint;\n}\n\n// 收拢扇区标签形式依赖的 api\nexport interface IArcSeries extends IPolarSeries {\n center: (() => IPoint) | IPoint;\n getRadius: (state?: StateValueType) => number;\n getInnerRadius: (state?: StateValueType) => number;\n getLabelConfig: () => IArcLabelSpec;\n\n computeRadius: (r: number, k?: number) => number;\n computeDatumRadius: (datum: any, state?: StateValueType) => number;\n}\n\nexport interface IFunnelSeries extends ISeries {\n getPoints: (datum: any) => IPoint[];\n getCategoryField: () => string;\n\n valueToPosition: (value: any) => IPoint;\n}\n"]}
|
|
@@ -12,7 +12,6 @@ import type { ICircularProgressSeriesTheme } from '../progress/circular/interfac
|
|
|
12
12
|
import type { ILinkSeriesTheme } from '../link/interface';
|
|
13
13
|
import type { IDotSeriesTheme } from '../dot/interface';
|
|
14
14
|
import type { IWordCloud3dSeriesTheme, IWordCloudSeriesTheme } from '../word-cloud/interface';
|
|
15
|
-
import type { SeriesTypeEnum } from './type';
|
|
16
15
|
import type { IFunnel3dSeriesTheme, IFunnelSeriesTheme } from '../funnel/interface';
|
|
17
16
|
import type { ILinearProgressSeriesTheme } from '../progress/linear/interface';
|
|
18
17
|
import type { IGaugePointerSeriesTheme, IGaugeSeriesTheme } from '../gauge';
|
|
@@ -22,6 +21,8 @@ import type { ISunburstSeriesTheme } from '../sunburst/interface';
|
|
|
22
21
|
import type { IRangeColumnSeriesTheme } from '../range-column/interface';
|
|
23
22
|
import type { ICirclePackingSeriesTheme } from '../circle-packing/interface';
|
|
24
23
|
import type { IHeatmapSeriesTheme } from '../heatmap/interface';
|
|
24
|
+
import { SeriesTypeEnum } from './type';
|
|
25
|
+
import type { SeriesMarkMap } from './common';
|
|
25
26
|
export interface ISeriesTheme {
|
|
26
27
|
[SeriesTypeEnum.bar]?: IBarSeriesTheme;
|
|
27
28
|
[SeriesTypeEnum.bar3d]?: IBar3dSeriesTheme;
|
|
@@ -40,7 +41,6 @@ export interface ISeriesTheme {
|
|
|
40
41
|
[SeriesTypeEnum.wordCloud3d]?: IWordCloud3dSeriesTheme;
|
|
41
42
|
[SeriesTypeEnum.funnel]?: IFunnelSeriesTheme;
|
|
42
43
|
[SeriesTypeEnum.funnel3d]?: IFunnel3dSeriesTheme;
|
|
43
|
-
[SeriesTypeEnum.wordCloud]?: IWordCloudSeriesTheme;
|
|
44
44
|
[SeriesTypeEnum.linearProgress]?: ILinearProgressSeriesTheme;
|
|
45
45
|
[SeriesTypeEnum.waterfall]?: IWaterfallSeriesTheme;
|
|
46
46
|
[SeriesTypeEnum.boxPlot]?: IBoxPlotSeriesTheme;
|
|
@@ -53,3 +53,4 @@ export interface ISeriesTheme {
|
|
|
53
53
|
[SeriesTypeEnum.circlePacking]?: ICirclePackingSeriesTheme;
|
|
54
54
|
[SeriesTypeEnum.heatmap]?: IHeatmapSeriesTheme;
|
|
55
55
|
}
|
|
56
|
+
export declare const seriesMarkInfoMap: Record<keyof ISeriesTheme, SeriesMarkMap>;
|
|
@@ -2,5 +2,38 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: !0
|
|
5
|
-
});
|
|
5
|
+
}), exports.seriesMarkInfoMap = void 0;
|
|
6
|
+
|
|
7
|
+
const type_1 = require("./type"), constant_1 = require("../bar/constant"), constant_2 = require("../line/constant"), constant_3 = require("../scatter/constant"), constant_4 = require("../area/constant"), constant_5 = require("../radar/constant"), constant_6 = require("../pie/constant"), constant_7 = require("../rose/constant"), constant_8 = require("../map/constant"), constant_9 = require("../progress/circular/constant"), constant_10 = require("../link/constant"), constant_11 = require("../dot/constant"), constant_12 = require("../word-cloud/constant"), constant_13 = require("../funnel/constant"), constant_14 = require("../progress/linear/constant"), constant_15 = require("../waterfall/constant"), constant_16 = require("../box-plot/constant"), constant_17 = require("../treemap/constant"), constant_18 = require("../sankey/constant"), constant_19 = require("../gauge/constant"), constant_20 = require("../sunburst/constant"), constant_21 = require("../range-column/constant"), constant_22 = require("../circle-packing/constant"), constant_23 = require("../heatmap/constant");
|
|
8
|
+
|
|
9
|
+
exports.seriesMarkInfoMap = {
|
|
10
|
+
[type_1.SeriesTypeEnum.bar]: constant_1.barSeriesMark,
|
|
11
|
+
[type_1.SeriesTypeEnum.bar3d]: constant_1.bar3dSeriesMark,
|
|
12
|
+
[type_1.SeriesTypeEnum.line]: constant_2.lineSeriesMark,
|
|
13
|
+
[type_1.SeriesTypeEnum.scatter]: constant_3.scatterSeriesMark,
|
|
14
|
+
[type_1.SeriesTypeEnum.area]: constant_4.areaSeriesMark,
|
|
15
|
+
[type_1.SeriesTypeEnum.radar]: constant_5.radarSeriesMark,
|
|
16
|
+
[type_1.SeriesTypeEnum.pie]: constant_6.pieSeriesMark,
|
|
17
|
+
[type_1.SeriesTypeEnum.pie3d]: constant_6.pie3dSeriesMark,
|
|
18
|
+
[type_1.SeriesTypeEnum.rose]: constant_7.roseSeriesMark,
|
|
19
|
+
[type_1.SeriesTypeEnum.map]: constant_8.mapSeriesMark,
|
|
20
|
+
[type_1.SeriesTypeEnum.circularProgress]: constant_9.circularProgressSeriesMark,
|
|
21
|
+
[type_1.SeriesTypeEnum.link]: constant_10.linkSeriesMark,
|
|
22
|
+
[type_1.SeriesTypeEnum.dot]: constant_11.dotSeriesMark,
|
|
23
|
+
[type_1.SeriesTypeEnum.wordCloud]: constant_12.wordCloudSeriesMark,
|
|
24
|
+
[type_1.SeriesTypeEnum.wordCloud3d]: constant_12.wordCloudSeriesMark,
|
|
25
|
+
[type_1.SeriesTypeEnum.funnel]: constant_13.funnelSeriesMark,
|
|
26
|
+
[type_1.SeriesTypeEnum.funnel3d]: constant_13.funnel3dSeriesMark,
|
|
27
|
+
[type_1.SeriesTypeEnum.linearProgress]: constant_14.linearProgressSeriesMark,
|
|
28
|
+
[type_1.SeriesTypeEnum.waterfall]: constant_15.waterfallSeriesMark,
|
|
29
|
+
[type_1.SeriesTypeEnum.boxPlot]: constant_16.boxPlotSeriesMark,
|
|
30
|
+
[type_1.SeriesTypeEnum.treemap]: constant_17.treemapSeriesMark,
|
|
31
|
+
[type_1.SeriesTypeEnum.sankey]: constant_18.sankeySeriesMark,
|
|
32
|
+
[type_1.SeriesTypeEnum.gauge]: constant_19.gaugeSeriesMark,
|
|
33
|
+
[type_1.SeriesTypeEnum.gaugePointer]: constant_19.gaugePointerSeriesMark,
|
|
34
|
+
[type_1.SeriesTypeEnum.sunburst]: constant_20.sunburstSeriesMark,
|
|
35
|
+
[type_1.SeriesTypeEnum.rangeColumn]: constant_21.rangeColumnSeriesMark,
|
|
36
|
+
[type_1.SeriesTypeEnum.circlePacking]: constant_22.circlePackingSeriesMark,
|
|
37
|
+
[type_1.SeriesTypeEnum.heatmap]: constant_23.heatmapSeriesMark
|
|
38
|
+
};
|
|
6
39
|
//# sourceMappingURL=theme.js.map
|