@antv/g2 4.1.25 → 4.1.29
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/CHANGELOG.md +1116 -0
- package/{README.zh-CN.md → README.en-US.md} +39 -38
- package/README.md +39 -38
- package/dist/g2.min.js +31 -3
- package/dist/g2.min.js.map +1 -1
- package/esm/animate/index.js +1 -1
- package/esm/animate/index.js.map +1 -1
- package/esm/animate/interface.js +1 -0
- package/esm/chart/chart.js +1 -3
- package/esm/chart/chart.js.map +1 -1
- package/esm/chart/controller/annotation.js +14 -44
- package/esm/chart/controller/annotation.js.map +1 -1
- package/esm/chart/controller/coordinate.js +1 -2
- package/esm/chart/controller/coordinate.js.map +1 -1
- package/esm/chart/controller/scrollbar.js +3 -7
- package/esm/chart/controller/scrollbar.js.map +1 -1
- package/esm/chart/controller/slider.js +1 -2
- package/esm/chart/controller/slider.js.map +1 -1
- package/esm/chart/controller/tooltip.js +12 -7
- package/esm/chart/controller/tooltip.js.map +1 -1
- package/esm/chart/layout/auto.js +2 -2
- package/esm/chart/layout/auto.js.map +1 -1
- package/esm/chart/layout/constraint/bounds.d.ts +32 -0
- package/esm/chart/layout/constraint/bounds.js +30 -0
- package/esm/chart/layout/constraint/bounds.js.map +1 -0
- package/esm/chart/layout/constraint/constraint.d.ts +31 -0
- package/esm/chart/layout/constraint/constraint.js +81 -0
- package/esm/chart/layout/constraint/constraint.js.map +1 -0
- package/esm/chart/layout/constraint/gauss.d.ts +11 -0
- package/esm/chart/layout/constraint/gauss.js +63 -0
- package/esm/chart/layout/constraint/gauss.js.map +1 -0
- package/esm/chart/layout/constraint/index.d.ts +5 -0
- package/esm/chart/layout/constraint/index.js +30 -0
- package/esm/chart/layout/constraint/index.js.map +1 -0
- package/esm/chart/layout/constraint/solver.d.ts +40 -0
- package/esm/chart/layout/constraint/solver.js +77 -0
- package/esm/chart/layout/constraint/solver.js.map +1 -0
- package/esm/chart/layout/constraint/types.d.ts +21 -0
- package/esm/chart/layout/constraint/types.js +13 -0
- package/esm/chart/layout/constraint/types.js.map +1 -0
- package/esm/chart/layout/constraint/variable.d.ts +24 -0
- package/esm/chart/layout/constraint/variable.js +28 -0
- package/esm/chart/layout/constraint/variable.js.map +1 -0
- package/esm/chart/layout/padding-cal.js +2 -2
- package/esm/chart/layout/padding-cal.js.map +1 -1
- package/esm/chart/view.d.ts +41 -1
- package/esm/chart/view.js +65 -9
- package/esm/chart/view.js.map +1 -1
- package/esm/core.d.ts +1 -1
- package/esm/core.js +1 -1
- package/esm/core.js.map +1 -1
- package/esm/facet/facet.d.ts +5 -0
- package/esm/facet/facet.js +47 -12
- package/esm/facet/facet.js.map +1 -1
- package/esm/facet/tree.js +1 -1
- package/esm/facet/tree.js.map +1 -1
- package/esm/geometry/base.d.ts +34 -7
- package/esm/geometry/base.js +131 -74
- package/esm/geometry/base.js.map +1 -1
- package/esm/geometry/element/index.js.map +1 -1
- package/esm/geometry/heatmap.d.ts +1 -2
- package/esm/geometry/heatmap.js +13 -13
- package/esm/geometry/heatmap.js.map +1 -1
- package/esm/geometry/label/base.js +1 -1
- package/esm/geometry/label/base.js.map +1 -1
- package/esm/geometry/label/interface.js +1 -0
- package/esm/geometry/label/layout/interval/adjust-position.js.map +1 -1
- package/esm/geometry/label/layout/interval/hide-overlap.js.map +1 -1
- package/esm/geometry/label/layout/path/adjust-position.js.map +1 -1
- package/esm/geometry/label/layout/pie/distribute.js +1 -1
- package/esm/geometry/label/layout/pie/distribute.js.map +1 -1
- package/esm/geometry/label/layout/point/adjust-position.js.map +1 -1
- package/esm/geometry/label/pie.js +1 -2
- package/esm/geometry/label/pie.js.map +1 -1
- package/esm/geometry/path.d.ts +1 -2
- package/esm/geometry/path.js +46 -20
- package/esm/geometry/path.js.map +1 -1
- package/esm/geometry/shape/schema/index.js +1 -1
- package/esm/geometry/shape/schema/index.js.map +1 -1
- package/esm/geometry/util/diff.d.ts +11 -0
- package/esm/geometry/util/diff.js +30 -0
- package/esm/geometry/util/diff.js.map +1 -0
- package/esm/interface.d.ts +11 -10
- package/esm/interface.js +1 -0
- package/esm/interface.js.map +1 -1
- package/esm/theme/style-sheet/dark.d.ts +2 -2
- package/esm/theme/style-sheet/dark.js +2 -2
- package/esm/theme/style-sheet/dark.js.map +1 -1
- package/esm/theme/style-sheet/light.d.ts +2 -2
- package/esm/theme/style-sheet/light.js +2 -2
- package/esm/theme/style-sheet/light.js.map +1 -1
- package/esm/theme/util/create-by-style-sheet.js +1 -1
- package/esm/theme/util/create-by-style-sheet.js.map +1 -1
- package/esm/util/annotation.js +2 -0
- package/esm/util/annotation.js.map +1 -1
- package/esm/util/attr.js +2 -2
- package/esm/util/attr.js.map +1 -1
- package/esm/util/collision-detect.js +2 -2
- package/esm/util/collision-detect.js.map +1 -1
- package/esm/util/facet.js +1 -1
- package/esm/util/facet.js.map +1 -1
- package/esm/util/helper.d.ts +1 -1
- package/esm/util/helper.js +3 -3
- package/esm/util/helper.js.map +1 -1
- package/esm/util/legend.js +2 -1
- package/esm/util/legend.js.map +1 -1
- package/esm/util/padding.js +3 -3
- package/esm/util/padding.js.map +1 -1
- package/esm/util/scale.js +3 -4
- package/esm/util/scale.js.map +1 -1
- package/esm/util/stat.js +2 -2
- package/esm/util/stat.js.map +1 -1
- package/esm/util/text.js +2 -2
- package/esm/util/text.js.map +1 -1
- package/esm/util/types.js +1 -0
- package/lib/animate/animation/fade.js +3 -3
- package/lib/animate/animation/fade.js.map +1 -1
- package/lib/animate/animation/grow-in.js +3 -3
- package/lib/animate/animation/grow-in.js.map +1 -1
- package/lib/animate/animation/sector-path-update.js +11 -11
- package/lib/animate/animation/sector-path-update.js.map +1 -1
- package/lib/animate/animation/wave-in.js +2 -2
- package/lib/animate/animation/wave-in.js.map +1 -1
- package/lib/animate/animation/zoom.js +2 -2
- package/lib/animate/animation/zoom.js.map +1 -1
- package/lib/animate/index.js +10 -10
- package/lib/animate/index.js.map +1 -1
- package/lib/api.js +1 -1
- package/lib/api.js.map +1 -1
- package/lib/base.js +2 -2
- package/lib/base.js.map +1 -1
- package/lib/chart/chart.js +12 -14
- package/lib/chart/chart.js.map +1 -1
- package/lib/chart/controller/annotation.js +67 -97
- package/lib/chart/controller/annotation.js.map +1 -1
- package/lib/chart/controller/axis.js +64 -64
- package/lib/chart/controller/axis.js.map +1 -1
- package/lib/chart/controller/base.js +1 -1
- package/lib/chart/controller/base.js.map +1 -1
- package/lib/chart/controller/coordinate.js +6 -7
- package/lib/chart/controller/coordinate.js.map +1 -1
- package/lib/chart/controller/gesture.js +1 -1
- package/lib/chart/controller/gesture.js.map +1 -1
- package/lib/chart/controller/legend.js +45 -45
- package/lib/chart/controller/legend.js.map +1 -1
- package/lib/chart/controller/scrollbar.js +26 -30
- package/lib/chart/controller/scrollbar.js.map +1 -1
- package/lib/chart/controller/slider.js +25 -26
- package/lib/chart/controller/slider.js.map +1 -1
- package/lib/chart/controller/tooltip.js +45 -40
- package/lib/chart/controller/tooltip.js.map +1 -1
- package/lib/chart/index.js +7 -3
- package/lib/chart/index.js.map +1 -1
- package/lib/chart/layout/auto.js +6 -6
- package/lib/chart/layout/auto.js.map +1 -1
- package/lib/chart/layout/constraint/bounds.d.ts +32 -0
- package/lib/chart/layout/constraint/bounds.js +33 -0
- package/lib/chart/layout/constraint/bounds.js.map +1 -0
- package/lib/chart/layout/constraint/constraint.d.ts +31 -0
- package/lib/chart/layout/constraint/constraint.js +84 -0
- package/lib/chart/layout/constraint/constraint.js.map +1 -0
- package/lib/chart/layout/constraint/gauss.d.ts +11 -0
- package/lib/chart/layout/constraint/gauss.js +68 -0
- package/lib/chart/layout/constraint/gauss.js.map +1 -0
- package/lib/chart/layout/constraint/index.d.ts +5 -0
- package/lib/chart/layout/constraint/index.js +38 -0
- package/lib/chart/layout/constraint/index.js.map +1 -0
- package/lib/chart/layout/constraint/solver.d.ts +40 -0
- package/lib/chart/layout/constraint/solver.js +80 -0
- package/lib/chart/layout/constraint/solver.js.map +1 -0
- package/lib/chart/layout/constraint/types.d.ts +21 -0
- package/lib/chart/layout/constraint/types.js +16 -0
- package/lib/chart/layout/constraint/types.js.map +1 -0
- package/lib/chart/layout/constraint/variable.d.ts +24 -0
- package/lib/chart/layout/constraint/variable.js +31 -0
- package/lib/chart/layout/constraint/variable.js.map +1 -0
- package/lib/chart/layout/padding-cal.js +1 -1
- package/lib/chart/layout/padding-cal.js.map +1 -1
- package/lib/chart/util/scale-pool.js +12 -12
- package/lib/chart/util/scale-pool.js.map +1 -1
- package/lib/chart/view.d.ts +41 -1
- package/lib/chart/view.js +142 -86
- package/lib/chart/view.js.map +1 -1
- package/lib/component/labels.js +32 -32
- package/lib/component/labels.js.map +1 -1
- package/lib/component/update-label.js +4 -4
- package/lib/component/update-label.js.map +1 -1
- package/lib/core.d.ts +1 -1
- package/lib/core.js +8 -8
- package/lib/core.js.map +1 -1
- package/lib/dependents.js +1 -1
- package/lib/facet/circle.js +10 -10
- package/lib/facet/circle.js.map +1 -1
- package/lib/facet/facet.d.ts +5 -0
- package/lib/facet/facet.js +56 -21
- package/lib/facet/facet.js.map +1 -1
- package/lib/facet/index.js +7 -5
- package/lib/facet/index.js.map +1 -1
- package/lib/facet/list.js +9 -9
- package/lib/facet/list.js.map +1 -1
- package/lib/facet/matrix.js +13 -13
- package/lib/facet/matrix.js.map +1 -1
- package/lib/facet/mirror.js +10 -10
- package/lib/facet/mirror.js.map +1 -1
- package/lib/facet/rect.js +16 -16
- package/lib/facet/rect.js.map +1 -1
- package/lib/facet/tree.js +10 -10
- package/lib/facet/tree.js.map +1 -1
- package/lib/geometry/area.js +2 -2
- package/lib/geometry/area.js.map +1 -1
- package/lib/geometry/base.d.ts +34 -7
- package/lib/geometry/base.js +203 -146
- package/lib/geometry/base.js.map +1 -1
- package/lib/geometry/edge.js +2 -2
- package/lib/geometry/edge.js.map +1 -1
- package/lib/geometry/element/index.js +22 -22
- package/lib/geometry/element/index.js.map +1 -1
- package/lib/geometry/heatmap.d.ts +1 -2
- package/lib/geometry/heatmap.js +18 -18
- package/lib/geometry/heatmap.js.map +1 -1
- package/lib/geometry/interval.js +7 -7
- package/lib/geometry/interval.js.map +1 -1
- package/lib/geometry/label/base.js +33 -33
- package/lib/geometry/label/base.js.map +1 -1
- package/lib/geometry/label/interval.js +15 -15
- package/lib/geometry/label/interval.js.map +1 -1
- package/lib/geometry/label/layout/adjust-color.js +1 -1
- package/lib/geometry/label/layout/adjust-color.js.map +1 -1
- package/lib/geometry/label/layout/hide-overlap.js +3 -3
- package/lib/geometry/label/layout/hide-overlap.js.map +1 -1
- package/lib/geometry/label/layout/interval/adjust-position.js +2 -2
- package/lib/geometry/label/layout/interval/adjust-position.js.map +1 -1
- package/lib/geometry/label/layout/interval/hide-overlap.js +7 -7
- package/lib/geometry/label/layout/interval/hide-overlap.js.map +1 -1
- package/lib/geometry/label/layout/limit-in-canvas.js +2 -2
- package/lib/geometry/label/layout/limit-in-canvas.js.map +1 -1
- package/lib/geometry/label/layout/limit-in-plot.js +5 -5
- package/lib/geometry/label/layout/limit-in-plot.js.map +1 -1
- package/lib/geometry/label/layout/limit-in-shape.js +1 -1
- package/lib/geometry/label/layout/limit-in-shape.js.map +1 -1
- package/lib/geometry/label/layout/overlap.js +2 -2
- package/lib/geometry/label/layout/overlap.js.map +1 -1
- package/lib/geometry/label/layout/path/adjust-position.js +5 -5
- package/lib/geometry/label/layout/path/adjust-position.js.map +1 -1
- package/lib/geometry/label/layout/pie/distribute.js +8 -8
- package/lib/geometry/label/layout/pie/distribute.js.map +1 -1
- package/lib/geometry/label/layout/pie/outer.js +16 -16
- package/lib/geometry/label/layout/pie/outer.js.map +1 -1
- package/lib/geometry/label/layout/pie/spider.js +18 -18
- package/lib/geometry/label/layout/pie/spider.js.map +1 -1
- package/lib/geometry/label/layout/point/adjust-position.js +5 -5
- package/lib/geometry/label/layout/point/adjust-position.js.map +1 -1
- package/lib/geometry/label/pie.js +8 -9
- package/lib/geometry/label/pie.js.map +1 -1
- package/lib/geometry/label/polar.js +14 -14
- package/lib/geometry/label/polar.js.map +1 -1
- package/lib/geometry/label/util/index.js +4 -4
- package/lib/geometry/label/util/index.js.map +1 -1
- package/lib/geometry/line.js +2 -2
- package/lib/geometry/line.js.map +1 -1
- package/lib/geometry/path.d.ts +1 -2
- package/lib/geometry/path.js +50 -24
- package/lib/geometry/path.js.map +1 -1
- package/lib/geometry/point.js +3 -3
- package/lib/geometry/point.js.map +1 -1
- package/lib/geometry/polygon.js +5 -5
- package/lib/geometry/polygon.js.map +1 -1
- package/lib/geometry/schema.js +4 -4
- package/lib/geometry/schema.js.map +1 -1
- package/lib/geometry/shape/area/index.js +4 -4
- package/lib/geometry/shape/area/index.js.map +1 -1
- package/lib/geometry/shape/area/line.js +2 -2
- package/lib/geometry/shape/area/line.js.map +1 -1
- package/lib/geometry/shape/area/smooth-line.js +2 -2
- package/lib/geometry/shape/area/smooth-line.js.map +1 -1
- package/lib/geometry/shape/area/smooth.js +2 -2
- package/lib/geometry/shape/area/smooth.js.map +1 -1
- package/lib/geometry/shape/area/util.js +5 -5
- package/lib/geometry/shape/area/util.js.map +1 -1
- package/lib/geometry/shape/base.js +11 -11
- package/lib/geometry/shape/base.js.map +1 -1
- package/lib/geometry/shape/edge/arc.js +11 -11
- package/lib/geometry/shape/edge/arc.js.map +1 -1
- package/lib/geometry/shape/edge/index.js +6 -6
- package/lib/geometry/shape/edge/index.js.map +1 -1
- package/lib/geometry/shape/edge/smooth.js +4 -4
- package/lib/geometry/shape/edge/smooth.js.map +1 -1
- package/lib/geometry/shape/edge/util.js +1 -1
- package/lib/geometry/shape/edge/util.js.map +1 -1
- package/lib/geometry/shape/edge/vhv.js +4 -4
- package/lib/geometry/shape/edge/vhv.js.map +1 -1
- package/lib/geometry/shape/interval/funnel.js +5 -5
- package/lib/geometry/shape/interval/funnel.js.map +1 -1
- package/lib/geometry/shape/interval/hollow-rect.js +7 -7
- package/lib/geometry/shape/interval/hollow-rect.js.map +1 -1
- package/lib/geometry/shape/interval/index.js +10 -10
- package/lib/geometry/shape/interval/index.js.map +1 -1
- package/lib/geometry/shape/interval/line.js +7 -7
- package/lib/geometry/shape/interval/line.js.map +1 -1
- package/lib/geometry/shape/interval/pyramid.js +5 -5
- package/lib/geometry/shape/interval/pyramid.js.map +1 -1
- package/lib/geometry/shape/interval/tick.js +4 -4
- package/lib/geometry/shape/interval/tick.js.map +1 -1
- package/lib/geometry/shape/interval/util.js +8 -8
- package/lib/geometry/shape/interval/util.js.map +1 -1
- package/lib/geometry/shape/line/index.js +11 -11
- package/lib/geometry/shape/line/index.js.map +1 -1
- package/lib/geometry/shape/line/step.js +7 -7
- package/lib/geometry/shape/line/step.js.map +1 -1
- package/lib/geometry/shape/point/hollow.js +3 -3
- package/lib/geometry/shape/point/hollow.js.map +1 -1
- package/lib/geometry/shape/point/image.js +2 -2
- package/lib/geometry/shape/point/image.js.map +1 -1
- package/lib/geometry/shape/point/index.js +5 -5
- package/lib/geometry/shape/point/index.js.map +1 -1
- package/lib/geometry/shape/point/solid.js +3 -3
- package/lib/geometry/shape/point/solid.js.map +1 -1
- package/lib/geometry/shape/point/util.js +3 -3
- package/lib/geometry/shape/point/util.js.map +1 -1
- package/lib/geometry/shape/polygon/index.js +7 -7
- package/lib/geometry/shape/polygon/index.js.map +1 -1
- package/lib/geometry/shape/polygon/square.js +5 -5
- package/lib/geometry/shape/polygon/square.js.map +1 -1
- package/lib/geometry/shape/schema/box.js +6 -6
- package/lib/geometry/shape/schema/box.js.map +1 -1
- package/lib/geometry/shape/schema/candle.js +5 -5
- package/lib/geometry/shape/schema/candle.js.map +1 -1
- package/lib/geometry/shape/schema/index.js +2 -2
- package/lib/geometry/shape/schema/index.js.map +1 -1
- package/lib/geometry/shape/util/get-path-points.js +4 -4
- package/lib/geometry/shape/util/get-path-points.js.map +1 -1
- package/lib/geometry/shape/util/get-style.js +4 -4
- package/lib/geometry/shape/util/get-style.js.map +1 -1
- package/lib/geometry/shape/util/path.js +7 -6
- package/lib/geometry/shape/util/path.js.map +1 -1
- package/lib/geometry/shape/util/split-points.js +2 -2
- package/lib/geometry/shape/util/split-points.js.map +1 -1
- package/lib/geometry/shape/violin/hollow.js +8 -8
- package/lib/geometry/shape/violin/hollow.js.map +1 -1
- package/lib/geometry/shape/violin/index.js +9 -9
- package/lib/geometry/shape/violin/index.js.map +1 -1
- package/lib/geometry/shape/violin/smooth.js +4 -4
- package/lib/geometry/shape/violin/smooth.js.map +1 -1
- package/lib/geometry/util/diff.d.ts +11 -0
- package/lib/geometry/util/diff.js +34 -0
- package/lib/geometry/util/diff.js.map +1 -0
- package/lib/geometry/util/get-shape-type.js +1 -1
- package/lib/geometry/util/get-shape-type.js.map +1 -1
- package/lib/geometry/util/group-data.js +1 -1
- package/lib/geometry/util/group-data.js.map +1 -1
- package/lib/geometry/util/is-model-change.js +2 -2
- package/lib/geometry/util/is-model-change.js.map +1 -1
- package/lib/geometry/util/parse-fields.js +1 -1
- package/lib/geometry/util/parse-fields.js.map +1 -1
- package/lib/geometry/util/shape-size.js +9 -9
- package/lib/geometry/util/shape-size.js.map +1 -1
- package/lib/geometry/violin.js +5 -5
- package/lib/geometry/violin.js.map +1 -1
- package/lib/index.js +193 -193
- package/lib/index.js.map +1 -1
- package/lib/interaction/action/active-region.js +19 -19
- package/lib/interaction/action/active-region.js.map +1 -1
- package/lib/interaction/action/base.js +1 -1
- package/lib/interaction/action/base.js.map +1 -1
- package/lib/interaction/action/callback.js +2 -2
- package/lib/interaction/action/callback.js.map +1 -1
- package/lib/interaction/action/component/list-active.js +2 -2
- package/lib/interaction/action/component/list-active.js.map +1 -1
- package/lib/interaction/action/component/list-checked.js +5 -5
- package/lib/interaction/action/component/list-checked.js.map +1 -1
- package/lib/interaction/action/component/list-highlight-util.js +1 -1
- package/lib/interaction/action/component/list-highlight-util.js.map +1 -1
- package/lib/interaction/action/component/list-highlight.js +7 -7
- package/lib/interaction/action/component/list-highlight.js.map +1 -1
- package/lib/interaction/action/component/list-selected.js +2 -2
- package/lib/interaction/action/component/list-selected.js.map +1 -1
- package/lib/interaction/action/component/list-state.js +15 -15
- package/lib/interaction/action/component/list-state.js.map +1 -1
- package/lib/interaction/action/component/list-unchecked.js +2 -2
- package/lib/interaction/action/component/list-unchecked.js.map +1 -1
- package/lib/interaction/action/component/tooltip/ellipsis-text.js +6 -6
- package/lib/interaction/action/component/tooltip/ellipsis-text.js.map +1 -1
- package/lib/interaction/action/component/tooltip/geometry.js +4 -4
- package/lib/interaction/action/component/tooltip/geometry.js.map +1 -1
- package/lib/interaction/action/component/tooltip/sibling.js +7 -7
- package/lib/interaction/action/component/tooltip/sibling.js.map +1 -1
- package/lib/interaction/action/cursor.js +2 -2
- package/lib/interaction/action/cursor.js.map +1 -1
- package/lib/interaction/action/data/filter.js +7 -7
- package/lib/interaction/action/data/filter.js.map +1 -1
- package/lib/interaction/action/data/range-filter.js +3 -3
- package/lib/interaction/action/data/range-filter.js.map +1 -1
- package/lib/interaction/action/data/sibling-filter.js +6 -6
- package/lib/interaction/action/data/sibling-filter.js.map +1 -1
- package/lib/interaction/action/element/active.js +2 -2
- package/lib/interaction/action/element/active.js.map +1 -1
- package/lib/interaction/action/element/filter.js +16 -16
- package/lib/interaction/action/element/filter.js.map +1 -1
- package/lib/interaction/action/element/highlight-by-color.js +5 -5
- package/lib/interaction/action/element/highlight-by-color.js.map +1 -1
- package/lib/interaction/action/element/highlight-by-x.js +6 -6
- package/lib/interaction/action/element/highlight-by-x.js.map +1 -1
- package/lib/interaction/action/element/highlight-util.js +3 -3
- package/lib/interaction/action/element/highlight-util.js.map +1 -1
- package/lib/interaction/action/element/highlight.js +8 -8
- package/lib/interaction/action/element/highlight.js.map +1 -1
- package/lib/interaction/action/element/link-by-color.js +9 -9
- package/lib/interaction/action/element/link-by-color.js.map +1 -1
- package/lib/interaction/action/element/range-active.js +2 -2
- package/lib/interaction/action/element/range-active.js.map +1 -1
- package/lib/interaction/action/element/range-highlight.js +4 -4
- package/lib/interaction/action/element/range-highlight.js.map +1 -1
- package/lib/interaction/action/element/range-selected.js +2 -2
- package/lib/interaction/action/element/range-selected.js.map +1 -1
- package/lib/interaction/action/element/range-state.js +18 -18
- package/lib/interaction/action/element/range-state.js.map +1 -1
- package/lib/interaction/action/element/selected.js +2 -2
- package/lib/interaction/action/element/selected.js.map +1 -1
- package/lib/interaction/action/element/sibling-filter.js +18 -18
- package/lib/interaction/action/element/sibling-filter.js.map +1 -1
- package/lib/interaction/action/element/single-active.js +2 -2
- package/lib/interaction/action/element/single-active.js.map +1 -1
- package/lib/interaction/action/element/single-highlight.js +5 -5
- package/lib/interaction/action/element/single-highlight.js.map +1 -1
- package/lib/interaction/action/element/single-selected.js +2 -2
- package/lib/interaction/action/element/single-selected.js.map +1 -1
- package/lib/interaction/action/element/single-state.js +5 -5
- package/lib/interaction/action/element/single-state.js.map +1 -1
- package/lib/interaction/action/element/state-base.js +4 -4
- package/lib/interaction/action/element/state-base.js.map +1 -1
- package/lib/interaction/action/element/state.js +13 -13
- package/lib/interaction/action/element/state.js.map +1 -1
- package/lib/interaction/action/index.js +5 -1
- package/lib/interaction/action/index.js.map +1 -1
- package/lib/interaction/action/mask/base.js +5 -5
- package/lib/interaction/action/mask/base.js.map +1 -1
- package/lib/interaction/action/mask/circle.js +4 -4
- package/lib/interaction/action/mask/circle.js.map +1 -1
- package/lib/interaction/action/mask/dim-rect.js +6 -6
- package/lib/interaction/action/mask/dim-rect.js.map +1 -1
- package/lib/interaction/action/mask/path.js +3 -3
- package/lib/interaction/action/mask/path.js.map +1 -1
- package/lib/interaction/action/mask/rect.js +4 -4
- package/lib/interaction/action/mask/rect.js.map +1 -1
- package/lib/interaction/action/mask/smooth-path.js +3 -3
- package/lib/interaction/action/mask/smooth-path.js.map +1 -1
- package/lib/interaction/action/register.js +2 -2
- package/lib/interaction/action/register.js.map +1 -1
- package/lib/interaction/action/util.js +13 -13
- package/lib/interaction/action/util.js.map +1 -1
- package/lib/interaction/action/view/button.js +6 -6
- package/lib/interaction/action/view/button.js.map +1 -1
- package/lib/interaction/action/view/drag.js +3 -3
- package/lib/interaction/action/view/drag.js.map +1 -1
- package/lib/interaction/action/view/move.js +2 -2
- package/lib/interaction/action/view/move.js.map +1 -1
- package/lib/interaction/action/view/scale-transform.js +1 -1
- package/lib/interaction/action/view/scale-transform.js.map +1 -1
- package/lib/interaction/action/view/scale-translate.js +4 -4
- package/lib/interaction/action/view/scale-translate.js.map +1 -1
- package/lib/interaction/action/view/scale-zoom.js +3 -3
- package/lib/interaction/action/view/scale-zoom.js.map +1 -1
- package/lib/interaction/context.js +5 -5
- package/lib/interaction/context.js.map +1 -1
- package/lib/interaction/grammar-interaction.js +20 -20
- package/lib/interaction/grammar-interaction.js.map +1 -1
- package/lib/interaction/index.js +7 -7
- package/lib/interaction/index.js.map +1 -1
- package/lib/interface.d.ts +11 -10
- package/lib/interface.js.map +1 -1
- package/lib/theme/index.js +3 -3
- package/lib/theme/index.js.map +1 -1
- package/lib/theme/style-sheet/dark.d.ts +2 -2
- package/lib/theme/style-sheet/dark.js +5 -4
- package/lib/theme/style-sheet/dark.js.map +1 -1
- package/lib/theme/style-sheet/light.d.ts +2 -2
- package/lib/theme/style-sheet/light.js +5 -4
- package/lib/theme/style-sheet/light.js.map +1 -1
- package/lib/theme/util/create-by-style-sheet.js +12 -12
- package/lib/theme/util/create-by-style-sheet.js.map +1 -1
- package/lib/theme/util/create-theme.js +3 -3
- package/lib/theme/util/create-theme.js.map +1 -1
- package/lib/theme/util/index.js +1 -0
- package/lib/theme/util/index.js.map +1 -1
- package/lib/util/annotation.js +4 -2
- package/lib/util/annotation.js.map +1 -1
- package/lib/util/attr.js +1 -1
- package/lib/util/attr.js.map +1 -1
- package/lib/util/axis.js +8 -8
- package/lib/util/axis.js.map +1 -1
- package/lib/util/bbox.js +4 -3
- package/lib/util/bbox.js.map +1 -1
- package/lib/util/collision-detect.js +1 -1
- package/lib/util/collision-detect.js.map +1 -1
- package/lib/util/color.js +3 -2
- package/lib/util/color.js.map +1 -1
- package/lib/util/coordinate.js +5 -5
- package/lib/util/coordinate.js.map +1 -1
- package/lib/util/dom.js +1 -1
- package/lib/util/facet.js +1 -1
- package/lib/util/facet.js.map +1 -1
- package/lib/util/graphics.js +5 -5
- package/lib/util/graphics.js.map +1 -1
- package/lib/util/grid.js +5 -5
- package/lib/util/grid.js.map +1 -1
- package/lib/util/helper.d.ts +1 -1
- package/lib/util/helper.js +5 -5
- package/lib/util/helper.js.map +1 -1
- package/lib/util/legend.js +19 -18
- package/lib/util/legend.js.map +1 -1
- package/lib/util/padding.js +4 -4
- package/lib/util/padding.js.map +1 -1
- package/lib/util/scale.js +11 -12
- package/lib/util/scale.js.map +1 -1
- package/lib/util/stat.js +3 -3
- package/lib/util/stat.js.map +1 -1
- package/lib/util/text.js +12 -11
- package/lib/util/text.js.map +1 -1
- package/lib/util/tooltip.js +21 -21
- package/lib/util/tooltip.js.map +1 -1
- package/package.json +21 -27
- package/src/chart/controller/annotation.ts +14 -7
- package/src/chart/controller/tooltip.ts +11 -1
- package/src/chart/layout/constraint/bounds.ts +52 -0
- package/src/chart/layout/constraint/constraint.ts +98 -0
- package/src/chart/layout/constraint/gauss.ts +71 -0
- package/src/chart/layout/constraint/index.ts +30 -0
- package/src/chart/layout/constraint/solver.ts +98 -0
- package/src/chart/layout/constraint/types.ts +29 -0
- package/src/chart/layout/constraint/variable.ts +33 -0
- package/src/chart/view.ts +70 -5
- package/src/core.ts +1 -1
- package/src/facet/facet.ts +50 -20
- package/src/geometry/base.ts +133 -60
- package/src/geometry/heatmap.ts +17 -18
- package/src/geometry/path.ts +48 -22
- package/src/geometry/util/diff.ts +29 -0
- package/src/interface.ts +8 -6
- package/src/theme/style-sheet/dark.ts +2 -2
- package/src/theme/style-sheet/light.ts +2 -2
- package/src/util/annotation.ts +3 -1
- package/src/util/helper.ts +3 -3
- package/src/util/legend.ts +7 -4
package/esm/geometry/base.js
CHANGED
|
@@ -12,6 +12,7 @@ import { getShapeFactory } from './shape/base';
|
|
|
12
12
|
import { group } from './util/group-data';
|
|
13
13
|
import { isModelChange } from './util/is-model-change';
|
|
14
14
|
import { parseFields } from './util/parse-fields';
|
|
15
|
+
import { diff } from './util/diff';
|
|
15
16
|
import { getXDimensionLength } from '../util/coordinate';
|
|
16
17
|
// 根据 elementId 查找对应的 label,因为有可能一个 element 对应多个 labels,所以在给 labels 打标识时做了处理
|
|
17
18
|
// 打标规则详见 ./label/base.ts#L263
|
|
@@ -373,25 +374,24 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
373
374
|
* 将原始数据映射至图形空间,同时创建图形对象。
|
|
374
375
|
*/
|
|
375
376
|
Geometry.prototype.paint = function (isUpdate) {
|
|
376
|
-
var _this = this;
|
|
377
377
|
if (isUpdate === void 0) { isUpdate = false; }
|
|
378
378
|
if (this.animateOption) {
|
|
379
379
|
this.animateOption = deepMix({}, getDefaultAnimateCfg(this.type, this.coordinate), this.animateOption);
|
|
380
380
|
}
|
|
381
381
|
this.defaultSize = undefined;
|
|
382
|
-
this.elements = [];
|
|
383
382
|
this.elementsMap = {};
|
|
383
|
+
this.elements = [];
|
|
384
384
|
var offscreenGroup = this.getOffscreenGroup();
|
|
385
385
|
offscreenGroup.clear();
|
|
386
386
|
var beforeMappingData = this.beforeMappingData;
|
|
387
387
|
var dataArray = this.beforeMapping(beforeMappingData);
|
|
388
|
-
|
|
389
|
-
for (var
|
|
390
|
-
var
|
|
391
|
-
|
|
392
|
-
mappingArray.push(mappingData);
|
|
393
|
-
this.createElements(mappingData, index, isUpdate);
|
|
388
|
+
this.dataArray = new Array(dataArray.length);
|
|
389
|
+
for (var i = 0; i < dataArray.length; i++) {
|
|
390
|
+
var data = dataArray[i];
|
|
391
|
+
this.dataArray[i] = this.mapping(data);
|
|
394
392
|
}
|
|
393
|
+
this.updateElements(this.dataArray, isUpdate);
|
|
394
|
+
this.lastElementsMap = this.elementsMap;
|
|
395
395
|
if (this.canDoGroupAnimation(isUpdate)) {
|
|
396
396
|
// 如果用户没有配置 appear.animation,就默认走整体动画
|
|
397
397
|
var container = this.container;
|
|
@@ -407,16 +407,8 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
407
407
|
}
|
|
408
408
|
// 添加 label
|
|
409
409
|
if (this.labelOption) {
|
|
410
|
-
this.renderLabels(flatten(
|
|
410
|
+
this.renderLabels(flatten(this.dataArray), isUpdate);
|
|
411
411
|
}
|
|
412
|
-
this.dataArray = mappingArray;
|
|
413
|
-
// 销毁被删除的 elements
|
|
414
|
-
each(this.lastElementsMap, function (deletedElement) {
|
|
415
|
-
// 更新动画配置,用户有可能在更新之前有对动画进行配置操作
|
|
416
|
-
deletedElement.animate = _this.animateOption;
|
|
417
|
-
deletedElement.destroy();
|
|
418
|
-
});
|
|
419
|
-
this.lastElementsMap = this.elementsMap;
|
|
420
412
|
// 缓存,用于更新
|
|
421
413
|
this.lastAttributeOption = __assign({}, this.attributeOption);
|
|
422
414
|
if (this.visible === false) {
|
|
@@ -527,7 +519,7 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
527
519
|
Geometry.prototype.getAttributeValues = function (attr, obj) {
|
|
528
520
|
var params = [];
|
|
529
521
|
var scales = attr.scales;
|
|
530
|
-
for (var index = 0,
|
|
522
|
+
for (var index = 0, length_1 = scales.length; index < length_1; index++) {
|
|
531
523
|
var scale = scales[index];
|
|
532
524
|
var field = scale.field;
|
|
533
525
|
if (scale.isIdentity) {
|
|
@@ -539,9 +531,24 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
539
531
|
}
|
|
540
532
|
return attr.mapping.apply(attr, params);
|
|
541
533
|
};
|
|
534
|
+
/**
|
|
535
|
+
* 获取对应的 adjust 实例
|
|
536
|
+
* @param adjustType
|
|
537
|
+
* @returns
|
|
538
|
+
*/
|
|
542
539
|
Geometry.prototype.getAdjust = function (adjustType) {
|
|
543
540
|
return this.adjusts[adjustType];
|
|
544
541
|
};
|
|
542
|
+
/**
|
|
543
|
+
* 获得 coordinate 实例
|
|
544
|
+
* @returns
|
|
545
|
+
*/
|
|
546
|
+
Geometry.prototype.getCoordinate = function () {
|
|
547
|
+
return this.coordinate;
|
|
548
|
+
};
|
|
549
|
+
Geometry.prototype.getData = function () {
|
|
550
|
+
return this.data;
|
|
551
|
+
};
|
|
545
552
|
/**
|
|
546
553
|
* 获取 shape 对应的 marker 样式。
|
|
547
554
|
* @param shapeName shape 具体名字
|
|
@@ -567,9 +574,17 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
567
574
|
* @returns
|
|
568
575
|
*/
|
|
569
576
|
Geometry.prototype.getElementsBy = function (condition) {
|
|
570
|
-
return this.elements.filter(function (element) {
|
|
571
|
-
|
|
572
|
-
|
|
577
|
+
return this.elements.filter(function (element) { return condition(element); });
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* 获取 Geometry 的所有 Elements。
|
|
581
|
+
*
|
|
582
|
+
* ```typescript
|
|
583
|
+
* getElements();
|
|
584
|
+
* ```
|
|
585
|
+
*/
|
|
586
|
+
Geometry.prototype.getElements = function () {
|
|
587
|
+
return this.elements;
|
|
573
588
|
};
|
|
574
589
|
/**
|
|
575
590
|
* 获取数据对应的唯一 id。
|
|
@@ -614,7 +629,7 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
614
629
|
if (isEmpty(groupScales)) {
|
|
615
630
|
groupScales = get(this.getAttribute('color'), 'scales', []);
|
|
616
631
|
}
|
|
617
|
-
for (var index = 0,
|
|
632
|
+
for (var index = 0, length_2 = groupScales.length; index < length_2; index++) {
|
|
618
633
|
var groupScale = groupScales[index];
|
|
619
634
|
var field = groupScale.field;
|
|
620
635
|
id = id + "-" + originData[field];
|
|
@@ -637,7 +652,7 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
637
652
|
*/
|
|
638
653
|
Geometry.prototype.getScaleFields = function () {
|
|
639
654
|
var fields = [];
|
|
640
|
-
var tmpMap =
|
|
655
|
+
var tmpMap = new Map();
|
|
641
656
|
var _a = this, attributeOption = _a.attributeOption, labelOption = _a.labelOption, tooltipOption = _a.tooltipOption;
|
|
642
657
|
// 获取图形属性上的 fields
|
|
643
658
|
for (var attributeType in attributeOption) {
|
|
@@ -669,7 +684,7 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
669
684
|
Geometry.prototype.changeVisible = function (visible) {
|
|
670
685
|
_super.prototype.changeVisible.call(this, visible);
|
|
671
686
|
var elements = this.elements;
|
|
672
|
-
for (var index = 0,
|
|
687
|
+
for (var index = 0, length_3 = elements.length; index < length_3; index++) {
|
|
673
688
|
var element = elements[index];
|
|
674
689
|
element.changeVisible(visible);
|
|
675
690
|
}
|
|
@@ -690,14 +705,31 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
690
705
|
}
|
|
691
706
|
}
|
|
692
707
|
};
|
|
708
|
+
/**
|
|
709
|
+
* 获得所有的字段
|
|
710
|
+
*/
|
|
711
|
+
Geometry.prototype.getFields = function () {
|
|
712
|
+
var uniqMap = new Map();
|
|
713
|
+
var fields = [];
|
|
714
|
+
Object.values(this.attributeOption).forEach(function (cfg) {
|
|
715
|
+
var fs = (cfg === null || cfg === void 0 ? void 0 : cfg.fields) || [];
|
|
716
|
+
fs.forEach(function (f) {
|
|
717
|
+
if (!uniqMap.has(f)) {
|
|
718
|
+
fields.push(f);
|
|
719
|
+
}
|
|
720
|
+
uniqMap.set(f, true);
|
|
721
|
+
});
|
|
722
|
+
}, []);
|
|
723
|
+
return fields;
|
|
724
|
+
};
|
|
693
725
|
/**
|
|
694
726
|
* 获取当前配置中的所有分组 & 分类的字段。
|
|
695
727
|
* @return fields string[]
|
|
696
728
|
*/
|
|
697
729
|
Geometry.prototype.getGroupFields = function () {
|
|
698
730
|
var groupFields = [];
|
|
699
|
-
var tmpMap =
|
|
700
|
-
for (var index = 0,
|
|
731
|
+
var tmpMap = new Map(); // 用于去重过滤
|
|
732
|
+
for (var index = 0, length_4 = GROUP_ATTRS.length; index < length_4; index++) {
|
|
701
733
|
var attributeName = GROUP_ATTRS[index];
|
|
702
734
|
var cfg = this.attributeOption[attributeName];
|
|
703
735
|
if (cfg && cfg.fields) {
|
|
@@ -713,6 +745,20 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
713
745
|
var _a = this.attributeOption.position.fields, x = _a[0], y = _a[1];
|
|
714
746
|
return [x, y];
|
|
715
747
|
};
|
|
748
|
+
/**
|
|
749
|
+
* x 字段
|
|
750
|
+
* @returns
|
|
751
|
+
*/
|
|
752
|
+
Geometry.prototype.getXField = function () {
|
|
753
|
+
return get(this.getXYFields(), [0]);
|
|
754
|
+
};
|
|
755
|
+
/**
|
|
756
|
+
* y 字段
|
|
757
|
+
* @returns
|
|
758
|
+
*/
|
|
759
|
+
Geometry.prototype.getYField = function () {
|
|
760
|
+
return get(this.getXYFields(), [1]);
|
|
761
|
+
};
|
|
716
762
|
/**
|
|
717
763
|
* 获取该 Geometry 下所有生成的 shapes。
|
|
718
764
|
* @returns shapes
|
|
@@ -854,49 +900,69 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
854
900
|
}
|
|
855
901
|
return cfg;
|
|
856
902
|
};
|
|
857
|
-
|
|
858
|
-
* 创建所有的 Elements。
|
|
859
|
-
* @param mappingData
|
|
860
|
-
* @param [isUpdate]
|
|
861
|
-
* @returns elements
|
|
862
|
-
*/
|
|
863
|
-
Geometry.prototype.createElements = function (mappingData, index, isUpdate) {
|
|
903
|
+
Geometry.prototype.updateElements = function (mappingDataArray, isUpdate) {
|
|
864
904
|
if (isUpdate === void 0) { isUpdate = false; }
|
|
865
|
-
var
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
905
|
+
var keyDatum = new Map();
|
|
906
|
+
var keys = [];
|
|
907
|
+
// 用来保持 diff 元素之后 added, updated 的相对顺序
|
|
908
|
+
var keyIndex = new Map();
|
|
909
|
+
var index = 0;
|
|
910
|
+
// 获得更新数据所有的 keys
|
|
911
|
+
// 将更新的数据用 key 索引
|
|
912
|
+
for (var i = 0; i < mappingDataArray.length; i++) {
|
|
913
|
+
var mappingData = mappingDataArray[i];
|
|
914
|
+
for (var j = 0; j < mappingData.length; j++) {
|
|
915
|
+
var mappingDatum = mappingData[j];
|
|
916
|
+
var key = this.getElementId(mappingDatum);
|
|
917
|
+
var finalKey = keyDatum.has(key) ? key + "-" + i + "-" + j : key;
|
|
918
|
+
keys.push(finalKey);
|
|
919
|
+
keyDatum.set(finalKey, mappingDatum);
|
|
920
|
+
keyIndex.set(finalKey, index);
|
|
921
|
+
index++;
|
|
872
922
|
}
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
|
|
923
|
+
}
|
|
924
|
+
this.elements = new Array(index);
|
|
925
|
+
var _a = diff(this.lastElementsMap, keys), added = _a.added, updated = _a.updated, removed = _a.removed;
|
|
926
|
+
// 新建 element
|
|
927
|
+
for (var _i = 0, added_1 = added; _i < added_1.length; _i++) {
|
|
928
|
+
var key = added_1[_i];
|
|
929
|
+
var mappingDatum = keyDatum.get(key);
|
|
930
|
+
var element = this.createElement(mappingDatum, isUpdate);
|
|
931
|
+
var i = keyIndex.get(key);
|
|
932
|
+
this.elements[i] = element;
|
|
933
|
+
this.elementsMap[key] = element;
|
|
934
|
+
}
|
|
935
|
+
// 更新 element
|
|
936
|
+
for (var _b = 0, updated_1 = updated; _b < updated_1.length; _b++) {
|
|
937
|
+
var key = updated_1[_b];
|
|
938
|
+
var element = this.lastElementsMap[key];
|
|
939
|
+
var mappingDatum = keyDatum.get(key);
|
|
940
|
+
var currentShapeCfg = this.getDrawCfg(mappingDatum);
|
|
941
|
+
var preShapeCfg = element.getModel();
|
|
942
|
+
var i = keyIndex.get(key);
|
|
943
|
+
if (this.isCoordinateChanged || isModelChange(currentShapeCfg, preShapeCfg)) {
|
|
944
|
+
element.animate = this.animateOption;
|
|
945
|
+
// 通过绘制数据的变更来判断是否需要更新,因为用户有可能会修改图形属性映射
|
|
946
|
+
element.update(currentShapeCfg); // 更新对应的 element
|
|
888
947
|
}
|
|
889
|
-
elements
|
|
890
|
-
elementsMap[
|
|
948
|
+
this.elements[i] = element;
|
|
949
|
+
this.elementsMap[key] = element;
|
|
950
|
+
}
|
|
951
|
+
// 销毁被删除的 elements
|
|
952
|
+
for (var _c = 0, removed_1 = removed; _c < removed_1.length; _c++) {
|
|
953
|
+
var key = removed_1[_c];
|
|
954
|
+
var element = this.lastElementsMap[key];
|
|
955
|
+
// 更新动画配置,用户有可能在更新之前有对动画进行配置操作
|
|
956
|
+
element.animate = this.animateOption;
|
|
957
|
+
element.destroy();
|
|
891
958
|
}
|
|
892
959
|
// 对 elements 的 zIndex 进行反序
|
|
893
960
|
if (this.zIndexReversed) {
|
|
894
|
-
var
|
|
895
|
-
|
|
896
|
-
|
|
897
|
-
}
|
|
961
|
+
var length_5 = this.elements.length;
|
|
962
|
+
for (var i = 0; i < length_5; i++) {
|
|
963
|
+
this.elements[i].shape.setZIndex(length_5 - i);
|
|
964
|
+
}
|
|
898
965
|
}
|
|
899
|
-
return elements;
|
|
900
966
|
};
|
|
901
967
|
/**
|
|
902
968
|
* 获取渲染的 label 类型。
|
|
@@ -988,7 +1054,7 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
988
1054
|
return { value: void 0 };
|
|
989
1055
|
}
|
|
990
1056
|
var attrCfg = __assign({}, option);
|
|
991
|
-
var callback = attrCfg.callback, values = attrCfg.values,
|
|
1057
|
+
var callback = attrCfg.callback, values = attrCfg.values, _b = attrCfg.fields, fields = _b === void 0 ? [] : _b;
|
|
992
1058
|
// 获取每一个字段对应的 scale
|
|
993
1059
|
var scales = fields.map(function (field) {
|
|
994
1060
|
var scale = _this.scales[field];
|
|
@@ -1088,16 +1154,7 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
1088
1154
|
}
|
|
1089
1155
|
for (var i = 0, len = adjustOption.length; i < len; i++) {
|
|
1090
1156
|
var adjust = adjustOption[i];
|
|
1091
|
-
var adjustCfg = __assign({ xField: xField,
|
|
1092
|
-
yField: yField,
|
|
1093
|
-
intervalPadding: intervalPadding,
|
|
1094
|
-
dodgePadding: dodgePadding,
|
|
1095
|
-
xDimensionLength: xDimensionLength,
|
|
1096
|
-
groupNum: groupNum,
|
|
1097
|
-
defaultSize: defaultSize,
|
|
1098
|
-
maxColumnWidth: maxColumnWidth,
|
|
1099
|
-
minColumnWidth: minColumnWidth,
|
|
1100
|
-
columnWidthRatio: columnWidthRatio }, adjust);
|
|
1157
|
+
var adjustCfg = __assign({ xField: xField, yField: yField, intervalPadding: intervalPadding, dodgePadding: dodgePadding, xDimensionLength: xDimensionLength, groupNum: groupNum, defaultSize: defaultSize, maxColumnWidth: maxColumnWidth, minColumnWidth: minColumnWidth, columnWidthRatio: columnWidthRatio }, adjust);
|
|
1101
1158
|
var type = adjust.type;
|
|
1102
1159
|
if (type === 'dodge') {
|
|
1103
1160
|
var adjustNames = [];
|
|
@@ -1192,7 +1249,7 @@ var Geometry = /** @class */ (function (_super) {
|
|
|
1192
1249
|
}
|
|
1193
1250
|
if (this.generatePoints) {
|
|
1194
1251
|
// 需要生成关键点
|
|
1195
|
-
for (var index = 0,
|
|
1252
|
+
for (var index = 0, length_6 = source.length; index < length_6; index++) {
|
|
1196
1253
|
var currentData = source[index];
|
|
1197
1254
|
this.generateShapePoints(currentData);
|
|
1198
1255
|
var nextData = source[index + 1];
|