@visactor/vchart 1.8.10-alpha.0 → 1.8.11
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 +996 -783
- 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/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/constant/hierarchy.js +1 -2
- package/cjs/constant/scroll-bar.js +2 -1
- 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/events/dimension/util/cartesian.js +2 -2
- package/cjs/event/events/dimension/util/cartesian.js.map +1 -1
- 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/plugin/components/axis-sync-plugin/axis-sync.js +1 -1
- package/cjs/plugin/components/axis-sync-plugin/axis-sync.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.d.ts +1 -0
- package/cjs/series/cartesian/cartesian.js +13 -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/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/constant/hierarchy.js +1 -2
- package/esm/constant/scroll-bar.js +2 -1
- 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/events/dimension/util/cartesian.js +1 -3
- package/esm/event/events/dimension/util/cartesian.js.map +1 -1
- 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/plugin/components/axis-sync-plugin/axis-sync.js +1 -1
- package/esm/plugin/components/axis-sync-plugin/axis-sync.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.d.ts +1 -0
- package/esm/series/cartesian/cartesian.js +13 -12
- 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.
|
|
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.11";
|
|
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;
|
|
@@ -60140,14 +60286,20 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60140
60286
|
getStackGroupFields() {
|
|
60141
60287
|
return this.getGroupFields();
|
|
60142
60288
|
}
|
|
60289
|
+
getStackValue() {
|
|
60290
|
+
var _a;
|
|
60291
|
+
return ((_a = this._spec.stackValue) !== null && _a !== void 0 ? _a : `${PREFIX}_series_${this.type}_${(this.direction === "horizontal"
|
|
60292
|
+
? this.getXAxisHelper()
|
|
60293
|
+
: this.getYAxisHelper()).getAxisId()}`);
|
|
60294
|
+
}
|
|
60143
60295
|
getStackValueField() {
|
|
60144
|
-
if (this.direction ===
|
|
60296
|
+
if (this.direction === "vertical") {
|
|
60145
60297
|
return array(this._spec.yField)[0];
|
|
60146
60298
|
}
|
|
60147
60299
|
return array(this._spec.xField)[0];
|
|
60148
60300
|
}
|
|
60149
60301
|
setValueFieldToStack() {
|
|
60150
|
-
if (this.direction ===
|
|
60302
|
+
if (this.direction === "vertical") {
|
|
60151
60303
|
this.setFieldY(STACK_FIELD_END);
|
|
60152
60304
|
this.setFieldY2(STACK_FIELD_START);
|
|
60153
60305
|
}
|
|
@@ -60157,7 +60309,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60157
60309
|
}
|
|
60158
60310
|
}
|
|
60159
60311
|
setValueFieldToPercent() {
|
|
60160
|
-
if (this.direction ===
|
|
60312
|
+
if (this.direction === "vertical") {
|
|
60161
60313
|
this.setFieldY(STACK_FIELD_END_PERCENT);
|
|
60162
60314
|
this.setFieldY2(STACK_FIELD_START_PERCENT);
|
|
60163
60315
|
}
|
|
@@ -60167,7 +60319,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60167
60319
|
}
|
|
60168
60320
|
}
|
|
60169
60321
|
setValueFieldToStackOffsetSilhouette() {
|
|
60170
|
-
if (this.direction ===
|
|
60322
|
+
if (this.direction === "vertical") {
|
|
60171
60323
|
this.setFieldY(STACK_FIELD_END_OffsetSilhouette);
|
|
60172
60324
|
this.setFieldY2(STACK_FIELD_START_OffsetSilhouette);
|
|
60173
60325
|
}
|
|
@@ -60369,13 +60521,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60369
60521
|
this._buildScaleConfig();
|
|
60370
60522
|
}
|
|
60371
60523
|
getDimensionField() {
|
|
60372
|
-
if (this._direction ===
|
|
60524
|
+
if (this._direction === "vertical") {
|
|
60373
60525
|
return this._specXField;
|
|
60374
60526
|
}
|
|
60375
60527
|
return this._specYField;
|
|
60376
60528
|
}
|
|
60377
60529
|
getMeasureField() {
|
|
60378
|
-
if (this._direction ===
|
|
60530
|
+
if (this._direction === "vertical") {
|
|
60379
60531
|
return this._specYField;
|
|
60380
60532
|
}
|
|
60381
60533
|
return this._specXField;
|
|
@@ -60389,7 +60541,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60389
60541
|
_sortDataInAxisDomain() {
|
|
60390
60542
|
var _a, _b, _c;
|
|
60391
60543
|
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 ===
|
|
60544
|
+
sortDataInAxisHelper(this._direction === "horizontal" ? this._yAxisHelper : this._xAxisHelper, this._direction === "horizontal" ? this._fieldY[0] : this._fieldX[0], this.getViewData().latestData);
|
|
60393
60545
|
(_c = this._data) === null || _c === void 0 ? void 0 : _c.updateData(true);
|
|
60394
60546
|
}
|
|
60395
60547
|
}
|
|
@@ -60404,6 +60556,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60404
60556
|
}
|
|
60405
60557
|
}
|
|
60406
60558
|
|
|
60559
|
+
const DEFAULT_SMOOTH_INTERPOLATE = 'monotone';
|
|
60560
|
+
const DEFAULT_LINEAR_INTERPOLATE = 'linear';
|
|
60561
|
+
|
|
60562
|
+
const DEFAULT_CLOSE_STROKE_JOIN = 'bevel';
|
|
60563
|
+
|
|
60407
60564
|
class LineLikeSeriesMixin {
|
|
60408
60565
|
addSamplingCompile() {
|
|
60409
60566
|
if (this._spec.sampling) {
|
|
@@ -60413,9 +60570,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60413
60570
|
const fieldsX = this._fieldX;
|
|
60414
60571
|
samplingTrans.push({
|
|
60415
60572
|
type: 'sampling',
|
|
60416
|
-
size: this._direction ===
|
|
60573
|
+
size: this._direction === "vertical" ? width : height,
|
|
60417
60574
|
factor: this._spec.samplingFactor,
|
|
60418
|
-
yfield: this._direction ===
|
|
60575
|
+
yfield: this._direction === "vertical" ? fieldsY[0] : fieldsX[0],
|
|
60419
60576
|
groupBy: this._seriesField,
|
|
60420
60577
|
mode: this._spec.sampling
|
|
60421
60578
|
});
|
|
@@ -60428,7 +60585,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60428
60585
|
const overlapTrans = [];
|
|
60429
60586
|
overlapTrans.push({
|
|
60430
60587
|
type: 'markoverlap',
|
|
60431
|
-
direction: this._direction ===
|
|
60588
|
+
direction: this._direction === "horizontal" && this.coordinate === 'cartesian' ? 2 : 1,
|
|
60432
60589
|
delta: this._spec.pointDis,
|
|
60433
60590
|
deltaMul: this._spec.pointDisMul,
|
|
60434
60591
|
groupBy: this._seriesField
|
|
@@ -60478,7 +60635,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60478
60635
|
else {
|
|
60479
60636
|
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
60637
|
const curveType = userCurveType === DEFAULT_SMOOTH_INTERPOLATE
|
|
60481
|
-
? direction ===
|
|
60638
|
+
? direction === "vertical"
|
|
60482
60639
|
? 'monotoneX'
|
|
60483
60640
|
: 'monotoneY'
|
|
60484
60641
|
: userCurveType;
|
|
@@ -60536,7 +60693,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60536
60693
|
if (this._spec.activePoint === true) {
|
|
60537
60694
|
const activeData = new DataView(this._option.dataSet, { name: `${PREFIX}_series_${this.id}_active_point` });
|
|
60538
60695
|
activeData.parse([]);
|
|
60539
|
-
this._symbolActiveMark = this._createMark({ name: `active_point`, type:
|
|
60696
|
+
this._symbolActiveMark = this._createMark({ name: `active_point`, type: "symbol" }, {
|
|
60540
60697
|
morph: false,
|
|
60541
60698
|
groupKey: this._seriesField,
|
|
60542
60699
|
isSeriesMark: false,
|
|
@@ -60740,7 +60897,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60740
60897
|
return ['fill', 'fillOpacity'];
|
|
60741
60898
|
}
|
|
60742
60899
|
}
|
|
60743
|
-
LineMark.type =
|
|
60900
|
+
LineMark.type = "line";
|
|
60744
60901
|
const registerLineMark = () => {
|
|
60745
60902
|
Factory.registerMark(LineMark.type, LineMark);
|
|
60746
60903
|
registerLineGraphic();
|
|
@@ -60749,7 +60906,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60749
60906
|
|
|
60750
60907
|
class BaseSymbolMark extends BaseMark {
|
|
60751
60908
|
_getDefaultStyle() {
|
|
60752
|
-
const defaultStyle = Object.assign(Object.assign({}, super._getDefaultStyle()), { size: 1, symbolType:
|
|
60909
|
+
const defaultStyle = Object.assign(Object.assign({}, super._getDefaultStyle()), { size: 1, symbolType: 'circle', fill: undefined, lineWidth: 0 });
|
|
60753
60910
|
return defaultStyle;
|
|
60754
60911
|
}
|
|
60755
60912
|
}
|
|
@@ -60759,7 +60916,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60759
60916
|
this.type = SymbolMark.type;
|
|
60760
60917
|
}
|
|
60761
60918
|
}
|
|
60762
|
-
SymbolMark.type =
|
|
60919
|
+
SymbolMark.type = "symbol";
|
|
60763
60920
|
const registerSymbolMark = () => {
|
|
60764
60921
|
Factory.registerMark(SymbolMark.type, SymbolMark);
|
|
60765
60922
|
registerSymbolGraphic();
|
|
@@ -60770,12 +60927,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60770
60927
|
var _a, _b, _c;
|
|
60771
60928
|
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
60929
|
if (!isPointVisible) {
|
|
60773
|
-
this._addMarkLabelSpec(spec,
|
|
60930
|
+
this._addMarkLabelSpec(spec, "line");
|
|
60774
60931
|
}
|
|
60775
60932
|
else {
|
|
60776
|
-
this._addMarkLabelSpec(spec,
|
|
60933
|
+
this._addMarkLabelSpec(spec, "point");
|
|
60777
60934
|
}
|
|
60778
|
-
this._addMarkLabelSpec(spec,
|
|
60935
|
+
this._addMarkLabelSpec(spec, "line", 'lineLabel', 'initLineLabelMarkStyle', undefined, true);
|
|
60779
60936
|
}
|
|
60780
60937
|
}
|
|
60781
60938
|
|
|
@@ -60816,10 +60973,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
60816
60973
|
var _a, _b, _c, _d;
|
|
60817
60974
|
const lineAnimationParams = { direction: this.direction };
|
|
60818
60975
|
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(
|
|
60976
|
+
this._lineMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('line')) === null || _c === void 0 ? void 0 : _c(lineAnimationParams, appearPreset), userAnimationConfig("line", this._spec, this._markAttributeContext)));
|
|
60820
60977
|
if (this._symbolMark) {
|
|
60821
60978
|
const animationParams = getGroupAnimationParams(this);
|
|
60822
|
-
this._symbolMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('scaleInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig(
|
|
60979
|
+
this._symbolMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('scaleInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("point", this._spec, this._markAttributeContext), animationParams));
|
|
60823
60980
|
}
|
|
60824
60981
|
}
|
|
60825
60982
|
onLayoutEnd(ctx) {
|
|
@@ -61500,7 +61657,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
61500
61657
|
_createBackground() {
|
|
61501
61658
|
const backgroundStyle = convertBackgroundSpec(this._spec.background);
|
|
61502
61659
|
if (backgroundStyle) {
|
|
61503
|
-
this._backgroundMark = Factory.createMark(
|
|
61660
|
+
this._backgroundMark = Factory.createMark("group", 'chart-background', {
|
|
61504
61661
|
model: this,
|
|
61505
61662
|
map: this._option.map,
|
|
61506
61663
|
getCompiler: this.getCompiler,
|
|
@@ -62474,12 +62631,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62474
62631
|
constructor() {
|
|
62475
62632
|
super(...arguments);
|
|
62476
62633
|
this.transformerConstructor = LineChartSpecTransformer;
|
|
62477
|
-
this.type =
|
|
62634
|
+
this.type = "line";
|
|
62478
62635
|
this.seriesType = exports.SeriesTypeEnum.line;
|
|
62479
62636
|
this._canStack = true;
|
|
62480
62637
|
}
|
|
62481
62638
|
}
|
|
62482
|
-
LineChart.type =
|
|
62639
|
+
LineChart.type = "line";
|
|
62483
62640
|
LineChart.seriesType = exports.SeriesTypeEnum.line;
|
|
62484
62641
|
LineChart.view = 'singleDefault';
|
|
62485
62642
|
LineChart.transformerConstructor = LineChartSpecTransformer;
|
|
@@ -62501,7 +62658,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62501
62658
|
return [];
|
|
62502
62659
|
}
|
|
62503
62660
|
}
|
|
62504
|
-
AreaMark.type =
|
|
62661
|
+
AreaMark.type = "area";
|
|
62505
62662
|
const registerAreaMark = () => {
|
|
62506
62663
|
Factory.registerMark(AreaMark.type, AreaMark);
|
|
62507
62664
|
registerAreaGraphic();
|
|
@@ -62537,9 +62694,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62537
62694
|
};
|
|
62538
62695
|
const Appear_Grow$5 = (params) => {
|
|
62539
62696
|
return {
|
|
62540
|
-
type: params.direction ===
|
|
62697
|
+
type: params.direction === "horizontal" ? 'growPointsXIn' : 'growPointsYIn',
|
|
62541
62698
|
options: {
|
|
62542
|
-
orient: params.direction ===
|
|
62699
|
+
orient: params.direction === "horizontal" ? 'positive' : 'negative'
|
|
62543
62700
|
}
|
|
62544
62701
|
};
|
|
62545
62702
|
};
|
|
@@ -62576,10 +62733,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62576
62733
|
_transformLabelSpec(spec) {
|
|
62577
62734
|
var _a, _b, _c;
|
|
62578
62735
|
super._transformLabelSpec(spec);
|
|
62579
|
-
this._addMarkLabelSpec(spec,
|
|
62736
|
+
this._addMarkLabelSpec(spec, "area", 'areaLabel', 'initLineLabelMarkStyle', undefined, true);
|
|
62580
62737
|
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
62738
|
if (!isPointVisible) {
|
|
62582
|
-
this._addMarkLabelSpec(spec,
|
|
62739
|
+
this._addMarkLabelSpec(spec, "area");
|
|
62583
62740
|
}
|
|
62584
62741
|
}
|
|
62585
62742
|
_transformSpecAfterMergingTheme(spec, chartSpec, chartSpecInfo) {
|
|
@@ -62656,13 +62813,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62656
62813
|
var _a, _b, _c, _d, _e;
|
|
62657
62814
|
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
62815
|
const curveType = userCurveType === DEFAULT_SMOOTH_INTERPOLATE
|
|
62659
|
-
? this._direction ===
|
|
62816
|
+
? this._direction === "vertical"
|
|
62660
62817
|
? 'monotoneX'
|
|
62661
62818
|
: 'monotoneY'
|
|
62662
62819
|
: userCurveType;
|
|
62663
62820
|
const areaMark = this._areaMark;
|
|
62664
62821
|
if (areaMark) {
|
|
62665
|
-
if (this._direction ===
|
|
62822
|
+
if (this._direction === "vertical") {
|
|
62666
62823
|
this.setMarkStyle(this._areaMark, {
|
|
62667
62824
|
x: this.dataToPositionX.bind(this),
|
|
62668
62825
|
y1: (datum) => {
|
|
@@ -62715,14 +62872,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62715
62872
|
const areaAnimationParams = { direction: this.direction };
|
|
62716
62873
|
const appearPreset = (_a = this._spec.animationAppear) === null || _a === void 0 ? void 0 : _a.preset;
|
|
62717
62874
|
if (this._lineMark) {
|
|
62718
|
-
this._lineMark.setAnimationConfig(animationConfig((_b = Factory.getAnimationInKey('line')) === null || _b === void 0 ? void 0 : _b(areaAnimationParams, appearPreset), userAnimationConfig(
|
|
62875
|
+
this._lineMark.setAnimationConfig(animationConfig((_b = Factory.getAnimationInKey('line')) === null || _b === void 0 ? void 0 : _b(areaAnimationParams, appearPreset), userAnimationConfig("line", this._spec, this._markAttributeContext)));
|
|
62719
62876
|
}
|
|
62720
62877
|
if (this._areaMark) {
|
|
62721
|
-
this._areaMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('area')) === null || _c === void 0 ? void 0 : _c(areaAnimationParams, appearPreset), userAnimationConfig(
|
|
62878
|
+
this._areaMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('area')) === null || _c === void 0 ? void 0 : _c(areaAnimationParams, appearPreset), userAnimationConfig("area", this._spec, this._markAttributeContext)));
|
|
62722
62879
|
}
|
|
62723
62880
|
if (this._symbolMark) {
|
|
62724
62881
|
const animationParams = getGroupAnimationParams(this);
|
|
62725
|
-
this._symbolMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('scaleInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig(
|
|
62882
|
+
this._symbolMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('scaleInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("point", this._spec, this._markAttributeContext), animationParams));
|
|
62726
62883
|
}
|
|
62727
62884
|
}
|
|
62728
62885
|
initTooltip() {
|
|
@@ -62795,12 +62952,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62795
62952
|
constructor() {
|
|
62796
62953
|
super(...arguments);
|
|
62797
62954
|
this.transformerConstructor = AreaChartSpecTransformer;
|
|
62798
|
-
this.type =
|
|
62955
|
+
this.type = "area";
|
|
62799
62956
|
this.seriesType = exports.SeriesTypeEnum.area;
|
|
62800
62957
|
this._canStack = true;
|
|
62801
62958
|
}
|
|
62802
62959
|
}
|
|
62803
|
-
AreaChart.type =
|
|
62960
|
+
AreaChart.type = "area";
|
|
62804
62961
|
AreaChart.seriesType = exports.SeriesTypeEnum.area;
|
|
62805
62962
|
AreaChart.view = 'singleDefault';
|
|
62806
62963
|
AreaChart.transformerConstructor = AreaChartSpecTransformer;
|
|
@@ -62827,13 +62984,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62827
62984
|
}
|
|
62828
62985
|
const barGrowIn = (params, isOverall = true) => {
|
|
62829
62986
|
return {
|
|
62830
|
-
type: params.direction ===
|
|
62987
|
+
type: params.direction === "horizontal" ? 'growWidthIn' : 'growHeightIn',
|
|
62831
62988
|
options: barGrowOption(params, isOverall)
|
|
62832
62989
|
};
|
|
62833
62990
|
};
|
|
62834
62991
|
const barGrowOut = (params, isOverall = true) => {
|
|
62835
62992
|
return {
|
|
62836
|
-
type: params.direction ===
|
|
62993
|
+
type: params.direction === "horizontal" ? 'growWidthOut' : 'growHeightOut',
|
|
62837
62994
|
options: barGrowOption(params, isOverall)
|
|
62838
62995
|
};
|
|
62839
62996
|
};
|
|
@@ -62887,7 +63044,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62887
63044
|
return defaultStyle;
|
|
62888
63045
|
}
|
|
62889
63046
|
}
|
|
62890
|
-
RectMark.type =
|
|
63047
|
+
RectMark.type = "rect";
|
|
62891
63048
|
const registerRectMark = () => {
|
|
62892
63049
|
Factory.registerMark(RectMark.type, RectMark);
|
|
62893
63050
|
registerRectGraphic();
|
|
@@ -62938,7 +63095,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62938
63095
|
|
|
62939
63096
|
class BarSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
62940
63097
|
_transformLabelSpec(spec) {
|
|
62941
|
-
this._addMarkLabelSpec(spec,
|
|
63098
|
+
this._addMarkLabelSpec(spec, "bar");
|
|
62942
63099
|
}
|
|
62943
63100
|
}
|
|
62944
63101
|
|
|
@@ -62947,8 +63104,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
62947
63104
|
constructor() {
|
|
62948
63105
|
super(...arguments);
|
|
62949
63106
|
this.type = exports.SeriesTypeEnum.bar;
|
|
62950
|
-
this._barMarkName =
|
|
62951
|
-
this._barMarkType =
|
|
63107
|
+
this._barMarkName = "bar";
|
|
63108
|
+
this._barMarkType = "rect";
|
|
62952
63109
|
this.transformerConstructor = BarSeriesSpecTransformer;
|
|
62953
63110
|
this._supportStack = true;
|
|
62954
63111
|
this._bandPosition = 0;
|
|
@@ -63153,7 +63310,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63153
63310
|
var _a, _b, _c, _d;
|
|
63154
63311
|
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
63312
|
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 ===
|
|
63313
|
+
if (this.direction === "horizontal") {
|
|
63157
63314
|
this.setMarkStyle(this._barMark, {
|
|
63158
63315
|
x: (datum) => {
|
|
63159
63316
|
if (this._shouldDoPreCalculate()) {
|
|
@@ -63210,7 +63367,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63210
63367
|
}
|
|
63211
63368
|
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
63369
|
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 ===
|
|
63370
|
+
if (this.direction === "horizontal") {
|
|
63214
63371
|
this.setMarkStyle(this._barBackgroundMark, {
|
|
63215
63372
|
x: () => {
|
|
63216
63373
|
const range = xScale.range();
|
|
@@ -63249,7 +63406,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63249
63406
|
var _a, _b, _c, _d;
|
|
63250
63407
|
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
63408
|
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 ===
|
|
63409
|
+
if (this.direction === "vertical") {
|
|
63253
63410
|
this.setMarkStyle(this._barMark, {
|
|
63254
63411
|
x: (datum) => valueInScaleRange(this.dataToPositionX(datum), xScale),
|
|
63255
63412
|
x1: (datum) => valueInScaleRange(this.dataToPositionX1(datum), xScale),
|
|
@@ -63336,7 +63493,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63336
63493
|
let axisHelper;
|
|
63337
63494
|
let sizeAttribute;
|
|
63338
63495
|
let dataToPosition;
|
|
63339
|
-
if (direction ===
|
|
63496
|
+
if (direction === "horizontal") {
|
|
63340
63497
|
axisHelper = this.getYAxisHelper();
|
|
63341
63498
|
sizeAttribute = 'height';
|
|
63342
63499
|
dataToPosition = this.dataToPositionY.bind(this);
|
|
@@ -63393,9 +63550,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63393
63550
|
const fieldsX = this._fieldX;
|
|
63394
63551
|
samplingTrans.push({
|
|
63395
63552
|
type: 'sampling',
|
|
63396
|
-
size: this._direction ===
|
|
63553
|
+
size: this._direction === "vertical" ? width : height,
|
|
63397
63554
|
factor: this._spec.samplingFactor,
|
|
63398
|
-
yfield: this._direction ===
|
|
63555
|
+
yfield: this._direction === "vertical" ? fieldsY[0] : fieldsX[0],
|
|
63399
63556
|
groupBy: this._seriesField,
|
|
63400
63557
|
mode: this._spec.sampling
|
|
63401
63558
|
});
|
|
@@ -63455,12 +63612,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63455
63612
|
constructor() {
|
|
63456
63613
|
super(...arguments);
|
|
63457
63614
|
this.transformerConstructor = BarChartSpecTransformer;
|
|
63458
|
-
this.type =
|
|
63615
|
+
this.type = "bar";
|
|
63459
63616
|
this.seriesType = exports.SeriesTypeEnum.bar;
|
|
63460
63617
|
this._canStack = true;
|
|
63461
63618
|
}
|
|
63462
63619
|
}
|
|
63463
|
-
BarChart.type =
|
|
63620
|
+
BarChart.type = "bar";
|
|
63464
63621
|
BarChart.seriesType = exports.SeriesTypeEnum.bar;
|
|
63465
63622
|
BarChart.view = 'singleDefault';
|
|
63466
63623
|
BarChart.transformerConstructor = BarChartSpecTransformer;
|
|
@@ -63479,7 +63636,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63479
63636
|
return defaultStyle;
|
|
63480
63637
|
}
|
|
63481
63638
|
}
|
|
63482
|
-
Rect3dMark.type =
|
|
63639
|
+
Rect3dMark.type = "rect3d";
|
|
63483
63640
|
const registerRect3dMark = () => {
|
|
63484
63641
|
Factory.registerMark(Rect3dMark.type, Rect3dMark);
|
|
63485
63642
|
registerRect3dGraphic();
|
|
@@ -63490,8 +63647,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63490
63647
|
constructor() {
|
|
63491
63648
|
super(...arguments);
|
|
63492
63649
|
this.type = exports.SeriesTypeEnum.bar3d;
|
|
63493
|
-
this._barMarkName =
|
|
63494
|
-
this._barMarkType =
|
|
63650
|
+
this._barMarkName = "bar3d";
|
|
63651
|
+
this._barMarkType = "rect3d";
|
|
63495
63652
|
}
|
|
63496
63653
|
}
|
|
63497
63654
|
Bar3dSeries.type = exports.SeriesTypeEnum.bar3d;
|
|
@@ -63512,11 +63669,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63512
63669
|
constructor() {
|
|
63513
63670
|
super(...arguments);
|
|
63514
63671
|
this.transformerConstructor = Bar3dChartSpecTransformer;
|
|
63515
|
-
this.type =
|
|
63672
|
+
this.type = "bar3d";
|
|
63516
63673
|
this.seriesType = exports.SeriesTypeEnum.bar3d;
|
|
63517
63674
|
}
|
|
63518
63675
|
}
|
|
63519
|
-
Bar3dChart.type =
|
|
63676
|
+
Bar3dChart.type = "bar3d";
|
|
63520
63677
|
Bar3dChart.seriesType = exports.SeriesTypeEnum.bar3d;
|
|
63521
63678
|
Bar3dChart.view = 'singleDefault';
|
|
63522
63679
|
Bar3dChart.transformerConstructor = Bar3dChartSpecTransformer;
|
|
@@ -63557,7 +63714,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63557
63714
|
|
|
63558
63715
|
class ScatterSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
63559
63716
|
_transformLabelSpec(spec) {
|
|
63560
|
-
this._addMarkLabelSpec(spec,
|
|
63717
|
+
this._addMarkLabelSpec(spec, "point");
|
|
63561
63718
|
}
|
|
63562
63719
|
}
|
|
63563
63720
|
|
|
@@ -63678,7 +63835,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63678
63835
|
var _a, _b, _c;
|
|
63679
63836
|
const animationParams = getGroupAnimationParams(this);
|
|
63680
63837
|
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(
|
|
63838
|
+
this._symbolMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('scatter')) === null || _c === void 0 ? void 0 : _c({}, appearPreset), userAnimationConfig("point", this._spec, this._markAttributeContext), animationParams));
|
|
63682
63839
|
}
|
|
63683
63840
|
initSymbolMarkStyle() {
|
|
63684
63841
|
const symbolMark = this._symbolMark;
|
|
@@ -63813,12 +63970,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
63813
63970
|
constructor() {
|
|
63814
63971
|
super(...arguments);
|
|
63815
63972
|
this.transformerConstructor = ScatterChartSpecTransformer;
|
|
63816
|
-
this.type =
|
|
63973
|
+
this.type = "scatter";
|
|
63817
63974
|
this.seriesType = exports.SeriesTypeEnum.scatter;
|
|
63818
63975
|
this._canStack = true;
|
|
63819
63976
|
}
|
|
63820
63977
|
}
|
|
63821
|
-
ScatterChart.type =
|
|
63978
|
+
ScatterChart.type = "scatter";
|
|
63822
63979
|
ScatterChart.seriesType = exports.SeriesTypeEnum.scatter;
|
|
63823
63980
|
ScatterChart.view = 'singleDefault';
|
|
63824
63981
|
ScatterChart.transformerConstructor = ScatterChartSpecTransformer;
|
|
@@ -64199,7 +64356,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64199
64356
|
return defaultStyle;
|
|
64200
64357
|
}
|
|
64201
64358
|
}
|
|
64202
|
-
PathMark.type =
|
|
64359
|
+
PathMark.type = "path";
|
|
64203
64360
|
const registerPathMark = () => {
|
|
64204
64361
|
Factory.registerMark(PathMark.type, PathMark);
|
|
64205
64362
|
registerPathGraphic();
|
|
@@ -64499,8 +64656,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64499
64656
|
const theme = getComponentThemeFromOption(type, chartTheme);
|
|
64500
64657
|
const directionTheme = theme[getDirectionByOrient(orient)];
|
|
64501
64658
|
const finalTheme = mergeSpec({}, theme, directionTheme);
|
|
64502
|
-
delete finalTheme[
|
|
64503
|
-
delete finalTheme[
|
|
64659
|
+
delete finalTheme["horizontal"];
|
|
64660
|
+
delete finalTheme["vertical"];
|
|
64504
64661
|
return finalTheme;
|
|
64505
64662
|
};
|
|
64506
64663
|
|
|
@@ -64812,10 +64969,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64812
64969
|
this._isGestureListener = isMobileLikeMode(this._renderMode) || isMiniAppLikeMode(this._renderMode);
|
|
64813
64970
|
if (getDefaultTriggerEventByMode(this._renderMode)) {
|
|
64814
64971
|
this._clickEnable = true;
|
|
64815
|
-
this._zoomableTrigger = new (this.
|
|
64972
|
+
this._zoomableTrigger = new (this._getZoomTriggerEvent('trigger'))();
|
|
64816
64973
|
}
|
|
64817
64974
|
}
|
|
64818
|
-
|
|
64975
|
+
_getZoomTriggerEvent(type) {
|
|
64819
64976
|
return getDefaultTriggerEventByMode(this._renderMode)[type];
|
|
64820
64977
|
}
|
|
64821
64978
|
_zoomEventDispatch(params, regionOrSeries, callback) {
|
|
@@ -64862,11 +65019,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64862
65019
|
const delayTime = (_b = option === null || option === void 0 ? void 0 : option.delayTime) !== null && _b !== void 0 ? _b : 0;
|
|
64863
65020
|
const event = this._isGestureListener ? this._gestureController : eventObj;
|
|
64864
65021
|
const zoomParams = this._isGestureListener
|
|
64865
|
-
? [this.
|
|
64866
|
-
: [this.
|
|
65022
|
+
? [this._getZoomTriggerEvent('zoom')]
|
|
65023
|
+
: [this._getZoomTriggerEvent('zoom'), { level: exports.Event_Bubble_Level.chart, consume: true }];
|
|
64867
65024
|
const zoomEndParams = this._isGestureListener
|
|
64868
|
-
? [this.
|
|
64869
|
-
: [this.
|
|
65025
|
+
? [this._getZoomTriggerEvent('zoomEnd')]
|
|
65026
|
+
: [this._getZoomTriggerEvent('zoomEnd'), { level: exports.Event_Bubble_Level.chart, consume: false }];
|
|
64870
65027
|
event.on(...zoomEndParams, delayMap[delayType]((params) => {
|
|
64871
65028
|
this._zoomableTrigger.clearZoom();
|
|
64872
65029
|
}, delayTime));
|
|
@@ -64935,11 +65092,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64935
65092
|
const delayTime = (_b = option === null || option === void 0 ? void 0 : option.delayTime) !== null && _b !== void 0 ? _b : 0;
|
|
64936
65093
|
const event = this._isGestureListener ? this._gestureController : eventObj;
|
|
64937
65094
|
const scrollParams = this._isGestureListener
|
|
64938
|
-
? [this.
|
|
64939
|
-
: [this.
|
|
65095
|
+
? [this._getZoomTriggerEvent('scroll')]
|
|
65096
|
+
: [this._getZoomTriggerEvent('scroll'), { level: exports.Event_Bubble_Level.chart, consume: true }];
|
|
64940
65097
|
const scrollEndParams = this._isGestureListener
|
|
64941
|
-
? [this.
|
|
64942
|
-
: [this.
|
|
65098
|
+
? [this._getZoomTriggerEvent('scrollEnd')]
|
|
65099
|
+
: [this._getZoomTriggerEvent('scrollEnd'), { level: exports.Event_Bubble_Level.chart, consume: false }];
|
|
64943
65100
|
event.on(...scrollEndParams, delayMap[delayType]((params) => {
|
|
64944
65101
|
this._zoomableTrigger.clearScroll();
|
|
64945
65102
|
}, delayTime));
|
|
@@ -64972,7 +65129,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64972
65129
|
}
|
|
64973
65130
|
}
|
|
64974
65131
|
_bindDragEventAsRegion(eventObj, regionOrSeries, callback, option) {
|
|
64975
|
-
eventObj.on(this.
|
|
65132
|
+
eventObj.on(this._getZoomTriggerEvent('start'), { level: exports.Event_Bubble_Level.chart }, (params) => {
|
|
64976
65133
|
if (!params.event) {
|
|
64977
65134
|
return;
|
|
64978
65135
|
}
|
|
@@ -64994,7 +65151,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
64994
65151
|
return;
|
|
64995
65152
|
}
|
|
64996
65153
|
if (getDefaultTriggerEventByMode(this._renderMode)) {
|
|
64997
|
-
s.event.on(this.
|
|
65154
|
+
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
65155
|
this._handleDrag(params, callback, option);
|
|
64999
65156
|
});
|
|
65000
65157
|
}
|
|
@@ -65008,7 +65165,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65008
65165
|
if (filter) {
|
|
65009
65166
|
r.getSeries().forEach(s => {
|
|
65010
65167
|
if (filter(s)) {
|
|
65011
|
-
s.event.on(this.
|
|
65168
|
+
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
65169
|
this._handleDrag(params, callback);
|
|
65013
65170
|
});
|
|
65014
65171
|
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 +65192,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65035
65192
|
const delayType = (_a = option === null || option === void 0 ? void 0 : option.delayType) !== null && _a !== void 0 ? _a : 'throttle';
|
|
65036
65193
|
const delayTime = (_b = option === null || option === void 0 ? void 0 : option.delayTime) !== null && _b !== void 0 ? _b : 0;
|
|
65037
65194
|
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.
|
|
65195
|
+
const move = this._getZoomTriggerEvent('move');
|
|
65196
|
+
const end = this._getZoomTriggerEvent('end');
|
|
65040
65197
|
const event = params.event;
|
|
65041
65198
|
let moveX = event.canvasX;
|
|
65042
65199
|
let moveY = event.canvasY;
|
|
@@ -65410,7 +65567,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65410
65567
|
|
|
65411
65568
|
class MapSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
65412
65569
|
_transformLabelSpec(spec) {
|
|
65413
|
-
this._addMarkLabelSpec(spec,
|
|
65570
|
+
this._addMarkLabelSpec(spec, "area", undefined, undefined, false);
|
|
65414
65571
|
}
|
|
65415
65572
|
}
|
|
65416
65573
|
|
|
@@ -65538,7 +65695,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65538
65695
|
}
|
|
65539
65696
|
initAnimation() {
|
|
65540
65697
|
var _a;
|
|
65541
|
-
this._pathMark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('fadeInOut')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig(
|
|
65698
|
+
this._pathMark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('fadeInOut')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig("area", this._spec, this._markAttributeContext)));
|
|
65542
65699
|
}
|
|
65543
65700
|
initTooltip() {
|
|
65544
65701
|
this._tooltipHelper = new MapSeriesTooltipHelper(this);
|
|
@@ -65824,7 +65981,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65824
65981
|
return defaultStyle;
|
|
65825
65982
|
}
|
|
65826
65983
|
}
|
|
65827
|
-
RuleMark.type =
|
|
65984
|
+
RuleMark.type = "rule";
|
|
65828
65985
|
const registerRuleMark = () => {
|
|
65829
65986
|
Factory.registerMark(RuleMark.type, RuleMark);
|
|
65830
65987
|
registerRuleGraphic();
|
|
@@ -65918,8 +66075,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
65918
66075
|
|
|
65919
66076
|
class WaterfallSeriesSpecTransformer extends BarSeriesSpecTransformer {
|
|
65920
66077
|
_transformLabelSpec(spec) {
|
|
65921
|
-
this._addMarkLabelSpec(spec,
|
|
65922
|
-
this._addMarkLabelSpec(spec,
|
|
66078
|
+
this._addMarkLabelSpec(spec, "bar");
|
|
66079
|
+
this._addMarkLabelSpec(spec, "bar", 'stackLabel');
|
|
65923
66080
|
}
|
|
65924
66081
|
}
|
|
65925
66082
|
|
|
@@ -66014,9 +66171,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66014
66171
|
};
|
|
66015
66172
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
66016
66173
|
const animationParams = getGroupAnimationParams(this);
|
|
66017
|
-
this._barMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('waterfall')) === null || _c === void 0 ? void 0 : _c(waterfallAnimationParams, appearPreset), userAnimationConfig(
|
|
66174
|
+
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
66175
|
if (this._leaderLineMark) {
|
|
66019
|
-
this._leaderLineMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig(
|
|
66176
|
+
this._leaderLineMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("leaderLine", this._spec, this._markAttributeContext)));
|
|
66020
66177
|
}
|
|
66021
66178
|
}
|
|
66022
66179
|
viewDataUpdate(d) {
|
|
@@ -66067,7 +66224,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66067
66224
|
}
|
|
66068
66225
|
totalPositionX(datum, field, pos = 0.5) {
|
|
66069
66226
|
const { dataToPosition, getBandwidth } = this._xAxisHelper;
|
|
66070
|
-
if (this._direction ===
|
|
66227
|
+
if (this._direction === "vertical") {
|
|
66071
66228
|
return (dataToPosition([datum[field]], {
|
|
66072
66229
|
bandPosition: this._bandPosition
|
|
66073
66230
|
}) +
|
|
@@ -66080,7 +66237,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66080
66237
|
}
|
|
66081
66238
|
totalPositionY(datum, field, pos = 0.5) {
|
|
66082
66239
|
const { dataToPosition, getBandwidth } = this._yAxisHelper;
|
|
66083
|
-
if (this._direction ===
|
|
66240
|
+
if (this._direction === "vertical") {
|
|
66084
66241
|
return valueInScaleRange(dataToPosition([datum[field]], {
|
|
66085
66242
|
bandPosition: this._bandPosition
|
|
66086
66243
|
}));
|
|
@@ -66094,7 +66251,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66094
66251
|
initMarkStyle() {
|
|
66095
66252
|
super.initMarkStyle();
|
|
66096
66253
|
if (this._leaderLineMark) {
|
|
66097
|
-
if (this._direction ===
|
|
66254
|
+
if (this._direction === "vertical") {
|
|
66098
66255
|
this.setMarkStyle(this._leaderLineMark, {
|
|
66099
66256
|
visible: (datum) => !isNil$1(datum.lastIndex),
|
|
66100
66257
|
x: (datum) => {
|
|
@@ -66368,7 +66525,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66368
66525
|
this._compiledProductId = id;
|
|
66369
66526
|
}
|
|
66370
66527
|
}
|
|
66371
|
-
BoxPlotMark.type =
|
|
66528
|
+
BoxPlotMark.type = "boxPlot";
|
|
66372
66529
|
const registerBoxPlotMark = () => {
|
|
66373
66530
|
Factory.registerMark(BoxPlotMark.type, BoxPlotMark);
|
|
66374
66531
|
registerBoxplotGlyph();
|
|
@@ -66466,7 +66623,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66466
66623
|
minMaxFillOpacity: this._shaftFillOpacity,
|
|
66467
66624
|
stroke: (_b = this._strokeColor) !== null && _b !== void 0 ? _b : (this._shaftShape === 'line' ? this.getColorAttribute() : DEFAULT_STROKE_COLOR)
|
|
66468
66625
|
};
|
|
66469
|
-
const boxPlotMarkStyles = this._direction ===
|
|
66626
|
+
const boxPlotMarkStyles = this._direction === "vertical"
|
|
66470
66627
|
? 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
66628
|
this.setMarkStyle(boxPlotMark, boxPlotMarkStyles, STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
66472
66629
|
this._trigger.registerMark(boxPlotMark);
|
|
@@ -66484,7 +66641,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66484
66641
|
initBoxPlotMarkStyle() {
|
|
66485
66642
|
var _a, _b;
|
|
66486
66643
|
const boxPlotMark = this._boxPlotMark;
|
|
66487
|
-
const axisHelper = this._direction ===
|
|
66644
|
+
const axisHelper = this._direction === "vertical" ? this._yAxisHelper : this._xAxisHelper;
|
|
66488
66645
|
if (boxPlotMark && axisHelper) {
|
|
66489
66646
|
const { dataToPosition } = axisHelper;
|
|
66490
66647
|
const scale = (_a = axisHelper === null || axisHelper === void 0 ? void 0 : axisHelper.getScale) === null || _a === void 0 ? void 0 : _a.call(axisHelper, 0);
|
|
@@ -66510,7 +66667,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66510
66667
|
if (outlierMark && axisHelper) {
|
|
66511
66668
|
const { dataToPosition } = axisHelper;
|
|
66512
66669
|
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 ===
|
|
66670
|
+
const outlierMarkPositionChannel = this._direction === "vertical"
|
|
66514
66671
|
? {
|
|
66515
66672
|
x: this.dataToPositionX.bind(this),
|
|
66516
66673
|
y: (datum) => valueInScaleRange(dataToPosition(this.getDatumPositionValues(datum, BOX_PLOT_OUTLIER_VALUE_FIELD), {
|
|
@@ -66541,7 +66698,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66541
66698
|
outlierDataView.transform({
|
|
66542
66699
|
type: 'foldOutlierData',
|
|
66543
66700
|
options: {
|
|
66544
|
-
dimensionField: this._direction ===
|
|
66701
|
+
dimensionField: this._direction === "vertical" ? this._fieldX : this._fieldY,
|
|
66545
66702
|
outliersField: this._outliersField
|
|
66546
66703
|
}
|
|
66547
66704
|
});
|
|
@@ -66562,8 +66719,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66562
66719
|
if (this._autoBoxWidth) {
|
|
66563
66720
|
return this._autoBoxWidth;
|
|
66564
66721
|
}
|
|
66565
|
-
const bandAxisHelper = this._direction ===
|
|
66566
|
-
const xField = this._direction ===
|
|
66722
|
+
const bandAxisHelper = this._direction === "vertical" ? this._xAxisHelper : this._yAxisHelper;
|
|
66723
|
+
const xField = this._direction === "vertical" ? this._fieldX : this._fieldY;
|
|
66567
66724
|
const innerBandWidth = bandAxisHelper.getBandwidth(xField.length - 1);
|
|
66568
66725
|
const autoBoxWidth = innerBandWidth / xField.length;
|
|
66569
66726
|
this._autoBoxWidth = autoBoxWidth;
|
|
@@ -66590,7 +66747,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66590
66747
|
const animationParams = getGroupAnimationParams(this);
|
|
66591
66748
|
if (this._boxPlotMark) {
|
|
66592
66749
|
const newDefaultConfig = this._initAnimationSpec((_a = Factory.getAnimationInKey('scaleInOut')) === null || _a === void 0 ? void 0 : _a());
|
|
66593
|
-
const newConfig = this._initAnimationSpec(userAnimationConfig(
|
|
66750
|
+
const newConfig = this._initAnimationSpec(userAnimationConfig("boxPlot", this._spec, this._markAttributeContext));
|
|
66594
66751
|
this._boxPlotMark.setAnimationConfig(animationConfig(newDefaultConfig, newConfig, animationParams));
|
|
66595
66752
|
}
|
|
66596
66753
|
if (this._outlierMark) {
|
|
@@ -66658,7 +66815,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66658
66815
|
this._compiledProductId = id;
|
|
66659
66816
|
}
|
|
66660
66817
|
}
|
|
66661
|
-
TextMark.type =
|
|
66818
|
+
TextMark.type = "text";
|
|
66662
66819
|
const registerTextMark = () => {
|
|
66663
66820
|
Factory.registerMark(TextMark.type, TextMark);
|
|
66664
66821
|
registerTextGraphic();
|
|
@@ -66669,7 +66826,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66669
66826
|
component.setMarkStyle(labelMark, {
|
|
66670
66827
|
textAlign: (datum) => {
|
|
66671
66828
|
const d = direction();
|
|
66672
|
-
if (d ===
|
|
66829
|
+
if (d === "vertical") {
|
|
66673
66830
|
return 'center';
|
|
66674
66831
|
}
|
|
66675
66832
|
const _x = x(datum);
|
|
@@ -66703,7 +66860,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66703
66860
|
},
|
|
66704
66861
|
textBaseline: (datum) => {
|
|
66705
66862
|
const d = direction();
|
|
66706
|
-
if (d ===
|
|
66863
|
+
if (d === "horizontal") {
|
|
66707
66864
|
return 'middle';
|
|
66708
66865
|
}
|
|
66709
66866
|
const _y = y(datum);
|
|
@@ -66741,7 +66898,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66741
66898
|
const d = direction();
|
|
66742
66899
|
const _x = x(datum);
|
|
66743
66900
|
const _x1 = x1(datum);
|
|
66744
|
-
if (d ===
|
|
66901
|
+
if (d === "vertical") {
|
|
66745
66902
|
return (_x + _x1) / 2;
|
|
66746
66903
|
}
|
|
66747
66904
|
if (position === 'middle') {
|
|
@@ -66775,7 +66932,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66775
66932
|
const d = direction();
|
|
66776
66933
|
const _y = y(datum);
|
|
66777
66934
|
const _y1 = y1(datum);
|
|
66778
|
-
if (d ===
|
|
66935
|
+
if (d === "horizontal") {
|
|
66779
66936
|
return (_y + _y1) / 2;
|
|
66780
66937
|
}
|
|
66781
66938
|
if (position === 'middle') {
|
|
@@ -66821,7 +66978,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66821
66978
|
content: [
|
|
66822
66979
|
{
|
|
66823
66980
|
key: this.contentKeyCallback,
|
|
66824
|
-
value: (datum) => this.series.getSpec().direction ===
|
|
66981
|
+
value: (datum) => this.series.getSpec().direction === "horizontal"
|
|
66825
66982
|
? datum[this.series.getSpec().xField[0]] + '-' + datum[this.series.getSpec().xField[1]]
|
|
66826
66983
|
: datum[this.series.getSpec().yField[0]] + '-' + datum[this.series.getSpec().yField[1]],
|
|
66827
66984
|
hasShape: true,
|
|
@@ -66876,8 +67033,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66876
67033
|
_transformLabelSpec(spec) {
|
|
66877
67034
|
var _a;
|
|
66878
67035
|
const labelPosition = (_a = spec.label) === null || _a === void 0 ? void 0 : _a.position;
|
|
66879
|
-
if (labelPosition !==
|
|
66880
|
-
this._addMarkLabelSpec(spec,
|
|
67036
|
+
if (labelPosition !== "bothEnd") {
|
|
67037
|
+
this._addMarkLabelSpec(spec, "bar");
|
|
66881
67038
|
}
|
|
66882
67039
|
}
|
|
66883
67040
|
}
|
|
@@ -66886,7 +67043,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66886
67043
|
constructor() {
|
|
66887
67044
|
super(...arguments);
|
|
66888
67045
|
this.type = exports.SeriesTypeEnum.rangeColumn;
|
|
66889
|
-
this._barMarkType =
|
|
67046
|
+
this._barMarkType = "rect";
|
|
66890
67047
|
this._barName = exports.SeriesTypeEnum.bar;
|
|
66891
67048
|
this.transformerConstructor = RangeColumnSeriesSpecTransformer;
|
|
66892
67049
|
this._stack = false;
|
|
@@ -66902,7 +67059,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66902
67059
|
isSeriesMark: true,
|
|
66903
67060
|
customShape: (_b = this._spec.bar) === null || _b === void 0 ? void 0 : _b.customShape
|
|
66904
67061
|
});
|
|
66905
|
-
if (((_c = this._spec.label) === null || _c === void 0 ? void 0 : _c.visible) !== false && labelPosition ===
|
|
67062
|
+
if (((_c = this._spec.label) === null || _c === void 0 ? void 0 : _c.visible) !== false && labelPosition === "bothEnd") {
|
|
66906
67063
|
if (((_e = (_d = this._spec.label) === null || _d === void 0 ? void 0 : _d.minLabel) === null || _e === void 0 ? void 0 : _e.visible) !== false) {
|
|
66907
67064
|
this._minLabelMark = this._createMark(RangeColumnSeries.mark.minLabel, {
|
|
66908
67065
|
markSpec: (_f = this._spec.label) === null || _f === void 0 ? void 0 : _f.minLabel
|
|
@@ -66924,7 +67081,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66924
67081
|
this.setMarkStyle(minLabelMark, {
|
|
66925
67082
|
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
67083
|
text: (datum) => {
|
|
66927
|
-
const min = this._spec.direction ===
|
|
67084
|
+
const min = this._spec.direction === "horizontal" ? datum[this._spec.xField[0]] : datum[this._spec.yField[0]];
|
|
66928
67085
|
if (minLabelSpec === null || minLabelSpec === void 0 ? void 0 : minLabelSpec.formatMethod) {
|
|
66929
67086
|
return minLabelSpec.formatMethod(min, datum);
|
|
66930
67087
|
}
|
|
@@ -66951,7 +67108,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66951
67108
|
this.setMarkStyle(maxLabelMark, {
|
|
66952
67109
|
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
67110
|
text: (datum) => {
|
|
66954
|
-
const max = this._spec.direction ===
|
|
67111
|
+
const max = this._spec.direction === "horizontal" ? datum[this._spec.xField[1]] : datum[this._spec.yField[1]];
|
|
66955
67112
|
if (maxLabelSpec === null || maxLabelSpec === void 0 ? void 0 : maxLabelSpec.formatMethod) {
|
|
66956
67113
|
return maxLabelSpec.formatMethod(max, datum);
|
|
66957
67114
|
}
|
|
@@ -66981,7 +67138,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
66981
67138
|
text: (datum) => {
|
|
66982
67139
|
let min;
|
|
66983
67140
|
let max;
|
|
66984
|
-
if (this._spec.direction ===
|
|
67141
|
+
if (this._spec.direction === "horizontal") {
|
|
66985
67142
|
min = datum[this._spec.xField[0]];
|
|
66986
67143
|
max = datum[this._spec.xField[1]];
|
|
66987
67144
|
}
|
|
@@ -67019,12 +67176,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67019
67176
|
var _a, _b, _c, _d, _e;
|
|
67020
67177
|
const animationParams = getGroupAnimationParams(this);
|
|
67021
67178
|
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(
|
|
67179
|
+
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
67180
|
if (this._minLabelMark) {
|
|
67024
|
-
this._minLabelMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig(
|
|
67181
|
+
this._minLabelMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("label", this._spec, this._markAttributeContext), animationParams));
|
|
67025
67182
|
}
|
|
67026
67183
|
if (this._maxLabelMark) {
|
|
67027
|
-
this._maxLabelMark.setAnimationConfig(animationConfig((_e = Factory.getAnimationInKey('fadeInOut')) === null || _e === void 0 ? void 0 : _e(), userAnimationConfig(
|
|
67184
|
+
this._maxLabelMark.setAnimationConfig(animationConfig((_e = Factory.getAnimationInKey('fadeInOut')) === null || _e === void 0 ? void 0 : _e(), userAnimationConfig("label", this._spec, this._markAttributeContext), animationParams));
|
|
67028
67185
|
}
|
|
67029
67186
|
}
|
|
67030
67187
|
initTooltip() {
|
|
@@ -67050,7 +67207,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67050
67207
|
constructor() {
|
|
67051
67208
|
super(...arguments);
|
|
67052
67209
|
this.type = exports.SeriesTypeEnum.rangeColumn3d;
|
|
67053
|
-
this._barMarkType =
|
|
67210
|
+
this._barMarkType = "rect3d";
|
|
67054
67211
|
this._barName = exports.SeriesTypeEnum.bar3d;
|
|
67055
67212
|
}
|
|
67056
67213
|
}
|
|
@@ -67098,7 +67255,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67098
67255
|
seriesId: series.id,
|
|
67099
67256
|
key: this.contentKeyCallback,
|
|
67100
67257
|
value: (datum) => {
|
|
67101
|
-
return this.series.getSpec().direction ===
|
|
67258
|
+
return this.series.getSpec().direction === "horizontal"
|
|
67102
67259
|
? datum[this.series.getSpec().xField[0]] + '-' + datum[this.series.getSpec().xField[1]]
|
|
67103
67260
|
: datum[this.series.getSpec().yField[0]] + '-' + datum[this.series.getSpec().yField[1]];
|
|
67104
67261
|
},
|
|
@@ -67139,13 +67296,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67139
67296
|
var _a, _b, _c, _d, _e;
|
|
67140
67297
|
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
67298
|
const curveType = userCurveType === DEFAULT_SMOOTH_INTERPOLATE
|
|
67142
|
-
? this._direction ===
|
|
67299
|
+
? this._direction === "vertical"
|
|
67143
67300
|
? 'monotoneX'
|
|
67144
67301
|
: 'monotoneY'
|
|
67145
67302
|
: userCurveType;
|
|
67146
67303
|
const areaMark = this._areaMark;
|
|
67147
67304
|
if (areaMark) {
|
|
67148
|
-
if (this._direction ===
|
|
67305
|
+
if (this._direction === "vertical") {
|
|
67149
67306
|
this.setMarkStyle(this._areaMark, {
|
|
67150
67307
|
x: this.dataToPositionX.bind(this),
|
|
67151
67308
|
y1: (datum) => {
|
|
@@ -67655,7 +67812,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67655
67812
|
this.type = ArcMark.type;
|
|
67656
67813
|
}
|
|
67657
67814
|
}
|
|
67658
|
-
ArcMark.type =
|
|
67815
|
+
ArcMark.type = "arc";
|
|
67659
67816
|
const registerArcMark = () => {
|
|
67660
67817
|
registerArcGraphic();
|
|
67661
67818
|
registerVGrammarArcAnimation();
|
|
@@ -67664,7 +67821,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67664
67821
|
|
|
67665
67822
|
class PieSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
67666
67823
|
_transformLabelSpec(spec) {
|
|
67667
|
-
this._addMarkLabelSpec(spec,
|
|
67824
|
+
this._addMarkLabelSpec(spec, "pie");
|
|
67668
67825
|
}
|
|
67669
67826
|
_mergeThemeToSpec(spec, chartSpec) {
|
|
67670
67827
|
const theme = this._theme;
|
|
@@ -67687,8 +67844,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67687
67844
|
constructor() {
|
|
67688
67845
|
super(...arguments);
|
|
67689
67846
|
this.transformerConstructor = PieSeriesSpecTransformer;
|
|
67690
|
-
this._pieMarkName =
|
|
67691
|
-
this._pieMarkType =
|
|
67847
|
+
this._pieMarkName = "pie";
|
|
67848
|
+
this._pieMarkType = "arc";
|
|
67692
67849
|
this._startAngle = POLAR_START_RADIAN;
|
|
67693
67850
|
this._endAngle = POLAR_END_RADIAN;
|
|
67694
67851
|
this._pieMark = null;
|
|
@@ -67980,7 +68137,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
67980
68137
|
};
|
|
67981
68138
|
const appearPreset = (_a = this._spec.animationAppear) === null || _a === void 0 ? void 0 : _a.preset;
|
|
67982
68139
|
if (this._pieMark) {
|
|
67983
|
-
const pieAnimationConfig = animationConfig((_b = Factory.getAnimationInKey('pie')) === null || _b === void 0 ? void 0 : _b(animationParams, appearPreset), userAnimationConfig(
|
|
68140
|
+
const pieAnimationConfig = animationConfig((_b = Factory.getAnimationInKey('pie')) === null || _b === void 0 ? void 0 : _b(animationParams, appearPreset), userAnimationConfig("pie", this._spec, this._markAttributeContext));
|
|
67984
68141
|
if (pieAnimationConfig.normal && pieAnimationConfig.normal.type) {
|
|
67985
68142
|
pieAnimationConfig.normal = centerOffsetConfig(this._pieMark, pieAnimationConfig.normal);
|
|
67986
68143
|
}
|
|
@@ -68028,7 +68185,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68028
68185
|
this._support3d = true;
|
|
68029
68186
|
}
|
|
68030
68187
|
}
|
|
68031
|
-
Arc3dMark.type =
|
|
68188
|
+
Arc3dMark.type = "arc3d";
|
|
68032
68189
|
const registerArc3dMark = () => {
|
|
68033
68190
|
registerVGrammarArcAnimation();
|
|
68034
68191
|
registerArc3dGraphic();
|
|
@@ -68037,7 +68194,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68037
68194
|
|
|
68038
68195
|
class Pie3dSeriesSpecTransformer extends PieSeriesSpecTransformer {
|
|
68039
68196
|
_transformLabelSpec(spec) {
|
|
68040
|
-
this._addMarkLabelSpec(spec,
|
|
68197
|
+
this._addMarkLabelSpec(spec, "pie3d");
|
|
68041
68198
|
}
|
|
68042
68199
|
}
|
|
68043
68200
|
|
|
@@ -68045,8 +68202,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68045
68202
|
constructor() {
|
|
68046
68203
|
super(...arguments);
|
|
68047
68204
|
this.type = exports.SeriesTypeEnum.pie3d;
|
|
68048
|
-
this._pieMarkName =
|
|
68049
|
-
this._pieMarkType =
|
|
68205
|
+
this._pieMarkName = "pie3d";
|
|
68206
|
+
this._pieMarkType = "arc3d";
|
|
68050
68207
|
this.transformerConstructor = Pie3dSeriesSpecTransformer;
|
|
68051
68208
|
}
|
|
68052
68209
|
setAttrFromSpec() {
|
|
@@ -68196,7 +68353,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68196
68353
|
|
|
68197
68354
|
class RoseSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
68198
68355
|
_transformLabelSpec(spec) {
|
|
68199
|
-
this._addMarkLabelSpec(spec,
|
|
68356
|
+
this._addMarkLabelSpec(spec, "rose");
|
|
68200
68357
|
}
|
|
68201
68358
|
}
|
|
68202
68359
|
|
|
@@ -68302,7 +68459,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68302
68459
|
const animationParams = {
|
|
68303
68460
|
innerRadius: () => { var _a; return this._computeLayoutRadius() * ((_a = this._spec.innerRadius) !== null && _a !== void 0 ? _a : 0); }
|
|
68304
68461
|
};
|
|
68305
|
-
this._roseMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('rose')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig(
|
|
68462
|
+
this._roseMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('rose')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig("rose", this._spec, this._markAttributeContext)));
|
|
68306
68463
|
}
|
|
68307
68464
|
}
|
|
68308
68465
|
getDefaultShapeType() {
|
|
@@ -68612,7 +68769,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68612
68769
|
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
68770
|
if (appearPreset === 'clipIn') {
|
|
68614
68771
|
if (this._rootMark) {
|
|
68615
|
-
this._rootMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('radarGroup')) === null || _d === void 0 ? void 0 : _d(animationParams, appearPreset), userAnimationConfig(
|
|
68772
|
+
this._rootMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('radarGroup')) === null || _d === void 0 ? void 0 : _d(animationParams, appearPreset), userAnimationConfig("group", this._spec, this._markAttributeContext)));
|
|
68616
68773
|
}
|
|
68617
68774
|
}
|
|
68618
68775
|
const markAnimationMap = [
|
|
@@ -68847,7 +69004,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
68847
69004
|
setSeriesField(field) {
|
|
68848
69005
|
if (isValid$1(field)) {
|
|
68849
69006
|
this._seriesField = field;
|
|
68850
|
-
this.getMarksInType([
|
|
69007
|
+
this.getMarksInType(["line", "area"]).forEach(m => {
|
|
68851
69008
|
m.setFacet(this._seriesField);
|
|
68852
69009
|
});
|
|
68853
69010
|
}
|
|
@@ -69317,7 +69474,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
69317
69474
|
fillOpacity: this.dataToOpacity.bind(this),
|
|
69318
69475
|
size: arrowSize,
|
|
69319
69476
|
symbolType: (datum) => {
|
|
69320
|
-
return this.isPositionYFromHigher(datum) ?
|
|
69477
|
+
return this.isPositionYFromHigher(datum) ? 'triangleDown' : 'triangleUp';
|
|
69321
69478
|
}
|
|
69322
69479
|
}, 'normal', exports.AttributeLevel.Series);
|
|
69323
69480
|
this._trigger.registerMark(arrowMark);
|
|
@@ -69742,8 +69899,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
69742
69899
|
return style;
|
|
69743
69900
|
}
|
|
69744
69901
|
}
|
|
69745
|
-
ProgressArcMark.type =
|
|
69746
|
-
ProgressArcMark.constructorType =
|
|
69902
|
+
ProgressArcMark.type = "arc";
|
|
69903
|
+
ProgressArcMark.constructorType = "progressArc";
|
|
69747
69904
|
const registerProgressArcMark = () => {
|
|
69748
69905
|
registerArcGraphic();
|
|
69749
69906
|
registerVGrammarArcAnimation();
|
|
@@ -69898,8 +70055,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
69898
70055
|
initAnimation() {
|
|
69899
70056
|
var _a, _b, _c, _d;
|
|
69900
70057
|
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(
|
|
70058
|
+
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)));
|
|
70059
|
+
this._trackMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("track", this._spec, this._markAttributeContext)));
|
|
69903
70060
|
}
|
|
69904
70061
|
getActiveMarks() {
|
|
69905
70062
|
return [this._progressMark];
|
|
@@ -69929,13 +70086,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
69929
70086
|
}
|
|
69930
70087
|
const Appear_Grow$1 = (params) => {
|
|
69931
70088
|
return {
|
|
69932
|
-
type: params.direction ===
|
|
70089
|
+
type: params.direction === "horizontal" ? 'growWidthIn' : 'growHeightIn',
|
|
69933
70090
|
options: LinearProgressGrowOption(params)
|
|
69934
70091
|
};
|
|
69935
70092
|
};
|
|
69936
70093
|
const linearProgressDisappear = (params) => {
|
|
69937
70094
|
return {
|
|
69938
|
-
type: params.direction ===
|
|
70095
|
+
type: params.direction === "horizontal" ? 'growWidthOut' : 'growHeightOut',
|
|
69939
70096
|
options: LinearProgressGrowOption(params)
|
|
69940
70097
|
};
|
|
69941
70098
|
};
|
|
@@ -70146,8 +70303,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
70146
70303
|
direction: this.direction
|
|
70147
70304
|
};
|
|
70148
70305
|
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(
|
|
70306
|
+
this._progressMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('linearProgress')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig("progress", this._spec, this._markAttributeContext)));
|
|
70307
|
+
this._trackMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('fadeInOut')) === null || _d === void 0 ? void 0 : _d(), userAnimationConfig("track", this._spec, this._markAttributeContext)));
|
|
70151
70308
|
}
|
|
70152
70309
|
initTooltip() {
|
|
70153
70310
|
this._tooltipHelper = new LinearProgressSeriesTooltipHelper(this);
|
|
@@ -70310,7 +70467,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
70310
70467
|
const params = {
|
|
70311
70468
|
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
70469
|
};
|
|
70313
|
-
mark.setAnimationConfig(animationConfig(Factory.getAnimationInKey('wordCloud')(params, appearPreset), userAnimationConfig(
|
|
70470
|
+
mark.setAnimationConfig(animationConfig(Factory.getAnimationInKey('wordCloud')(params, appearPreset), userAnimationConfig("word", this._spec, this._markAttributeContext)));
|
|
70314
70471
|
}
|
|
70315
70472
|
});
|
|
70316
70473
|
}
|
|
@@ -72594,7 +72751,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72594
72751
|
center: { x: r, y: r, z: (_a = this._spec.depth_3d) !== null && _a !== void 0 ? _a : r },
|
|
72595
72752
|
r
|
|
72596
72753
|
};
|
|
72597
|
-
}), userAnimationConfig(
|
|
72754
|
+
}), userAnimationConfig("word", this._spec, this._markAttributeContext)));
|
|
72598
72755
|
}
|
|
72599
72756
|
if (this._fillingWordMark) {
|
|
72600
72757
|
this._fillingWordMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('wordCloud3d')) === null || _c === void 0 ? void 0 : _c(() => {
|
|
@@ -72607,7 +72764,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72607
72764
|
center: { x: r, y: r, z: (_a = this._spec.depth_3d) !== null && _a !== void 0 ? _a : r },
|
|
72608
72765
|
r
|
|
72609
72766
|
};
|
|
72610
|
-
}), userAnimationConfig(
|
|
72767
|
+
}), userAnimationConfig("fillingWord", this._spec, this._markAttributeContext)));
|
|
72611
72768
|
}
|
|
72612
72769
|
}
|
|
72613
72770
|
}
|
|
@@ -72687,14 +72844,14 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72687
72844
|
this.titleValueCallback = (datum, params) => {
|
|
72688
72845
|
var _a, _b, _c;
|
|
72689
72846
|
const series = this.series;
|
|
72690
|
-
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) ===
|
|
72847
|
+
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) === "transform") {
|
|
72691
72848
|
return `转化率`;
|
|
72692
72849
|
}
|
|
72693
72850
|
return (_b = this._getDimensionData(datum)) !== null && _b !== void 0 ? _b : (_c = datum.properties) === null || _c === void 0 ? void 0 : _c[`${series.getCategoryField()}`];
|
|
72694
72851
|
};
|
|
72695
72852
|
this.contentValueCallback = (datum, params) => {
|
|
72696
72853
|
var _a;
|
|
72697
|
-
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) ===
|
|
72854
|
+
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) === "transform") {
|
|
72698
72855
|
const measureData = datum === null || datum === void 0 ? void 0 : datum[FUNNEL_REACH_RATIO];
|
|
72699
72856
|
return `${(measureData * 100).toFixed(1)}%`;
|
|
72700
72857
|
}
|
|
@@ -72702,7 +72859,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72702
72859
|
};
|
|
72703
72860
|
this.contentKeyCallback = (datum, params) => {
|
|
72704
72861
|
var _a;
|
|
72705
|
-
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) ===
|
|
72862
|
+
if (((_a = params === null || params === void 0 ? void 0 : params.mark) === null || _a === void 0 ? void 0 : _a.name) === "transform") {
|
|
72706
72863
|
return `转化率`;
|
|
72707
72864
|
}
|
|
72708
72865
|
const { dimensionFields, seriesFields } = this._seriesCacheInfo;
|
|
@@ -72732,7 +72889,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72732
72889
|
return defaultStyle;
|
|
72733
72890
|
}
|
|
72734
72891
|
}
|
|
72735
|
-
PolygonMark.type =
|
|
72892
|
+
PolygonMark.type = "polygon";
|
|
72736
72893
|
const registerPolygonMark = () => {
|
|
72737
72894
|
Factory.registerMark(PolygonMark.type, PolygonMark);
|
|
72738
72895
|
registerPolygonGraphic();
|
|
@@ -72741,9 +72898,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72741
72898
|
|
|
72742
72899
|
class FunnelSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
72743
72900
|
_transformLabelSpec(spec) {
|
|
72744
|
-
this._addMarkLabelSpec(spec,
|
|
72901
|
+
this._addMarkLabelSpec(spec, "funnel");
|
|
72745
72902
|
if (spec.isTransform) {
|
|
72746
|
-
this._addMarkLabelSpec(spec,
|
|
72903
|
+
this._addMarkLabelSpec(spec, "transform", 'transformLabel');
|
|
72747
72904
|
}
|
|
72748
72905
|
}
|
|
72749
72906
|
}
|
|
@@ -72752,10 +72909,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72752
72909
|
constructor() {
|
|
72753
72910
|
super(...arguments);
|
|
72754
72911
|
this.type = exports.SeriesTypeEnum.funnel;
|
|
72755
|
-
this._funnelMarkName =
|
|
72756
|
-
this._funnelMarkType =
|
|
72757
|
-
this._transformMarkName =
|
|
72758
|
-
this._transformMarkType =
|
|
72912
|
+
this._funnelMarkName = "funnel";
|
|
72913
|
+
this._funnelMarkType = "polygon";
|
|
72914
|
+
this._transformMarkName = "transform";
|
|
72915
|
+
this._transformMarkType = "polygon";
|
|
72759
72916
|
this.transformerConstructor = FunnelSeriesSpecTransformer;
|
|
72760
72917
|
this._funnelMark = null;
|
|
72761
72918
|
this._funnelTransformMark = null;
|
|
@@ -72991,7 +73148,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
72991
73148
|
return this.getLayoutRect().height;
|
|
72992
73149
|
},
|
|
72993
73150
|
orient: () => (this._isReverse() ? 'negative' : 'positive')
|
|
72994
|
-
}, appearPreset), userAnimationConfig(
|
|
73151
|
+
}, appearPreset), userAnimationConfig("group", this._spec, this._markAttributeContext)));
|
|
72995
73152
|
}
|
|
72996
73153
|
}
|
|
72997
73154
|
[(_e = this._funnelOuterLabelMark) === null || _e === void 0 ? void 0 : _e.label].forEach(m => {
|
|
@@ -73005,7 +73162,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73005
73162
|
}
|
|
73006
73163
|
});
|
|
73007
73164
|
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(
|
|
73165
|
+
this._funnelOuterLabelMark.line.setAnimationConfig(animationConfig((_g = Factory.getAnimationInKey('fadeInOut')) === null || _g === void 0 ? void 0 : _g(), userAnimationConfig("outerLabelLine", this._spec, this._markAttributeContext)));
|
|
73009
73166
|
}
|
|
73010
73167
|
}
|
|
73011
73168
|
initGroups() {
|
|
@@ -73381,7 +73538,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73381
73538
|
this.type = Pyramid3dMark.type;
|
|
73382
73539
|
}
|
|
73383
73540
|
}
|
|
73384
|
-
Pyramid3dMark.type =
|
|
73541
|
+
Pyramid3dMark.type = "pyramid3d";
|
|
73385
73542
|
const registerPyramid3dMark = () => {
|
|
73386
73543
|
Factory.registerMark(Pyramid3dMark.type, Pyramid3dMark);
|
|
73387
73544
|
registerPyramid3dGraphic();
|
|
@@ -73390,9 +73547,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73390
73547
|
|
|
73391
73548
|
class Funnel3dSeriesSpecTransformer extends FunnelSeriesSpecTransformer {
|
|
73392
73549
|
_transformLabelSpec(spec) {
|
|
73393
|
-
this._addMarkLabelSpec(spec,
|
|
73550
|
+
this._addMarkLabelSpec(spec, "funnel3d");
|
|
73394
73551
|
if (spec.isTransform) {
|
|
73395
|
-
this._addMarkLabelSpec(spec,
|
|
73552
|
+
this._addMarkLabelSpec(spec, "transform3d", 'transformLabel');
|
|
73396
73553
|
}
|
|
73397
73554
|
}
|
|
73398
73555
|
}
|
|
@@ -73401,10 +73558,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
73401
73558
|
constructor() {
|
|
73402
73559
|
super(...arguments);
|
|
73403
73560
|
this.type = exports.SeriesTypeEnum.funnel3d;
|
|
73404
|
-
this._funnelMarkName =
|
|
73405
|
-
this._funnelMarkType =
|
|
73406
|
-
this._transformMarkName =
|
|
73407
|
-
this._transformMarkType =
|
|
73561
|
+
this._funnelMarkName = "funnel3d";
|
|
73562
|
+
this._funnelMarkType = "pyramid3d";
|
|
73563
|
+
this._transformMarkName = "transform3d";
|
|
73564
|
+
this._transformMarkType = "pyramid3d";
|
|
73408
73565
|
this.transformerConstructor = Funnel3dSeriesSpecTransformer;
|
|
73409
73566
|
}
|
|
73410
73567
|
initMark() {
|
|
@@ -74367,7 +74524,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
74367
74524
|
};
|
|
74368
74525
|
|
|
74369
74526
|
class Drillable {
|
|
74370
|
-
|
|
74527
|
+
_getDrillTriggerEvent(type) {
|
|
74371
74528
|
var _a;
|
|
74372
74529
|
const { mode } = this._drillParams;
|
|
74373
74530
|
return (_a = getDefaultTriggerEventByMode(mode)) === null || _a === void 0 ? void 0 : _a[type];
|
|
@@ -74396,8 +74553,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
74396
74553
|
bindDrillEvent() {
|
|
74397
74554
|
const { event, getRawData, drillField } = this._drillParams;
|
|
74398
74555
|
const keyField = drillField();
|
|
74399
|
-
if (this.
|
|
74400
|
-
event.on(this.
|
|
74556
|
+
if (this._getDrillTriggerEvent('start')) {
|
|
74557
|
+
event.on(this._getDrillTriggerEvent('start'), e => {
|
|
74401
74558
|
var _a, _b, _c;
|
|
74402
74559
|
if (isNil$1(e.datum) || isNil$1((_a = e.datum) === null || _a === void 0 ? void 0 : _a[keyField])) {
|
|
74403
74560
|
this.drillUp();
|
|
@@ -74674,11 +74831,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
74674
74831
|
}
|
|
74675
74832
|
};
|
|
74676
74833
|
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(
|
|
74834
|
+
this.getMarksInType("arc").forEach(mark => {
|
|
74678
74835
|
var _a;
|
|
74679
74836
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('sunburst')) === null || _a === void 0 ? void 0 : _a(animationParams, appearPreset), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
74680
74837
|
});
|
|
74681
|
-
this.getMarksInType(
|
|
74838
|
+
this.getMarksInType("text").forEach(mark => {
|
|
74682
74839
|
var _a;
|
|
74683
74840
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('fadeInOut')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
74684
74841
|
});
|
|
@@ -74965,11 +75122,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
74965
75122
|
initAnimation() {
|
|
74966
75123
|
var _a;
|
|
74967
75124
|
const appearPreset = (_a = this._spec.animationAppear) === null || _a === void 0 ? void 0 : _a.preset;
|
|
74968
|
-
this.getMarksInType(
|
|
75125
|
+
this.getMarksInType("arc").forEach(mark => {
|
|
74969
75126
|
var _a;
|
|
74970
75127
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('circlePacking')) === null || _a === void 0 ? void 0 : _a(undefined, appearPreset), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
74971
75128
|
});
|
|
74972
|
-
this.getMarksInType(
|
|
75129
|
+
this.getMarksInType("text").forEach(mark => {
|
|
74973
75130
|
var _a;
|
|
74974
75131
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('scaleInOut')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
74975
75132
|
});
|
|
@@ -75719,10 +75876,10 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
75719
75876
|
|
|
75720
75877
|
const sankeyGrowIn = (params, isOverall = true) => {
|
|
75721
75878
|
return {
|
|
75722
|
-
type: params.direction ===
|
|
75879
|
+
type: params.direction === "horizontal" ? 'growWidthIn' : 'growHeightIn',
|
|
75723
75880
|
options: {
|
|
75724
75881
|
overall: isOverall ? params.growFrom() : isOverall,
|
|
75725
|
-
orient:
|
|
75882
|
+
orient: 'positive'
|
|
75726
75883
|
}
|
|
75727
75884
|
};
|
|
75728
75885
|
};
|
|
@@ -75787,7 +75944,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
75787
75944
|
this._compiledProductId = id;
|
|
75788
75945
|
}
|
|
75789
75946
|
}
|
|
75790
|
-
LinkPathMark.type =
|
|
75947
|
+
LinkPathMark.type = "linkPath";
|
|
75791
75948
|
const registerLinkPathMark = () => {
|
|
75792
75949
|
registerLinkPathGlyph();
|
|
75793
75950
|
Factory.registerMark(LinkPathMark.type, LinkPathMark);
|
|
@@ -76724,13 +76881,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76724
76881
|
};
|
|
76725
76882
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
76726
76883
|
if (this._nodeMark) {
|
|
76727
|
-
this._nodeMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('sankeyNode')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig(
|
|
76884
|
+
this._nodeMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('sankeyNode')) === null || _c === void 0 ? void 0 : _c(animationParams, appearPreset), userAnimationConfig("node", this._spec, this._markAttributeContext)));
|
|
76728
76885
|
}
|
|
76729
76886
|
if (this._linkMark) {
|
|
76730
|
-
this._linkMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('sankeyLinkPath')) === null || _d === void 0 ? void 0 : _d(animationParams, appearPreset), userAnimationConfig(
|
|
76887
|
+
this._linkMark.setAnimationConfig(animationConfig((_d = Factory.getAnimationInKey('sankeyLinkPath')) === null || _d === void 0 ? void 0 : _d(animationParams, appearPreset), userAnimationConfig("link", this._spec, this._markAttributeContext)));
|
|
76731
76888
|
}
|
|
76732
76889
|
if (this._labelMark) {
|
|
76733
|
-
this._labelMark.setAnimationConfig(animationConfig((_e = Factory.getAnimationInKey('fadeInOut')) === null || _e === void 0 ? void 0 : _e(), userAnimationConfig(
|
|
76890
|
+
this._labelMark.setAnimationConfig(animationConfig((_e = Factory.getAnimationInKey('fadeInOut')) === null || _e === void 0 ? void 0 : _e(), userAnimationConfig("label", this._spec, this._markAttributeContext)));
|
|
76734
76891
|
}
|
|
76735
76892
|
}
|
|
76736
76893
|
initEvent() {
|
|
@@ -76975,8 +77132,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
76975
77132
|
|
|
76976
77133
|
class TreemapSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
76977
77134
|
_transformLabelSpec(spec) {
|
|
76978
|
-
this._addMarkLabelSpec(spec,
|
|
76979
|
-
this._addMarkLabelSpec(spec,
|
|
77135
|
+
this._addMarkLabelSpec(spec, "nonLeaf", 'nonLeafLabel', 'initNonLeafLabelMarkStyle');
|
|
77136
|
+
this._addMarkLabelSpec(spec, "leaf");
|
|
76980
77137
|
}
|
|
76981
77138
|
}
|
|
76982
77139
|
|
|
@@ -77016,7 +77173,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77016
77173
|
this.initDrillable({
|
|
77017
77174
|
event: this.event,
|
|
77018
77175
|
mode: this._option.mode,
|
|
77019
|
-
drillField: () => { var _a; return (_a = this._spec.drillField) !== null && _a !== void 0 ? _a : DEFAULT_DATA_KEY; },
|
|
77176
|
+
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
77177
|
getRawData: () => this.getRawData()
|
|
77021
77178
|
});
|
|
77022
77179
|
}
|
|
@@ -77250,11 +77407,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77250
77407
|
}, STATE_VALUE_ENUM.STATE_NORMAL, exports.AttributeLevel.Series);
|
|
77251
77408
|
}
|
|
77252
77409
|
initAnimation() {
|
|
77253
|
-
this.getMarksInType(
|
|
77410
|
+
this.getMarksInType("rect").forEach(mark => {
|
|
77254
77411
|
var _a;
|
|
77255
77412
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('treemap')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
77256
77413
|
});
|
|
77257
|
-
this.getMarksInType(
|
|
77414
|
+
this.getMarksInType("text").forEach(mark => {
|
|
77258
77415
|
var _a;
|
|
77259
77416
|
mark.setAnimationConfig(animationConfig((_a = Factory.getAnimationInKey('fadeInOut')) === null || _a === void 0 ? void 0 : _a(), userAnimationConfig(mark.name, this._spec, this._markAttributeContext)));
|
|
77260
77417
|
});
|
|
@@ -77412,7 +77569,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77412
77569
|
var _a;
|
|
77413
77570
|
super.setAttrFromSpec();
|
|
77414
77571
|
this.setRadiusField(this._spec.radiusField);
|
|
77415
|
-
this._pointerType = ((_a = this._spec.pointer) === null || _a === void 0 ? void 0 : _a.type) === 'rect' ?
|
|
77572
|
+
this._pointerType = ((_a = this._spec.pointer) === null || _a === void 0 ? void 0 : _a.type) === 'rect' ? "rect" : "path";
|
|
77416
77573
|
}
|
|
77417
77574
|
initMark() {
|
|
77418
77575
|
this._pinBackgroundMark = this._createMark(GaugePointerSeries.mark.pinBackground);
|
|
@@ -77452,7 +77609,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77452
77609
|
fill: this.getColorAttribute(),
|
|
77453
77610
|
zIndex: 200
|
|
77454
77611
|
});
|
|
77455
|
-
if (this._pointerType ===
|
|
77612
|
+
if (this._pointerType === "path") {
|
|
77456
77613
|
this.setMarkStyle(pointerMark, {
|
|
77457
77614
|
scaleX: this._getPointerWidth.bind(this),
|
|
77458
77615
|
scaleY: this._getPointerHeight.bind(this),
|
|
@@ -77548,7 +77705,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77548
77705
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
77549
77706
|
this._pointerMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('gaugePointer')) === null || _c === void 0 ? void 0 : _c({
|
|
77550
77707
|
startAngle: this._startAngle
|
|
77551
|
-
}, appearPreset), userAnimationConfig(
|
|
77708
|
+
}, appearPreset), userAnimationConfig("pointer", this._spec, this._markAttributeContext)));
|
|
77552
77709
|
}
|
|
77553
77710
|
getDefaultShapeType() {
|
|
77554
77711
|
return 'circle';
|
|
@@ -77568,7 +77725,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77568
77725
|
|
|
77569
77726
|
class GaugeSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
77570
77727
|
_transformLabelSpec(spec) {
|
|
77571
|
-
this._addMarkLabelSpec(spec,
|
|
77728
|
+
this._addMarkLabelSpec(spec, "segment");
|
|
77572
77729
|
}
|
|
77573
77730
|
}
|
|
77574
77731
|
|
|
@@ -77692,7 +77849,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77692
77849
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
77693
77850
|
this._segmentMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('circularProgress')) === null || _c === void 0 ? void 0 : _c({
|
|
77694
77851
|
startAngle: this._startAngle
|
|
77695
|
-
}, appearPreset), userAnimationConfig(
|
|
77852
|
+
}, appearPreset), userAnimationConfig("segment", this._spec, this._markAttributeContext)));
|
|
77696
77853
|
}
|
|
77697
77854
|
getDefaultShapeType() {
|
|
77698
77855
|
return 'circle';
|
|
@@ -77720,7 +77877,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77720
77877
|
return defaultStyle;
|
|
77721
77878
|
}
|
|
77722
77879
|
}
|
|
77723
|
-
CellMark.type =
|
|
77880
|
+
CellMark.type = "cell";
|
|
77724
77881
|
const registerCellMark = () => {
|
|
77725
77882
|
Factory.registerMark(CellMark.type, CellMark);
|
|
77726
77883
|
registerCellGraphic();
|
|
@@ -77753,7 +77910,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77753
77910
|
|
|
77754
77911
|
class HeatmapSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
77755
77912
|
_transformLabelSpec(spec) {
|
|
77756
|
-
this._addMarkLabelSpec(spec,
|
|
77913
|
+
this._addMarkLabelSpec(spec, "cell");
|
|
77757
77914
|
}
|
|
77758
77915
|
}
|
|
77759
77916
|
|
|
@@ -77859,7 +78016,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
77859
78016
|
var _a, _b, _c;
|
|
77860
78017
|
const appearPreset = (_b = (_a = this._spec) === null || _a === void 0 ? void 0 : _a.animationAppear) === null || _b === void 0 ? void 0 : _b.preset;
|
|
77861
78018
|
const animationParams = getGroupAnimationParams(this);
|
|
77862
|
-
this._cellMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('heatmap')) === null || _c === void 0 ? void 0 : _c(appearPreset), userAnimationConfig(
|
|
78019
|
+
this._cellMark.setAnimationConfig(animationConfig((_c = Factory.getAnimationInKey('heatmap')) === null || _c === void 0 ? void 0 : _c(appearPreset), userAnimationConfig("cell", this._spec, this._markAttributeContext), animationParams));
|
|
77863
78020
|
}
|
|
77864
78021
|
getCellSize(axisHelper) {
|
|
77865
78022
|
var _a, _b;
|
|
@@ -78050,7 +78207,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78050
78207
|
this._compiledProductId = id;
|
|
78051
78208
|
}
|
|
78052
78209
|
}
|
|
78053
|
-
RippleMark.type =
|
|
78210
|
+
RippleMark.type = "ripple";
|
|
78054
78211
|
const registerRippleMark = () => {
|
|
78055
78212
|
Factory.registerMark(RippleMark.type, RippleMark);
|
|
78056
78213
|
registerRippleGlyph();
|
|
@@ -78081,8 +78238,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78081
78238
|
|
|
78082
78239
|
class CorrelationSeriesSpecTransformer extends BaseSeriesSpecTransformer {
|
|
78083
78240
|
_transformLabelSpec(spec) {
|
|
78084
|
-
this._addMarkLabelSpec(spec,
|
|
78085
|
-
this._addMarkLabelSpec(spec,
|
|
78241
|
+
this._addMarkLabelSpec(spec, "nodePoint");
|
|
78242
|
+
this._addMarkLabelSpec(spec, "centerPoint", 'centerLabel');
|
|
78086
78243
|
}
|
|
78087
78244
|
}
|
|
78088
78245
|
|
|
@@ -78305,7 +78462,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78305
78462
|
initAnimation() {
|
|
78306
78463
|
var _a, _b;
|
|
78307
78464
|
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(
|
|
78465
|
+
this._nodePointMark.setAnimationConfig(animationConfig((_b = Factory.getAnimationInKey('correlation')) === null || _b === void 0 ? void 0 : _b({}, appearPreset), userAnimationConfig("nodePoint", this._spec, this._markAttributeContext)));
|
|
78309
78466
|
}
|
|
78310
78467
|
getGroupFields() {
|
|
78311
78468
|
return [];
|
|
@@ -78378,11 +78535,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78378
78535
|
constructor() {
|
|
78379
78536
|
super(...arguments);
|
|
78380
78537
|
this.transformerConstructor = MapChartSpecTransformer;
|
|
78381
|
-
this.type =
|
|
78538
|
+
this.type = "map";
|
|
78382
78539
|
this.seriesType = exports.SeriesTypeEnum.map;
|
|
78383
78540
|
}
|
|
78384
78541
|
}
|
|
78385
|
-
MapChart.type =
|
|
78542
|
+
MapChart.type = "map";
|
|
78386
78543
|
MapChart.seriesType = exports.SeriesTypeEnum.map;
|
|
78387
78544
|
MapChart.view = 'singleDefault';
|
|
78388
78545
|
MapChart.transformerConstructor = MapChartSpecTransformer;
|
|
@@ -78421,8 +78578,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78421
78578
|
super.transformSpec(spec);
|
|
78422
78579
|
if (isArray$1(spec.dataZoom) && spec.dataZoom.length > 0) {
|
|
78423
78580
|
spec.dataZoom.forEach((zoom) => {
|
|
78424
|
-
if (zoom.filterMode ===
|
|
78425
|
-
zoom.filterMode =
|
|
78581
|
+
if (zoom.filterMode === "axis") {
|
|
78582
|
+
zoom.filterMode = "filter";
|
|
78426
78583
|
}
|
|
78427
78584
|
});
|
|
78428
78585
|
}
|
|
@@ -78553,11 +78710,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78553
78710
|
constructor() {
|
|
78554
78711
|
super(...arguments);
|
|
78555
78712
|
this.transformerConstructor = BasePieChartSpecTransformer;
|
|
78556
|
-
this.type =
|
|
78713
|
+
this.type = "pie";
|
|
78557
78714
|
this.seriesType = exports.SeriesTypeEnum.pie;
|
|
78558
78715
|
}
|
|
78559
78716
|
}
|
|
78560
|
-
PieChart.type =
|
|
78717
|
+
PieChart.type = "pie";
|
|
78561
78718
|
PieChart.seriesType = exports.SeriesTypeEnum.pie;
|
|
78562
78719
|
PieChart.view = 'singleDefault';
|
|
78563
78720
|
PieChart.transformerConstructor = BasePieChartSpecTransformer;
|
|
@@ -78580,11 +78737,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78580
78737
|
constructor() {
|
|
78581
78738
|
super(...arguments);
|
|
78582
78739
|
this.transformerConstructor = Pie3dChartSpecTransformer;
|
|
78583
|
-
this.type =
|
|
78740
|
+
this.type = "pie3d";
|
|
78584
78741
|
this.seriesType = exports.SeriesTypeEnum.pie3d;
|
|
78585
78742
|
}
|
|
78586
78743
|
}
|
|
78587
|
-
Pie3dChart.type =
|
|
78744
|
+
Pie3dChart.type = "pie3d";
|
|
78588
78745
|
Pie3dChart.seriesType = exports.SeriesTypeEnum.pie3d;
|
|
78589
78746
|
Pie3dChart.view = 'singleDefault';
|
|
78590
78747
|
Pie3dChart.transformerConstructor = Pie3dChartSpecTransformer;
|
|
@@ -78629,12 +78786,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78629
78786
|
constructor() {
|
|
78630
78787
|
super(...arguments);
|
|
78631
78788
|
this.transformerConstructor = RoseChartSpecTransformer;
|
|
78632
|
-
this.type =
|
|
78789
|
+
this.type = "rose";
|
|
78633
78790
|
this.seriesType = exports.SeriesTypeEnum.rose;
|
|
78634
78791
|
this._canStack = true;
|
|
78635
78792
|
}
|
|
78636
78793
|
}
|
|
78637
|
-
RoseChart.type =
|
|
78794
|
+
RoseChart.type = "rose";
|
|
78638
78795
|
RoseChart.seriesType = exports.SeriesTypeEnum.rose;
|
|
78639
78796
|
RoseChart.view = 'singleDefault';
|
|
78640
78797
|
RoseChart.transformerConstructor = RoseChartSpecTransformer;
|
|
@@ -78683,12 +78840,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78683
78840
|
constructor() {
|
|
78684
78841
|
super(...arguments);
|
|
78685
78842
|
this.transformerConstructor = RadarChartSpecTransformer;
|
|
78686
|
-
this.type =
|
|
78843
|
+
this.type = "radar";
|
|
78687
78844
|
this.seriesType = exports.SeriesTypeEnum.radar;
|
|
78688
78845
|
this._canStack = true;
|
|
78689
78846
|
}
|
|
78690
78847
|
}
|
|
78691
|
-
RadarChart.type =
|
|
78848
|
+
RadarChart.type = "radar";
|
|
78692
78849
|
RadarChart.seriesType = exports.SeriesTypeEnum.radar;
|
|
78693
78850
|
RadarChart.view = 'singleDefault';
|
|
78694
78851
|
RadarChart.transformerConstructor = RadarChartSpecTransformer;
|
|
@@ -78732,11 +78889,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78732
78889
|
constructor() {
|
|
78733
78890
|
super(...arguments);
|
|
78734
78891
|
this.transformerConstructor = CommonChartSpecTransformer;
|
|
78735
|
-
this.type =
|
|
78892
|
+
this.type = "common";
|
|
78736
78893
|
this._canStack = true;
|
|
78737
78894
|
}
|
|
78738
78895
|
}
|
|
78739
|
-
CommonChart.type =
|
|
78896
|
+
CommonChart.type = "common";
|
|
78740
78897
|
CommonChart.view = 'singleDefault';
|
|
78741
78898
|
CommonChart.transformerConstructor = CommonChartSpecTransformer;
|
|
78742
78899
|
const registerCommonChart = () => {
|
|
@@ -78840,7 +78997,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78840
78997
|
row: rowNum
|
|
78841
78998
|
});
|
|
78842
78999
|
spec.axes[0].id = `axesRow${rowNum}`;
|
|
78843
|
-
spec.axes[0].regionIndex = Array.from(Array(spec.series.length
|
|
79000
|
+
spec.axes[0].regionIndex = Array.from(Array(spec.series.length), (_, index) => index + 1);
|
|
78844
79001
|
rowNum++;
|
|
78845
79002
|
(_k = spec === null || spec === void 0 ? void 0 : spec.series) === null || _k === void 0 ? void 0 : _k.forEach((seriesSpec) => {
|
|
78846
79003
|
var _a, _b;
|
|
@@ -78916,7 +79073,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78916
79073
|
if (dataLength) {
|
|
78917
79074
|
ratio = ((seriesSpec === null || seriesSpec === void 0 ? void 0 : seriesSpec.height) || defaultSeriesRowHeight) / (dataLength * 30);
|
|
78918
79075
|
}
|
|
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:
|
|
79076
|
+
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
79077
|
}
|
|
78921
79078
|
seriesSpec.regionIndex = region.length - 1;
|
|
78922
79079
|
rowNum++;
|
|
@@ -78981,7 +79138,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
78981
79138
|
constructor() {
|
|
78982
79139
|
super(...arguments);
|
|
78983
79140
|
this.transformerConstructor = SequenceChartSpecTransformer;
|
|
78984
|
-
this.type =
|
|
79141
|
+
this.type = "sequence";
|
|
78985
79142
|
}
|
|
78986
79143
|
_createSeries(constructor, specInfo) {
|
|
78987
79144
|
if (!constructor) {
|
|
@@ -79009,7 +79166,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79009
79166
|
}
|
|
79010
79167
|
}
|
|
79011
79168
|
}
|
|
79012
|
-
SequenceChart.type =
|
|
79169
|
+
SequenceChart.type = "sequence";
|
|
79013
79170
|
SequenceChart.view = 'singleDefault';
|
|
79014
79171
|
SequenceChart.transformerConstructor = SequenceChartSpecTransformer;
|
|
79015
79172
|
const registerSequenceChart = () => {
|
|
@@ -79048,11 +79205,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79048
79205
|
constructor() {
|
|
79049
79206
|
super(...arguments);
|
|
79050
79207
|
this.transformerConstructor = HistogramChartSpecTransformer;
|
|
79051
|
-
this.type =
|
|
79208
|
+
this.type = "histogram";
|
|
79052
79209
|
this.seriesType = exports.SeriesTypeEnum.bar;
|
|
79053
79210
|
}
|
|
79054
79211
|
}
|
|
79055
|
-
HistogramChart.type =
|
|
79212
|
+
HistogramChart.type = "histogram";
|
|
79056
79213
|
HistogramChart.seriesType = exports.SeriesTypeEnum.bar;
|
|
79057
79214
|
HistogramChart.view = 'singleDefault';
|
|
79058
79215
|
HistogramChart.transformerConstructor = HistogramChartSpecTransformer;
|
|
@@ -79065,11 +79222,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79065
79222
|
constructor() {
|
|
79066
79223
|
super(...arguments);
|
|
79067
79224
|
this.transformerConstructor = HistogramChartSpecTransformer;
|
|
79068
|
-
this.type =
|
|
79225
|
+
this.type = "histogram3d";
|
|
79069
79226
|
this.seriesType = exports.SeriesTypeEnum.bar3d;
|
|
79070
79227
|
}
|
|
79071
79228
|
}
|
|
79072
|
-
Histogram3dChart.type =
|
|
79229
|
+
Histogram3dChart.type = "histogram3d";
|
|
79073
79230
|
Histogram3dChart.seriesType = exports.SeriesTypeEnum.bar3d;
|
|
79074
79231
|
Histogram3dChart.view = 'singleDefault';
|
|
79075
79232
|
Histogram3dChart.transformerConstructor = HistogramChartSpecTransformer;
|
|
@@ -79100,12 +79257,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79100
79257
|
constructor() {
|
|
79101
79258
|
super(...arguments);
|
|
79102
79259
|
this.transformerConstructor = CircularProgressChartSpecTransformer;
|
|
79103
|
-
this.type =
|
|
79260
|
+
this.type = "circularProgress";
|
|
79104
79261
|
this.seriesType = exports.SeriesTypeEnum.circularProgress;
|
|
79105
79262
|
this._canStack = true;
|
|
79106
79263
|
}
|
|
79107
79264
|
}
|
|
79108
|
-
CircularProgressChart.type =
|
|
79265
|
+
CircularProgressChart.type = "circularProgress";
|
|
79109
79266
|
CircularProgressChart.seriesType = exports.SeriesTypeEnum.circularProgress;
|
|
79110
79267
|
CircularProgressChart.view = 'singleDefault';
|
|
79111
79268
|
CircularProgressChart.transformerConstructor = CircularProgressChartSpecTransformer;
|
|
@@ -79219,11 +79376,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79219
79376
|
constructor() {
|
|
79220
79377
|
super(...arguments);
|
|
79221
79378
|
this.transformerConstructor = GaugeChartSpecTransformer;
|
|
79222
|
-
this.type =
|
|
79379
|
+
this.type = "gauge";
|
|
79223
79380
|
this.seriesType = exports.SeriesTypeEnum.gaugePointer;
|
|
79224
79381
|
}
|
|
79225
79382
|
}
|
|
79226
|
-
GaugeChart.type =
|
|
79383
|
+
GaugeChart.type = "gauge";
|
|
79227
79384
|
GaugeChart.seriesType = exports.SeriesTypeEnum.gaugePointer;
|
|
79228
79385
|
GaugeChart.view = 'singleDefault';
|
|
79229
79386
|
GaugeChart.transformerConstructor = GaugeChartSpecTransformer;
|
|
@@ -79259,7 +79416,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79259
79416
|
constructor() {
|
|
79260
79417
|
super(...arguments);
|
|
79261
79418
|
this.transformerConstructor = BaseWordCloudChartSpecTransformer;
|
|
79262
|
-
this.type =
|
|
79419
|
+
this.type = "wordCloud";
|
|
79263
79420
|
this.seriesType = exports.SeriesTypeEnum.wordCloud;
|
|
79264
79421
|
}
|
|
79265
79422
|
}
|
|
@@ -79281,11 +79438,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79281
79438
|
constructor() {
|
|
79282
79439
|
super(...arguments);
|
|
79283
79440
|
this.transformerConstructor = WordCloudChartSpecTransformer;
|
|
79284
|
-
this.type =
|
|
79441
|
+
this.type = "wordCloud";
|
|
79285
79442
|
this.seriesType = exports.SeriesTypeEnum.wordCloud;
|
|
79286
79443
|
}
|
|
79287
79444
|
}
|
|
79288
|
-
WordCloudChart.type =
|
|
79445
|
+
WordCloudChart.type = "wordCloud";
|
|
79289
79446
|
WordCloudChart.seriesType = exports.SeriesTypeEnum.wordCloud;
|
|
79290
79447
|
WordCloudChart.view = 'singleDefault';
|
|
79291
79448
|
WordCloudChart.transformerConstructor = WordCloudChartSpecTransformer;
|
|
@@ -79314,11 +79471,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79314
79471
|
constructor() {
|
|
79315
79472
|
super(...arguments);
|
|
79316
79473
|
this.transformerConstructor = WordCloud3dChartSpecTransformer;
|
|
79317
|
-
this.type =
|
|
79474
|
+
this.type = "wordCloud3d";
|
|
79318
79475
|
this.seriesType = exports.SeriesTypeEnum.wordCloud3d;
|
|
79319
79476
|
}
|
|
79320
79477
|
}
|
|
79321
|
-
WordCloud3dChart.type =
|
|
79478
|
+
WordCloud3dChart.type = "wordCloud3d";
|
|
79322
79479
|
WordCloud3dChart.seriesType = exports.SeriesTypeEnum.wordCloud3d;
|
|
79323
79480
|
WordCloud3dChart.view = 'singleDefault';
|
|
79324
79481
|
WordCloud3dChart.transformerConstructor = WordCloud3dChartSpecTransformer;
|
|
@@ -79369,11 +79526,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79369
79526
|
constructor() {
|
|
79370
79527
|
super(...arguments);
|
|
79371
79528
|
this.transformerConstructor = FunnelChartSpecTransformer;
|
|
79372
|
-
this.type =
|
|
79529
|
+
this.type = "funnel";
|
|
79373
79530
|
this.seriesType = exports.SeriesTypeEnum.funnel;
|
|
79374
79531
|
}
|
|
79375
79532
|
}
|
|
79376
|
-
FunnelChart.type =
|
|
79533
|
+
FunnelChart.type = "funnel";
|
|
79377
79534
|
FunnelChart.seriesType = exports.SeriesTypeEnum.funnel;
|
|
79378
79535
|
FunnelChart.view = 'singleDefault';
|
|
79379
79536
|
FunnelChart.transformerConstructor = FunnelChartSpecTransformer;
|
|
@@ -79386,11 +79543,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79386
79543
|
constructor() {
|
|
79387
79544
|
super(...arguments);
|
|
79388
79545
|
this.transformerConstructor = FunnelChartSpecTransformer;
|
|
79389
|
-
this.type =
|
|
79546
|
+
this.type = "funnel3d";
|
|
79390
79547
|
this.seriesType = exports.SeriesTypeEnum.funnel3d;
|
|
79391
79548
|
}
|
|
79392
79549
|
}
|
|
79393
|
-
Funnel3dChart.type =
|
|
79550
|
+
Funnel3dChart.type = "funnel3d";
|
|
79394
79551
|
Funnel3dChart.seriesType = exports.SeriesTypeEnum.funnel3d;
|
|
79395
79552
|
Funnel3dChart.view = 'singleDefault';
|
|
79396
79553
|
Funnel3dChart.transformerConstructor = FunnelChartSpecTransformer;
|
|
@@ -79502,12 +79659,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79502
79659
|
constructor() {
|
|
79503
79660
|
super(...arguments);
|
|
79504
79661
|
this.transformerConstructor = LinearProgressChartSpecTransformer;
|
|
79505
|
-
this.type =
|
|
79662
|
+
this.type = "linearProgress";
|
|
79506
79663
|
this.seriesType = exports.SeriesTypeEnum.linearProgress;
|
|
79507
79664
|
this._canStack = true;
|
|
79508
79665
|
}
|
|
79509
79666
|
}
|
|
79510
|
-
LinearProgressChart.type =
|
|
79667
|
+
LinearProgressChart.type = "linearProgress";
|
|
79511
79668
|
LinearProgressChart.seriesType = exports.SeriesTypeEnum.linearProgress;
|
|
79512
79669
|
LinearProgressChart.view = 'singleDefault';
|
|
79513
79670
|
LinearProgressChart.transformerConstructor = LinearProgressChartSpecTransformer;
|
|
@@ -79521,7 +79678,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79521
79678
|
var _a, _b;
|
|
79522
79679
|
const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { barGapInGroup: spec.barGapInGroup, barBackground: spec.barBackground, barMinHeight: spec.barMinHeight });
|
|
79523
79680
|
series.bar = spec.bar;
|
|
79524
|
-
if (spec.direction ===
|
|
79681
|
+
if (spec.direction === "horizontal") {
|
|
79525
79682
|
series.xField = (_a = spec.xField) !== null && _a !== void 0 ? _a : [spec.minField, spec.maxField];
|
|
79526
79683
|
}
|
|
79527
79684
|
else {
|
|
@@ -79539,11 +79696,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79539
79696
|
constructor() {
|
|
79540
79697
|
super(...arguments);
|
|
79541
79698
|
this.transformerConstructor = RangeColumnChartSpecTransformer;
|
|
79542
|
-
this.type =
|
|
79699
|
+
this.type = "rangeColumn";
|
|
79543
79700
|
this.seriesType = exports.SeriesTypeEnum.rangeColumn;
|
|
79544
79701
|
}
|
|
79545
79702
|
}
|
|
79546
|
-
RangeColumnChart.type =
|
|
79703
|
+
RangeColumnChart.type = "rangeColumn";
|
|
79547
79704
|
RangeColumnChart.seriesType = exports.SeriesTypeEnum.rangeColumn;
|
|
79548
79705
|
RangeColumnChart.view = 'singleDefault';
|
|
79549
79706
|
RangeColumnChart.transformerConstructor = RangeColumnChartSpecTransformer;
|
|
@@ -79557,7 +79714,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79557
79714
|
var _a, _b;
|
|
79558
79715
|
const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { barGapInGroup: spec.barGapInGroup });
|
|
79559
79716
|
series.bar3d = spec.bar3d;
|
|
79560
|
-
if (spec.direction ===
|
|
79717
|
+
if (spec.direction === "horizontal") {
|
|
79561
79718
|
series.xField = (_a = spec.xField) !== null && _a !== void 0 ? _a : [spec.minField, spec.maxField];
|
|
79562
79719
|
}
|
|
79563
79720
|
else {
|
|
@@ -79571,11 +79728,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79571
79728
|
constructor() {
|
|
79572
79729
|
super(...arguments);
|
|
79573
79730
|
this.transformerConstructor = RangeColumn3dChartSpecTransformer;
|
|
79574
|
-
this.type =
|
|
79731
|
+
this.type = "rangeColumn3d";
|
|
79575
79732
|
this.seriesType = exports.SeriesTypeEnum.rangeColumn3d;
|
|
79576
79733
|
}
|
|
79577
79734
|
}
|
|
79578
|
-
RangeColumn3dChart.type =
|
|
79735
|
+
RangeColumn3dChart.type = "rangeColumn3d";
|
|
79579
79736
|
RangeColumn3dChart.seriesType = exports.SeriesTypeEnum.rangeColumn3d;
|
|
79580
79737
|
RangeColumn3dChart.view = 'singleDefault';
|
|
79581
79738
|
RangeColumn3dChart.transformerConstructor = RangeColumn3dChartSpecTransformer;
|
|
@@ -79619,11 +79776,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79619
79776
|
constructor() {
|
|
79620
79777
|
super(...arguments);
|
|
79621
79778
|
this.transformerConstructor = SunburstChartSpecTransformer;
|
|
79622
|
-
this.type =
|
|
79779
|
+
this.type = "sunburst";
|
|
79623
79780
|
this.seriesType = exports.SeriesTypeEnum.sunburst;
|
|
79624
79781
|
}
|
|
79625
79782
|
}
|
|
79626
|
-
SunburstChart.type =
|
|
79783
|
+
SunburstChart.type = "sunburst";
|
|
79627
79784
|
SunburstChart.seriesType = exports.SeriesTypeEnum.sunburst;
|
|
79628
79785
|
SunburstChart.view = 'singleDefault';
|
|
79629
79786
|
SunburstChart.transformerConstructor = SunburstChartSpecTransformer;
|
|
@@ -79665,11 +79822,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79665
79822
|
constructor() {
|
|
79666
79823
|
super(...arguments);
|
|
79667
79824
|
this.transformerConstructor = CirclePackingChartSpecTransformer;
|
|
79668
|
-
this.type =
|
|
79825
|
+
this.type = "circlePacking";
|
|
79669
79826
|
this.seriesType = exports.SeriesTypeEnum.circlePacking;
|
|
79670
79827
|
}
|
|
79671
79828
|
}
|
|
79672
|
-
CirclePackingChart.type =
|
|
79829
|
+
CirclePackingChart.type = "circlePacking";
|
|
79673
79830
|
CirclePackingChart.seriesType = exports.SeriesTypeEnum.circlePacking;
|
|
79674
79831
|
CirclePackingChart.view = 'singleDefault';
|
|
79675
79832
|
CirclePackingChart.transformerConstructor = CirclePackingChartSpecTransformer;
|
|
@@ -79713,11 +79870,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79713
79870
|
constructor() {
|
|
79714
79871
|
super(...arguments);
|
|
79715
79872
|
this.transformerConstructor = TreemapChartSpecTransformer;
|
|
79716
|
-
this.type =
|
|
79873
|
+
this.type = "treemap";
|
|
79717
79874
|
this.seriesType = exports.SeriesTypeEnum.treemap;
|
|
79718
79875
|
}
|
|
79719
79876
|
}
|
|
79720
|
-
TreemapChart.type =
|
|
79877
|
+
TreemapChart.type = "treemap";
|
|
79721
79878
|
TreemapChart.seriesType = exports.SeriesTypeEnum.treemap;
|
|
79722
79879
|
TreemapChart.view = 'singleDefault';
|
|
79723
79880
|
TreemapChart.transformerConstructor = TreemapChartSpecTransformer;
|
|
@@ -79747,11 +79904,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79747
79904
|
constructor() {
|
|
79748
79905
|
super(...arguments);
|
|
79749
79906
|
this.transformerConstructor = WaterfallChartSpecTransformer;
|
|
79750
|
-
this.type =
|
|
79907
|
+
this.type = "waterfall";
|
|
79751
79908
|
this.seriesType = exports.SeriesTypeEnum.waterfall;
|
|
79752
79909
|
}
|
|
79753
79910
|
}
|
|
79754
|
-
WaterfallChart.type =
|
|
79911
|
+
WaterfallChart.type = "waterfall";
|
|
79755
79912
|
WaterfallChart.seriesType = exports.SeriesTypeEnum.waterfall;
|
|
79756
79913
|
WaterfallChart.view = 'singleDefault';
|
|
79757
79914
|
WaterfallChart.transformerConstructor = WaterfallChartSpecTransformer;
|
|
@@ -79764,8 +79921,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79764
79921
|
_getDefaultSeriesSpec(spec) {
|
|
79765
79922
|
var _a;
|
|
79766
79923
|
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 ===
|
|
79924
|
+
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 });
|
|
79925
|
+
seriesSpec[seriesSpec.direction === "vertical" ? 'yField' : 'xField'] = dataFields;
|
|
79769
79926
|
return seriesSpec;
|
|
79770
79927
|
}
|
|
79771
79928
|
transformSpec(spec) {
|
|
@@ -79788,11 +79945,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79788
79945
|
constructor() {
|
|
79789
79946
|
super(...arguments);
|
|
79790
79947
|
this.transformerConstructor = BoxPlotChartSpecTransformer;
|
|
79791
|
-
this.type =
|
|
79948
|
+
this.type = "boxPlot";
|
|
79792
79949
|
this.seriesType = exports.SeriesTypeEnum.boxPlot;
|
|
79793
79950
|
}
|
|
79794
79951
|
}
|
|
79795
|
-
BoxPlotChart.type =
|
|
79952
|
+
BoxPlotChart.type = "boxPlot";
|
|
79796
79953
|
BoxPlotChart.seriesType = exports.SeriesTypeEnum.boxPlot;
|
|
79797
79954
|
BoxPlotChart.view = 'singleDefault';
|
|
79798
79955
|
BoxPlotChart.transformerConstructor = BoxPlotChartSpecTransformer;
|
|
@@ -79836,11 +79993,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79836
79993
|
constructor() {
|
|
79837
79994
|
super(...arguments);
|
|
79838
79995
|
this.transformerConstructor = SankeyChartSpecTransformer;
|
|
79839
|
-
this.type =
|
|
79996
|
+
this.type = "sankey";
|
|
79840
79997
|
this.seriesType = exports.SeriesTypeEnum.sankey;
|
|
79841
79998
|
}
|
|
79842
79999
|
}
|
|
79843
|
-
SankeyChart.type =
|
|
80000
|
+
SankeyChart.type = "sankey";
|
|
79844
80001
|
SankeyChart.seriesType = exports.SeriesTypeEnum.sankey;
|
|
79845
80002
|
SankeyChart.view = 'singleDefault';
|
|
79846
80003
|
SankeyChart.transformerConstructor = SankeyChartSpecTransformer;
|
|
@@ -79854,7 +80011,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79854
80011
|
var _a, _b;
|
|
79855
80012
|
const series = Object.assign({}, super._getDefaultSeriesSpec(spec));
|
|
79856
80013
|
series.area = spec.area;
|
|
79857
|
-
if (spec.direction ===
|
|
80014
|
+
if (spec.direction === "horizontal") {
|
|
79858
80015
|
series.xField = (_a = spec.xField) !== null && _a !== void 0 ? _a : [spec.minField, spec.maxField];
|
|
79859
80016
|
}
|
|
79860
80017
|
else {
|
|
@@ -79873,11 +80030,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79873
80030
|
constructor() {
|
|
79874
80031
|
super(...arguments);
|
|
79875
80032
|
this.transformerConstructor = RangeAreaChartSpecTransformer;
|
|
79876
|
-
this.type =
|
|
80033
|
+
this.type = "rangeArea";
|
|
79877
80034
|
this.seriesType = exports.SeriesTypeEnum.rangeArea;
|
|
79878
80035
|
}
|
|
79879
80036
|
}
|
|
79880
|
-
RangeAreaChart.type =
|
|
80037
|
+
RangeAreaChart.type = "rangeArea";
|
|
79881
80038
|
RangeAreaChart.seriesType = exports.SeriesTypeEnum.rangeArea;
|
|
79882
80039
|
RangeAreaChart.view = 'singleDefault';
|
|
79883
80040
|
RangeAreaChart.transformerConstructor = RangeAreaChartSpecTransformer;
|
|
@@ -79897,11 +80054,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79897
80054
|
constructor() {
|
|
79898
80055
|
super(...arguments);
|
|
79899
80056
|
this.transformerConstructor = HeatmapChartSpecTransformer;
|
|
79900
|
-
this.type =
|
|
80057
|
+
this.type = "heatmap";
|
|
79901
80058
|
this.seriesType = exports.SeriesTypeEnum.heatmap;
|
|
79902
80059
|
}
|
|
79903
80060
|
}
|
|
79904
|
-
HeatmapChart.type =
|
|
80061
|
+
HeatmapChart.type = "heatmap";
|
|
79905
80062
|
HeatmapChart.seriesType = exports.SeriesTypeEnum.heatmap;
|
|
79906
80063
|
HeatmapChart.view = 'singleDefault';
|
|
79907
80064
|
HeatmapChart.transformerConstructor = HeatmapChartSpecTransformer;
|
|
@@ -79943,11 +80100,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
79943
80100
|
constructor() {
|
|
79944
80101
|
super(...arguments);
|
|
79945
80102
|
this.transformerConstructor = CorrelationChartSpecTransformer;
|
|
79946
|
-
this.type =
|
|
80103
|
+
this.type = "correlation";
|
|
79947
80104
|
this.seriesType = exports.SeriesTypeEnum.correlation;
|
|
79948
80105
|
}
|
|
79949
80106
|
}
|
|
79950
|
-
CorrelationChart.type =
|
|
80107
|
+
CorrelationChart.type = "correlation";
|
|
79951
80108
|
CorrelationChart.seriesType = exports.SeriesTypeEnum.correlation;
|
|
79952
80109
|
CorrelationChart.view = 'singleDefault';
|
|
79953
80110
|
CorrelationChart.transformerConstructor = CorrelationChartSpecTransformer;
|
|
@@ -80250,7 +80407,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80250
80407
|
if (!targetAxis) {
|
|
80251
80408
|
return;
|
|
80252
80409
|
}
|
|
80253
|
-
axis.event.on(exports.ChartEvent.scaleDomainUpdate, { filter: ({ model }) => model.id === axis.id }, () => {
|
|
80410
|
+
axis.event.on(exports.ChartEvent.scaleDomainUpdate, { filter: ({ model }) => model.id === axis.id || model.id === targetAxis.id }, () => {
|
|
80254
80411
|
zeroAlign(targetAxis, axis);
|
|
80255
80412
|
});
|
|
80256
80413
|
}
|
|
@@ -80296,7 +80453,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80296
80453
|
this._compiledProductId = id;
|
|
80297
80454
|
}
|
|
80298
80455
|
}
|
|
80299
|
-
ComponentMark.type =
|
|
80456
|
+
ComponentMark.type = "component";
|
|
80300
80457
|
const registerComponentMark = () => {
|
|
80301
80458
|
Factory.registerMark(ComponentMark.type, ComponentMark);
|
|
80302
80459
|
};
|
|
@@ -80784,11 +80941,13 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80784
80941
|
const isX = isXAxis(this.getOrient());
|
|
80785
80942
|
const isValidAxis = (item) => {
|
|
80786
80943
|
var _a;
|
|
80787
|
-
return (
|
|
80944
|
+
return (isX ? !isXAxis(item.getOrient()) : isXAxis(item.getOrient())) &&
|
|
80788
80945
|
isContinuous(item.getScale().type) &&
|
|
80789
|
-
(
|
|
80946
|
+
item.getTickData()
|
|
80947
|
+
? (_a = item
|
|
80790
80948
|
.getTickData()
|
|
80791
|
-
.getLatestData()) === null || _a === void 0 ? void 0 : _a.find((d) => d.value === 0)
|
|
80949
|
+
.getLatestData()) === null || _a === void 0 ? void 0 : _a.find((d) => d.value === 0)
|
|
80950
|
+
: item.getScale().ticks().includes(0);
|
|
80792
80951
|
};
|
|
80793
80952
|
const relativeAxes = axesComponents.filter(item => isValidAxis(item));
|
|
80794
80953
|
if (relativeAxes.length) {
|
|
@@ -80833,7 +80992,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80833
80992
|
if (!axesSpec) {
|
|
80834
80993
|
return null;
|
|
80835
80994
|
}
|
|
80836
|
-
const isHorizontal = chartSpec.direction ===
|
|
80995
|
+
const isHorizontal = chartSpec.direction === "horizontal";
|
|
80837
80996
|
if (!isArray$1(axesSpec)) {
|
|
80838
80997
|
if (!isValidCartesianAxis(axesSpec)) {
|
|
80839
80998
|
return null;
|
|
@@ -80948,7 +81107,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
80948
81107
|
}
|
|
80949
81108
|
this._tick = this._spec.tick;
|
|
80950
81109
|
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) ===
|
|
81110
|
+
this._inverse = transformInverse(this._spec, (chartSpec === null || chartSpec === void 0 ? void 0 : chartSpec.direction) === "horizontal");
|
|
80952
81111
|
}
|
|
80953
81112
|
onLayoutStart(layoutRect, viewRect, ctx) {
|
|
80954
81113
|
super.onLayoutStart(layoutRect, viewRect, ctx);
|
|
@@ -81098,19 +81257,22 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81098
81257
|
if (!depth) {
|
|
81099
81258
|
this._dataFieldText = s.getFieldAlias(field[0]);
|
|
81100
81259
|
}
|
|
81101
|
-
const seriesData = (_c = s.getViewDataStatistics) === null || _c === void 0 ? void 0 : _c.call(s);
|
|
81102
81260
|
if (field) {
|
|
81103
|
-
|
|
81104
|
-
|
|
81105
|
-
|
|
81261
|
+
const viewData = s.getViewData();
|
|
81262
|
+
if (rawData) {
|
|
81263
|
+
field.forEach(f => {
|
|
81106
81264
|
data.push(s.getRawDataStatisticsByField(f, false));
|
|
81107
|
-
}
|
|
81108
|
-
|
|
81265
|
+
});
|
|
81266
|
+
}
|
|
81267
|
+
else if (viewData && viewData.latestData && viewData.latestData.length) {
|
|
81268
|
+
const seriesData = (_c = s.getViewDataStatistics) === null || _c === void 0 ? void 0 : _c.call(s);
|
|
81269
|
+
field.forEach(f => {
|
|
81270
|
+
var _a;
|
|
81109
81271
|
if ((_a = seriesData === null || seriesData === void 0 ? void 0 : seriesData.latestData) === null || _a === void 0 ? void 0 : _a[f]) {
|
|
81110
81272
|
data.push(seriesData.latestData[f]);
|
|
81111
81273
|
}
|
|
81112
|
-
}
|
|
81113
|
-
}
|
|
81274
|
+
});
|
|
81275
|
+
}
|
|
81114
81276
|
}
|
|
81115
81277
|
}, {
|
|
81116
81278
|
userId: this._seriesUserId,
|
|
@@ -81504,11 +81666,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81504
81666
|
}
|
|
81505
81667
|
computeLinearDomain(data) {
|
|
81506
81668
|
const domain = [];
|
|
81507
|
-
data.
|
|
81508
|
-
|
|
81509
|
-
|
|
81510
|
-
|
|
81511
|
-
|
|
81669
|
+
if (data.length) {
|
|
81670
|
+
data.forEach(d => {
|
|
81671
|
+
const { min, max } = d;
|
|
81672
|
+
domain[0] = domain[0] === undefined ? min : Math.min(domain[0], min);
|
|
81673
|
+
domain[1] = domain[1] === undefined ? max : Math.max(domain[1], max);
|
|
81674
|
+
});
|
|
81675
|
+
}
|
|
81676
|
+
else {
|
|
81677
|
+
domain[0] = 0;
|
|
81678
|
+
domain[1] = 0;
|
|
81679
|
+
}
|
|
81512
81680
|
this.expandDomain(domain);
|
|
81513
81681
|
this.includeZero(domain);
|
|
81514
81682
|
this.setDomainMinMax(domain);
|
|
@@ -81737,6 +81905,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
81737
81905
|
}
|
|
81738
81906
|
}
|
|
81739
81907
|
computeBandDomain(data) {
|
|
81908
|
+
if (!data.length) {
|
|
81909
|
+
return [];
|
|
81910
|
+
}
|
|
81740
81911
|
if (data.length === 1) {
|
|
81741
81912
|
return data[0].values;
|
|
81742
81913
|
}
|
|
@@ -82221,19 +82392,22 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
82221
82392
|
if (!depth) {
|
|
82222
82393
|
this._dataFieldText = s.getFieldAlias(field[0]);
|
|
82223
82394
|
}
|
|
82224
|
-
const seriesData = (_c = s.getViewDataStatistics) === null || _c === void 0 ? void 0 : _c.call(s);
|
|
82225
82395
|
if (field) {
|
|
82226
|
-
|
|
82227
|
-
|
|
82228
|
-
|
|
82396
|
+
const viewData = s.getViewData();
|
|
82397
|
+
if (rawData) {
|
|
82398
|
+
field.forEach(f => {
|
|
82229
82399
|
data.push(s.getRawDataStatisticsByField(f, false));
|
|
82230
|
-
}
|
|
82231
|
-
|
|
82400
|
+
});
|
|
82401
|
+
}
|
|
82402
|
+
else if (viewData && viewData.latestData && viewData.latestData.length) {
|
|
82403
|
+
const seriesData = (_c = s.getViewDataStatistics) === null || _c === void 0 ? void 0 : _c.call(s);
|
|
82404
|
+
field.forEach(f => {
|
|
82405
|
+
var _a;
|
|
82232
82406
|
if ((_a = seriesData === null || seriesData === void 0 ? void 0 : seriesData.latestData) === null || _a === void 0 ? void 0 : _a[f]) {
|
|
82233
82407
|
data.push(seriesData.latestData[f]);
|
|
82234
82408
|
}
|
|
82235
|
-
}
|
|
82236
|
-
}
|
|
82409
|
+
});
|
|
82410
|
+
}
|
|
82237
82411
|
}
|
|
82238
82412
|
}, {
|
|
82239
82413
|
userId: this._seriesUserId,
|
|
@@ -82340,7 +82514,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
82340
82514
|
if (latestData && !isArray$1(latestData)) {
|
|
82341
82515
|
this.computeData('force');
|
|
82342
82516
|
}
|
|
82343
|
-
|
|
82517
|
+
else {
|
|
82518
|
+
return latestData || [];
|
|
82519
|
+
}
|
|
82344
82520
|
}
|
|
82345
82521
|
return this._scale.ticks();
|
|
82346
82522
|
}
|
|
@@ -82376,7 +82552,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
82376
82552
|
innerRadius, startAngle: this._startAngle, endAngle: this._endAngle });
|
|
82377
82553
|
const attrs = Object.assign(Object.assign({}, commonAttrs), { title: {
|
|
82378
82554
|
text: this._spec.title.text || this._dataFieldText
|
|
82379
|
-
}, items: items.length ? [items] : [] });
|
|
82555
|
+
}, items: items.length ? [items] : [], orient: 'angle' });
|
|
82380
82556
|
if (this._spec.grid.visible) {
|
|
82381
82557
|
attrs.grid = Object.assign({ type: 'line', smoothLink: true, items }, commonAttrs);
|
|
82382
82558
|
}
|
|
@@ -82404,7 +82580,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
82404
82580
|
const commonAttrs = Object.assign(Object.assign({}, this.getLayoutStartPoint()), { start: startPoint, end: endPoint, verticalFactor: -1 });
|
|
82405
82581
|
const attrs = Object.assign(Object.assign({}, commonAttrs), { title: {
|
|
82406
82582
|
text: this._spec.title.text || this._dataFieldText
|
|
82407
|
-
}, items: items.length ? [items] : [] });
|
|
82583
|
+
}, items: items.length ? [items] : [], orient: 'radius' });
|
|
82408
82584
|
if ((_a = this._spec.grid) === null || _a === void 0 ? void 0 : _a.visible) {
|
|
82409
82585
|
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
82586
|
}
|
|
@@ -83432,19 +83608,19 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
83432
83608
|
return result;
|
|
83433
83609
|
};
|
|
83434
83610
|
const positionType = {
|
|
83435
|
-
[
|
|
83436
|
-
[
|
|
83437
|
-
[
|
|
83438
|
-
[
|
|
83439
|
-
[
|
|
83440
|
-
[
|
|
83441
|
-
[
|
|
83442
|
-
[
|
|
83443
|
-
[
|
|
83444
|
-
[
|
|
83445
|
-
[
|
|
83446
|
-
[
|
|
83447
|
-
[
|
|
83611
|
+
["left"]: ['left', 'middle'],
|
|
83612
|
+
["right"]: ['right', 'middle'],
|
|
83613
|
+
["inside"]: ['middle', 'middle'],
|
|
83614
|
+
["top"]: ['middle', 'top'],
|
|
83615
|
+
["lt"]: ['left', 'top'],
|
|
83616
|
+
["tl"]: ['left', 'top'],
|
|
83617
|
+
["rt"]: ['right', 'top'],
|
|
83618
|
+
["tr"]: ['right', 'top'],
|
|
83619
|
+
["bottom"]: ['middle', 'bottom'],
|
|
83620
|
+
["bl"]: ['left', 'bottom'],
|
|
83621
|
+
["lb"]: ['left', 'bottom'],
|
|
83622
|
+
["br"]: ['right', 'bottom'],
|
|
83623
|
+
["rb"]: ['right', 'bottom']
|
|
83448
83624
|
};
|
|
83449
83625
|
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
83626
|
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 +84352,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84176
84352
|
bottom = getActualTooltipPositionValue(posBottom, event);
|
|
84177
84353
|
}
|
|
84178
84354
|
else if (isValid$1(position) &&
|
|
84179
|
-
positionMode !==
|
|
84355
|
+
positionMode !== "pointer" &&
|
|
84180
84356
|
actualTooltip.activeType === 'mark') {
|
|
84181
84357
|
isFixedPosition = true;
|
|
84182
84358
|
const element = params.item;
|
|
@@ -84829,6 +85005,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84829
85005
|
this._svgHtmlCache = '';
|
|
84830
85006
|
}
|
|
84831
85007
|
}
|
|
85008
|
+
const builtInShape = {
|
|
85009
|
+
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'
|
|
85010
|
+
};
|
|
84832
85011
|
function getSvgHtml(option, valueToHtml) {
|
|
84833
85012
|
var _a, _b, _c, _d, _e, _f, _g;
|
|
84834
85013
|
if (!(option === null || option === void 0 ? void 0 : option.hasShape) || !option.symbolType) {
|
|
@@ -84840,14 +85019,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
84840
85019
|
const lineWidth = option.lineWidth ? valueToHtml(option.lineWidth) + 'px' : '0px';
|
|
84841
85020
|
let fillString = 'currentColor';
|
|
84842
85021
|
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()}`;
|
|
85022
|
+
const sizeNumber = pixelPropertyStrToNumber(size);
|
|
85023
|
+
const createSymbol = (symbolType) => new Symbol$1({ symbolType, size: sizeNumber, fill: true });
|
|
85024
|
+
let symbol = createSymbol((_a = builtInShape[symbolType]) !== null && _a !== void 0 ? _a : symbolType);
|
|
85025
|
+
const parsedPath = symbol.getParsedPath();
|
|
85026
|
+
if (!parsedPath.path) {
|
|
85027
|
+
symbol = createSymbol(parsedPath.pathStr);
|
|
84850
85028
|
}
|
|
85029
|
+
const pathModel = symbol.getParsedPath().path;
|
|
85030
|
+
const path = pathModel.toString();
|
|
85031
|
+
const bounds = pathModel.bounds;
|
|
85032
|
+
let viewBox = `${bounds.x1} ${bounds.y1} ${bounds.width()} ${bounds.height()}`;
|
|
84851
85033
|
if (lineWidth !== '0px') {
|
|
84852
85034
|
const [x, y, w, h] = viewBox.split(' ').map(n => Number(n));
|
|
84853
85035
|
const lw = Number(lineWidth.slice(0, -2));
|
|
@@ -86737,11 +86919,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86737
86919
|
const { xField, yField } = this._spec;
|
|
86738
86920
|
if ((xField === null || xField === void 0 ? void 0 : xField.visible) && xField.defaultSelect) {
|
|
86739
86921
|
const { axisIndex, datum } = xField.defaultSelect;
|
|
86740
|
-
this._defaultCrosshair(axisIndex, datum,
|
|
86922
|
+
this._defaultCrosshair(axisIndex, datum, 1);
|
|
86741
86923
|
}
|
|
86742
86924
|
if ((yField === null || yField === void 0 ? void 0 : yField.visible) && yField.defaultSelect) {
|
|
86743
86925
|
const { axisIndex, datum } = yField.defaultSelect;
|
|
86744
|
-
this._defaultCrosshair(axisIndex, datum,
|
|
86926
|
+
this._defaultCrosshair(axisIndex, datum, 2);
|
|
86745
86927
|
}
|
|
86746
86928
|
}
|
|
86747
86929
|
_defaultCrosshair(axisIndex, datum, tag) {
|
|
@@ -86749,7 +86931,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86749
86931
|
if (!axis) {
|
|
86750
86932
|
return;
|
|
86751
86933
|
}
|
|
86752
|
-
if (tag ===
|
|
86934
|
+
if (tag === 1) {
|
|
86753
86935
|
this._currValueX.clear();
|
|
86754
86936
|
this._currValueX.set(axisIndex, { axis, v: datum });
|
|
86755
86937
|
}
|
|
@@ -86832,7 +87014,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86832
87014
|
this._currValueY.clear();
|
|
86833
87015
|
xAxisMap && xAxisMap.size && this._getAllAxisValues(xAxisMap, relativeX, this._currValueX, true);
|
|
86834
87016
|
yAxisMap && yAxisMap.size && this._getAllAxisValues(yAxisMap, relativeY, this._currValueY, false);
|
|
86835
|
-
this.layoutByValue(
|
|
87017
|
+
this.layoutByValue(3);
|
|
86836
87018
|
}
|
|
86837
87019
|
hide() {
|
|
86838
87020
|
this._xCrosshair && this._xCrosshair.hideAll();
|
|
@@ -86842,7 +87024,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
86842
87024
|
this._yLeftLabel && this._yLeftLabel.hideAll();
|
|
86843
87025
|
this._yRightLabel && this._yRightLabel.hideAll();
|
|
86844
87026
|
}
|
|
86845
|
-
layoutByValue(tag =
|
|
87027
|
+
layoutByValue(tag = 3) {
|
|
86846
87028
|
var _a, _b, _c, _d;
|
|
86847
87029
|
if (!this.enable) {
|
|
86848
87030
|
return;
|
|
@@ -87025,8 +87207,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87025
87207
|
}
|
|
87026
87208
|
}
|
|
87027
87209
|
if (tag) {
|
|
87028
|
-
|
|
87029
|
-
|
|
87210
|
+
this._layoutHorizontal(yCrossHairInfo, valueHeight !== null && valueHeight !== void 0 ? valueHeight : 0, offsetHeight);
|
|
87211
|
+
this._layoutVertical(xCrossHairInfo, indexWidth !== null && indexWidth !== void 0 ? indexWidth : 0, offsetWidth);
|
|
87030
87212
|
}
|
|
87031
87213
|
if (this.enableRemain) {
|
|
87032
87214
|
this._cacheXCrossHairInfo = Object.assign(Object.assign({}, xCrossHairInfo), { _isCache: true });
|
|
@@ -87251,11 +87433,11 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87251
87433
|
const { categoryField, valueField } = this._spec;
|
|
87252
87434
|
if ((categoryField === null || categoryField === void 0 ? void 0 : categoryField.visible) && categoryField.defaultSelect) {
|
|
87253
87435
|
const { axisIndex, datum } = categoryField.defaultSelect;
|
|
87254
|
-
this._defaultCrosshair(axisIndex, datum,
|
|
87436
|
+
this._defaultCrosshair(axisIndex, datum, 1);
|
|
87255
87437
|
}
|
|
87256
87438
|
if ((valueField === null || valueField === void 0 ? void 0 : valueField.visible) && valueField.defaultSelect) {
|
|
87257
87439
|
const { axisIndex, datum } = valueField.defaultSelect;
|
|
87258
|
-
this._defaultCrosshair(axisIndex, datum,
|
|
87440
|
+
this._defaultCrosshair(axisIndex, datum, 2);
|
|
87259
87441
|
}
|
|
87260
87442
|
}
|
|
87261
87443
|
_defaultCrosshair(axisIndex, datum, tag) {
|
|
@@ -87263,7 +87445,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87263
87445
|
if (!axis) {
|
|
87264
87446
|
return;
|
|
87265
87447
|
}
|
|
87266
|
-
if (tag ===
|
|
87448
|
+
if (tag === 1) {
|
|
87267
87449
|
this._currValueAngle.clear();
|
|
87268
87450
|
const polarCoord = {
|
|
87269
87451
|
angle: axis.valueToPosition(datum),
|
|
@@ -87281,7 +87463,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87281
87463
|
const canvasPosition = axis.coordToPoint(polarCoord);
|
|
87282
87464
|
this._currValueRadius.set(axisIndex, this._getValueByAxis(axis, canvasPosition));
|
|
87283
87465
|
}
|
|
87284
|
-
this.layoutByValue(
|
|
87466
|
+
this.layoutByValue(3);
|
|
87285
87467
|
}
|
|
87286
87468
|
hide() {
|
|
87287
87469
|
this._radiusCrosshair && this._radiusCrosshair.hideAll();
|
|
@@ -87358,9 +87540,9 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87358
87540
|
this._currValueRadius.clear();
|
|
87359
87541
|
angleAxisMap && this._getAllAxisValues(angleAxisMap, { x: relativeX, y: relativeY }, this._currValueAngle);
|
|
87360
87542
|
radiusAxisMap && this._getAllAxisValues(radiusAxisMap, { x: relativeX, y: relativeY }, this._currValueRadius);
|
|
87361
|
-
this.layoutByValue(
|
|
87543
|
+
this.layoutByValue(3);
|
|
87362
87544
|
}
|
|
87363
|
-
layoutByValue(tag =
|
|
87545
|
+
layoutByValue(tag = 3) {
|
|
87364
87546
|
var _a, _b, _c, _d;
|
|
87365
87547
|
if (!this.enable) {
|
|
87366
87548
|
return;
|
|
@@ -87448,8 +87630,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87448
87630
|
}
|
|
87449
87631
|
}
|
|
87450
87632
|
if (tag) {
|
|
87451
|
-
|
|
87452
|
-
|
|
87633
|
+
this._layoutHorizontal(radiusCrossHairInfo);
|
|
87634
|
+
this._layoutVertical(angleCrossHairInfo);
|
|
87453
87635
|
}
|
|
87454
87636
|
if (this.enableRemain) {
|
|
87455
87637
|
this._cacheAngleCrossHairInfo = Object.assign(Object.assign({}, angleCrossHairInfo), { _isCache: true });
|
|
@@ -87719,7 +87901,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87719
87901
|
onZoomChange: (tag) => {
|
|
87720
87902
|
var _a, _b;
|
|
87721
87903
|
const axis = this._relatedAxisComponent;
|
|
87722
|
-
if (axis && this._filterMode ===
|
|
87904
|
+
if (axis && this._filterMode === "axis") {
|
|
87723
87905
|
const axisScale = axis.getScale();
|
|
87724
87906
|
const axisSpec = axis.getSpec();
|
|
87725
87907
|
if (this._auto && this._getAxisBandSize(axisSpec) && this._spec.ignoreBandSize) {
|
|
@@ -87829,7 +88011,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87829
88011
|
}
|
|
87830
88012
|
};
|
|
87831
88013
|
this._orient = getOrient(spec);
|
|
87832
|
-
this._isHorizontal = getDirectionByOrient(this._orient) ===
|
|
88014
|
+
this._isHorizontal = getDirectionByOrient(this._orient) === "horizontal";
|
|
87833
88015
|
}
|
|
87834
88016
|
created() {
|
|
87835
88017
|
super.created();
|
|
@@ -87862,7 +88044,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
87862
88044
|
this._relatedAxisComponent = bandAxis;
|
|
87863
88045
|
}
|
|
87864
88046
|
}
|
|
87865
|
-
if (this._relatedAxisComponent && this._filterMode ===
|
|
88047
|
+
if (this._relatedAxisComponent && this._filterMode === "axis") {
|
|
87866
88048
|
this._relatedAxisComponent.autoIndentOnce = true;
|
|
87867
88049
|
}
|
|
87868
88050
|
}
|
|
@@ -88090,7 +88272,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88090
88272
|
}
|
|
88091
88273
|
this._minSpan = Math.max(0, this._minSpan);
|
|
88092
88274
|
this._maxSpan = Math.min(this._maxSpan, 1);
|
|
88093
|
-
if ((!this._relatedAxisComponent || this._filterMode !==
|
|
88275
|
+
if ((!this._relatedAxisComponent || this._filterMode !== "axis") &&
|
|
88094
88276
|
(this._start !== 0 || this._end !== 1)) {
|
|
88095
88277
|
this._newDomain = this._parseDomainFromState(this._startValue, this._endValue);
|
|
88096
88278
|
}
|
|
@@ -88129,7 +88311,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88129
88311
|
}
|
|
88130
88312
|
}
|
|
88131
88313
|
_addTransformToSeries() {
|
|
88132
|
-
if (!this._relatedAxisComponent || this._filterMode !==
|
|
88314
|
+
if (!this._relatedAxisComponent || this._filterMode !== "axis") {
|
|
88133
88315
|
registerDataSetInstanceTransform(this._option.dataSet, 'dataFilterWithNewDomain', dataFilterWithNewDomain);
|
|
88134
88316
|
eachSeries(this._regions, s => {
|
|
88135
88317
|
s.addViewDataFilter({
|
|
@@ -88404,7 +88586,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88404
88586
|
return yScale.scale(min) + this.getLayoutStartPoint().y + offsetTop + offsetHandler;
|
|
88405
88587
|
};
|
|
88406
88588
|
this._valueField = 'y';
|
|
88407
|
-
this._filterMode = (_a = spec.filterMode) !== null && _a !== void 0 ? _a :
|
|
88589
|
+
this._filterMode = (_a = spec.filterMode) !== null && _a !== void 0 ? _a : "filter";
|
|
88408
88590
|
}
|
|
88409
88591
|
created() {
|
|
88410
88592
|
super.created();
|
|
@@ -88596,7 +88778,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88596
88778
|
this.event.emit(exports.ChartEvent.dataZoomChange, {
|
|
88597
88779
|
model: this,
|
|
88598
88780
|
value: {
|
|
88599
|
-
filterData: this._filterMode !==
|
|
88781
|
+
filterData: this._filterMode !== "axis",
|
|
88600
88782
|
start,
|
|
88601
88783
|
end,
|
|
88602
88784
|
startValue: this._startValue,
|
|
@@ -88704,7 +88886,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88704
88886
|
this.layoutZIndex = exports.LayoutZIndex.DataZoom;
|
|
88705
88887
|
this.layoutLevel = exports.LayoutLevel.DataZoom;
|
|
88706
88888
|
this.layoutType = 'region-relative';
|
|
88707
|
-
this._filterMode = (_a = spec.filterMode) !== null && _a !== void 0 ? _a :
|
|
88889
|
+
this._filterMode = (_a = spec.filterMode) !== null && _a !== void 0 ? _a : "axis";
|
|
88708
88890
|
}
|
|
88709
88891
|
setAttrFromSpec() {
|
|
88710
88892
|
super.setAttrFromSpec();
|
|
@@ -88782,7 +88964,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
88782
88964
|
this.event.emit(exports.ChartEvent.scrollBarChange, {
|
|
88783
88965
|
model: this,
|
|
88784
88966
|
value: {
|
|
88785
|
-
filterData: this._filterMode !==
|
|
88967
|
+
filterData: this._filterMode !== "axis",
|
|
88786
88968
|
start: this._start,
|
|
88787
88969
|
end: this._end,
|
|
88788
88970
|
startValue: this._startValue,
|
|
@@ -89205,7 +89387,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89205
89387
|
endRelativeSeries
|
|
89206
89388
|
};
|
|
89207
89389
|
const lines = [];
|
|
89208
|
-
const dataPoints = data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
89390
|
+
const dataPoints = data.latestData[0] && data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
89209
89391
|
const xDomain = relativeSeries.getXAxisHelper().getScale(0).domain();
|
|
89210
89392
|
const yDomain = relativeSeries.getYAxisHelper().getScale(0).domain();
|
|
89211
89393
|
dataPoints.forEach((datum) => {
|
|
@@ -89251,7 +89433,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89251
89433
|
}
|
|
89252
89434
|
function coordinateLayout(data, relativeSeries, autoRange, coordinatesOffset) {
|
|
89253
89435
|
const points = [];
|
|
89254
|
-
const dataPoints = data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
89436
|
+
const dataPoints = data.latestData[0] && data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
89255
89437
|
const isArrayCoordinatesOffset = isArray$1(coordinatesOffset);
|
|
89256
89438
|
dataPoints.forEach((datum, index) => {
|
|
89257
89439
|
var _a, _b, _c, _d;
|
|
@@ -89622,6 +89804,17 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89622
89804
|
return {};
|
|
89623
89805
|
}
|
|
89624
89806
|
|
|
89807
|
+
function markerFilter(data, options) {
|
|
89808
|
+
if (options && options.getRelativeSeries) {
|
|
89809
|
+
const series = options.getRelativeSeries();
|
|
89810
|
+
if (series) {
|
|
89811
|
+
const viewData = series.getViewData();
|
|
89812
|
+
return viewData && viewData.latestData && viewData.latestData.length ? data : [];
|
|
89813
|
+
}
|
|
89814
|
+
}
|
|
89815
|
+
return data;
|
|
89816
|
+
}
|
|
89817
|
+
|
|
89625
89818
|
class MarkLine extends BaseMarker {
|
|
89626
89819
|
constructor() {
|
|
89627
89820
|
super(...arguments);
|
|
@@ -89716,7 +89909,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89716
89909
|
points = positionLayout(spec.positions, relativeSeries, spec.regionRelative);
|
|
89717
89910
|
}
|
|
89718
89911
|
const seriesData = this._relativeSeries.getViewData().latestData;
|
|
89719
|
-
const dataPoints = data.latestData[0].latestData
|
|
89912
|
+
const dataPoints = data.latestData[0] && data.latestData[0].latestData ? data.latestData[0].latestData : data.latestData;
|
|
89720
89913
|
let limitRect;
|
|
89721
89914
|
if (spec.clip || ((_b = spec.label) === null || _b === void 0 ? void 0 : _b.confine)) {
|
|
89722
89915
|
const { minX, maxX, minY, maxY } = computeClipRange([
|
|
@@ -89816,6 +90009,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89816
90009
|
}
|
|
89817
90010
|
registerDataSetInstanceTransform(this._option.dataSet, 'markerAggregation', markerAggregation);
|
|
89818
90011
|
registerDataSetInstanceTransform(this._option.dataSet, 'markerRegression', markerRegression);
|
|
90012
|
+
registerDataSetInstanceTransform(this._option.dataSet, 'markerFilter', markerFilter);
|
|
89819
90013
|
this._isXYLayout = doXProcess || doXYY1Process || doYProcess || doYXX1Process || doXYProcess;
|
|
89820
90014
|
let options;
|
|
89821
90015
|
let processData = relativeSeries.getViewData();
|
|
@@ -89886,6 +90080,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
89886
90080
|
options
|
|
89887
90081
|
});
|
|
89888
90082
|
}
|
|
90083
|
+
if (needAggr || needRegr) {
|
|
90084
|
+
data.transform({
|
|
90085
|
+
type: 'markerFilter',
|
|
90086
|
+
options: this._getAllRelativeSeries()
|
|
90087
|
+
});
|
|
90088
|
+
}
|
|
89889
90089
|
data.target.on('change', () => {
|
|
89890
90090
|
this._markerLayout();
|
|
89891
90091
|
});
|
|
@@ -90128,7 +90328,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90128
90328
|
}
|
|
90129
90329
|
const seriesData = this._relativeSeries.getViewData().latestData;
|
|
90130
90330
|
const dataPoints = data
|
|
90131
|
-
? data.latestData[0].latestData
|
|
90331
|
+
? data.latestData[0] && data.latestData[0].latestData
|
|
90132
90332
|
? data.latestData[0].latestData
|
|
90133
90333
|
: data.latestData
|
|
90134
90334
|
: seriesData;
|
|
@@ -90183,6 +90383,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90183
90383
|
}
|
|
90184
90384
|
const seriesData = relativeSeries.getViewData();
|
|
90185
90385
|
registerDataSetInstanceTransform(this._option.dataSet, 'markerAggregation', markerAggregation);
|
|
90386
|
+
registerDataSetInstanceTransform(this._option.dataSet, 'markerFilter', markerFilter);
|
|
90186
90387
|
const data = new DataView(this._option.dataSet, { name: `${this.type}_${this.id}_data` });
|
|
90187
90388
|
data.parse([seriesData], {
|
|
90188
90389
|
type: 'dataview'
|
|
@@ -90191,6 +90392,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90191
90392
|
type: 'markerAggregation',
|
|
90192
90393
|
options
|
|
90193
90394
|
});
|
|
90395
|
+
if (options) {
|
|
90396
|
+
data.transform({
|
|
90397
|
+
type: 'markerFilter',
|
|
90398
|
+
options: this._getAllRelativeSeries()
|
|
90399
|
+
});
|
|
90400
|
+
}
|
|
90194
90401
|
data.target.on('change', () => {
|
|
90195
90402
|
this._markerLayout();
|
|
90196
90403
|
});
|
|
@@ -90701,7 +90908,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90701
90908
|
const datum = label.data;
|
|
90702
90909
|
const attribute = textAttribute(labelInfo, datum, labelSpec.formatMethod);
|
|
90703
90910
|
const x = (datum) => {
|
|
90704
|
-
if (series.direction ===
|
|
90911
|
+
if (series.direction === "vertical") {
|
|
90705
90912
|
return series.totalPositionX(datum, 'index', 0.5);
|
|
90706
90913
|
}
|
|
90707
90914
|
if (pos === 'middle') {
|
|
@@ -90716,7 +90923,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90716
90923
|
return series.totalPositionX(datum, 'end') + (datum.end >= datum.start ? offset : -offset);
|
|
90717
90924
|
};
|
|
90718
90925
|
const y = (datum) => {
|
|
90719
|
-
if (series.direction ===
|
|
90926
|
+
if (series.direction === "vertical") {
|
|
90720
90927
|
if (pos === 'middle') {
|
|
90721
90928
|
return (series.totalPositionY(datum, 'end') + series.totalPositionY(datum, 'start')) * 0.5;
|
|
90722
90929
|
}
|
|
@@ -90732,7 +90939,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90732
90939
|
};
|
|
90733
90940
|
attribute.x = x(datum);
|
|
90734
90941
|
attribute.y = y(datum);
|
|
90735
|
-
if (series.direction ===
|
|
90942
|
+
if (series.direction === "vertical") {
|
|
90736
90943
|
attribute.textBaseline =
|
|
90737
90944
|
pos === 'middle'
|
|
90738
90945
|
? pos
|
|
@@ -90860,8 +91067,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90860
91067
|
this._component = component;
|
|
90861
91068
|
}
|
|
90862
91069
|
}
|
|
90863
|
-
LabelMark.type =
|
|
90864
|
-
LabelMark.constructorType =
|
|
91070
|
+
LabelMark.type = "text";
|
|
91071
|
+
LabelMark.constructorType = "label";
|
|
90865
91072
|
const registerLabelMark = () => {
|
|
90866
91073
|
Factory.registerMark(LabelMark.constructorType, LabelMark);
|
|
90867
91074
|
registerTextGraphic();
|
|
@@ -90980,7 +91187,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90980
91187
|
if (spec.visible) {
|
|
90981
91188
|
const info = this._labelInfoMap.get(region);
|
|
90982
91189
|
const labelMark = this._createMark({
|
|
90983
|
-
type:
|
|
91190
|
+
type: "label",
|
|
90984
91191
|
name: `${markName}-label-${index}`
|
|
90985
91192
|
}, { noSeparateStyle: true, attributeContext: series.getMarkAttributeContext() });
|
|
90986
91193
|
labelMark.setTarget(mark);
|
|
@@ -90998,7 +91205,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
90998
91205
|
_initLabelComponent() {
|
|
90999
91206
|
this._labelInfoMap.forEach((regionLabelInfo, region) => {
|
|
91000
91207
|
if (this._layoutRule === 'region') {
|
|
91001
|
-
const component = this._createMark({ type:
|
|
91208
|
+
const component = this._createMark({ type: "component", name: `${region.getGroupMark().name}-label-component` }, {
|
|
91002
91209
|
componentType: 'label',
|
|
91003
91210
|
noSeparateStyle: true,
|
|
91004
91211
|
support3d: this._spec.support3d
|
|
@@ -91013,7 +91220,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91013
91220
|
}
|
|
91014
91221
|
else {
|
|
91015
91222
|
regionLabelInfo.forEach((labelInfo, i) => {
|
|
91016
|
-
const component = this._createMark({ type:
|
|
91223
|
+
const component = this._createMark({ type: "component", name: `${labelInfo.labelMark.name}-component` }, {
|
|
91017
91224
|
componentType: 'label',
|
|
91018
91225
|
noSeparateStyle: true,
|
|
91019
91226
|
support3d: labelInfo.baseMark.getSupport3d()
|
|
@@ -91185,8 +91392,8 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91185
91392
|
var _a;
|
|
91186
91393
|
const series = this._getSeries();
|
|
91187
91394
|
if ((_a = series.getSpec().totalLabel) === null || _a === void 0 ? void 0 : _a.visible) {
|
|
91188
|
-
const mark = series.getMarksInType([
|
|
91189
|
-
const textMark = this._createMark({ type:
|
|
91395
|
+
const mark = series.getMarksInType(["rect", "symbol"])[0];
|
|
91396
|
+
const textMark = this._createMark({ type: "label", name: `${mark.name}-total-label` });
|
|
91190
91397
|
this._baseMark = mark;
|
|
91191
91398
|
this._textMark = textMark;
|
|
91192
91399
|
this._initTextMarkStyle();
|
|
@@ -91202,7 +91409,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91202
91409
|
}
|
|
91203
91410
|
_initLabelComponent() {
|
|
91204
91411
|
const series = this._getSeries();
|
|
91205
|
-
const component = this._createMark({ type:
|
|
91412
|
+
const component = this._createMark({ type: "component", name: `${series.name}-total-label-component` }, {
|
|
91206
91413
|
componentType: 'label',
|
|
91207
91414
|
noSeparateStyle: true,
|
|
91208
91415
|
support3d: this._spec.support3d
|
|
@@ -91372,7 +91579,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91372
91579
|
}
|
|
91373
91580
|
const seriesData = this._relativeSeries.getViewData().latestData;
|
|
91374
91581
|
const dataPoints = data
|
|
91375
|
-
? data.latestData[0].latestData
|
|
91582
|
+
? data.latestData[0] && data.latestData[0].latestData
|
|
91376
91583
|
? data.latestData[0].latestData
|
|
91377
91584
|
: data.latestData
|
|
91378
91585
|
: seriesData;
|
|
@@ -91409,6 +91616,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91409
91616
|
return;
|
|
91410
91617
|
}
|
|
91411
91618
|
registerDataSetInstanceTransform(this._option.dataSet, 'markerAggregation', markerAggregation);
|
|
91619
|
+
registerDataSetInstanceTransform(this._option.dataSet, 'markerFilter', markerFilter);
|
|
91412
91620
|
let options;
|
|
91413
91621
|
if (isXYProcess) {
|
|
91414
91622
|
options = [this._processSpecXY(spec.x, spec.y)];
|
|
@@ -91424,6 +91632,12 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91424
91632
|
type: 'markerAggregation',
|
|
91425
91633
|
options
|
|
91426
91634
|
});
|
|
91635
|
+
if (options) {
|
|
91636
|
+
data.transform({
|
|
91637
|
+
type: 'markerFilter',
|
|
91638
|
+
options: this._getAllRelativeSeries()
|
|
91639
|
+
});
|
|
91640
|
+
}
|
|
91427
91641
|
data.target.on('change', () => {
|
|
91428
91642
|
this._markerLayout();
|
|
91429
91643
|
});
|
|
@@ -91888,7 +92102,7 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
91888
92102
|
return defaultStyle;
|
|
91889
92103
|
}
|
|
91890
92104
|
}
|
|
91891
|
-
ImageMark.type =
|
|
92105
|
+
ImageMark.type = "image";
|
|
91892
92106
|
const registerImageMark = () => {
|
|
91893
92107
|
Factory.registerMark(ImageMark.type, ImageMark);
|
|
91894
92108
|
registerImageGraphic();
|
|
@@ -93281,7 +93495,6 @@ C0.3-1.4,0.3-1.4,0.3-1.4z;`;
|
|
|
93281
93495
|
exports.registerWordCloudSeries = registerWordCloudSeries;
|
|
93282
93496
|
exports.removeTheme = removeTheme;
|
|
93283
93497
|
exports.seriesMarkInfoMap = seriesMarkInfoMap;
|
|
93284
|
-
exports.seriesMarkNameSet = seriesMarkNameSet;
|
|
93285
93498
|
exports.themeExist = themeExist;
|
|
93286
93499
|
exports.themes = themes;
|
|
93287
93500
|
exports.transformColorSchemeToStandardStruct = transformColorSchemeToStandardStruct;
|