@visactor/vchart 1.13.3-alpha.0 → 1.13.3-alpha.2
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.es.js +550 -492
- package/build/index.js +550 -492
- package/build/index.min.js +1 -1
- package/build/tsconfig.tsbuildinfo +1 -1
- package/cjs/chart/area/area-transformer.js +1 -13
- package/cjs/chart/area/area-transformer.js.map +1 -1
- package/cjs/chart/bar/3d/bar-3d-transformer.js +4 -6
- package/cjs/chart/bar/3d/bar-3d-transformer.js.map +1 -1
- package/cjs/chart/bar/bar-transformer.js +1 -11
- package/cjs/chart/bar/bar-transformer.js.map +1 -1
- package/cjs/chart/base/base-chart-transformer.d.ts +2 -1
- package/cjs/chart/base/base-chart-transformer.js +21 -18
- package/cjs/chart/base/base-chart-transformer.js.map +1 -1
- package/cjs/chart/base/base-chart.d.ts +2 -3
- package/cjs/chart/base/base-chart.js +8 -11
- package/cjs/chart/base/base-chart.js.map +1 -1
- package/cjs/chart/box-plot/box-plot-transformer.js +3 -12
- package/cjs/chart/box-plot/box-plot-transformer.js.map +1 -1
- package/cjs/chart/cartesian/cartesian-transformer.d.ts +1 -1
- package/cjs/chart/cartesian/cartesian-transformer.js +3 -23
- package/cjs/chart/cartesian/cartesian-transformer.js.map +1 -1
- package/cjs/chart/circle-packing/circle-packing-transformer.js +2 -12
- package/cjs/chart/circle-packing/circle-packing-transformer.js.map +1 -1
- package/cjs/chart/correlation/correlation-transformer.js +2 -20
- package/cjs/chart/correlation/correlation-transformer.js.map +1 -1
- package/cjs/chart/funnel/funnel-transformer.js +2 -28
- package/cjs/chart/funnel/funnel-transformer.js.map +1 -1
- package/cjs/chart/gauge/gauge-transformer.js +4 -9
- package/cjs/chart/gauge/gauge-transformer.js.map +1 -1
- package/cjs/chart/heatmap/heatmap-transformer.js +1 -5
- package/cjs/chart/heatmap/heatmap-transformer.js.map +1 -1
- package/cjs/chart/histogram/base/histogram-base-transformer.js +1 -6
- package/cjs/chart/histogram/base/histogram-base-transformer.js.map +1 -1
- package/cjs/chart/interface/chart.d.ts +2 -2
- package/cjs/chart/interface/chart.js.map +1 -1
- package/cjs/chart/line/line-transformer.js +3 -12
- package/cjs/chart/line/line-transformer.js.map +1 -1
- package/cjs/chart/liquid/liquid-transformer.js +2 -13
- package/cjs/chart/liquid/liquid-transformer.js.map +1 -1
- package/cjs/chart/map/map-transformer.js +2 -20
- package/cjs/chart/map/map-transformer.js.map +1 -1
- package/cjs/chart/mosaic/mosaic-transformer.js +1 -10
- package/cjs/chart/mosaic/mosaic-transformer.js.map +1 -1
- package/cjs/chart/pictogram/pictogram-transformer.d.ts +1 -1
- package/cjs/chart/pictogram/pictogram-transformer.js +2 -16
- package/cjs/chart/pictogram/pictogram-transformer.js.map +1 -1
- package/cjs/chart/pie/base/pie-transformer.js +4 -14
- package/cjs/chart/pie/base/pie-transformer.js.map +1 -1
- package/cjs/chart/polar/polar-transformer.d.ts +1 -1
- package/cjs/chart/polar/polar-transformer.js +2 -11
- package/cjs/chart/polar/polar-transformer.js.map +1 -1
- package/cjs/chart/polar/progress-like/progress-like-transformer.js +3 -11
- package/cjs/chart/polar/progress-like/progress-like-transformer.js.map +1 -1
- package/cjs/chart/polar/rose-like/rose-like-transformer.js +3 -4
- package/cjs/chart/polar/rose-like/rose-like-transformer.js.map +1 -1
- package/cjs/chart/progress/circular/circular-progress-transformer.js +3 -7
- package/cjs/chart/progress/circular/circular-progress-transformer.js.map +1 -1
- package/cjs/chart/progress/linear/linear-progress-transformer.js +4 -8
- package/cjs/chart/progress/linear/linear-progress-transformer.js.map +1 -1
- package/cjs/chart/radar/radar-transformer.js +7 -15
- package/cjs/chart/radar/radar-transformer.js.map +1 -1
- package/cjs/chart/range-area/range-area-transformer.js +1 -1
- package/cjs/chart/range-area/range-area-transformer.js.map +1 -1
- package/cjs/chart/range-column/3d/range-column-3d-transformer.js +2 -4
- package/cjs/chart/range-column/3d/range-column-3d-transformer.js.map +1 -1
- package/cjs/chart/range-column/range-column-transformer.js +2 -10
- package/cjs/chart/range-column/range-column-transformer.js.map +1 -1
- package/cjs/chart/rose/rose-transformer.js +5 -8
- package/cjs/chart/rose/rose-transformer.js.map +1 -1
- package/cjs/chart/sankey/sankey-transformer.js +1 -35
- package/cjs/chart/sankey/sankey-transformer.js.map +1 -1
- package/cjs/chart/scatter/scatter-transformer.js +1 -7
- package/cjs/chart/scatter/scatter-transformer.js.map +1 -1
- package/cjs/chart/sunburst/sunburst-transformer.js +3 -21
- package/cjs/chart/sunburst/sunburst-transformer.js.map +1 -1
- package/cjs/chart/treemap/treemap-transformer.js +1 -21
- package/cjs/chart/treemap/treemap-transformer.js.map +1 -1
- package/cjs/chart/venn/venn-transformer.js +1 -10
- package/cjs/chart/venn/venn-transformer.js.map +1 -1
- package/cjs/chart/waterfall/waterfall-transformer.js +3 -6
- package/cjs/chart/waterfall/waterfall-transformer.js.map +1 -1
- package/cjs/chart/word-cloud/3d/word-cloud-3d-transformer.js +2 -24
- package/cjs/chart/word-cloud/3d/word-cloud-3d-transformer.js.map +1 -1
- package/cjs/chart/word-cloud/base/word-cloud-base-transformer.d.ts +1 -0
- package/cjs/chart/word-cloud/base/word-cloud-base-transformer.js +3 -0
- package/cjs/chart/word-cloud/base/word-cloud-base-transformer.js.map +1 -1
- package/cjs/chart/word-cloud/index.d.ts +0 -1
- package/cjs/chart/word-cloud/index.js +1 -1
- package/cjs/chart/word-cloud/index.js.map +1 -1
- package/cjs/chart/word-cloud/word-cloud.d.ts +8 -4
- package/cjs/chart/word-cloud/word-cloud.js +3 -3
- package/cjs/chart/word-cloud/word-cloud.js.map +1 -1
- package/cjs/compile/compiler.js +1 -0
- package/cjs/compile/compiler.js.map +1 -1
- package/cjs/component/axis/base-axis.d.ts +1 -0
- package/cjs/component/axis/base-axis.js +4 -0
- package/cjs/component/axis/base-axis.js.map +1 -1
- package/cjs/component/axis/cartesian/axis.d.ts +1 -1
- package/cjs/component/axis/cartesian/axis.js.map +1 -1
- package/cjs/component/base/base-component.d.ts +3 -2
- package/cjs/component/base/base-component.js +1 -0
- package/cjs/component/base/base-component.js.map +1 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.d.ts +0 -1
- package/cjs/component/data-zoom/data-zoom/data-zoom.js +3 -4
- package/cjs/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/cjs/component/interface/common.d.ts +1 -0
- package/cjs/component/interface/common.js.map +1 -1
- package/cjs/component/marker/base-marker.d.ts +3 -1
- package/cjs/component/marker/base-marker.js +20 -1
- package/cjs/component/marker/base-marker.js.map +1 -1
- package/cjs/component/marker/mark-area/base-mark-area.d.ts +0 -2
- package/cjs/component/marker/mark-area/base-mark-area.js +2 -18
- package/cjs/component/marker/mark-area/base-mark-area.js.map +1 -1
- package/cjs/component/marker/mark-line/base-mark-line.d.ts +0 -2
- package/cjs/component/marker/mark-line/base-mark-line.js.map +1 -1
- package/cjs/component/marker/mark-point/base-mark-point.d.ts +0 -2
- package/cjs/component/marker/mark-point/base-mark-point.js +2 -18
- package/cjs/component/marker/mark-point/base-mark-point.js.map +1 -1
- package/cjs/core/index.d.ts +1 -1
- package/cjs/core/index.js +1 -1
- package/cjs/core/index.js.map +1 -1
- package/cjs/core/vchart.d.ts +5 -1
- package/cjs/core/vchart.js +33 -43
- package/cjs/core/vchart.js.map +1 -1
- package/cjs/event/event-dispatcher.js +5 -2
- package/cjs/event/event-dispatcher.js.map +1 -1
- package/cjs/mark/utils/common.d.ts +1 -0
- package/cjs/mark/utils/common.js +6 -2
- package/cjs/mark/utils/common.js.map +1 -1
- package/cjs/series/bar/bar-3d-transformer.d.ts +5 -0
- package/cjs/series/bar/bar-3d-transformer.js +16 -0
- package/cjs/series/bar/bar-3d-transformer.js.map +1 -0
- package/cjs/series/bar/bar-3d.d.ts +2 -0
- package/cjs/series/bar/bar-3d.js +3 -3
- package/cjs/series/bar/bar-3d.js.map +1 -1
- package/cjs/series/base/base-series.js +2 -2
- package/cjs/series/base/base-series.js.map +1 -1
- package/cjs/series/circle-packing/circle-packing.js +2 -14
- package/cjs/series/circle-packing/circle-packing.js.map +1 -1
- package/cjs/series/pie/3d/pie-3d.js +3 -14
- package/cjs/series/pie/3d/pie-3d.js.map +1 -1
- package/cjs/series/polar/polar.d.ts +2 -1
- package/cjs/series/polar/polar.js.map +1 -1
- package/cjs/series/radar/radar.js +4 -5
- package/cjs/series/radar/radar.js.map +1 -1
- package/cjs/series/range-column/range-column.d.ts +1 -0
- package/cjs/series/range-column/range-column.js +13 -22
- package/cjs/series/range-column/range-column.js.map +1 -1
- package/cjs/series/scatter/scatter.js +1 -11
- package/cjs/series/scatter/scatter.js.map +1 -1
- package/cjs/series/sunburst/sunburst.d.ts +1 -1
- package/cjs/series/sunburst/sunburst.js +2 -14
- package/cjs/series/sunburst/sunburst.js.map +1 -1
- package/cjs/series/treemap/treemap.d.ts +1 -0
- package/cjs/series/treemap/treemap.js +11 -24
- package/cjs/series/treemap/treemap.js.map +1 -1
- package/cjs/series/util/hierarchy.d.ts +8 -0
- package/cjs/series/util/hierarchy.js +22 -0
- package/cjs/series/util/hierarchy.js.map +1 -0
- package/cjs/series/word-cloud/animation.js +1 -1
- package/cjs/series/word-cloud/animation.js.map +1 -1
- package/cjs/theme/builtin/common/component/mark-area.js +6 -30
- package/cjs/theme/builtin/common/component/mark-area.js.map +1 -1
- package/cjs/theme/builtin/common/component/mark-line.js +4 -33
- package/cjs/theme/builtin/common/component/mark-line.js.map +1 -1
- package/cjs/theme/builtin/common/component/mark.d.ts +2 -0
- package/cjs/theme/builtin/common/component/mark.js +38 -0
- package/cjs/theme/builtin/common/component/mark.js.map +1 -0
- package/cjs/typings/spec/common.d.ts +1 -0
- package/cjs/typings/spec/common.js.map +1 -1
- package/esm/chart/area/area-transformer.js +1 -13
- package/esm/chart/area/area-transformer.js.map +1 -1
- package/esm/chart/bar/3d/bar-3d-transformer.js +4 -6
- package/esm/chart/bar/3d/bar-3d-transformer.js.map +1 -1
- package/esm/chart/bar/bar-transformer.js +1 -11
- package/esm/chart/bar/bar-transformer.js.map +1 -1
- package/esm/chart/base/base-chart-transformer.d.ts +2 -1
- package/esm/chart/base/base-chart-transformer.js +20 -17
- package/esm/chart/base/base-chart-transformer.js.map +1 -1
- package/esm/chart/base/base-chart.d.ts +2 -3
- package/esm/chart/base/base-chart.js +8 -11
- package/esm/chart/base/base-chart.js.map +1 -1
- package/esm/chart/box-plot/box-plot-transformer.js +3 -12
- package/esm/chart/box-plot/box-plot-transformer.js.map +1 -1
- package/esm/chart/cartesian/cartesian-transformer.d.ts +1 -1
- package/esm/chart/cartesian/cartesian-transformer.js +3 -23
- package/esm/chart/cartesian/cartesian-transformer.js.map +1 -1
- package/esm/chart/circle-packing/circle-packing-transformer.js +1 -13
- package/esm/chart/circle-packing/circle-packing-transformer.js.map +1 -1
- package/esm/chart/correlation/correlation-transformer.js +1 -21
- package/esm/chart/correlation/correlation-transformer.js.map +1 -1
- package/esm/chart/funnel/funnel-transformer.js +2 -28
- package/esm/chart/funnel/funnel-transformer.js.map +1 -1
- package/esm/chart/gauge/gauge-transformer.js +4 -9
- package/esm/chart/gauge/gauge-transformer.js.map +1 -1
- package/esm/chart/heatmap/heatmap-transformer.js +1 -5
- package/esm/chart/heatmap/heatmap-transformer.js.map +1 -1
- package/esm/chart/histogram/base/histogram-base-transformer.js +1 -6
- package/esm/chart/histogram/base/histogram-base-transformer.js.map +1 -1
- package/esm/chart/interface/chart.d.ts +2 -2
- package/esm/chart/interface/chart.js.map +1 -1
- package/esm/chart/line/line-transformer.js +3 -12
- package/esm/chart/line/line-transformer.js.map +1 -1
- package/esm/chart/liquid/liquid-transformer.js +1 -14
- package/esm/chart/liquid/liquid-transformer.js.map +1 -1
- package/esm/chart/map/map-transformer.js +2 -20
- package/esm/chart/map/map-transformer.js.map +1 -1
- package/esm/chart/mosaic/mosaic-transformer.js +1 -10
- package/esm/chart/mosaic/mosaic-transformer.js.map +1 -1
- package/esm/chart/pictogram/pictogram-transformer.d.ts +1 -1
- package/esm/chart/pictogram/pictogram-transformer.js +2 -16
- package/esm/chart/pictogram/pictogram-transformer.js.map +1 -1
- package/esm/chart/pie/base/pie-transformer.js +4 -14
- package/esm/chart/pie/base/pie-transformer.js.map +1 -1
- package/esm/chart/polar/polar-transformer.d.ts +1 -1
- package/esm/chart/polar/polar-transformer.js +2 -11
- package/esm/chart/polar/polar-transformer.js.map +1 -1
- package/esm/chart/polar/progress-like/progress-like-transformer.js +3 -11
- package/esm/chart/polar/progress-like/progress-like-transformer.js.map +1 -1
- package/esm/chart/polar/rose-like/rose-like-transformer.js +3 -4
- package/esm/chart/polar/rose-like/rose-like-transformer.js.map +1 -1
- package/esm/chart/progress/circular/circular-progress-transformer.js +3 -7
- package/esm/chart/progress/circular/circular-progress-transformer.js.map +1 -1
- package/esm/chart/progress/linear/linear-progress-transformer.js +4 -8
- package/esm/chart/progress/linear/linear-progress-transformer.js.map +1 -1
- package/esm/chart/radar/radar-transformer.js +7 -15
- package/esm/chart/radar/radar-transformer.js.map +1 -1
- package/esm/chart/range-area/range-area-transformer.js +1 -1
- package/esm/chart/range-area/range-area-transformer.js.map +1 -1
- package/esm/chart/range-column/3d/range-column-3d-transformer.js +2 -4
- package/esm/chart/range-column/3d/range-column-3d-transformer.js.map +1 -1
- package/esm/chart/range-column/range-column-transformer.js +2 -10
- package/esm/chart/range-column/range-column-transformer.js.map +1 -1
- package/esm/chart/rose/rose-transformer.js +5 -8
- package/esm/chart/rose/rose-transformer.js.map +1 -1
- package/esm/chart/sankey/sankey-transformer.js +1 -35
- package/esm/chart/sankey/sankey-transformer.js.map +1 -1
- package/esm/chart/scatter/scatter-transformer.js +1 -7
- package/esm/chart/scatter/scatter-transformer.js.map +1 -1
- package/esm/chart/sunburst/sunburst-transformer.js +2 -22
- package/esm/chart/sunburst/sunburst-transformer.js.map +1 -1
- package/esm/chart/treemap/treemap-transformer.js +1 -21
- package/esm/chart/treemap/treemap-transformer.js.map +1 -1
- package/esm/chart/venn/venn-transformer.js +1 -10
- package/esm/chart/venn/venn-transformer.js.map +1 -1
- package/esm/chart/waterfall/waterfall-transformer.js +3 -6
- package/esm/chart/waterfall/waterfall-transformer.js.map +1 -1
- package/esm/chart/word-cloud/3d/word-cloud-3d-transformer.js +2 -24
- package/esm/chart/word-cloud/3d/word-cloud-3d-transformer.js.map +1 -1
- package/esm/chart/word-cloud/base/word-cloud-base-transformer.d.ts +1 -0
- package/esm/chart/word-cloud/base/word-cloud-base-transformer.js +3 -0
- package/esm/chart/word-cloud/base/word-cloud-base-transformer.js.map +1 -1
- package/esm/chart/word-cloud/index.d.ts +0 -1
- package/esm/chart/word-cloud/index.js +0 -2
- package/esm/chart/word-cloud/index.js.map +1 -1
- package/esm/chart/word-cloud/word-cloud.d.ts +8 -4
- package/esm/chart/word-cloud/word-cloud.js +3 -3
- package/esm/chart/word-cloud/word-cloud.js.map +1 -1
- package/esm/compile/compiler.js +1 -0
- package/esm/compile/compiler.js.map +1 -1
- package/esm/component/axis/base-axis.d.ts +1 -0
- package/esm/component/axis/base-axis.js +5 -1
- package/esm/component/axis/base-axis.js.map +1 -1
- package/esm/component/axis/cartesian/axis.d.ts +1 -1
- package/esm/component/axis/cartesian/axis.js.map +1 -1
- package/esm/component/base/base-component.d.ts +3 -2
- package/esm/component/base/base-component.js +1 -0
- package/esm/component/base/base-component.js.map +1 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.d.ts +0 -1
- package/esm/component/data-zoom/data-zoom/data-zoom.js +3 -4
- package/esm/component/data-zoom/data-zoom/data-zoom.js.map +1 -1
- package/esm/component/interface/common.d.ts +1 -0
- package/esm/component/interface/common.js.map +1 -1
- package/esm/component/marker/base-marker.d.ts +3 -1
- package/esm/component/marker/base-marker.js +25 -0
- package/esm/component/marker/base-marker.js.map +1 -1
- package/esm/component/marker/mark-area/base-mark-area.d.ts +0 -2
- package/esm/component/marker/mark-area/base-mark-area.js +1 -25
- package/esm/component/marker/mark-area/base-mark-area.js.map +1 -1
- package/esm/component/marker/mark-line/base-mark-line.d.ts +0 -2
- package/esm/component/marker/mark-line/base-mark-line.js.map +1 -1
- package/esm/component/marker/mark-point/base-mark-point.d.ts +0 -2
- package/esm/component/marker/mark-point/base-mark-point.js +1 -25
- package/esm/component/marker/mark-point/base-mark-point.js.map +1 -1
- package/esm/core/index.d.ts +1 -1
- package/esm/core/index.js +1 -1
- package/esm/core/index.js.map +1 -1
- package/esm/core/vchart.d.ts +5 -1
- package/esm/core/vchart.js +33 -43
- package/esm/core/vchart.js.map +1 -1
- package/esm/event/event-dispatcher.js +5 -2
- package/esm/event/event-dispatcher.js.map +1 -1
- package/esm/mark/utils/common.d.ts +1 -0
- package/esm/mark/utils/common.js +4 -0
- package/esm/mark/utils/common.js.map +1 -1
- package/esm/series/bar/bar-3d-transformer.d.ts +5 -0
- package/esm/series/bar/bar-3d-transformer.js +8 -0
- package/esm/series/bar/bar-3d-transformer.js.map +1 -0
- package/esm/series/bar/bar-3d.d.ts +2 -0
- package/esm/series/bar/bar-3d.js +4 -2
- package/esm/series/bar/bar-3d.js.map +1 -1
- package/esm/series/base/base-series.js +3 -1
- package/esm/series/base/base-series.js.map +1 -1
- package/esm/series/circle-packing/circle-packing.js +4 -14
- package/esm/series/circle-packing/circle-packing.js.map +1 -1
- package/esm/series/pie/3d/pie-3d.js +2 -17
- package/esm/series/pie/3d/pie-3d.js.map +1 -1
- package/esm/series/polar/polar.d.ts +2 -1
- package/esm/series/polar/polar.js.map +1 -1
- package/esm/series/radar/radar.js +2 -5
- package/esm/series/radar/radar.js.map +1 -1
- package/esm/series/range-column/range-column.d.ts +1 -0
- package/esm/series/range-column/range-column.js +13 -22
- package/esm/series/range-column/range-column.js.map +1 -1
- package/esm/series/scatter/scatter.js +1 -11
- package/esm/series/scatter/scatter.js.map +1 -1
- package/esm/series/sunburst/sunburst.d.ts +1 -1
- package/esm/series/sunburst/sunburst.js +4 -14
- package/esm/series/sunburst/sunburst.js.map +1 -1
- package/esm/series/treemap/treemap.d.ts +1 -0
- package/esm/series/treemap/treemap.js +13 -24
- package/esm/series/treemap/treemap.js.map +1 -1
- package/esm/series/util/hierarchy.d.ts +8 -0
- package/esm/series/util/hierarchy.js +16 -0
- package/esm/series/util/hierarchy.js.map +1 -0
- package/esm/series/word-cloud/animation.js +1 -1
- package/esm/series/word-cloud/animation.js.map +1 -1
- package/esm/theme/builtin/common/component/mark-area.js +3 -29
- package/esm/theme/builtin/common/component/mark-area.js.map +1 -1
- package/esm/theme/builtin/common/component/mark-line.js +6 -31
- package/esm/theme/builtin/common/component/mark-line.js.map +1 -1
- package/esm/theme/builtin/common/component/mark.d.ts +2 -0
- package/esm/theme/builtin/common/component/mark.js +30 -0
- package/esm/theme/builtin/common/component/mark.js.map +1 -0
- package/esm/typings/spec/common.d.ts +1 -0
- package/esm/typings/spec/common.js.map +1 -1
- package/package.json +4 -4
- package/cjs/chart/word-cloud/word-cloud-transformer.d.ts +0 -5
- package/cjs/chart/word-cloud/word-cloud-transformer.js +0 -39
- package/cjs/chart/word-cloud/word-cloud-transformer.js.map +0 -1
- package/esm/chart/word-cloud/word-cloud-transformer.d.ts +0 -5
- package/esm/chart/word-cloud/word-cloud-transformer.js +0 -31
- package/esm/chart/word-cloud/word-cloud-transformer.js.map +0 -1
package/build/index.es.js
CHANGED
|
@@ -46223,13 +46223,8 @@ const mapLabel = {
|
|
|
46223
46223
|
}
|
|
46224
46224
|
};
|
|
46225
46225
|
|
|
46226
|
-
const
|
|
46227
|
-
|
|
46228
|
-
style: {
|
|
46229
|
-
fill: { type: 'palette', key: 'axisDomainColor', a: 0.25 }
|
|
46230
|
-
}
|
|
46231
|
-
},
|
|
46232
|
-
label: {
|
|
46226
|
+
const getCommonLabelTheme = () => {
|
|
46227
|
+
return {
|
|
46233
46228
|
style: {
|
|
46234
46229
|
fontSize: { type: 'token', key: 'l4FontSize' },
|
|
46235
46230
|
fontWeight: 'normal',
|
|
@@ -46248,7 +46243,16 @@ const markArea = {
|
|
|
46248
46243
|
fill: { type: 'palette', key: 'markLabelBackgroundColor' }
|
|
46249
46244
|
}
|
|
46250
46245
|
}
|
|
46251
|
-
}
|
|
46246
|
+
};
|
|
46247
|
+
};
|
|
46248
|
+
|
|
46249
|
+
const markArea = {
|
|
46250
|
+
area: {
|
|
46251
|
+
style: {
|
|
46252
|
+
fill: { type: 'palette', key: 'axisDomainColor', a: 0.25 }
|
|
46253
|
+
}
|
|
46254
|
+
},
|
|
46255
|
+
label: getCommonLabelTheme()
|
|
46252
46256
|
};
|
|
46253
46257
|
|
|
46254
46258
|
const getSymbolTheme = (visible) => {
|
|
@@ -46263,6 +46267,8 @@ const getSymbolTheme = (visible) => {
|
|
|
46263
46267
|
}
|
|
46264
46268
|
};
|
|
46265
46269
|
};
|
|
46270
|
+
const labelTheme = getCommonLabelTheme();
|
|
46271
|
+
labelTheme.refY = 5;
|
|
46266
46272
|
const markLine = {
|
|
46267
46273
|
line: {
|
|
46268
46274
|
style: {
|
|
@@ -46272,27 +46278,7 @@ const markLine = {
|
|
|
46272
46278
|
},
|
|
46273
46279
|
startSymbol: getSymbolTheme(false),
|
|
46274
46280
|
endSymbol: getSymbolTheme(true),
|
|
46275
|
-
label:
|
|
46276
|
-
refY: 5,
|
|
46277
|
-
style: {
|
|
46278
|
-
fontSize: { type: 'token', key: 'l4FontSize' },
|
|
46279
|
-
fontWeight: 'normal',
|
|
46280
|
-
fontStyle: 'normal',
|
|
46281
|
-
fill: { type: 'palette', key: 'primaryFontColor' }
|
|
46282
|
-
},
|
|
46283
|
-
labelBackground: {
|
|
46284
|
-
padding: {
|
|
46285
|
-
top: 2,
|
|
46286
|
-
bottom: 2,
|
|
46287
|
-
right: 4,
|
|
46288
|
-
left: 4
|
|
46289
|
-
},
|
|
46290
|
-
style: {
|
|
46291
|
-
cornerRadius: 3,
|
|
46292
|
-
fill: { type: 'palette', key: 'markLabelBackgroundColor' }
|
|
46293
|
-
}
|
|
46294
|
-
}
|
|
46295
|
-
}
|
|
46281
|
+
label: labelTheme
|
|
46296
46282
|
};
|
|
46297
46283
|
|
|
46298
46284
|
const markPoint = {
|
|
@@ -56635,7 +56621,7 @@ class EventDispatcher {
|
|
|
56635
56621
|
this._windowListeners = new Map();
|
|
56636
56622
|
this._canvasListeners = new Map();
|
|
56637
56623
|
this._onDelegate = (listenerParams) => {
|
|
56638
|
-
var _a;
|
|
56624
|
+
var _a, _b;
|
|
56639
56625
|
const chart = this.globalInstance.getChart();
|
|
56640
56626
|
const model = (isValid$1(listenerParams.modelId) && (chart === null || chart === void 0 ? void 0 : chart.getModelById(listenerParams.modelId))) || undefined;
|
|
56641
56627
|
const mark = (isValid$1(listenerParams.markId) && (chart === null || chart === void 0 ? void 0 : chart.getMarkById(listenerParams.markId))) || null;
|
|
@@ -56651,11 +56637,16 @@ class EventDispatcher {
|
|
|
56651
56637
|
}
|
|
56652
56638
|
targetMark = targetMark.group;
|
|
56653
56639
|
}
|
|
56640
|
+
const node = get$1(listenerParams.event, 'target');
|
|
56641
|
+
let datum = listenerParams.datum;
|
|
56642
|
+
if (model && model.modelType === 'component') {
|
|
56643
|
+
datum = (_b = model.getDatum(node)) !== null && _b !== void 0 ? _b : datum;
|
|
56644
|
+
}
|
|
56654
56645
|
const params = {
|
|
56655
56646
|
event: listenerParams.event,
|
|
56656
56647
|
item: listenerParams.item,
|
|
56657
|
-
datum: listenerParams.datum,
|
|
56658
56648
|
source: listenerParams.source,
|
|
56649
|
+
datum,
|
|
56659
56650
|
itemMap,
|
|
56660
56651
|
chart,
|
|
56661
56652
|
model,
|
|
@@ -57230,7 +57221,7 @@ class Compiler {
|
|
|
57230
57221
|
});
|
|
57231
57222
|
}
|
|
57232
57223
|
const _e = this._option, { performanceHook, autoRefreshDpr, dpr, mode, gestureConfig, interactive, clickInterval, autoPreventDefault } = _e, restOption = __rest$e(_e, ["performanceHook", "autoRefreshDpr", "dpr", "mode", "gestureConfig", "interactive", "clickInterval", "autoPreventDefault"]);
|
|
57233
|
-
this._view = new View(Object.assign(Object.assign({ width: this._width, height: this._height, container: (_c = this._container.dom) !== null && _c !== void 0 ? _c : null, renderCanvas: (_d = this._container.canvas) !== null && _d !== void 0 ? _d : null, hooks: performanceHook }, restOption), { autoRefresh: isValid$1(autoRefreshDpr) ? autoRefreshDpr : !isValid$1(dpr), mode: toRenderMode(mode), autoFit: false, eventConfig: {
|
|
57224
|
+
this._view = new View(Object.assign(Object.assign({ width: this._width, height: this._height, container: (_c = this._container.dom) !== null && _c !== void 0 ? _c : null, renderCanvas: (_d = this._container.canvas) !== null && _d !== void 0 ? _d : null, hooks: performanceHook }, restOption), { dpr, autoRefresh: isValid$1(autoRefreshDpr) ? autoRefreshDpr : !isValid$1(dpr), mode: toRenderMode(mode), autoFit: false, eventConfig: {
|
|
57234
57225
|
gesture: isValid$1(gestureConfig) ? gestureConfig : isMobileLikeMode(mode),
|
|
57235
57226
|
disable: interactive === false,
|
|
57236
57227
|
clickInterval,
|
|
@@ -60049,6 +60040,9 @@ function curveTypeTransform(type, direction) {
|
|
|
60049
60040
|
}
|
|
60050
60041
|
return type;
|
|
60051
60042
|
}
|
|
60043
|
+
function is3DMark(type) {
|
|
60044
|
+
return ["arc3d", "rect3d", "pyramid3d"].includes(type);
|
|
60045
|
+
}
|
|
60052
60046
|
|
|
60053
60047
|
class MarkStateManager extends StateManager {
|
|
60054
60048
|
getStateInfoList() {
|
|
@@ -61469,8 +61463,8 @@ class VChart {
|
|
|
61469
61463
|
}
|
|
61470
61464
|
const reSize = this._shouldChartResize(lastSpec);
|
|
61471
61465
|
result.reSize = reSize;
|
|
61472
|
-
(_b = (_a = this._compiler) === null || _a === void 0 ? void 0 : _a.getVGrammarView()) === null || _b === void 0 ? void 0 : _b.updateLayoutTag();
|
|
61473
61466
|
if (this._spec.type !== lastSpec.type) {
|
|
61467
|
+
(_b = (_a = this._compiler) === null || _a === void 0 ? void 0 : _a.getVGrammarView()) === null || _b === void 0 ? void 0 : _b.updateLayoutTag();
|
|
61474
61468
|
result.reMake = true;
|
|
61475
61469
|
result.reTransformSpec = true;
|
|
61476
61470
|
result.change = true;
|
|
@@ -61517,6 +61511,12 @@ class VChart {
|
|
|
61517
61511
|
if (spec.type === "sankey") {
|
|
61518
61512
|
pluginList.push('scrollbar');
|
|
61519
61513
|
}
|
|
61514
|
+
const performanceHook = Object.assign({}, (restOptions.performanceHook || {}));
|
|
61515
|
+
Object.keys(performanceHook).forEach(hookKey => {
|
|
61516
|
+
restOptions.performanceHook[hookKey] = (...args) => {
|
|
61517
|
+
performanceHook[hookKey](...args, this);
|
|
61518
|
+
};
|
|
61519
|
+
});
|
|
61520
61520
|
this._compiler = new Compiler({
|
|
61521
61521
|
dom: (_c = this._container) !== null && _c !== void 0 ? _c : 'none',
|
|
61522
61522
|
canvas: renderCanvas
|
|
@@ -61593,7 +61593,7 @@ class VChart {
|
|
|
61593
61593
|
}
|
|
61594
61594
|
this._chart = chart;
|
|
61595
61595
|
this._chart.setCanvasRect(this._currentSize.width, this._currentSize.height);
|
|
61596
|
-
this._chart.created();
|
|
61596
|
+
this._chart.created(this._chartSpecTransformer);
|
|
61597
61597
|
this._chart.init();
|
|
61598
61598
|
this._event.emit(ChartEvent.initialized, {
|
|
61599
61599
|
chart,
|
|
@@ -61610,13 +61610,14 @@ class VChart {
|
|
|
61610
61610
|
if (!this._compiler) {
|
|
61611
61611
|
return;
|
|
61612
61612
|
}
|
|
61613
|
-
this._compiler.getVGrammarView()
|
|
61613
|
+
const view = this._compiler.getVGrammarView();
|
|
61614
|
+
view.addEventListener(HOOK_EVENT.ALL_ANIMATION_END, () => {
|
|
61614
61615
|
this._event.emit(ChartEvent.animationFinished, {
|
|
61615
61616
|
chart: this._chart,
|
|
61616
61617
|
vchart: this
|
|
61617
61618
|
});
|
|
61618
61619
|
});
|
|
61619
|
-
|
|
61620
|
+
view.addEventListener(HOOK_EVENT.AFTER_VRENDER_NEXT_RENDER, () => {
|
|
61620
61621
|
this._event.emit(ChartEvent.renderFinished, {
|
|
61621
61622
|
chart: this._chart,
|
|
61622
61623
|
vchart: this
|
|
@@ -61700,20 +61701,24 @@ class VChart {
|
|
|
61700
61701
|
return this._beforeRender(option);
|
|
61701
61702
|
}
|
|
61702
61703
|
_reCompile(updateResult, morphConfig) {
|
|
61703
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k
|
|
61704
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k;
|
|
61704
61705
|
if (updateResult.reMake) {
|
|
61705
61706
|
this._releaseData();
|
|
61706
61707
|
this._initDataSet();
|
|
61707
|
-
this._chartSpecTransformer = null;
|
|
61708
61708
|
(_a = this._chart) === null || _a === void 0 ? void 0 : _a.release();
|
|
61709
61709
|
this._chart = null;
|
|
61710
|
-
|
|
61711
|
-
|
|
61712
|
-
|
|
61713
|
-
|
|
61714
|
-
|
|
61715
|
-
|
|
61716
|
-
|
|
61710
|
+
}
|
|
61711
|
+
if (updateResult.reTransformSpec) {
|
|
61712
|
+
this._chartSpecTransformer = null;
|
|
61713
|
+
}
|
|
61714
|
+
if (updateResult.changeTheme) {
|
|
61715
|
+
this._setCurrentTheme();
|
|
61716
|
+
this._setFontFamilyTheme((_b = this._currentTheme) === null || _b === void 0 ? void 0 : _b.fontFamily);
|
|
61717
|
+
}
|
|
61718
|
+
else if (updateResult.changeBackground) {
|
|
61719
|
+
(_c = this._compiler) === null || _c === void 0 ? void 0 : _c.setBackground(this._getBackground());
|
|
61720
|
+
}
|
|
61721
|
+
if (updateResult.reMake) {
|
|
61717
61722
|
(_d = this._compiler) === null || _d === void 0 ? void 0 : _d.releaseGrammar(((_e = this._option) === null || _e === void 0 ? void 0 : _e.animation) === false || ((_f = this._spec) === null || _f === void 0 ? void 0 : _f.animation) === false);
|
|
61718
61723
|
this._userEvents.forEach(e => { var _a; return (_a = this._event) === null || _a === void 0 ? void 0 : _a.on(e.eType, e.query, e.handler); });
|
|
61719
61724
|
if (updateResult.reSize) {
|
|
@@ -61721,16 +61726,9 @@ class VChart {
|
|
|
61721
61726
|
}
|
|
61722
61727
|
}
|
|
61723
61728
|
else {
|
|
61724
|
-
if (updateResult.changeTheme) {
|
|
61725
|
-
this._setCurrentTheme();
|
|
61726
|
-
this._setFontFamilyTheme((_g = this._currentTheme) === null || _g === void 0 ? void 0 : _g.fontFamily);
|
|
61727
|
-
}
|
|
61728
|
-
else if (updateResult.changeBackground) {
|
|
61729
|
-
(_h = this._compiler) === null || _h === void 0 ? void 0 : _h.setBackground(this._getBackground());
|
|
61730
|
-
}
|
|
61731
61729
|
if (updateResult.reCompile) {
|
|
61732
|
-
(
|
|
61733
|
-
(
|
|
61730
|
+
(_g = this._compiler) === null || _g === void 0 ? void 0 : _g.clear({ chart: this._chart, vChart: this }, ((_h = this._option) === null || _h === void 0 ? void 0 : _h.animation) === false || ((_j = this._spec) === null || _j === void 0 ? void 0 : _j.animation) === false);
|
|
61731
|
+
(_k = this._compiler) === null || _k === void 0 ? void 0 : _k.compile({ chart: this._chart, vChart: this }, {});
|
|
61734
61732
|
}
|
|
61735
61733
|
if (updateResult.reSize) {
|
|
61736
61734
|
const { width, height } = this.getCurrentSize();
|
|
@@ -61973,22 +61971,7 @@ class VChart {
|
|
|
61973
61971
|
}
|
|
61974
61972
|
updateModelSpec(filter, spec, forceMerge = false, morphConfig) {
|
|
61975
61973
|
return __awaiter$a(this, void 0, void 0, function* () {
|
|
61976
|
-
|
|
61977
|
-
return this;
|
|
61978
|
-
}
|
|
61979
|
-
if (isString$1(spec)) {
|
|
61980
|
-
spec = JSON.parse(spec);
|
|
61981
|
-
}
|
|
61982
|
-
if (!isFunction$1(filter)) {
|
|
61983
|
-
mergeSpecWithFilter(this._spec, filter, spec, forceMerge);
|
|
61984
|
-
}
|
|
61985
|
-
if (this._chart) {
|
|
61986
|
-
const model = this._chart.getModelInFilter(filter);
|
|
61987
|
-
if (model) {
|
|
61988
|
-
return this._updateModelSpec(model, spec, false, forceMerge, morphConfig);
|
|
61989
|
-
}
|
|
61990
|
-
}
|
|
61991
|
-
return this;
|
|
61974
|
+
return this.updateModelSpecSync(filter, spec, forceMerge, morphConfig);
|
|
61992
61975
|
});
|
|
61993
61976
|
}
|
|
61994
61977
|
updateModelSpecSync(filter, spec, forceMerge = false, morphConfig) {
|
|
@@ -62216,18 +62199,8 @@ class VChart {
|
|
|
62216
62199
|
return this._currentThemeName;
|
|
62217
62200
|
}
|
|
62218
62201
|
setCurrentTheme(name) {
|
|
62219
|
-
var _a;
|
|
62220
62202
|
return __awaiter$a(this, void 0, void 0, function* () {
|
|
62221
|
-
|
|
62222
|
-
return this;
|
|
62223
|
-
}
|
|
62224
|
-
const result = this._setCurrentTheme(name);
|
|
62225
|
-
this._setFontFamilyTheme((_a = this._currentTheme) === null || _a === void 0 ? void 0 : _a.fontFamily);
|
|
62226
|
-
yield this.updateCustomConfigAndRerender(result, false, {
|
|
62227
|
-
transformSpec: false,
|
|
62228
|
-
actionSource: 'setCurrentTheme'
|
|
62229
|
-
});
|
|
62230
|
-
return this;
|
|
62203
|
+
return this.setCurrentThemeSync(name);
|
|
62231
62204
|
});
|
|
62232
62205
|
}
|
|
62233
62206
|
setCurrentThemeSync(name) {
|
|
@@ -62571,17 +62544,14 @@ class VChart {
|
|
|
62571
62544
|
}
|
|
62572
62545
|
}
|
|
62573
62546
|
geoZoomByIndex(regionIndex = 0, zoom, center) {
|
|
62574
|
-
|
|
62575
|
-
const region = (_a = this._chart) === null || _a === void 0 ? void 0 : _a.getRegionsInQuerier({ regionIndex })[0];
|
|
62576
|
-
const geoCoordinates = (_b = this._chart) === null || _b === void 0 ? void 0 : _b.getComponentsByType(ComponentTypeEnum.geoCoordinate);
|
|
62577
|
-
const coord = geoCoordinates === null || geoCoordinates === void 0 ? void 0 : geoCoordinates.find(coord => { var _a; return (_a = coord.getRegions()) === null || _a === void 0 ? void 0 : _a.includes(region); });
|
|
62578
|
-
if (coord) {
|
|
62579
|
-
coord.dispatchZoom(zoom, center);
|
|
62580
|
-
}
|
|
62547
|
+
this._geoZoomByQuery({ regionIndex }, zoom, center);
|
|
62581
62548
|
}
|
|
62582
62549
|
geoZoomById(regionId, zoom, center) {
|
|
62550
|
+
this._geoZoomByQuery({ regionId }, zoom, center);
|
|
62551
|
+
}
|
|
62552
|
+
_geoZoomByQuery(query, zoom, center) {
|
|
62583
62553
|
var _a, _b;
|
|
62584
|
-
const region = (_a = this._chart) === null || _a === void 0 ? void 0 : _a.getRegionsInQuerier(
|
|
62554
|
+
const region = (_a = this._chart) === null || _a === void 0 ? void 0 : _a.getRegionsInQuerier(query)[0];
|
|
62585
62555
|
const geoCoordinates = (_b = this._chart) === null || _b === void 0 ? void 0 : _b.getComponentsByType(ComponentTypeEnum.geoCoordinate);
|
|
62586
62556
|
const coord = geoCoordinates === null || geoCoordinates === void 0 ? void 0 : geoCoordinates.find(coord => { var _a; return (_a = coord.getRegions()) === null || _a === void 0 ? void 0 : _a.includes(region); });
|
|
62587
62557
|
if (coord) {
|
|
@@ -62647,7 +62617,7 @@ const registerVChartCore = () => {
|
|
|
62647
62617
|
};
|
|
62648
62618
|
registerVChartCore();
|
|
62649
62619
|
|
|
62650
|
-
const version = "1.13.3-alpha.
|
|
62620
|
+
const version = "1.13.3-alpha.2";
|
|
62651
62621
|
|
|
62652
62622
|
const addVChartProperty = (data, op) => {
|
|
62653
62623
|
const context = op.beforeCall();
|
|
@@ -64761,7 +64731,7 @@ class BaseSeries extends BaseModel {
|
|
|
64761
64731
|
if (stateSort) {
|
|
64762
64732
|
m.setStateSortCallback(stateSort);
|
|
64763
64733
|
}
|
|
64764
|
-
const markConfig = Object.assign(Object.assign({}, config), { morph: (_b = config.morph) !== null && _b !== void 0 ? _b : false, support3d: (_c = config.support3d) !== null && _c !== void 0 ? _c : (spec.support3d || !!spec.zField), morphKey: ((_d = spec.morph) === null || _d === void 0 ? void 0 : _d.morphKey) || `${this.getSpecIndex()}_${this.getMarks().length}`, morphElementKey: (_f = (_e = spec.morph) === null || _e === void 0 ? void 0 : _e.morphElementKey) !== null && _f !== void 0 ? _f : config.morphElementKey });
|
|
64734
|
+
const markConfig = Object.assign(Object.assign({}, config), { morph: (_b = config.morph) !== null && _b !== void 0 ? _b : false, support3d: is3DMark(markInfo.type) || ((_c = config.support3d) !== null && _c !== void 0 ? _c : (spec.support3d || !!spec.zField)), morphKey: ((_d = spec.morph) === null || _d === void 0 ? void 0 : _d.morphKey) || `${this.getSpecIndex()}_${this.getMarks().length}`, morphElementKey: (_f = (_e = spec.morph) === null || _e === void 0 ? void 0 : _e.morphElementKey) !== null && _f !== void 0 ? _f : config.morphElementKey });
|
|
64765
64735
|
m.setMarkConfig(markConfig);
|
|
64766
64736
|
this.initMarkStyleWithSpec(m, mergeSpec({}, themeSpec, markSpec || spec[m.name]));
|
|
64767
64737
|
}
|
|
@@ -66465,6 +66435,9 @@ class BaseComponent extends LayoutModel {
|
|
|
66465
66435
|
getBoundsInRect(rect, fullRect) {
|
|
66466
66436
|
return { x1: 0, x2: 0, y1: 0, y2: 0 };
|
|
66467
66437
|
}
|
|
66438
|
+
getDatum(graphic) {
|
|
66439
|
+
return;
|
|
66440
|
+
}
|
|
66468
66441
|
}
|
|
66469
66442
|
BaseComponent.transformerConstructor = BaseComponentSpecTransformer;
|
|
66470
66443
|
|
|
@@ -66969,6 +66942,15 @@ class AxisComponent extends BaseComponent {
|
|
|
66969
66942
|
dataToPosition(values) {
|
|
66970
66943
|
return this._scale.scale(values);
|
|
66971
66944
|
}
|
|
66945
|
+
getDatum(childGraphic) {
|
|
66946
|
+
var _a, _b;
|
|
66947
|
+
if (childGraphic && childGraphic.name === AXIS_ELEMENT_NAME.label) {
|
|
66948
|
+
return childGraphic.data;
|
|
66949
|
+
}
|
|
66950
|
+
if (this._axisMark) {
|
|
66951
|
+
return (_b = (_a = this._axisMark.getProduct()) === null || _a === void 0 ? void 0 : _a.getGroupGraphicItem()) === null || _b === void 0 ? void 0 : _b.attribute.items;
|
|
66952
|
+
}
|
|
66953
|
+
}
|
|
66972
66954
|
}
|
|
66973
66955
|
AxisComponent.specKey = 'axes';
|
|
66974
66956
|
const registerAxis = () => {
|
|
@@ -69209,11 +69191,11 @@ class BaseChart extends CompilableBase {
|
|
|
69209
69191
|
return this._layoutTag;
|
|
69210
69192
|
}
|
|
69211
69193
|
setLayoutTag(tag, morphConfig, renderNextTick = true) {
|
|
69212
|
-
var _a;
|
|
69213
69194
|
this._layoutTag = tag;
|
|
69214
|
-
|
|
69215
|
-
|
|
69216
|
-
|
|
69195
|
+
const compiler = this.getCompiler();
|
|
69196
|
+
if (compiler === null || compiler === void 0 ? void 0 : compiler.getVGrammarView()) {
|
|
69197
|
+
compiler.getVGrammarView().updateLayoutTag();
|
|
69198
|
+
tag && renderNextTick && compiler.renderNextTick(morphConfig);
|
|
69217
69199
|
}
|
|
69218
69200
|
return this._layoutTag;
|
|
69219
69201
|
}
|
|
@@ -69361,15 +69343,14 @@ class BaseChart extends CompilableBase {
|
|
|
69361
69343
|
this._modelOption = Object.assign(Object.assign({}, option), { mode: this._option.mode, map: this._idMap, getChartLayoutRect: () => this._layoutRect, getChartViewRect: () => this._viewRect, getChart: () => this, globalScale: this._globalScale, onError: (_b = this._option) === null || _b === void 0 ? void 0 : _b.onError, disableTriggerEvent: ((_c = this._option) === null || _c === void 0 ? void 0 : _c.disableTriggerEvent) === true, getSeriesData: this._chartData.getSeriesData.bind(this._chartData) });
|
|
69362
69344
|
this._spec = spec;
|
|
69363
69345
|
}
|
|
69364
|
-
created() {
|
|
69365
|
-
this._transformer = new this.transformerConstructor(Object.assign(Object.assign({}, this._option), { type: this.type, seriesType: this.seriesType }));
|
|
69346
|
+
created(transformer) {
|
|
69366
69347
|
this._chartData.parseData(this._spec.data);
|
|
69367
69348
|
this._createGlobalScale();
|
|
69368
69349
|
this._createBackground();
|
|
69369
69350
|
this._createLayout();
|
|
69370
|
-
|
|
69371
|
-
|
|
69372
|
-
|
|
69351
|
+
transformer.forEachRegionInSpec(this._spec, this._createRegion.bind(this));
|
|
69352
|
+
transformer.forEachSeriesInSpec(this._spec, this._createSeries.bind(this));
|
|
69353
|
+
transformer.forEachComponentInSpec(this._spec, this._createComponent.bind(this), this._option.getSpecInfo());
|
|
69373
69354
|
}
|
|
69374
69355
|
init() {
|
|
69375
69356
|
var _a, _b, _c, _d;
|
|
@@ -70209,25 +70190,28 @@ class BaseChartSpecTransformer {
|
|
|
70209
70190
|
});
|
|
70210
70191
|
}
|
|
70211
70192
|
}
|
|
70212
|
-
|
|
70213
|
-
|
|
70193
|
+
generateTransform(chartSpec, isRuntime) {
|
|
70194
|
+
return (constructor, specInfo, chartSpecInfo) => {
|
|
70214
70195
|
const { spec, specPath, specInfoPath, type } = specInfo;
|
|
70215
70196
|
const transformer = new constructor.transformerConstructor(Object.assign(Object.assign({}, this._option), { type }));
|
|
70216
70197
|
const transformResult = transformer.transformSpec(spec, chartSpec, chartSpecInfo);
|
|
70217
|
-
|
|
70218
|
-
|
|
70198
|
+
const chartSpecInfoValue = Object.assign(Object.assign({}, specInfo), transformResult);
|
|
70199
|
+
if (isRuntime) {
|
|
70200
|
+
chartSpecInfoValue.theme = transformer.getTheme(spec, chartSpec);
|
|
70201
|
+
}
|
|
70202
|
+
else {
|
|
70203
|
+
setProperty(chartSpec, specPath, transformResult.spec);
|
|
70204
|
+
}
|
|
70205
|
+
setProperty(chartSpecInfo, specInfoPath !== null && specInfoPath !== void 0 ? specInfoPath : specPath, chartSpecInfoValue);
|
|
70219
70206
|
};
|
|
70220
|
-
|
|
70207
|
+
}
|
|
70208
|
+
transformModelSpec(chartSpec) {
|
|
70209
|
+
return this.createSpecInfo(chartSpec, this.generateTransform(chartSpec, false));
|
|
70221
70210
|
}
|
|
70222
70211
|
createSpecInfo(chartSpec, transform) {
|
|
70223
70212
|
var _a, _b;
|
|
70224
70213
|
if (!transform) {
|
|
70225
|
-
transform = (
|
|
70226
|
-
const { spec, specPath, specInfoPath, type } = specInfo;
|
|
70227
|
-
const transformer = new constructor.transformerConstructor(Object.assign(Object.assign({}, this._option), { type }));
|
|
70228
|
-
const transformResult = transformer.transformSpec(spec, chartSpec, chartSpecInfo);
|
|
70229
|
-
setProperty(chartSpecInfo, specInfoPath !== null && specInfoPath !== void 0 ? specInfoPath : specPath, Object.assign(Object.assign(Object.assign({}, specInfo), transformResult), { theme: transformer.getTheme(spec, chartSpec) }));
|
|
70230
|
-
};
|
|
70214
|
+
transform = this.generateTransform(chartSpec, true);
|
|
70231
70215
|
}
|
|
70232
70216
|
const currentChartSpecInfo = {};
|
|
70233
70217
|
this.forEachRegionInSpec(chartSpec, transform, currentChartSpecInfo);
|
|
@@ -70275,7 +70259,7 @@ class BaseChartSpecTransformer {
|
|
|
70275
70259
|
_isValidSeries(seriesType) {
|
|
70276
70260
|
return true;
|
|
70277
70261
|
}
|
|
70278
|
-
_getDefaultSeriesSpec(chartSpec) {
|
|
70262
|
+
_getDefaultSeriesSpec(chartSpec, pickKeys, pickKeys2) {
|
|
70279
70263
|
var _a, _b, _c, _d;
|
|
70280
70264
|
const series = {
|
|
70281
70265
|
dataKey: chartSpec.dataKey,
|
|
@@ -70303,6 +70287,21 @@ class BaseChartSpecTransformer {
|
|
|
70303
70287
|
morph: chartSpec.morph,
|
|
70304
70288
|
interactions: chartSpec.interactions
|
|
70305
70289
|
};
|
|
70290
|
+
const seriesType = this.seriesType;
|
|
70291
|
+
if (seriesType) {
|
|
70292
|
+
series.type = seriesType;
|
|
70293
|
+
series[seriesType] = chartSpec[seriesType];
|
|
70294
|
+
}
|
|
70295
|
+
if (pickKeys && pickKeys.length) {
|
|
70296
|
+
pickKeys.forEach(k => {
|
|
70297
|
+
series[k] = chartSpec[k];
|
|
70298
|
+
});
|
|
70299
|
+
}
|
|
70300
|
+
if (pickKeys2 && pickKeys2.length) {
|
|
70301
|
+
pickKeys2.forEach(k => {
|
|
70302
|
+
series[k] = chartSpec[k];
|
|
70303
|
+
});
|
|
70304
|
+
}
|
|
70306
70305
|
return series;
|
|
70307
70306
|
}
|
|
70308
70307
|
forEachRegionInSpec(chartSpec, callbackfn, chartSpecInfo) {
|
|
@@ -70467,33 +70466,23 @@ class CartesianChartSpecTransformer extends BaseChartSpecTransformer {
|
|
|
70467
70466
|
_isValidSeries(type) {
|
|
70468
70467
|
return this.seriesType ? type === this.seriesType : true;
|
|
70469
70468
|
}
|
|
70470
|
-
_getDefaultSeriesSpec(spec) {
|
|
70471
|
-
const series =
|
|
70472
|
-
|
|
70473
|
-
|
|
70474
|
-
|
|
70475
|
-
|
|
70476
|
-
|
|
70469
|
+
_getDefaultSeriesSpec(spec, pickKeys) {
|
|
70470
|
+
const series = super._getDefaultSeriesSpec(spec, [
|
|
70471
|
+
'xField',
|
|
70472
|
+
'yField',
|
|
70473
|
+
'zField',
|
|
70474
|
+
'direction',
|
|
70475
|
+
'stack',
|
|
70476
|
+
'percent',
|
|
70477
|
+
'stackOffsetSilhouette',
|
|
70478
|
+
'totalLabel',
|
|
70479
|
+
'sortDataByAxis'
|
|
70480
|
+
], pickKeys);
|
|
70477
70481
|
return series;
|
|
70478
70482
|
}
|
|
70479
70483
|
transformSpec(spec) {
|
|
70480
70484
|
super.transformSpec(spec);
|
|
70481
|
-
|
|
70482
|
-
if (!spec.series || spec.series.length === 0) {
|
|
70483
|
-
spec.series = [defaultSeriesSpec];
|
|
70484
|
-
}
|
|
70485
|
-
else {
|
|
70486
|
-
spec.series.forEach((s) => {
|
|
70487
|
-
if (!this._isValidSeries(s.type)) {
|
|
70488
|
-
return;
|
|
70489
|
-
}
|
|
70490
|
-
Object.keys(defaultSeriesSpec).forEach(k => {
|
|
70491
|
-
if (!(k in s)) {
|
|
70492
|
-
s[k] = defaultSeriesSpec[k];
|
|
70493
|
-
}
|
|
70494
|
-
});
|
|
70495
|
-
});
|
|
70496
|
-
}
|
|
70485
|
+
super.transformSeriesSpec(spec);
|
|
70497
70486
|
this._transformAxisSpec(spec);
|
|
70498
70487
|
}
|
|
70499
70488
|
_setDefaultXAxisSpec(spec) {
|
|
@@ -70559,7 +70548,19 @@ class CartesianChartSpecTransformer extends BaseChartSpecTransformer {
|
|
|
70559
70548
|
class LineChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
70560
70549
|
_getDefaultSeriesSpec(spec) {
|
|
70561
70550
|
var _a;
|
|
70562
|
-
|
|
70551
|
+
const seriesSpec = super._getDefaultSeriesSpec(spec, [
|
|
70552
|
+
'point',
|
|
70553
|
+
'line',
|
|
70554
|
+
'activePoint',
|
|
70555
|
+
'sampling',
|
|
70556
|
+
'samplingFactor',
|
|
70557
|
+
'pointDis',
|
|
70558
|
+
'pointDisMul',
|
|
70559
|
+
'markOverlap',
|
|
70560
|
+
'lineLabel'
|
|
70561
|
+
]);
|
|
70562
|
+
seriesSpec.seriesMark = (_a = spec.seriesMark) !== null && _a !== void 0 ? _a : 'line';
|
|
70563
|
+
return seriesSpec;
|
|
70563
70564
|
}
|
|
70564
70565
|
transformSpec(spec) {
|
|
70565
70566
|
super.transformSpec(spec);
|
|
@@ -70991,7 +70992,19 @@ const registerAreaSeries = () => {
|
|
|
70991
70992
|
|
|
70992
70993
|
class AreaChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
70993
70994
|
_getDefaultSeriesSpec(spec) {
|
|
70994
|
-
return
|
|
70995
|
+
return super._getDefaultSeriesSpec(spec, [
|
|
70996
|
+
'point',
|
|
70997
|
+
'line',
|
|
70998
|
+
'area',
|
|
70999
|
+
'seriesMark',
|
|
71000
|
+
'activePoint',
|
|
71001
|
+
'sampling',
|
|
71002
|
+
'samplingFactor',
|
|
71003
|
+
'pointDis',
|
|
71004
|
+
'pointDisMul',
|
|
71005
|
+
'markOverlap',
|
|
71006
|
+
'areaLabel'
|
|
71007
|
+
]);
|
|
70995
71008
|
}
|
|
70996
71009
|
transformSpec(spec) {
|
|
70997
71010
|
super.transformSpec(spec);
|
|
@@ -71800,7 +71813,17 @@ const registerBarSeries = () => {
|
|
|
71800
71813
|
|
|
71801
71814
|
class BarChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
71802
71815
|
_getDefaultSeriesSpec(spec) {
|
|
71803
|
-
return
|
|
71816
|
+
return super._getDefaultSeriesSpec(spec, [
|
|
71817
|
+
'barWidth',
|
|
71818
|
+
'barMaxWidth',
|
|
71819
|
+
'barMinWidth',
|
|
71820
|
+
'barGapInGroup',
|
|
71821
|
+
'barMinHeight',
|
|
71822
|
+
'sampling',
|
|
71823
|
+
'samplingFactor',
|
|
71824
|
+
'barBackground',
|
|
71825
|
+
'stackCornerRadius'
|
|
71826
|
+
]);
|
|
71804
71827
|
}
|
|
71805
71828
|
transformSpec(spec) {
|
|
71806
71829
|
super.transformSpec(spec);
|
|
@@ -71858,16 +71881,24 @@ const registerRect3dMark = () => {
|
|
|
71858
71881
|
registerVGrammarRectAnimation();
|
|
71859
71882
|
};
|
|
71860
71883
|
|
|
71884
|
+
class Bar3dSeriesSpecTransformer extends BarSeriesSpecTransformer {
|
|
71885
|
+
_transformLabelSpec(spec) {
|
|
71886
|
+
this._addMarkLabelSpec(spec, "bar3d");
|
|
71887
|
+
}
|
|
71888
|
+
}
|
|
71889
|
+
|
|
71861
71890
|
class Bar3dSeries extends BarSeries {
|
|
71862
71891
|
constructor() {
|
|
71863
71892
|
super(...arguments);
|
|
71864
71893
|
this.type = SeriesTypeEnum.bar3d;
|
|
71865
71894
|
this._barMarkName = "bar3d";
|
|
71866
71895
|
this._barMarkType = "rect3d";
|
|
71896
|
+
this.transformerConstructor = Bar3dSeriesSpecTransformer;
|
|
71867
71897
|
}
|
|
71868
71898
|
}
|
|
71869
71899
|
Bar3dSeries.type = SeriesTypeEnum.bar3d;
|
|
71870
71900
|
Bar3dSeries.mark = bar3dSeriesMark;
|
|
71901
|
+
Bar3dSeries.transformerConstructor = Bar3dSeriesSpecTransformer;
|
|
71871
71902
|
const registerBar3dSeries = () => {
|
|
71872
71903
|
registerBar3dAnimation();
|
|
71873
71904
|
registerRect3dMark();
|
|
@@ -71878,7 +71909,12 @@ const registerBar3dSeries = () => {
|
|
|
71878
71909
|
|
|
71879
71910
|
class Bar3dChartSpecTransformer extends BarChartSpecTransformer {
|
|
71880
71911
|
_getDefaultSeriesSpec(spec) {
|
|
71881
|
-
|
|
71912
|
+
const seriesSpec = super._getDefaultSeriesSpec(spec);
|
|
71913
|
+
seriesSpec.barWidth = spec.barWidth;
|
|
71914
|
+
seriesSpec.barMaxWidth = spec.barMaxWidth;
|
|
71915
|
+
seriesSpec.barMinWidth = spec.barMinWidth;
|
|
71916
|
+
seriesSpec.barGapInGroup = spec.barGapInGroup;
|
|
71917
|
+
return seriesSpec;
|
|
71882
71918
|
}
|
|
71883
71919
|
}
|
|
71884
71920
|
|
|
@@ -72154,26 +72190,7 @@ class ScatterSeries extends CartesianSeries {
|
|
|
72154
72190
|
}
|
|
72155
72191
|
}
|
|
72156
72192
|
handlePan(e) {
|
|
72157
|
-
|
|
72158
|
-
this.getMarksWithoutRoot().forEach(mark => {
|
|
72159
|
-
const vGrammarMark = mark.getProduct();
|
|
72160
|
-
if (!vGrammarMark || !vGrammarMark.elements || !vGrammarMark.elements.length) {
|
|
72161
|
-
return;
|
|
72162
|
-
}
|
|
72163
|
-
const elements = vGrammarMark.elements;
|
|
72164
|
-
elements.forEach((el, i) => {
|
|
72165
|
-
const graphicItem = el.getGraphicItem();
|
|
72166
|
-
const datum = el.getDatum();
|
|
72167
|
-
const newPosition = this.dataToPosition(datum);
|
|
72168
|
-
if (newPosition && graphicItem) {
|
|
72169
|
-
graphicItem.translateTo(newPosition.x, newPosition.y);
|
|
72170
|
-
}
|
|
72171
|
-
});
|
|
72172
|
-
});
|
|
72173
|
-
const vgrammarLabel = (_b = (_a = this._labelMark) === null || _a === void 0 ? void 0 : _a.getComponent()) === null || _b === void 0 ? void 0 : _b.getProduct();
|
|
72174
|
-
if (vgrammarLabel) {
|
|
72175
|
-
vgrammarLabel.evaluate(null, null);
|
|
72176
|
-
}
|
|
72193
|
+
this.handleZoom(e);
|
|
72177
72194
|
}
|
|
72178
72195
|
getDefaultShapeType() {
|
|
72179
72196
|
return 'circle';
|
|
@@ -72195,7 +72212,7 @@ const registerScatterSeries = () => {
|
|
|
72195
72212
|
|
|
72196
72213
|
class ScatterChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
72197
72214
|
_getDefaultSeriesSpec(spec) {
|
|
72198
|
-
return
|
|
72215
|
+
return super._getDefaultSeriesSpec(spec, ['point', 'size', 'shape', 'shapeField', 'sizeField']);
|
|
72199
72216
|
}
|
|
72200
72217
|
}
|
|
72201
72218
|
|
|
@@ -75366,51 +75383,29 @@ class RangeColumnSeries extends BarSeries {
|
|
|
75366
75383
|
}
|
|
75367
75384
|
}
|
|
75368
75385
|
initMarkStyle() {
|
|
75369
|
-
var _a, _b
|
|
75386
|
+
var _a, _b;
|
|
75370
75387
|
super.initMarkStyle();
|
|
75371
|
-
|
|
75372
|
-
|
|
75373
|
-
|
|
75374
|
-
|
|
75375
|
-
|
|
75376
|
-
|
|
75377
|
-
|
|
75378
|
-
|
|
75379
|
-
return minLabelSpec.formatMethod(min, datum);
|
|
75380
|
-
}
|
|
75381
|
-
return min;
|
|
75382
|
-
}
|
|
75383
|
-
});
|
|
75384
|
-
const position = (_d = minLabelSpec === null || minLabelSpec === void 0 ? void 0 : minLabelSpec.position) !== null && _d !== void 0 ? _d : 'end';
|
|
75385
|
-
const offset = (_e = minLabelSpec === null || minLabelSpec === void 0 ? void 0 : minLabelSpec.offset) !== null && _e !== void 0 ? _e : (this._direction === 'vertical' ? -20 : -25);
|
|
75386
|
-
setRectLabelPos(this, minLabelMark, position, offset, (datum) => this._barMark.getAttribute('x', datum), (datum) => {
|
|
75387
|
-
return this._direction === 'vertical'
|
|
75388
|
-
? this._barMark.getAttribute('x', datum) +
|
|
75389
|
-
this._barMark.getAttribute('width', datum)
|
|
75390
|
-
: this._barMark.getAttribute('x1', datum);
|
|
75391
|
-
}, (datum) => this._barMark.getAttribute('y', datum), (datum) => {
|
|
75392
|
-
return this._direction === 'vertical'
|
|
75393
|
-
? this._barMark.getAttribute('y1', datum)
|
|
75394
|
-
: this._barMark.getAttribute('y', datum) +
|
|
75395
|
-
this._barMark.getAttribute('height', datum);
|
|
75396
|
-
}, () => this._direction);
|
|
75397
|
-
}
|
|
75398
|
-
const maxLabelMark = this._maxLabelMark;
|
|
75399
|
-
const maxLabelSpec = (_f = this._spec.label) === null || _f === void 0 ? void 0 : _f.maxLabel;
|
|
75400
|
-
if (maxLabelMark) {
|
|
75401
|
-
this.setMarkStyle(maxLabelMark, {
|
|
75402
|
-
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(),
|
|
75388
|
+
this._initLabelMarkPos(this._minLabelMark, (_a = this._spec.label) === null || _a === void 0 ? void 0 : _a.minLabel, 0, 'end');
|
|
75389
|
+
this._initLabelMarkPos(this._maxLabelMark, (_b = this._spec.label) === null || _b === void 0 ? void 0 : _b.maxLabel, 1, 'start');
|
|
75390
|
+
}
|
|
75391
|
+
_initLabelMarkPos(labelMark, labelSpec, fieldIndex, defaultPosition) {
|
|
75392
|
+
var _a, _b, _c, _d;
|
|
75393
|
+
if (labelMark) {
|
|
75394
|
+
this.setMarkStyle(labelMark, {
|
|
75395
|
+
fill: (_b = (_a = labelSpec === null || labelSpec === void 0 ? void 0 : labelSpec.style) === null || _a === void 0 ? void 0 : _a.fill) !== null && _b !== void 0 ? _b : this.getColorAttribute(),
|
|
75403
75396
|
text: (datum) => {
|
|
75404
|
-
const
|
|
75405
|
-
|
|
75406
|
-
|
|
75397
|
+
const val = this._spec.direction === "horizontal"
|
|
75398
|
+
? datum[this._spec.xField[fieldIndex]]
|
|
75399
|
+
: datum[this._spec.yField[fieldIndex]];
|
|
75400
|
+
if (labelSpec === null || labelSpec === void 0 ? void 0 : labelSpec.formatMethod) {
|
|
75401
|
+
return labelSpec.formatMethod(val, datum);
|
|
75407
75402
|
}
|
|
75408
|
-
return
|
|
75403
|
+
return val;
|
|
75409
75404
|
}
|
|
75410
75405
|
});
|
|
75411
|
-
const position = (
|
|
75412
|
-
const offset = (
|
|
75413
|
-
setRectLabelPos(this,
|
|
75406
|
+
const position = (_c = labelSpec === null || labelSpec === void 0 ? void 0 : labelSpec.position) !== null && _c !== void 0 ? _c : defaultPosition;
|
|
75407
|
+
const offset = (_d = labelSpec === null || labelSpec === void 0 ? void 0 : labelSpec.offset) !== null && _d !== void 0 ? _d : (this._direction === 'vertical' ? -20 : -25);
|
|
75408
|
+
setRectLabelPos(this, labelMark, position, offset, (datum) => this._barMark.getAttribute('x', datum), (datum) => {
|
|
75414
75409
|
return this._direction === 'vertical'
|
|
75415
75410
|
? this._barMark.getAttribute('x', datum) +
|
|
75416
75411
|
this._barMark.getAttribute('width', datum)
|
|
@@ -76615,22 +76610,7 @@ class Pie3dSeries extends BasePieSeries {
|
|
|
76615
76610
|
return;
|
|
76616
76611
|
}
|
|
76617
76612
|
super.initLabelMarkStyle(textMark);
|
|
76618
|
-
|
|
76619
|
-
textMark.setMarkConfig({ support3d: true });
|
|
76620
|
-
params3d.beta = this._angle3d;
|
|
76621
|
-
params3d.anchor3d = (datum) => {
|
|
76622
|
-
const { x, y } = this.getCenter();
|
|
76623
|
-
const anchor = [
|
|
76624
|
-
x,
|
|
76625
|
-
y
|
|
76626
|
-
];
|
|
76627
|
-
return anchor;
|
|
76628
|
-
};
|
|
76629
|
-
params3d.angle = (datum) => {
|
|
76630
|
-
const angle = datum[ARC_MIDDLE_ANGLE];
|
|
76631
|
-
return spec.position === 'inside' ? radianToDegree(angle) : 0;
|
|
76632
|
-
};
|
|
76633
|
-
this.setMarkStyle(textMark, Object.assign(Object.assign({}, params3d), { z: 100 }), undefined, AttributeLevel.Mark);
|
|
76613
|
+
this.setMarkStyle(textMark, { support3d: true }, undefined, AttributeLevel.Mark);
|
|
76634
76614
|
}
|
|
76635
76615
|
}
|
|
76636
76616
|
Pie3dSeries.type = SeriesTypeEnum.pie3d;
|
|
@@ -77720,7 +77700,6 @@ RadarSeries.transformerConstructor = LineLikeSeriesSpecTransformer;
|
|
|
77720
77700
|
mixin(RadarSeries, LineLikeSeriesMixin);
|
|
77721
77701
|
const registerRadarSeries = () => {
|
|
77722
77702
|
Factory$1.registerSeries(RadarSeries.type, RadarSeries);
|
|
77723
|
-
registerMarkOverlapTransform();
|
|
77724
77703
|
registerAreaMark();
|
|
77725
77704
|
registerLineMark();
|
|
77726
77705
|
registerSymbolMark();
|
|
@@ -79470,9 +79449,7 @@ BaseWordCloudSeries.mark = wordCloudSeriesMark;
|
|
|
79470
79449
|
const WordCloud3dAnimation = (params) => {
|
|
79471
79450
|
return {
|
|
79472
79451
|
custom: RotateBySphereAnimate,
|
|
79473
|
-
customParameters: (datum, element) =>
|
|
79474
|
-
return params;
|
|
79475
|
-
},
|
|
79452
|
+
customParameters: (datum, element) => params,
|
|
79476
79453
|
easing: 'linear',
|
|
79477
79454
|
loop: Infinity,
|
|
79478
79455
|
duration: 6000
|
|
@@ -79524,7 +79501,7 @@ const registerWordCloudAnimation = () => {
|
|
|
79524
79501
|
};
|
|
79525
79502
|
const registerWordCloud3dAnimation = () => {
|
|
79526
79503
|
Factory$1.registerAnimation('wordCloud3d', (params) => ({
|
|
79527
|
-
|
|
79504
|
+
enter: WordCloud3dAnimation(params)
|
|
79528
79505
|
}));
|
|
79529
79506
|
};
|
|
79530
79507
|
|
|
@@ -83389,6 +83366,26 @@ class Drillable {
|
|
|
83389
83366
|
|
|
83390
83367
|
const sunburstSeriesMark = Object.assign(Object.assign({}, baseSeriesMark), { ["sunburst"]: { name: "sunburst", type: "arc" } });
|
|
83391
83368
|
|
|
83369
|
+
const appendHierarchyFields = (fields, catField, valueField) => {
|
|
83370
|
+
fields.push({
|
|
83371
|
+
key: catField,
|
|
83372
|
+
operations: ['values']
|
|
83373
|
+
});
|
|
83374
|
+
fields.push({
|
|
83375
|
+
key: valueField,
|
|
83376
|
+
operations: ['max', 'min']
|
|
83377
|
+
});
|
|
83378
|
+
fields.push({
|
|
83379
|
+
key: DEFAULT_HIERARCHY_DEPTH,
|
|
83380
|
+
operations: ['max', 'min', 'values']
|
|
83381
|
+
});
|
|
83382
|
+
fields.push({
|
|
83383
|
+
key: DEFAULT_HIERARCHY_ROOT,
|
|
83384
|
+
operations: ['values']
|
|
83385
|
+
});
|
|
83386
|
+
return fields;
|
|
83387
|
+
};
|
|
83388
|
+
|
|
83392
83389
|
class SunburstSeries extends PolarSeries {
|
|
83393
83390
|
constructor() {
|
|
83394
83391
|
super(...arguments);
|
|
@@ -83488,25 +83485,7 @@ class SunburstSeries extends PolarSeries {
|
|
|
83488
83485
|
});
|
|
83489
83486
|
}
|
|
83490
83487
|
getStatisticFields() {
|
|
83491
|
-
|
|
83492
|
-
return fields.concat([
|
|
83493
|
-
{
|
|
83494
|
-
key: this._categoryField,
|
|
83495
|
-
operations: ['values']
|
|
83496
|
-
},
|
|
83497
|
-
{
|
|
83498
|
-
key: this._valueField,
|
|
83499
|
-
operations: ['max', 'min']
|
|
83500
|
-
},
|
|
83501
|
-
{
|
|
83502
|
-
key: DEFAULT_HIERARCHY_DEPTH,
|
|
83503
|
-
operations: ['max', 'min', 'values']
|
|
83504
|
-
},
|
|
83505
|
-
{
|
|
83506
|
-
key: DEFAULT_HIERARCHY_ROOT,
|
|
83507
|
-
operations: ['values']
|
|
83508
|
-
}
|
|
83509
|
-
]);
|
|
83488
|
+
return appendHierarchyFields(super.getStatisticFields(), this._categoryField, this._valueField);
|
|
83510
83489
|
}
|
|
83511
83490
|
_addDataIndexAndKey() {
|
|
83512
83491
|
const rawData = this.getRawData();
|
|
@@ -83871,25 +83850,7 @@ class CirclePackingSeries extends CartesianSeries {
|
|
|
83871
83850
|
}, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
83872
83851
|
}
|
|
83873
83852
|
getStatisticFields() {
|
|
83874
|
-
|
|
83875
|
-
return fields.concat([
|
|
83876
|
-
{
|
|
83877
|
-
key: this._categoryField,
|
|
83878
|
-
operations: ['values']
|
|
83879
|
-
},
|
|
83880
|
-
{
|
|
83881
|
-
key: this._valueField,
|
|
83882
|
-
operations: ['max', 'min']
|
|
83883
|
-
},
|
|
83884
|
-
{
|
|
83885
|
-
key: DEFAULT_HIERARCHY_DEPTH,
|
|
83886
|
-
operations: ['max', 'min', 'values']
|
|
83887
|
-
},
|
|
83888
|
-
{
|
|
83889
|
-
key: DEFAULT_HIERARCHY_ROOT,
|
|
83890
|
-
operations: ['values']
|
|
83891
|
-
}
|
|
83892
|
-
]);
|
|
83853
|
+
return appendHierarchyFields(super.getStatisticFields(), this._categoryField, this._valueField);
|
|
83893
83854
|
}
|
|
83894
83855
|
initTooltip() {
|
|
83895
83856
|
this._tooltipHelper = new CirclePackingTooltipHelper(this);
|
|
@@ -85901,25 +85862,7 @@ class TreemapSeries extends CartesianSeries {
|
|
|
85901
85862
|
return data;
|
|
85902
85863
|
}
|
|
85903
85864
|
getStatisticFields() {
|
|
85904
|
-
|
|
85905
|
-
return fields.concat([
|
|
85906
|
-
{
|
|
85907
|
-
key: this._categoryField,
|
|
85908
|
-
operations: ['values']
|
|
85909
|
-
},
|
|
85910
|
-
{
|
|
85911
|
-
key: this._valueField,
|
|
85912
|
-
operations: ['max', 'min']
|
|
85913
|
-
},
|
|
85914
|
-
{
|
|
85915
|
-
key: DEFAULT_HIERARCHY_DEPTH,
|
|
85916
|
-
operations: ['max', 'min', 'values']
|
|
85917
|
-
},
|
|
85918
|
-
{
|
|
85919
|
-
key: DEFAULT_HIERARCHY_ROOT,
|
|
85920
|
-
operations: ['values']
|
|
85921
|
-
}
|
|
85922
|
-
]);
|
|
85865
|
+
return appendHierarchyFields(super.getStatisticFields(), this._categoryField, this._valueField);
|
|
85923
85866
|
}
|
|
85924
85867
|
initMark() {
|
|
85925
85868
|
var _a, _b, _c, _d;
|
|
@@ -85986,6 +85929,15 @@ class TreemapSeries extends CartesianSeries {
|
|
|
85986
85929
|
fill: this.getColorAttribute()
|
|
85987
85930
|
}, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
85988
85931
|
}
|
|
85932
|
+
_initRichStyleOfLabelMark(labelMark) {
|
|
85933
|
+
if (labelMark.getTextType() === 'rich') {
|
|
85934
|
+
this.setMarkStyle(labelMark, {
|
|
85935
|
+
maxWidth: datum => Math.abs(datum.x0 - datum.x1),
|
|
85936
|
+
maxHeight: datum => Math.abs(datum.y0 - datum.y1),
|
|
85937
|
+
ellipsis: true
|
|
85938
|
+
}, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
85939
|
+
}
|
|
85940
|
+
}
|
|
85989
85941
|
initLabelMarkStyle(labelMark) {
|
|
85990
85942
|
if (!labelMark) {
|
|
85991
85943
|
return;
|
|
@@ -86003,13 +85955,7 @@ class TreemapSeries extends CartesianSeries {
|
|
|
86003
85955
|
return datum.x1 === datum.x0 ? Number.MIN_VALUE : datum.x1 - datum.x0;
|
|
86004
85956
|
}
|
|
86005
85957
|
}, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
86006
|
-
|
|
86007
|
-
this.setMarkStyle(labelMark, {
|
|
86008
|
-
maxWidth: datum => Math.abs(datum.x0 - datum.x1),
|
|
86009
|
-
maxHeight: datum => Math.abs(datum.y0 - datum.y1),
|
|
86010
|
-
ellipsis: true
|
|
86011
|
-
}, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
86012
|
-
}
|
|
85958
|
+
this._initRichStyleOfLabelMark(labelMark);
|
|
86013
85959
|
}
|
|
86014
85960
|
initNonLeafLabelMarkStyle(labelMark) {
|
|
86015
85961
|
if (!labelMark) {
|
|
@@ -86038,13 +85984,7 @@ class TreemapSeries extends CartesianSeries {
|
|
|
86038
85984
|
return datum.x1 === datum.x0 ? Number.MIN_VALUE : datum.x1 - datum.x0;
|
|
86039
85985
|
}
|
|
86040
85986
|
}, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
86041
|
-
|
|
86042
|
-
this.setMarkStyle(labelMark, {
|
|
86043
|
-
maxWidth: datum => Math.abs(datum.x0 - datum.x1),
|
|
86044
|
-
maxHeight: datum => Math.abs(datum.y0 - datum.y1),
|
|
86045
|
-
ellipsis: true
|
|
86046
|
-
}, STATE_VALUE_ENUM.STATE_NORMAL, AttributeLevel.Series);
|
|
86047
|
-
}
|
|
85987
|
+
this._initRichStyleOfLabelMark(labelMark);
|
|
86048
85988
|
}
|
|
86049
85989
|
initAnimation() {
|
|
86050
85990
|
this.getMarksInType("rect").forEach(mark => {
|
|
@@ -89357,30 +89297,25 @@ class MapChartSpecTransformer extends BaseChartSpecTransformer {
|
|
|
89357
89297
|
return type === SeriesTypeEnum.map;
|
|
89358
89298
|
}
|
|
89359
89299
|
_getDefaultSeriesSpec(spec) {
|
|
89360
|
-
|
|
89361
|
-
|
|
89300
|
+
return super._getDefaultSeriesSpec(spec, [
|
|
89301
|
+
'type',
|
|
89302
|
+
'nameField',
|
|
89303
|
+
'valueField',
|
|
89304
|
+
'map',
|
|
89305
|
+
'nameProperty',
|
|
89306
|
+
'centroidProperty',
|
|
89307
|
+
'nameMap',
|
|
89308
|
+
'area',
|
|
89309
|
+
'defaultFillColor',
|
|
89310
|
+
'showDefaultName'
|
|
89311
|
+
]);
|
|
89362
89312
|
}
|
|
89363
89313
|
transformSpec(spec) {
|
|
89364
89314
|
super.transformSpec(spec);
|
|
89365
89315
|
spec.region.forEach((r) => {
|
|
89366
89316
|
r.coordinate = 'geo';
|
|
89367
89317
|
});
|
|
89368
|
-
|
|
89369
|
-
if (!spec.series || spec.series.length === 0) {
|
|
89370
|
-
spec.series = [defaultSeriesSpec];
|
|
89371
|
-
}
|
|
89372
|
-
else {
|
|
89373
|
-
spec.series.forEach((s) => {
|
|
89374
|
-
if (!this._isValidSeries(s.type)) {
|
|
89375
|
-
return;
|
|
89376
|
-
}
|
|
89377
|
-
Object.keys(defaultSeriesSpec).forEach(k => {
|
|
89378
|
-
if (!(k in s)) {
|
|
89379
|
-
s[k] = defaultSeriesSpec[k];
|
|
89380
|
-
}
|
|
89381
|
-
});
|
|
89382
|
-
});
|
|
89383
|
-
}
|
|
89318
|
+
super.transformSeriesSpec(spec);
|
|
89384
89319
|
}
|
|
89385
89320
|
}
|
|
89386
89321
|
|
|
@@ -89417,13 +89352,8 @@ class PolarChartSpecTransformer extends BaseChartSpecTransformer {
|
|
|
89417
89352
|
}
|
|
89418
89353
|
return indicatorSpec;
|
|
89419
89354
|
}
|
|
89420
|
-
_getDefaultSeriesSpec(spec) {
|
|
89421
|
-
const series =
|
|
89422
|
-
const seriesType = this.seriesType;
|
|
89423
|
-
if (seriesType) {
|
|
89424
|
-
series.type = seriesType;
|
|
89425
|
-
series[seriesType] = spec[seriesType];
|
|
89426
|
-
}
|
|
89355
|
+
_getDefaultSeriesSpec(spec, pickKeys) {
|
|
89356
|
+
const series = super._getDefaultSeriesSpec(spec, ['radius', 'outerRadius', 'innerRadius', 'startAngle', 'endAngle', 'sortDataByAxis'], pickKeys);
|
|
89427
89357
|
return series;
|
|
89428
89358
|
}
|
|
89429
89359
|
transformSpec(spec) {
|
|
@@ -89447,7 +89377,9 @@ class ProgressLikeChartSpecTransformer extends PolarChartSpecTransformer {
|
|
|
89447
89377
|
return false;
|
|
89448
89378
|
}
|
|
89449
89379
|
_getDefaultSeriesSpec(spec) {
|
|
89450
|
-
const series =
|
|
89380
|
+
const series = super._getDefaultSeriesSpec(spec, ['startAngle', 'endAngle', 'centerX', 'centerY']);
|
|
89381
|
+
series.categoryField = spec.categoryField || spec.radiusField;
|
|
89382
|
+
series.valueField = spec.valueField || spec.angleField;
|
|
89451
89383
|
return series;
|
|
89452
89384
|
}
|
|
89453
89385
|
_transformProgressAxisSpec(spec, angleAxisDefaultSpec, radiusAxisDefaultSpec, angleAxisAppendSpec, radiusAxisAppendSpec) {
|
|
@@ -89492,7 +89424,9 @@ class RoseLikeChartSpecTransformer extends PolarChartSpecTransformer {
|
|
|
89492
89424
|
return true;
|
|
89493
89425
|
}
|
|
89494
89426
|
_getDefaultSeriesSpec(spec) {
|
|
89495
|
-
const series =
|
|
89427
|
+
const series = super._getDefaultSeriesSpec(spec);
|
|
89428
|
+
series.categoryField = spec.categoryField || spec.angleField;
|
|
89429
|
+
series.valueField = spec.valueField || spec.radiusField;
|
|
89496
89430
|
return series;
|
|
89497
89431
|
}
|
|
89498
89432
|
transformSpec(spec) {
|
|
@@ -89532,7 +89466,21 @@ class BasePieChartSpecTransformer extends PolarChartSpecTransformer {
|
|
|
89532
89466
|
}
|
|
89533
89467
|
_getDefaultSeriesSpec(spec) {
|
|
89534
89468
|
var _a;
|
|
89535
|
-
|
|
89469
|
+
const seriesSpec = super._getDefaultSeriesSpec(spec, [
|
|
89470
|
+
'center',
|
|
89471
|
+
'centerOffset',
|
|
89472
|
+
'cornerRadius',
|
|
89473
|
+
'padAngle',
|
|
89474
|
+
'minAngle',
|
|
89475
|
+
'emptyPlaceholder',
|
|
89476
|
+
'showAllZero',
|
|
89477
|
+
'supportNegative',
|
|
89478
|
+
'layoutRadius'
|
|
89479
|
+
]);
|
|
89480
|
+
seriesSpec.categoryField = spec.categoryField || spec.seriesField;
|
|
89481
|
+
seriesSpec.valueField = spec.valueField || spec.angleField;
|
|
89482
|
+
seriesSpec.emptyCircle = (_a = spec.emptyPlaceholder) === null || _a === void 0 ? void 0 : _a.emptyCircle;
|
|
89483
|
+
return seriesSpec;
|
|
89536
89484
|
}
|
|
89537
89485
|
}
|
|
89538
89486
|
|
|
@@ -89590,7 +89538,13 @@ const registerPie3dChart = () => {
|
|
|
89590
89538
|
class RoseChartSpecTransformer extends RoseLikeChartSpecTransformer {
|
|
89591
89539
|
_getDefaultSeriesSpec(spec) {
|
|
89592
89540
|
var _a, _b, _c;
|
|
89593
|
-
|
|
89541
|
+
const series = super._getDefaultSeriesSpec(spec);
|
|
89542
|
+
series.radius = (_a = spec.radius) !== null && _a !== void 0 ? _a : POLAR_DEFAULT_RADIUS;
|
|
89543
|
+
series.outerRadius = (_b = spec.outerRadius) !== null && _b !== void 0 ? _b : POLAR_DEFAULT_RADIUS;
|
|
89544
|
+
series.innerRadius = (_c = spec.innerRadius) !== null && _c !== void 0 ? _c : 0;
|
|
89545
|
+
series.stack = spec.stack;
|
|
89546
|
+
series.percent = spec.percent;
|
|
89547
|
+
return series;
|
|
89594
89548
|
}
|
|
89595
89549
|
transformSpec(spec) {
|
|
89596
89550
|
var _a;
|
|
@@ -89639,9 +89593,20 @@ const registerRoseChart = () => {
|
|
|
89639
89593
|
class RadarChartSpecTransformer extends RoseLikeChartSpecTransformer {
|
|
89640
89594
|
_getDefaultSeriesSpec(spec) {
|
|
89641
89595
|
var _a;
|
|
89642
|
-
|
|
89643
|
-
|
|
89644
|
-
|
|
89596
|
+
const series = super._getDefaultSeriesSpec(spec);
|
|
89597
|
+
series.line = spec.line;
|
|
89598
|
+
series.point = spec.point;
|
|
89599
|
+
series.stack = spec.stack;
|
|
89600
|
+
series.percent = spec.percent;
|
|
89601
|
+
series.area = mergeSpec({
|
|
89602
|
+
visible: false
|
|
89603
|
+
}, spec.area);
|
|
89604
|
+
series.seriesMark = (_a = spec.seriesMark) !== null && _a !== void 0 ? _a : 'area';
|
|
89605
|
+
series.activePoint = spec.activePoint;
|
|
89606
|
+
series.pointDis = spec.pointDis;
|
|
89607
|
+
series.pointDisMul = spec.pointDisMul;
|
|
89608
|
+
series.markOverlap = spec.markOverlap;
|
|
89609
|
+
return series;
|
|
89645
89610
|
}
|
|
89646
89611
|
transformSpec(spec) {
|
|
89647
89612
|
var _a;
|
|
@@ -90056,7 +90021,7 @@ class BaseHistogramChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
|
90056
90021
|
spec.axes.forEach((axis) => (axis.type = 'linear'));
|
|
90057
90022
|
}
|
|
90058
90023
|
_getDefaultSeriesSpec(spec) {
|
|
90059
|
-
return
|
|
90024
|
+
return super._getDefaultSeriesSpec(spec, ['x2Field', 'y2Field', 'barMinHeight', 'barBackground']);
|
|
90060
90025
|
}
|
|
90061
90026
|
}
|
|
90062
90027
|
|
|
@@ -90113,7 +90078,12 @@ class CircularProgressChartSpecTransformer extends ProgressLikeChartSpecTransfor
|
|
|
90113
90078
|
_getDefaultSeriesSpec(spec) {
|
|
90114
90079
|
var _a, _b;
|
|
90115
90080
|
const series = super._getDefaultSeriesSpec(spec);
|
|
90116
|
-
|
|
90081
|
+
series.progress = spec.progress;
|
|
90082
|
+
series.track = spec.track;
|
|
90083
|
+
series.tickMask = spec.tickMask;
|
|
90084
|
+
series.cornerRadius = (_a = spec.cornerRadius) !== null && _a !== void 0 ? _a : 0;
|
|
90085
|
+
series.roundCap = (_b = spec.roundCap) !== null && _b !== void 0 ? _b : false;
|
|
90086
|
+
return series;
|
|
90117
90087
|
}
|
|
90118
90088
|
transformSpec(spec) {
|
|
90119
90089
|
super.transformSpec(spec);
|
|
@@ -90149,10 +90119,15 @@ const registerCircularProgressChart = () => {
|
|
|
90149
90119
|
class GaugeChartSpecTransformer extends ProgressLikeChartSpecTransformer {
|
|
90150
90120
|
_getDefaultSeriesSpec(spec) {
|
|
90151
90121
|
const series = super._getDefaultSeriesSpec(spec);
|
|
90152
|
-
|
|
90122
|
+
series.radiusField = spec.radiusField;
|
|
90123
|
+
series.pin = spec.pin;
|
|
90124
|
+
series.pinBackground = spec.pinBackground;
|
|
90125
|
+
series.pointer = spec.pointer;
|
|
90126
|
+
return series;
|
|
90153
90127
|
}
|
|
90154
90128
|
_getDefaultCircularProgressSeriesSpec(spec) {
|
|
90155
|
-
const series =
|
|
90129
|
+
const series = super._getDefaultSeriesSpec(spec);
|
|
90130
|
+
series.type = SeriesTypeEnum.circularProgress;
|
|
90156
90131
|
return series;
|
|
90157
90132
|
}
|
|
90158
90133
|
transformSpec(spec) {
|
|
@@ -90269,6 +90244,30 @@ class BaseWordCloudChartSpecTransformer extends BaseChartSpecTransformer {
|
|
|
90269
90244
|
super.transformSpec(spec);
|
|
90270
90245
|
this.transformSeriesSpec(spec);
|
|
90271
90246
|
}
|
|
90247
|
+
_getDefaultSeriesSpec(spec) {
|
|
90248
|
+
const series = super._getDefaultSeriesSpec(spec, [
|
|
90249
|
+
'nameField',
|
|
90250
|
+
'valueField',
|
|
90251
|
+
'fontFamilyField',
|
|
90252
|
+
'fontWeightField',
|
|
90253
|
+
'fontStyleField',
|
|
90254
|
+
'colorHexField',
|
|
90255
|
+
'colorMode',
|
|
90256
|
+
'colorList',
|
|
90257
|
+
'rotateAngles',
|
|
90258
|
+
'fontWeightRange',
|
|
90259
|
+
'fontSizeRange',
|
|
90260
|
+
'maskShape',
|
|
90261
|
+
'keepAspect',
|
|
90262
|
+
'random',
|
|
90263
|
+
'wordCloudConfig',
|
|
90264
|
+
'wordCloudShapeConfig',
|
|
90265
|
+
'word',
|
|
90266
|
+
'fillingWord',
|
|
90267
|
+
'wordMask'
|
|
90268
|
+
]);
|
|
90269
|
+
return series;
|
|
90270
|
+
}
|
|
90272
90271
|
}
|
|
90273
90272
|
|
|
90274
90273
|
class BaseWordCloudChart extends BaseChart {
|
|
@@ -90281,29 +90280,17 @@ class BaseWordCloudChart extends BaseChart {
|
|
|
90281
90280
|
}
|
|
90282
90281
|
BaseWordCloudChart.transformerConstructor = BaseWordCloudChartSpecTransformer;
|
|
90283
90282
|
|
|
90284
|
-
class WordCloudChartSpecTransformer extends BaseWordCloudChartSpecTransformer {
|
|
90285
|
-
_getDefaultSeriesSpec(spec) {
|
|
90286
|
-
const series = Object.assign(Object.assign({}, super._getDefaultSeriesSpec(spec)), { nameField: spec.nameField, valueField: spec.valueField, seriesField: spec.seriesField, fontFamilyField: spec.fontFamilyField, fontWeightField: spec.fontWeightField, fontStyleField: spec.fontStyleField, colorHexField: spec.colorHexField, colorMode: spec.colorMode, colorList: spec.colorList, rotateAngles: spec.rotateAngles, fontWeightRange: spec.fontWeightRange, fontSizeRange: spec.fontSizeRange, maskShape: spec.maskShape, keepAspect: spec.keepAspect, random: spec.random, wordCloudConfig: spec.wordCloudConfig, wordCloudShapeConfig: spec.wordCloudShapeConfig, word: spec.word, fillingWord: spec.fillingWord, wordMask: spec.wordMask });
|
|
90287
|
-
const seriesType = this.seriesType;
|
|
90288
|
-
if (seriesType) {
|
|
90289
|
-
series.type = seriesType;
|
|
90290
|
-
series[seriesType] = spec[seriesType];
|
|
90291
|
-
}
|
|
90292
|
-
return series;
|
|
90293
|
-
}
|
|
90294
|
-
}
|
|
90295
|
-
|
|
90296
90283
|
class WordCloudChart extends BaseWordCloudChart {
|
|
90297
90284
|
constructor() {
|
|
90298
90285
|
super(...arguments);
|
|
90299
|
-
this.transformerConstructor =
|
|
90286
|
+
this.transformerConstructor = (BaseWordCloudChartSpecTransformer);
|
|
90300
90287
|
this.type = "wordCloud";
|
|
90301
90288
|
this.seriesType = SeriesTypeEnum.wordCloud;
|
|
90302
90289
|
}
|
|
90303
90290
|
}
|
|
90304
90291
|
WordCloudChart.type = "wordCloud";
|
|
90305
90292
|
WordCloudChart.seriesType = SeriesTypeEnum.wordCloud;
|
|
90306
|
-
WordCloudChart.transformerConstructor =
|
|
90293
|
+
WordCloudChart.transformerConstructor = (BaseWordCloudChartSpecTransformer);
|
|
90307
90294
|
const registerWordCloudChart = () => {
|
|
90308
90295
|
registerWordCloudSeries();
|
|
90309
90296
|
Factory$1.registerChart(WordCloudChart.type, WordCloudChart);
|
|
@@ -90315,12 +90302,8 @@ const registerWordCloudShapeChart = () => {
|
|
|
90315
90302
|
|
|
90316
90303
|
class WordCloud3dChartSpecTransformer extends BaseWordCloudChartSpecTransformer {
|
|
90317
90304
|
_getDefaultSeriesSpec(spec) {
|
|
90318
|
-
const series =
|
|
90319
|
-
|
|
90320
|
-
if (seriesType) {
|
|
90321
|
-
series.type = seriesType;
|
|
90322
|
-
series[seriesType] = spec[seriesType];
|
|
90323
|
-
}
|
|
90305
|
+
const series = super._getDefaultSeriesSpec(spec);
|
|
90306
|
+
series.depth_3d = spec.depth_3d;
|
|
90324
90307
|
return series;
|
|
90325
90308
|
}
|
|
90326
90309
|
}
|
|
@@ -90352,32 +90335,29 @@ class FunnelChartSpecTransformer extends BaseChartSpecTransformer {
|
|
|
90352
90335
|
return false;
|
|
90353
90336
|
}
|
|
90354
90337
|
_getDefaultSeriesSpec(spec) {
|
|
90355
|
-
const series =
|
|
90356
|
-
|
|
90357
|
-
|
|
90358
|
-
|
|
90359
|
-
|
|
90360
|
-
|
|
90338
|
+
const series = super._getDefaultSeriesSpec(spec, [
|
|
90339
|
+
'categoryField',
|
|
90340
|
+
'valueField',
|
|
90341
|
+
'funnelAlign',
|
|
90342
|
+
'funnelOrient',
|
|
90343
|
+
'heightRatio',
|
|
90344
|
+
'shape',
|
|
90345
|
+
'funnel',
|
|
90346
|
+
'transform',
|
|
90347
|
+
'outerLabel',
|
|
90348
|
+
'transformLabel',
|
|
90349
|
+
'isTransform',
|
|
90350
|
+
'maxSize',
|
|
90351
|
+
'minSize',
|
|
90352
|
+
'gap',
|
|
90353
|
+
'isCone',
|
|
90354
|
+
'range'
|
|
90355
|
+
]);
|
|
90361
90356
|
return series;
|
|
90362
90357
|
}
|
|
90363
90358
|
transformSpec(spec) {
|
|
90364
90359
|
super.transformSpec(spec);
|
|
90365
|
-
|
|
90366
|
-
if (!spec.series || spec.series.length === 0) {
|
|
90367
|
-
spec.series = [defaultSeriesSpec];
|
|
90368
|
-
}
|
|
90369
|
-
else {
|
|
90370
|
-
spec.series.forEach((s) => {
|
|
90371
|
-
if (!this._isValidSeries(s.type)) {
|
|
90372
|
-
return;
|
|
90373
|
-
}
|
|
90374
|
-
Object.keys(defaultSeriesSpec).forEach(k => {
|
|
90375
|
-
if (!(k in s)) {
|
|
90376
|
-
s[k] = defaultSeriesSpec[k];
|
|
90377
|
-
}
|
|
90378
|
-
});
|
|
90379
|
-
});
|
|
90380
|
-
}
|
|
90360
|
+
super.transformSeriesSpec(spec);
|
|
90381
90361
|
}
|
|
90382
90362
|
}
|
|
90383
90363
|
|
|
@@ -90420,8 +90400,10 @@ class LinearProgressChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
|
90420
90400
|
}
|
|
90421
90401
|
_getDefaultSeriesSpec(spec) {
|
|
90422
90402
|
var _a, _b;
|
|
90423
|
-
const series = super._getDefaultSeriesSpec(spec);
|
|
90424
|
-
|
|
90403
|
+
const series = super._getDefaultSeriesSpec(spec, ['bandWidth', 'progress', 'track']);
|
|
90404
|
+
series.direction = (_a = spec.direction) !== null && _a !== void 0 ? _a : 'horizontal';
|
|
90405
|
+
series.cornerRadius = (_b = spec.cornerRadius) !== null && _b !== void 0 ? _b : 0;
|
|
90406
|
+
return series;
|
|
90425
90407
|
}
|
|
90426
90408
|
transformSpec(spec) {
|
|
90427
90409
|
var _a, _b;
|
|
@@ -90533,8 +90515,16 @@ const registerLinearProgressChart = () => {
|
|
|
90533
90515
|
class RangeColumnChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
90534
90516
|
_getDefaultSeriesSpec(spec) {
|
|
90535
90517
|
var _a, _b;
|
|
90536
|
-
const series =
|
|
90537
|
-
|
|
90518
|
+
const series = super._getDefaultSeriesSpec(spec, [
|
|
90519
|
+
'barWidth',
|
|
90520
|
+
'barMaxWidth',
|
|
90521
|
+
'barMinWidth',
|
|
90522
|
+
'barGapInGroup',
|
|
90523
|
+
'barBackground',
|
|
90524
|
+
'barMinHeight',
|
|
90525
|
+
'stackCornerRadius',
|
|
90526
|
+
'bar'
|
|
90527
|
+
]);
|
|
90538
90528
|
if (spec.direction === "horizontal") {
|
|
90539
90529
|
series.xField = (_a = spec.xField) !== null && _a !== void 0 ? _a : [spec.minField, spec.maxField];
|
|
90540
90530
|
}
|
|
@@ -90568,8 +90558,7 @@ const registerRangeColumnChart = () => {
|
|
|
90568
90558
|
class RangeColumn3dChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
90569
90559
|
_getDefaultSeriesSpec(spec) {
|
|
90570
90560
|
var _a, _b;
|
|
90571
|
-
const series =
|
|
90572
|
-
series.bar3d = spec.bar3d;
|
|
90561
|
+
const series = super._getDefaultSeriesSpec(spec, ['bar3d', 'barGapInGroup']);
|
|
90573
90562
|
if (spec.direction === "horizontal") {
|
|
90574
90563
|
series.xField = (_a = spec.xField) !== null && _a !== void 0 ? _a : [spec.minField, spec.maxField];
|
|
90575
90564
|
}
|
|
@@ -90601,10 +90590,24 @@ class SunburstChartSpecTransformer extends BaseChartSpecTransformer {
|
|
|
90601
90590
|
_getDefaultSeriesSpec(spec) {
|
|
90602
90591
|
const startAngle = isValid$1(spec.startAngle) ? spec.startAngle : POLAR_START_ANGLE;
|
|
90603
90592
|
const endAngle = isValid$1(spec.endAngle) ? spec.endAngle : startAngle + radianToDegree(Math.PI * 2);
|
|
90604
|
-
const series =
|
|
90605
|
-
|
|
90606
|
-
|
|
90607
|
-
|
|
90593
|
+
const series = super._getDefaultSeriesSpec(spec, [
|
|
90594
|
+
'categoryField',
|
|
90595
|
+
'valueField',
|
|
90596
|
+
'centerX',
|
|
90597
|
+
'centerY',
|
|
90598
|
+
'offsetX',
|
|
90599
|
+
'offsetY',
|
|
90600
|
+
'innerRadius',
|
|
90601
|
+
'outerRadius',
|
|
90602
|
+
'gap',
|
|
90603
|
+
'labelLayout',
|
|
90604
|
+
'label',
|
|
90605
|
+
'labelAutoVisible',
|
|
90606
|
+
'drill',
|
|
90607
|
+
'drillField'
|
|
90608
|
+
]);
|
|
90609
|
+
series.startAngle = startAngle;
|
|
90610
|
+
series.endAngle = endAngle;
|
|
90608
90611
|
return series;
|
|
90609
90612
|
}
|
|
90610
90613
|
transformSpec(spec) {
|
|
@@ -90631,10 +90634,14 @@ const registerSunburstChart = () => {
|
|
|
90631
90634
|
|
|
90632
90635
|
class CirclePackingChartSpecTransformer extends BaseChartSpecTransformer {
|
|
90633
90636
|
_getDefaultSeriesSpec(spec) {
|
|
90634
|
-
const series =
|
|
90635
|
-
|
|
90636
|
-
|
|
90637
|
-
|
|
90637
|
+
const series = super._getDefaultSeriesSpec(spec, [
|
|
90638
|
+
'categoryField',
|
|
90639
|
+
'valueField',
|
|
90640
|
+
'layoutPadding',
|
|
90641
|
+
'circlePacking',
|
|
90642
|
+
'drill',
|
|
90643
|
+
'drillField'
|
|
90644
|
+
]);
|
|
90638
90645
|
return series;
|
|
90639
90646
|
}
|
|
90640
90647
|
transformSpec(spec) {
|
|
@@ -90661,12 +90668,24 @@ const registerCirclePackingChart = () => {
|
|
|
90661
90668
|
|
|
90662
90669
|
class TreemapChartSpecTransformer extends BaseChartSpecTransformer {
|
|
90663
90670
|
_getDefaultSeriesSpec(spec) {
|
|
90664
|
-
const series =
|
|
90665
|
-
|
|
90666
|
-
|
|
90667
|
-
|
|
90668
|
-
|
|
90669
|
-
|
|
90671
|
+
const series = super._getDefaultSeriesSpec(spec, [
|
|
90672
|
+
'categoryField',
|
|
90673
|
+
'valueField',
|
|
90674
|
+
'aspectRatio',
|
|
90675
|
+
'splitType',
|
|
90676
|
+
'maxDepth',
|
|
90677
|
+
'gapWidth',
|
|
90678
|
+
'nodePadding',
|
|
90679
|
+
'minVisibleArea',
|
|
90680
|
+
'minChildrenVisibleArea',
|
|
90681
|
+
'minChildrenVisibleSize',
|
|
90682
|
+
'roam',
|
|
90683
|
+
'drill',
|
|
90684
|
+
'drillField',
|
|
90685
|
+
'leaf',
|
|
90686
|
+
'nonLeaf',
|
|
90687
|
+
'nonLeafLabel'
|
|
90688
|
+
]);
|
|
90670
90689
|
return series;
|
|
90671
90690
|
}
|
|
90672
90691
|
transformSpec(spec) {
|
|
@@ -90704,7 +90723,12 @@ class WaterfallChartSpecTransformer extends BarChartSpecTransformer {
|
|
|
90704
90723
|
setDefaultCrosshairForCartesianChart(spec);
|
|
90705
90724
|
}
|
|
90706
90725
|
_getDefaultSeriesSpec(spec) {
|
|
90707
|
-
|
|
90726
|
+
const series = super._getDefaultSeriesSpec(spec);
|
|
90727
|
+
series.bar = spec.bar;
|
|
90728
|
+
series.stackLabel = spec.stackLabel;
|
|
90729
|
+
series.leaderLine = spec.leaderLine;
|
|
90730
|
+
series.total = spec.total;
|
|
90731
|
+
return series;
|
|
90708
90732
|
}
|
|
90709
90733
|
}
|
|
90710
90734
|
|
|
@@ -90728,7 +90752,17 @@ class BoxPlotChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
|
90728
90752
|
_getDefaultSeriesSpec(spec) {
|
|
90729
90753
|
var _a;
|
|
90730
90754
|
const dataFields = [spec.maxField, spec.medianField, spec.q1Field, spec.q3Field, spec.minField, spec.outliersField];
|
|
90731
|
-
const seriesSpec =
|
|
90755
|
+
const seriesSpec = super._getDefaultSeriesSpec(spec, [
|
|
90756
|
+
'boxPlot',
|
|
90757
|
+
'minField',
|
|
90758
|
+
'maxField',
|
|
90759
|
+
'q1Field',
|
|
90760
|
+
'medianField',
|
|
90761
|
+
'q3Field',
|
|
90762
|
+
'outliersField',
|
|
90763
|
+
'outliersStyle'
|
|
90764
|
+
]);
|
|
90765
|
+
seriesSpec.direction = (_a = spec.direction) !== null && _a !== void 0 ? _a : "vertical";
|
|
90732
90766
|
seriesSpec[seriesSpec.direction === "horizontal" ? 'xField' : 'yField'] = dataFields;
|
|
90733
90767
|
return seriesSpec;
|
|
90734
90768
|
}
|
|
@@ -90766,12 +90800,38 @@ const registerBoxplotChart = () => {
|
|
|
90766
90800
|
|
|
90767
90801
|
class SankeyChartSpecTransformer extends BaseChartSpecTransformer {
|
|
90768
90802
|
_getDefaultSeriesSpec(spec) {
|
|
90769
|
-
const series =
|
|
90770
|
-
|
|
90771
|
-
|
|
90772
|
-
|
|
90773
|
-
|
|
90774
|
-
|
|
90803
|
+
const series = super._getDefaultSeriesSpec(spec, [
|
|
90804
|
+
'categoryField',
|
|
90805
|
+
'valueField',
|
|
90806
|
+
'sourceField',
|
|
90807
|
+
'targetField',
|
|
90808
|
+
'direction',
|
|
90809
|
+
'nodeAlign',
|
|
90810
|
+
'crossNodeAlign',
|
|
90811
|
+
'nodeGap',
|
|
90812
|
+
'nodeWidth',
|
|
90813
|
+
'linkWidth',
|
|
90814
|
+
'minStepWidth',
|
|
90815
|
+
'minNodeHeight',
|
|
90816
|
+
'maxNodeHeight',
|
|
90817
|
+
'minLinkHeight',
|
|
90818
|
+
'maxLinkHeight',
|
|
90819
|
+
'dropIsolatedNode',
|
|
90820
|
+
'nodeHeight',
|
|
90821
|
+
'linkHeight',
|
|
90822
|
+
'equalNodeHeight',
|
|
90823
|
+
'linkOverlap',
|
|
90824
|
+
'iterations',
|
|
90825
|
+
'nodeKey',
|
|
90826
|
+
'linkSortBy',
|
|
90827
|
+
'nodeSortBy',
|
|
90828
|
+
'setNodeLayer',
|
|
90829
|
+
'node',
|
|
90830
|
+
'link',
|
|
90831
|
+
'emphasis',
|
|
90832
|
+
'inverse',
|
|
90833
|
+
'overflow'
|
|
90834
|
+
]);
|
|
90775
90835
|
return series;
|
|
90776
90836
|
}
|
|
90777
90837
|
transformSpec(spec) {
|
|
@@ -90848,7 +90908,7 @@ const registerSankeyChart = () => {
|
|
|
90848
90908
|
class RangeAreaChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
90849
90909
|
_getDefaultSeriesSpec(spec) {
|
|
90850
90910
|
var _a, _b;
|
|
90851
|
-
const series =
|
|
90911
|
+
const series = super._getDefaultSeriesSpec(spec);
|
|
90852
90912
|
series.area = spec.area;
|
|
90853
90913
|
if (spec.direction === "horizontal") {
|
|
90854
90914
|
series.xField = (_a = spec.xField) !== null && _a !== void 0 ? _a : [spec.minField, spec.maxField];
|
|
@@ -90883,8 +90943,7 @@ const registerRangeAreaChart = () => {
|
|
|
90883
90943
|
|
|
90884
90944
|
class HeatmapChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
90885
90945
|
_getDefaultSeriesSpec(spec) {
|
|
90886
|
-
|
|
90887
|
-
return Object.assign(Object.assign({}, series), { valueField: spec.valueField, cell: spec.cell });
|
|
90946
|
+
return super._getDefaultSeriesSpec(spec, ['valueField', 'cell']);
|
|
90888
90947
|
}
|
|
90889
90948
|
}
|
|
90890
90949
|
|
|
@@ -90906,10 +90965,22 @@ const registerHeatmapChart = () => {
|
|
|
90906
90965
|
|
|
90907
90966
|
class CorrelationChartSpecTransformer extends BaseChartSpecTransformer {
|
|
90908
90967
|
_getDefaultSeriesSpec(spec) {
|
|
90909
|
-
const series =
|
|
90910
|
-
|
|
90911
|
-
|
|
90912
|
-
|
|
90968
|
+
const series = super._getDefaultSeriesSpec(spec, [
|
|
90969
|
+
'categoryField',
|
|
90970
|
+
'valueField',
|
|
90971
|
+
'sizeField',
|
|
90972
|
+
'sizeRange',
|
|
90973
|
+
'centerX',
|
|
90974
|
+
'centerY',
|
|
90975
|
+
'innerRadius',
|
|
90976
|
+
'outerRadius',
|
|
90977
|
+
'startAngle',
|
|
90978
|
+
'endAngle',
|
|
90979
|
+
'ripplePoint',
|
|
90980
|
+
'centerPoint',
|
|
90981
|
+
'centerLabel',
|
|
90982
|
+
'nodePoint'
|
|
90983
|
+
]);
|
|
90913
90984
|
return series;
|
|
90914
90985
|
}
|
|
90915
90986
|
transformSpec(spec) {
|
|
@@ -95569,7 +95640,7 @@ class DataZoom extends DataFilterBaseComponent {
|
|
|
95569
95640
|
this._component.setStatePointToData((state) => this._statePointToData(state));
|
|
95570
95641
|
this._component.addEventListener('change', (e) => {
|
|
95571
95642
|
const { start, end, tag } = e.detail;
|
|
95572
|
-
this._handleChange(start, end, undefined,
|
|
95643
|
+
this._handleChange(start, end, undefined, tag);
|
|
95573
95644
|
});
|
|
95574
95645
|
container.add(this._component);
|
|
95575
95646
|
this._updateScaleRange();
|
|
@@ -95617,7 +95688,7 @@ class DataZoom extends DataFilterBaseComponent {
|
|
|
95617
95688
|
}
|
|
95618
95689
|
}
|
|
95619
95690
|
_getComponentAttrs(isNeedPreview) {
|
|
95620
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l
|
|
95691
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
|
|
95621
95692
|
const { middleHandler = {}, startText = {}, endText = {}, backgroundChart = {}, selectedBackgroundChart = {} } = this._spec;
|
|
95622
95693
|
return {
|
|
95623
95694
|
backgroundStyle: transformToGraphic((_a = this._spec.background) === null || _a === void 0 ? void 0 : _a.style),
|
|
@@ -95663,8 +95734,7 @@ class DataZoom extends DataFilterBaseComponent {
|
|
|
95663
95734
|
line: { visible: false },
|
|
95664
95735
|
area: { visible: false }
|
|
95665
95736
|
},
|
|
95666
|
-
disableTriggerEvent: this._option.disableTriggerEvent
|
|
95667
|
-
disableDispatchOutSide: (_m = this._spec.disableDispatchOutSide) !== null && _m !== void 0 ? _m : false
|
|
95737
|
+
disableTriggerEvent: this._option.disableTriggerEvent
|
|
95668
95738
|
};
|
|
95669
95739
|
}
|
|
95670
95740
|
_getHandlerTextFormatMethod(spec) {
|
|
@@ -96765,6 +96835,17 @@ function getFinalValue(source, _data, option) {
|
|
|
96765
96835
|
return source;
|
|
96766
96836
|
}
|
|
96767
96837
|
|
|
96838
|
+
function markerFilter(data, options) {
|
|
96839
|
+
if (options && options.getRelativeSeries) {
|
|
96840
|
+
const series = options.getRelativeSeries();
|
|
96841
|
+
if (series) {
|
|
96842
|
+
const viewData = series.getViewData();
|
|
96843
|
+
return viewData && viewData.latestData && viewData.latestData.length ? data : [];
|
|
96844
|
+
}
|
|
96845
|
+
}
|
|
96846
|
+
return data;
|
|
96847
|
+
}
|
|
96848
|
+
|
|
96768
96849
|
class BaseMarker extends BaseComponent {
|
|
96769
96850
|
constructor() {
|
|
96770
96851
|
super(...arguments);
|
|
@@ -96939,6 +97020,28 @@ class BaseMarker extends BaseComponent {
|
|
|
96939
97020
|
}
|
|
96940
97021
|
return result;
|
|
96941
97022
|
}
|
|
97023
|
+
_initCommonDataView() {
|
|
97024
|
+
const { options } = this._computeOptions();
|
|
97025
|
+
const seriesData = this._getRelativeDataView();
|
|
97026
|
+
registerDataSetInstanceTransform(this._option.dataSet, 'markerAggregation', markerAggregation);
|
|
97027
|
+
registerDataSetInstanceTransform(this._option.dataSet, 'markerFilter', markerFilter);
|
|
97028
|
+
const data = new DataView(this._option.dataSet, { name: `${this.type}_${this.id}_data` });
|
|
97029
|
+
data.parse([seriesData], {
|
|
97030
|
+
type: 'dataview'
|
|
97031
|
+
});
|
|
97032
|
+
data.transform({
|
|
97033
|
+
type: 'markerAggregation',
|
|
97034
|
+
options
|
|
97035
|
+
});
|
|
97036
|
+
data.transform({
|
|
97037
|
+
type: 'markerFilter',
|
|
97038
|
+
options: this._getAllRelativeSeries()
|
|
97039
|
+
});
|
|
97040
|
+
data.target.on('change', () => {
|
|
97041
|
+
this._markerLayout();
|
|
97042
|
+
});
|
|
97043
|
+
this._markerData = data;
|
|
97044
|
+
}
|
|
96942
97045
|
}
|
|
96943
97046
|
|
|
96944
97047
|
function markerRegression(_data, opt) {
|
|
@@ -96946,17 +97049,6 @@ function markerRegression(_data, opt) {
|
|
|
96946
97049
|
return regression(data, opt.fieldX, opt.fieldY);
|
|
96947
97050
|
}
|
|
96948
97051
|
|
|
96949
|
-
function markerFilter(data, options) {
|
|
96950
|
-
if (options && options.getRelativeSeries) {
|
|
96951
|
-
const series = options.getRelativeSeries();
|
|
96952
|
-
if (series) {
|
|
96953
|
-
const viewData = series.getViewData();
|
|
96954
|
-
return viewData && viewData.latestData && viewData.latestData.length ? data : [];
|
|
96955
|
-
}
|
|
96956
|
-
}
|
|
96957
|
-
return data;
|
|
96958
|
-
}
|
|
96959
|
-
|
|
96960
97052
|
class BaseMarkLine extends BaseMarker {
|
|
96961
97053
|
constructor() {
|
|
96962
97054
|
super(...arguments);
|
|
@@ -97666,26 +97758,7 @@ class BaseMarkArea extends BaseMarker {
|
|
|
97666
97758
|
!doCoordinatesProcess) {
|
|
97667
97759
|
return null;
|
|
97668
97760
|
}
|
|
97669
|
-
|
|
97670
|
-
const seriesData = this._getRelativeDataView();
|
|
97671
|
-
registerDataSetInstanceTransform(this._option.dataSet, 'markerAggregation', markerAggregation);
|
|
97672
|
-
registerDataSetInstanceTransform(this._option.dataSet, 'markerFilter', markerFilter);
|
|
97673
|
-
const data = new DataView(this._option.dataSet, { name: `${this.type}_${this.id}_data` });
|
|
97674
|
-
data.parse([seriesData], {
|
|
97675
|
-
type: 'dataview'
|
|
97676
|
-
});
|
|
97677
|
-
data.transform({
|
|
97678
|
-
type: 'markerAggregation',
|
|
97679
|
-
options
|
|
97680
|
-
});
|
|
97681
|
-
data.transform({
|
|
97682
|
-
type: 'markerFilter',
|
|
97683
|
-
options: this._getAllRelativeSeries()
|
|
97684
|
-
});
|
|
97685
|
-
data.target.on('change', () => {
|
|
97686
|
-
this._markerLayout();
|
|
97687
|
-
});
|
|
97688
|
-
this._markerData = data;
|
|
97761
|
+
this._initCommonDataView();
|
|
97689
97762
|
}
|
|
97690
97763
|
}
|
|
97691
97764
|
BaseMarkArea.specKey = 'markArea';
|
|
@@ -98851,25 +98924,7 @@ class BaseMarkPoint extends BaseMarker {
|
|
|
98851
98924
|
if (!isCoordinateProcess && !doXYProcess && !doPolarProcess && !doGeoProcess) {
|
|
98852
98925
|
return;
|
|
98853
98926
|
}
|
|
98854
|
-
|
|
98855
|
-
registerDataSetInstanceTransform(this._option.dataSet, 'markerFilter', markerFilter);
|
|
98856
|
-
const { options } = this._computeOptions();
|
|
98857
|
-
const data = new DataView(this._option.dataSet, { name: `${this.type}_${this.id}_data` });
|
|
98858
|
-
data.parse([this._getRelativeDataView()], {
|
|
98859
|
-
type: 'dataview'
|
|
98860
|
-
});
|
|
98861
|
-
data.transform({
|
|
98862
|
-
type: 'markerAggregation',
|
|
98863
|
-
options
|
|
98864
|
-
});
|
|
98865
|
-
data.transform({
|
|
98866
|
-
type: 'markerFilter',
|
|
98867
|
-
options: this._getAllRelativeSeries()
|
|
98868
|
-
});
|
|
98869
|
-
data.target.on('change', () => {
|
|
98870
|
-
this._markerLayout();
|
|
98871
|
-
});
|
|
98872
|
-
this._markerData = data;
|
|
98927
|
+
this._initCommonDataView();
|
|
98873
98928
|
}
|
|
98874
98929
|
}
|
|
98875
98930
|
BaseMarkPoint.specKey = 'markPoint';
|
|
@@ -102119,12 +102174,16 @@ VChart.useRegisters([
|
|
|
102119
102174
|
|
|
102120
102175
|
class LiquidChartSpecTransformer extends BaseChartSpecTransformer {
|
|
102121
102176
|
_getDefaultSeriesSpec(spec) {
|
|
102122
|
-
const series =
|
|
102123
|
-
|
|
102124
|
-
|
|
102125
|
-
|
|
102126
|
-
|
|
102127
|
-
|
|
102177
|
+
const series = super._getDefaultSeriesSpec(spec, [
|
|
102178
|
+
'valueField',
|
|
102179
|
+
'maskShape',
|
|
102180
|
+
'reverse',
|
|
102181
|
+
'outlineMargin',
|
|
102182
|
+
'outlinePadding',
|
|
102183
|
+
'indicatorSmartInvert',
|
|
102184
|
+
'liquidBackground',
|
|
102185
|
+
'liquidOutline'
|
|
102186
|
+
]);
|
|
102128
102187
|
return series;
|
|
102129
102188
|
}
|
|
102130
102189
|
transformSpec(spec) {
|
|
@@ -102151,12 +102210,13 @@ const registerLiquidChart = () => {
|
|
|
102151
102210
|
|
|
102152
102211
|
class VennChartSpecTransformer extends BaseChartSpecTransformer {
|
|
102153
102212
|
_getDefaultSeriesSpec(spec) {
|
|
102154
|
-
const series =
|
|
102155
|
-
|
|
102156
|
-
|
|
102157
|
-
|
|
102158
|
-
|
|
102159
|
-
|
|
102213
|
+
const series = super._getDefaultSeriesSpec(spec, [
|
|
102214
|
+
'categoryField',
|
|
102215
|
+
'valueField',
|
|
102216
|
+
'circle',
|
|
102217
|
+
'overlap',
|
|
102218
|
+
'overlapLabel'
|
|
102219
|
+
]);
|
|
102160
102220
|
return series;
|
|
102161
102221
|
}
|
|
102162
102222
|
transformSpec(spec) {
|
|
@@ -102183,9 +102243,16 @@ const registerVennChart = () => {
|
|
|
102183
102243
|
|
|
102184
102244
|
class MosaicChartSpecTransformer extends CartesianChartSpecTransformer {
|
|
102185
102245
|
_getDefaultSeriesSpec(spec) {
|
|
102186
|
-
|
|
102187
|
-
|
|
102188
|
-
|
|
102246
|
+
return super._getDefaultSeriesSpec(spec, [
|
|
102247
|
+
'barWidth',
|
|
102248
|
+
'barMaxWidth',
|
|
102249
|
+
'barMinWidth',
|
|
102250
|
+
'barGapInGroup',
|
|
102251
|
+
'barBackground',
|
|
102252
|
+
'barMinHeight',
|
|
102253
|
+
'stackCornerRadius',
|
|
102254
|
+
'bar'
|
|
102255
|
+
]);
|
|
102189
102256
|
}
|
|
102190
102257
|
transformSpec(spec) {
|
|
102191
102258
|
super.transformSpec(spec);
|
|
@@ -102251,30 +102318,21 @@ class PictogramChartSpecTransformer extends BaseChartSpecTransformer {
|
|
|
102251
102318
|
return type === SeriesTypeEnum.pictogram;
|
|
102252
102319
|
}
|
|
102253
102320
|
_getDefaultSeriesSpec(spec) {
|
|
102254
|
-
|
|
102255
|
-
|
|
102321
|
+
return super._getDefaultSeriesSpec(spec, [
|
|
102322
|
+
'type',
|
|
102323
|
+
'nameField',
|
|
102324
|
+
'valueField',
|
|
102325
|
+
'svg',
|
|
102326
|
+
'pictogram',
|
|
102327
|
+
'defaultFillColor'
|
|
102328
|
+
]);
|
|
102256
102329
|
}
|
|
102257
102330
|
transformSpec(spec) {
|
|
102258
102331
|
super.transformSpec(spec);
|
|
102259
102332
|
spec.region.forEach((r) => {
|
|
102260
102333
|
r.coordinate = 'geo';
|
|
102261
102334
|
});
|
|
102262
|
-
|
|
102263
|
-
if (!spec.series || spec.series.length === 0) {
|
|
102264
|
-
spec.series = [defaultSeriesSpec];
|
|
102265
|
-
}
|
|
102266
|
-
else {
|
|
102267
|
-
spec.series.forEach((s) => {
|
|
102268
|
-
if (!this._isValidSeries(s.type)) {
|
|
102269
|
-
return;
|
|
102270
|
-
}
|
|
102271
|
-
Object.keys(defaultSeriesSpec).forEach(k => {
|
|
102272
|
-
if (!(k in s)) {
|
|
102273
|
-
s[k] = defaultSeriesSpec[k];
|
|
102274
|
-
}
|
|
102275
|
-
});
|
|
102276
|
-
});
|
|
102277
|
-
}
|
|
102335
|
+
super.transformSeriesSpec(spec);
|
|
102278
102336
|
}
|
|
102279
102337
|
}
|
|
102280
102338
|
|