@visactor/vchart 1.8.10-alpha.0 → 1.8.10
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 +1 -1
- package/build/index.js +989 -782
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/animation/utils.js +6 -1
- package/cjs/animation/utils.js.map +1 -1
- package/cjs/chart/area/area.js +3 -4
- package/cjs/chart/area/area.js.map +1 -1
- package/cjs/chart/bar/3d/bar-3d.js +3 -3
- package/cjs/chart/bar/3d/bar-3d.js.map +1 -1
- package/cjs/chart/bar/bar.js +3 -4
- package/cjs/chart/bar/bar.js.map +1 -1
- package/cjs/chart/base/base-chart.js +4 -4
- package/cjs/chart/base/base-chart.js.map +1 -1
- package/cjs/chart/box-plot/box-plot-transformer.js +3 -3
- package/cjs/chart/box-plot/box-plot-transformer.js.map +1 -1
- package/cjs/chart/box-plot/box-plot.js +4 -5
- package/cjs/chart/box-plot/box-plot.js.map +1 -1
- package/cjs/chart/circle-packing/circle-packing.js +3 -3
- package/cjs/chart/circle-packing/circle-packing.js.map +1 -1
- package/cjs/chart/common/common.js +4 -4
- package/cjs/chart/common/common.js.map +1 -1
- package/cjs/chart/correlation/correlation.js +4 -4
- package/cjs/chart/correlation/correlation.js.map +1 -1
- package/cjs/chart/funnel/3d/funnel-3d.js +4 -5
- package/cjs/chart/funnel/3d/funnel-3d.js.map +1 -1
- package/cjs/chart/funnel/funnel.js +4 -5
- package/cjs/chart/funnel/funnel.js.map +1 -1
- package/cjs/chart/gauge/gauge.js +3 -3
- package/cjs/chart/gauge/gauge.js.map +1 -1
- package/cjs/chart/heatmap/heatmap.js +4 -5
- package/cjs/chart/heatmap/heatmap.js.map +1 -1
- package/cjs/chart/histogram/3d/histogram-3d.js +3 -3
- package/cjs/chart/histogram/3d/histogram-3d.js.map +1 -1
- package/cjs/chart/histogram/histogram.js +4 -5
- package/cjs/chart/histogram/histogram.js.map +1 -1
- package/cjs/chart/interface/type.d.ts +1 -1
- package/cjs/chart/interface/type.js.map +1 -1
- package/cjs/chart/line/line.js +3 -4
- package/cjs/chart/line/line.js.map +1 -1
- package/cjs/chart/map/map.js +3 -3
- package/cjs/chart/map/map.js.map +1 -1
- package/cjs/chart/pie/3d/pie-3d.js +3 -3
- package/cjs/chart/pie/3d/pie-3d.js.map +1 -1
- package/cjs/chart/pie/pie.js +3 -3
- package/cjs/chart/pie/pie.js.map +1 -1
- package/cjs/chart/polar/polar-transformer.js +2 -2
- package/cjs/chart/polar/polar-transformer.js.map +1 -1
- package/cjs/chart/progress/circular/circular.js +3 -3
- package/cjs/chart/progress/circular/circular.js.map +1 -1
- package/cjs/chart/progress/linear/linear.js +3 -3
- package/cjs/chart/progress/linear/linear.js.map +1 -1
- package/cjs/chart/radar/radar.js +3 -4
- package/cjs/chart/radar/radar.js.map +1 -1
- package/cjs/chart/range-area/range-area-transformer.js +2 -2
- package/cjs/chart/range-area/range-area-transformer.js.map +1 -1
- package/cjs/chart/range-area/range-area.js +4 -5
- package/cjs/chart/range-area/range-area.js.map +1 -1
- package/cjs/chart/range-column/3d/range-column-3d-transformer.js +2 -2
- package/cjs/chart/range-column/3d/range-column-3d-transformer.js.map +1 -1
- package/cjs/chart/range-column/3d/range-column-3d.js +4 -4
- package/cjs/chart/range-column/3d/range-column-3d.js.map +1 -1
- package/cjs/chart/range-column/range-column-transformer.js +2 -2
- package/cjs/chart/range-column/range-column-transformer.js.map +1 -1
- package/cjs/chart/range-column/range-column.js +4 -4
- package/cjs/chart/range-column/range-column.js.map +1 -1
- package/cjs/chart/rose/rose.js +3 -4
- package/cjs/chart/rose/rose.js.map +1 -1
- package/cjs/chart/sankey/sankey.js +4 -5
- package/cjs/chart/sankey/sankey.js.map +1 -1
- package/cjs/chart/scatter/scatter.js +4 -6
- package/cjs/chart/scatter/scatter.js.map +1 -1
- package/cjs/chart/sequence/sequence-transformer.js +3 -3
- package/cjs/chart/sequence/sequence-transformer.js.map +1 -1
- package/cjs/chart/sequence/sequence.js +4 -4
- package/cjs/chart/sequence/sequence.js.map +1 -1
- package/cjs/chart/sunburst/sunburst.js +4 -5
- package/cjs/chart/sunburst/sunburst.js.map +1 -1
- package/cjs/chart/treemap/treemap.js +4 -5
- package/cjs/chart/treemap/treemap.js.map +1 -1
- package/cjs/chart/util.js +2 -2
- package/cjs/chart/util.js.map +1 -1
- package/cjs/chart/waterfall/waterfall.js +4 -5
- package/cjs/chart/waterfall/waterfall.js.map +1 -1
- package/cjs/chart/word-cloud/3d/word-cloud-3d.js +3 -3
- package/cjs/chart/word-cloud/3d/word-cloud-3d.js.map +1 -1
- package/cjs/chart/word-cloud/base/base.js +2 -2
- package/cjs/chart/word-cloud/base/base.js.map +1 -1
- package/cjs/chart/word-cloud/word-cloud.js +4 -5
- package/cjs/chart/word-cloud/word-cloud.js.map +1 -1
- package/cjs/compile/grammar-item.js +2 -1
- package/cjs/compile/interface/compiler.d.ts +2 -0
- package/cjs/compile/interface/compiler.js.map +1 -1
- package/cjs/compile/mark/interface.d.ts +0 -9
- package/cjs/compile/mark/interface.js +3 -10
- package/cjs/compile/mark/interface.js.map +1 -1
- package/cjs/component/axis/cartesian/axis.js +19 -12
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/component/axis/cartesian/util/common.js +3 -3
- package/cjs/component/axis/cartesian/util/common.js.map +1 -1
- package/cjs/component/axis/mixin/band-axis-mixin.js +1 -0
- package/cjs/component/axis/mixin/band-axis-mixin.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.js +19 -11
- package/cjs/component/axis/polar/axis.js.map +1 -1
- package/cjs/component/crosshair/cartesian.js +8 -8
- package/cjs/component/crosshair/cartesian.js.map +1 -1
- package/cjs/component/crosshair/config.d.ts +1 -1
- package/cjs/component/crosshair/config.js.map +1 -1
- package/cjs/component/crosshair/polar.js +9 -9
- package/cjs/component/crosshair/polar.js.map +1 -1
- package/cjs/component/data-zoom/constant.d.ts +1 -1
- package/cjs/component/data-zoom/constant.js.map +1 -1
- package/cjs/component/data-zoom/data-filter-base-component.js +8 -8
- package/cjs/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.js +3 -3
- package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js +3 -3
- package/cjs/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/cjs/component/data-zoom/util.js +2 -3
- package/cjs/component/data-zoom/util.js.map +1 -1
- package/cjs/component/label/label.js +4 -4
- package/cjs/component/label/label.js.map +1 -1
- package/cjs/component/label/total-label.js +4 -4
- package/cjs/component/label/total-label.js.map +1 -1
- package/cjs/component/label/util.js +4 -4
- package/cjs/component/label/util.js.map +1 -1
- package/cjs/component/legend/base-legend.d.ts +1 -1
- package/cjs/component/legend/util.d.ts +2 -2
- package/cjs/component/marker/base-marker.d.ts +5 -1
- package/cjs/component/marker/base-marker.js.map +1 -1
- package/cjs/component/marker/mark-area/mark-area.js +7 -3
- package/cjs/component/marker/mark-area/mark-area.js.map +1 -1
- package/cjs/component/marker/mark-line/mark-line.js +6 -2
- package/cjs/component/marker/mark-line/mark-line.js.map +1 -1
- package/cjs/component/marker/mark-point/mark-point.js +6 -2
- package/cjs/component/marker/mark-point/mark-point.js.map +1 -1
- package/cjs/component/marker/utils.js +2 -2
- package/cjs/component/marker/utils.js.map +1 -1
- package/cjs/component/tooltip/handler/base.js +15 -15
- package/cjs/component/tooltip/handler/base.js.map +1 -1
- package/cjs/component/tooltip/handler/dom/model/shape-model.js +15 -10
- package/cjs/component/tooltip/handler/dom/model/shape-model.js.map +1 -1
- package/cjs/component/tooltip/handler/utils/position.js +14 -14
- package/cjs/component/tooltip/handler/utils/position.js.map +1 -1
- package/cjs/component/util.js +1 -2
- package/cjs/core/factory.js +2 -3
- package/cjs/core/factory.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/data/transforms/marker-filter.d.ts +5 -0
- package/cjs/data/transforms/marker-filter.js +17 -0
- package/cjs/data/transforms/marker-filter.js.map +1 -0
- package/cjs/event/event-dispatcher.js +2 -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/index.js +1 -2
- package/cjs/interaction/drill/drillable.d.ts +1 -1
- package/cjs/interaction/drill/drillable.js +2 -2
- package/cjs/interaction/drill/drillable.js.map +1 -1
- package/cjs/interaction/zoom/zoomable.d.ts +1 -1
- package/cjs/interaction/zoom/zoomable.js +10 -10
- package/cjs/interaction/zoom/zoomable.js.map +1 -1
- package/cjs/layout/interface.d.ts +2 -0
- package/cjs/layout/interface.js.map +1 -1
- package/cjs/layout/layout-item.d.ts +2 -1
- package/cjs/layout/layout-item.js +2 -1
- package/cjs/layout/layout-item.js.map +1 -1
- package/cjs/layout/util.js +91 -77
- package/cjs/layout/util.js.map +1 -1
- package/cjs/mark/arc-3d.js +2 -2
- package/cjs/mark/arc-3d.js.map +1 -1
- package/cjs/mark/arc.js +2 -2
- package/cjs/mark/arc.js.map +1 -1
- package/cjs/mark/area.js +2 -2
- package/cjs/mark/area.js.map +1 -1
- package/cjs/mark/box-plot.js +2 -2
- package/cjs/mark/box-plot.js.map +1 -1
- package/cjs/mark/cell.js +2 -2
- package/cjs/mark/cell.js.map +1 -1
- package/cjs/mark/component.js +2 -2
- package/cjs/mark/component.js.map +1 -1
- package/cjs/mark/group.js +2 -2
- package/cjs/mark/group.js.map +1 -1
- package/cjs/mark/image.js +2 -2
- package/cjs/mark/image.js.map +1 -1
- package/cjs/mark/interface/type.d.ts +1 -1
- package/cjs/mark/interface/type.js.map +1 -1
- package/cjs/mark/label.js +2 -2
- package/cjs/mark/label.js.map +1 -1
- package/cjs/mark/line.js +2 -2
- package/cjs/mark/line.js.map +1 -1
- package/cjs/mark/link-path.js +2 -2
- package/cjs/mark/link-path.js.map +1 -1
- package/cjs/mark/path.js +2 -2
- package/cjs/mark/path.js.map +1 -1
- package/cjs/mark/polygon/polygon.js +2 -2
- package/cjs/mark/polygon/polygon.js.map +1 -1
- package/cjs/mark/polygon/pyramid-3d.js +2 -2
- package/cjs/mark/polygon/pyramid-3d.js.map +1 -1
- package/cjs/mark/progress-arc.js +2 -3
- package/cjs/mark/progress-arc.js.map +1 -1
- package/cjs/mark/rect-3d.js +2 -2
- package/cjs/mark/rect-3d.js.map +1 -1
- package/cjs/mark/rect.js +2 -2
- package/cjs/mark/rect.js.map +1 -1
- package/cjs/mark/ripple.js +2 -2
- package/cjs/mark/ripple.js.map +1 -1
- package/cjs/mark/rule.js +2 -2
- package/cjs/mark/rule.js.map +1 -1
- package/cjs/mark/symbol.js +3 -3
- package/cjs/mark/symbol.js.map +1 -1
- package/cjs/mark/text.js +2 -2
- package/cjs/mark/text.js.map +1 -1
- package/cjs/mark/utils/common.js +3 -7
- package/cjs/mark/utils/common.js.map +1 -1
- package/cjs/region/region.js +6 -6
- package/cjs/region/region.js.map +1 -1
- package/cjs/series/area/animation.js +3 -3
- package/cjs/series/area/animation.js.map +1 -1
- package/cjs/series/area/area-transformer.js +3 -3
- package/cjs/series/area/area-transformer.js.map +1 -1
- package/cjs/series/area/area.js +6 -6
- package/cjs/series/area/area.js.map +1 -1
- package/cjs/series/area/constant.js +4 -4
- package/cjs/series/area/constant.js.map +1 -1
- package/cjs/series/bar/animation.js +3 -3
- package/cjs/series/bar/animation.js.map +1 -1
- package/cjs/series/bar/bar-3d.js +4 -4
- package/cjs/series/bar/bar-3d.js.map +1 -1
- package/cjs/series/bar/bar-transformer.js +2 -2
- package/cjs/series/bar/bar-transformer.js.map +1 -1
- package/cjs/series/bar/bar.js +15 -15
- package/cjs/series/bar/bar.js.map +1 -1
- package/cjs/series/bar/constant.js +10 -10
- package/cjs/series/bar/constant.js.map +1 -1
- package/cjs/series/base/base-series.js +9 -5
- package/cjs/series/base/base-series.js.map +1 -1
- package/cjs/series/base/constant.js +4 -4
- package/cjs/series/base/constant.js.map +1 -1
- package/cjs/series/box-plot/box-plot.js +7 -7
- package/cjs/series/box-plot/box-plot.js.map +1 -1
- package/cjs/series/box-plot/constant.js +7 -7
- package/cjs/series/box-plot/constant.js.map +1 -1
- package/cjs/series/cartesian/cartesian.js +9 -10
- package/cjs/series/cartesian/cartesian.js.map +1 -1
- package/cjs/series/circle-packing/circle-packing.js +3 -3
- package/cjs/series/circle-packing/circle-packing.js.map +1 -1
- package/cjs/series/circle-packing/constant.js +4 -4
- package/cjs/series/circle-packing/constant.js.map +1 -1
- package/cjs/series/correlation/constant.js +13 -13
- package/cjs/series/correlation/constant.js.map +1 -1
- package/cjs/series/correlation/correlation-transformer.js +2 -2
- package/cjs/series/correlation/correlation-transformer.js.map +1 -1
- package/cjs/series/correlation/correlation.js +1 -1
- package/cjs/series/correlation/correlation.js.map +1 -1
- package/cjs/series/dot/constant.js +22 -22
- package/cjs/series/dot/constant.js.map +1 -1
- package/cjs/series/dot/dot.js +4 -4
- package/cjs/series/dot/dot.js.map +1 -1
- package/cjs/series/funnel/3d/funnel-3d-transformer.js +2 -2
- package/cjs/series/funnel/3d/funnel-3d-transformer.js.map +1 -1
- package/cjs/series/funnel/3d/funnel-3d.js +5 -5
- package/cjs/series/funnel/3d/funnel-3d.js.map +1 -1
- package/cjs/series/funnel/constant.js +31 -31
- package/cjs/series/funnel/constant.js.map +1 -1
- package/cjs/series/funnel/funnel-transformer.js +2 -2
- package/cjs/series/funnel/funnel-transformer.js.map +1 -1
- package/cjs/series/funnel/funnel.js +7 -7
- package/cjs/series/funnel/funnel.js.map +1 -1
- package/cjs/series/funnel/tooltip-helper.js +4 -4
- package/cjs/series/funnel/tooltip-helper.js.map +1 -1
- package/cjs/series/gauge/constant.js +16 -16
- package/cjs/series/gauge/constant.js.map +1 -1
- package/cjs/series/gauge/gauge-pointer.js +6 -6
- package/cjs/series/gauge/gauge-pointer.js.map +1 -1
- package/cjs/series/gauge/gauge-transformer.js +2 -2
- package/cjs/series/gauge/gauge-transformer.js.map +1 -1
- package/cjs/series/gauge/gauge.js +1 -1
- package/cjs/series/gauge/gauge.js.map +1 -1
- package/cjs/series/heatmap/constant.js +7 -7
- package/cjs/series/heatmap/constant.js.map +1 -1
- package/cjs/series/heatmap/heatmap-transformer.js +2 -2
- package/cjs/series/heatmap/heatmap-transformer.js.map +1 -1
- package/cjs/series/heatmap/heatmap.js +1 -1
- package/cjs/series/heatmap/heatmap.js.map +1 -1
- package/cjs/series/interface/type.d.ts +1 -2
- package/cjs/series/interface/type.js +2 -4
- package/cjs/series/interface/type.js.map +1 -1
- package/cjs/series/line/animation.js +3 -3
- package/cjs/series/line/animation.js.map +1 -1
- package/cjs/series/line/line.js +2 -2
- package/cjs/series/line/line.js.map +1 -1
- package/cjs/series/link/constant.js +10 -10
- package/cjs/series/link/constant.js.map +1 -1
- package/cjs/series/link/link.js +2 -2
- package/cjs/series/link/link.js.map +1 -1
- package/cjs/series/map/constant.js +4 -4
- package/cjs/series/map/constant.js.map +1 -1
- package/cjs/series/map/map-transformer.js +2 -2
- package/cjs/series/map/map-transformer.js.map +1 -1
- package/cjs/series/map/map.js +1 -1
- package/cjs/series/map/map.js.map +1 -1
- package/cjs/series/mixin/constant.js +7 -11
- package/cjs/series/mixin/constant.js.map +1 -1
- package/cjs/series/mixin/line-mixin-transformer.js +3 -3
- package/cjs/series/mixin/line-mixin-transformer.js.map +1 -1
- package/cjs/series/mixin/line-mixin.js +6 -6
- package/cjs/series/mixin/line-mixin.js.map +1 -1
- package/cjs/series/pie/3d/pie-3d-transformer.js +2 -2
- package/cjs/series/pie/3d/pie-3d-transformer.js.map +1 -1
- package/cjs/series/pie/3d/pie-3d.js +4 -4
- package/cjs/series/pie/3d/pie-3d.js.map +1 -1
- package/cjs/series/pie/constant.js +13 -13
- package/cjs/series/pie/constant.js.map +1 -1
- package/cjs/series/pie/pie-transformer.js +2 -2
- package/cjs/series/pie/pie-transformer.js.map +1 -1
- package/cjs/series/pie/pie.js +7 -7
- package/cjs/series/pie/pie.js.map +1 -1
- package/cjs/series/polar/progress-like/constant.js +4 -4
- package/cjs/series/polar/progress-like/constant.js.map +1 -1
- package/cjs/series/progress/circular/circular.js +2 -2
- package/cjs/series/progress/circular/circular.js.map +1 -1
- package/cjs/series/progress/circular/constant.js +7 -7
- package/cjs/series/progress/circular/constant.js.map +1 -1
- package/cjs/series/progress/linear/animation.js +3 -3
- package/cjs/series/progress/linear/animation.js.map +1 -1
- package/cjs/series/progress/linear/constant.js +10 -10
- package/cjs/series/progress/linear/constant.js.map +1 -1
- package/cjs/series/progress/linear/linear.js +2 -2
- package/cjs/series/progress/linear/linear.js.map +1 -1
- package/cjs/series/radar/constant.js +4 -4
- package/cjs/series/radar/constant.js.map +1 -1
- package/cjs/series/radar/radar.js +1 -1
- package/cjs/series/radar/radar.js.map +1 -1
- package/cjs/series/range-area/range-area.js +3 -3
- package/cjs/series/range-area/range-area.js.map +1 -1
- package/cjs/series/range-area/tooltip-helper.js +2 -2
- package/cjs/series/range-area/tooltip-helper.js.map +1 -1
- package/cjs/series/range-column/3d/range-column-3d-transformer.js +2 -2
- package/cjs/series/range-column/3d/range-column-3d-transformer.js.map +1 -1
- package/cjs/series/range-column/3d/range-column-3d.js +4 -4
- package/cjs/series/range-column/3d/range-column-3d.js.map +1 -1
- package/cjs/series/range-column/constant.js +13 -13
- package/cjs/series/range-column/constant.js.map +1 -1
- package/cjs/series/range-column/interface.d.ts +2 -2
- package/cjs/series/range-column/interface.js.map +1 -1
- package/cjs/series/range-column/range-column-transformer.js +2 -2
- package/cjs/series/range-column/range-column-transformer.js.map +1 -1
- package/cjs/series/range-column/range-column.js +11 -11
- package/cjs/series/range-column/range-column.js.map +1 -1
- package/cjs/series/range-column/tooltip-helper.js +2 -2
- package/cjs/series/range-column/tooltip-helper.js.map +1 -1
- package/cjs/series/rose/constant.js +4 -4
- package/cjs/series/rose/constant.js.map +1 -1
- package/cjs/series/rose/rose-transformer.js +2 -2
- package/cjs/series/rose/rose-transformer.js.map +1 -1
- package/cjs/series/rose/rose.js +1 -1
- package/cjs/series/rose/rose.js.map +1 -1
- package/cjs/series/sankey/animation.js +5 -5
- package/cjs/series/sankey/animation.js.map +1 -1
- package/cjs/series/sankey/constant.js +7 -7
- package/cjs/series/sankey/constant.js.map +1 -1
- package/cjs/series/sankey/sankey.js +3 -3
- package/cjs/series/sankey/sankey.js.map +1 -1
- package/cjs/series/scatter/constant.js +4 -4
- package/cjs/series/scatter/constant.js.map +1 -1
- package/cjs/series/scatter/scatter-transformer.js +2 -2
- package/cjs/series/scatter/scatter-transformer.js.map +1 -1
- package/cjs/series/scatter/scatter.js +1 -1
- package/cjs/series/scatter/scatter.js.map +1 -1
- package/cjs/series/sunburst/constant.js +4 -4
- package/cjs/series/sunburst/constant.js.map +1 -1
- package/cjs/series/sunburst/sunburst.js +3 -3
- package/cjs/series/sunburst/sunburst.js.map +1 -1
- package/cjs/series/treemap/constant.js +10 -10
- package/cjs/series/treemap/constant.js.map +1 -1
- package/cjs/series/treemap/treemap-transform.js +3 -3
- package/cjs/series/treemap/treemap-transform.js.map +1 -1
- package/cjs/series/treemap/treemap.js +7 -7
- package/cjs/series/treemap/treemap.js.map +1 -1
- package/cjs/series/util/label-mark.js +5 -5
- package/cjs/series/util/label-mark.js.map +1 -1
- package/cjs/series/waterfall/constant.js +7 -7
- package/cjs/series/waterfall/constant.js.map +1 -1
- package/cjs/series/waterfall/waterfall-transformer.js +2 -2
- package/cjs/series/waterfall/waterfall-transformer.js.map +1 -1
- package/cjs/series/waterfall/waterfall.js +6 -6
- package/cjs/series/waterfall/waterfall.js.map +1 -1
- package/cjs/series/word-cloud/base.js +2 -2
- package/cjs/series/word-cloud/base.js.map +1 -1
- package/cjs/series/word-cloud/constant.js +7 -7
- package/cjs/series/word-cloud/constant.js.map +1 -1
- package/cjs/series/word-cloud/interface.d.ts +2 -11
- package/cjs/series/word-cloud/interface.js +1 -8
- package/cjs/series/word-cloud/interface.js.map +1 -1
- package/cjs/series/word-cloud/word-cloud-3d.js +2 -2
- package/cjs/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/cjs/theme/builtin/common/series/rangeColumn.js +3 -7
- package/cjs/theme/builtin/common/series/rangeColumn.js.map +1 -1
- package/cjs/typings/layout.d.ts +1 -0
- package/cjs/typings/layout.js.map +1 -1
- package/cjs/typings/shape.d.ts +0 -21
- package/cjs/typings/shape.js +1 -12
- package/cjs/typings/shape.js.map +1 -1
- package/cjs/typings/space.d.ts +1 -1
- package/cjs/typings/space.js.map +1 -1
- package/cjs/typings/tooltip/position.d.ts +2 -2
- package/cjs/typings/tooltip/position.js.map +1 -1
- package/esm/animation/utils.js +6 -1
- package/esm/animation/utils.js.map +1 -1
- package/esm/chart/area/area.js +3 -5
- package/esm/chart/area/area.js.map +1 -1
- package/esm/chart/bar/3d/bar-3d.js +3 -5
- package/esm/chart/bar/3d/bar-3d.js.map +1 -1
- package/esm/chart/bar/bar.js +2 -4
- package/esm/chart/bar/bar.js.map +1 -1
- package/esm/chart/base/base-chart.js +1 -3
- package/esm/chart/base/base-chart.js.map +1 -1
- package/esm/chart/box-plot/box-plot-transformer.js +2 -4
- package/esm/chart/box-plot/box-plot-transformer.js.map +1 -1
- package/esm/chart/box-plot/box-plot.js +2 -4
- package/esm/chart/box-plot/box-plot.js.map +1 -1
- package/esm/chart/circle-packing/circle-packing.js +2 -4
- package/esm/chart/circle-packing/circle-packing.js.map +1 -1
- package/esm/chart/common/common.js +2 -4
- package/esm/chart/common/common.js.map +1 -1
- package/esm/chart/correlation/correlation.js +2 -4
- package/esm/chart/correlation/correlation.js.map +1 -1
- package/esm/chart/funnel/3d/funnel-3d.js +2 -4
- package/esm/chart/funnel/3d/funnel-3d.js.map +1 -1
- package/esm/chart/funnel/funnel.js +3 -5
- package/esm/chart/funnel/funnel.js.map +1 -1
- package/esm/chart/gauge/gauge.js +2 -4
- package/esm/chart/gauge/gauge.js.map +1 -1
- package/esm/chart/heatmap/heatmap.js +2 -4
- package/esm/chart/heatmap/heatmap.js.map +1 -1
- package/esm/chart/histogram/3d/histogram-3d.js +2 -4
- package/esm/chart/histogram/3d/histogram-3d.js.map +1 -1
- package/esm/chart/histogram/histogram.js +2 -4
- package/esm/chart/histogram/histogram.js.map +1 -1
- package/esm/chart/interface/type.d.ts +1 -1
- package/esm/chart/interface/type.js.map +1 -1
- package/esm/chart/line/line.js +3 -5
- package/esm/chart/line/line.js.map +1 -1
- package/esm/chart/map/map.js +2 -4
- package/esm/chart/map/map.js.map +1 -1
- package/esm/chart/pie/3d/pie-3d.js +3 -5
- package/esm/chart/pie/3d/pie-3d.js.map +1 -1
- package/esm/chart/pie/pie.js +2 -4
- package/esm/chart/pie/pie.js.map +1 -1
- package/esm/chart/polar/polar-transformer.js +1 -3
- package/esm/chart/polar/polar-transformer.js.map +1 -1
- package/esm/chart/progress/circular/circular.js +2 -4
- package/esm/chart/progress/circular/circular.js.map +1 -1
- package/esm/chart/progress/linear/linear.js +2 -5
- package/esm/chart/progress/linear/linear.js.map +1 -1
- package/esm/chart/radar/radar.js +3 -5
- package/esm/chart/radar/radar.js.map +1 -1
- package/esm/chart/range-area/range-area-transformer.js +1 -3
- package/esm/chart/range-area/range-area-transformer.js.map +1 -1
- package/esm/chart/range-area/range-area.js +2 -4
- package/esm/chart/range-area/range-area.js.map +1 -1
- package/esm/chart/range-column/3d/range-column-3d-transformer.js +1 -3
- package/esm/chart/range-column/3d/range-column-3d-transformer.js.map +1 -1
- package/esm/chart/range-column/3d/range-column-3d.js +2 -4
- package/esm/chart/range-column/3d/range-column-3d.js.map +1 -1
- package/esm/chart/range-column/range-column-transformer.js +1 -3
- package/esm/chart/range-column/range-column-transformer.js.map +1 -1
- package/esm/chart/range-column/range-column.js +2 -4
- package/esm/chart/range-column/range-column.js.map +1 -1
- package/esm/chart/rose/rose.js +3 -5
- package/esm/chart/rose/rose.js.map +1 -1
- package/esm/chart/sankey/sankey.js +3 -5
- package/esm/chart/sankey/sankey.js.map +1 -1
- package/esm/chart/scatter/scatter.js +2 -4
- package/esm/chart/scatter/scatter.js.map +1 -1
- package/esm/chart/sequence/sequence-transformer.js +2 -4
- package/esm/chart/sequence/sequence-transformer.js.map +1 -1
- package/esm/chart/sequence/sequence.js +2 -5
- package/esm/chart/sequence/sequence.js.map +1 -1
- package/esm/chart/sunburst/sunburst.js +2 -4
- package/esm/chart/sunburst/sunburst.js.map +1 -1
- package/esm/chart/treemap/treemap.js +2 -4
- package/esm/chart/treemap/treemap.js.map +1 -1
- package/esm/chart/util.js +1 -3
- package/esm/chart/util.js.map +1 -1
- package/esm/chart/waterfall/waterfall.js +2 -4
- package/esm/chart/waterfall/waterfall.js.map +1 -1
- package/esm/chart/word-cloud/3d/word-cloud-3d.js +2 -4
- package/esm/chart/word-cloud/3d/word-cloud-3d.js.map +1 -1
- package/esm/chart/word-cloud/base/base.js +1 -3
- package/esm/chart/word-cloud/base/base.js.map +1 -1
- package/esm/chart/word-cloud/word-cloud.js +2 -4
- package/esm/chart/word-cloud/word-cloud.js.map +1 -1
- package/esm/compile/grammar-item.js +2 -1
- package/esm/compile/interface/compiler.d.ts +2 -0
- package/esm/compile/interface/compiler.js.map +1 -1
- package/esm/compile/mark/interface.d.ts +0 -9
- package/esm/compile/mark/interface.js +0 -9
- package/esm/compile/mark/interface.js.map +1 -1
- package/esm/component/axis/cartesian/axis.js +16 -12
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/component/axis/cartesian/util/common.js +1 -3
- package/esm/component/axis/cartesian/util/common.js.map +1 -1
- package/esm/component/axis/mixin/band-axis-mixin.js +1 -0
- package/esm/component/axis/mixin/band-axis-mixin.js.map +1 -1
- package/esm/component/axis/mixin/linear-axis-mixin.js +3 -3
- package/esm/component/axis/mixin/linear-axis-mixin.js.map +1 -1
- package/esm/component/axis/polar/axis.js +19 -10
- package/esm/component/axis/polar/axis.js.map +1 -1
- package/esm/component/crosshair/cartesian.js +7 -9
- package/esm/component/crosshair/cartesian.js.map +1 -1
- package/esm/component/crosshair/config.d.ts +1 -1
- package/esm/component/crosshair/config.js.map +1 -1
- package/esm/component/crosshair/polar.js +7 -9
- package/esm/component/crosshair/polar.js.map +1 -1
- package/esm/component/data-zoom/constant.d.ts +1 -1
- package/esm/component/data-zoom/constant.js.map +1 -1
- package/esm/component/data-zoom/data-filter-base-component.js +5 -9
- package/esm/component/data-zoom/data-filter-base-component.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.js +2 -4
- package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js +2 -4
- package/esm/component/data-zoom/scroll-bar/scroll-bar.js.map +1 -1
- package/esm/component/data-zoom/util.js +1 -4
- package/esm/component/data-zoom/util.js.map +1 -1
- package/esm/component/label/label.js +3 -5
- package/esm/component/label/label.js.map +1 -1
- package/esm/component/label/total-label.js +3 -5
- package/esm/component/label/total-label.js.map +1 -1
- package/esm/component/label/util.js +3 -5
- package/esm/component/label/util.js.map +1 -1
- package/esm/component/legend/base-legend.d.ts +1 -1
- package/esm/component/legend/util.d.ts +2 -2
- package/esm/component/marker/base-marker.d.ts +5 -1
- package/esm/component/marker/base-marker.js.map +1 -1
- package/esm/component/marker/mark-area/mark-area.js +8 -2
- package/esm/component/marker/mark-area/mark-area.js.map +1 -1
- package/esm/component/marker/mark-line/mark-line.js +7 -1
- package/esm/component/marker/mark-line/mark-line.js.map +1 -1
- package/esm/component/marker/mark-point/mark-point.js +7 -1
- package/esm/component/marker/mark-point/mark-point.js.map +1 -1
- package/esm/component/marker/utils.js +2 -2
- package/esm/component/marker/utils.js.map +1 -1
- package/esm/component/tooltip/handler/base.js +1 -3
- package/esm/component/tooltip/handler/base.js.map +1 -1
- package/esm/component/tooltip/handler/dom/model/shape-model.js +12 -8
- package/esm/component/tooltip/handler/dom/model/shape-model.js.map +1 -1
- package/esm/component/tooltip/handler/utils/position.js +13 -15
- package/esm/component/tooltip/handler/utils/position.js.map +1 -1
- package/esm/component/util.js +1 -2
- package/esm/core/factory.js +1 -4
- package/esm/core/factory.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/data/transforms/marker-filter.d.ts +5 -0
- package/esm/data/transforms/marker-filter.js +11 -0
- package/esm/data/transforms/marker-filter.js.map +1 -0
- package/esm/event/event-dispatcher.js +2 -1
- package/esm/event/events/dimension/util/cartesian.js +1 -3
- package/esm/event/events/dimension/util/cartesian.js.map +1 -1
- package/esm/event/index.js +1 -2
- package/esm/interaction/drill/drillable.d.ts +1 -1
- package/esm/interaction/drill/drillable.js +2 -2
- package/esm/interaction/drill/drillable.js.map +1 -1
- package/esm/interaction/zoom/zoomable.d.ts +1 -1
- package/esm/interaction/zoom/zoomable.js +10 -10
- package/esm/interaction/zoom/zoomable.js.map +1 -1
- package/esm/layout/interface.d.ts +2 -0
- package/esm/layout/interface.js.map +1 -1
- package/esm/layout/layout-item.d.ts +2 -1
- package/esm/layout/layout-item.js +2 -1
- package/esm/layout/layout-item.js.map +1 -1
- package/esm/layout/util.js +91 -77
- package/esm/layout/util.js.map +1 -1
- package/esm/mark/arc-3d.js +1 -3
- package/esm/mark/arc-3d.js.map +1 -1
- package/esm/mark/arc.js +1 -3
- package/esm/mark/arc.js.map +1 -1
- package/esm/mark/area.js +1 -3
- package/esm/mark/area.js.map +1 -1
- package/esm/mark/box-plot.js +1 -3
- package/esm/mark/box-plot.js.map +1 -1
- package/esm/mark/cell.js +1 -3
- package/esm/mark/cell.js.map +1 -1
- package/esm/mark/component.js +1 -3
- package/esm/mark/component.js.map +1 -1
- package/esm/mark/group.js +1 -3
- package/esm/mark/group.js.map +1 -1
- package/esm/mark/image.js +1 -3
- package/esm/mark/image.js.map +1 -1
- package/esm/mark/interface/type.d.ts +1 -1
- package/esm/mark/interface/type.js.map +1 -1
- package/esm/mark/label.js +1 -3
- package/esm/mark/label.js.map +1 -1
- package/esm/mark/line.js +1 -3
- package/esm/mark/line.js.map +1 -1
- package/esm/mark/link-path.js +1 -3
- package/esm/mark/link-path.js.map +1 -1
- package/esm/mark/path.js +1 -3
- package/esm/mark/path.js.map +1 -1
- package/esm/mark/polygon/polygon.js +1 -3
- package/esm/mark/polygon/polygon.js.map +1 -1
- package/esm/mark/polygon/pyramid-3d.js +1 -3
- package/esm/mark/polygon/pyramid-3d.js.map +1 -1
- package/esm/mark/progress-arc.js +1 -3
- package/esm/mark/progress-arc.js.map +1 -1
- package/esm/mark/rect-3d.js +1 -3
- package/esm/mark/rect-3d.js.map +1 -1
- package/esm/mark/rect.js +1 -3
- package/esm/mark/rect.js.map +1 -1
- package/esm/mark/ripple.js +1 -3
- package/esm/mark/ripple.js.map +1 -1
- package/esm/mark/rule.js +1 -3
- package/esm/mark/rule.js.map +1 -1
- package/esm/mark/symbol.js +2 -6
- package/esm/mark/symbol.js.map +1 -1
- package/esm/mark/text.js +1 -3
- package/esm/mark/text.js.map +1 -1
- package/esm/mark/utils/common.js +1 -3
- package/esm/mark/utils/common.js.map +1 -1
- package/esm/region/region.js +5 -9
- package/esm/region/region.js.map +1 -1
- package/esm/series/area/animation.js +2 -4
- package/esm/series/area/animation.js.map +1 -1
- package/esm/series/area/area-transformer.js +2 -4
- package/esm/series/area/area-transformer.js.map +1 -1
- package/esm/series/area/area.js +6 -8
- package/esm/series/area/area.js.map +1 -1
- package/esm/series/area/constant.js +3 -7
- package/esm/series/area/constant.js.map +1 -1
- package/esm/series/bar/animation.js +2 -4
- package/esm/series/bar/animation.js.map +1 -1
- package/esm/series/bar/bar-3d.js +3 -5
- package/esm/series/bar/bar-3d.js.map +1 -1
- package/esm/series/bar/bar-transformer.js +1 -3
- package/esm/series/bar/bar-transformer.js.map +1 -1
- package/esm/series/bar/bar.js +9 -13
- package/esm/series/bar/bar.js.map +1 -1
- package/esm/series/bar/constant.js +9 -13
- package/esm/series/bar/constant.js.map +1 -1
- package/esm/series/base/base-series.js +7 -6
- package/esm/series/base/base-series.js.map +1 -1
- package/esm/series/base/constant.js +3 -7
- package/esm/series/base/constant.js.map +1 -1
- package/esm/series/box-plot/box-plot.js +7 -9
- package/esm/series/box-plot/box-plot.js.map +1 -1
- package/esm/series/box-plot/constant.js +6 -10
- package/esm/series/box-plot/constant.js.map +1 -1
- package/esm/series/cartesian/cartesian.js +8 -11
- package/esm/series/cartesian/cartesian.js.map +1 -1
- package/esm/series/circle-packing/circle-packing.js +2 -4
- package/esm/series/circle-packing/circle-packing.js.map +1 -1
- package/esm/series/circle-packing/constant.js +3 -7
- package/esm/series/circle-packing/constant.js.map +1 -1
- package/esm/series/correlation/constant.js +12 -16
- package/esm/series/correlation/constant.js.map +1 -1
- package/esm/series/correlation/correlation-transformer.js +1 -3
- package/esm/series/correlation/correlation-transformer.js.map +1 -1
- package/esm/series/correlation/correlation.js +2 -2
- package/esm/series/correlation/correlation.js.map +1 -1
- package/esm/series/dot/constant.js +21 -25
- package/esm/series/dot/constant.js.map +1 -1
- package/esm/series/dot/dot.js +1 -3
- package/esm/series/dot/dot.js.map +1 -1
- package/esm/series/funnel/3d/funnel-3d-transformer.js +1 -3
- package/esm/series/funnel/3d/funnel-3d-transformer.js.map +1 -1
- package/esm/series/funnel/3d/funnel-3d.js +4 -6
- package/esm/series/funnel/3d/funnel-3d.js.map +1 -1
- package/esm/series/funnel/constant.js +30 -34
- package/esm/series/funnel/constant.js.map +1 -1
- package/esm/series/funnel/funnel-transformer.js +1 -3
- package/esm/series/funnel/funnel-transformer.js.map +1 -1
- package/esm/series/funnel/funnel.js +7 -11
- package/esm/series/funnel/funnel.js.map +1 -1
- package/esm/series/funnel/tooltip-helper.js +3 -5
- package/esm/series/funnel/tooltip-helper.js.map +1 -1
- package/esm/series/gauge/constant.js +15 -19
- package/esm/series/gauge/constant.js.map +1 -1
- package/esm/series/gauge/gauge-pointer.js +4 -6
- package/esm/series/gauge/gauge-pointer.js.map +1 -1
- package/esm/series/gauge/gauge-transformer.js +1 -3
- package/esm/series/gauge/gauge-transformer.js.map +1 -1
- package/esm/series/gauge/gauge.js +2 -2
- package/esm/series/gauge/gauge.js.map +1 -1
- package/esm/series/heatmap/constant.js +6 -10
- package/esm/series/heatmap/constant.js.map +1 -1
- package/esm/series/heatmap/heatmap-transformer.js +1 -3
- package/esm/series/heatmap/heatmap-transformer.js.map +1 -1
- package/esm/series/heatmap/heatmap.js +2 -2
- package/esm/series/heatmap/heatmap.js.map +1 -1
- package/esm/series/interface/type.d.ts +1 -2
- package/esm/series/interface/type.js +0 -2
- package/esm/series/interface/type.js.map +1 -1
- package/esm/series/line/animation.js +2 -4
- package/esm/series/line/animation.js.map +1 -1
- package/esm/series/line/line.js +3 -3
- package/esm/series/line/line.js.map +1 -1
- package/esm/series/link/constant.js +9 -13
- package/esm/series/link/constant.js.map +1 -1
- package/esm/series/link/link.js +1 -3
- package/esm/series/link/link.js.map +1 -1
- package/esm/series/map/constant.js +3 -7
- package/esm/series/map/constant.js.map +1 -1
- package/esm/series/map/map-transformer.js +1 -3
- package/esm/series/map/map-transformer.js.map +1 -1
- package/esm/series/map/map.js +2 -2
- package/esm/series/map/map.js.map +1 -1
- package/esm/series/mixin/constant.js +6 -10
- package/esm/series/mixin/constant.js.map +1 -1
- package/esm/series/mixin/line-mixin-transformer.js +2 -4
- package/esm/series/mixin/line-mixin-transformer.js.map +1 -1
- package/esm/series/mixin/line-mixin.js +5 -9
- package/esm/series/mixin/line-mixin.js.map +1 -1
- package/esm/series/pie/3d/pie-3d-transformer.js +1 -3
- package/esm/series/pie/3d/pie-3d-transformer.js.map +1 -1
- package/esm/series/pie/3d/pie-3d.js +3 -5
- package/esm/series/pie/3d/pie-3d.js.map +1 -1
- package/esm/series/pie/constant.js +12 -16
- package/esm/series/pie/constant.js.map +1 -1
- package/esm/series/pie/pie-transformer.js +1 -3
- package/esm/series/pie/pie-transformer.js.map +1 -1
- package/esm/series/pie/pie.js +4 -6
- package/esm/series/pie/pie.js.map +1 -1
- package/esm/series/polar/progress-like/constant.js +3 -7
- package/esm/series/polar/progress-like/constant.js.map +1 -1
- package/esm/series/progress/circular/circular.js +3 -3
- package/esm/series/progress/circular/circular.js.map +1 -1
- package/esm/series/progress/circular/constant.js +6 -10
- package/esm/series/progress/circular/constant.js.map +1 -1
- package/esm/series/progress/linear/animation.js +2 -4
- package/esm/series/progress/linear/animation.js.map +1 -1
- package/esm/series/progress/linear/constant.js +9 -13
- package/esm/series/progress/linear/constant.js.map +1 -1
- package/esm/series/progress/linear/linear.js +3 -3
- package/esm/series/progress/linear/linear.js.map +1 -1
- package/esm/series/radar/constant.js +3 -7
- package/esm/series/radar/constant.js.map +1 -1
- package/esm/series/radar/radar.js +2 -2
- package/esm/series/radar/radar.js.map +1 -1
- package/esm/series/range-area/range-area.js +2 -4
- package/esm/series/range-area/range-area.js.map +1 -1
- package/esm/series/range-area/tooltip-helper.js +1 -3
- package/esm/series/range-area/tooltip-helper.js.map +1 -1
- package/esm/series/range-column/3d/range-column-3d-transformer.js +1 -5
- package/esm/series/range-column/3d/range-column-3d-transformer.js.map +1 -1
- package/esm/series/range-column/3d/range-column-3d.js +1 -3
- package/esm/series/range-column/3d/range-column-3d.js.map +1 -1
- package/esm/series/range-column/constant.js +12 -16
- package/esm/series/range-column/constant.js.map +1 -1
- package/esm/series/range-column/interface.d.ts +2 -2
- package/esm/series/range-column/interface.js.map +1 -1
- package/esm/series/range-column/range-column-transformer.js +1 -5
- package/esm/series/range-column/range-column-transformer.js.map +1 -1
- package/esm/series/range-column/range-column.js +9 -15
- package/esm/series/range-column/range-column.js.map +1 -1
- package/esm/series/range-column/tooltip-helper.js +1 -3
- package/esm/series/range-column/tooltip-helper.js.map +1 -1
- package/esm/series/rose/constant.js +3 -7
- package/esm/series/rose/constant.js.map +1 -1
- package/esm/series/rose/rose-transformer.js +1 -3
- package/esm/series/rose/rose-transformer.js.map +1 -1
- package/esm/series/rose/rose.js +2 -2
- package/esm/series/rose/rose.js.map +1 -1
- package/esm/series/sankey/animation.js +4 -6
- package/esm/series/sankey/animation.js.map +1 -1
- package/esm/series/sankey/constant.js +6 -10
- package/esm/series/sankey/constant.js.map +1 -1
- package/esm/series/sankey/sankey.js +4 -4
- package/esm/series/sankey/sankey.js.map +1 -1
- package/esm/series/scatter/constant.js +3 -7
- package/esm/series/scatter/constant.js.map +1 -1
- package/esm/series/scatter/scatter-transformer.js +1 -3
- package/esm/series/scatter/scatter-transformer.js.map +1 -1
- package/esm/series/scatter/scatter.js +2 -2
- package/esm/series/scatter/scatter.js.map +1 -1
- package/esm/series/sunburst/constant.js +3 -7
- package/esm/series/sunburst/constant.js.map +1 -1
- package/esm/series/sunburst/sunburst.js +2 -4
- package/esm/series/sunburst/sunburst.js.map +1 -1
- package/esm/series/treemap/constant.js +9 -13
- package/esm/series/treemap/constant.js.map +1 -1
- package/esm/series/treemap/treemap-transform.js +2 -4
- package/esm/series/treemap/treemap-transform.js.map +1 -1
- package/esm/series/treemap/treemap.js +4 -6
- package/esm/series/treemap/treemap.js.map +1 -1
- package/esm/series/util/label-mark.js +4 -6
- package/esm/series/util/label-mark.js.map +1 -1
- package/esm/series/waterfall/constant.js +6 -10
- package/esm/series/waterfall/constant.js.map +1 -1
- package/esm/series/waterfall/waterfall-transformer.js +1 -3
- package/esm/series/waterfall/waterfall-transformer.js.map +1 -1
- package/esm/series/waterfall/waterfall.js +6 -8
- package/esm/series/waterfall/waterfall.js.map +1 -1
- package/esm/series/word-cloud/base.js +1 -3
- package/esm/series/word-cloud/base.js.map +1 -1
- package/esm/series/word-cloud/constant.js +6 -10
- package/esm/series/word-cloud/constant.js.map +1 -1
- package/esm/series/word-cloud/interface.d.ts +2 -11
- package/esm/series/word-cloud/interface.js +1 -8
- package/esm/series/word-cloud/interface.js.map +1 -1
- package/esm/series/word-cloud/word-cloud-3d.js +3 -4
- package/esm/series/word-cloud/word-cloud-3d.js.map +1 -1
- package/esm/theme/builtin/common/series/rangeColumn.js +2 -4
- package/esm/theme/builtin/common/series/rangeColumn.js.map +1 -1
- package/esm/typings/layout.d.ts +1 -0
- package/esm/typings/layout.js.map +1 -1
- package/esm/typings/shape.d.ts +0 -21
- package/esm/typings/shape.js +1 -14
- package/esm/typings/shape.js.map +1 -1
- package/esm/typings/space.d.ts +1 -1
- package/esm/typings/space.js.map +1 -1
- package/esm/typings/tooltip/position.d.ts +2 -2
- package/esm/typings/tooltip/position.js.map +1 -1
- package/package.json +14 -13
package/build/index.js
CHANGED
|
@@ -7682,10 +7682,10 @@
|
|
|
7682
7682
|
!function (AnimateStepType) {
|
|
7683
7683
|
AnimateStepType.wait = "wait", AnimateStepType.from = "from", AnimateStepType.to = "to", AnimateStepType.customAnimate = "customAnimate";
|
|
7684
7684
|
}(AnimateStepType || (AnimateStepType = {}));
|
|
7685
|
-
var Direction$
|
|
7685
|
+
var Direction$1;
|
|
7686
7686
|
!function (Direction) {
|
|
7687
7687
|
Direction[Direction.ROW = 1] = "ROW", Direction[Direction.COLUMN = 2] = "COLUMN";
|
|
7688
|
-
}(Direction$
|
|
7688
|
+
}(Direction$1 || (Direction$1 = {}));
|
|
7689
7689
|
var CurveTypeEnum;
|
|
7690
7690
|
!function (CurveTypeEnum) {
|
|
7691
7691
|
CurveTypeEnum[CurveTypeEnum.CubicBezierCurve = 0] = "CubicBezierCurve", CurveTypeEnum[CurveTypeEnum.QuadraticBezierCurve = 1] = "QuadraticBezierCurve", CurveTypeEnum[CurveTypeEnum.ArcCurve = 2] = "ArcCurve", CurveTypeEnum[CurveTypeEnum.LineCurve = 3] = "LineCurve", CurveTypeEnum[CurveTypeEnum.EllipseCurve = 4] = "EllipseCurve", CurveTypeEnum[CurveTypeEnum.MoveCurve = 5] = "MoveCurve";
|
|
@@ -7855,7 +7855,7 @@
|
|
|
7855
7855
|
return this._validPoint() ? cubicLength(this.p0, this.p1, this.p2, this.p3) : 60;
|
|
7856
7856
|
}
|
|
7857
7857
|
calcProjLength(direction) {
|
|
7858
|
-
return direction === Direction$
|
|
7858
|
+
return direction === Direction$1.ROW ? abs$1(this.p0.x - this.p3.x) : direction === Direction$1.COLUMN ? abs$1(this.p0.y - this.p3.y) : 0;
|
|
7859
7859
|
}
|
|
7860
7860
|
getAngleAt(t) {
|
|
7861
7861
|
const minT = max$1(t - .01, 0),
|
|
@@ -7892,7 +7892,7 @@
|
|
|
7892
7892
|
return this._validPoint() ? PointService.distancePP(this.p0, this.p1) : 60;
|
|
7893
7893
|
}
|
|
7894
7894
|
calcProjLength(direction) {
|
|
7895
|
-
return direction === Direction$
|
|
7895
|
+
return direction === Direction$1.ROW ? abs$1(this.p0.x - this.p1.x) : direction === Direction$1.COLUMN ? abs$1(this.p0.y - this.p1.y) : 0;
|
|
7896
7896
|
}
|
|
7897
7897
|
}
|
|
7898
7898
|
|
|
@@ -7949,14 +7949,14 @@
|
|
|
7949
7949
|
}
|
|
7950
7950
|
getLength(direction) {
|
|
7951
7951
|
var _a, _b;
|
|
7952
|
-
if (direction === Direction$
|
|
7952
|
+
if (direction === Direction$1.COLUMN) {
|
|
7953
7953
|
if (!this.curves.length) return 0;
|
|
7954
7954
|
const sc = this.curves[0],
|
|
7955
7955
|
ec = this.curves[this.curves.length - 1],
|
|
7956
7956
|
endP = null !== (_a = ec.p3) && void 0 !== _a ? _a : ec.p1;
|
|
7957
7957
|
return abs$1(sc.p0.y - endP.y);
|
|
7958
7958
|
}
|
|
7959
|
-
if (direction === Direction$
|
|
7959
|
+
if (direction === Direction$1.ROW) {
|
|
7960
7960
|
if (!this.curves.length) return 0;
|
|
7961
7961
|
const sc = this.curves[0],
|
|
7962
7962
|
ec = this.curves[this.curves.length - 1],
|
|
@@ -7986,7 +7986,7 @@
|
|
|
7986
7986
|
for (let i = 0, n = points.length; i <= n; i++) i >= n === defined0 && ((defined0 = !defined0) ? path.lineStart() : path.lineEnd()), defined0 && path.point(points[i]);
|
|
7987
7987
|
}
|
|
7988
7988
|
function genSegContext(curveType, direction, points) {
|
|
7989
|
-
const curveDirection = null != direction ? direction : abs$1(points[points.length - 1].x - points[0].x) > abs$1(points[points.length - 1].y - points[0].y) ? Direction$
|
|
7989
|
+
const curveDirection = null != direction ? direction : abs$1(points[points.length - 1].x - points[0].x) > abs$1(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN;
|
|
7990
7990
|
return "monotoneY" === curveType ? new ReflectSegContext(curveType, curveDirection) : new SegContext(curveType, curveDirection);
|
|
7991
7991
|
}
|
|
7992
7992
|
|
|
@@ -8248,7 +8248,7 @@
|
|
|
8248
8248
|
startPoint: startPoint
|
|
8249
8249
|
} = params;
|
|
8250
8250
|
if (points.length < 2 - Number(!!startPoint)) return null;
|
|
8251
|
-
const segContext = new SegContext("step", null != direction ? direction : abs$1(points[points.length - 1].x - points[0].x) > abs$1(points[points.length - 1].y - points[0].y) ? Direction$
|
|
8251
|
+
const segContext = new SegContext("step", null != direction ? direction : abs$1(points[points.length - 1].x - points[0].x) > abs$1(points[points.length - 1].y - points[0].y) ? Direction$1.ROW : Direction$1.COLUMN);
|
|
8252
8252
|
return genStepTypeSegments(new Step$1(segContext, t, startPoint), points), segContext;
|
|
8253
8253
|
}
|
|
8254
8254
|
function genStepTypeSegments(path, points) {
|
|
@@ -8366,7 +8366,7 @@
|
|
|
8366
8366
|
} = line.attribute;
|
|
8367
8367
|
if (!points) return;
|
|
8368
8368
|
const cache = calcLineCache$1(points, curveType);
|
|
8369
|
-
"x" === clipRangeByDimension ? this.direction = Direction$
|
|
8369
|
+
"x" === clipRangeByDimension ? this.direction = Direction$1.ROW : "y" === clipRangeByDimension ? this.direction = Direction$1.COLUMN : "auto" === clipRangeByDimension && (this.direction = cache.direction), this.curves = cache.curves;
|
|
8370
8370
|
}
|
|
8371
8371
|
fromCustomPath2D(path, x, y, sX, sY) {
|
|
8372
8372
|
return this.clear(), this._runCommandList(path.commandList, x, y, sX, sY), this._updateBounds(), this;
|
|
@@ -8528,13 +8528,13 @@
|
|
|
8528
8528
|
this.commandList = [], this._boundsContext = null, this._ctx = null;
|
|
8529
8529
|
}
|
|
8530
8530
|
getLength() {
|
|
8531
|
-
if (this.direction === Direction$
|
|
8531
|
+
if (this.direction === Direction$1.COLUMN) {
|
|
8532
8532
|
if (!this.curves.length) return 0;
|
|
8533
8533
|
const sc = this.curves[0],
|
|
8534
8534
|
ec = this.curves[this.curves.length - 1];
|
|
8535
8535
|
return abs$1(sc.p0.y - ec.p1.y);
|
|
8536
8536
|
}
|
|
8537
|
-
if (this.direction === Direction$
|
|
8537
|
+
if (this.direction === Direction$1.ROW) {
|
|
8538
8538
|
if (!this.curves.length) return 0;
|
|
8539
8539
|
const sc = this.curves[0],
|
|
8540
8540
|
ec = this.curves[this.curves.length - 1];
|
|
@@ -11788,10 +11788,10 @@
|
|
|
11788
11788
|
!1 !== this.valid && (out.text = end ? this.toNumber : (this.fromNumber + (this.toNumber - this.fromNumber) * ratio).toFixed(this.decimalLength));
|
|
11789
11789
|
}
|
|
11790
11790
|
}
|
|
11791
|
-
var Direction
|
|
11791
|
+
var Direction;
|
|
11792
11792
|
!function (Direction) {
|
|
11793
11793
|
Direction[Direction.LEFT_TO_RIGHT = 0] = "LEFT_TO_RIGHT", Direction[Direction.RIGHT_TO_LEFT = 1] = "RIGHT_TO_LEFT", Direction[Direction.TOP_TO_BOTTOM = 2] = "TOP_TO_BOTTOM", Direction[Direction.BOTTOM_TO_TOP = 3] = "BOTTOM_TO_TOP", Direction[Direction.STROKE = 4] = "STROKE";
|
|
11794
|
-
}(Direction
|
|
11794
|
+
}(Direction || (Direction = {}));
|
|
11795
11795
|
class TagPointsUpdate extends ACustomAnimate {
|
|
11796
11796
|
constructor(from, to, duration, easing, params) {
|
|
11797
11797
|
super(from, to, duration, easing, params), this.newPointAnimateType = "appear" === (null == params ? void 0 : params.newPointAnimateType) ? "appear" : "grow";
|
|
@@ -13322,7 +13322,7 @@
|
|
|
13322
13322
|
const context = {
|
|
13323
13323
|
type: AttributeUpdateType.INIT
|
|
13324
13324
|
};
|
|
13325
|
-
params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this.attribute = params, params.background && this.loadImage(params.background, !0), this._updateTag = UpdateTag.INIT, this.onAttributeUpdate(context);
|
|
13325
|
+
params = this.onBeforeAttributeUpdate && this.onBeforeAttributeUpdate(params, this.attribute, null, context) || params, this.attribute = params, params.background && this.loadImage(params.background, !0), this._updateTag = UpdateTag.INIT, this.valid = this.isValid(), this.onAttributeUpdate(context);
|
|
13326
13326
|
}
|
|
13327
13327
|
translate(x, y) {
|
|
13328
13328
|
var _a, _b;
|
|
@@ -16697,6 +16697,12 @@
|
|
|
16697
16697
|
this.failCallback && this.failCallback();
|
|
16698
16698
|
});
|
|
16699
16699
|
}
|
|
16700
|
+
setAttributes(params, forceUpdateTag, context) {
|
|
16701
|
+
return params.image && this.loadImage(params.image), super.setAttributes(params, forceUpdateTag, context);
|
|
16702
|
+
}
|
|
16703
|
+
setAttribute(key, value, forceUpdateTag, context) {
|
|
16704
|
+
return "image" === key && this.loadImage(value), super.setAttribute(key, value, forceUpdateTag, context);
|
|
16705
|
+
}
|
|
16700
16706
|
doUpdateAABBBounds() {
|
|
16701
16707
|
const imageTheme = getTheme$1(this).image;
|
|
16702
16708
|
this._AABBBounds.setValue(1 / 0, 1 / 0, -1 / 0, -1 / 0);
|
|
@@ -18322,7 +18328,7 @@
|
|
|
18322
18328
|
|
|
18323
18329
|
let text, richText;
|
|
18324
18330
|
function getTextBounds(params) {
|
|
18325
|
-
return text || (text = graphicCreator.CreateGraphic("text", {})), text.
|
|
18331
|
+
return text || (text = graphicCreator.CreateGraphic("text", {})), text.initAttributes(params), text.AABBBounds;
|
|
18326
18332
|
}
|
|
18327
18333
|
function getRichTextBounds(params) {
|
|
18328
18334
|
return richText || (richText = graphicCreator.CreateGraphic("richtext", {})), richText.setAttributes(params), richText.AABBBounds;
|
|
@@ -18456,6 +18462,234 @@
|
|
|
18456
18462
|
}
|
|
18457
18463
|
}
|
|
18458
18464
|
|
|
18465
|
+
const parse = function () {
|
|
18466
|
+
const tokens = {
|
|
18467
|
+
linearGradient: /^(linear\-gradient)/i,
|
|
18468
|
+
radialGradient: /^(radial\-gradient)/i,
|
|
18469
|
+
conicGradient: /^(conic\-gradient)/i,
|
|
18470
|
+
sideOrCorner: /^to (left (top|bottom)|right (top|bottom)|top (left|right)|bottom (left|right)|left|right|top|bottom)/i,
|
|
18471
|
+
extentKeywords: /^(closest\-side|closest\-corner|farthest\-side|farthest\-corner|contain|cover)/,
|
|
18472
|
+
positionKeywords: /^(left|center|right|top|bottom)/i,
|
|
18473
|
+
pixelValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))px/,
|
|
18474
|
+
percentageValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))\%/,
|
|
18475
|
+
emValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))em/,
|
|
18476
|
+
angleValue: /^(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,
|
|
18477
|
+
fromAngleValue: /^from\s*(-?(([0-9]*\.[0-9]+)|([0-9]+\.?)))deg/,
|
|
18478
|
+
startCall: /^\(/,
|
|
18479
|
+
endCall: /^\)/,
|
|
18480
|
+
comma: /^,/,
|
|
18481
|
+
hexColor: /(^\#[0-9a-fA-F]+)/,
|
|
18482
|
+
literalColor: /^([a-zA-Z]+)/,
|
|
18483
|
+
rgbColor: /^(rgb\(\d{1,3},\s*\d{1,3},\s*\d{1,3}\))/i,
|
|
18484
|
+
rgbaColor: /^(rgba\(\d{1,3},\s*\d{1,3},\s*\d{1,3},\s*((\d\.\d+)|\d{1,3})\))/i,
|
|
18485
|
+
number: /^(([0-9]*\.[0-9]+)|([0-9]+\.?))/
|
|
18486
|
+
};
|
|
18487
|
+
let input = "";
|
|
18488
|
+
function error(msg) {
|
|
18489
|
+
const err = new Error(input + ": " + msg);
|
|
18490
|
+
throw err.source = input, err;
|
|
18491
|
+
}
|
|
18492
|
+
function getAST() {
|
|
18493
|
+
const ast = matchListing(matchDefinition);
|
|
18494
|
+
return input.length > 0 && error("Invalid input not EOF"), ast;
|
|
18495
|
+
}
|
|
18496
|
+
function matchDefinition() {
|
|
18497
|
+
return matchGradient("linear", tokens.linearGradient, matchLinearOrientation) || matchGradient("radial", tokens.radialGradient, matchListRadialOrientations) || matchGradient("conic", tokens.conicGradient, matchConicalOrientation);
|
|
18498
|
+
}
|
|
18499
|
+
function matchGradient(gradientType, pattern, orientationMatcher) {
|
|
18500
|
+
return function (pattern, callback) {
|
|
18501
|
+
const captures = scan(pattern);
|
|
18502
|
+
if (captures) {
|
|
18503
|
+
scan(tokens.startCall) || error("Missing (");
|
|
18504
|
+
const result = callback(captures);
|
|
18505
|
+
return scan(tokens.endCall) || error("Missing )"), result;
|
|
18506
|
+
}
|
|
18507
|
+
}(pattern, function (captures) {
|
|
18508
|
+
const orientation = orientationMatcher();
|
|
18509
|
+
return orientation && (scan(tokens.comma) || error("Missing comma before color stops")), {
|
|
18510
|
+
type: gradientType,
|
|
18511
|
+
orientation: orientation,
|
|
18512
|
+
colorStops: matchListing(matchColorStop)
|
|
18513
|
+
};
|
|
18514
|
+
});
|
|
18515
|
+
}
|
|
18516
|
+
function matchLinearOrientation() {
|
|
18517
|
+
return match("directional", tokens.sideOrCorner, 1) || match("angular", tokens.angleValue, 1);
|
|
18518
|
+
}
|
|
18519
|
+
function matchConicalOrientation() {
|
|
18520
|
+
return match("angular", tokens.fromAngleValue, 1);
|
|
18521
|
+
}
|
|
18522
|
+
function matchListRadialOrientations() {
|
|
18523
|
+
let radialOrientations,
|
|
18524
|
+
lookaheadCache,
|
|
18525
|
+
radialOrientation = matchRadialOrientation();
|
|
18526
|
+
return radialOrientation && (radialOrientations = [], radialOrientations.push(radialOrientation), lookaheadCache = input, scan(tokens.comma) && (radialOrientation = matchRadialOrientation(), radialOrientation ? radialOrientations.push(radialOrientation) : input = lookaheadCache)), radialOrientations;
|
|
18527
|
+
}
|
|
18528
|
+
function matchRadialOrientation() {
|
|
18529
|
+
let radialType = function () {
|
|
18530
|
+
const circle = match("shape", /^(circle)/i, 0);
|
|
18531
|
+
circle && (circle.style = matchLength() || matchExtentKeyword());
|
|
18532
|
+
return circle;
|
|
18533
|
+
}() || function () {
|
|
18534
|
+
const ellipse = match("shape", /^(ellipse)/i, 0);
|
|
18535
|
+
ellipse && (ellipse.style = matchDistance() || matchExtentKeyword());
|
|
18536
|
+
return ellipse;
|
|
18537
|
+
}();
|
|
18538
|
+
if (radialType) radialType.at = matchAtPosition();else {
|
|
18539
|
+
const extent = matchExtentKeyword();
|
|
18540
|
+
if (extent) {
|
|
18541
|
+
radialType = extent;
|
|
18542
|
+
const positionAt = matchAtPosition();
|
|
18543
|
+
positionAt && (radialType.at = positionAt);
|
|
18544
|
+
} else {
|
|
18545
|
+
const defaultPosition = matchPositioning();
|
|
18546
|
+
defaultPosition && (radialType = {
|
|
18547
|
+
type: "default-radial",
|
|
18548
|
+
at: defaultPosition
|
|
18549
|
+
});
|
|
18550
|
+
}
|
|
18551
|
+
}
|
|
18552
|
+
return radialType;
|
|
18553
|
+
}
|
|
18554
|
+
function matchExtentKeyword() {
|
|
18555
|
+
return match("extent-keyword", tokens.extentKeywords, 1);
|
|
18556
|
+
}
|
|
18557
|
+
function matchAtPosition() {
|
|
18558
|
+
if (match("position", /^at/, 0)) {
|
|
18559
|
+
const positioning = matchPositioning();
|
|
18560
|
+
return positioning || error("Missing positioning value"), positioning;
|
|
18561
|
+
}
|
|
18562
|
+
}
|
|
18563
|
+
function matchPositioning() {
|
|
18564
|
+
const location = {
|
|
18565
|
+
x: matchDistance(),
|
|
18566
|
+
y: matchDistance()
|
|
18567
|
+
};
|
|
18568
|
+
if (location.x || location.y) return {
|
|
18569
|
+
type: "position",
|
|
18570
|
+
value: location
|
|
18571
|
+
};
|
|
18572
|
+
}
|
|
18573
|
+
function matchListing(matcher) {
|
|
18574
|
+
let captures = matcher();
|
|
18575
|
+
const result = [];
|
|
18576
|
+
if (captures) for (result.push(captures); scan(tokens.comma);) captures = matcher(), captures ? result.push(captures) : error("One extra comma");
|
|
18577
|
+
return result;
|
|
18578
|
+
}
|
|
18579
|
+
function matchColorStop() {
|
|
18580
|
+
const color = match("hex", tokens.hexColor, 1) || match("rgba", tokens.rgbaColor, 1) || match("rgb", tokens.rgbColor, 1) || match("literal", tokens.literalColor, 0);
|
|
18581
|
+
return color || error("Expected color definition"), color.length = matchDistance(), color;
|
|
18582
|
+
}
|
|
18583
|
+
function matchDistance() {
|
|
18584
|
+
return match("%", tokens.percentageValue, 1) || match("position-keyword", tokens.positionKeywords, 1) || matchLength();
|
|
18585
|
+
}
|
|
18586
|
+
function matchLength() {
|
|
18587
|
+
return match("px", tokens.pixelValue, 1) || match("em", tokens.emValue, 1);
|
|
18588
|
+
}
|
|
18589
|
+
function match(type, pattern, captureIndex) {
|
|
18590
|
+
const captures = scan(pattern);
|
|
18591
|
+
if (captures) return {
|
|
18592
|
+
type: type,
|
|
18593
|
+
value: captures[captureIndex]
|
|
18594
|
+
};
|
|
18595
|
+
}
|
|
18596
|
+
function scan(regexp) {
|
|
18597
|
+
const blankCaptures = /^[\n\r\t\s]+/.exec(input);
|
|
18598
|
+
blankCaptures && consume(blankCaptures[0].length);
|
|
18599
|
+
const captures = regexp.exec(input);
|
|
18600
|
+
return captures && consume(captures[0].length), captures;
|
|
18601
|
+
}
|
|
18602
|
+
function consume(size) {
|
|
18603
|
+
input = input.substr(size);
|
|
18604
|
+
}
|
|
18605
|
+
return function (code) {
|
|
18606
|
+
return input = code.toString(), getAST();
|
|
18607
|
+
};
|
|
18608
|
+
}();
|
|
18609
|
+
class GradientParser {
|
|
18610
|
+
static IsGradient(c) {
|
|
18611
|
+
return !("string" == typeof c && c.length < 10);
|
|
18612
|
+
}
|
|
18613
|
+
static IsGradientStr(c) {
|
|
18614
|
+
return "string" == typeof c && c.length > 10;
|
|
18615
|
+
}
|
|
18616
|
+
static Parse(c) {
|
|
18617
|
+
if (GradientParser.IsGradientStr(c)) try {
|
|
18618
|
+
const datum = parse(c)[0];
|
|
18619
|
+
if (datum) {
|
|
18620
|
+
if ("linear" === datum.type) return GradientParser.ParseLinear(datum);
|
|
18621
|
+
if ("radial" === datum.type) return GradientParser.ParseRadial(datum);
|
|
18622
|
+
if ("conic" === datum.type) return GradientParser.ParseConic(datum);
|
|
18623
|
+
}
|
|
18624
|
+
} catch (err) {
|
|
18625
|
+
return c;
|
|
18626
|
+
}
|
|
18627
|
+
return c;
|
|
18628
|
+
}
|
|
18629
|
+
static ParseConic(datum) {
|
|
18630
|
+
const {
|
|
18631
|
+
orientation: orientation,
|
|
18632
|
+
colorStops = []
|
|
18633
|
+
} = datum,
|
|
18634
|
+
halfPi = pi$1 / 2,
|
|
18635
|
+
sa = parseFloat(orientation.value) / 180 * pi$1 - halfPi;
|
|
18636
|
+
return {
|
|
18637
|
+
gradient: "conical",
|
|
18638
|
+
x: .5,
|
|
18639
|
+
y: .5,
|
|
18640
|
+
startAngle: sa,
|
|
18641
|
+
endAngle: sa + pi2,
|
|
18642
|
+
stops: colorStops.map(item => ({
|
|
18643
|
+
color: item.value,
|
|
18644
|
+
offset: parseFloat(item.length.value) / 100
|
|
18645
|
+
}))
|
|
18646
|
+
};
|
|
18647
|
+
}
|
|
18648
|
+
static ParseRadial(datum) {
|
|
18649
|
+
const {
|
|
18650
|
+
colorStops = []
|
|
18651
|
+
} = datum;
|
|
18652
|
+
return {
|
|
18653
|
+
gradient: "radial",
|
|
18654
|
+
x0: .5,
|
|
18655
|
+
y0: .5,
|
|
18656
|
+
x1: .5,
|
|
18657
|
+
y1: .5,
|
|
18658
|
+
r0: 0,
|
|
18659
|
+
r1: 1,
|
|
18660
|
+
stops: colorStops.map(item => ({
|
|
18661
|
+
color: item.value,
|
|
18662
|
+
offset: parseFloat(item.length.value) / 100
|
|
18663
|
+
}))
|
|
18664
|
+
};
|
|
18665
|
+
}
|
|
18666
|
+
static ParseLinear(datum) {
|
|
18667
|
+
const {
|
|
18668
|
+
orientation: orientation,
|
|
18669
|
+
colorStops = []
|
|
18670
|
+
} = datum,
|
|
18671
|
+
halfPi = pi$1 / 2;
|
|
18672
|
+
let angle = "angular" === orientation.type ? parseFloat(orientation.value) / 180 * pi$1 : 0;
|
|
18673
|
+
for (; angle < 0;) angle += pi2;
|
|
18674
|
+
for (; angle > pi2;) angle -= pi2;
|
|
18675
|
+
let x0 = 0,
|
|
18676
|
+
y0 = 0,
|
|
18677
|
+
x1 = 0,
|
|
18678
|
+
y1 = 0;
|
|
18679
|
+
return angle < halfPi ? (x0 = 0, y0 = 1, x1 = Math.sin(angle), y1 = Math.cos(angle)) : angle < pi$1 ? (x0 = 0, y0 = 0, x1 = Math.cos(angle - halfPi), y1 = Math.sin(angle - halfPi)) : angle < pi$1 + halfPi ? (x0 = 1, y0 = 0, x1 = x0 - Math.sin(angle - pi$1), y1 = Math.cos(angle - pi$1)) : (x0 = 1, x1 = x0 - Math.cos(angle - halfPi - pi$1), y1 -= Math.sin(angle - halfPi - pi$1)), {
|
|
18680
|
+
gradient: "linear",
|
|
18681
|
+
x0: x0,
|
|
18682
|
+
y0: y0,
|
|
18683
|
+
x1: x1,
|
|
18684
|
+
y1: y1,
|
|
18685
|
+
stops: colorStops.map(item => ({
|
|
18686
|
+
color: item.value,
|
|
18687
|
+
offset: parseFloat(item.length.value) / 100
|
|
18688
|
+
}))
|
|
18689
|
+
};
|
|
18690
|
+
}
|
|
18691
|
+
}
|
|
18692
|
+
|
|
18459
18693
|
function getScaledStroke(context, width, dpr) {
|
|
18460
18694
|
let strokeWidth = width;
|
|
18461
18695
|
const {
|
|
@@ -18472,7 +18706,7 @@
|
|
|
18472
18706
|
if (!c || !0 === c) return "black";
|
|
18473
18707
|
let result, color;
|
|
18474
18708
|
if (isArray$1(c)) for (let i = 0; i < c.length && (color = c[i], !color); i++);else color = c;
|
|
18475
|
-
return "string" == typeof color ? color : ("linear" === color.gradient ? result = createLinearGradient(context, color, params, offsetX, offsetY) : "conical" === color.gradient ? result = createConicGradient(context, color, params, offsetX, offsetY) : "radial" === color.gradient && (result = createRadialGradient(context, color, params, offsetX, offsetY)), result || "orange");
|
|
18709
|
+
return color = GradientParser.Parse(color), "string" == typeof color ? color : ("linear" === color.gradient ? result = createLinearGradient(context, color, params, offsetX, offsetY) : "conical" === color.gradient ? result = createConicGradient(context, color, params, offsetX, offsetY) : "radial" === color.gradient && (result = createRadialGradient(context, color, params, offsetX, offsetY)), result || "orange");
|
|
18476
18710
|
}
|
|
18477
18711
|
function createLinearGradient(context, color, params) {
|
|
18478
18712
|
let offsetX = arguments.length > 3 && arguments[3] !== undefined ? arguments[3] : 0;
|
|
@@ -19451,7 +19685,7 @@
|
|
|
19451
19685
|
}
|
|
19452
19686
|
if (percent <= 0) return;
|
|
19453
19687
|
let direction;
|
|
19454
|
-
"x" === clipRangeByDimension ? direction = Direction$
|
|
19688
|
+
"x" === clipRangeByDimension ? direction = Direction$1.ROW : "y" === clipRangeByDimension ? direction = Direction$1.COLUMN : "auto" === clipRangeByDimension && (direction = segPath.direction);
|
|
19455
19689
|
const totalDrawLength = percent * segPath.tryUpdateLength(direction);
|
|
19456
19690
|
let drawedLengthUntilLast = 0,
|
|
19457
19691
|
defined0 = !0,
|
|
@@ -19738,8 +19972,8 @@
|
|
|
19738
19972
|
endP = null !== (_a = topCurves[topCurves.length - 1].p3) && void 0 !== _a ? _a : topCurves[topCurves.length - 1].p1,
|
|
19739
19973
|
xTotalLength = abs$1(endP.x - topCurves[0].p0.x),
|
|
19740
19974
|
yTotalLength = abs$1(endP.y - topCurves[0].p0.y);
|
|
19741
|
-
direction = null != direction ? direction : xTotalLength > yTotalLength ? Direction$
|
|
19742
|
-
const totalDrawLength = percent * (direction === Direction$
|
|
19975
|
+
direction = null != direction ? direction : xTotalLength > yTotalLength ? Direction$1.ROW : Direction$1.COLUMN, Number.isFinite(xTotalLength) || (direction = Direction$1.COLUMN), Number.isFinite(yTotalLength) || (direction = Direction$1.ROW);
|
|
19976
|
+
const totalDrawLength = percent * (direction === Direction$1.ROW ? xTotalLength : yTotalLength);
|
|
19743
19977
|
let drawedLengthUntilLast = 0,
|
|
19744
19978
|
lastDefined = !0;
|
|
19745
19979
|
const topList = [],
|
|
@@ -20029,12 +20263,12 @@
|
|
|
20029
20263
|
} = area.attribute;
|
|
20030
20264
|
let endP,
|
|
20031
20265
|
startP,
|
|
20032
|
-
direction = Direction$
|
|
20266
|
+
direction = Direction$1.ROW;
|
|
20033
20267
|
if (segments) {
|
|
20034
20268
|
const endSeg = segments[segments.length - 1];
|
|
20035
20269
|
startP = segments[0].points[0], endP = endSeg.points[endSeg.points.length - 1];
|
|
20036
20270
|
} else startP = points[0], endP = points[points.length - 1];
|
|
20037
|
-
direction = abs$1(endP.x - startP.x) > abs$1(endP.y - startP.y) ? Direction$
|
|
20271
|
+
direction = abs$1(endP.x - startP.x) > abs$1(endP.y - startP.y) ? Direction$1.ROW : Direction$1.COLUMN, drawAreaSegments(context.camera ? context : context.nativeContext, cache, clipRange, {
|
|
20038
20272
|
offsetX: offsetX,
|
|
20039
20273
|
offsetY: offsetY,
|
|
20040
20274
|
offsetZ: offsetZ,
|
|
@@ -20056,7 +20290,7 @@
|
|
|
20056
20290
|
const {
|
|
20057
20291
|
stroke = defaultAttribute && defaultAttribute[1] && defaultAttribute[1].stroke
|
|
20058
20292
|
} = attribute;
|
|
20059
|
-
isArray$1(stroke) && (stroke[0] || stroke[2]) && !1 === stroke[1] && (context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, stroke[0] ? cache.top : cache.bottom, clipRange, direction === Direction$
|
|
20293
|
+
isArray$1(stroke) && (stroke[0] || stroke[2]) && !1 === stroke[1] && (context.beginPath(), drawSegments(context.camera ? context : context.nativeContext, stroke[0] ? cache.top : cache.bottom, clipRange, direction === Direction$1.ROW ? "x" : "y", {
|
|
20060
20294
|
offsetX: offsetX,
|
|
20061
20295
|
offsetY: offsetY,
|
|
20062
20296
|
offsetZ: offsetZ,
|
|
@@ -22005,11 +22239,10 @@
|
|
|
22005
22239
|
container.load(renderModule);
|
|
22006
22240
|
}
|
|
22007
22241
|
|
|
22008
|
-
let loaded$r = !1;
|
|
22009
22242
|
function preLoadAllModule() {
|
|
22010
|
-
|
|
22243
|
+
preLoadAllModule.__loaded || (preLoadAllModule.__loaded = !0, container.load(coreModule), container.load(graphicModule), container.load(renderModule$1), container.load(pickModule), container.load(pluginModule), load$2(container), load$1(container));
|
|
22011
22244
|
}
|
|
22012
|
-
preLoadAllModule();
|
|
22245
|
+
preLoadAllModule.__loaded = !1, preLoadAllModule();
|
|
22013
22246
|
const vglobal = container.get(VGlobal);
|
|
22014
22247
|
application.global = vglobal;
|
|
22015
22248
|
const graphicUtil = container.get(GraphicUtil);
|
|
@@ -22167,7 +22400,7 @@
|
|
|
22167
22400
|
wrapGroup: wrapGroup
|
|
22168
22401
|
} = _ref;
|
|
22169
22402
|
application.global.removeDom(wrapGroup);
|
|
22170
|
-
}),
|
|
22403
|
+
}), "string" == typeof dom ? (nativeDom = new DOMParser().parseFromString(dom, "text/html").firstChild, nativeDom.lastChild && (nativeDom = nativeDom.lastChild.firstChild)) : nativeDom = dom;
|
|
22171
22404
|
const _container = container || (!0 === stage.params.enableHtmlAttribute ? null : stage.params.enableHtmlAttribute);
|
|
22172
22405
|
nativeContainer = _container ? "string" == typeof _container ? application.global.getElementById(_container) : _container : graphic.stage.window.getContainer();
|
|
22173
22406
|
const wrapGroup = application.global.createDom({
|
|
@@ -26053,32 +26286,6 @@
|
|
|
26053
26286
|
SeriesMarkNameEnum["lineLabel"] = "lineLabel";
|
|
26054
26287
|
SeriesMarkNameEnum["areaLabel"] = "areaLabel";
|
|
26055
26288
|
})(exports.SeriesMarkNameEnum || (exports.SeriesMarkNameEnum = {}));
|
|
26056
|
-
const seriesMarkNameSet = new Set(Object.values(exports.SeriesMarkNameEnum));
|
|
26057
|
-
|
|
26058
|
-
var MarkTypeEnum;
|
|
26059
|
-
(function (MarkTypeEnum) {
|
|
26060
|
-
MarkTypeEnum["group"] = "group";
|
|
26061
|
-
MarkTypeEnum["symbol"] = "symbol";
|
|
26062
|
-
MarkTypeEnum["rule"] = "rule";
|
|
26063
|
-
MarkTypeEnum["line"] = "line";
|
|
26064
|
-
MarkTypeEnum["text"] = "text";
|
|
26065
|
-
MarkTypeEnum["rect"] = "rect";
|
|
26066
|
-
MarkTypeEnum["rect3d"] = "rect3d";
|
|
26067
|
-
MarkTypeEnum["image"] = "image";
|
|
26068
|
-
MarkTypeEnum["path"] = "path";
|
|
26069
|
-
MarkTypeEnum["area"] = "area";
|
|
26070
|
-
MarkTypeEnum["arc"] = "arc";
|
|
26071
|
-
MarkTypeEnum["arc3d"] = "arc3d";
|
|
26072
|
-
MarkTypeEnum["polygon"] = "polygon";
|
|
26073
|
-
MarkTypeEnum["pyramid3d"] = "pyramid3d";
|
|
26074
|
-
MarkTypeEnum["boxPlot"] = "boxPlot";
|
|
26075
|
-
MarkTypeEnum["linkPath"] = "linkPath";
|
|
26076
|
-
MarkTypeEnum["progressArc"] = "progressArc";
|
|
26077
|
-
MarkTypeEnum["cell"] = "cell";
|
|
26078
|
-
MarkTypeEnum["ripple"] = "ripple";
|
|
26079
|
-
MarkTypeEnum["component"] = "component";
|
|
26080
|
-
MarkTypeEnum["label"] = "label";
|
|
26081
|
-
})(MarkTypeEnum || (MarkTypeEnum = {}));
|
|
26082
26289
|
|
|
26083
26290
|
const PREFIX = '__VCHART';
|
|
26084
26291
|
const DEFAULT_CHART_WIDTH = 500;
|
|
@@ -26815,7 +27022,7 @@
|
|
|
26815
27022
|
encodeGraphic(attrs) {
|
|
26816
27023
|
this.coordinateTransformEncode(this.items);
|
|
26817
27024
|
const graphicAttributes = this.transformElementItems(this.items, this.mark.markType);
|
|
26818
|
-
attrs && Object.assign(graphicAttributes, attrs), this.graphicItem ? (this.graphicItem.clearStates(), this.graphicItem.states = {}, this.graphicItem.stateProxy = null, this.applyGraphicAttributes(graphicAttributes)) : this.initGraphicItem(graphicAttributes), this.diffState !== DiffState.enter && this.diffState !== DiffState.update || !this.states.length || this.useStates(this.states), this.mark.markType === GrammarMarkType.shape && (this.graphicItem.datum = this.items[0].datum), this.items.forEach(item => {
|
|
27025
|
+
attrs && (this.mark.isCollectionMark() && delete attrs.defined, Object.assign(graphicAttributes, attrs)), this.graphicItem ? (this.graphicItem.clearStates(), this.graphicItem.states = {}, this.graphicItem.stateProxy = null, this.applyGraphicAttributes(graphicAttributes)) : this.initGraphicItem(graphicAttributes), this.diffState !== DiffState.enter && this.diffState !== DiffState.update || !this.states.length || this.useStates(this.states), this.mark.markType === GrammarMarkType.shape && (this.graphicItem.datum = this.items[0].datum), this.items.forEach(item => {
|
|
26819
27026
|
item.nextAttrs = {};
|
|
26820
27027
|
}), this._setCustomizedShape();
|
|
26821
27028
|
}
|
|
@@ -28015,10 +28222,11 @@
|
|
|
28015
28222
|
};
|
|
28016
28223
|
DefaultCanvasGroupPicker = __decorate$Q([injectable()], DefaultCanvasGroupPicker);
|
|
28017
28224
|
|
|
28018
|
-
|
|
28019
|
-
|
|
28020
|
-
loaded$q || (loaded$q = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
|
|
28225
|
+
const m$2 = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28226
|
+
m$2.__vloaded || (m$2.__vloaded = !0, bind(CanvasGroupPicker).to(DefaultCanvasGroupPicker).inSingletonScope(), bind(CanvasPickerContribution).toService(CanvasGroupPicker), bindContributionProvider(bind, CanvasPickerContribution));
|
|
28021
28227
|
});
|
|
28228
|
+
m$2.__vloaded = !1;
|
|
28229
|
+
var canvasModule = m$2;
|
|
28022
28230
|
|
|
28023
28231
|
const canvasPickerModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28024
28232
|
isBound(DefaultCanvasPickerService) || bind(DefaultCanvasPickerService).toSelf().inSingletonScope(), isBound(PickerService) ? rebind(PickerService).toService(DefaultCanvasPickerService) : bind(PickerService).toService(DefaultCanvasPickerService);
|
|
@@ -28279,7 +28487,7 @@
|
|
|
28279
28487
|
}
|
|
28280
28488
|
getNativeAABBBounds(_dom) {
|
|
28281
28489
|
let dom = _dom;
|
|
28282
|
-
if ("string" == typeof _dom && (dom = new DOMParser().parseFromString(_dom, "text/html").firstChild), dom.getBoundingClientRect) {
|
|
28490
|
+
if ("string" == typeof _dom && (dom = new DOMParser().parseFromString(_dom, "text/html").firstChild, dom.lastChild && (dom = dom.lastChild.firstChild)), dom.getBoundingClientRect) {
|
|
28283
28491
|
const b = dom.getBoundingClientRect();
|
|
28284
28492
|
return new DynamicB(b);
|
|
28285
28493
|
}
|
|
@@ -28392,15 +28600,15 @@
|
|
|
28392
28600
|
};
|
|
28393
28601
|
BrowserEnvContribution = __decorate$O([injectable(), __metadata$D("design:paramtypes", [])], BrowserEnvContribution);
|
|
28394
28602
|
|
|
28395
|
-
let isBrowserBound = !1;
|
|
28396
28603
|
const browserEnvModule = new ContainerModule(bind => {
|
|
28397
|
-
isBrowserBound || (isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
|
|
28604
|
+
browserEnvModule.isBrowserBound || (browserEnvModule.isBrowserBound = !0, bind(BrowserEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(BrowserEnvContribution));
|
|
28398
28605
|
});
|
|
28399
|
-
|
|
28606
|
+
browserEnvModule.isBrowserBound = !1;
|
|
28400
28607
|
function loadBrowserEnv(container) {
|
|
28401
28608
|
let loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
28402
|
-
|
|
28609
|
+
loadBrowserEnv.__loaded || (loadBrowserEnv.__loaded = !0, container.load(browserEnvModule), container.load(browserCanvasModule), container.load(browserWindowModule), loadPicker && loadCanvasPicker(container));
|
|
28403
28610
|
}
|
|
28611
|
+
loadBrowserEnv.__loaded = !1;
|
|
28404
28612
|
|
|
28405
28613
|
var __decorate$N = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28406
28614
|
var d,
|
|
@@ -28663,10 +28871,11 @@
|
|
|
28663
28871
|
};
|
|
28664
28872
|
DefaultMathPickerService = __decorate$K([injectable(), __param$r(0, inject(ContributionProvider)), __param$r(0, named(MathPickerContribution)), __param$r(1, inject(ContributionProvider)), __param$r(1, named(PickItemInterceptor)), __metadata$A("design:paramtypes", [Object, Object])], DefaultMathPickerService);
|
|
28665
28873
|
|
|
28666
|
-
|
|
28667
|
-
|
|
28668
|
-
loaded$o || (loaded$o = !0, bindContributionProvider(bind, MathPickerContribution));
|
|
28874
|
+
const m$1 = new ContainerModule(bind => {
|
|
28875
|
+
m$1.__vloaded || (m$1.__vloaded = !0, bindContributionProvider(bind, MathPickerContribution));
|
|
28669
28876
|
});
|
|
28877
|
+
m$1.__vloaded = !1;
|
|
28878
|
+
var mathModule = m$1;
|
|
28670
28879
|
|
|
28671
28880
|
const mathPickerModule = new ContainerModule((bind, unbind, isBound, rebind) => {
|
|
28672
28881
|
isBound(DefaultMathPickerService) || bind(DefaultMathPickerService).toSelf().inSingletonScope(), isBound(PickerService) ? rebind(PickerService).toService(DefaultMathPickerService) : bind(PickerService).toService(DefaultMathPickerService);
|
|
@@ -28781,15 +28990,15 @@
|
|
|
28781
28990
|
};
|
|
28782
28991
|
FeishuEnvContribution = __decorate$J([injectable(), __metadata$z("design:paramtypes", [])], FeishuEnvContribution);
|
|
28783
28992
|
|
|
28784
|
-
let isFeishuBound = !1;
|
|
28785
28993
|
const feishuEnvModule = new ContainerModule(bind => {
|
|
28786
|
-
isFeishuBound || (isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
|
|
28994
|
+
feishuEnvModule.isFeishuBound || (feishuEnvModule.isFeishuBound = !0, bind(FeishuEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(FeishuEnvContribution));
|
|
28787
28995
|
});
|
|
28788
|
-
|
|
28996
|
+
feishuEnvModule.isFeishuBound = !1;
|
|
28789
28997
|
function loadFeishuEnv(container) {
|
|
28790
28998
|
let loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
28791
|
-
|
|
28999
|
+
loadFeishuEnv.__loaded || (loadFeishuEnv.__loaded = !0, container.load(feishuEnvModule), container.load(feishuCanvasModule), container.load(feishuWindowModule), loadPicker && loadMathPicker(container));
|
|
28792
29000
|
}
|
|
29001
|
+
loadFeishuEnv.__loaded = !1;
|
|
28793
29002
|
|
|
28794
29003
|
var __decorate$I = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
28795
29004
|
var d,
|
|
@@ -29158,15 +29367,15 @@
|
|
|
29158
29367
|
};
|
|
29159
29368
|
LynxEnvContribution = __decorate$F([injectable(), __metadata$w("design:paramtypes", [])], LynxEnvContribution);
|
|
29160
29369
|
|
|
29161
|
-
let isLynxBound = !1;
|
|
29162
29370
|
const lynxEnvModule = new ContainerModule(bind => {
|
|
29163
|
-
isLynxBound || (isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
|
|
29371
|
+
lynxEnvModule.isLynxBound || (lynxEnvModule.isLynxBound = !0, bind(LynxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(LynxEnvContribution));
|
|
29164
29372
|
});
|
|
29165
|
-
|
|
29373
|
+
lynxEnvModule.isLynxBound = !1;
|
|
29166
29374
|
function loadLynxEnv(container) {
|
|
29167
29375
|
let loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
29168
|
-
|
|
29376
|
+
loadLynxEnv.__loaded || (loadLynxEnv.__loaded = !0, container.load(lynxEnvModule), container.load(lynxCanvasModule), container.load(lynxWindowModule), loadPicker && loadMathPicker(container));
|
|
29169
29377
|
}
|
|
29378
|
+
loadLynxEnv.__loaded = !1;
|
|
29170
29379
|
|
|
29171
29380
|
var __decorate$E = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29172
29381
|
var d,
|
|
@@ -29408,14 +29617,14 @@
|
|
|
29408
29617
|
};
|
|
29409
29618
|
NodeEnvContribution = __decorate$B([injectable()], NodeEnvContribution);
|
|
29410
29619
|
|
|
29411
|
-
let isNodeBound = !1;
|
|
29412
29620
|
const nodeEnvModule = new ContainerModule(bind => {
|
|
29413
|
-
isNodeBound || (isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
|
|
29621
|
+
nodeEnvModule.isNodeBound || (nodeEnvModule.isNodeBound = !0, bind(NodeEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(NodeEnvContribution));
|
|
29414
29622
|
});
|
|
29415
|
-
|
|
29623
|
+
nodeEnvModule.isNodeBound = !1;
|
|
29416
29624
|
function loadNodeEnv(container) {
|
|
29417
|
-
|
|
29625
|
+
loadNodeEnv.__loaded || (loadNodeEnv.__loaded = !0, container.load(nodeEnvModule), container.load(nodeCanvasModule), container.load(nodeWindowModule));
|
|
29418
29626
|
}
|
|
29627
|
+
loadNodeEnv.__loaded = !1;
|
|
29419
29628
|
|
|
29420
29629
|
var __decorate$A = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29421
29630
|
var d,
|
|
@@ -29804,15 +30013,15 @@
|
|
|
29804
30013
|
};
|
|
29805
30014
|
TaroEnvContribution = __decorate$x([injectable(), __metadata$q("design:paramtypes", [])], TaroEnvContribution);
|
|
29806
30015
|
|
|
29807
|
-
let isTaroBound = !1;
|
|
29808
30016
|
const taroEnvModule = new ContainerModule(bind => {
|
|
29809
|
-
isTaroBound || (isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
|
|
30017
|
+
taroEnvModule.isTaroBound || (taroEnvModule.isTaroBound = !0, bind(TaroEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(TaroEnvContribution));
|
|
29810
30018
|
});
|
|
29811
|
-
|
|
30019
|
+
taroEnvModule.isTaroBound = !1;
|
|
29812
30020
|
function loadTaroEnv(container) {
|
|
29813
30021
|
let loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
29814
|
-
|
|
30022
|
+
loadTaroEnv.__loaded || (loadTaroEnv.__loaded = !0, container.load(taroEnvModule), container.load(taroCanvasModule), container.load(taroWindowModule), loadPicker && loadMathPicker(container));
|
|
29815
30023
|
}
|
|
30024
|
+
loadTaroEnv.__loaded = !1;
|
|
29816
30025
|
|
|
29817
30026
|
var __decorate$w = undefined && undefined.__decorate || function (decorators, target, key, desc) {
|
|
29818
30027
|
var d,
|
|
@@ -30126,25 +30335,25 @@
|
|
|
30126
30335
|
};
|
|
30127
30336
|
WxEnvContribution = __decorate$t([injectable(), __metadata$n("design:paramtypes", [])], WxEnvContribution);
|
|
30128
30337
|
|
|
30129
|
-
let isWxBound = !1;
|
|
30130
30338
|
const wxEnvModule = new ContainerModule(bind => {
|
|
30131
|
-
|
|
30339
|
+
wxEnvModule._isWxBound || (wxEnvModule._isWxBound = !0, bind(WxEnvContribution).toSelf().inSingletonScope(), bind(EnvContribution).toService(WxEnvContribution));
|
|
30132
30340
|
});
|
|
30133
|
-
|
|
30341
|
+
wxEnvModule._isWxBound = !1;
|
|
30134
30342
|
function loadWxEnv(container) {
|
|
30135
30343
|
let loadPicker = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : !0;
|
|
30136
|
-
|
|
30344
|
+
loadWxEnv.__loaded || (loadWxEnv.__loaded = !0, container.load(wxEnvModule), container.load(wxCanvasModule), container.load(wxWindowModule), loadPicker && loadMathPicker(container));
|
|
30137
30345
|
}
|
|
30346
|
+
loadWxEnv.__loaded = !1;
|
|
30138
30347
|
|
|
30139
30348
|
function loadAllEnv(container) {
|
|
30140
30349
|
loadAllModule(container);
|
|
30141
30350
|
}
|
|
30142
|
-
let loaded$i = !1;
|
|
30143
30351
|
function loadAllModule(container) {
|
|
30144
|
-
|
|
30352
|
+
loadAllModule.__loaded || (loadAllModule.__loaded = !0, loadBrowserEnv(container, !1), loadFeishuEnv(container, !1), loadLynxEnv(container, !1), loadNodeEnv(container), loadTaroEnv(container, !1), loadWxEnv(container, !1), loadCanvasPicker(container), vglobal.hooks.onSetEnv.tap("loadMathPicker", (lastEnv, env) => {
|
|
30145
30353
|
"browser" !== env && loadMathPicker(container);
|
|
30146
30354
|
}));
|
|
30147
30355
|
}
|
|
30356
|
+
loadAllModule.__loaded = !1;
|
|
30148
30357
|
function initAllEnv() {
|
|
30149
30358
|
loadAllEnv(container);
|
|
30150
30359
|
}
|
|
@@ -31455,95 +31664,113 @@
|
|
|
31455
31664
|
|
|
31456
31665
|
const browser = isBrowserEnv();
|
|
31457
31666
|
|
|
31458
|
-
|
|
31459
|
-
|
|
31460
|
-
loaded$h || (loaded$h = !0, registerArcGraphic$1(), container.load(arcModule), container.load(browser ? arcCanvasPickModule : arcMathPickModule));
|
|
31667
|
+
function _registerArc() {
|
|
31668
|
+
_registerArc.__loaded || (_registerArc.__loaded = !0, registerArcGraphic$1(), container.load(arcModule), container.load(browser ? arcCanvasPickModule : arcMathPickModule));
|
|
31461
31669
|
}
|
|
31670
|
+
_registerArc.__loaded = !1;
|
|
31671
|
+
const registerArc = _registerArc;
|
|
31462
31672
|
|
|
31463
|
-
|
|
31464
|
-
|
|
31465
|
-
loaded$g || (loaded$g = !0, registerArc3dGraphic$1(), container.load(arc3dModule), container.load(arc3dCanvasPickModule));
|
|
31673
|
+
function _registerArc3d() {
|
|
31674
|
+
_registerArc3d.__loaded || (_registerArc3d.__loaded = !0, registerArc3dGraphic$1(), container.load(arc3dModule), container.load(arc3dCanvasPickModule));
|
|
31466
31675
|
}
|
|
31676
|
+
_registerArc3d.__loaded = !1;
|
|
31677
|
+
const registerArc3d = _registerArc3d;
|
|
31467
31678
|
|
|
31468
|
-
|
|
31469
|
-
|
|
31470
|
-
loaded$f || (loaded$f = !0, registerAreaGraphic$1(), container.load(areaModule), container.load(browser ? areaCanvasPickModule : areaMathPickModule));
|
|
31679
|
+
function _registerArea() {
|
|
31680
|
+
_registerArea.__loaded || (_registerArea.__loaded = !0, registerAreaGraphic$1(), container.load(areaModule), container.load(browser ? areaCanvasPickModule : areaMathPickModule));
|
|
31471
31681
|
}
|
|
31682
|
+
_registerArea.__loaded = !1;
|
|
31683
|
+
const registerArea = _registerArea;
|
|
31472
31684
|
|
|
31473
|
-
|
|
31474
|
-
|
|
31475
|
-
loaded$e || (loaded$e = !0, registerCircleGraphic(), container.load(circleModule), container.load(browser ? circleCanvasPickModule : circleMathPickModule));
|
|
31685
|
+
function _registerCircle() {
|
|
31686
|
+
_registerCircle.__loaded || (_registerCircle.__loaded = !0, registerCircleGraphic(), container.load(circleModule), container.load(browser ? circleCanvasPickModule : circleMathPickModule));
|
|
31476
31687
|
}
|
|
31688
|
+
_registerCircle.__loaded = !1;
|
|
31689
|
+
const registerCircle = _registerCircle;
|
|
31477
31690
|
|
|
31478
|
-
|
|
31479
|
-
|
|
31480
|
-
loaded$d || (loaded$d = !0, registerGlyphGraphic$1(), container.load(glyphModule), container.load(browser ? glyphCanvasPickModule : glyphMathPickModule));
|
|
31691
|
+
function _registerGlyph() {
|
|
31692
|
+
_registerGlyph.__loaded || (_registerGlyph.__loaded = !0, registerGlyphGraphic$1(), container.load(glyphModule), container.load(browser ? glyphCanvasPickModule : glyphMathPickModule));
|
|
31481
31693
|
}
|
|
31694
|
+
_registerGlyph.__loaded = !1;
|
|
31695
|
+
const registerGlyph = _registerGlyph;
|
|
31482
31696
|
|
|
31483
|
-
|
|
31484
|
-
|
|
31485
|
-
loaded$c || (loaded$c = !0, registerGroupGraphic$1());
|
|
31697
|
+
function _registerGroup() {
|
|
31698
|
+
_registerGroup.__loaded || (_registerGroup.__loaded = !0, registerGroupGraphic$1());
|
|
31486
31699
|
}
|
|
31700
|
+
_registerGroup.__loaded = !1;
|
|
31701
|
+
const registerGroup = _registerGroup;
|
|
31487
31702
|
|
|
31488
|
-
|
|
31489
|
-
|
|
31490
|
-
loaded$b || (loaded$b = !0, registerImageGraphic$1(), container.load(imageModule), container.load(browser ? imageCanvasPickModule : imageMathPickModule));
|
|
31703
|
+
function _registerImage() {
|
|
31704
|
+
_registerImage.__loaded || (_registerImage.__loaded = !0, registerImageGraphic$1(), container.load(imageModule), container.load(browser ? imageCanvasPickModule : imageMathPickModule));
|
|
31491
31705
|
}
|
|
31706
|
+
_registerImage.__loaded = !1;
|
|
31707
|
+
const registerImage = _registerImage;
|
|
31492
31708
|
|
|
31493
|
-
|
|
31494
|
-
|
|
31495
|
-
loaded$a || (loaded$a = !0, registerLineGraphic$1(), container.load(lineModule), container.load(browser ? lineCanvasPickModule : lineMathPickModule));
|
|
31709
|
+
function _registerLine() {
|
|
31710
|
+
_registerLine.__loaded || (_registerLine.__loaded = !0, registerLineGraphic$1(), container.load(lineModule), container.load(browser ? lineCanvasPickModule : lineMathPickModule));
|
|
31496
31711
|
}
|
|
31712
|
+
_registerLine.__loaded = !1;
|
|
31713
|
+
const registerLine = _registerLine;
|
|
31497
31714
|
|
|
31498
|
-
|
|
31499
|
-
|
|
31500
|
-
loaded$9 || (loaded$9 = !0, registerPathGraphic$1(), container.load(pathModule), container.load(browser ? pathCanvasPickModule : pathMathPickModule));
|
|
31715
|
+
function _registerPath() {
|
|
31716
|
+
_registerPath.__loaded || (_registerPath.__loaded = !0, registerPathGraphic$1(), container.load(pathModule), container.load(browser ? pathCanvasPickModule : pathMathPickModule));
|
|
31501
31717
|
}
|
|
31718
|
+
_registerPath.__loaded = !1;
|
|
31719
|
+
const registerPath = _registerPath;
|
|
31502
31720
|
|
|
31503
|
-
|
|
31504
|
-
|
|
31505
|
-
loaded$8 || (loaded$8 = !0, registerPolygonGraphic$1(), container.load(polygonModule), container.load(browser ? polygonCanvasPickModule : polygonMathPickModule));
|
|
31721
|
+
function _registerPolygon() {
|
|
31722
|
+
_registerPolygon.__loaded || (_registerPolygon.__loaded = !0, registerPolygonGraphic$1(), container.load(polygonModule), container.load(browser ? polygonCanvasPickModule : polygonMathPickModule));
|
|
31506
31723
|
}
|
|
31724
|
+
_registerPolygon.__loaded = !1;
|
|
31725
|
+
const registerPolygon = _registerPolygon;
|
|
31507
31726
|
|
|
31508
|
-
|
|
31509
|
-
|
|
31510
|
-
loaded$7 || (loaded$7 = !0, registerPyramid3dGraphic$1(), container.load(pyramid3dModule), container.load(pyramid3dCanvasPickModule));
|
|
31727
|
+
function _registerPyramid3d() {
|
|
31728
|
+
_registerPyramid3d.__loaded || (_registerPyramid3d.__loaded = !0, registerPyramid3dGraphic$1(), container.load(pyramid3dModule), container.load(pyramid3dCanvasPickModule));
|
|
31511
31729
|
}
|
|
31730
|
+
_registerPyramid3d.__loaded = !1;
|
|
31731
|
+
const registerPyramid3d = _registerPyramid3d;
|
|
31512
31732
|
|
|
31513
|
-
|
|
31514
|
-
|
|
31515
|
-
loaded$6 || (loaded$6 = !0, registerRectGraphic$1(), container.load(rectModule), container.load(browser ? rectCanvasPickModule : rectMathPickModule));
|
|
31733
|
+
function _registerRect() {
|
|
31734
|
+
_registerRect.__loaded || (_registerRect.__loaded = !0, registerRectGraphic$1(), container.load(rectModule), container.load(browser ? rectCanvasPickModule : rectMathPickModule));
|
|
31516
31735
|
}
|
|
31736
|
+
_registerRect.__loaded = !1;
|
|
31737
|
+
const registerRect = _registerRect;
|
|
31517
31738
|
|
|
31518
|
-
|
|
31519
|
-
|
|
31520
|
-
loaded$5 || (loaded$5 = !0, registerRect3dGraphic$1(), container.load(rect3dModule), container.load(rect3dCanvasPickModule));
|
|
31739
|
+
function _registerRect3d() {
|
|
31740
|
+
_registerRect3d.__loaded || (_registerRect3d.__loaded = !0, registerRect3dGraphic$1(), container.load(rect3dModule), container.load(rect3dCanvasPickModule));
|
|
31521
31741
|
}
|
|
31742
|
+
_registerRect3d.__loaded = !1;
|
|
31743
|
+
const registerRect3d = _registerRect3d;
|
|
31522
31744
|
|
|
31523
|
-
|
|
31524
|
-
|
|
31525
|
-
loaded$4 || (loaded$4 = !0, registerRichtextGraphic(), container.load(richtextModule), container.load(browser ? richtextCanvasPickModule : richTextMathPickModule));
|
|
31745
|
+
function _registerRichtext() {
|
|
31746
|
+
_registerRichtext.__loaded || (_registerRichtext.__loaded = !0, registerRichtextGraphic(), container.load(richtextModule), container.load(browser ? richtextCanvasPickModule : richTextMathPickModule));
|
|
31526
31747
|
}
|
|
31748
|
+
_registerRichtext.__loaded = !1;
|
|
31749
|
+
const registerRichtext = _registerRichtext;
|
|
31527
31750
|
|
|
31528
|
-
|
|
31529
|
-
|
|
31530
|
-
loaded$3 || (loaded$3 = !0, registerShadowRootGraphic());
|
|
31751
|
+
function _registerShadowRoot() {
|
|
31752
|
+
_registerShadowRoot.__loaded || (_registerShadowRoot.__loaded = !0, registerShadowRootGraphic());
|
|
31531
31753
|
}
|
|
31754
|
+
_registerShadowRoot.__loaded = !1;
|
|
31755
|
+
const registerShadowRoot = _registerShadowRoot;
|
|
31532
31756
|
|
|
31533
|
-
|
|
31534
|
-
|
|
31535
|
-
loaded$2 || (loaded$2 = !0, registerSymbolGraphic$1(), container.load(symbolModule), container.load(browser ? symbolCanvasPickModule : symbolMathPickModule));
|
|
31757
|
+
function _registerSymbol() {
|
|
31758
|
+
_registerSymbol.__loaded || (_registerSymbol.__loaded = !0, registerSymbolGraphic$1(), container.load(symbolModule), container.load(browser ? symbolCanvasPickModule : symbolMathPickModule));
|
|
31536
31759
|
}
|
|
31760
|
+
_registerSymbol.__loaded = !1;
|
|
31761
|
+
const registerSymbol = _registerSymbol;
|
|
31537
31762
|
|
|
31538
|
-
|
|
31539
|
-
|
|
31540
|
-
loaded$1 || (loaded$1 = !0, registerTextGraphic$1(), container.load(textModule), container.load(browser ? textCanvasPickModule : textMathPickModule));
|
|
31763
|
+
function _registerText() {
|
|
31764
|
+
_registerText.__loaded || (_registerText.__loaded = !0, registerTextGraphic$1(), container.load(textModule), container.load(browser ? textCanvasPickModule : textMathPickModule));
|
|
31541
31765
|
}
|
|
31766
|
+
_registerText.__loaded = !1;
|
|
31767
|
+
const registerText = _registerText;
|
|
31542
31768
|
|
|
31543
|
-
|
|
31544
|
-
|
|
31545
|
-
loaded || (loaded = !0, registerWrapTextGraphic());
|
|
31769
|
+
function _registerWrapText() {
|
|
31770
|
+
_registerWrapText.__loaded || (_registerWrapText.__loaded = !0, registerWrapTextGraphic());
|
|
31546
31771
|
}
|
|
31772
|
+
_registerWrapText.__loaded = !1;
|
|
31773
|
+
const registerWrapText = _registerWrapText;
|
|
31547
31774
|
|
|
31548
31775
|
function loadScrollbarComponent() {
|
|
31549
31776
|
registerGroup(), registerRect();
|
|
@@ -39544,7 +39771,7 @@
|
|
|
39544
39771
|
}, textStyle);
|
|
39545
39772
|
this._mainTitle = group.createOrUpdateChild("mainTitle", attr, "richtext");
|
|
39546
39773
|
} else isValid$1(text) && (this._mainTitle = group.createOrUpdateChild("mainTitle", Object.assign(Object.assign({
|
|
39547
|
-
text: [text]
|
|
39774
|
+
text: isArray$1(text) ? text : [text]
|
|
39548
39775
|
}, textStyle), {
|
|
39549
39776
|
maxLineWidth: null !== (_t = textStyle.maxLineWidth) && void 0 !== _t ? _t : width,
|
|
39550
39777
|
heightLimit: textStyle.heightLimit,
|
|
@@ -39585,7 +39812,7 @@
|
|
|
39585
39812
|
}, subtextStyle);
|
|
39586
39813
|
this._subTitle = group.createOrUpdateChild("subTitle", attr, "richtext");
|
|
39587
39814
|
} else isValid$1(subtext) && (this._subTitle = group.createOrUpdateChild("subTitle", Object.assign(Object.assign({
|
|
39588
|
-
text: [subtext]
|
|
39815
|
+
text: isArray$1(subtext) ? subtext : [subtext]
|
|
39589
39816
|
}, subtextStyle), {
|
|
39590
39817
|
maxLineWidth: null !== (_12 = subtextStyle.maxLineWidth) && void 0 !== _12 ? _12 : width,
|
|
39591
39818
|
heightLimit: subtextStyle.heightLimit,
|
|
@@ -42433,7 +42660,7 @@
|
|
|
42433
42660
|
const computePoints = isValidPointsChannel(fromKeys, element.mark.markType) && !isValid$1(from.segments);
|
|
42434
42661
|
if (computePoints) {
|
|
42435
42662
|
const items = element.items.map(item => Object.assign({}, item, {
|
|
42436
|
-
nextAttrs: from
|
|
42663
|
+
nextAttrs: Object.assign({}, from)
|
|
42437
42664
|
}));
|
|
42438
42665
|
attributes.from = element.transformElementItems(items, element.mark.markType, computePoints);
|
|
42439
42666
|
}
|
|
@@ -42447,7 +42674,7 @@
|
|
|
42447
42674
|
const computePoints = isValidPointsChannel(toKeys, element.mark.markType) && !isValid$1(to.segments);
|
|
42448
42675
|
if (computePoints) {
|
|
42449
42676
|
const items = element.items.map(item => Object.assign({}, item, {
|
|
42450
|
-
nextAttrs: to
|
|
42677
|
+
nextAttrs: Object.assign({}, to)
|
|
42451
42678
|
}));
|
|
42452
42679
|
attributes.to = element.transformElementItems(items, element.mark.markType, computePoints);
|
|
42453
42680
|
}
|
|
@@ -43275,14 +43502,8 @@
|
|
|
43275
43502
|
if (!this._groupKeys || !groupEncode) return;
|
|
43276
43503
|
const res = {};
|
|
43277
43504
|
return this._groupKeys.forEach(key => {
|
|
43278
|
-
var _a;
|
|
43279
43505
|
const el = elements.find(el => el.groupKey === key);
|
|
43280
|
-
|
|
43281
|
-
const nextAttrs = {},
|
|
43282
|
-
items = [Object.assign({}, null === (_a = el.items) || void 0 === _a ? void 0 : _a[0], {
|
|
43283
|
-
nextAttrs: nextAttrs
|
|
43284
|
-
})];
|
|
43285
|
-
invokeEncoderToItems(el, items, groupEncode, parameters), res[key] = nextAttrs;
|
|
43506
|
+
el && (res[key] = invokeEncoder(groupEncode, el.items && el.items[0] && el.items[0].datum, el, parameters));
|
|
43286
43507
|
}), res;
|
|
43287
43508
|
}
|
|
43288
43509
|
evaluateEncode(elements, encoders, parameters) {
|
|
@@ -48187,72 +48408,72 @@
|
|
|
48187
48408
|
};
|
|
48188
48409
|
|
|
48189
48410
|
const baseSeriesMark = {
|
|
48190
|
-
[
|
|
48411
|
+
["label"]: { name: "label", type: "text" }
|
|
48191
48412
|
};
|
|
48192
48413
|
const RECT_X = `${PREFIX}_rect_x`;
|
|
48193
48414
|
const RECT_X1 = `${PREFIX}_rect_x1`;
|
|
48194
48415
|
const RECT_Y = `${PREFIX}_rect_y`;
|
|
48195
48416
|
const RECT_Y1 = `${PREFIX}_rect_y1`;
|
|
48196
48417
|
|
|
48197
|
-
const barSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48198
|
-
const bar3dSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48418
|
+
const barSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["bar"]: { name: "bar", type: "rect" }, ["barBackground"]: { name: "barBackground", type: "rect" } });
|
|
48419
|
+
const bar3dSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["bar3d"]: { name: "bar3d", type: "rect3d" } });
|
|
48199
48420
|
|
|
48200
48421
|
const lineLikeSeriesMark = {
|
|
48201
|
-
[
|
|
48202
|
-
[
|
|
48422
|
+
["point"]: { name: "point", type: "symbol" },
|
|
48423
|
+
["line"]: { name: "line", type: "line" }
|
|
48203
48424
|
};
|
|
48204
48425
|
|
|
48205
48426
|
const lineSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), lineLikeSeriesMark);
|
|
48206
48427
|
|
|
48207
|
-
const scatterSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48428
|
+
const scatterSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["point"]: { name: "point", type: "symbol" } });
|
|
48208
48429
|
|
|
48209
|
-
const areaSeriesMark = Object.assign(Object.assign(Object.assign({}, baseSeriesMark), lineLikeSeriesMark), { [
|
|
48430
|
+
const areaSeriesMark = Object.assign(Object.assign(Object.assign({}, baseSeriesMark), lineLikeSeriesMark), { ["area"]: { name: "area", type: "area" } });
|
|
48210
48431
|
|
|
48211
|
-
const radarSeriesMark = Object.assign(Object.assign(Object.assign({}, baseSeriesMark), lineLikeSeriesMark), { [
|
|
48432
|
+
const radarSeriesMark = Object.assign(Object.assign(Object.assign({}, baseSeriesMark), lineLikeSeriesMark), { ["area"]: { name: "area", type: "area" } });
|
|
48212
48433
|
|
|
48213
|
-
const pieSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48214
|
-
const pie3dSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48434
|
+
const pieSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["pie"]: { name: "pie", type: "arc" }, ["labelLine"]: { name: "labelLine", type: "path" } });
|
|
48435
|
+
const pie3dSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["pie3d"]: { name: "pie3d", type: "arc3d" }, ["labelLine"]: { name: "labelLine", type: "path" } });
|
|
48215
48436
|
|
|
48216
|
-
const roseSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48437
|
+
const roseSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["rose"]: { name: "rose", type: "arc" } });
|
|
48217
48438
|
|
|
48218
|
-
const mapSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48439
|
+
const mapSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["area"]: { name: "area", type: "path" } });
|
|
48219
48440
|
|
|
48220
|
-
const progressLikeSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48441
|
+
const progressLikeSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["group"]: { name: "group", type: "group" } });
|
|
48221
48442
|
|
|
48222
|
-
const circularProgressSeriesMark = Object.assign(Object.assign({}, progressLikeSeriesMark), { [
|
|
48443
|
+
const circularProgressSeriesMark = Object.assign(Object.assign({}, progressLikeSeriesMark), { ["track"]: { name: "track", type: "progressArc" }, ["progress"]: { name: "progress", type: "progressArc" } });
|
|
48223
48444
|
|
|
48224
|
-
const linkSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48445
|
+
const linkSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["group"]: { name: "group", type: "group" }, ["link"]: { name: "link", type: "rule" }, ["arrow"]: { name: "arrow", type: "symbol" } });
|
|
48225
48446
|
|
|
48226
|
-
const dotSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48447
|
+
const dotSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["group"]: { name: "group", type: "group" }, ["grid"]: { name: "grid", type: "rule" }, ["gridBackground"]: { name: "gridBackground", type: "rect" }, ["dot"]: { name: "dot", type: "symbol" }, ["title"]: { name: "title", type: "text" }, ["subTitle"]: { name: "subTitle", type: "text" }, ["symbol"]: { name: "symbol", type: "symbol" } });
|
|
48227
48448
|
|
|
48228
|
-
const wordCloudSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48449
|
+
const wordCloudSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["word"]: { name: "word", type: "text" }, ["fillingWord"]: { name: "fillingWord", type: "text" } });
|
|
48229
48450
|
|
|
48230
|
-
const funnelSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48231
|
-
const funnel3dSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48451
|
+
const funnelSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["funnel"]: { name: "funnel", type: "polygon" }, ["transform"]: { name: "transform", type: "polygon" }, ["transformLabel"]: { name: "transformLabel", type: "text" }, ["outerLabel"]: { name: "outerLabel", type: "text" }, ["outerLabelLine"]: { name: "outerLabelLine", type: "rule" } });
|
|
48452
|
+
const funnel3dSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["funnel3d"]: { name: "funnel3d", type: "pyramid3d" }, ["transform3d"]: { name: "transform3d", type: "pyramid3d" }, ["transformLabel"]: { name: "transformLabel", type: "text" }, ["outerLabel"]: { name: "outerLabel", type: "text" }, ["outerLabelLine"]: { name: "outerLabelLine", type: "rule" } });
|
|
48232
48453
|
|
|
48233
|
-
const linearProgressSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48454
|
+
const linearProgressSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["track"]: { name: "track", type: "rect" }, ["progress"]: { name: "progress", type: "rect" }, ["group"]: { name: "group", type: "group" } });
|
|
48234
48455
|
|
|
48235
|
-
const waterfallSeriesMark = Object.assign(Object.assign({}, barSeriesMark), { [
|
|
48456
|
+
const waterfallSeriesMark = Object.assign(Object.assign({}, barSeriesMark), { ["leaderLine"]: { name: "leaderLine", type: "rule" }, ["stackLabel"]: { name: "stackLabel", type: "text" } });
|
|
48236
48457
|
|
|
48237
|
-
const boxPlotSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48458
|
+
const boxPlotSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["boxPlot"]: { name: "boxPlot", type: "boxPlot" }, ["outlier"]: { name: "outlier", type: "symbol" } });
|
|
48238
48459
|
|
|
48239
|
-
const treemapSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48460
|
+
const treemapSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["nonLeaf"]: { name: "nonLeaf", type: "rect" }, ["leaf"]: { name: "leaf", type: "rect" }, ["nonLeafLabel"]: { name: "nonLeafLabel", type: "text" } });
|
|
48240
48461
|
|
|
48241
|
-
const sankeySeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48462
|
+
const sankeySeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["node"]: { name: "node", type: "rect" }, ["link"]: { name: "link", type: "linkPath" } });
|
|
48242
48463
|
|
|
48243
|
-
const gaugeSeriesMark = Object.assign(Object.assign({}, progressLikeSeriesMark), { [
|
|
48244
|
-
const gaugePointerSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48464
|
+
const gaugeSeriesMark = Object.assign(Object.assign({}, progressLikeSeriesMark), { ["segment"]: { name: "segment", type: "progressArc" }, ["track"]: { name: "track", type: "progressArc" } });
|
|
48465
|
+
const gaugePointerSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["pin"]: { name: "pin", type: "path" }, ["pinBackground"]: { name: "pinBackground", type: "path" }, ["pointer"]: { name: "pointer", type: ["path", "rect"] } });
|
|
48245
48466
|
|
|
48246
|
-
const sunburstSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48467
|
+
const sunburstSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["sunburst"]: { name: "sunburst", type: "arc" } });
|
|
48247
48468
|
|
|
48248
|
-
const rangeColumnSeriesMark = Object.assign(Object.assign({}, barSeriesMark), { [
|
|
48249
|
-
const rangeColumn3dSeriesMark = Object.assign(Object.assign({}, bar3dSeriesMark), { [
|
|
48469
|
+
const rangeColumnSeriesMark = Object.assign(Object.assign({}, barSeriesMark), { ["minLabel"]: { name: "minLabel", type: "text" }, ["maxLabel"]: { name: "maxLabel", type: "text" } });
|
|
48470
|
+
const rangeColumn3dSeriesMark = Object.assign(Object.assign({}, bar3dSeriesMark), { ["minLabel"]: { name: "minLabel", type: "text" }, ["maxLabel"]: { name: "maxLabel", type: "text" } });
|
|
48250
48471
|
|
|
48251
|
-
const circlePackingSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48472
|
+
const circlePackingSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["circlePacking"]: { name: "circlePacking", type: "arc" } });
|
|
48252
48473
|
|
|
48253
|
-
const heatmapSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48474
|
+
const heatmapSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["cell"]: { name: "cell", type: "cell" }, ["cellBackground"]: { name: "cellBackground", type: "cell" } });
|
|
48254
48475
|
|
|
48255
|
-
const correlationSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { [
|
|
48476
|
+
const correlationSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["nodePoint"]: { name: "nodePoint", type: "symbol" }, ["ripplePoint"]: { name: "ripplePoint", type: "ripple" }, ["centerPoint"]: { name: "centerPoint", type: "symbol" }, ["centerLabel"]: { name: "centerLabel", type: "text" } });
|
|
48256
48477
|
|
|
48257
48478
|
const rangeAreaSeriesMark = Object.assign({}, areaSeriesMark);
|
|
48258
48479
|
|
|
@@ -49274,20 +49495,6 @@
|
|
|
49274
49495
|
}
|
|
49275
49496
|
};
|
|
49276
49497
|
|
|
49277
|
-
var PositionEnum;
|
|
49278
|
-
(function (PositionEnum) {
|
|
49279
|
-
PositionEnum["middle"] = "middle";
|
|
49280
|
-
PositionEnum["start"] = "start";
|
|
49281
|
-
PositionEnum["end"] = "end";
|
|
49282
|
-
PositionEnum["bothEnd"] = "bothEnd";
|
|
49283
|
-
})(PositionEnum || (PositionEnum = {}));
|
|
49284
|
-
var minMaxPositionEnum;
|
|
49285
|
-
(function (minMaxPositionEnum) {
|
|
49286
|
-
minMaxPositionEnum["middle"] = "middle";
|
|
49287
|
-
minMaxPositionEnum["start"] = "start";
|
|
49288
|
-
minMaxPositionEnum["end"] = "end";
|
|
49289
|
-
})(minMaxPositionEnum || (minMaxPositionEnum = {}));
|
|
49290
|
-
|
|
49291
49498
|
const rangeColumn = {
|
|
49292
49499
|
label: {
|
|
49293
49500
|
visible: false,
|
|
@@ -49297,10 +49504,10 @@
|
|
|
49297
49504
|
fill: { type: 'palette', key: 'axisMarkerFontColor' }
|
|
49298
49505
|
},
|
|
49299
49506
|
minLabel: {
|
|
49300
|
-
position:
|
|
49507
|
+
position: "end"
|
|
49301
49508
|
},
|
|
49302
49509
|
maxLabel: {
|
|
49303
|
-
position:
|
|
49510
|
+
position: "start"
|
|
49304
49511
|
}
|
|
49305
49512
|
}
|
|
49306
49513
|
};
|
|
@@ -51241,7 +51448,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
51241
51448
|
}
|
|
51242
51449
|
const MarkConstructor = Factory._marks[markType];
|
|
51243
51450
|
const markInstance = new MarkConstructor(name, options);
|
|
51244
|
-
if (markInstance.type ===
|
|
51451
|
+
if (markInstance.type === "group") {
|
|
51245
51452
|
markInstance.setInteractive(false);
|
|
51246
51453
|
}
|
|
51247
51454
|
return markInstance;
|
|
@@ -51519,12 +51726,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
51519
51726
|
return targetAxisInfo;
|
|
51520
51727
|
};
|
|
51521
51728
|
|
|
51522
|
-
var Direction;
|
|
51523
|
-
(function (Direction) {
|
|
51524
|
-
Direction["vertical"] = "vertical";
|
|
51525
|
-
Direction["horizontal"] = "horizontal";
|
|
51526
|
-
})(Direction || (Direction = {}));
|
|
51527
|
-
|
|
51528
51729
|
function isXAxis(orient) {
|
|
51529
51730
|
return orient === 'bottom' || orient === 'top';
|
|
51530
51731
|
}
|
|
@@ -51544,7 +51745,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
51544
51745
|
return isValidOrient(spec.orient) || (whiteList && whiteList.includes(spec.orient)) ? spec.orient : 'left';
|
|
51545
51746
|
}
|
|
51546
51747
|
function getDirectionByOrient(orient) {
|
|
51547
|
-
return orient === 'top' || orient === 'bottom' ?
|
|
51748
|
+
return orient === 'top' || orient === 'bottom' ? "horizontal" : "vertical";
|
|
51548
51749
|
}
|
|
51549
51750
|
function transformInverse(spec, isHorizontal) {
|
|
51550
51751
|
let inverse = spec.inverse;
|
|
@@ -51602,7 +51803,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
51602
51803
|
}
|
|
51603
51804
|
});
|
|
51604
51805
|
};
|
|
51605
|
-
if (chart.getSpec().direction ===
|
|
51806
|
+
if (chart.getSpec().direction === "horizontal") {
|
|
51606
51807
|
addAxisDimensionInfo('y', bandAxisSet.size > 0);
|
|
51607
51808
|
if (targetAxisInfo.length === 0) {
|
|
51608
51809
|
addAxisDimensionInfo('x', bandAxisSet.size > 0);
|
|
@@ -52857,59 +53058,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
52857
53058
|
});
|
|
52858
53059
|
}
|
|
52859
53060
|
|
|
52860
|
-
const DEFAULT_SMOOTH_INTERPOLATE = 'monotone';
|
|
52861
|
-
const DEFAULT_LINEAR_INTERPOLATE = 'linear';
|
|
52862
|
-
|
|
52863
|
-
var ShapeTypeEnum;
|
|
52864
|
-
(function (ShapeTypeEnum) {
|
|
52865
|
-
ShapeTypeEnum["circle"] = "circle";
|
|
52866
|
-
ShapeTypeEnum["triangle"] = "triangle";
|
|
52867
|
-
ShapeTypeEnum["triangleUp"] = "triangleUp";
|
|
52868
|
-
ShapeTypeEnum["triangleLeft"] = "triangleLeft";
|
|
52869
|
-
ShapeTypeEnum["triangleRight"] = "triangleRight";
|
|
52870
|
-
ShapeTypeEnum["triangleDown"] = "triangleDown";
|
|
52871
|
-
ShapeTypeEnum["thinTriangle"] = "thinTriangle";
|
|
52872
|
-
ShapeTypeEnum["rect"] = "rect";
|
|
52873
|
-
ShapeTypeEnum["diamond"] = "diamond";
|
|
52874
|
-
ShapeTypeEnum["square"] = "square";
|
|
52875
|
-
ShapeTypeEnum["arrowLeft"] = "arrowLeft";
|
|
52876
|
-
ShapeTypeEnum["arrow2Left"] = "arrow2Left";
|
|
52877
|
-
ShapeTypeEnum["arrowRight"] = "arrowRight";
|
|
52878
|
-
ShapeTypeEnum["arrow2Right"] = "arrow2Right";
|
|
52879
|
-
ShapeTypeEnum["cross"] = "cross";
|
|
52880
|
-
ShapeTypeEnum["wedge"] = "wedge";
|
|
52881
|
-
ShapeTypeEnum["star"] = "star";
|
|
52882
|
-
ShapeTypeEnum["wye"] = "wye";
|
|
52883
|
-
})(ShapeTypeEnum || (ShapeTypeEnum = {}));
|
|
52884
|
-
|
|
52885
|
-
const DEFAULT_CLOSE_STROKE_JOIN = 'bevel';
|
|
52886
|
-
|
|
52887
|
-
var TooltipFixedPosition;
|
|
52888
|
-
(function (TooltipFixedPosition) {
|
|
52889
|
-
TooltipFixedPosition["top"] = "top";
|
|
52890
|
-
TooltipFixedPosition["bottom"] = "bottom";
|
|
52891
|
-
TooltipFixedPosition["left"] = "left";
|
|
52892
|
-
TooltipFixedPosition["right"] = "right";
|
|
52893
|
-
TooltipFixedPosition["tl"] = "tl";
|
|
52894
|
-
TooltipFixedPosition["lt"] = "lt";
|
|
52895
|
-
TooltipFixedPosition["tr"] = "tr";
|
|
52896
|
-
TooltipFixedPosition["rt"] = "rt";
|
|
52897
|
-
TooltipFixedPosition["bl"] = "bl";
|
|
52898
|
-
TooltipFixedPosition["lb"] = "lb";
|
|
52899
|
-
TooltipFixedPosition["br"] = "br";
|
|
52900
|
-
TooltipFixedPosition["rb"] = "rb";
|
|
52901
|
-
TooltipFixedPosition["inside"] = "inside";
|
|
52902
|
-
})(TooltipFixedPosition || (TooltipFixedPosition = {}));
|
|
52903
|
-
var TooltipPositionMode;
|
|
52904
|
-
(function (TooltipPositionMode) {
|
|
52905
|
-
TooltipPositionMode["pointer"] = "pointer";
|
|
52906
|
-
TooltipPositionMode["mark"] = "mark";
|
|
52907
|
-
})(TooltipPositionMode || (TooltipPositionMode = {}));
|
|
52908
|
-
|
|
52909
53061
|
function setDefaultCrosshairForCartesianChart(spec) {
|
|
52910
53062
|
spec.crosshair = array(spec.crosshair || {}).map(crosshairCfg => {
|
|
52911
53063
|
return mergeSpec({
|
|
52912
|
-
[spec.direction ===
|
|
53064
|
+
[spec.direction === "horizontal" ? 'yField' : 'xField']: {
|
|
52913
53065
|
visible: true,
|
|
52914
53066
|
line: {
|
|
52915
53067
|
visible: true,
|
|
@@ -53002,16 +53154,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
53002
53154
|
STATE_VALUE_ENUM_REVERSE["STATE_DIMENSION_HOVER_REVERSE"] = "dimension_hover_reverse";
|
|
53003
53155
|
STATE_VALUE_ENUM_REVERSE["STATE_SELECTED_REVERSE"] = "selected_reverse";
|
|
53004
53156
|
})(STATE_VALUE_ENUM_REVERSE || (STATE_VALUE_ENUM_REVERSE = {}));
|
|
53005
|
-
var STATE_LEVEL;
|
|
53006
|
-
(function (STATE_LEVEL) {
|
|
53007
|
-
STATE_LEVEL[STATE_LEVEL["NORMAL"] = 0] = "NORMAL";
|
|
53008
|
-
STATE_LEVEL[STATE_LEVEL["DIMENSION_SELECTED"] = 1] = "DIMENSION_SELECTED";
|
|
53009
|
-
STATE_LEVEL[STATE_LEVEL["RELATIONAL_SELECTED"] = 2] = "RELATIONAL_SELECTED";
|
|
53010
|
-
STATE_LEVEL[STATE_LEVEL["SELECTED"] = 3] = "SELECTED";
|
|
53011
|
-
STATE_LEVEL[STATE_LEVEL["DIMENSION_HOVER"] = 4] = "DIMENSION_HOVER";
|
|
53012
|
-
STATE_LEVEL[STATE_LEVEL["RELATIONAL_HOVER"] = 5] = "RELATIONAL_HOVER";
|
|
53013
|
-
STATE_LEVEL[STATE_LEVEL["HOVER"] = 6] = "HOVER";
|
|
53014
|
-
})(STATE_LEVEL || (STATE_LEVEL = {}));
|
|
53015
53157
|
|
|
53016
53158
|
class MarkSet {
|
|
53017
53159
|
constructor() {
|
|
@@ -53633,12 +53775,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
53633
53775
|
}
|
|
53634
53776
|
}
|
|
53635
53777
|
|
|
53636
|
-
var IFilterMode;
|
|
53637
|
-
(function (IFilterMode) {
|
|
53638
|
-
IFilterMode["filter"] = "filter";
|
|
53639
|
-
IFilterMode["axis"] = "axis";
|
|
53640
|
-
})(IFilterMode || (IFilterMode = {}));
|
|
53641
|
-
|
|
53642
53778
|
class BaseModelSpecTransformer {
|
|
53643
53779
|
constructor(option) {
|
|
53644
53780
|
this._option = option;
|
|
@@ -54018,6 +54154,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54018
54154
|
if (!isNil$1(spec.offsetY)) {
|
|
54019
54155
|
this.layoutOffsetY = calcLayoutNumber(spec.offsetY, chartViewRect.height, chartViewRect);
|
|
54020
54156
|
}
|
|
54157
|
+
if (spec.alignSelf) {
|
|
54158
|
+
this.alignSelf = spec.alignSelf;
|
|
54159
|
+
}
|
|
54021
54160
|
}
|
|
54022
54161
|
}
|
|
54023
54162
|
setAttrFromSpec(spec, chartViewRect) {
|
|
@@ -54375,13 +54514,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54375
54514
|
const chartSpec = this._option.getChart().getSpec();
|
|
54376
54515
|
const hasDataZoom = (_b = (_a = chartSpec.dataZoom) === null || _a === void 0 ? void 0 : _a.some) === null || _b === void 0 ? void 0 : _b.call(_a, (entry) => {
|
|
54377
54516
|
var _a;
|
|
54378
|
-
const filterMode = (_a = entry.filterMode) !== null && _a !== void 0 ? _a :
|
|
54379
|
-
return filterMode ===
|
|
54517
|
+
const filterMode = (_a = entry.filterMode) !== null && _a !== void 0 ? _a : "filter";
|
|
54518
|
+
return filterMode === "axis";
|
|
54380
54519
|
});
|
|
54381
54520
|
const hasScrollBar = (_d = (_c = chartSpec.scrollBar) === null || _c === void 0 ? void 0 : _c.some) === null || _d === void 0 ? void 0 : _d.call(_c, (entry) => {
|
|
54382
54521
|
var _a;
|
|
54383
|
-
const filterMode = (_a = entry.filterMode) !== null && _a !== void 0 ? _a :
|
|
54384
|
-
return filterMode ===
|
|
54522
|
+
const filterMode = (_a = entry.filterMode) !== null && _a !== void 0 ? _a : "axis";
|
|
54523
|
+
return filterMode === "axis";
|
|
54385
54524
|
});
|
|
54386
54525
|
return hasDataZoom || hasScrollBar ? true : this._layout.layoutClip;
|
|
54387
54526
|
}
|
|
@@ -54393,9 +54532,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54393
54532
|
this._groupMark = this._createGroupMark('regionGroup', this.userId, this.layoutZIndex);
|
|
54394
54533
|
this._interactionMark = this._createGroupMark('regionInteractionGroup', this.userId + '_interaction', exports.LayoutZIndex.Interaction);
|
|
54395
54534
|
if (this._spec.style) {
|
|
54396
|
-
this._backgroundMark = this._createMark({ type:
|
|
54535
|
+
this._backgroundMark = this._createMark({ type: "rect", name: 'regionBackground' });
|
|
54397
54536
|
if (clip) {
|
|
54398
|
-
this._foregroundMark = this._createMark({ type:
|
|
54537
|
+
this._foregroundMark = this._createMark({ type: "rect", name: 'regionForeground' });
|
|
54399
54538
|
}
|
|
54400
54539
|
[this._backgroundMark, this._foregroundMark].forEach(mark => {
|
|
54401
54540
|
if (mark) {
|
|
@@ -54414,7 +54553,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54414
54553
|
}
|
|
54415
54554
|
_createGroupMark(name, userId, zIndex) {
|
|
54416
54555
|
var _a, _b;
|
|
54417
|
-
const groupMark = this._createMark({ type:
|
|
54556
|
+
const groupMark = this._createMark({ type: "group", name });
|
|
54418
54557
|
groupMark.setUserId(userId);
|
|
54419
54558
|
groupMark.setZIndex(zIndex);
|
|
54420
54559
|
const clip = (_a = this._spec.clip) !== null && _a !== void 0 ? _a : this._getClipDefaultValue();
|
|
@@ -54625,6 +54764,36 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54625
54764
|
});
|
|
54626
54765
|
}
|
|
54627
54766
|
}
|
|
54767
|
+
function alignSelfOfItems(allItems, isVertical, maxSizes, sign) {
|
|
54768
|
+
let maxSize;
|
|
54769
|
+
allItems.forEach((lineItems, index) => {
|
|
54770
|
+
if (lineItems.length > 1) {
|
|
54771
|
+
maxSize = maxSizes[index];
|
|
54772
|
+
lineItems.forEach(item => {
|
|
54773
|
+
if (!item.alignSelf || item.alignSelf === 'start') {
|
|
54774
|
+
return;
|
|
54775
|
+
}
|
|
54776
|
+
const pos = item.getLayoutStartPoint();
|
|
54777
|
+
const ratio = item.alignSelf === 'middle' ? 0.5 : 1;
|
|
54778
|
+
const delta = isVertical
|
|
54779
|
+
? maxSize - (item.getLayoutRect().width + item.layoutPaddingLeft + item.layoutPaddingRight)
|
|
54780
|
+
: maxSize - (item.getLayoutRect().height + item.layoutPaddingTop + item.layoutPaddingBottom);
|
|
54781
|
+
if (isVertical) {
|
|
54782
|
+
item.setLayoutStartPosition({
|
|
54783
|
+
x: pos.x + sign * delta * ratio,
|
|
54784
|
+
y: pos.y
|
|
54785
|
+
});
|
|
54786
|
+
}
|
|
54787
|
+
else {
|
|
54788
|
+
item.setLayoutStartPosition({
|
|
54789
|
+
x: pos.x,
|
|
54790
|
+
y: pos.y + sign * delta * ratio
|
|
54791
|
+
});
|
|
54792
|
+
}
|
|
54793
|
+
});
|
|
54794
|
+
}
|
|
54795
|
+
});
|
|
54796
|
+
}
|
|
54628
54797
|
function layoutLeftRightStartOrMiddleItems(items, layout, limitHeight, isMiddle, position) {
|
|
54629
54798
|
if (items.length) {
|
|
54630
54799
|
let maxWidth = 0;
|
|
@@ -54634,6 +54803,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54634
54803
|
let preTop = layout.topCurrent;
|
|
54635
54804
|
const allItems = [];
|
|
54636
54805
|
let singleLineItems = [];
|
|
54806
|
+
const maxWidths = [];
|
|
54637
54807
|
items.forEach(item => {
|
|
54638
54808
|
const layoutRect = layout.getItemComputeLayoutRect(item);
|
|
54639
54809
|
const rect = item.computeBoundsInRect(layoutRect);
|
|
@@ -54645,9 +54815,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54645
54815
|
x: preX + item.layoutOffsetX + itemOffsetX,
|
|
54646
54816
|
y: preTop + item.layoutOffsetY + item.layoutPaddingTop
|
|
54647
54817
|
});
|
|
54648
|
-
maxWidth = Math.max(maxWidth, itemTotalWidth);
|
|
54649
54818
|
preTop += itemTotalHeight;
|
|
54650
54819
|
if (preTop > limitHeight && singleLineItems.length) {
|
|
54820
|
+
maxWidths.push(maxWidth);
|
|
54651
54821
|
preX += xSign * maxWidth;
|
|
54652
54822
|
maxWidth = itemTotalWidth;
|
|
54653
54823
|
preTop = layout.topCurrent + itemTotalHeight;
|
|
@@ -54659,10 +54829,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54659
54829
|
singleLineItems = [item];
|
|
54660
54830
|
}
|
|
54661
54831
|
else {
|
|
54832
|
+
maxWidth = Math.max(maxWidth, itemTotalWidth);
|
|
54662
54833
|
singleLineItems.push(item);
|
|
54663
54834
|
}
|
|
54664
54835
|
});
|
|
54836
|
+
maxWidths.push(maxWidth);
|
|
54665
54837
|
allItems.push(singleLineItems);
|
|
54838
|
+
alignSelfOfItems(allItems, true, maxWidths, xSign);
|
|
54666
54839
|
if (isMiddle) {
|
|
54667
54840
|
adjustItemsToCenter(allItems, true, limitHeight);
|
|
54668
54841
|
}
|
|
@@ -54674,6 +54847,56 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54674
54847
|
}
|
|
54675
54848
|
}
|
|
54676
54849
|
}
|
|
54850
|
+
function layoutLeftRightEndItems(items, layout, limitWidth, position) {
|
|
54851
|
+
if (items.length) {
|
|
54852
|
+
let maxWidth = 0;
|
|
54853
|
+
const isRight = position === 'right';
|
|
54854
|
+
const xSign = isRight ? -1 : 1;
|
|
54855
|
+
let preX = isRight ? layout.rightCurrent : layout.leftCurrent;
|
|
54856
|
+
let preBottom = layout.bottomCurrent;
|
|
54857
|
+
const allItems = [];
|
|
54858
|
+
let singleLineItems = [];
|
|
54859
|
+
const maxWidths = [];
|
|
54860
|
+
items.forEach(item => {
|
|
54861
|
+
const layoutRect = layout.getItemComputeLayoutRect(item);
|
|
54862
|
+
const rect = item.computeBoundsInRect(layoutRect);
|
|
54863
|
+
item.setLayoutRect(rect);
|
|
54864
|
+
const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
|
|
54865
|
+
const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
|
|
54866
|
+
const itemOffsetX = isRight ? -rect.width - item.layoutPaddingRight : item.layoutPaddingLeft;
|
|
54867
|
+
if (preBottom < itemTotalHeight && singleLineItems.length) {
|
|
54868
|
+
maxWidths.push(maxWidth);
|
|
54869
|
+
preX += xSign * maxWidth;
|
|
54870
|
+
maxWidth = itemTotalWidth;
|
|
54871
|
+
preBottom = layout.bottomCurrent;
|
|
54872
|
+
item.setLayoutStartPosition({
|
|
54873
|
+
x: preX + item.layoutOffsetX + itemOffsetX,
|
|
54874
|
+
y: preBottom + item.layoutOffsetY - rect.height - item.layoutPaddingBottom
|
|
54875
|
+
});
|
|
54876
|
+
allItems.push(singleLineItems);
|
|
54877
|
+
singleLineItems = [item];
|
|
54878
|
+
}
|
|
54879
|
+
else {
|
|
54880
|
+
item.setLayoutStartPosition({
|
|
54881
|
+
x: preX + item.layoutOffsetX + itemOffsetX,
|
|
54882
|
+
y: preBottom + item.layoutOffsetY - rect.height - item.layoutPaddingBottom
|
|
54883
|
+
});
|
|
54884
|
+
maxWidth = Math.max(maxWidth, itemTotalWidth);
|
|
54885
|
+
preBottom -= itemTotalHeight;
|
|
54886
|
+
singleLineItems.push(item);
|
|
54887
|
+
}
|
|
54888
|
+
});
|
|
54889
|
+
maxWidths.push(maxWidth);
|
|
54890
|
+
allItems.push(singleLineItems);
|
|
54891
|
+
alignSelfOfItems(allItems, true, maxWidths, xSign);
|
|
54892
|
+
if (isRight) {
|
|
54893
|
+
layout.rightCurrent = preX + xSign * maxWidth;
|
|
54894
|
+
}
|
|
54895
|
+
else {
|
|
54896
|
+
layout.leftCurrent = preX + xSign * maxWidth;
|
|
54897
|
+
}
|
|
54898
|
+
}
|
|
54899
|
+
}
|
|
54677
54900
|
function layoutTopBottomStartOrMiddleItems(items, layout, limitWidth, isMiddle, position) {
|
|
54678
54901
|
if (items.length) {
|
|
54679
54902
|
const isTop = position === 'top';
|
|
@@ -54683,6 +54906,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54683
54906
|
let preY = isTop ? layout.topCurrent : layout.bottomCurrent;
|
|
54684
54907
|
const allItems = [];
|
|
54685
54908
|
let singleLineItems = [];
|
|
54909
|
+
const maxHeights = [];
|
|
54686
54910
|
items.forEach(item => {
|
|
54687
54911
|
const layoutRect = layout.getItemComputeLayoutRect(item);
|
|
54688
54912
|
const rect = item.computeBoundsInRect(layoutRect);
|
|
@@ -54694,9 +54918,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54694
54918
|
x: preLeft + item.layoutOffsetX + item.layoutPaddingLeft,
|
|
54695
54919
|
y: preY + item.layoutOffsetY + itemOffsetY
|
|
54696
54920
|
});
|
|
54697
|
-
maxHeight = Math.max(maxHeight, itemTotalHeight);
|
|
54698
54921
|
preLeft += itemTotalWidth;
|
|
54699
54922
|
if (preLeft > limitWidth && singleLineItems.length) {
|
|
54923
|
+
maxHeights.push(maxHeight);
|
|
54700
54924
|
preLeft = layout.leftCurrent + itemTotalWidth;
|
|
54701
54925
|
preY += ySign * maxHeight;
|
|
54702
54926
|
maxHeight = itemTotalHeight;
|
|
@@ -54708,10 +54932,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54708
54932
|
singleLineItems = [item];
|
|
54709
54933
|
}
|
|
54710
54934
|
else {
|
|
54935
|
+
maxHeight = Math.max(maxHeight, itemTotalHeight);
|
|
54711
54936
|
singleLineItems.push(item);
|
|
54712
54937
|
}
|
|
54713
54938
|
});
|
|
54939
|
+
maxHeights.push(maxHeight);
|
|
54714
54940
|
allItems.push(singleLineItems);
|
|
54941
|
+
alignSelfOfItems(allItems, false, maxHeights, ySign);
|
|
54715
54942
|
if (isMiddle) {
|
|
54716
54943
|
adjustItemsToCenter(allItems, false, limitWidth);
|
|
54717
54944
|
}
|
|
@@ -54723,43 +54950,65 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54723
54950
|
}
|
|
54724
54951
|
}
|
|
54725
54952
|
}
|
|
54726
|
-
function
|
|
54727
|
-
|
|
54728
|
-
|
|
54729
|
-
|
|
54730
|
-
|
|
54731
|
-
|
|
54732
|
-
|
|
54733
|
-
|
|
54734
|
-
|
|
54735
|
-
|
|
54736
|
-
|
|
54737
|
-
let preBottom = layout.bottomCurrent;
|
|
54738
|
-
endItems.forEach(item => {
|
|
54953
|
+
function layoutTopBottomEndItems(items, layout, limitWidth, position) {
|
|
54954
|
+
if (items.length) {
|
|
54955
|
+
const isTop = position === 'top';
|
|
54956
|
+
const ySign = isTop ? 1 : -1;
|
|
54957
|
+
let maxHeight = 0;
|
|
54958
|
+
let preRight = layout.rightCurrent;
|
|
54959
|
+
let preY = isTop ? layout.topCurrent : layout.bottomCurrent;
|
|
54960
|
+
const allItems = [];
|
|
54961
|
+
let singleLineItems = [];
|
|
54962
|
+
const maxHeights = [];
|
|
54963
|
+
items.forEach(item => {
|
|
54739
54964
|
const layoutRect = layout.getItemComputeLayoutRect(item);
|
|
54740
54965
|
const rect = item.computeBoundsInRect(layoutRect);
|
|
54741
54966
|
item.setLayoutRect(rect);
|
|
54742
54967
|
const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
|
|
54743
54968
|
const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
|
|
54744
|
-
|
|
54745
|
-
|
|
54746
|
-
|
|
54747
|
-
|
|
54969
|
+
const itemOffsetY = isTop ? item.layoutPaddingTop : -rect.height - item.layoutPaddingBottom;
|
|
54970
|
+
if (preRight < itemTotalWidth && singleLineItems.length) {
|
|
54971
|
+
preRight = layout.rightCurrent;
|
|
54972
|
+
preY += ySign * maxHeight;
|
|
54973
|
+
maxHeight = itemTotalHeight;
|
|
54748
54974
|
item.setLayoutStartPosition({
|
|
54749
|
-
x:
|
|
54750
|
-
y:
|
|
54975
|
+
x: layout.rightCurrent + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
|
|
54976
|
+
y: preY + item.layoutOffsetY + itemOffsetY
|
|
54751
54977
|
});
|
|
54978
|
+
allItems.push(singleLineItems);
|
|
54979
|
+
singleLineItems = [item];
|
|
54752
54980
|
}
|
|
54753
54981
|
else {
|
|
54982
|
+
singleLineItems.push(item);
|
|
54754
54983
|
item.setLayoutStartPosition({
|
|
54755
|
-
x:
|
|
54756
|
-
y:
|
|
54984
|
+
x: preRight + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
|
|
54985
|
+
y: preY + item.layoutOffsetY + itemOffsetY
|
|
54757
54986
|
});
|
|
54758
|
-
|
|
54759
|
-
|
|
54987
|
+
maxHeight = Math.max(maxHeight, itemTotalHeight);
|
|
54988
|
+
preRight -= itemTotalWidth;
|
|
54760
54989
|
}
|
|
54761
54990
|
});
|
|
54762
|
-
|
|
54991
|
+
maxHeights.push(maxHeight);
|
|
54992
|
+
allItems.push(singleLineItems);
|
|
54993
|
+
alignSelfOfItems(allItems, false, maxHeights, ySign);
|
|
54994
|
+
if (isTop) {
|
|
54995
|
+
layout.topCurrent = preY + ySign * maxHeight;
|
|
54996
|
+
}
|
|
54997
|
+
else {
|
|
54998
|
+
layout.bottomCurrent = preY + ySign * maxHeight;
|
|
54999
|
+
}
|
|
55000
|
+
}
|
|
55001
|
+
}
|
|
55002
|
+
function layoutLeftInlineItems(items, layout, limitHeight) {
|
|
55003
|
+
const { startItems, middleItems, endItems } = getPositionItems(items);
|
|
55004
|
+
if (startItems.length) {
|
|
55005
|
+
layoutLeftRightStartOrMiddleItems(startItems, layout, limitHeight, false, 'left');
|
|
55006
|
+
}
|
|
55007
|
+
if (middleItems.length) {
|
|
55008
|
+
layoutLeftRightStartOrMiddleItems(middleItems, layout, limitHeight, true, 'left');
|
|
55009
|
+
}
|
|
55010
|
+
if (endItems.length) {
|
|
55011
|
+
layoutLeftRightEndItems(endItems, layout, limitHeight, 'left');
|
|
54763
55012
|
}
|
|
54764
55013
|
}
|
|
54765
55014
|
function layoutRightInlineItems(items, layout, limitHeight) {
|
|
@@ -54771,34 +55020,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54771
55020
|
layoutLeftRightStartOrMiddleItems(middleItems, layout, limitHeight, true, 'right');
|
|
54772
55021
|
}
|
|
54773
55022
|
if (endItems.length) {
|
|
54774
|
-
|
|
54775
|
-
let preRight = layout.rightCurrent;
|
|
54776
|
-
let preBottom = layout.bottomCurrent;
|
|
54777
|
-
endItems.forEach(item => {
|
|
54778
|
-
const layoutRect = layout.getItemComputeLayoutRect(item);
|
|
54779
|
-
const rect = item.computeBoundsInRect(layoutRect);
|
|
54780
|
-
item.setLayoutRect(rect);
|
|
54781
|
-
const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
|
|
54782
|
-
const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
|
|
54783
|
-
if (preBottom < itemTotalHeight) {
|
|
54784
|
-
preRight -= maxWidth;
|
|
54785
|
-
maxWidth = itemTotalWidth;
|
|
54786
|
-
preBottom = layout.bottomCurrent;
|
|
54787
|
-
item.setLayoutStartPosition({
|
|
54788
|
-
x: preRight + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
|
|
54789
|
-
y: preBottom + item.layoutOffsetY - rect.height - item.layoutPaddingBottom
|
|
54790
|
-
});
|
|
54791
|
-
}
|
|
54792
|
-
else {
|
|
54793
|
-
item.setLayoutStartPosition({
|
|
54794
|
-
x: preRight + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
|
|
54795
|
-
y: preBottom + item.layoutOffsetY - rect.height - item.layoutPaddingBottom
|
|
54796
|
-
});
|
|
54797
|
-
maxWidth = Math.max(maxWidth, itemTotalWidth);
|
|
54798
|
-
preBottom -= itemTotalHeight;
|
|
54799
|
-
}
|
|
54800
|
-
});
|
|
54801
|
-
layout.rightCurrent = preRight - maxWidth;
|
|
55023
|
+
layoutLeftRightEndItems(endItems, layout, limitHeight, 'right');
|
|
54802
55024
|
}
|
|
54803
55025
|
}
|
|
54804
55026
|
function layoutTopInlineItems(items, layout, limitWidth) {
|
|
@@ -54810,34 +55032,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54810
55032
|
layoutTopBottomStartOrMiddleItems(middleItems, layout, limitWidth, true, 'top');
|
|
54811
55033
|
}
|
|
54812
55034
|
if (endItems.length) {
|
|
54813
|
-
|
|
54814
|
-
let preTop = layout.topCurrent;
|
|
54815
|
-
let preRight = layout.rightCurrent;
|
|
54816
|
-
endItems.forEach(item => {
|
|
54817
|
-
const layoutRect = layout.getItemComputeLayoutRect(item);
|
|
54818
|
-
const rect = item.computeBoundsInRect(layoutRect);
|
|
54819
|
-
item.setLayoutRect(rect);
|
|
54820
|
-
const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
|
|
54821
|
-
const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
|
|
54822
|
-
if (preRight < itemTotalWidth) {
|
|
54823
|
-
preRight = layout.rightCurrent;
|
|
54824
|
-
preTop += maxHeight;
|
|
54825
|
-
maxHeight = itemTotalHeight;
|
|
54826
|
-
item.setLayoutStartPosition({
|
|
54827
|
-
x: layout.rightCurrent + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
|
|
54828
|
-
y: preTop + item.layoutOffsetY + item.layoutPaddingTop
|
|
54829
|
-
});
|
|
54830
|
-
}
|
|
54831
|
-
else {
|
|
54832
|
-
item.setLayoutStartPosition({
|
|
54833
|
-
x: preRight + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
|
|
54834
|
-
y: preTop + item.layoutOffsetY + item.layoutPaddingTop
|
|
54835
|
-
});
|
|
54836
|
-
maxHeight = Math.max(maxHeight, itemTotalHeight);
|
|
54837
|
-
preRight -= itemTotalWidth;
|
|
54838
|
-
}
|
|
54839
|
-
});
|
|
54840
|
-
layout.topCurrent = preTop + maxHeight;
|
|
55035
|
+
layoutTopBottomEndItems(endItems, layout, limitWidth, 'top');
|
|
54841
55036
|
}
|
|
54842
55037
|
}
|
|
54843
55038
|
function layoutBottomInlineItems(items, layout, limitWidth) {
|
|
@@ -54849,34 +55044,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
54849
55044
|
layoutTopBottomStartOrMiddleItems(middleItems, layout, limitWidth, true, 'bottom');
|
|
54850
55045
|
}
|
|
54851
55046
|
if (endItems.length) {
|
|
54852
|
-
|
|
54853
|
-
let preBottom = layout.bottomCurrent;
|
|
54854
|
-
let preRight = layout.rightCurrent;
|
|
54855
|
-
endItems.forEach(item => {
|
|
54856
|
-
const layoutRect = layout.getItemComputeLayoutRect(item);
|
|
54857
|
-
const rect = item.computeBoundsInRect(layoutRect);
|
|
54858
|
-
item.setLayoutRect(rect);
|
|
54859
|
-
const itemTotalHeight = rect.height + item.layoutPaddingTop + item.layoutPaddingBottom;
|
|
54860
|
-
const itemTotalWidth = rect.width + item.layoutPaddingLeft + item.layoutPaddingRight;
|
|
54861
|
-
if (preRight < itemTotalWidth) {
|
|
54862
|
-
preRight = layout.rightCurrent;
|
|
54863
|
-
preBottom -= maxHeight;
|
|
54864
|
-
maxHeight = itemTotalHeight;
|
|
54865
|
-
item.setLayoutStartPosition({
|
|
54866
|
-
x: layout.rightCurrent + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
|
|
54867
|
-
y: preBottom + item.layoutOffsetY - rect.height - item.layoutPaddingBottom
|
|
54868
|
-
});
|
|
54869
|
-
}
|
|
54870
|
-
else {
|
|
54871
|
-
item.setLayoutStartPosition({
|
|
54872
|
-
x: preRight + item.layoutOffsetX - rect.width - item.layoutPaddingRight,
|
|
54873
|
-
y: preBottom + item.layoutOffsetY - rect.height - item.layoutPaddingBottom
|
|
54874
|
-
});
|
|
54875
|
-
maxHeight = Math.max(maxHeight, itemTotalHeight);
|
|
54876
|
-
preRight -= itemTotalWidth;
|
|
54877
|
-
}
|
|
54878
|
-
});
|
|
54879
|
-
layout.bottomCurrent = preBottom - maxHeight;
|
|
55047
|
+
layoutTopBottomEndItems(endItems, layout, limitWidth, 'bottom');
|
|
54880
55048
|
}
|
|
54881
55049
|
}
|
|
54882
55050
|
|
|
@@ -55213,7 +55381,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
55213
55381
|
}
|
|
55214
55382
|
Layout.type = 'base';
|
|
55215
55383
|
|
|
55216
|
-
const MultiDatumMark = [
|
|
55384
|
+
const MultiDatumMark = ["line", "area", 'trail'];
|
|
55217
55385
|
function isMultiDatumMark(type) {
|
|
55218
55386
|
return MultiDatumMark.includes(type);
|
|
55219
55387
|
}
|
|
@@ -56302,7 +56470,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
56302
56470
|
}
|
|
56303
56471
|
}
|
|
56304
56472
|
}
|
|
56305
|
-
GroupMark.type =
|
|
56473
|
+
GroupMark.type = "group";
|
|
56306
56474
|
const registerGroupMark = () => {
|
|
56307
56475
|
registerGroupGraphic();
|
|
56308
56476
|
Factory.registerMark(GroupMark.type, GroupMark);
|
|
@@ -56316,9 +56484,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
56316
56484
|
};
|
|
56317
56485
|
const Appear_Grow$6 = (params) => {
|
|
56318
56486
|
return {
|
|
56319
|
-
type: params.direction ===
|
|
56487
|
+
type: params.direction === "horizontal" ? 'growPointsXIn' : 'growPointsYIn',
|
|
56320
56488
|
options: {
|
|
56321
|
-
orient: params.direction ===
|
|
56489
|
+
orient: params.direction === "horizontal" ? 'positive' : 'negative'
|
|
56322
56490
|
}
|
|
56323
56491
|
};
|
|
56324
56492
|
};
|
|
@@ -58164,43 +58332,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
58164
58332
|
registerChartPlugin(MediaQuery);
|
|
58165
58333
|
};
|
|
58166
58334
|
|
|
58167
|
-
const version = "1.8.10
|
|
58168
|
-
|
|
58169
|
-
var ChartTypeEnum;
|
|
58170
|
-
(function (ChartTypeEnum) {
|
|
58171
|
-
ChartTypeEnum["common"] = "common";
|
|
58172
|
-
ChartTypeEnum["area"] = "area";
|
|
58173
|
-
ChartTypeEnum["line"] = "line";
|
|
58174
|
-
ChartTypeEnum["bar"] = "bar";
|
|
58175
|
-
ChartTypeEnum["bar3d"] = "bar3d";
|
|
58176
|
-
ChartTypeEnum["histogram"] = "histogram";
|
|
58177
|
-
ChartTypeEnum["histogram3d"] = "histogram3d";
|
|
58178
|
-
ChartTypeEnum["rangeColumn"] = "rangeColumn";
|
|
58179
|
-
ChartTypeEnum["rangeColumn3d"] = "rangeColumn3d";
|
|
58180
|
-
ChartTypeEnum["rangeArea"] = "rangeArea";
|
|
58181
|
-
ChartTypeEnum["map"] = "map";
|
|
58182
|
-
ChartTypeEnum["pie"] = "pie";
|
|
58183
|
-
ChartTypeEnum["pie3d"] = "pie3d";
|
|
58184
|
-
ChartTypeEnum["radar"] = "radar";
|
|
58185
|
-
ChartTypeEnum["rose"] = "rose";
|
|
58186
|
-
ChartTypeEnum["scatter"] = "scatter";
|
|
58187
|
-
ChartTypeEnum["sequence"] = "sequence";
|
|
58188
|
-
ChartTypeEnum["circularProgress"] = "circularProgress";
|
|
58189
|
-
ChartTypeEnum["linearProgress"] = "linearProgress";
|
|
58190
|
-
ChartTypeEnum["wordCloud"] = "wordCloud";
|
|
58191
|
-
ChartTypeEnum["wordCloud3d"] = "wordCloud3d";
|
|
58192
|
-
ChartTypeEnum["funnel"] = "funnel";
|
|
58193
|
-
ChartTypeEnum["funnel3d"] = "funnel3d";
|
|
58194
|
-
ChartTypeEnum["waterfall"] = "waterfall";
|
|
58195
|
-
ChartTypeEnum["boxPlot"] = "boxPlot";
|
|
58196
|
-
ChartTypeEnum["gauge"] = "gauge";
|
|
58197
|
-
ChartTypeEnum["sankey"] = "sankey";
|
|
58198
|
-
ChartTypeEnum["treemap"] = "treemap";
|
|
58199
|
-
ChartTypeEnum["sunburst"] = "sunburst";
|
|
58200
|
-
ChartTypeEnum["circlePacking"] = "circlePacking";
|
|
58201
|
-
ChartTypeEnum["heatmap"] = "heatmap";
|
|
58202
|
-
ChartTypeEnum["correlation"] = "correlation";
|
|
58203
|
-
})(ChartTypeEnum || (ChartTypeEnum = {}));
|
|
58335
|
+
const version = "1.8.10";
|
|
58204
58336
|
|
|
58205
58337
|
const addVChartProperty = (data, op) => {
|
|
58206
58338
|
const context = op.beforeCall();
|
|
@@ -58842,7 +58974,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
58842
58974
|
}
|
|
58843
58975
|
let stateConfig;
|
|
58844
58976
|
if (isArray$1(userStateConfig)) {
|
|
58845
|
-
stateConfig = userStateConfig
|
|
58977
|
+
stateConfig = userStateConfig.map((userConfig, i) => {
|
|
58978
|
+
var _a;
|
|
58979
|
+
let singleConfig = userConfig;
|
|
58980
|
+
if (isChannelAnimation(singleConfig)) {
|
|
58981
|
+
delete singleConfig.type;
|
|
58982
|
+
}
|
|
58983
|
+
if (singleConfig.oneByOne) {
|
|
58984
|
+
singleConfig = produceOneByOne(singleConfig, (_a = params === null || params === void 0 ? void 0 : params.dataIndex) !== null && _a !== void 0 ? _a : defaultDataIndex, params === null || params === void 0 ? void 0 : params.dataCount);
|
|
58985
|
+
}
|
|
58986
|
+
return singleConfig;
|
|
58987
|
+
});
|
|
58846
58988
|
}
|
|
58847
58989
|
else {
|
|
58848
58990
|
stateConfig = defaultStateConfig.map((stateConfig, i) => {
|
|
@@ -59290,8 +59432,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59290
59432
|
if (fieldInfo && fieldInfo.lockStatisticsByDomain && fieldInfo.domain) {
|
|
59291
59433
|
this._rawStatisticsCache[field] = {};
|
|
59292
59434
|
if (isNumeric) {
|
|
59293
|
-
this._rawStatisticsCache[field].min =
|
|
59294
|
-
this._rawStatisticsCache[field].max =
|
|
59435
|
+
this._rawStatisticsCache[field].min = minInArray(fieldInfo.domain);
|
|
59436
|
+
this._rawStatisticsCache[field].max = maxInArray(fieldInfo.domain);
|
|
59295
59437
|
}
|
|
59296
59438
|
else {
|
|
59297
59439
|
this._rawStatisticsCache[field].values = fieldInfo.domain;
|
|
@@ -59304,6 +59446,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59304
59446
|
}
|
|
59305
59447
|
}
|
|
59306
59448
|
}
|
|
59449
|
+
if (isNumeric && (isNil$1(this._rawStatisticsCache[field].min) || isNil$1(this._rawStatisticsCache[field].max))) {
|
|
59450
|
+
this._rawStatisticsCache[field].min = minInArray(this._rawStatisticsCache[field].values);
|
|
59451
|
+
this._rawStatisticsCache[field].max = maxInArray(this._rawStatisticsCache[field].values);
|
|
59452
|
+
}
|
|
59307
59453
|
return this._rawStatisticsCache[field];
|
|
59308
59454
|
}
|
|
59309
59455
|
_statisticViewData() {
|
|
@@ -59472,7 +59618,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59472
59618
|
}
|
|
59473
59619
|
initRootMark() {
|
|
59474
59620
|
var _a, _b;
|
|
59475
|
-
this._rootMark = this._createMark({ type:
|
|
59621
|
+
this._rootMark = this._createMark({ type: "group", name: `seriesGroup_${this.type}_${this.id}` }, {
|
|
59476
59622
|
parent: (_b = (_a = this._region).getGroupMark) === null || _b === void 0 ? void 0 : _b.call(_a),
|
|
59477
59623
|
dataView: false
|
|
59478
59624
|
});
|
|
@@ -59990,7 +60136,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
59990
60136
|
this._scaleConfig = {
|
|
59991
60137
|
bandPosition: this._bandPosition
|
|
59992
60138
|
};
|
|
59993
|
-
this._direction =
|
|
60139
|
+
this._direction = "vertical";
|
|
59994
60140
|
this._sortDataByAxis = false;
|
|
59995
60141
|
this._getInvalidDefined = (datum) => {
|
|
59996
60142
|
var _a, _b;
|
|
@@ -60141,13 +60287,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60141
60287
|
return this.getGroupFields();
|
|
60142
60288
|
}
|
|
60143
60289
|
getStackValueField() {
|
|
60144
|
-
if (this.direction ===
|
|
60290
|
+
if (this.direction === "vertical") {
|
|
60145
60291
|
return array(this._spec.yField)[0];
|
|
60146
60292
|
}
|
|
60147
60293
|
return array(this._spec.xField)[0];
|
|
60148
60294
|
}
|
|
60149
60295
|
setValueFieldToStack() {
|
|
60150
|
-
if (this.direction ===
|
|
60296
|
+
if (this.direction === "vertical") {
|
|
60151
60297
|
this.setFieldY(STACK_FIELD_END);
|
|
60152
60298
|
this.setFieldY2(STACK_FIELD_START);
|
|
60153
60299
|
}
|
|
@@ -60157,7 +60303,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60157
60303
|
}
|
|
60158
60304
|
}
|
|
60159
60305
|
setValueFieldToPercent() {
|
|
60160
|
-
if (this.direction ===
|
|
60306
|
+
if (this.direction === "vertical") {
|
|
60161
60307
|
this.setFieldY(STACK_FIELD_END_PERCENT);
|
|
60162
60308
|
this.setFieldY2(STACK_FIELD_START_PERCENT);
|
|
60163
60309
|
}
|
|
@@ -60167,7 +60313,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60167
60313
|
}
|
|
60168
60314
|
}
|
|
60169
60315
|
setValueFieldToStackOffsetSilhouette() {
|
|
60170
|
-
if (this.direction ===
|
|
60316
|
+
if (this.direction === "vertical") {
|
|
60171
60317
|
this.setFieldY(STACK_FIELD_END_OffsetSilhouette);
|
|
60172
60318
|
this.setFieldY2(STACK_FIELD_START_OffsetSilhouette);
|
|
60173
60319
|
}
|
|
@@ -60369,13 +60515,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60369
60515
|
this._buildScaleConfig();
|
|
60370
60516
|
}
|
|
60371
60517
|
getDimensionField() {
|
|
60372
|
-
if (this._direction ===
|
|
60518
|
+
if (this._direction === "vertical") {
|
|
60373
60519
|
return this._specXField;
|
|
60374
60520
|
}
|
|
60375
60521
|
return this._specYField;
|
|
60376
60522
|
}
|
|
60377
60523
|
getMeasureField() {
|
|
60378
|
-
if (this._direction ===
|
|
60524
|
+
if (this._direction === "vertical") {
|
|
60379
60525
|
return this._specYField;
|
|
60380
60526
|
}
|
|
60381
60527
|
return this._specXField;
|
|
@@ -60389,7 +60535,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60389
60535
|
_sortDataInAxisDomain() {
|
|
60390
60536
|
var _a, _b, _c;
|
|
60391
60537
|
if ((_b = (_a = this.getViewData()) === null || _a === void 0 ? void 0 : _a.latestData) === null || _b === void 0 ? void 0 : _b.length) {
|
|
60392
|
-
sortDataInAxisHelper(this._direction ===
|
|
60538
|
+
sortDataInAxisHelper(this._direction === "horizontal" ? this._yAxisHelper : this._xAxisHelper, this._direction === "horizontal" ? this._fieldY[0] : this._fieldX[0], this.getViewData().latestData);
|
|
60393
60539
|
(_c = this._data) === null || _c === void 0 ? void 0 : _c.updateData(true);
|
|
60394
60540
|
}
|
|
60395
60541
|
}
|
|
@@ -60404,6 +60550,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60404
60550
|
}
|
|
60405
60551
|
}
|
|
60406
60552
|
|
|
60553
|
+
const DEFAULT_SMOOTH_INTERPOLATE = 'monotone';
|
|
60554
|
+
const DEFAULT_LINEAR_INTERPOLATE = 'linear';
|
|
60555
|
+
|
|
60556
|
+
const DEFAULT_CLOSE_STROKE_JOIN = 'bevel';
|
|
60557
|
+
|
|
60407
60558
|
class LineLikeSeriesMixin {
|
|
60408
60559
|
addSamplingCompile() {
|
|
60409
60560
|
if (this._spec.sampling) {
|
|
@@ -60413,9 +60564,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60413
60564
|
const fieldsX = this._fieldX;
|
|
60414
60565
|
samplingTrans.push({
|
|
60415
60566
|
type: 'sampling',
|
|
60416
|
-
size: this._direction ===
|
|
60567
|
+
size: this._direction === "vertical" ? width : height,
|
|
60417
60568
|
factor: this._spec.samplingFactor,
|
|
60418
|
-
yfield: this._direction ===
|
|
60569
|
+
yfield: this._direction === "vertical" ? fieldsY[0] : fieldsX[0],
|
|
60419
60570
|
groupBy: this._seriesField,
|
|
60420
60571
|
mode: this._spec.sampling
|
|
60421
60572
|
});
|
|
@@ -60428,7 +60579,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60428
60579
|
const overlapTrans = [];
|
|
60429
60580
|
overlapTrans.push({
|
|
60430
60581
|
type: 'markoverlap',
|
|
60431
|
-
direction: this._direction ===
|
|
60582
|
+
direction: this._direction === "horizontal" && this.coordinate === 'cartesian' ? 2 : 1,
|
|
60432
60583
|
delta: this._spec.pointDis,
|
|
60433
60584
|
deltaMul: this._spec.pointDisMul,
|
|
60434
60585
|
groupBy: this._seriesField
|
|
@@ -60478,7 +60629,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60478
60629
|
else {
|
|
60479
60630
|
const userCurveType = areaCurveType !== null && areaCurveType !== void 0 ? areaCurveType : (_b = (_a = this.getSpec().line) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.curveType;
|
|
60480
60631
|
const curveType = userCurveType === DEFAULT_SMOOTH_INTERPOLATE
|
|
60481
|
-
? direction ===
|
|
60632
|
+
? direction === "vertical"
|
|
60482
60633
|
? 'monotoneX'
|
|
60483
60634
|
: 'monotoneY'
|
|
60484
60635
|
: userCurveType;
|
|
@@ -60536,7 +60687,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60536
60687
|
if (this._spec.activePoint === true) {
|
|
60537
60688
|
const activeData = new DataView(this._option.dataSet, { name: `${PREFIX}_series_${this.id}_active_point` });
|
|
60538
60689
|
activeData.parse([]);
|
|
60539
|
-
this._symbolActiveMark = this._createMark({ name: `active_point`, type:
|
|
60690
|
+
this._symbolActiveMark = this._createMark({ name: `active_point`, type: "symbol" }, {
|
|
60540
60691
|
morph: false,
|
|
60541
60692
|
groupKey: this._seriesField,
|
|
60542
60693
|
isSeriesMark: false,
|
|
@@ -60740,7 +60891,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60740
60891
|
return ['fill', 'fillOpacity'];
|
|
60741
60892
|
}
|
|
60742
60893
|
}
|
|
60743
|
-
LineMark.type =
|
|
60894
|
+
LineMark.type = "line";
|
|
60744
60895
|
const registerLineMark = () => {
|
|
60745
60896
|
Factory.registerMark(LineMark.type, LineMark);
|
|
60746
60897
|
registerLineGraphic();
|
|
@@ -60749,7 +60900,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60749
60900
|
|
|
60750
60901
|
class BaseSymbolMark extends BaseMark {
|
|
60751
60902
|
_getDefaultStyle() {
|
|
60752
|
-
const defaultStyle = Object.assign(Object.assign({}, super._getDefaultStyle()), { size: 1, symbolType:
|
|
60903
|
+
const defaultStyle = Object.assign(Object.assign({}, super._getDefaultStyle()), { size: 1, symbolType: 'circle', fill: undefined, lineWidth: 0 });
|
|
60753
60904
|
return defaultStyle;
|
|
60754
60905
|
}
|
|
60755
60906
|
}
|
|
@@ -60759,7 +60910,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60759
60910
|
this.type = SymbolMark.type;
|
|
60760
60911
|
}
|
|
60761
60912
|
}
|
|
60762
|
-
SymbolMark.type =
|
|
60913
|
+
SymbolMark.type = "symbol";
|
|
60763
60914
|
const registerSymbolMark = () => {
|
|
60764
60915
|
Factory.registerMark(SymbolMark.type, SymbolMark);
|
|
60765
60916
|
registerSymbolGraphic();
|
|
@@ -60770,12 +60921,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60770
60921
|
var _a, _b, _c;
|
|
60771
60922
|
const isPointVisible = ((_a = spec.point) === null || _a === void 0 ? void 0 : _a.visible) !== false && ((_c = (_b = spec.point) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.visible) !== false;
|
|
60772
60923
|
if (!isPointVisible) {
|
|
60773
|
-
this._addMarkLabelSpec(spec,
|
|
60924
|
+
this._addMarkLabelSpec(spec, "line");
|
|
60774
60925
|
}
|
|
60775
60926
|
else {
|
|
60776
|
-
this._addMarkLabelSpec(spec,
|
|
60927
|
+
this._addMarkLabelSpec(spec, "point");
|
|
60777
60928
|
}
|
|
60778
|
-
this._addMarkLabelSpec(spec,
|
|
60929
|
+
this._addMarkLabelSpec(spec, "line", 'lineLabel', 'initLineLabelMarkStyle', undefined, true);
|
|
60779
60930
|
}
|
|
60780
60931
|
}
|
|
60781
60932
|
|
|
@@ -60816,10 +60967,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60816
60967
|
var _a, _b, _c, _d;
|
|
60817
60968
|
const lineAnimationParams = { direction: this.direction };
|
|
60818
60969
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
60819
|
-
this._lineMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('line')) === null || _c === void 0 ? void 0 : _c(lineAnimationParams, appearPreset), userAnimationConfig(
|
|
60970
|
+
this._lineMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('line')) === null || _c === void 0 ? void 0 : _c(lineAnimationParams, appearPreset), userAnimationConfig("line", this._spec, this._markAttributeContext)));
|
|
60820
60971
|
if (this._symbolMark) {
|
|
60821
60972
|
const animationParams = getGroupAnimationParams(this);
|
|
60822
|
-
this._symbolMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('scaleInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig(
|
|
60973
|
+
this._symbolMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('scaleInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("point", this._spec, this._markAttributeContext), animationParams));
|
|
60823
60974
|
}
|
|
60824
60975
|
}
|
|
60825
60976
|
onLayoutEnd(ctx) {
|
|
@@ -61500,7 +61651,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
61500
61651
|
_createBackground() {
|
|
61501
61652
|
const backgroundStyle = convertBackgroundSpec(this._spec.background);
|
|
61502
61653
|
if (backgroundStyle) {
|
|
61503
|
-
this._backgroundMark = Factory.createMark(
|
|
61654
|
+
this._backgroundMark = Factory.createMark("group", 'chart-background', {
|
|
61504
61655
|
model: this,
|
|
61505
61656
|
map: this._option.map,
|
|
61506
61657
|
getCompiler: this.getCompiler,
|
|
@@ -62474,12 +62625,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62474
62625
|
constructor() {
|
|
62475
62626
|
super(...arguments);
|
|
62476
62627
|
this.transformerConstructor = LineChartSpecTransformer;
|
|
62477
|
-
this.type =
|
|
62628
|
+
this.type = "line";
|
|
62478
62629
|
this.seriesType = exports.SeriesTypeEnum.line;
|
|
62479
62630
|
this._canStack = true;
|
|
62480
62631
|
}
|
|
62481
62632
|
}
|
|
62482
|
-
LineChart.type =
|
|
62633
|
+
LineChart.type = "line";
|
|
62483
62634
|
LineChart.seriesType = exports.SeriesTypeEnum.line;
|
|
62484
62635
|
LineChart.view = 'singleDefault';
|
|
62485
62636
|
LineChart.transformerConstructor = LineChartSpecTransformer;
|
|
@@ -62501,7 +62652,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62501
62652
|
return [];
|
|
62502
62653
|
}
|
|
62503
62654
|
}
|
|
62504
|
-
AreaMark.type =
|
|
62655
|
+
AreaMark.type = "area";
|
|
62505
62656
|
const registerAreaMark = () => {
|
|
62506
62657
|
Factory.registerMark(AreaMark.type, AreaMark);
|
|
62507
62658
|
registerAreaGraphic();
|
|
@@ -62537,9 +62688,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62537
62688
|
};
|
|
62538
62689
|
const Appear_Grow$5 = (params) => {
|
|
62539
62690
|
return {
|
|
62540
|
-
type: params.direction ===
|
|
62691
|
+
type: params.direction === "horizontal" ? 'growPointsXIn' : 'growPointsYIn',
|
|
62541
62692
|
options: {
|
|
62542
|
-
orient: params.direction ===
|
|
62693
|
+
orient: params.direction === "horizontal" ? 'positive' : 'negative'
|
|
62543
62694
|
}
|
|
62544
62695
|
};
|
|
62545
62696
|
};
|
|
@@ -62576,10 +62727,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62576
62727
|
_transformLabelSpec(spec) {
|
|
62577
62728
|
var _a, _b, _c;
|
|
62578
62729
|
super._transformLabelSpec(spec);
|
|
62579
|
-
this._addMarkLabelSpec(spec,
|
|
62730
|
+
this._addMarkLabelSpec(spec, "area", 'areaLabel', 'initLineLabelMarkStyle', undefined, true);
|
|
62580
62731
|
const isPointVisible = ((_a = spec.point) === null || _a === void 0 ? void 0 : _a.visible) !== false && ((_c = (_b = spec.point) === null || _b === void 0 ? void 0 : _b.style) === null || _c === void 0 ? void 0 : _c.visible) !== false;
|
|
62581
62732
|
if (!isPointVisible) {
|
|
62582
|
-
this._addMarkLabelSpec(spec,
|
|
62733
|
+
this._addMarkLabelSpec(spec, "area");
|
|
62583
62734
|
}
|
|
62584
62735
|
}
|
|
62585
62736
|
_transformSpecAfterMergingTheme(spec, chartSpec, chartSpecInfo) {
|
|
@@ -62656,13 +62807,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62656
62807
|
var _a, _b, _c, _d, _e;
|
|
62657
62808
|
const userCurveType = ((_c = (_b = (_a = this.getSpec().area) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.curveType) !== null && _c !== void 0 ? _c : (_e = (_d = this.getSpec().line) === null || _d === void 0 ? void 0 : _d.style) === null || _e === void 0 ? void 0 : _e.curveType);
|
|
62658
62809
|
const curveType = userCurveType === DEFAULT_SMOOTH_INTERPOLATE
|
|
62659
|
-
? this._direction ===
|
|
62810
|
+
? this._direction === "vertical"
|
|
62660
62811
|
? 'monotoneX'
|
|
62661
62812
|
: 'monotoneY'
|
|
62662
62813
|
: userCurveType;
|
|
62663
62814
|
const areaMark = this._areaMark;
|
|
62664
62815
|
if (areaMark) {
|
|
62665
|
-
if (this._direction ===
|
|
62816
|
+
if (this._direction === "vertical") {
|
|
62666
62817
|
this.setMarkStyle(this._areaMark, {
|
|
62667
62818
|
x: this.dataToPositionX.bind(this),
|
|
62668
62819
|
y1: (datum) => {
|
|
@@ -62715,14 +62866,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62715
62866
|
const areaAnimationParams = { direction: this.direction };
|
|
62716
62867
|
const appearPreset = (_a = this._spec.animationAppear) === null || _a === void 0 ? void 0 : _a.preset;
|
|
62717
62868
|
if (this._lineMark) {
|
|
62718
|
-
this._lineMark.setAnimationConfig(animationConfig((_b = Factory.getAnimationInKey('line')) === null || _b === void 0 ? void 0 : _b(areaAnimationParams, appearPreset), userAnimationConfig(
|
|
62869
|
+
this._lineMark.setAnimationConfig(animationConfig((_b = Factory.getAnimationInKey('line')) === null || _b === void 0 ? void 0 : _b(areaAnimationParams, appearPreset), userAnimationConfig("line", this._spec, this._markAttributeContext)));
|
|
62719
62870
|
}
|
|
62720
62871
|
if (this._areaMark) {
|
|
62721
|
-
this._areaMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('area')) === null || _c === void 0 ? void 0 : _c(areaAnimationParams, appearPreset), userAnimationConfig(
|
|
62872
|
+
this._areaMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('area')) === null || _c === void 0 ? void 0 : _c(areaAnimationParams, appearPreset), userAnimationConfig("area", this._spec, this._markAttributeContext)));
|
|
62722
62873
|
}
|
|
62723
62874
|
if (this._symbolMark) {
|
|
62724
62875
|
const animationParams = getGroupAnimationParams(this);
|
|
62725
|
-
this._symbolMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('scaleInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig(
|
|
62876
|
+
this._symbolMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('scaleInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("point", this._spec, this._markAttributeContext), animationParams));
|
|
62726
62877
|
}
|
|
62727
62878
|
}
|
|
62728
62879
|
initTooltip() {
|
|
@@ -62795,12 +62946,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62795
62946
|
constructor() {
|
|
62796
62947
|
super(...arguments);
|
|
62797
62948
|
this.transformerConstructor = AreaChartSpecTransformer;
|
|
62798
|
-
this.type =
|
|
62949
|
+
this.type = "area";
|
|
62799
62950
|
this.seriesType = exports.SeriesTypeEnum.area;
|
|
62800
62951
|
this._canStack = true;
|
|
62801
62952
|
}
|
|
62802
62953
|
}
|
|
62803
|
-
AreaChart.type =
|
|
62954
|
+
AreaChart.type = "area";
|
|
62804
62955
|
AreaChart.seriesType = exports.SeriesTypeEnum.area;
|
|
62805
62956
|
AreaChart.view = 'singleDefault';
|
|
62806
62957
|
AreaChart.transformerConstructor = AreaChartSpecTransformer;
|
|
@@ -62827,13 +62978,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62827
62978
|
}
|
|
62828
62979
|
const barGrowIn = (params, isOverall = true) => {
|
|
62829
62980
|
return {
|
|
62830
|
-
type: params.direction ===
|
|
62981
|
+
type: params.direction === "horizontal" ? 'growWidthIn' : 'growHeightIn',
|
|
62831
62982
|
options: barGrowOption(params, isOverall)
|
|
62832
62983
|
};
|
|
62833
62984
|
};
|
|
62834
62985
|
const barGrowOut = (params, isOverall = true) => {
|
|
62835
62986
|
return {
|
|
62836
|
-
type: params.direction ===
|
|
62987
|
+
type: params.direction === "horizontal" ? 'growWidthOut' : 'growHeightOut',
|
|
62837
62988
|
options: barGrowOption(params, isOverall)
|
|
62838
62989
|
};
|
|
62839
62990
|
};
|
|
@@ -62887,7 +63038,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62887
63038
|
return defaultStyle;
|
|
62888
63039
|
}
|
|
62889
63040
|
}
|
|
62890
|
-
RectMark.type =
|
|
63041
|
+
RectMark.type = "rect";
|
|
62891
63042
|
const registerRectMark = () => {
|
|
62892
63043
|
Factory.registerMark(RectMark.type, RectMark);
|
|
62893
63044
|
registerRectGraphic();
|
|
@@ -62938,7 +63089,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62938
63089
|
|
|
62939
63090
|
class BarSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
62940
63091
|
_transformLabelSpec(spec) {
|
|
62941
|
-
this._addMarkLabelSpec(spec,
|
|
63092
|
+
this._addMarkLabelSpec(spec, "bar");
|
|
62942
63093
|
}
|
|
62943
63094
|
}
|
|
62944
63095
|
|
|
@@ -62947,8 +63098,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62947
63098
|
constructor() {
|
|
62948
63099
|
super(...arguments);
|
|
62949
63100
|
this.type = exports.SeriesTypeEnum.bar;
|
|
62950
|
-
this._barMarkName =
|
|
62951
|
-
this._barMarkType =
|
|
63101
|
+
this._barMarkName = "bar";
|
|
63102
|
+
this._barMarkType = "rect";
|
|
62952
63103
|
this.transformerConstructor = BarSeriesSpecTransformer;
|
|
62953
63104
|
this._supportStack = true;
|
|
62954
63105
|
this._bandPosition = 0;
|
|
@@ -63153,7 +63304,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63153
63304
|
var _a, _b, _c, _d;
|
|
63154
63305
|
const xScale = (_b = (_a = this._xAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0);
|
|
63155
63306
|
const yScale = (_d = (_c = this._yAxisHelper) === null || _c === void 0 ? void 0 : _c.getScale) === null || _d === void 0 ? void 0 : _d.call(_c, 0);
|
|
63156
|
-
if (this.direction ===
|
|
63307
|
+
if (this.direction === "horizontal") {
|
|
63157
63308
|
this.setMarkStyle(this._barMark, {
|
|
63158
63309
|
x: (datum) => {
|
|
63159
63310
|
if (this._shouldDoPreCalculate()) {
|
|
@@ -63210,7 +63361,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63210
63361
|
}
|
|
63211
63362
|
const xScale = (_b = (_a = this._xAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0);
|
|
63212
63363
|
const yScale = (_d = (_c = this._yAxisHelper) === null || _c === void 0 ? void 0 : _c.getScale) === null || _d === void 0 ? void 0 : _d.call(_c, 0);
|
|
63213
|
-
if (this.direction ===
|
|
63364
|
+
if (this.direction === "horizontal") {
|
|
63214
63365
|
this.setMarkStyle(this._barBackgroundMark, {
|
|
63215
63366
|
x: () => {
|
|
63216
63367
|
const range = xScale.range();
|
|
@@ -63249,7 +63400,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63249
63400
|
var _a, _b, _c, _d;
|
|
63250
63401
|
const xScale = (_b = (_a = this._xAxisHelper) === null || _a === void 0 ? void 0 : _a.getScale) === null || _b === void 0 ? void 0 : _b.call(_a, 0);
|
|
63251
63402
|
const yScale = (_d = (_c = this._yAxisHelper) === null || _c === void 0 ? void 0 : _c.getScale) === null || _d === void 0 ? void 0 : _d.call(_c, 0);
|
|
63252
|
-
if (this.direction ===
|
|
63403
|
+
if (this.direction === "vertical") {
|
|
63253
63404
|
this.setMarkStyle(this._barMark, {
|
|
63254
63405
|
x: (datum) => valueInScaleRange(this.dataToPositionX(datum), xScale),
|
|
63255
63406
|
x1: (datum) => valueInScaleRange(this.dataToPositionX1(datum), xScale),
|
|
@@ -63336,7 +63487,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63336
63487
|
let axisHelper;
|
|
63337
63488
|
let sizeAttribute;
|
|
63338
63489
|
let dataToPosition;
|
|
63339
|
-
if (direction ===
|
|
63490
|
+
if (direction === "horizontal") {
|
|
63340
63491
|
axisHelper = this.getYAxisHelper();
|
|
63341
63492
|
sizeAttribute = 'height';
|
|
63342
63493
|
dataToPosition = this.dataToPositionY.bind(this);
|
|
@@ -63393,9 +63544,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63393
63544
|
const fieldsX = this._fieldX;
|
|
63394
63545
|
samplingTrans.push({
|
|
63395
63546
|
type: 'sampling',
|
|
63396
|
-
size: this._direction ===
|
|
63547
|
+
size: this._direction === "vertical" ? width : height,
|
|
63397
63548
|
factor: this._spec.samplingFactor,
|
|
63398
|
-
yfield: this._direction ===
|
|
63549
|
+
yfield: this._direction === "vertical" ? fieldsY[0] : fieldsX[0],
|
|
63399
63550
|
groupBy: this._seriesField,
|
|
63400
63551
|
mode: this._spec.sampling
|
|
63401
63552
|
});
|
|
@@ -63455,12 +63606,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63455
63606
|
constructor() {
|
|
63456
63607
|
super(...arguments);
|
|
63457
63608
|
this.transformerConstructor = BarChartSpecTransformer;
|
|
63458
|
-
this.type =
|
|
63609
|
+
this.type = "bar";
|
|
63459
63610
|
this.seriesType = exports.SeriesTypeEnum.bar;
|
|
63460
63611
|
this._canStack = true;
|
|
63461
63612
|
}
|
|
63462
63613
|
}
|
|
63463
|
-
BarChart.type =
|
|
63614
|
+
BarChart.type = "bar";
|
|
63464
63615
|
BarChart.seriesType = exports.SeriesTypeEnum.bar;
|
|
63465
63616
|
BarChart.view = 'singleDefault';
|
|
63466
63617
|
BarChart.transformerConstructor = BarChartSpecTransformer;
|
|
@@ -63479,7 +63630,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63479
63630
|
return defaultStyle;
|
|
63480
63631
|
}
|
|
63481
63632
|
}
|
|
63482
|
-
Rect3dMark.type =
|
|
63633
|
+
Rect3dMark.type = "rect3d";
|
|
63483
63634
|
const registerRect3dMark = () => {
|
|
63484
63635
|
Factory.registerMark(Rect3dMark.type, Rect3dMark);
|
|
63485
63636
|
registerRect3dGraphic();
|
|
@@ -63490,8 +63641,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63490
63641
|
constructor() {
|
|
63491
63642
|
super(...arguments);
|
|
63492
63643
|
this.type = exports.SeriesTypeEnum.bar3d;
|
|
63493
|
-
this._barMarkName =
|
|
63494
|
-
this._barMarkType =
|
|
63644
|
+
this._barMarkName = "bar3d";
|
|
63645
|
+
this._barMarkType = "rect3d";
|
|
63495
63646
|
}
|
|
63496
63647
|
}
|
|
63497
63648
|
Bar3dSeries.type = exports.SeriesTypeEnum.bar3d;
|
|
@@ -63512,11 +63663,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63512
63663
|
constructor() {
|
|
63513
63664
|
super(...arguments);
|
|
63514
63665
|
this.transformerConstructor = Bar3dChartSpecTransformer;
|
|
63515
|
-
this.type =
|
|
63666
|
+
this.type = "bar3d";
|
|
63516
63667
|
this.seriesType = exports.SeriesTypeEnum.bar3d;
|
|
63517
63668
|
}
|
|
63518
63669
|
}
|
|
63519
|
-
Bar3dChart.type =
|
|
63670
|
+
Bar3dChart.type = "bar3d";
|
|
63520
63671
|
Bar3dChart.seriesType = exports.SeriesTypeEnum.bar3d;
|
|
63521
63672
|
Bar3dChart.view = 'singleDefault';
|
|
63522
63673
|
Bar3dChart.transformerConstructor = Bar3dChartSpecTransformer;
|
|
@@ -63557,7 +63708,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63557
63708
|
|
|
63558
63709
|
class ScatterSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
63559
63710
|
_transformLabelSpec(spec) {
|
|
63560
|
-
this._addMarkLabelSpec(spec,
|
|
63711
|
+
this._addMarkLabelSpec(spec, "point");
|
|
63561
63712
|
}
|
|
63562
63713
|
}
|
|
63563
63714
|
|
|
@@ -63678,7 +63829,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63678
63829
|
var _a, _b, _c;
|
|
63679
63830
|
const animationParams = getGroupAnimationParams(this);
|
|
63680
63831
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
63681
|
-
this._symbolMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('scatter')) === null || _c === void 0 ? void 0 : _c({}, appearPreset), userAnimationConfig(
|
|
63832
|
+
this._symbolMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('scatter')) === null || _c === void 0 ? void 0 : _c({}, appearPreset), userAnimationConfig("point", this._spec, this._markAttributeContext), animationParams));
|
|
63682
63833
|
}
|
|
63683
63834
|
initSymbolMarkStyle() {
|
|
63684
63835
|
const symbolMark = this._symbolMark;
|
|
@@ -63813,12 +63964,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63813
63964
|
constructor() {
|
|
63814
63965
|
super(...arguments);
|
|
63815
63966
|
this.transformerConstructor = ScatterChartSpecTransformer;
|
|
63816
|
-
this.type =
|
|
63967
|
+
this.type = "scatter";
|
|
63817
63968
|
this.seriesType = exports.SeriesTypeEnum.scatter;
|
|
63818
63969
|
this._canStack = true;
|
|
63819
63970
|
}
|
|
63820
63971
|
}
|
|
63821
|
-
ScatterChart.type =
|
|
63972
|
+
ScatterChart.type = "scatter";
|
|
63822
63973
|
ScatterChart.seriesType = exports.SeriesTypeEnum.scatter;
|
|
63823
63974
|
ScatterChart.view = 'singleDefault';
|
|
63824
63975
|
ScatterChart.transformerConstructor = ScatterChartSpecTransformer;
|
|
@@ -64199,7 +64350,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64199
64350
|
return defaultStyle;
|
|
64200
64351
|
}
|
|
64201
64352
|
}
|
|
64202
|
-
PathMark.type =
|
|
64353
|
+
PathMark.type = "path";
|
|
64203
64354
|
const registerPathMark = () => {
|
|
64204
64355
|
Factory.registerMark(PathMark.type, PathMark);
|
|
64205
64356
|
registerPathGraphic();
|
|
@@ -64499,8 +64650,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64499
64650
|
const theme = getComponentThemeFromOption(type, chartTheme);
|
|
64500
64651
|
const directionTheme = theme[getDirectionByOrient(orient)];
|
|
64501
64652
|
const finalTheme = mergeSpec({}, theme, directionTheme);
|
|
64502
|
-
delete finalTheme[
|
|
64503
|
-
delete finalTheme[
|
|
64653
|
+
delete finalTheme["horizontal"];
|
|
64654
|
+
delete finalTheme["vertical"];
|
|
64504
64655
|
return finalTheme;
|
|
64505
64656
|
};
|
|
64506
64657
|
|
|
@@ -64812,10 +64963,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64812
64963
|
this._isGestureListener = isMobileLikeMode(this._renderMode) || isMiniAppLikeMode(this._renderMode);
|
|
64813
64964
|
if (getDefaultTriggerEventByMode(this._renderMode)) {
|
|
64814
64965
|
this._clickEnable = true;
|
|
64815
|
-
this._zoomableTrigger = new (this.
|
|
64966
|
+
this._zoomableTrigger = new (this._getZoomTriggerEvent('trigger'))();
|
|
64816
64967
|
}
|
|
64817
64968
|
}
|
|
64818
|
-
|
|
64969
|
+
_getZoomTriggerEvent(type) {
|
|
64819
64970
|
return getDefaultTriggerEventByMode(this._renderMode)[type];
|
|
64820
64971
|
}
|
|
64821
64972
|
_zoomEventDispatch(params, regionOrSeries, callback) {
|
|
@@ -64862,11 +65013,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64862
65013
|
const delayTime = (_b = option === null || option === void 0 ? void 0 : option.delayTime) !== null && _b !== void 0 ? _b : 0;
|
|
64863
65014
|
const event = this._isGestureListener ? this._gestureController : eventObj;
|
|
64864
65015
|
const zoomParams = this._isGestureListener
|
|
64865
|
-
? [this.
|
|
64866
|
-
: [this.
|
|
65016
|
+
? [this._getZoomTriggerEvent('zoom')]
|
|
65017
|
+
: [this._getZoomTriggerEvent('zoom'), { level: exports.Event_Bubble_Level.chart, consume: true }];
|
|
64867
65018
|
const zoomEndParams = this._isGestureListener
|
|
64868
|
-
? [this.
|
|
64869
|
-
: [this.
|
|
65019
|
+
? [this._getZoomTriggerEvent('zoomEnd')]
|
|
65020
|
+
: [this._getZoomTriggerEvent('zoomEnd'), { level: exports.Event_Bubble_Level.chart, consume: false }];
|
|
64870
65021
|
event.on(...zoomEndParams, delayMap[delayType]((params) => {
|
|
64871
65022
|
this._zoomableTrigger.clearZoom();
|
|
64872
65023
|
}, delayTime));
|
|
@@ -64935,11 +65086,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64935
65086
|
const delayTime = (_b = option === null || option === void 0 ? void 0 : option.delayTime) !== null && _b !== void 0 ? _b : 0;
|
|
64936
65087
|
const event = this._isGestureListener ? this._gestureController : eventObj;
|
|
64937
65088
|
const scrollParams = this._isGestureListener
|
|
64938
|
-
? [this.
|
|
64939
|
-
: [this.
|
|
65089
|
+
? [this._getZoomTriggerEvent('scroll')]
|
|
65090
|
+
: [this._getZoomTriggerEvent('scroll'), { level: exports.Event_Bubble_Level.chart, consume: true }];
|
|
64940
65091
|
const scrollEndParams = this._isGestureListener
|
|
64941
|
-
? [this.
|
|
64942
|
-
: [this.
|
|
65092
|
+
? [this._getZoomTriggerEvent('scrollEnd')]
|
|
65093
|
+
: [this._getZoomTriggerEvent('scrollEnd'), { level: exports.Event_Bubble_Level.chart, consume: false }];
|
|
64943
65094
|
event.on(...scrollEndParams, delayMap[delayType]((params) => {
|
|
64944
65095
|
this._zoomableTrigger.clearScroll();
|
|
64945
65096
|
}, delayTime));
|
|
@@ -64972,7 +65123,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64972
65123
|
}
|
|
64973
65124
|
}
|
|
64974
65125
|
_bindDragEventAsRegion(eventObj, regionOrSeries, callback, option) {
|
|
64975
|
-
eventObj.on(this.
|
|
65126
|
+
eventObj.on(this._getZoomTriggerEvent('start'), { level: exports.Event_Bubble_Level.chart }, (params) => {
|
|
64976
65127
|
if (!params.event) {
|
|
64977
65128
|
return;
|
|
64978
65129
|
}
|
|
@@ -64994,7 +65145,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64994
65145
|
return;
|
|
64995
65146
|
}
|
|
64996
65147
|
if (getDefaultTriggerEventByMode(this._renderMode)) {
|
|
64997
|
-
s.event.on(this.
|
|
65148
|
+
s.event.on(this._getZoomTriggerEvent('start'), { level: exports.Event_Bubble_Level.model, filter: ({ model }) => (model === null || model === void 0 ? void 0 : model.id) === s.id }, params => {
|
|
64998
65149
|
this._handleDrag(params, callback, option);
|
|
64999
65150
|
});
|
|
65000
65151
|
}
|
|
@@ -65008,7 +65159,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65008
65159
|
if (filter) {
|
|
65009
65160
|
r.getSeries().forEach(s => {
|
|
65010
65161
|
if (filter(s)) {
|
|
65011
|
-
s.event.on(this.
|
|
65162
|
+
s.event.on(this._getZoomTriggerEvent('start'), { level: exports.Event_Bubble_Level.model, filter: ({ model }) => (model === null || model === void 0 ? void 0 : model.id) === s.id }, params => {
|
|
65012
65163
|
this._handleDrag(params, callback);
|
|
65013
65164
|
});
|
|
65014
65165
|
s.event.on('click', { level: exports.Event_Bubble_Level.model, filter: ({ model }) => (model === null || model === void 0 ? void 0 : model.id) === s.id }, () => {
|
|
@@ -65035,8 +65186,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65035
65186
|
const delayType = (_a = option === null || option === void 0 ? void 0 : option.delayType) !== null && _a !== void 0 ? _a : 'throttle';
|
|
65036
65187
|
const delayTime = (_b = option === null || option === void 0 ? void 0 : option.delayTime) !== null && _b !== void 0 ? _b : 0;
|
|
65037
65188
|
const realTime = (_c = option === null || option === void 0 ? void 0 : option.realTime) !== null && _c !== void 0 ? _c : true;
|
|
65038
|
-
const move = this.
|
|
65039
|
-
const end = this.
|
|
65189
|
+
const move = this._getZoomTriggerEvent('move');
|
|
65190
|
+
const end = this._getZoomTriggerEvent('end');
|
|
65040
65191
|
const event = params.event;
|
|
65041
65192
|
let moveX = event.canvasX;
|
|
65042
65193
|
let moveY = event.canvasY;
|
|
@@ -65410,7 +65561,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65410
65561
|
|
|
65411
65562
|
class MapSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
65412
65563
|
_transformLabelSpec(spec) {
|
|
65413
|
-
this._addMarkLabelSpec(spec,
|
|
65564
|
+
this._addMarkLabelSpec(spec, "area", undefined, undefined, false);
|
|
65414
65565
|
}
|
|
65415
65566
|
}
|
|
65416
65567
|
|
|
@@ -65538,7 +65689,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65538
65689
|
}
|
|
65539
65690
|
initAnimation() {
|
|
65540
65691
|
var _a;
|
|
65541
|
-
this._pathMark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('fadeInOut')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig(
|
|
65692
|
+
this._pathMark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('fadeInOut')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig("area", this._spec, this._markAttributeContext)));
|
|
65542
65693
|
}
|
|
65543
65694
|
initTooltip() {
|
|
65544
65695
|
this._tooltipHelper = new MapSeriesTooltipHelper(this);
|
|
@@ -65824,7 +65975,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65824
65975
|
return defaultStyle;
|
|
65825
65976
|
}
|
|
65826
65977
|
}
|
|
65827
|
-
RuleMark.type =
|
|
65978
|
+
RuleMark.type = "rule";
|
|
65828
65979
|
const registerRuleMark = () => {
|
|
65829
65980
|
Factory.registerMark(RuleMark.type, RuleMark);
|
|
65830
65981
|
registerRuleGraphic();
|
|
@@ -65918,8 +66069,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65918
66069
|
|
|
65919
66070
|
class WaterfallSeriesSpecTransformer extends BarSeriesSpecTransformer {
|
|
65920
66071
|
_transformLabelSpec(spec) {
|
|
65921
|
-
this._addMarkLabelSpec(spec,
|
|
65922
|
-
this._addMarkLabelSpec(spec,
|
|
66072
|
+
this._addMarkLabelSpec(spec, "bar");
|
|
66073
|
+
this._addMarkLabelSpec(spec, "bar", 'stackLabel');
|
|
65923
66074
|
}
|
|
65924
66075
|
}
|
|
65925
66076
|
|
|
@@ -66014,9 +66165,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66014
66165
|
};
|
|
66015
66166
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
66016
66167
|
const animationParams = getGroupAnimationParams(this);
|
|
66017
|
-
this._barMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('waterfall')) === null || _c === void 0 ? void 0 : _c(waterfallAnimationParams, appearPreset), userAnimationConfig(
|
|
66168
|
+
this._barMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('waterfall')) === null || _c === void 0 ? void 0 : _c(waterfallAnimationParams, appearPreset), userAnimationConfig("bar", this._spec, this._markAttributeContext), animationParams));
|
|
66018
66169
|
if (this._leaderLineMark) {
|
|
66019
|
-
this._leaderLineMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig(
|
|
66170
|
+
this._leaderLineMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("leaderLine", this._spec, this._markAttributeContext)));
|
|
66020
66171
|
}
|
|
66021
66172
|
}
|
|
66022
66173
|
viewDataUpdate(d) {
|
|
@@ -66067,7 +66218,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66067
66218
|
}
|
|
66068
66219
|
totalPositionX(datum, field, pos = 0.5) {
|
|
66069
66220
|
const { dataToPosition, getBandwidth } = this._xAxisHelper;
|
|
66070
|
-
if (this._direction ===
|
|
66221
|
+
if (this._direction === "vertical") {
|
|
66071
66222
|
return (dataToPosition([datum[field]], {
|
|
66072
66223
|
bandPosition: this._bandPosition
|
|
66073
66224
|
}) +
|
|
@@ -66080,7 +66231,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66080
66231
|
}
|
|
66081
66232
|
totalPositionY(datum, field, pos = 0.5) {
|
|
66082
66233
|
const { dataToPosition, getBandwidth } = this._yAxisHelper;
|
|
66083
|
-
if (this._direction ===
|
|
66234
|
+
if (this._direction === "vertical") {
|
|
66084
66235
|
return valueInScaleRange(dataToPosition([datum[field]], {
|
|
66085
66236
|
bandPosition: this._bandPosition
|
|
66086
66237
|
}));
|
|
@@ -66094,7 +66245,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66094
66245
|
initMarkStyle() {
|
|
66095
66246
|
super.initMarkStyle();
|
|
66096
66247
|
if (this._leaderLineMark) {
|
|
66097
|
-
if (this._direction ===
|
|
66248
|
+
if (this._direction === "vertical") {
|
|
66098
66249
|
this.setMarkStyle(this._leaderLineMark, {
|
|
66099
66250
|
visible: (datum) => !isNil$1(datum.lastIndex),
|
|
66100
66251
|
x: (datum) => {
|
|
@@ -66368,7 +66519,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66368
66519
|
this._compiledProductId = id;
|
|
66369
66520
|
}
|
|
66370
66521
|
}
|
|
66371
|
-
BoxPlotMark.type =
|
|
66522
|
+
BoxPlotMark.type = "boxPlot";
|
|
66372
66523
|
const registerBoxPlotMark = () => {
|
|
66373
66524
|
Factory.registerMark(BoxPlotMark.type, BoxPlotMark);
|
|
66374
66525
|
registerBoxplotGlyph();
|
|
@@ -66466,7 +66617,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66466
66617
|
minMaxFillOpacity: this._shaftFillOpacity,
|
|
66467
66618
|
stroke: (_b = this._strokeColor) !== null && _b !== void 0 ? _b : (this._shaftShape === 'line' ? this.getColorAttribute() : DEFAULT_STROKE_COLOR)
|
|
66468
66619
|
};
|
|
66469
|
-
const boxPlotMarkStyles = this._direction ===
|
|
66620
|
+
const boxPlotMarkStyles = this._direction === "vertical"
|
|
66470
66621
|
? Object.assign(Object.assign({ x: this.dataToPositionX.bind(this) }, commonBoxplotStyles), { boxWidth: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, ruleWidth: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, q1q3Width: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, minMaxWidth: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); } }) : Object.assign(Object.assign({ y: this.dataToPositionY.bind(this) }, commonBoxplotStyles), { boxHeight: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, ruleHeight: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, q1q3Height: () => { var _a; return (_a = this._boxWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); }, minMaxHeight: () => { var _a; return (_a = this._shaftWidth) !== null && _a !== void 0 ? _a : this._getMarkWidth(); } });
|
|
66471
66622
|
this.setMarkStyle(boxPlotMark, boxPlotMarkStyles, STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
66472
66623
|
this._trigger.registerMark(boxPlotMark);
|
|
@@ -66484,7 +66635,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66484
66635
|
initBoxPlotMarkStyle() {
|
|
66485
66636
|
var _a, _b;
|
|
66486
66637
|
const boxPlotMark = this._boxPlotMark;
|
|
66487
|
-
const axisHelper = this._direction ===
|
|
66638
|
+
const axisHelper = this._direction === "vertical" ? this._yAxisHelper : this._xAxisHelper;
|
|
66488
66639
|
if (boxPlotMark && axisHelper) {
|
|
66489
66640
|
const { dataToPosition } = axisHelper;
|
|
66490
66641
|
const scale = (_a = axisHelper === null || axisHelper === void 0 ? void 0 : axisHelper.getScale) === null || _a === void 0 ? void 0 : _a.call(axisHelper, 0);
|
|
@@ -66510,7 +66661,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66510
66661
|
if (outlierMark && axisHelper) {
|
|
66511
66662
|
const { dataToPosition } = axisHelper;
|
|
66512
66663
|
const scale = (_b = axisHelper === null || axisHelper === void 0 ? void 0 : axisHelper.getScale) === null || _b === void 0 ? void 0 : _b.call(axisHelper, 0);
|
|
66513
|
-
const outlierMarkPositionChannel = this._direction ===
|
|
66664
|
+
const outlierMarkPositionChannel = this._direction === "vertical"
|
|
66514
66665
|
? {
|
|
66515
66666
|
x: this.dataToPositionX.bind(this),
|
|
66516
66667
|
y: (datum) => valueInScaleRange(dataToPosition(this.getDatumPositionValues(datum, BOX_PLOT_OUTLIER_VALUE_FIELD), {
|
|
@@ -66541,7 +66692,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66541
66692
|
outlierDataView.transform({
|
|
66542
66693
|
type: 'foldOutlierData',
|
|
66543
66694
|
options: {
|
|
66544
|
-
dimensionField: this._direction ===
|
|
66695
|
+
dimensionField: this._direction === "vertical" ? this._fieldX : this._fieldY,
|
|
66545
66696
|
outliersField: this._outliersField
|
|
66546
66697
|
}
|
|
66547
66698
|
});
|
|
@@ -66562,8 +66713,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66562
66713
|
if (this._autoBoxWidth) {
|
|
66563
66714
|
return this._autoBoxWidth;
|
|
66564
66715
|
}
|
|
66565
|
-
const bandAxisHelper = this._direction ===
|
|
66566
|
-
const xField = this._direction ===
|
|
66716
|
+
const bandAxisHelper = this._direction === "vertical" ? this._xAxisHelper : this._yAxisHelper;
|
|
66717
|
+
const xField = this._direction === "vertical" ? this._fieldX : this._fieldY;
|
|
66567
66718
|
const innerBandWidth = bandAxisHelper.getBandwidth(xField.length - 1);
|
|
66568
66719
|
const autoBoxWidth = innerBandWidth / xField.length;
|
|
66569
66720
|
this._autoBoxWidth = autoBoxWidth;
|
|
@@ -66590,7 +66741,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66590
66741
|
const animationParams = getGroupAnimationParams(this);
|
|
66591
66742
|
if (this._boxPlotMark) {
|
|
66592
66743
|
const newDefaultConfig = this._initAnimationSpec((_a = Factory.getAnimationInKey('scaleInOut')) === null || _a === void 0 ? void 0 : _a());
|
|
66593
|
-
const newConfig = this._initAnimationSpec(userAnimationConfig(
|
|
66744
|
+
const newConfig = this._initAnimationSpec(userAnimationConfig("boxPlot", this._spec, this._markAttributeContext));
|
|
66594
66745
|
this._boxPlotMark.setAnimationConfig(animationConfig(newDefaultConfig, newConfig, animationParams));
|
|
66595
66746
|
}
|
|
66596
66747
|
if (this._outlierMark) {
|
|
@@ -66658,7 +66809,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66658
66809
|
this._compiledProductId = id;
|
|
66659
66810
|
}
|
|
66660
66811
|
}
|
|
66661
|
-
TextMark.type =
|
|
66812
|
+
TextMark.type = "text";
|
|
66662
66813
|
const registerTextMark = () => {
|
|
66663
66814
|
Factory.registerMark(TextMark.type, TextMark);
|
|
66664
66815
|
registerTextGraphic();
|
|
@@ -66669,7 +66820,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66669
66820
|
component.setMarkStyle(labelMark, {
|
|
66670
66821
|
textAlign: (datum) => {
|
|
66671
66822
|
const d = direction();
|
|
66672
|
-
if (d ===
|
|
66823
|
+
if (d === "vertical") {
|
|
66673
66824
|
return 'center';
|
|
66674
66825
|
}
|
|
66675
66826
|
const _x = x(datum);
|
|
@@ -66703,7 +66854,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66703
66854
|
},
|
|
66704
66855
|
textBaseline: (datum) => {
|
|
66705
66856
|
const d = direction();
|
|
66706
|
-
if (d ===
|
|
66857
|
+
if (d === "horizontal") {
|
|
66707
66858
|
return 'middle';
|
|
66708
66859
|
}
|
|
66709
66860
|
const _y = y(datum);
|
|
@@ -66741,7 +66892,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66741
66892
|
const d = direction();
|
|
66742
66893
|
const _x = x(datum);
|
|
66743
66894
|
const _x1 = x1(datum);
|
|
66744
|
-
if (d ===
|
|
66895
|
+
if (d === "vertical") {
|
|
66745
66896
|
return (_x + _x1) / 2;
|
|
66746
66897
|
}
|
|
66747
66898
|
if (position === 'middle') {
|
|
@@ -66775,7 +66926,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66775
66926
|
const d = direction();
|
|
66776
66927
|
const _y = y(datum);
|
|
66777
66928
|
const _y1 = y1(datum);
|
|
66778
|
-
if (d ===
|
|
66929
|
+
if (d === "horizontal") {
|
|
66779
66930
|
return (_y + _y1) / 2;
|
|
66780
66931
|
}
|
|
66781
66932
|
if (position === 'middle') {
|
|
@@ -66821,7 +66972,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66821
66972
|
content: [
|
|
66822
66973
|
{
|
|
66823
66974
|
key: this.contentKeyCallback,
|
|
66824
|
-
value: (datum) => this.series.getSpec().direction ===
|
|
66975
|
+
value: (datum) => this.series.getSpec().direction === "horizontal"
|
|
66825
66976
|
? datum[this.series.getSpec().xField[0]] + '-' + datum[this.series.getSpec().xField[1]]
|
|
66826
66977
|
: datum[this.series.getSpec().yField[0]] + '-' + datum[this.series.getSpec().yField[1]],
|
|
66827
66978
|
hasShape: true,
|
|
@@ -66876,8 +67027,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66876
67027
|
_transformLabelSpec(spec) {
|
|
66877
67028
|
var _a;
|
|
66878
67029
|
const labelPosition = (_a = spec.label) === null || _a === void 0 ? void 0 : _a.position;
|
|
66879
|
-
if (labelPosition !==
|
|
66880
|
-
this._addMarkLabelSpec(spec,
|
|
67030
|
+
if (labelPosition !== "bothEnd") {
|
|
67031
|
+
this._addMarkLabelSpec(spec, "bar");
|
|
66881
67032
|
}
|
|
66882
67033
|
}
|
|
66883
67034
|
}
|
|
@@ -66886,7 +67037,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66886
67037
|
constructor() {
|
|
66887
67038
|
super(...arguments);
|
|
66888
67039
|
this.type = exports.SeriesTypeEnum.rangeColumn;
|
|
66889
|
-
this._barMarkType =
|
|
67040
|
+
this._barMarkType = "rect";
|
|
66890
67041
|
this._barName = exports.SeriesTypeEnum.bar;
|
|
66891
67042
|
this.transformerConstructor = RangeColumnSeriesSpecTransformer;
|
|
66892
67043
|
this._stack = false;
|
|
@@ -66902,7 +67053,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66902
67053
|
isSeriesMark: true,
|
|
66903
67054
|
customShape: (_b = this._spec.bar) === null || _b === void 0 ? void 0 : _b.customShape
|
|
66904
67055
|
});
|
|
66905
|
-
if (((_c = this._spec.label) === null || _c === void 0 ? void 0 : _c.visible) !== false && labelPosition ===
|
|
67056
|
+
if (((_c = this._spec.label) === null || _c === void 0 ? void 0 : _c.visible) !== false && labelPosition === "bothEnd") {
|
|
66906
67057
|
if (((_e = (_d = this._spec.label) === null || _d === void 0 ? void 0 : _d.minLabel) === null || _e === void 0 ? void 0 : _e.visible) !== false) {
|
|
66907
67058
|
this._minLabelMark = this._createMark(RangeColumnSeries.mark.minLabel, {
|
|
66908
67059
|
markSpec: (_f = this._spec.label) === null || _f === void 0 ? void 0 : _f.minLabel
|
|
@@ -66924,7 +67075,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66924
67075
|
this.setMarkStyle(minLabelMark, {
|
|
66925
67076
|
fill: (_c = (_b = minLabelSpec === null || minLabelSpec === void 0 ? void 0 : minLabelSpec.style) === null || _b === void 0 ? void 0 : _b.fill) !== null && _c !== void 0 ? _c : this.getColorAttribute(),
|
|
66926
67077
|
text: (datum) => {
|
|
66927
|
-
const min = this._spec.direction ===
|
|
67078
|
+
const min = this._spec.direction === "horizontal" ? datum[this._spec.xField[0]] : datum[this._spec.yField[0]];
|
|
66928
67079
|
if (minLabelSpec === null || minLabelSpec === void 0 ? void 0 : minLabelSpec.formatMethod) {
|
|
66929
67080
|
return minLabelSpec.formatMethod(min, datum);
|
|
66930
67081
|
}
|
|
@@ -66951,7 +67102,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66951
67102
|
this.setMarkStyle(maxLabelMark, {
|
|
66952
67103
|
fill: (_h = (_g = maxLabelSpec === null || maxLabelSpec === void 0 ? void 0 : maxLabelSpec.style) === null || _g === void 0 ? void 0 : _g.fill) !== null && _h !== void 0 ? _h : this.getColorAttribute(),
|
|
66953
67104
|
text: (datum) => {
|
|
66954
|
-
const max = this._spec.direction ===
|
|
67105
|
+
const max = this._spec.direction === "horizontal" ? datum[this._spec.xField[1]] : datum[this._spec.yField[1]];
|
|
66955
67106
|
if (maxLabelSpec === null || maxLabelSpec === void 0 ? void 0 : maxLabelSpec.formatMethod) {
|
|
66956
67107
|
return maxLabelSpec.formatMethod(max, datum);
|
|
66957
67108
|
}
|
|
@@ -66981,7 +67132,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66981
67132
|
text: (datum) => {
|
|
66982
67133
|
let min;
|
|
66983
67134
|
let max;
|
|
66984
|
-
if (this._spec.direction ===
|
|
67135
|
+
if (this._spec.direction === "horizontal") {
|
|
66985
67136
|
min = datum[this._spec.xField[0]];
|
|
66986
67137
|
max = datum[this._spec.xField[1]];
|
|
66987
67138
|
}
|
|
@@ -67019,12 +67170,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67019
67170
|
var _a, _b, _c, _d, _e;
|
|
67020
67171
|
const animationParams = getGroupAnimationParams(this);
|
|
67021
67172
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
67022
|
-
this._barMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('rangeColumn')) === null || _c === void 0 ? void 0 : _c({ direction: this.direction }, appearPreset), userAnimationConfig(
|
|
67173
|
+
this._barMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('rangeColumn')) === null || _c === void 0 ? void 0 : _c({ direction: this.direction }, appearPreset), userAnimationConfig("bar", this._spec, this._markAttributeContext), animationParams));
|
|
67023
67174
|
if (this._minLabelMark) {
|
|
67024
|
-
this._minLabelMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig(
|
|
67175
|
+
this._minLabelMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("label", this._spec, this._markAttributeContext), animationParams));
|
|
67025
67176
|
}
|
|
67026
67177
|
if (this._maxLabelMark) {
|
|
67027
|
-
this._maxLabelMark.setAnimationConfig(animationConfig((_e = Factory.getAnimationInKey('fadeInOut')) === null || _e === void 0 ? void 0 : _e(), userAnimationConfig(
|
|
67178
|
+
this._maxLabelMark.setAnimationConfig(animationConfig((_e = Factory.getAnimationInKey('fadeInOut')) === null || _e === void 0 ? void 0 : _e(), userAnimationConfig("label", this._spec, this._markAttributeContext), animationParams));
|
|
67028
67179
|
}
|
|
67029
67180
|
}
|
|
67030
67181
|
initTooltip() {
|
|
@@ -67050,7 +67201,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67050
67201
|
constructor() {
|
|
67051
67202
|
super(...arguments);
|
|
67052
67203
|
this.type = exports.SeriesTypeEnum.rangeColumn3d;
|
|
67053
|
-
this._barMarkType =
|
|
67204
|
+
this._barMarkType = "rect3d";
|
|
67054
67205
|
this._barName = exports.SeriesTypeEnum.bar3d;
|
|
67055
67206
|
}
|
|
67056
67207
|
}
|
|
@@ -67098,7 +67249,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67098
67249
|
seriesId: series.id,
|
|
67099
67250
|
key: this.contentKeyCallback,
|
|
67100
67251
|
value: (datum) => {
|
|
67101
|
-
return this.series.getSpec().direction ===
|
|
67252
|
+
return this.series.getSpec().direction === "horizontal"
|
|
67102
67253
|
? datum[this.series.getSpec().xField[0]] + '-' + datum[this.series.getSpec().xField[1]]
|
|
67103
67254
|
: datum[this.series.getSpec().yField[0]] + '-' + datum[this.series.getSpec().yField[1]];
|
|
67104
67255
|
},
|
|
@@ -67139,13 +67290,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67139
67290
|
var _a, _b, _c, _d, _e;
|
|
67140
67291
|
const userCurveType = (_c = (_b = (_a = this.getSpec().area) === null || _a === void 0 ? void 0 : _a.style) === null || _b === void 0 ? void 0 : _b.curveType) !== null && _c !== void 0 ? _c : (_e = (_d = this.getSpec().line) === null || _d === void 0 ? void 0 : _d.style) === null || _e === void 0 ? void 0 : _e.curveType;
|
|
67141
67292
|
const curveType = userCurveType === DEFAULT_SMOOTH_INTERPOLATE
|
|
67142
|
-
? this._direction ===
|
|
67293
|
+
? this._direction === "vertical"
|
|
67143
67294
|
? 'monotoneX'
|
|
67144
67295
|
: 'monotoneY'
|
|
67145
67296
|
: userCurveType;
|
|
67146
67297
|
const areaMark = this._areaMark;
|
|
67147
67298
|
if (areaMark) {
|
|
67148
|
-
if (this._direction ===
|
|
67299
|
+
if (this._direction === "vertical") {
|
|
67149
67300
|
this.setMarkStyle(this._areaMark, {
|
|
67150
67301
|
x: this.dataToPositionX.bind(this),
|
|
67151
67302
|
y1: (datum) => {
|
|
@@ -67655,7 +67806,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67655
67806
|
this.type = ArcMark.type;
|
|
67656
67807
|
}
|
|
67657
67808
|
}
|
|
67658
|
-
ArcMark.type =
|
|
67809
|
+
ArcMark.type = "arc";
|
|
67659
67810
|
const registerArcMark = () => {
|
|
67660
67811
|
registerArcGraphic();
|
|
67661
67812
|
registerVGrammarArcAnimation();
|
|
@@ -67664,7 +67815,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67664
67815
|
|
|
67665
67816
|
class PieSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
67666
67817
|
_transformLabelSpec(spec) {
|
|
67667
|
-
this._addMarkLabelSpec(spec,
|
|
67818
|
+
this._addMarkLabelSpec(spec, "pie");
|
|
67668
67819
|
}
|
|
67669
67820
|
_mergeThemeToSpec(spec, chartSpec) {
|
|
67670
67821
|
const theme = this._theme;
|
|
@@ -67687,8 +67838,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67687
67838
|
constructor() {
|
|
67688
67839
|
super(...arguments);
|
|
67689
67840
|
this.transformerConstructor = PieSeriesSpecTransformer;
|
|
67690
|
-
this._pieMarkName =
|
|
67691
|
-
this._pieMarkType =
|
|
67841
|
+
this._pieMarkName = "pie";
|
|
67842
|
+
this._pieMarkType = "arc";
|
|
67692
67843
|
this._startAngle = POLAR_START_RADIAN;
|
|
67693
67844
|
this._endAngle = POLAR_END_RADIAN;
|
|
67694
67845
|
this._pieMark = null;
|
|
@@ -67980,7 +68131,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67980
68131
|
};
|
|
67981
68132
|
const appearPreset = (_a = this._spec.animationAppear) === null || _a === void 0 ? void 0 : _a.preset;
|
|
67982
68133
|
if (this._pieMark) {
|
|
67983
|
-
const pieAnimationConfig = animationConfig((_b = Factory.getAnimationInKey('pie')) === null || _b === void 0 ? void 0 : _b(animationParams, appearPreset), userAnimationConfig(
|
|
68134
|
+
const pieAnimationConfig = animationConfig((_b = Factory.getAnimationInKey('pie')) === null || _b === void 0 ? void 0 : _b(animationParams, appearPreset), userAnimationConfig("pie", this._spec, this._markAttributeContext));
|
|
67984
68135
|
if (pieAnimationConfig.normal && pieAnimationConfig.normal.type) {
|
|
67985
68136
|
pieAnimationConfig.normal = centerOffsetConfig(this._pieMark, pieAnimationConfig.normal);
|
|
67986
68137
|
}
|
|
@@ -68028,7 +68179,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68028
68179
|
this._support3d = true;
|
|
68029
68180
|
}
|
|
68030
68181
|
}
|
|
68031
|
-
Arc3dMark.type =
|
|
68182
|
+
Arc3dMark.type = "arc3d";
|
|
68032
68183
|
const registerArc3dMark = () => {
|
|
68033
68184
|
registerVGrammarArcAnimation();
|
|
68034
68185
|
registerArc3dGraphic();
|
|
@@ -68037,7 +68188,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68037
68188
|
|
|
68038
68189
|
class Pie3dSeriesSpecTransformer extends PieSeriesSpecTransformer {
|
|
68039
68190
|
_transformLabelSpec(spec) {
|
|
68040
|
-
this._addMarkLabelSpec(spec,
|
|
68191
|
+
this._addMarkLabelSpec(spec, "pie3d");
|
|
68041
68192
|
}
|
|
68042
68193
|
}
|
|
68043
68194
|
|
|
@@ -68045,8 +68196,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68045
68196
|
constructor() {
|
|
68046
68197
|
super(...arguments);
|
|
68047
68198
|
this.type = exports.SeriesTypeEnum.pie3d;
|
|
68048
|
-
this._pieMarkName =
|
|
68049
|
-
this._pieMarkType =
|
|
68199
|
+
this._pieMarkName = "pie3d";
|
|
68200
|
+
this._pieMarkType = "arc3d";
|
|
68050
68201
|
this.transformerConstructor = Pie3dSeriesSpecTransformer;
|
|
68051
68202
|
}
|
|
68052
68203
|
setAttrFromSpec() {
|
|
@@ -68196,7 +68347,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68196
68347
|
|
|
68197
68348
|
class RoseSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
68198
68349
|
_transformLabelSpec(spec) {
|
|
68199
|
-
this._addMarkLabelSpec(spec,
|
|
68350
|
+
this._addMarkLabelSpec(spec, "rose");
|
|
68200
68351
|
}
|
|
68201
68352
|
}
|
|
68202
68353
|
|
|
@@ -68302,7 +68453,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68302
68453
|
const animationParams = {
|
|
68303
68454
|
innerRadius: () => { var _a; return this._computeLayoutRadius() * ((_a = this._spec.innerRadius) !== null && _a !== void 0 ? _a : 0); }
|
|
68304
68455
|
};
|
|
68305
|
-
this._roseMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('rose')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig(
|
|
68456
|
+
this._roseMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('rose')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig("rose", this._spec, this._markAttributeContext)));
|
|
68306
68457
|
}
|
|
68307
68458
|
}
|
|
68308
68459
|
getDefaultShapeType() {
|
|
@@ -68612,7 +68763,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68612
68763
|
const appearPreset = ((_c = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset) !== null && _c !== void 0 ? _c : 'clipIn');
|
|
68613
68764
|
if (appearPreset === 'clipIn') {
|
|
68614
68765
|
if (this._rootMark) {
|
|
68615
|
-
this._rootMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('radarGroup')) === null || _d === void 0 ? void 0 : _d(animationParams, appearPreset), userAnimationConfig(
|
|
68766
|
+
this._rootMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('radarGroup')) === null || _d === void 0 ? void 0 : _d(animationParams, appearPreset), userAnimationConfig("group", this._spec, this._markAttributeContext)));
|
|
68616
68767
|
}
|
|
68617
68768
|
}
|
|
68618
68769
|
const markAnimationMap = [
|
|
@@ -68847,7 +68998,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68847
68998
|
setSeriesField(field) {
|
|
68848
68999
|
if (isValid$1(field)) {
|
|
68849
69000
|
this._seriesField = field;
|
|
68850
|
-
this.getMarksInType([
|
|
69001
|
+
this.getMarksInType(["line", "area"]).forEach(m => {
|
|
68851
69002
|
m.setFacet(this._seriesField);
|
|
68852
69003
|
});
|
|
68853
69004
|
}
|
|
@@ -69317,7 +69468,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
69317
69468
|
fillOpacity: this.dataToOpacity.bind(this),
|
|
69318
69469
|
size: arrowSize,
|
|
69319
69470
|
symbolType: (datum) => {
|
|
69320
|
-
return this.isPositionYFromHigher(datum) ?
|
|
69471
|
+
return this.isPositionYFromHigher(datum) ? 'triangleDown' : 'triangleUp';
|
|
69321
69472
|
}
|
|
69322
69473
|
}, 'normal', exports.AttributeLevel.Series);
|
|
69323
69474
|
this._trigger.registerMark(arrowMark);
|
|
@@ -69742,8 +69893,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
69742
69893
|
return style;
|
|
69743
69894
|
}
|
|
69744
69895
|
}
|
|
69745
|
-
ProgressArcMark.type =
|
|
69746
|
-
ProgressArcMark.constructorType =
|
|
69896
|
+
ProgressArcMark.type = "arc";
|
|
69897
|
+
ProgressArcMark.constructorType = "progressArc";
|
|
69747
69898
|
const registerProgressArcMark = () => {
|
|
69748
69899
|
registerArcGraphic();
|
|
69749
69900
|
registerVGrammarArcAnimation();
|
|
@@ -69898,8 +70049,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
69898
70049
|
initAnimation() {
|
|
69899
70050
|
var _a, _b, _c, _d;
|
|
69900
70051
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
69901
|
-
this._progressMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('circularProgress')) === null || _c === void 0 ? void 0 : _c({ startAngle: this._startAngle }, appearPreset), userAnimationConfig(
|
|
69902
|
-
this._trackMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig(
|
|
70052
|
+
this._progressMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('circularProgress')) === null || _c === void 0 ? void 0 : _c({ startAngle: this._startAngle }, appearPreset), userAnimationConfig("progress", this._spec, this._markAttributeContext)));
|
|
70053
|
+
this._trackMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("track", this._spec, this._markAttributeContext)));
|
|
69903
70054
|
}
|
|
69904
70055
|
getActiveMarks() {
|
|
69905
70056
|
return [this._progressMark];
|
|
@@ -69929,13 +70080,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
69929
70080
|
}
|
|
69930
70081
|
const Appear_Grow$1 = (params) => {
|
|
69931
70082
|
return {
|
|
69932
|
-
type: params.direction ===
|
|
70083
|
+
type: params.direction === "horizontal" ? 'growWidthIn' : 'growHeightIn',
|
|
69933
70084
|
options: LinearProgressGrowOption(params)
|
|
69934
70085
|
};
|
|
69935
70086
|
};
|
|
69936
70087
|
const linearProgressDisappear = (params) => {
|
|
69937
70088
|
return {
|
|
69938
|
-
type: params.direction ===
|
|
70089
|
+
type: params.direction === "horizontal" ? 'growWidthOut' : 'growHeightOut',
|
|
69939
70090
|
options: LinearProgressGrowOption(params)
|
|
69940
70091
|
};
|
|
69941
70092
|
};
|
|
@@ -70146,8 +70297,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
70146
70297
|
direction: this.direction
|
|
70147
70298
|
};
|
|
70148
70299
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
70149
|
-
this._progressMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('linearProgress')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig(
|
|
70150
|
-
this._trackMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig(
|
|
70300
|
+
this._progressMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('linearProgress')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig("progress", this._spec, this._markAttributeContext)));
|
|
70301
|
+
this._trackMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("track", this._spec, this._markAttributeContext)));
|
|
70151
70302
|
}
|
|
70152
70303
|
initTooltip() {
|
|
70153
70304
|
this._tooltipHelper = new LinearProgressSeriesTooltipHelper(this);
|
|
@@ -70310,7 +70461,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
70310
70461
|
const params = {
|
|
70311
70462
|
animationConfig: () => { var _a, _b; return (_b = (_a = mark.getAnimationConfig()) === null || _a === void 0 ? void 0 : _a.appear) === null || _b === void 0 ? void 0 : _b[0]; }
|
|
70312
70463
|
};
|
|
70313
|
-
mark.setAnimationConfig(animationConfig(Factory.getAnimationInKey('wordCloud')(params, appearPreset), userAnimationConfig(
|
|
70464
|
+
mark.setAnimationConfig(animationConfig(Factory.getAnimationInKey('wordCloud')(params, appearPreset), userAnimationConfig("word", this._spec, this._markAttributeContext)));
|
|
70314
70465
|
}
|
|
70315
70466
|
});
|
|
70316
70467
|
}
|
|
@@ -72594,7 +72745,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72594
72745
|
center: { x: r, y: r, z: (_a = this._spec.depth_3d) !== null && _a !== void 0 ? _a : r },
|
|
72595
72746
|
r
|
|
72596
72747
|
};
|
|
72597
|
-
}), userAnimationConfig(
|
|
72748
|
+
}), userAnimationConfig("word", this._spec, this._markAttributeContext)));
|
|
72598
72749
|
}
|
|
72599
72750
|
if (this._fillingWordMark) {
|
|
72600
72751
|
this._fillingWordMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('wordCloud3d')) === null || _c === void 0 ? void 0 : _c(() => {
|
|
@@ -72607,7 +72758,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72607
72758
|
center: { x: r, y: r, z: (_a = this._spec.depth_3d) !== null && _a !== void 0 ? _a : r },
|
|
72608
72759
|
r
|
|
72609
72760
|
};
|
|
72610
|
-
}), userAnimationConfig(
|
|
72761
|
+
}), userAnimationConfig("fillingWord", this._spec, this._markAttributeContext)));
|
|
72611
72762
|
}
|
|
72612
72763
|
}
|
|
72613
72764
|
}
|
|
@@ -72687,14 +72838,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72687
72838
|
this.titleValueCallback = (datum, params) => {
|
|
72688
72839
|
var _a, _b, _c;
|
|
72689
72840
|
const series = this.series;
|
|
72690
|
-
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) ===
|
|
72841
|
+
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) === "transform") {
|
|
72691
72842
|
return `转化率`;
|
|
72692
72843
|
}
|
|
72693
72844
|
return (_b = this._getDimensionData(datum)) !== null && _b !== void 0 ? _b : (_c = datum.properties) === null || _c === void 0 ? void 0 : _c[`${series.getCategoryField()}`];
|
|
72694
72845
|
};
|
|
72695
72846
|
this.contentValueCallback = (datum, params) => {
|
|
72696
72847
|
var _a;
|
|
72697
|
-
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) ===
|
|
72848
|
+
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) === "transform") {
|
|
72698
72849
|
const measureData = datum === null || datum === void 0 ? void 0 : datum[FUNNEL_REACH_RATIO];
|
|
72699
72850
|
return `${(measureData * 100).toFixed(1)}%`;
|
|
72700
72851
|
}
|
|
@@ -72702,7 +72853,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72702
72853
|
};
|
|
72703
72854
|
this.contentKeyCallback = (datum, params) => {
|
|
72704
72855
|
var _a;
|
|
72705
|
-
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) ===
|
|
72856
|
+
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) === "transform") {
|
|
72706
72857
|
return `转化率`;
|
|
72707
72858
|
}
|
|
72708
72859
|
const { dimensionFields, seriesFields } = this._seriesCacheInfo;
|
|
@@ -72732,7 +72883,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72732
72883
|
return defaultStyle;
|
|
72733
72884
|
}
|
|
72734
72885
|
}
|
|
72735
|
-
PolygonMark.type =
|
|
72886
|
+
PolygonMark.type = "polygon";
|
|
72736
72887
|
const registerPolygonMark = () => {
|
|
72737
72888
|
Factory.registerMark(PolygonMark.type, PolygonMark);
|
|
72738
72889
|
registerPolygonGraphic();
|
|
@@ -72741,9 +72892,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72741
72892
|
|
|
72742
72893
|
class FunnelSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
72743
72894
|
_transformLabelSpec(spec) {
|
|
72744
|
-
this._addMarkLabelSpec(spec,
|
|
72895
|
+
this._addMarkLabelSpec(spec, "funnel");
|
|
72745
72896
|
if (spec.isTransform) {
|
|
72746
|
-
this._addMarkLabelSpec(spec,
|
|
72897
|
+
this._addMarkLabelSpec(spec, "transform", 'transformLabel');
|
|
72747
72898
|
}
|
|
72748
72899
|
}
|
|
72749
72900
|
}
|
|
@@ -72752,10 +72903,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72752
72903
|
constructor() {
|
|
72753
72904
|
super(...arguments);
|
|
72754
72905
|
this.type = exports.SeriesTypeEnum.funnel;
|
|
72755
|
-
this._funnelMarkName =
|
|
72756
|
-
this._funnelMarkType =
|
|
72757
|
-
this._transformMarkName =
|
|
72758
|
-
this._transformMarkType =
|
|
72906
|
+
this._funnelMarkName = "funnel";
|
|
72907
|
+
this._funnelMarkType = "polygon";
|
|
72908
|
+
this._transformMarkName = "transform";
|
|
72909
|
+
this._transformMarkType = "polygon";
|
|
72759
72910
|
this.transformerConstructor = FunnelSeriesSpecTransformer;
|
|
72760
72911
|
this._funnelMark = null;
|
|
72761
72912
|
this._funnelTransformMark = null;
|
|
@@ -72991,7 +73142,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72991
73142
|
return this.getLayoutRect().height;
|
|
72992
73143
|
},
|
|
72993
73144
|
orient: () => (this._isReverse() ? 'negative' : 'positive')
|
|
72994
|
-
}, appearPreset), userAnimationConfig(
|
|
73145
|
+
}, appearPreset), userAnimationConfig("group", this._spec, this._markAttributeContext)));
|
|
72995
73146
|
}
|
|
72996
73147
|
}
|
|
72997
73148
|
[(_e = this._funnelOuterLabelMark) === null || _e === void 0 ? void 0 : _e.label].forEach(m => {
|
|
@@ -73005,7 +73156,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73005
73156
|
}
|
|
73006
73157
|
});
|
|
73007
73158
|
if ((_f = this._funnelOuterLabelMark) === null || _f === void 0 ? void 0 : _f.line) {
|
|
73008
|
-
this._funnelOuterLabelMark.line.setAnimationConfig(animationConfig((_g = Factory.getAnimationInKey('fadeInOut')) === null || _g === void 0 ? void 0 : _g(), userAnimationConfig(
|
|
73159
|
+
this._funnelOuterLabelMark.line.setAnimationConfig(animationConfig((_g = Factory.getAnimationInKey('fadeInOut')) === null || _g === void 0 ? void 0 : _g(), userAnimationConfig("outerLabelLine", this._spec, this._markAttributeContext)));
|
|
73009
73160
|
}
|
|
73010
73161
|
}
|
|
73011
73162
|
initGroups() {
|
|
@@ -73381,7 +73532,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73381
73532
|
this.type = Pyramid3dMark.type;
|
|
73382
73533
|
}
|
|
73383
73534
|
}
|
|
73384
|
-
Pyramid3dMark.type =
|
|
73535
|
+
Pyramid3dMark.type = "pyramid3d";
|
|
73385
73536
|
const registerPyramid3dMark = () => {
|
|
73386
73537
|
Factory.registerMark(Pyramid3dMark.type, Pyramid3dMark);
|
|
73387
73538
|
registerPyramid3dGraphic();
|
|
@@ -73390,9 +73541,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73390
73541
|
|
|
73391
73542
|
class Funnel3dSeriesSpecTransformer extends FunnelSeriesSpecTransformer {
|
|
73392
73543
|
_transformLabelSpec(spec) {
|
|
73393
|
-
this._addMarkLabelSpec(spec,
|
|
73544
|
+
this._addMarkLabelSpec(spec, "funnel3d");
|
|
73394
73545
|
if (spec.isTransform) {
|
|
73395
|
-
this._addMarkLabelSpec(spec,
|
|
73546
|
+
this._addMarkLabelSpec(spec, "transform3d", 'transformLabel');
|
|
73396
73547
|
}
|
|
73397
73548
|
}
|
|
73398
73549
|
}
|
|
@@ -73401,10 +73552,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73401
73552
|
constructor() {
|
|
73402
73553
|
super(...arguments);
|
|
73403
73554
|
this.type = exports.SeriesTypeEnum.funnel3d;
|
|
73404
|
-
this._funnelMarkName =
|
|
73405
|
-
this._funnelMarkType =
|
|
73406
|
-
this._transformMarkName =
|
|
73407
|
-
this._transformMarkType =
|
|
73555
|
+
this._funnelMarkName = "funnel3d";
|
|
73556
|
+
this._funnelMarkType = "pyramid3d";
|
|
73557
|
+
this._transformMarkName = "transform3d";
|
|
73558
|
+
this._transformMarkType = "pyramid3d";
|
|
73408
73559
|
this.transformerConstructor = Funnel3dSeriesSpecTransformer;
|
|
73409
73560
|
}
|
|
73410
73561
|
initMark() {
|
|
@@ -74367,7 +74518,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
74367
74518
|
};
|
|
74368
74519
|
|
|
74369
74520
|
class Drillable {
|
|
74370
|
-
|
|
74521
|
+
_getDrillTriggerEvent(type) {
|
|
74371
74522
|
var _a;
|
|
74372
74523
|
const { mode } = this._drillParams;
|
|
74373
74524
|
return (_a = getDefaultTriggerEventByMode(mode)) === null || _a === void 0 ? void 0 : _a[type];
|
|
@@ -74396,8 +74547,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
74396
74547
|
bindDrillEvent() {
|
|
74397
74548
|
const { event, getRawData, drillField } = this._drillParams;
|
|
74398
74549
|
const keyField = drillField();
|
|
74399
|
-
if (this.
|
|
74400
|
-
event.on(this.
|
|
74550
|
+
if (this._getDrillTriggerEvent('start')) {
|
|
74551
|
+
event.on(this._getDrillTriggerEvent('start'), e => {
|
|
74401
74552
|
var _a, _b, _c;
|
|
74402
74553
|
if (isNil$1(e.datum) || isNil$1((_a = e.datum) === null || _a === void 0 ? void 0 : _a[keyField])) {
|
|
74403
74554
|
this.drillUp();
|
|
@@ -74674,11 +74825,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
74674
74825
|
}
|
|
74675
74826
|
};
|
|
74676
74827
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
74677
|
-
this.getMarksInType(
|
|
74828
|
+
this.getMarksInType("arc").forEach(mark => {
|
|
74678
74829
|
var _a;
|
|
74679
74830
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('sunburst')) === null || _a === void 0 ? void 0 : _a(animationParams, appearPreset), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
74680
74831
|
});
|
|
74681
|
-
this.getMarksInType(
|
|
74832
|
+
this.getMarksInType("text").forEach(mark => {
|
|
74682
74833
|
var _a;
|
|
74683
74834
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('fadeInOut')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
74684
74835
|
});
|
|
@@ -74965,11 +75116,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
74965
75116
|
initAnimation() {
|
|
74966
75117
|
var _a;
|
|
74967
75118
|
const appearPreset = (_a = this._spec.animationAppear) === null || _a === void 0 ? void 0 : _a.preset;
|
|
74968
|
-
this.getMarksInType(
|
|
75119
|
+
this.getMarksInType("arc").forEach(mark => {
|
|
74969
75120
|
var _a;
|
|
74970
75121
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('circlePacking')) === null || _a === void 0 ? void 0 : _a(undefined, appearPreset), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
74971
75122
|
});
|
|
74972
|
-
this.getMarksInType(
|
|
75123
|
+
this.getMarksInType("text").forEach(mark => {
|
|
74973
75124
|
var _a;
|
|
74974
75125
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('scaleInOut')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
74975
75126
|
});
|
|
@@ -75719,10 +75870,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
75719
75870
|
|
|
75720
75871
|
const sankeyGrowIn = (params, isOverall = true) => {
|
|
75721
75872
|
return {
|
|
75722
|
-
type: params.direction ===
|
|
75873
|
+
type: params.direction === "horizontal" ? 'growWidthIn' : 'growHeightIn',
|
|
75723
75874
|
options: {
|
|
75724
75875
|
overall: isOverall ? params.growFrom() : isOverall,
|
|
75725
|
-
orient:
|
|
75876
|
+
orient: 'positive'
|
|
75726
75877
|
}
|
|
75727
75878
|
};
|
|
75728
75879
|
};
|
|
@@ -75787,7 +75938,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
75787
75938
|
this._compiledProductId = id;
|
|
75788
75939
|
}
|
|
75789
75940
|
}
|
|
75790
|
-
LinkPathMark.type =
|
|
75941
|
+
LinkPathMark.type = "linkPath";
|
|
75791
75942
|
const registerLinkPathMark = () => {
|
|
75792
75943
|
registerLinkPathGlyph();
|
|
75793
75944
|
Factory.registerMark(LinkPathMark.type, LinkPathMark);
|
|
@@ -76724,13 +76875,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76724
76875
|
};
|
|
76725
76876
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
76726
76877
|
if (this._nodeMark) {
|
|
76727
|
-
this._nodeMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('sankeyNode')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig(
|
|
76878
|
+
this._nodeMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('sankeyNode')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig("node", this._spec, this._markAttributeContext)));
|
|
76728
76879
|
}
|
|
76729
76880
|
if (this._linkMark) {
|
|
76730
|
-
this._linkMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('sankeyLinkPath')) === null || _d === void 0 ? void 0 : _d(animationParams, appearPreset), userAnimationConfig(
|
|
76881
|
+
this._linkMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('sankeyLinkPath')) === null || _d === void 0 ? void 0 : _d(animationParams, appearPreset), userAnimationConfig("link", this._spec, this._markAttributeContext)));
|
|
76731
76882
|
}
|
|
76732
76883
|
if (this._labelMark) {
|
|
76733
|
-
this._labelMark.setAnimationConfig(animationConfig((_e = Factory.getAnimationInKey('fadeInOut')) === null || _e === void 0 ? void 0 : _e(), userAnimationConfig(
|
|
76884
|
+
this._labelMark.setAnimationConfig(animationConfig((_e = Factory.getAnimationInKey('fadeInOut')) === null || _e === void 0 ? void 0 : _e(), userAnimationConfig("label", this._spec, this._markAttributeContext)));
|
|
76734
76885
|
}
|
|
76735
76886
|
}
|
|
76736
76887
|
initEvent() {
|
|
@@ -76975,8 +77126,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76975
77126
|
|
|
76976
77127
|
class TreemapSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
76977
77128
|
_transformLabelSpec(spec) {
|
|
76978
|
-
this._addMarkLabelSpec(spec,
|
|
76979
|
-
this._addMarkLabelSpec(spec,
|
|
77129
|
+
this._addMarkLabelSpec(spec, "nonLeaf", 'nonLeafLabel', 'initNonLeafLabelMarkStyle');
|
|
77130
|
+
this._addMarkLabelSpec(spec, "leaf");
|
|
76980
77131
|
}
|
|
76981
77132
|
}
|
|
76982
77133
|
|
|
@@ -77016,7 +77167,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77016
77167
|
this.initDrillable({
|
|
77017
77168
|
event: this.event,
|
|
77018
77169
|
mode: this._option.mode,
|
|
77019
|
-
drillField: () => { var _a; return (_a = this._spec.drillField) !== null && _a !== void 0 ? _a : DEFAULT_DATA_KEY; },
|
|
77170
|
+
drillField: () => { var _a, _b; return (_b = (_a = this._spec.drillField) !== null && _a !== void 0 ? _a : this._categoryField) !== null && _b !== void 0 ? _b : DEFAULT_DATA_KEY; },
|
|
77020
77171
|
getRawData: () => this.getRawData()
|
|
77021
77172
|
});
|
|
77022
77173
|
}
|
|
@@ -77250,11 +77401,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77250
77401
|
}, STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
77251
77402
|
}
|
|
77252
77403
|
initAnimation() {
|
|
77253
|
-
this.getMarksInType(
|
|
77404
|
+
this.getMarksInType("rect").forEach(mark => {
|
|
77254
77405
|
var _a;
|
|
77255
77406
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('treemap')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
77256
77407
|
});
|
|
77257
|
-
this.getMarksInType(
|
|
77408
|
+
this.getMarksInType("text").forEach(mark => {
|
|
77258
77409
|
var _a;
|
|
77259
77410
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('fadeInOut')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
77260
77411
|
});
|
|
@@ -77412,7 +77563,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77412
77563
|
var _a;
|
|
77413
77564
|
super.setAttrFromSpec();
|
|
77414
77565
|
this.setRadiusField(this._spec.radiusField);
|
|
77415
|
-
this._pointerType = ((_a = this._spec.pointer) === null || _a === void 0 ? void 0 : _a.type) === 'rect' ?
|
|
77566
|
+
this._pointerType = ((_a = this._spec.pointer) === null || _a === void 0 ? void 0 : _a.type) === 'rect' ? "rect" : "path";
|
|
77416
77567
|
}
|
|
77417
77568
|
initMark() {
|
|
77418
77569
|
this._pinBackgroundMark = this._createMark(GaugePointerSeries.mark.pinBackground);
|
|
@@ -77452,7 +77603,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77452
77603
|
fill: this.getColorAttribute(),
|
|
77453
77604
|
zIndex: 200
|
|
77454
77605
|
});
|
|
77455
|
-
if (this._pointerType ===
|
|
77606
|
+
if (this._pointerType === "path") {
|
|
77456
77607
|
this.setMarkStyle(pointerMark, {
|
|
77457
77608
|
scaleX: this._getPointerWidth.bind(this),
|
|
77458
77609
|
scaleY: this._getPointerHeight.bind(this),
|
|
@@ -77548,7 +77699,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77548
77699
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
77549
77700
|
this._pointerMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('gaugePointer')) === null || _c === void 0 ? void 0 : _c({
|
|
77550
77701
|
startAngle: this._startAngle
|
|
77551
|
-
}, appearPreset), userAnimationConfig(
|
|
77702
|
+
}, appearPreset), userAnimationConfig("pointer", this._spec, this._markAttributeContext)));
|
|
77552
77703
|
}
|
|
77553
77704
|
getDefaultShapeType() {
|
|
77554
77705
|
return 'circle';
|
|
@@ -77568,7 +77719,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77568
77719
|
|
|
77569
77720
|
class GaugeSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
77570
77721
|
_transformLabelSpec(spec) {
|
|
77571
|
-
this._addMarkLabelSpec(spec,
|
|
77722
|
+
this._addMarkLabelSpec(spec, "segment");
|
|
77572
77723
|
}
|
|
77573
77724
|
}
|
|
77574
77725
|
|
|
@@ -77692,7 +77843,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77692
77843
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
77693
77844
|
this._segmentMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('circularProgress')) === null || _c === void 0 ? void 0 : _c({
|
|
77694
77845
|
startAngle: this._startAngle
|
|
77695
|
-
}, appearPreset), userAnimationConfig(
|
|
77846
|
+
}, appearPreset), userAnimationConfig("segment", this._spec, this._markAttributeContext)));
|
|
77696
77847
|
}
|
|
77697
77848
|
getDefaultShapeType() {
|
|
77698
77849
|
return 'circle';
|
|
@@ -77720,7 +77871,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77720
77871
|
return defaultStyle;
|
|
77721
77872
|
}
|
|
77722
77873
|
}
|
|
77723
|
-
CellMark.type =
|
|
77874
|
+
CellMark.type = "cell";
|
|
77724
77875
|
const registerCellMark = () => {
|
|
77725
77876
|
Factory.registerMark(CellMark.type, CellMark);
|
|
77726
77877
|
registerCellGraphic();
|
|
@@ -77753,7 +77904,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77753
77904
|
|
|
77754
77905
|
class HeatmapSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
77755
77906
|
_transformLabelSpec(spec) {
|
|
77756
|
-
this._addMarkLabelSpec(spec,
|
|
77907
|
+
this._addMarkLabelSpec(spec, "cell");
|
|
77757
77908
|
}
|
|
77758
77909
|
}
|
|
77759
77910
|
|
|
@@ -77859,7 +78010,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77859
78010
|
var _a, _b, _c;
|
|
77860
78011
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
77861
78012
|
const animationParams = getGroupAnimationParams(this);
|
|
77862
|
-
this._cellMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('heatmap')) === null || _c === void 0 ? void 0 : _c(appearPreset), userAnimationConfig(
|
|
78013
|
+
this._cellMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('heatmap')) === null || _c === void 0 ? void 0 : _c(appearPreset), userAnimationConfig("cell", this._spec, this._markAttributeContext), animationParams));
|
|
77863
78014
|
}
|
|
77864
78015
|
getCellSize(axisHelper) {
|
|
77865
78016
|
var _a, _b;
|
|
@@ -78050,7 +78201,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78050
78201
|
this._compiledProductId = id;
|
|
78051
78202
|
}
|
|
78052
78203
|
}
|
|
78053
|
-
RippleMark.type =
|
|
78204
|
+
RippleMark.type = "ripple";
|
|
78054
78205
|
const registerRippleMark = () => {
|
|
78055
78206
|
Factory.registerMark(RippleMark.type, RippleMark);
|
|
78056
78207
|
registerRippleGlyph();
|
|
@@ -78081,8 +78232,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78081
78232
|
|
|
78082
78233
|
class CorrelationSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
78083
78234
|
_transformLabelSpec(spec) {
|
|
78084
|
-
this._addMarkLabelSpec(spec,
|
|
78085
|
-
this._addMarkLabelSpec(spec,
|
|
78235
|
+
this._addMarkLabelSpec(spec, "nodePoint");
|
|
78236
|
+
this._addMarkLabelSpec(spec, "centerPoint", 'centerLabel');
|
|
78086
78237
|
}
|
|
78087
78238
|
}
|
|
78088
78239
|
|
|
@@ -78305,7 +78456,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78305
78456
|
initAnimation() {
|
|
78306
78457
|
var _a, _b;
|
|
78307
78458
|
const appearPreset = (_a = this._spec.animationAppear) === null || _a === void 0 ? void 0 : _a.preset;
|
|
78308
|
-
this._nodePointMark.setAnimationConfig(animationConfig((_b = Factory.getAnimationInKey('correlation')) === null || _b === void 0 ? void 0 : _b({}, appearPreset), userAnimationConfig(
|
|
78459
|
+
this._nodePointMark.setAnimationConfig(animationConfig((_b = Factory.getAnimationInKey('correlation')) === null || _b === void 0 ? void 0 : _b({}, appearPreset), userAnimationConfig("nodePoint", this._spec, this._markAttributeContext)));
|
|
78309
78460
|
}
|
|
78310
78461
|
getGroupFields() {
|
|
78311
78462
|
return [];
|
|
@@ -78378,11 +78529,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78378
78529
|
constructor() {
|
|
78379
78530
|
super(...arguments);
|
|
78380
78531
|
this.transformerConstructor = MapChartSpecTransformer;
|
|
78381
|
-
this.type =
|
|
78532
|
+
this.type = "map";
|
|
78382
78533
|
this.seriesType = exports.SeriesTypeEnum.map;
|
|
78383
78534
|
}
|
|
78384
78535
|
}
|
|
78385
|
-
MapChart.type =
|
|
78536
|
+
MapChart.type = "map";
|
|
78386
78537
|
MapChart.seriesType = exports.SeriesTypeEnum.map;
|
|
78387
78538
|
MapChart.view = 'singleDefault';
|
|
78388
78539
|
MapChart.transformerConstructor = MapChartSpecTransformer;
|
|
@@ -78421,8 +78572,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78421
78572
|
super.transformSpec(spec);
|
|
78422
78573
|
if (isArray$1(spec.dataZoom) && spec.dataZoom.length > 0) {
|
|
78423
78574
|
spec.dataZoom.forEach((zoom) => {
|
|
78424
|
-
if (zoom.filterMode ===
|
|
78425
|
-
zoom.filterMode =
|
|
78575
|
+
if (zoom.filterMode === "axis") {
|
|
78576
|
+
zoom.filterMode = "filter";
|
|
78426
78577
|
}
|
|
78427
78578
|
});
|
|
78428
78579
|
}
|
|
@@ -78553,11 +78704,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78553
78704
|
constructor() {
|
|
78554
78705
|
super(...arguments);
|
|
78555
78706
|
this.transformerConstructor = BasePieChartSpecTransformer;
|
|
78556
|
-
this.type =
|
|
78707
|
+
this.type = "pie";
|
|
78557
78708
|
this.seriesType = exports.SeriesTypeEnum.pie;
|
|
78558
78709
|
}
|
|
78559
78710
|
}
|
|
78560
|
-
PieChart.type =
|
|
78711
|
+
PieChart.type = "pie";
|
|
78561
78712
|
PieChart.seriesType = exports.SeriesTypeEnum.pie;
|
|
78562
78713
|
PieChart.view = 'singleDefault';
|
|
78563
78714
|
PieChart.transformerConstructor = BasePieChartSpecTransformer;
|
|
@@ -78580,11 +78731,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78580
78731
|
constructor() {
|
|
78581
78732
|
super(...arguments);
|
|
78582
78733
|
this.transformerConstructor = Pie3dChartSpecTransformer;
|
|
78583
|
-
this.type =
|
|
78734
|
+
this.type = "pie3d";
|
|
78584
78735
|
this.seriesType = exports.SeriesTypeEnum.pie3d;
|
|
78585
78736
|
}
|
|
78586
78737
|
}
|
|
78587
|
-
Pie3dChart.type =
|
|
78738
|
+
Pie3dChart.type = "pie3d";
|
|
78588
78739
|
Pie3dChart.seriesType = exports.SeriesTypeEnum.pie3d;
|
|
78589
78740
|
Pie3dChart.view = 'singleDefault';
|
|
78590
78741
|
Pie3dChart.transformerConstructor = Pie3dChartSpecTransformer;
|
|
@@ -78629,12 +78780,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78629
78780
|
constructor() {
|
|
78630
78781
|
super(...arguments);
|
|
78631
78782
|
this.transformerConstructor = RoseChartSpecTransformer;
|
|
78632
|
-
this.type =
|
|
78783
|
+
this.type = "rose";
|
|
78633
78784
|
this.seriesType = exports.SeriesTypeEnum.rose;
|
|
78634
78785
|
this._canStack = true;
|
|
78635
78786
|
}
|
|
78636
78787
|
}
|
|
78637
|
-
RoseChart.type =
|
|
78788
|
+
RoseChart.type = "rose";
|
|
78638
78789
|
RoseChart.seriesType = exports.SeriesTypeEnum.rose;
|
|
78639
78790
|
RoseChart.view = 'singleDefault';
|
|
78640
78791
|
RoseChart.transformerConstructor = RoseChartSpecTransformer;
|
|
@@ -78683,12 +78834,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78683
78834
|
constructor() {
|
|
78684
78835
|
super(...arguments);
|
|
78685
78836
|
this.transformerConstructor = RadarChartSpecTransformer;
|
|
78686
|
-
this.type =
|
|
78837
|
+
this.type = "radar";
|
|
78687
78838
|
this.seriesType = exports.SeriesTypeEnum.radar;
|
|
78688
78839
|
this._canStack = true;
|
|
78689
78840
|
}
|
|
78690
78841
|
}
|
|
78691
|
-
RadarChart.type =
|
|
78842
|
+
RadarChart.type = "radar";
|
|
78692
78843
|
RadarChart.seriesType = exports.SeriesTypeEnum.radar;
|
|
78693
78844
|
RadarChart.view = 'singleDefault';
|
|
78694
78845
|
RadarChart.transformerConstructor = RadarChartSpecTransformer;
|
|
@@ -78732,11 +78883,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78732
78883
|
constructor() {
|
|
78733
78884
|
super(...arguments);
|
|
78734
78885
|
this.transformerConstructor = CommonChartSpecTransformer;
|
|
78735
|
-
this.type =
|
|
78886
|
+
this.type = "common";
|
|
78736
78887
|
this._canStack = true;
|
|
78737
78888
|
}
|
|
78738
78889
|
}
|
|
78739
|
-
CommonChart.type =
|
|
78890
|
+
CommonChart.type = "common";
|
|
78740
78891
|
CommonChart.view = 'singleDefault';
|
|
78741
78892
|
CommonChart.transformerConstructor = CommonChartSpecTransformer;
|
|
78742
78893
|
const registerCommonChart = () => {
|
|
@@ -78840,7 +78991,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78840
78991
|
row: rowNum
|
|
78841
78992
|
});
|
|
78842
78993
|
spec.axes[0].id = `axesRow${rowNum}`;
|
|
78843
|
-
spec.axes[0].regionIndex = Array.from(Array(spec.series.length
|
|
78994
|
+
spec.axes[0].regionIndex = Array.from(Array(spec.series.length), (_, index) => index + 1);
|
|
78844
78995
|
rowNum++;
|
|
78845
78996
|
(_k = spec === null || spec === void 0 ? void 0 : spec.series) === null || _k === void 0 ? void 0 : _k.forEach((seriesSpec) => {
|
|
78846
78997
|
var _a, _b;
|
|
@@ -78916,7 +79067,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78916
79067
|
if (dataLength) {
|
|
78917
79068
|
ratio = ((seriesSpec === null || seriesSpec === void 0 ? void 0 : seriesSpec.height) || defaultSeriesRowHeight) / (dataLength * 30);
|
|
78918
79069
|
}
|
|
78919
|
-
scrollBar.push(Object.assign({ orient: 'right', visible: seriesSpec.type === exports.SeriesTypeEnum.dot && ratio < 1, id: `scrollBarRightRow${rowNum}`, start: 0, end: Math.min(ratio, 1), filterMode:
|
|
79070
|
+
scrollBar.push(Object.assign({ orient: 'right', visible: seriesSpec.type === exports.SeriesTypeEnum.dot && ratio < 1, id: `scrollBarRightRow${rowNum}`, start: 0, end: Math.min(ratio, 1), filterMode: "axis", regionIndex: region.length - 1, axisId: `axesLeftRow${rowNum}` }, array(spec === null || spec === void 0 ? void 0 : spec.scrollBar)[0]));
|
|
78920
79071
|
}
|
|
78921
79072
|
seriesSpec.regionIndex = region.length - 1;
|
|
78922
79073
|
rowNum++;
|
|
@@ -78981,7 +79132,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78981
79132
|
constructor() {
|
|
78982
79133
|
super(...arguments);
|
|
78983
79134
|
this.transformerConstructor = SequenceChartSpecTransformer;
|
|
78984
|
-
this.type =
|
|
79135
|
+
this.type = "sequence";
|
|
78985
79136
|
}
|
|
78986
79137
|
_createSeries(constructor, specInfo) {
|
|
78987
79138
|
if (!constructor) {
|
|
@@ -79009,7 +79160,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79009
79160
|
}
|
|
79010
79161
|
}
|
|
79011
79162
|
}
|
|
79012
|
-
SequenceChart.type =
|
|
79163
|
+
SequenceChart.type = "sequence";
|
|
79013
79164
|
SequenceChart.view = 'singleDefault';
|
|
79014
79165
|
SequenceChart.transformerConstructor = SequenceChartSpecTransformer;
|
|
79015
79166
|
const registerSequenceChart = () => {
|
|
@@ -79048,11 +79199,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79048
79199
|
constructor() {
|
|
79049
79200
|
super(...arguments);
|
|
79050
79201
|
this.transformerConstructor = HistogramChartSpecTransformer;
|
|
79051
|
-
this.type =
|
|
79202
|
+
this.type = "histogram";
|
|
79052
79203
|
this.seriesType = exports.SeriesTypeEnum.bar;
|
|
79053
79204
|
}
|
|
79054
79205
|
}
|
|
79055
|
-
HistogramChart.type =
|
|
79206
|
+
HistogramChart.type = "histogram";
|
|
79056
79207
|
HistogramChart.seriesType = exports.SeriesTypeEnum.bar;
|
|
79057
79208
|
HistogramChart.view = 'singleDefault';
|
|
79058
79209
|
HistogramChart.transformerConstructor = HistogramChartSpecTransformer;
|
|
@@ -79065,11 +79216,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79065
79216
|
constructor() {
|
|
79066
79217
|
super(...arguments);
|
|
79067
79218
|
this.transformerConstructor = HistogramChartSpecTransformer;
|
|
79068
|
-
this.type =
|
|
79219
|
+
this.type = "histogram3d";
|
|
79069
79220
|
this.seriesType = exports.SeriesTypeEnum.bar3d;
|
|
79070
79221
|
}
|
|
79071
79222
|
}
|
|
79072
|
-
Histogram3dChart.type =
|
|
79223
|
+
Histogram3dChart.type = "histogram3d";
|
|
79073
79224
|
Histogram3dChart.seriesType = exports.SeriesTypeEnum.bar3d;
|
|
79074
79225
|
Histogram3dChart.view = 'singleDefault';
|
|
79075
79226
|
Histogram3dChart.transformerConstructor = HistogramChartSpecTransformer;
|
|
@@ -79100,12 +79251,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79100
79251
|
constructor() {
|
|
79101
79252
|
super(...arguments);
|
|
79102
79253
|
this.transformerConstructor = CircularProgressChartSpecTransformer;
|
|
79103
|
-
this.type =
|
|
79254
|
+
this.type = "circularProgress";
|
|
79104
79255
|
this.seriesType = exports.SeriesTypeEnum.circularProgress;
|
|
79105
79256
|
this._canStack = true;
|
|
79106
79257
|
}
|
|
79107
79258
|
}
|
|
79108
|
-
CircularProgressChart.type =
|
|
79259
|
+
CircularProgressChart.type = "circularProgress";
|
|
79109
79260
|
CircularProgressChart.seriesType = exports.SeriesTypeEnum.circularProgress;
|
|
79110
79261
|
CircularProgressChart.view = 'singleDefault';
|
|
79111
79262
|
CircularProgressChart.transformerConstructor = CircularProgressChartSpecTransformer;
|
|
@@ -79219,11 +79370,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79219
79370
|
constructor() {
|
|
79220
79371
|
super(...arguments);
|
|
79221
79372
|
this.transformerConstructor = GaugeChartSpecTransformer;
|
|
79222
|
-
this.type =
|
|
79373
|
+
this.type = "gauge";
|
|
79223
79374
|
this.seriesType = exports.SeriesTypeEnum.gaugePointer;
|
|
79224
79375
|
}
|
|
79225
79376
|
}
|
|
79226
|
-
GaugeChart.type =
|
|
79377
|
+
GaugeChart.type = "gauge";
|
|
79227
79378
|
GaugeChart.seriesType = exports.SeriesTypeEnum.gaugePointer;
|
|
79228
79379
|
GaugeChart.view = 'singleDefault';
|
|
79229
79380
|
GaugeChart.transformerConstructor = GaugeChartSpecTransformer;
|
|
@@ -79259,7 +79410,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79259
79410
|
constructor() {
|
|
79260
79411
|
super(...arguments);
|
|
79261
79412
|
this.transformerConstructor = BaseWordCloudChartSpecTransformer;
|
|
79262
|
-
this.type =
|
|
79413
|
+
this.type = "wordCloud";
|
|
79263
79414
|
this.seriesType = exports.SeriesTypeEnum.wordCloud;
|
|
79264
79415
|
}
|
|
79265
79416
|
}
|
|
@@ -79281,11 +79432,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79281
79432
|
constructor() {
|
|
79282
79433
|
super(...arguments);
|
|
79283
79434
|
this.transformerConstructor = WordCloudChartSpecTransformer;
|
|
79284
|
-
this.type =
|
|
79435
|
+
this.type = "wordCloud";
|
|
79285
79436
|
this.seriesType = exports.SeriesTypeEnum.wordCloud;
|
|
79286
79437
|
}
|
|
79287
79438
|
}
|
|
79288
|
-
WordCloudChart.type =
|
|
79439
|
+
WordCloudChart.type = "wordCloud";
|
|
79289
79440
|
WordCloudChart.seriesType = exports.SeriesTypeEnum.wordCloud;
|
|
79290
79441
|
WordCloudChart.view = 'singleDefault';
|
|
79291
79442
|
WordCloudChart.transformerConstructor = WordCloudChartSpecTransformer;
|
|
@@ -79314,11 +79465,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79314
79465
|
constructor() {
|
|
79315
79466
|
super(...arguments);
|
|
79316
79467
|
this.transformerConstructor = WordCloud3dChartSpecTransformer;
|
|
79317
|
-
this.type =
|
|
79468
|
+
this.type = "wordCloud3d";
|
|
79318
79469
|
this.seriesType = exports.SeriesTypeEnum.wordCloud3d;
|
|
79319
79470
|
}
|
|
79320
79471
|
}
|
|
79321
|
-
WordCloud3dChart.type =
|
|
79472
|
+
WordCloud3dChart.type = "wordCloud3d";
|
|
79322
79473
|
WordCloud3dChart.seriesType = exports.SeriesTypeEnum.wordCloud3d;
|
|
79323
79474
|
WordCloud3dChart.view = 'singleDefault';
|
|
79324
79475
|
WordCloud3dChart.transformerConstructor = WordCloud3dChartSpecTransformer;
|
|
@@ -79369,11 +79520,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79369
79520
|
constructor() {
|
|
79370
79521
|
super(...arguments);
|
|
79371
79522
|
this.transformerConstructor = FunnelChartSpecTransformer;
|
|
79372
|
-
this.type =
|
|
79523
|
+
this.type = "funnel";
|
|
79373
79524
|
this.seriesType = exports.SeriesTypeEnum.funnel;
|
|
79374
79525
|
}
|
|
79375
79526
|
}
|
|
79376
|
-
FunnelChart.type =
|
|
79527
|
+
FunnelChart.type = "funnel";
|
|
79377
79528
|
FunnelChart.seriesType = exports.SeriesTypeEnum.funnel;
|
|
79378
79529
|
FunnelChart.view = 'singleDefault';
|
|
79379
79530
|
FunnelChart.transformerConstructor = FunnelChartSpecTransformer;
|
|
@@ -79386,11 +79537,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79386
79537
|
constructor() {
|
|
79387
79538
|
super(...arguments);
|
|
79388
79539
|
this.transformerConstructor = FunnelChartSpecTransformer;
|
|
79389
|
-
this.type =
|
|
79540
|
+
this.type = "funnel3d";
|
|
79390
79541
|
this.seriesType = exports.SeriesTypeEnum.funnel3d;
|
|
79391
79542
|
}
|
|
79392
79543
|
}
|
|
79393
|
-
Funnel3dChart.type =
|
|
79544
|
+
Funnel3dChart.type = "funnel3d";
|
|
79394
79545
|
Funnel3dChart.seriesType = exports.SeriesTypeEnum.funnel3d;
|
|
79395
79546
|
Funnel3dChart.view = 'singleDefault';
|
|
79396
79547
|
Funnel3dChart.transformerConstructor = FunnelChartSpecTransformer;
|
|
@@ -79502,12 +79653,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79502
79653
|
constructor() {
|
|
79503
79654
|
super(...arguments);
|
|
79504
79655
|
this.transformerConstructor = LinearProgressChartSpecTransformer;
|
|
79505
|
-
this.type =
|
|
79656
|
+
this.type = "linearProgress";
|
|
79506
79657
|
this.seriesType = exports.SeriesTypeEnum.linearProgress;
|
|
79507
79658
|
this._canStack = true;
|
|
79508
79659
|
}
|
|
79509
79660
|
}
|
|
79510
|
-
LinearProgressChart.type =
|
|
79661
|
+
LinearProgressChart.type = "linearProgress";
|
|
79511
79662
|
LinearProgressChart.seriesType = exports.SeriesTypeEnum.linearProgress;
|
|
79512
79663
|
LinearProgressChart.view = 'singleDefault';
|
|
79513
79664
|
LinearProgressChart.transformerConstructor = LinearProgressChartSpecTransformer;
|
|
@@ -79521,7 +79672,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79521
79672
|
var _a, _b;
|
|
79522
79673
|
const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { barGapInGroup: spec.barGapInGroup, barBackground: spec.barBackground, barMinHeight: spec.barMinHeight });
|
|
79523
79674
|
series.bar = spec.bar;
|
|
79524
|
-
if (spec.direction ===
|
|
79675
|
+
if (spec.direction === "horizontal") {
|
|
79525
79676
|
series.xField = (_a = spec.xField) !== null && _a !== void 0 ? _a : [spec.minField, spec.maxField];
|
|
79526
79677
|
}
|
|
79527
79678
|
else {
|
|
@@ -79539,11 +79690,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79539
79690
|
constructor() {
|
|
79540
79691
|
super(...arguments);
|
|
79541
79692
|
this.transformerConstructor = RangeColumnChartSpecTransformer;
|
|
79542
|
-
this.type =
|
|
79693
|
+
this.type = "rangeColumn";
|
|
79543
79694
|
this.seriesType = exports.SeriesTypeEnum.rangeColumn;
|
|
79544
79695
|
}
|
|
79545
79696
|
}
|
|
79546
|
-
RangeColumnChart.type =
|
|
79697
|
+
RangeColumnChart.type = "rangeColumn";
|
|
79547
79698
|
RangeColumnChart.seriesType = exports.SeriesTypeEnum.rangeColumn;
|
|
79548
79699
|
RangeColumnChart.view = 'singleDefault';
|
|
79549
79700
|
RangeColumnChart.transformerConstructor = RangeColumnChartSpecTransformer;
|
|
@@ -79557,7 +79708,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79557
79708
|
var _a, _b;
|
|
79558
79709
|
const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { barGapInGroup: spec.barGapInGroup });
|
|
79559
79710
|
series.bar3d = spec.bar3d;
|
|
79560
|
-
if (spec.direction ===
|
|
79711
|
+
if (spec.direction === "horizontal") {
|
|
79561
79712
|
series.xField = (_a = spec.xField) !== null && _a !== void 0 ? _a : [spec.minField, spec.maxField];
|
|
79562
79713
|
}
|
|
79563
79714
|
else {
|
|
@@ -79571,11 +79722,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79571
79722
|
constructor() {
|
|
79572
79723
|
super(...arguments);
|
|
79573
79724
|
this.transformerConstructor = RangeColumn3dChartSpecTransformer;
|
|
79574
|
-
this.type =
|
|
79725
|
+
this.type = "rangeColumn3d";
|
|
79575
79726
|
this.seriesType = exports.SeriesTypeEnum.rangeColumn3d;
|
|
79576
79727
|
}
|
|
79577
79728
|
}
|
|
79578
|
-
RangeColumn3dChart.type =
|
|
79729
|
+
RangeColumn3dChart.type = "rangeColumn3d";
|
|
79579
79730
|
RangeColumn3dChart.seriesType = exports.SeriesTypeEnum.rangeColumn3d;
|
|
79580
79731
|
RangeColumn3dChart.view = 'singleDefault';
|
|
79581
79732
|
RangeColumn3dChart.transformerConstructor = RangeColumn3dChartSpecTransformer;
|
|
@@ -79619,11 +79770,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79619
79770
|
constructor() {
|
|
79620
79771
|
super(...arguments);
|
|
79621
79772
|
this.transformerConstructor = SunburstChartSpecTransformer;
|
|
79622
|
-
this.type =
|
|
79773
|
+
this.type = "sunburst";
|
|
79623
79774
|
this.seriesType = exports.SeriesTypeEnum.sunburst;
|
|
79624
79775
|
}
|
|
79625
79776
|
}
|
|
79626
|
-
SunburstChart.type =
|
|
79777
|
+
SunburstChart.type = "sunburst";
|
|
79627
79778
|
SunburstChart.seriesType = exports.SeriesTypeEnum.sunburst;
|
|
79628
79779
|
SunburstChart.view = 'singleDefault';
|
|
79629
79780
|
SunburstChart.transformerConstructor = SunburstChartSpecTransformer;
|
|
@@ -79665,11 +79816,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79665
79816
|
constructor() {
|
|
79666
79817
|
super(...arguments);
|
|
79667
79818
|
this.transformerConstructor = CirclePackingChartSpecTransformer;
|
|
79668
|
-
this.type =
|
|
79819
|
+
this.type = "circlePacking";
|
|
79669
79820
|
this.seriesType = exports.SeriesTypeEnum.circlePacking;
|
|
79670
79821
|
}
|
|
79671
79822
|
}
|
|
79672
|
-
CirclePackingChart.type =
|
|
79823
|
+
CirclePackingChart.type = "circlePacking";
|
|
79673
79824
|
CirclePackingChart.seriesType = exports.SeriesTypeEnum.circlePacking;
|
|
79674
79825
|
CirclePackingChart.view = 'singleDefault';
|
|
79675
79826
|
CirclePackingChart.transformerConstructor = CirclePackingChartSpecTransformer;
|
|
@@ -79713,11 +79864,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79713
79864
|
constructor() {
|
|
79714
79865
|
super(...arguments);
|
|
79715
79866
|
this.transformerConstructor = TreemapChartSpecTransformer;
|
|
79716
|
-
this.type =
|
|
79867
|
+
this.type = "treemap";
|
|
79717
79868
|
this.seriesType = exports.SeriesTypeEnum.treemap;
|
|
79718
79869
|
}
|
|
79719
79870
|
}
|
|
79720
|
-
TreemapChart.type =
|
|
79871
|
+
TreemapChart.type = "treemap";
|
|
79721
79872
|
TreemapChart.seriesType = exports.SeriesTypeEnum.treemap;
|
|
79722
79873
|
TreemapChart.view = 'singleDefault';
|
|
79723
79874
|
TreemapChart.transformerConstructor = TreemapChartSpecTransformer;
|
|
@@ -79747,11 +79898,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79747
79898
|
constructor() {
|
|
79748
79899
|
super(...arguments);
|
|
79749
79900
|
this.transformerConstructor = WaterfallChartSpecTransformer;
|
|
79750
|
-
this.type =
|
|
79901
|
+
this.type = "waterfall";
|
|
79751
79902
|
this.seriesType = exports.SeriesTypeEnum.waterfall;
|
|
79752
79903
|
}
|
|
79753
79904
|
}
|
|
79754
|
-
WaterfallChart.type =
|
|
79905
|
+
WaterfallChart.type = "waterfall";
|
|
79755
79906
|
WaterfallChart.seriesType = exports.SeriesTypeEnum.waterfall;
|
|
79756
79907
|
WaterfallChart.view = 'singleDefault';
|
|
79757
79908
|
WaterfallChart.transformerConstructor = WaterfallChartSpecTransformer;
|
|
@@ -79764,8 +79915,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79764
79915
|
_getDefaultSeriesSpec(spec) {
|
|
79765
79916
|
var _a;
|
|
79766
79917
|
const dataFields = [spec.maxField, spec.medianField, spec.q1Field, spec.q3Field, spec.minField, spec.outliersField];
|
|
79767
|
-
const seriesSpec = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { boxPlot: spec.boxPlot, direction: (_a = spec.direction) !== null && _a !== void 0 ? _a :
|
|
79768
|
-
seriesSpec[seriesSpec.direction ===
|
|
79918
|
+
const seriesSpec = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { boxPlot: spec.boxPlot, direction: (_a = spec.direction) !== null && _a !== void 0 ? _a : "vertical", minField: spec.minField, maxField: spec.maxField, q1Field: spec.q1Field, medianField: spec.medianField, q3Field: spec.q3Field, outliersField: spec.outliersField, outliersStyle: spec.outliersStyle });
|
|
79919
|
+
seriesSpec[seriesSpec.direction === "vertical" ? 'yField' : 'xField'] = dataFields;
|
|
79769
79920
|
return seriesSpec;
|
|
79770
79921
|
}
|
|
79771
79922
|
transformSpec(spec) {
|
|
@@ -79788,11 +79939,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79788
79939
|
constructor() {
|
|
79789
79940
|
super(...arguments);
|
|
79790
79941
|
this.transformerConstructor = BoxPlotChartSpecTransformer;
|
|
79791
|
-
this.type =
|
|
79942
|
+
this.type = "boxPlot";
|
|
79792
79943
|
this.seriesType = exports.SeriesTypeEnum.boxPlot;
|
|
79793
79944
|
}
|
|
79794
79945
|
}
|
|
79795
|
-
BoxPlotChart.type =
|
|
79946
|
+
BoxPlotChart.type = "boxPlot";
|
|
79796
79947
|
BoxPlotChart.seriesType = exports.SeriesTypeEnum.boxPlot;
|
|
79797
79948
|
BoxPlotChart.view = 'singleDefault';
|
|
79798
79949
|
BoxPlotChart.transformerConstructor = BoxPlotChartSpecTransformer;
|
|
@@ -79836,11 +79987,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79836
79987
|
constructor() {
|
|
79837
79988
|
super(...arguments);
|
|
79838
79989
|
this.transformerConstructor = SankeyChartSpecTransformer;
|
|
79839
|
-
this.type =
|
|
79990
|
+
this.type = "sankey";
|
|
79840
79991
|
this.seriesType = exports.SeriesTypeEnum.sankey;
|
|
79841
79992
|
}
|
|
79842
79993
|
}
|
|
79843
|
-
SankeyChart.type =
|
|
79994
|
+
SankeyChart.type = "sankey";
|
|
79844
79995
|
SankeyChart.seriesType = exports.SeriesTypeEnum.sankey;
|
|
79845
79996
|
SankeyChart.view = 'singleDefault';
|
|
79846
79997
|
SankeyChart.transformerConstructor = SankeyChartSpecTransformer;
|
|
@@ -79854,7 +80005,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79854
80005
|
var _a, _b;
|
|
79855
80006
|
const series = Object.assign({}, super._getDefaultSeriesSpec(spec));
|
|
79856
80007
|
series.area = spec.area;
|
|
79857
|
-
if (spec.direction ===
|
|
80008
|
+
if (spec.direction === "horizontal") {
|
|
79858
80009
|
series.xField = (_a = spec.xField) !== null && _a !== void 0 ? _a : [spec.minField, spec.maxField];
|
|
79859
80010
|
}
|
|
79860
80011
|
else {
|
|
@@ -79873,11 +80024,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79873
80024
|
constructor() {
|
|
79874
80025
|
super(...arguments);
|
|
79875
80026
|
this.transformerConstructor = RangeAreaChartSpecTransformer;
|
|
79876
|
-
this.type =
|
|
80027
|
+
this.type = "rangeArea";
|
|
79877
80028
|
this.seriesType = exports.SeriesTypeEnum.rangeArea;
|
|
79878
80029
|
}
|
|
79879
80030
|
}
|
|
79880
|
-
RangeAreaChart.type =
|
|
80031
|
+
RangeAreaChart.type = "rangeArea";
|
|
79881
80032
|
RangeAreaChart.seriesType = exports.SeriesTypeEnum.rangeArea;
|
|
79882
80033
|
RangeAreaChart.view = 'singleDefault';
|
|
79883
80034
|
RangeAreaChart.transformerConstructor = RangeAreaChartSpecTransformer;
|
|
@@ -79897,11 +80048,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79897
80048
|
constructor() {
|
|
79898
80049
|
super(...arguments);
|
|
79899
80050
|
this.transformerConstructor = HeatmapChartSpecTransformer;
|
|
79900
|
-
this.type =
|
|
80051
|
+
this.type = "heatmap";
|
|
79901
80052
|
this.seriesType = exports.SeriesTypeEnum.heatmap;
|
|
79902
80053
|
}
|
|
79903
80054
|
}
|
|
79904
|
-
HeatmapChart.type =
|
|
80055
|
+
HeatmapChart.type = "heatmap";
|
|
79905
80056
|
HeatmapChart.seriesType = exports.SeriesTypeEnum.heatmap;
|
|
79906
80057
|
HeatmapChart.view = 'singleDefault';
|
|
79907
80058
|
HeatmapChart.transformerConstructor = HeatmapChartSpecTransformer;
|
|
@@ -79943,11 +80094,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79943
80094
|
constructor() {
|
|
79944
80095
|
super(...arguments);
|
|
79945
80096
|
this.transformerConstructor = CorrelationChartSpecTransformer;
|
|
79946
|
-
this.type =
|
|
80097
|
+
this.type = "correlation";
|
|
79947
80098
|
this.seriesType = exports.SeriesTypeEnum.correlation;
|
|
79948
80099
|
}
|
|
79949
80100
|
}
|
|
79950
|
-
CorrelationChart.type =
|
|
80101
|
+
CorrelationChart.type = "correlation";
|
|
79951
80102
|
CorrelationChart.seriesType = exports.SeriesTypeEnum.correlation;
|
|
79952
80103
|
CorrelationChart.view = 'singleDefault';
|
|
79953
80104
|
CorrelationChart.transformerConstructor = CorrelationChartSpecTransformer;
|
|
@@ -80296,7 +80447,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80296
80447
|
this._compiledProductId = id;
|
|
80297
80448
|
}
|
|
80298
80449
|
}
|
|
80299
|
-
ComponentMark.type =
|
|
80450
|
+
ComponentMark.type = "component";
|
|
80300
80451
|
const registerComponentMark = () => {
|
|
80301
80452
|
Factory.registerMark(ComponentMark.type, ComponentMark);
|
|
80302
80453
|
};
|
|
@@ -80784,11 +80935,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80784
80935
|
const isX = isXAxis(this.getOrient());
|
|
80785
80936
|
const isValidAxis = (item) => {
|
|
80786
80937
|
var _a;
|
|
80787
|
-
return (
|
|
80938
|
+
return (isX ? !isXAxis(item.getOrient()) : isXAxis(item.getOrient())) &&
|
|
80788
80939
|
isContinuous(item.getScale().type) &&
|
|
80789
|
-
(
|
|
80940
|
+
item.getTickData()
|
|
80941
|
+
? (_a = item
|
|
80790
80942
|
.getTickData()
|
|
80791
|
-
.getLatestData()) === null || _a === void 0 ? void 0 : _a.find((d) => d.value === 0)
|
|
80943
|
+
.getLatestData()) === null || _a === void 0 ? void 0 : _a.find((d) => d.value === 0)
|
|
80944
|
+
: item.getScale().ticks().includes(0);
|
|
80792
80945
|
};
|
|
80793
80946
|
const relativeAxes = axesComponents.filter(item => isValidAxis(item));
|
|
80794
80947
|
if (relativeAxes.length) {
|
|
@@ -80833,7 +80986,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80833
80986
|
if (!axesSpec) {
|
|
80834
80987
|
return null;
|
|
80835
80988
|
}
|
|
80836
|
-
const isHorizontal = chartSpec.direction ===
|
|
80989
|
+
const isHorizontal = chartSpec.direction === "horizontal";
|
|
80837
80990
|
if (!isArray$1(axesSpec)) {
|
|
80838
80991
|
if (!isValidCartesianAxis(axesSpec)) {
|
|
80839
80992
|
return null;
|
|
@@ -80948,7 +81101,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80948
81101
|
}
|
|
80949
81102
|
this._tick = this._spec.tick;
|
|
80950
81103
|
const chartSpec = (_a = this._option.getChart()) === null || _a === void 0 ? void 0 : _a.getSpec();
|
|
80951
|
-
this._inverse = transformInverse(this._spec, (chartSpec === null || chartSpec === void 0 ? void 0 : chartSpec.direction) ===
|
|
81104
|
+
this._inverse = transformInverse(this._spec, (chartSpec === null || chartSpec === void 0 ? void 0 : chartSpec.direction) === "horizontal");
|
|
80952
81105
|
}
|
|
80953
81106
|
onLayoutStart(layoutRect, viewRect, ctx) {
|
|
80954
81107
|
super.onLayoutStart(layoutRect, viewRect, ctx);
|
|
@@ -81098,19 +81251,22 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81098
81251
|
if (!depth) {
|
|
81099
81252
|
this._dataFieldText = s.getFieldAlias(field[0]);
|
|
81100
81253
|
}
|
|
81101
|
-
const seriesData = (_c = s.getViewDataStatistics) === null || _c === void 0 ? void 0 : _c.call(s);
|
|
81102
81254
|
if (field) {
|
|
81103
|
-
|
|
81104
|
-
|
|
81105
|
-
|
|
81255
|
+
const viewData = s.getViewData();
|
|
81256
|
+
if (rawData) {
|
|
81257
|
+
field.forEach(f => {
|
|
81106
81258
|
data.push(s.getRawDataStatisticsByField(f, false));
|
|
81107
|
-
}
|
|
81108
|
-
|
|
81259
|
+
});
|
|
81260
|
+
}
|
|
81261
|
+
else if (viewData && viewData.latestData && viewData.latestData.length) {
|
|
81262
|
+
const seriesData = (_c = s.getViewDataStatistics) === null || _c === void 0 ? void 0 : _c.call(s);
|
|
81263
|
+
field.forEach(f => {
|
|
81264
|
+
var _a;
|
|
81109
81265
|
if ((_a = seriesData === null || seriesData === void 0 ? void 0 : seriesData.latestData) === null || _a === void 0 ? void 0 : _a[f]) {
|
|
81110
81266
|
data.push(seriesData.latestData[f]);
|
|
81111
81267
|
}
|
|
81112
|
-
}
|
|
81113
|
-
}
|
|
81268
|
+
});
|
|
81269
|
+
}
|
|
81114
81270
|
}
|
|
81115
81271
|
}, {
|
|
81116
81272
|
userId: this._seriesUserId,
|
|
@@ -81504,11 +81660,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81504
81660
|
}
|
|
81505
81661
|
computeLinearDomain(data) {
|
|
81506
81662
|
const domain = [];
|
|
81507
|
-
data.
|
|
81508
|
-
|
|
81509
|
-
|
|
81510
|
-
|
|
81511
|
-
|
|
81663
|
+
if (data.length) {
|
|
81664
|
+
data.forEach(d => {
|
|
81665
|
+
const { min, max } = d;
|
|
81666
|
+
domain[0] = domain[0] === undefined ? min : Math.min(domain[0], min);
|
|
81667
|
+
domain[1] = domain[1] === undefined ? max : Math.max(domain[1], max);
|
|
81668
|
+
});
|
|
81669
|
+
}
|
|
81670
|
+
else {
|
|
81671
|
+
domain[0] = 0;
|
|
81672
|
+
domain[1] = 0;
|
|
81673
|
+
}
|
|
81512
81674
|
this.expandDomain(domain);
|
|
81513
81675
|
this.includeZero(domain);
|
|
81514
81676
|
this.setDomainMinMax(domain);
|
|
@@ -81737,6 +81899,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81737
81899
|
}
|
|
81738
81900
|
}
|
|
81739
81901
|
computeBandDomain(data) {
|
|
81902
|
+
if (!data.length) {
|
|
81903
|
+
return [];
|
|
81904
|
+
}
|
|
81740
81905
|
if (data.length === 1) {
|
|
81741
81906
|
return data[0].values;
|
|
81742
81907
|
}
|
|
@@ -82221,19 +82386,22 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
82221
82386
|
if (!depth) {
|
|
82222
82387
|
this._dataFieldText = s.getFieldAlias(field[0]);
|
|
82223
82388
|
}
|
|
82224
|
-
const seriesData = (_c = s.getViewDataStatistics) === null || _c === void 0 ? void 0 : _c.call(s);
|
|
82225
82389
|
if (field) {
|
|
82226
|
-
|
|
82227
|
-
|
|
82228
|
-
|
|
82390
|
+
const viewData = s.getViewData();
|
|
82391
|
+
if (rawData) {
|
|
82392
|
+
field.forEach(f => {
|
|
82229
82393
|
data.push(s.getRawDataStatisticsByField(f, false));
|
|
82230
|
-
}
|
|
82231
|
-
|
|
82394
|
+
});
|
|
82395
|
+
}
|
|
82396
|
+
else if (viewData && viewData.latestData && viewData.latestData.length) {
|
|
82397
|
+
const seriesData = (_c = s.getViewDataStatistics) === null || _c === void 0 ? void 0 : _c.call(s);
|
|
82398
|
+
field.forEach(f => {
|
|
82399
|
+
var _a;
|
|
82232
82400
|
if ((_a = seriesData === null || seriesData === void 0 ? void 0 : seriesData.latestData) === null || _a === void 0 ? void 0 : _a[f]) {
|
|
82233
82401
|
data.push(seriesData.latestData[f]);
|
|
82234
82402
|
}
|
|
82235
|
-
}
|
|
82236
|
-
}
|
|
82403
|
+
});
|
|
82404
|
+
}
|
|
82237
82405
|
}
|
|
82238
82406
|
}, {
|
|
82239
82407
|
userId: this._seriesUserId,
|
|
@@ -82340,7 +82508,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
82340
82508
|
if (latestData && !isArray$1(latestData)) {
|
|
82341
82509
|
this.computeData('force');
|
|
82342
82510
|
}
|
|
82343
|
-
|
|
82511
|
+
else {
|
|
82512
|
+
return latestData || [];
|
|
82513
|
+
}
|
|
82344
82514
|
}
|
|
82345
82515
|
return this._scale.ticks();
|
|
82346
82516
|
}
|
|
@@ -82376,7 +82546,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
82376
82546
|
innerRadius, startAngle: this._startAngle, endAngle: this._endAngle });
|
|
82377
82547
|
const attrs = Object.assign(Object.assign({}, commonAttrs), { title: {
|
|
82378
82548
|
text: this._spec.title.text || this._dataFieldText
|
|
82379
|
-
}, items: items.length ? [items] : [] });
|
|
82549
|
+
}, items: items.length ? [items] : [], orient: 'angle' });
|
|
82380
82550
|
if (this._spec.grid.visible) {
|
|
82381
82551
|
attrs.grid = Object.assign({ type: 'line', smoothLink: true, items }, commonAttrs);
|
|
82382
82552
|
}
|
|
@@ -82404,7 +82574,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
82404
82574
|
const commonAttrs = Object.assign(Object.assign({}, this.getLayoutStartPoint()), { start: startPoint, end: endPoint, verticalFactor: -1 });
|
|
82405
82575
|
const attrs = Object.assign(Object.assign({}, commonAttrs), { title: {
|
|
82406
82576
|
text: this._spec.title.text || this._dataFieldText
|
|
82407
|
-
}, items: items.length ? [items] : [] });
|
|
82577
|
+
}, items: items.length ? [items] : [], orient: 'radius' });
|
|
82408
82578
|
if ((_a = this._spec.grid) === null || _a === void 0 ? void 0 : _a.visible) {
|
|
82409
82579
|
attrs.grid = Object.assign({ items, type: ((_b = this._spec.grid) === null || _b === void 0 ? void 0 : _b.smooth) ? 'circle' : 'polygon', center, closed: true, sides: (_c = this._getRelatedAngleAxis()) === null || _c === void 0 ? void 0 : _c.tickValues().length, startAngle: this._startAngle, endAngle: this._endAngle }, commonAttrs);
|
|
82410
82580
|
}
|
|
@@ -83432,19 +83602,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83432
83602
|
return result;
|
|
83433
83603
|
};
|
|
83434
83604
|
const positionType = {
|
|
83435
|
-
[
|
|
83436
|
-
[
|
|
83437
|
-
[
|
|
83438
|
-
[
|
|
83439
|
-
[
|
|
83440
|
-
[
|
|
83441
|
-
[
|
|
83442
|
-
[
|
|
83443
|
-
[
|
|
83444
|
-
[
|
|
83445
|
-
[
|
|
83446
|
-
[
|
|
83447
|
-
[
|
|
83605
|
+
["left"]: ['left', 'middle'],
|
|
83606
|
+
["right"]: ['right', 'middle'],
|
|
83607
|
+
["inside"]: ['middle', 'middle'],
|
|
83608
|
+
["top"]: ['middle', 'top'],
|
|
83609
|
+
["lt"]: ['left', 'top'],
|
|
83610
|
+
["tl"]: ['left', 'top'],
|
|
83611
|
+
["rt"]: ['right', 'top'],
|
|
83612
|
+
["tr"]: ['right', 'top'],
|
|
83613
|
+
["bottom"]: ['middle', 'bottom'],
|
|
83614
|
+
["bl"]: ['left', 'bottom'],
|
|
83615
|
+
["lb"]: ['left', 'bottom'],
|
|
83616
|
+
["br"]: ['right', 'bottom'],
|
|
83617
|
+
["rb"]: ['right', 'bottom']
|
|
83448
83618
|
};
|
|
83449
83619
|
const getHorizontalPositionType = (position, defaultCase) => { var _a, _b; return (_b = (_a = positionType[position]) === null || _a === void 0 ? void 0 : _a[0]) !== null && _b !== void 0 ? _b : defaultCase; };
|
|
83450
83620
|
const getVerticalPositionType = (position, defaultCase) => { var _a, _b; return (_b = (_a = positionType[position]) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : defaultCase; };
|
|
@@ -84176,7 +84346,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84176
84346
|
bottom = getActualTooltipPositionValue(posBottom, event);
|
|
84177
84347
|
}
|
|
84178
84348
|
else if (isValid$1(position) &&
|
|
84179
|
-
positionMode !==
|
|
84349
|
+
positionMode !== "pointer" &&
|
|
84180
84350
|
actualTooltip.activeType === 'mark') {
|
|
84181
84351
|
isFixedPosition = true;
|
|
84182
84352
|
const element = params.item;
|
|
@@ -84829,6 +84999,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84829
84999
|
this._svgHtmlCache = '';
|
|
84830
85000
|
}
|
|
84831
85001
|
}
|
|
85002
|
+
const builtInShape = {
|
|
85003
|
+
star: 'M0 -1L0.22451398828979266 -0.3090169943749474L0.9510565162951535 -0.30901699437494745L0.3632712640026804 0.1180339887498948L0.5877852522924732 0.8090169943749473L8.326672684688674e-17 0.3819660112501051L-0.587785252292473 0.8090169943749476L-0.3632712640026804 0.11803398874989487L-0.9510565162951536 -0.30901699437494723L-0.22451398828979274 -0.30901699437494734Z'
|
|
85004
|
+
};
|
|
84832
85005
|
function getSvgHtml(option, valueToHtml) {
|
|
84833
85006
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
84834
85007
|
if (!(option === null || option === void 0 ? void 0 : option.hasShape) || !option.symbolType) {
|
|
@@ -84840,14 +85013,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84840
85013
|
const lineWidth = option.lineWidth ? valueToHtml(option.lineWidth) + 'px' : '0px';
|
|
84841
85014
|
let fillString = 'currentColor';
|
|
84842
85015
|
const getStroke = () => (stroke ? valueToHtml(stroke) : fillString);
|
|
84843
|
-
const
|
|
84844
|
-
const
|
|
84845
|
-
|
|
84846
|
-
|
|
84847
|
-
if (!
|
|
84848
|
-
|
|
84849
|
-
viewBox = `${bounds.x1} ${bounds.y1} ${bounds.width()} ${bounds.height()}`;
|
|
85016
|
+
const sizeNumber = pixelPropertyStrToNumber(size);
|
|
85017
|
+
const createSymbol = (symbolType) => new Symbol$1({ symbolType, size: sizeNumber, fill: true });
|
|
85018
|
+
let symbol = createSymbol((_a = builtInShape[symbolType]) !== null && _a !== void 0 ? _a : symbolType);
|
|
85019
|
+
const parsedPath = symbol.getParsedPath();
|
|
85020
|
+
if (!parsedPath.path) {
|
|
85021
|
+
symbol = createSymbol(parsedPath.pathStr);
|
|
84850
85022
|
}
|
|
85023
|
+
const pathModel = symbol.getParsedPath().path;
|
|
85024
|
+
const path = pathModel.toString();
|
|
85025
|
+
const bounds = pathModel.bounds;
|
|
85026
|
+
let viewBox = `${bounds.x1} ${bounds.y1} ${bounds.width()} ${bounds.height()}`;
|
|
84851
85027
|
if (lineWidth !== '0px') {
|
|
84852
85028
|
const [x, y, w, h] = viewBox.split(' ').map(n => Number(n));
|
|
84853
85029
|
const lw = Number(lineWidth.slice(0, -2));
|
|
@@ -86737,11 +86913,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86737
86913
|
const { xField, yField } = this._spec;
|
|
86738
86914
|
if ((xField === null || xField === void 0 ? void 0 : xField.visible) && xField.defaultSelect) {
|
|
86739
86915
|
const { axisIndex, datum } = xField.defaultSelect;
|
|
86740
|
-
this._defaultCrosshair(axisIndex, datum,
|
|
86916
|
+
this._defaultCrosshair(axisIndex, datum, 1);
|
|
86741
86917
|
}
|
|
86742
86918
|
if ((yField === null || yField === void 0 ? void 0 : yField.visible) && yField.defaultSelect) {
|
|
86743
86919
|
const { axisIndex, datum } = yField.defaultSelect;
|
|
86744
|
-
this._defaultCrosshair(axisIndex, datum,
|
|
86920
|
+
this._defaultCrosshair(axisIndex, datum, 2);
|
|
86745
86921
|
}
|
|
86746
86922
|
}
|
|
86747
86923
|
_defaultCrosshair(axisIndex, datum, tag) {
|
|
@@ -86749,7 +86925,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86749
86925
|
if (!axis) {
|
|
86750
86926
|
return;
|
|
86751
86927
|
}
|
|
86752
|
-
if (tag ===
|
|
86928
|
+
if (tag === 1) {
|
|
86753
86929
|
this._currValueX.clear();
|
|
86754
86930
|
this._currValueX.set(axisIndex, { axis, v: datum });
|
|
86755
86931
|
}
|
|
@@ -86832,7 +87008,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86832
87008
|
this._currValueY.clear();
|
|
86833
87009
|
xAxisMap && xAxisMap.size && this._getAllAxisValues(xAxisMap, relativeX, this._currValueX, true);
|
|
86834
87010
|
yAxisMap && yAxisMap.size && this._getAllAxisValues(yAxisMap, relativeY, this._currValueY, false);
|
|
86835
|
-
this.layoutByValue(
|
|
87011
|
+
this.layoutByValue(3);
|
|
86836
87012
|
}
|
|
86837
87013
|
hide() {
|
|
86838
87014
|
this._xCrosshair && this._xCrosshair.hideAll();
|
|
@@ -86842,7 +87018,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86842
87018
|
this._yLeftLabel && this._yLeftLabel.hideAll();
|
|
86843
87019
|
this._yRightLabel && this._yRightLabel.hideAll();
|
|
86844
87020
|
}
|
|
86845
|
-
layoutByValue(tag =
|
|
87021
|
+
layoutByValue(tag = 3) {
|
|
86846
87022
|
var _a, _b, _c, _d;
|
|
86847
87023
|
if (!this.enable) {
|
|
86848
87024
|
return;
|
|
@@ -87025,8 +87201,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87025
87201
|
}
|
|
87026
87202
|
}
|
|
87027
87203
|
if (tag) {
|
|
87028
|
-
|
|
87029
|
-
|
|
87204
|
+
this._layoutHorizontal(yCrossHairInfo, valueHeight !== null && valueHeight !== void 0 ? valueHeight : 0, offsetHeight);
|
|
87205
|
+
this._layoutVertical(xCrossHairInfo, indexWidth !== null && indexWidth !== void 0 ? indexWidth : 0, offsetWidth);
|
|
87030
87206
|
}
|
|
87031
87207
|
if (this.enableRemain) {
|
|
87032
87208
|
this._cacheXCrossHairInfo = Object.assign(Object.assign({}, xCrossHairInfo), { _isCache: true });
|
|
@@ -87251,11 +87427,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87251
87427
|
const { categoryField, valueField } = this._spec;
|
|
87252
87428
|
if ((categoryField === null || categoryField === void 0 ? void 0 : categoryField.visible) && categoryField.defaultSelect) {
|
|
87253
87429
|
const { axisIndex, datum } = categoryField.defaultSelect;
|
|
87254
|
-
this._defaultCrosshair(axisIndex, datum,
|
|
87430
|
+
this._defaultCrosshair(axisIndex, datum, 1);
|
|
87255
87431
|
}
|
|
87256
87432
|
if ((valueField === null || valueField === void 0 ? void 0 : valueField.visible) && valueField.defaultSelect) {
|
|
87257
87433
|
const { axisIndex, datum } = valueField.defaultSelect;
|
|
87258
|
-
this._defaultCrosshair(axisIndex, datum,
|
|
87434
|
+
this._defaultCrosshair(axisIndex, datum, 2);
|
|
87259
87435
|
}
|
|
87260
87436
|
}
|
|
87261
87437
|
_defaultCrosshair(axisIndex, datum, tag) {
|
|
@@ -87263,7 +87439,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87263
87439
|
if (!axis) {
|
|
87264
87440
|
return;
|
|
87265
87441
|
}
|
|
87266
|
-
if (tag ===
|
|
87442
|
+
if (tag === 1) {
|
|
87267
87443
|
this._currValueAngle.clear();
|
|
87268
87444
|
const polarCoord = {
|
|
87269
87445
|
angle: axis.valueToPosition(datum),
|
|
@@ -87281,7 +87457,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87281
87457
|
const canvasPosition = axis.coordToPoint(polarCoord);
|
|
87282
87458
|
this._currValueRadius.set(axisIndex, this._getValueByAxis(axis, canvasPosition));
|
|
87283
87459
|
}
|
|
87284
|
-
this.layoutByValue(
|
|
87460
|
+
this.layoutByValue(3);
|
|
87285
87461
|
}
|
|
87286
87462
|
hide() {
|
|
87287
87463
|
this._radiusCrosshair && this._radiusCrosshair.hideAll();
|
|
@@ -87358,9 +87534,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87358
87534
|
this._currValueRadius.clear();
|
|
87359
87535
|
angleAxisMap && this._getAllAxisValues(angleAxisMap, { x: relativeX, y: relativeY }, this._currValueAngle);
|
|
87360
87536
|
radiusAxisMap && this._getAllAxisValues(radiusAxisMap, { x: relativeX, y: relativeY }, this._currValueRadius);
|
|
87361
|
-
this.layoutByValue(
|
|
87537
|
+
this.layoutByValue(3);
|
|
87362
87538
|
}
|
|
87363
|
-
layoutByValue(tag =
|
|
87539
|
+
layoutByValue(tag = 3) {
|
|
87364
87540
|
var _a, _b, _c, _d;
|
|
87365
87541
|
if (!this.enable) {
|
|
87366
87542
|
return;
|
|
@@ -87448,8 +87624,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87448
87624
|
}
|
|
87449
87625
|
}
|
|
87450
87626
|
if (tag) {
|
|
87451
|
-
|
|
87452
|
-
|
|
87627
|
+
this._layoutHorizontal(radiusCrossHairInfo);
|
|
87628
|
+
this._layoutVertical(angleCrossHairInfo);
|
|
87453
87629
|
}
|
|
87454
87630
|
if (this.enableRemain) {
|
|
87455
87631
|
this._cacheAngleCrossHairInfo = Object.assign(Object.assign({}, angleCrossHairInfo), { _isCache: true });
|
|
@@ -87719,7 +87895,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87719
87895
|
onZoomChange: (tag) => {
|
|
87720
87896
|
var _a, _b;
|
|
87721
87897
|
const axis = this._relatedAxisComponent;
|
|
87722
|
-
if (axis && this._filterMode ===
|
|
87898
|
+
if (axis && this._filterMode === "axis") {
|
|
87723
87899
|
const axisScale = axis.getScale();
|
|
87724
87900
|
const axisSpec = axis.getSpec();
|
|
87725
87901
|
if (this._auto && this._getAxisBandSize(axisSpec) && this._spec.ignoreBandSize) {
|
|
@@ -87829,7 +88005,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87829
88005
|
}
|
|
87830
88006
|
};
|
|
87831
88007
|
this._orient = getOrient(spec);
|
|
87832
|
-
this._isHorizontal = getDirectionByOrient(this._orient) ===
|
|
88008
|
+
this._isHorizontal = getDirectionByOrient(this._orient) === "horizontal";
|
|
87833
88009
|
}
|
|
87834
88010
|
created() {
|
|
87835
88011
|
super.created();
|
|
@@ -87862,7 +88038,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87862
88038
|
this._relatedAxisComponent = bandAxis;
|
|
87863
88039
|
}
|
|
87864
88040
|
}
|
|
87865
|
-
if (this._relatedAxisComponent && this._filterMode ===
|
|
88041
|
+
if (this._relatedAxisComponent && this._filterMode === "axis") {
|
|
87866
88042
|
this._relatedAxisComponent.autoIndentOnce = true;
|
|
87867
88043
|
}
|
|
87868
88044
|
}
|
|
@@ -88090,7 +88266,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88090
88266
|
}
|
|
88091
88267
|
this._minSpan = Math.max(0, this._minSpan);
|
|
88092
88268
|
this._maxSpan = Math.min(this._maxSpan, 1);
|
|
88093
|
-
if ((!this._relatedAxisComponent || this._filterMode !==
|
|
88269
|
+
if ((!this._relatedAxisComponent || this._filterMode !== "axis") &&
|
|
88094
88270
|
(this._start !== 0 || this._end !== 1)) {
|
|
88095
88271
|
this._newDomain = this._parseDomainFromState(this._startValue, this._endValue);
|
|
88096
88272
|
}
|
|
@@ -88129,7 +88305,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88129
88305
|
}
|
|
88130
88306
|
}
|
|
88131
88307
|
_addTransformToSeries() {
|
|
88132
|
-
if (!this._relatedAxisComponent || this._filterMode !==
|
|
88308
|
+
if (!this._relatedAxisComponent || this._filterMode !== "axis") {
|
|
88133
88309
|
registerDataSetInstanceTransform(this._option.dataSet, 'dataFilterWithNewDomain', dataFilterWithNewDomain);
|
|
88134
88310
|
eachSeries(this._regions, s => {
|
|
88135
88311
|
s.addViewDataFilter({
|
|
@@ -88404,7 +88580,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88404
88580
|
return yScale.scale(min) + this.getLayoutStartPoint().y + offsetTop + offsetHandler;
|
|
88405
88581
|
};
|
|
88406
88582
|
this._valueField = 'y';
|
|
88407
|
-
this._filterMode = (_a = spec.filterMode) !== null && _a !== void 0 ? _a :
|
|
88583
|
+
this._filterMode = (_a = spec.filterMode) !== null && _a !== void 0 ? _a : "filter";
|
|
88408
88584
|
}
|
|
88409
88585
|
created() {
|
|
88410
88586
|
super.created();
|
|
@@ -88596,7 +88772,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88596
88772
|
this.event.emit(exports.ChartEvent.dataZoomChange, {
|
|
88597
88773
|
model: this,
|
|
88598
88774
|
value: {
|
|
88599
|
-
filterData: this._filterMode !==
|
|
88775
|
+
filterData: this._filterMode !== "axis",
|
|
88600
88776
|
start,
|
|
88601
88777
|
end,
|
|
88602
88778
|
startValue: this._startValue,
|
|
@@ -88704,7 +88880,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88704
88880
|
this.layoutZIndex = exports.LayoutZIndex.DataZoom;
|
|
88705
88881
|
this.layoutLevel = exports.LayoutLevel.DataZoom;
|
|
88706
88882
|
this.layoutType = 'region-relative';
|
|
88707
|
-
this._filterMode = (_a = spec.filterMode) !== null && _a !== void 0 ? _a :
|
|
88883
|
+
this._filterMode = (_a = spec.filterMode) !== null && _a !== void 0 ? _a : "axis";
|
|
88708
88884
|
}
|
|
88709
88885
|
setAttrFromSpec() {
|
|
88710
88886
|
super.setAttrFromSpec();
|
|
@@ -88782,7 +88958,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88782
88958
|
this.event.emit(exports.ChartEvent.scrollBarChange, {
|
|
88783
88959
|
model: this,
|
|
88784
88960
|
value: {
|
|
88785
|
-
filterData: this._filterMode !==
|
|
88961
|
+
filterData: this._filterMode !== "axis",
|
|
88786
88962
|
start: this._start,
|
|
88787
88963
|
end: this._end,
|
|
88788
88964
|
startValue: this._startValue,
|
|
@@ -89205,7 +89381,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89205
89381
|
endRelativeSeries
|
|
89206
89382
|
};
|
|
89207
89383
|
const lines = [];
|
|
89208
|
-
const dataPoints = data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
89384
|
+
const dataPoints = data.latestData[0] && data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
89209
89385
|
const xDomain = relativeSeries.getXAxisHelper().getScale(0).domain();
|
|
89210
89386
|
const yDomain = relativeSeries.getYAxisHelper().getScale(0).domain();
|
|
89211
89387
|
dataPoints.forEach((datum) => {
|
|
@@ -89251,7 +89427,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89251
89427
|
}
|
|
89252
89428
|
function coordinateLayout(data, relativeSeries, autoRange, coordinatesOffset) {
|
|
89253
89429
|
const points = [];
|
|
89254
|
-
const dataPoints = data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
89430
|
+
const dataPoints = data.latestData[0] && data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
89255
89431
|
const isArrayCoordinatesOffset = isArray$1(coordinatesOffset);
|
|
89256
89432
|
dataPoints.forEach((datum, index) => {
|
|
89257
89433
|
var _a, _b, _c, _d;
|
|
@@ -89622,6 +89798,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89622
89798
|
return {};
|
|
89623
89799
|
}
|
|
89624
89800
|
|
|
89801
|
+
function markerFilter(data, options) {
|
|
89802
|
+
if (options && options.getRelativeSeries) {
|
|
89803
|
+
const series = options.getRelativeSeries();
|
|
89804
|
+
if (series) {
|
|
89805
|
+
const viewData = series.getViewData();
|
|
89806
|
+
return viewData && viewData.latestData && viewData.latestData.length ? data : [];
|
|
89807
|
+
}
|
|
89808
|
+
}
|
|
89809
|
+
return data;
|
|
89810
|
+
}
|
|
89811
|
+
|
|
89625
89812
|
class MarkLine extends BaseMarker {
|
|
89626
89813
|
constructor() {
|
|
89627
89814
|
super(...arguments);
|
|
@@ -89716,7 +89903,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89716
89903
|
points = positionLayout(spec.positions, relativeSeries, spec.regionRelative);
|
|
89717
89904
|
}
|
|
89718
89905
|
const seriesData = this._relativeSeries.getViewData().latestData;
|
|
89719
|
-
const dataPoints = data.latestData[0].latestData
|
|
89906
|
+
const dataPoints = data.latestData[0] && data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
89720
89907
|
let limitRect;
|
|
89721
89908
|
if (spec.clip || ((_b = spec.label) === null || _b === void 0 ? void 0 : _b.confine)) {
|
|
89722
89909
|
const { minX, maxX, minY, maxY } = computeClipRange([
|
|
@@ -89816,6 +90003,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89816
90003
|
}
|
|
89817
90004
|
registerDataSetInstanceTransform(this._option.dataSet, 'markerAggregation', markerAggregation);
|
|
89818
90005
|
registerDataSetInstanceTransform(this._option.dataSet, 'markerRegression', markerRegression);
|
|
90006
|
+
registerDataSetInstanceTransform(this._option.dataSet, 'markerFilter', markerFilter);
|
|
89819
90007
|
this._isXYLayout = doXProcess || doXYY1Process || doYProcess || doYXX1Process || doXYProcess;
|
|
89820
90008
|
let options;
|
|
89821
90009
|
let processData = relativeSeries.getViewData();
|
|
@@ -89886,6 +90074,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89886
90074
|
options
|
|
89887
90075
|
});
|
|
89888
90076
|
}
|
|
90077
|
+
if (needAggr || needRegr) {
|
|
90078
|
+
data.transform({
|
|
90079
|
+
type: 'markerFilter',
|
|
90080
|
+
options: this._getAllRelativeSeries()
|
|
90081
|
+
});
|
|
90082
|
+
}
|
|
89889
90083
|
data.target.on('change', () => {
|
|
89890
90084
|
this._markerLayout();
|
|
89891
90085
|
});
|
|
@@ -90128,7 +90322,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90128
90322
|
}
|
|
90129
90323
|
const seriesData = this._relativeSeries.getViewData().latestData;
|
|
90130
90324
|
const dataPoints = data
|
|
90131
|
-
? data.latestData[0].latestData
|
|
90325
|
+
? data.latestData[0] && data.latestData[0].latestData
|
|
90132
90326
|
? data.latestData[0].latestData
|
|
90133
90327
|
: data.latestData
|
|
90134
90328
|
: seriesData;
|
|
@@ -90183,6 +90377,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90183
90377
|
}
|
|
90184
90378
|
const seriesData = relativeSeries.getViewData();
|
|
90185
90379
|
registerDataSetInstanceTransform(this._option.dataSet, 'markerAggregation', markerAggregation);
|
|
90380
|
+
registerDataSetInstanceTransform(this._option.dataSet, 'markerFilter', markerFilter);
|
|
90186
90381
|
const data = new DataView(this._option.dataSet, { name: `${this.type}_${this.id}_data` });
|
|
90187
90382
|
data.parse([seriesData], {
|
|
90188
90383
|
type: 'dataview'
|
|
@@ -90191,6 +90386,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90191
90386
|
type: 'markerAggregation',
|
|
90192
90387
|
options
|
|
90193
90388
|
});
|
|
90389
|
+
if (options) {
|
|
90390
|
+
data.transform({
|
|
90391
|
+
type: 'markerFilter',
|
|
90392
|
+
options: this._getAllRelativeSeries()
|
|
90393
|
+
});
|
|
90394
|
+
}
|
|
90194
90395
|
data.target.on('change', () => {
|
|
90195
90396
|
this._markerLayout();
|
|
90196
90397
|
});
|
|
@@ -90701,7 +90902,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90701
90902
|
const datum = label.data;
|
|
90702
90903
|
const attribute = textAttribute(labelInfo, datum, labelSpec.formatMethod);
|
|
90703
90904
|
const x = (datum) => {
|
|
90704
|
-
if (series.direction ===
|
|
90905
|
+
if (series.direction === "vertical") {
|
|
90705
90906
|
return series.totalPositionX(datum, 'index', 0.5);
|
|
90706
90907
|
}
|
|
90707
90908
|
if (pos === 'middle') {
|
|
@@ -90716,7 +90917,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90716
90917
|
return series.totalPositionX(datum, 'end') + (datum.end >= datum.start ? offset : -offset);
|
|
90717
90918
|
};
|
|
90718
90919
|
const y = (datum) => {
|
|
90719
|
-
if (series.direction ===
|
|
90920
|
+
if (series.direction === "vertical") {
|
|
90720
90921
|
if (pos === 'middle') {
|
|
90721
90922
|
return (series.totalPositionY(datum, 'end') + series.totalPositionY(datum, 'start')) * 0.5;
|
|
90722
90923
|
}
|
|
@@ -90732,7 +90933,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90732
90933
|
};
|
|
90733
90934
|
attribute.x = x(datum);
|
|
90734
90935
|
attribute.y = y(datum);
|
|
90735
|
-
if (series.direction ===
|
|
90936
|
+
if (series.direction === "vertical") {
|
|
90736
90937
|
attribute.textBaseline =
|
|
90737
90938
|
pos === 'middle'
|
|
90738
90939
|
? pos
|
|
@@ -90860,8 +91061,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90860
91061
|
this._component = component;
|
|
90861
91062
|
}
|
|
90862
91063
|
}
|
|
90863
|
-
LabelMark.type =
|
|
90864
|
-
LabelMark.constructorType =
|
|
91064
|
+
LabelMark.type = "text";
|
|
91065
|
+
LabelMark.constructorType = "label";
|
|
90865
91066
|
const registerLabelMark = () => {
|
|
90866
91067
|
Factory.registerMark(LabelMark.constructorType, LabelMark);
|
|
90867
91068
|
registerTextGraphic();
|
|
@@ -90980,7 +91181,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90980
91181
|
if (spec.visible) {
|
|
90981
91182
|
const info = this._labelInfoMap.get(region);
|
|
90982
91183
|
const labelMark = this._createMark({
|
|
90983
|
-
type:
|
|
91184
|
+
type: "label",
|
|
90984
91185
|
name: `${markName}-label-${index}`
|
|
90985
91186
|
}, { noSeparateStyle: true, attributeContext: series.getMarkAttributeContext() });
|
|
90986
91187
|
labelMark.setTarget(mark);
|
|
@@ -90998,7 +91199,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90998
91199
|
_initLabelComponent() {
|
|
90999
91200
|
this._labelInfoMap.forEach((regionLabelInfo, region) => {
|
|
91000
91201
|
if (this._layoutRule === 'region') {
|
|
91001
|
-
const component = this._createMark({ type:
|
|
91202
|
+
const component = this._createMark({ type: "component", name: `${region.getGroupMark().name}-label-component` }, {
|
|
91002
91203
|
componentType: 'label',
|
|
91003
91204
|
noSeparateStyle: true,
|
|
91004
91205
|
support3d: this._spec.support3d
|
|
@@ -91013,7 +91214,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91013
91214
|
}
|
|
91014
91215
|
else {
|
|
91015
91216
|
regionLabelInfo.forEach((labelInfo, i) => {
|
|
91016
|
-
const component = this._createMark({ type:
|
|
91217
|
+
const component = this._createMark({ type: "component", name: `${labelInfo.labelMark.name}-component` }, {
|
|
91017
91218
|
componentType: 'label',
|
|
91018
91219
|
noSeparateStyle: true,
|
|
91019
91220
|
support3d: labelInfo.baseMark.getSupport3d()
|
|
@@ -91185,8 +91386,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91185
91386
|
var _a;
|
|
91186
91387
|
const series = this._getSeries();
|
|
91187
91388
|
if ((_a = series.getSpec().totalLabel) === null || _a === void 0 ? void 0 : _a.visible) {
|
|
91188
|
-
const mark = series.getMarksInType([
|
|
91189
|
-
const textMark = this._createMark({ type:
|
|
91389
|
+
const mark = series.getMarksInType(["rect", "symbol"])[0];
|
|
91390
|
+
const textMark = this._createMark({ type: "label", name: `${mark.name}-total-label` });
|
|
91190
91391
|
this._baseMark = mark;
|
|
91191
91392
|
this._textMark = textMark;
|
|
91192
91393
|
this._initTextMarkStyle();
|
|
@@ -91202,7 +91403,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91202
91403
|
}
|
|
91203
91404
|
_initLabelComponent() {
|
|
91204
91405
|
const series = this._getSeries();
|
|
91205
|
-
const component = this._createMark({ type:
|
|
91406
|
+
const component = this._createMark({ type: "component", name: `${series.name}-total-label-component` }, {
|
|
91206
91407
|
componentType: 'label',
|
|
91207
91408
|
noSeparateStyle: true,
|
|
91208
91409
|
support3d: this._spec.support3d
|
|
@@ -91372,7 +91573,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91372
91573
|
}
|
|
91373
91574
|
const seriesData = this._relativeSeries.getViewData().latestData;
|
|
91374
91575
|
const dataPoints = data
|
|
91375
|
-
? data.latestData[0].latestData
|
|
91576
|
+
? data.latestData[0] && data.latestData[0].latestData
|
|
91376
91577
|
? data.latestData[0].latestData
|
|
91377
91578
|
: data.latestData
|
|
91378
91579
|
: seriesData;
|
|
@@ -91409,6 +91610,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91409
91610
|
return;
|
|
91410
91611
|
}
|
|
91411
91612
|
registerDataSetInstanceTransform(this._option.dataSet, 'markerAggregation', markerAggregation);
|
|
91613
|
+
registerDataSetInstanceTransform(this._option.dataSet, 'markerFilter', markerFilter);
|
|
91412
91614
|
let options;
|
|
91413
91615
|
if (isXYProcess) {
|
|
91414
91616
|
options = [this._processSpecXY(spec.x, spec.y)];
|
|
@@ -91424,6 +91626,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91424
91626
|
type: 'markerAggregation',
|
|
91425
91627
|
options
|
|
91426
91628
|
});
|
|
91629
|
+
if (options) {
|
|
91630
|
+
data.transform({
|
|
91631
|
+
type: 'markerFilter',
|
|
91632
|
+
options: this._getAllRelativeSeries()
|
|
91633
|
+
});
|
|
91634
|
+
}
|
|
91427
91635
|
data.target.on('change', () => {
|
|
91428
91636
|
this._markerLayout();
|
|
91429
91637
|
});
|
|
@@ -91888,7 +92096,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91888
92096
|
return defaultStyle;
|
|
91889
92097
|
}
|
|
91890
92098
|
}
|
|
91891
|
-
ImageMark.type =
|
|
92099
|
+
ImageMark.type = "image";
|
|
91892
92100
|
const registerImageMark = () => {
|
|
91893
92101
|
Factory.registerMark(ImageMark.type, ImageMark);
|
|
91894
92102
|
registerImageGraphic();
|
|
@@ -93281,7 +93489,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
93281
93489
|
exports.registerWordCloudSeries = registerWordCloudSeries;
|
|
93282
93490
|
exports.removeTheme = removeTheme;
|
|
93283
93491
|
exports.seriesMarkInfoMap = seriesMarkInfoMap;
|
|
93284
|
-
exports.seriesMarkNameSet = seriesMarkNameSet;
|
|
93285
93492
|
exports.themeExist = themeExist;
|
|
93286
93493
|
exports.themes = themes;
|
|
93287
93494
|
exports.transformColorSchemeToStandardStruct = transformColorSchemeToStandardStruct;
|