@antv/g2 4.2.6 → 5.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +3 -3
- package/README.en-US.md +10 -9
- package/README.md +18 -7
- package/dist/g2.min.js +10 -16
- package/esm/adjust/index.d.ts +1 -0
- package/esm/adjust/index.js +2 -0
- package/esm/adjust/index.js.map +1 -0
- package/esm/adjust/pack.d.ts +8 -0
- package/esm/adjust/pack.js +55 -0
- package/esm/adjust/pack.js.map +1 -0
- package/esm/animation/fadeIn.d.ts +7 -0
- package/esm/animation/fadeIn.js +23 -0
- package/esm/animation/fadeIn.js.map +1 -0
- package/esm/animation/fadeOut.d.ts +7 -0
- package/esm/animation/fadeOut.js +21 -0
- package/esm/animation/fadeOut.js.map +1 -0
- package/esm/animation/index.d.ts +7 -0
- package/esm/animation/index.js +8 -0
- package/esm/animation/index.js.map +1 -0
- package/esm/animation/morphing.d.ts +13 -0
- package/esm/animation/morphing.js +161 -0
- package/esm/animation/morphing.js.map +1 -0
- package/esm/animation/scaleInX.d.ts +7 -0
- package/esm/animation/scaleInX.js +46 -0
- package/esm/animation/scaleInX.js.map +1 -0
- package/esm/animation/scaleInY.d.ts +7 -0
- package/esm/animation/scaleInY.js +46 -0
- package/esm/animation/scaleInY.js.map +1 -0
- package/esm/animation/scaleOutX.d.ts +7 -0
- package/esm/animation/scaleOutX.js +46 -0
- package/esm/animation/scaleOutX.js.map +1 -0
- package/esm/animation/scaleOutY.d.ts +7 -0
- package/esm/animation/scaleOutY.js +46 -0
- package/esm/animation/scaleOutY.js.map +1 -0
- package/esm/animation/utils.d.ts +2 -0
- package/esm/animation/utils.js +17 -0
- package/esm/animation/utils.js.map +1 -0
- package/esm/api/chart.d.ts +30 -0
- package/esm/api/chart.js +102 -0
- package/esm/api/chart.js.map +1 -0
- package/esm/api/composition/circle.d.ts +21 -0
- package/esm/api/composition/circle.js +30 -0
- package/esm/api/composition/circle.js.map +1 -0
- package/esm/api/composition/flex.d.ts +17 -0
- package/esm/api/composition/flex.js +26 -0
- package/esm/api/composition/flex.js.map +1 -0
- package/esm/api/composition/index.d.ts +26 -0
- package/esm/api/composition/index.js +27 -0
- package/esm/api/composition/index.js.map +1 -0
- package/esm/api/composition/keyframe.d.ts +17 -0
- package/esm/api/composition/keyframe.js +26 -0
- package/esm/api/composition/keyframe.js.map +1 -0
- package/esm/api/composition/layer.d.ts +14 -0
- package/esm/api/composition/layer.js +23 -0
- package/esm/api/composition/layer.js.map +1 -0
- package/esm/api/composition/matrix.d.ts +21 -0
- package/esm/api/composition/matrix.js +30 -0
- package/esm/api/composition/matrix.js.map +1 -0
- package/esm/api/composition/rect.d.ts +23 -0
- package/esm/api/composition/rect.js +32 -0
- package/esm/api/composition/rect.js.map +1 -0
- package/esm/api/composition/view.d.ts +20 -0
- package/esm/api/composition/view.js +30 -0
- package/esm/api/composition/view.js.map +1 -0
- package/esm/api/index.d.ts +1 -0
- package/esm/api/index.js +2 -0
- package/esm/api/index.js.map +1 -0
- package/esm/api/mark/index.d.ts +41 -0
- package/esm/api/mark/index.js +22 -0
- package/esm/api/mark/index.js.map +1 -0
- package/esm/api/mark/mark.d.ts +114 -0
- package/esm/api/mark/mark.js +190 -0
- package/esm/api/mark/mark.js.map +1 -0
- package/esm/api/mark/types.d.ts +21 -0
- package/esm/{util → api/mark}/types.js +0 -0
- package/esm/api/mark/types.js.map +1 -0
- package/esm/api/node.d.ts +31 -0
- package/esm/api/node.js +55 -0
- package/esm/api/node.js.map +1 -0
- package/esm/api/props.d.ts +12 -0
- package/esm/api/props.js +75 -0
- package/esm/api/props.js.map +1 -0
- package/esm/api/types.d.ts +10 -0
- package/esm/api/types.js +2 -0
- package/esm/api/types.js.map +1 -0
- package/esm/component/axis.d.ts +13 -0
- package/esm/component/axis.js +294 -0
- package/esm/component/axis.js.map +1 -0
- package/esm/component/axisX.d.ts +7 -0
- package/esm/component/axisX.js +9 -0
- package/esm/component/axisX.js.map +1 -0
- package/esm/component/axisY.d.ts +7 -0
- package/esm/component/axisY.js +9 -0
- package/esm/component/axisY.js.map +1 -0
- package/esm/component/index.d.ts +5 -0
- package/esm/component/index.js +6 -0
- package/esm/component/index.js.map +1 -0
- package/esm/component/legendCategory.d.ts +10 -0
- package/esm/component/legendCategory.js +84 -0
- package/esm/component/legendCategory.js.map +1 -0
- package/esm/component/legendContinuous.d.ts +9 -0
- package/esm/component/legendContinuous.js +38 -0
- package/esm/component/legendContinuous.js.map +1 -0
- package/esm/component/title.d.ts +6 -0
- package/esm/component/title.js +54 -0
- package/esm/component/title.js.map +1 -0
- package/esm/component/utils.d.ts +8 -0
- package/esm/component/utils.js +27 -0
- package/esm/component/utils.js.map +1 -0
- package/esm/composition/circle.d.ts +7 -0
- package/esm/composition/circle.js +85 -0
- package/esm/composition/circle.js.map +1 -0
- package/esm/composition/flex.d.ts +7 -0
- package/esm/composition/flex.js +38 -0
- package/esm/composition/flex.js.map +1 -0
- package/esm/composition/index.d.ts +8 -0
- package/esm/composition/index.js +9 -0
- package/esm/composition/index.js.map +1 -0
- package/esm/composition/keyframe.d.ts +7 -0
- package/esm/composition/keyframe.js +75 -0
- package/esm/composition/keyframe.js.map +1 -0
- package/esm/composition/layer.d.ts +7 -0
- package/esm/composition/layer.js +32 -0
- package/esm/composition/layer.js.map +1 -0
- package/esm/composition/mark.d.ts +4 -0
- package/esm/composition/mark.js +40 -0
- package/esm/composition/mark.js.map +1 -0
- package/esm/composition/matrix.d.ts +8 -0
- package/esm/composition/matrix.js +151 -0
- package/esm/composition/matrix.js.map +1 -0
- package/esm/composition/rect.d.ts +30 -0
- package/esm/composition/rect.js +287 -0
- package/esm/composition/rect.js.map +1 -0
- package/esm/composition/utils.d.ts +10 -0
- package/esm/composition/utils.js +14 -0
- package/esm/composition/utils.js.map +1 -0
- package/esm/composition/view.d.ts +9 -0
- package/esm/composition/view.js +32 -0
- package/esm/composition/view.js.map +1 -0
- package/esm/coordinate/cartesian.d.ts +7 -0
- package/esm/coordinate/cartesian.js +6 -0
- package/esm/coordinate/cartesian.js.map +1 -0
- package/esm/coordinate/fisheye.d.ts +7 -0
- package/esm/coordinate/fisheye.js +6 -0
- package/esm/coordinate/fisheye.js.map +1 -0
- package/esm/coordinate/index.d.ts +5 -0
- package/esm/coordinate/index.js +6 -0
- package/esm/coordinate/index.js.map +1 -0
- package/esm/coordinate/parallel.d.ts +7 -0
- package/esm/coordinate/parallel.js +6 -0
- package/esm/coordinate/parallel.js.map +1 -0
- package/esm/coordinate/polar.d.ts +8 -0
- package/esm/coordinate/polar.js +12 -0
- package/esm/coordinate/polar.js.map +1 -0
- package/esm/coordinate/transpose.d.ts +7 -0
- package/esm/coordinate/transpose.js +11 -0
- package/esm/coordinate/transpose.js.map +1 -0
- package/esm/encode/column.d.ts +7 -0
- package/esm/encode/column.js +8 -0
- package/esm/encode/column.js.map +1 -0
- package/esm/encode/constant.d.ts +7 -0
- package/esm/encode/constant.js +8 -0
- package/esm/encode/constant.js.map +1 -0
- package/esm/encode/field.d.ts +7 -0
- package/esm/encode/field.js +8 -0
- package/esm/encode/field.js.map +1 -0
- package/esm/encode/index.d.ts +4 -0
- package/esm/encode/index.js +5 -0
- package/esm/encode/index.js.map +1 -0
- package/esm/encode/transform.d.ts +9 -0
- package/esm/encode/transform.js +10 -0
- package/esm/encode/transform.js.map +1 -0
- package/esm/index.d.ts +4 -107
- package/esm/index.js +3 -588
- package/esm/index.js.map +1 -1
- package/esm/interaction/action/index.d.ts +23 -2
- package/esm/interaction/action/index.js +23 -2
- package/esm/interaction/action/index.js.map +1 -1
- package/esm/interaction/action/service/elementSelection.d.ts +4 -0
- package/esm/interaction/action/service/elementSelection.js +90 -0
- package/esm/interaction/action/service/elementSelection.js.map +1 -0
- package/esm/interaction/action/service/fisheyeFocus.d.ts +4 -0
- package/esm/interaction/action/service/fisheyeFocus.js +47 -0
- package/esm/interaction/action/service/fisheyeFocus.js.map +1 -0
- package/esm/interaction/action/service/legendItemSelection.d.ts +4 -0
- package/esm/interaction/action/service/legendItemSelection.js +17 -0
- package/esm/interaction/action/service/legendItemSelection.js.map +1 -0
- package/esm/interaction/action/service/recordCurrentPoint.d.ts +4 -0
- package/esm/interaction/action/service/recordCurrentPoint.js +16 -0
- package/esm/interaction/action/service/recordCurrentPoint.js.map +1 -0
- package/esm/interaction/action/service/recordPoint.d.ts +4 -0
- package/esm/interaction/action/service/recordPoint.js +28 -0
- package/esm/interaction/action/service/recordPoint.js.map +1 -0
- package/esm/interaction/action/service/recordRegion.d.ts +4 -0
- package/esm/interaction/action/service/recordRegion.js +30 -0
- package/esm/interaction/action/service/recordRegion.js.map +1 -0
- package/esm/interaction/action/service/recordState.d.ts +4 -0
- package/esm/interaction/action/service/recordState.js +10 -0
- package/esm/interaction/action/service/recordState.js.map +1 -0
- package/esm/interaction/action/service/recordTip.d.ts +8 -0
- package/esm/interaction/action/service/recordTip.js +15 -0
- package/esm/interaction/action/service/recordTip.js.map +1 -0
- package/esm/interaction/action/service/surfacePointSelection.d.ts +4 -0
- package/esm/interaction/action/service/surfacePointSelection.js +19 -0
- package/esm/interaction/action/service/surfacePointSelection.js.map +1 -0
- package/esm/interaction/action/service/triggerInfoSelection.d.ts +4 -0
- package/esm/interaction/action/service/triggerInfoSelection.js +18 -0
- package/esm/interaction/action/service/triggerInfoSelection.js.map +1 -0
- package/esm/interaction/action/transformer/activeElement.d.ts +4 -0
- package/esm/interaction/action/transformer/activeElement.js +23 -0
- package/esm/interaction/action/transformer/activeElement.js.map +1 -0
- package/esm/interaction/action/transformer/activeRegion.d.ts +4 -0
- package/esm/interaction/action/transformer/activeRegion.js +52 -0
- package/esm/interaction/action/transformer/activeRegion.js.map +1 -0
- package/esm/interaction/action/transformer/button.d.ts +4 -0
- package/esm/interaction/action/transformer/button.js +76 -0
- package/esm/interaction/action/transformer/button.js.map +1 -0
- package/esm/interaction/action/transformer/cursor.d.ts +4 -0
- package/esm/interaction/action/transformer/cursor.js +15 -0
- package/esm/interaction/action/transformer/cursor.js.map +1 -0
- package/esm/interaction/action/transformer/filter.d.ts +7 -0
- package/esm/interaction/action/transformer/filter.js +39 -0
- package/esm/interaction/action/transformer/filter.js.map +1 -0
- package/esm/interaction/action/transformer/filterElement.d.ts +4 -0
- package/esm/interaction/action/transformer/filterElement.js +41 -0
- package/esm/interaction/action/transformer/filterElement.js.map +1 -0
- package/esm/interaction/action/transformer/highlightElement.d.ts +4 -0
- package/esm/interaction/action/transformer/highlightElement.js +48 -0
- package/esm/interaction/action/transformer/highlightElement.js.map +1 -0
- package/esm/interaction/action/transformer/mask.d.ts +7 -0
- package/esm/interaction/action/transformer/mask.js +106 -0
- package/esm/interaction/action/transformer/mask.js.map +1 -0
- package/esm/interaction/action/transformer/move.d.ts +7 -0
- package/esm/interaction/action/transformer/move.js +70 -0
- package/esm/interaction/action/transformer/move.js.map +1 -0
- package/esm/interaction/action/transformer/plot.d.ts +4 -0
- package/esm/interaction/action/transformer/plot.js +10 -0
- package/esm/interaction/action/transformer/plot.js.map +1 -0
- package/esm/interaction/action/transformer/poptip.d.ts +4 -0
- package/esm/interaction/action/transformer/poptip.js +39 -0
- package/esm/interaction/action/transformer/poptip.js.map +1 -0
- package/esm/interaction/action/transformer/setItemState.d.ts +4 -0
- package/esm/interaction/action/transformer/setItemState.js +31 -0
- package/esm/interaction/action/transformer/setItemState.js.map +1 -0
- package/esm/interaction/action/transformer/tooltip.d.ts +9 -0
- package/esm/interaction/action/transformer/tooltip.js +289 -0
- package/esm/interaction/action/transformer/tooltip.js.map +1 -0
- package/esm/interaction/builtin/activeRegion.d.ts +19 -0
- package/esm/interaction/builtin/activeRegion.js +18 -0
- package/esm/interaction/builtin/activeRegion.js.map +1 -0
- package/esm/interaction/builtin/brush.d.ts +132 -0
- package/esm/interaction/builtin/brush.js +93 -0
- package/esm/interaction/builtin/brush.js.map +1 -0
- package/esm/interaction/builtin/brushHighlight.d.ts +98 -0
- package/esm/interaction/builtin/brushHighlight.js +111 -0
- package/esm/interaction/builtin/brushHighlight.js.map +1 -0
- package/esm/interaction/builtin/brushVisible.d.ts +88 -0
- package/esm/interaction/builtin/brushVisible.js +62 -0
- package/esm/interaction/builtin/brushVisible.js.map +1 -0
- package/esm/interaction/builtin/elementActive.d.ts +22 -0
- package/esm/interaction/builtin/elementActive.js +25 -0
- package/esm/interaction/builtin/elementActive.js.map +1 -0
- package/esm/interaction/builtin/elementHighlight.d.ts +19 -0
- package/esm/interaction/builtin/elementHighlight.js +24 -0
- package/esm/interaction/builtin/elementHighlight.js.map +1 -0
- package/esm/interaction/builtin/elementHighlightByColor.d.ts +23 -0
- package/esm/interaction/builtin/elementHighlightByColor.js +24 -0
- package/esm/interaction/builtin/elementHighlightByColor.js.map +1 -0
- package/esm/interaction/builtin/elementHighlightByX.d.ts +23 -0
- package/esm/interaction/builtin/elementHighlightByX.js +24 -0
- package/esm/interaction/builtin/elementHighlightByX.js.map +1 -0
- package/esm/interaction/builtin/elementListHighlight.d.ts +43 -0
- package/esm/interaction/builtin/elementListHighlight.js +28 -0
- package/esm/interaction/builtin/elementListHighlight.js.map +1 -0
- package/esm/interaction/builtin/elementSelected.d.ts +20 -0
- package/esm/interaction/builtin/elementSelected.js +18 -0
- package/esm/interaction/builtin/elementSelected.js.map +1 -0
- package/esm/interaction/builtin/ellipsisText.d.ts +19 -0
- package/esm/interaction/builtin/ellipsisText.js +17 -0
- package/esm/interaction/builtin/ellipsisText.js.map +1 -0
- package/esm/interaction/builtin/fisheye.d.ts +33 -0
- package/esm/interaction/builtin/fisheye.js +20 -0
- package/esm/interaction/builtin/fisheye.js.map +1 -0
- package/esm/interaction/builtin/legendActive.d.ts +43 -0
- package/esm/interaction/builtin/legendActive.js +30 -0
- package/esm/interaction/builtin/legendActive.js.map +1 -0
- package/esm/interaction/builtin/legendHighlight.d.ts +43 -0
- package/esm/interaction/builtin/legendHighlight.js +30 -0
- package/esm/interaction/builtin/legendHighlight.js.map +1 -0
- package/esm/interaction/builtin/tooltip.d.ts +44 -0
- package/esm/interaction/builtin/tooltip.js +28 -0
- package/esm/interaction/builtin/tooltip.js.map +1 -0
- package/esm/interaction/create.d.ts +3 -0
- package/esm/interaction/create.js +96 -0
- package/esm/interaction/create.js.map +1 -0
- package/esm/interaction/index.d.ts +18 -25
- package/esm/interaction/index.js +18 -42
- package/esm/interaction/index.js.map +1 -1
- package/esm/interaction/interactor/index.d.ts +2 -0
- package/esm/interaction/interactor/index.js +3 -0
- package/esm/interaction/interactor/index.js.map +1 -0
- package/esm/interaction/interactor/mousePosition.d.ts +3 -0
- package/esm/interaction/interactor/mousePosition.js +10 -0
- package/esm/interaction/interactor/mousePosition.js.map +1 -0
- package/esm/interaction/interactor/touchPosition.d.ts +3 -0
- package/esm/interaction/interactor/touchPosition.js +10 -0
- package/esm/interaction/interactor/touchPosition.js.map +1 -0
- package/esm/interaction/stdlib.d.ts +2 -0
- package/esm/interaction/stdlib.js +32 -0
- package/esm/interaction/stdlib.js.map +1 -0
- package/esm/interaction/types.d.ts +57 -0
- package/esm/interaction/types.js +2 -0
- package/esm/interaction/types.js.map +1 -0
- package/esm/interaction/utils.d.ts +3 -0
- package/esm/interaction/utils.js +40 -0
- package/esm/interaction/utils.js.map +1 -0
- package/esm/mark/annotation/connector.d.ts +4 -0
- package/esm/mark/annotation/connector.js +18 -0
- package/esm/mark/annotation/connector.js.map +1 -0
- package/esm/mark/annotation/index.d.ts +7 -0
- package/esm/mark/annotation/index.js +8 -0
- package/esm/mark/annotation/index.js.map +1 -0
- package/esm/mark/annotation/lineX.d.ts +4 -0
- package/esm/mark/annotation/lineX.js +21 -0
- package/esm/mark/annotation/lineX.js.map +1 -0
- package/esm/mark/annotation/lineY.d.ts +4 -0
- package/esm/mark/annotation/lineY.js +21 -0
- package/esm/mark/annotation/lineY.js.map +1 -0
- package/esm/mark/annotation/range.d.ts +8 -0
- package/esm/mark/annotation/range.js +44 -0
- package/esm/mark/annotation/range.js.map +1 -0
- package/esm/mark/annotation/rangeX.d.ts +4 -0
- package/esm/mark/annotation/rangeX.js +14 -0
- package/esm/mark/annotation/rangeX.js.map +1 -0
- package/esm/mark/annotation/rangeY.d.ts +4 -0
- package/esm/mark/annotation/rangeY.js +14 -0
- package/esm/mark/annotation/rangeY.js.map +1 -0
- package/esm/mark/annotation/text.d.ts +4 -0
- package/esm/mark/annotation/text.js +21 -0
- package/esm/mark/annotation/text.js.map +1 -0
- package/esm/mark/geometry/area.d.ts +4 -0
- package/esm/mark/geometry/area.js +70 -0
- package/esm/mark/geometry/area.js.map +1 -0
- package/esm/mark/geometry/edge.d.ts +13 -0
- package/esm/mark/geometry/edge.js +31 -0
- package/esm/mark/geometry/edge.js.map +1 -0
- package/esm/mark/geometry/grid.d.ts +9 -0
- package/esm/mark/geometry/grid.js +46 -0
- package/esm/mark/geometry/grid.js.map +1 -0
- package/esm/mark/geometry/image.d.ts +4 -0
- package/esm/mark/geometry/image.js +34 -0
- package/esm/mark/geometry/image.js.map +1 -0
- package/esm/mark/geometry/index.d.ts +13 -0
- package/esm/mark/geometry/index.js +14 -0
- package/esm/mark/geometry/index.js.map +1 -0
- package/esm/mark/geometry/interval.d.ts +12 -0
- package/esm/mark/geometry/interval.js +59 -0
- package/esm/mark/geometry/interval.js.map +1 -0
- package/esm/mark/geometry/line.d.ts +7 -0
- package/esm/mark/geometry/line.js +76 -0
- package/esm/mark/geometry/line.js.map +1 -0
- package/esm/mark/geometry/link.d.ts +7 -0
- package/esm/mark/geometry/link.js +33 -0
- package/esm/mark/geometry/link.js.map +1 -0
- package/esm/mark/geometry/node.d.ts +8 -0
- package/esm/mark/geometry/node.js +27 -0
- package/esm/mark/geometry/node.js.map +1 -0
- package/esm/mark/geometry/point.d.ts +10 -0
- package/esm/mark/geometry/point.js +71 -0
- package/esm/mark/geometry/point.js.map +1 -0
- package/esm/mark/geometry/polygon.d.ts +7 -0
- package/esm/mark/geometry/polygon.js +43 -0
- package/esm/mark/geometry/polygon.js.map +1 -0
- package/esm/mark/geometry/schema.d.ts +34 -0
- package/esm/mark/geometry/schema.js +90 -0
- package/esm/mark/geometry/schema.js.map +1 -0
- package/esm/mark/geometry/text.d.ts +4 -0
- package/esm/mark/geometry/text.js +35 -0
- package/esm/mark/geometry/text.js.map +1 -0
- package/esm/mark/geometry/vector.d.ts +8 -0
- package/esm/mark/geometry/vector.js +43 -0
- package/esm/mark/geometry/vector.js.map +1 -0
- package/esm/mark/utils.d.ts +10 -0
- package/esm/mark/utils.js +30 -0
- package/esm/mark/utils.js.map +1 -0
- package/esm/palette/category10.d.ts +7 -0
- package/esm/palette/category10.js +19 -0
- package/esm/palette/category10.js.map +1 -0
- package/esm/palette/category20.d.ts +7 -0
- package/esm/palette/category20.js +29 -0
- package/esm/palette/category20.js.map +1 -0
- package/esm/palette/index.d.ts +2 -0
- package/esm/palette/index.js +3 -0
- package/esm/palette/index.js.map +1 -0
- package/esm/renderer/canvas.d.ts +10 -0
- package/esm/renderer/canvas.js +18 -0
- package/esm/renderer/canvas.js.map +1 -0
- package/esm/renderer/index.d.ts +1 -0
- package/esm/renderer/index.js +2 -0
- package/esm/renderer/index.js.map +1 -0
- package/esm/runtime/component.d.ts +5 -0
- package/esm/runtime/component.js +132 -0
- package/esm/runtime/component.js.map +1 -0
- package/esm/runtime/coordinate.d.ts +7 -0
- package/esm/runtime/coordinate.js +34 -0
- package/esm/runtime/coordinate.js.map +1 -0
- package/esm/runtime/index.d.ts +7 -0
- package/esm/runtime/index.js +8 -0
- package/esm/runtime/index.js.map +1 -0
- package/esm/runtime/layout.d.ts +5 -0
- package/esm/runtime/layout.js +115 -0
- package/esm/runtime/layout.js.map +1 -0
- package/esm/runtime/library.d.ts +3 -0
- package/esm/runtime/library.js +26 -0
- package/esm/runtime/library.js.map +1 -0
- package/esm/runtime/mark.d.ts +6 -0
- package/esm/runtime/mark.js +183 -0
- package/esm/runtime/mark.js.map +1 -0
- package/esm/runtime/plot.d.ts +3 -0
- package/esm/runtime/plot.js +554 -0
- package/esm/runtime/plot.js.map +1 -0
- package/esm/runtime/render.d.ts +2 -0
- package/esm/runtime/render.js +78 -0
- package/esm/runtime/render.js.map +1 -0
- package/esm/runtime/scale.d.ts +8 -0
- package/esm/runtime/scale.js +326 -0
- package/esm/runtime/scale.js.map +1 -0
- package/esm/runtime/types/common.d.ts +125 -0
- package/esm/runtime/types/common.js +2 -0
- package/esm/runtime/types/common.js.map +1 -0
- package/esm/runtime/types/component.d.ts +73 -0
- package/esm/runtime/types/component.js +2 -0
- package/esm/runtime/types/component.js.map +1 -0
- package/esm/runtime/types/encode.d.ts +21 -0
- package/esm/runtime/types/encode.js +2 -0
- package/esm/runtime/types/encode.js.map +1 -0
- package/esm/runtime/types/mark.d.ts +20 -0
- package/esm/runtime/types/mark.js +2 -0
- package/esm/runtime/types/mark.js.map +1 -0
- package/esm/runtime/types/options.d.ts +106 -0
- package/esm/runtime/types/options.js +2 -0
- package/esm/runtime/types/options.js.map +1 -0
- package/esm/runtime/types/transform.d.ts +23 -0
- package/esm/runtime/types/transform.js +2 -0
- package/esm/runtime/types/transform.js.map +1 -0
- package/esm/scale/band.d.ts +4 -0
- package/esm/scale/band.js +6 -0
- package/esm/scale/band.js.map +1 -0
- package/esm/scale/identity.d.ts +4 -0
- package/esm/scale/identity.js +6 -0
- package/esm/scale/identity.js.map +1 -0
- package/esm/scale/index.d.ts +11 -0
- package/esm/scale/index.js +12 -0
- package/esm/scale/index.js.map +1 -0
- package/esm/scale/linear.d.ts +4 -0
- package/esm/scale/linear.js +6 -0
- package/esm/scale/linear.js.map +1 -0
- package/esm/scale/log.d.ts +4 -0
- package/esm/scale/log.js +6 -0
- package/esm/scale/log.js.map +1 -0
- package/esm/scale/ordinal.d.ts +4 -0
- package/esm/scale/ordinal.js +6 -0
- package/esm/scale/ordinal.js.map +1 -0
- package/esm/scale/point.d.ts +4 -0
- package/esm/scale/point.js +6 -0
- package/esm/scale/point.js.map +1 -0
- package/esm/scale/pow.d.ts +4 -0
- package/esm/scale/pow.js +6 -0
- package/esm/scale/pow.js.map +1 -0
- package/esm/scale/quantile.d.ts +4 -0
- package/esm/scale/quantile.js +6 -0
- package/esm/scale/quantile.js.map +1 -0
- package/esm/scale/quantize.d.ts +4 -0
- package/esm/scale/quantize.js +6 -0
- package/esm/scale/quantize.js.map +1 -0
- package/esm/scale/threshold.d.ts +4 -0
- package/esm/scale/threshold.js +6 -0
- package/esm/scale/threshold.js.map +1 -0
- package/esm/scale/time.d.ts +4 -0
- package/esm/scale/time.js +6 -0
- package/esm/scale/time.js.map +1 -0
- package/esm/shape/annotation/badge.d.ts +14 -0
- package/esm/shape/annotation/badge.js +93 -0
- package/esm/shape/annotation/badge.js.map +1 -0
- package/esm/shape/annotation/connector.d.ts +15 -0
- package/esm/shape/annotation/connector.js +101 -0
- package/esm/shape/annotation/connector.js.map +1 -0
- package/esm/shape/annotation/line.d.ts +3 -0
- package/esm/shape/annotation/line.js +56 -0
- package/esm/shape/annotation/line.js.map +1 -0
- package/esm/shape/annotation/text.d.ts +20 -0
- package/esm/shape/annotation/text.js +162 -0
- package/esm/shape/annotation/text.js.map +1 -0
- package/esm/shape/area/area.d.ts +3 -0
- package/esm/shape/area/area.js +11 -0
- package/esm/shape/area/area.js.map +1 -0
- package/esm/shape/area/curveArea.d.ts +8 -0
- package/esm/shape/area/curveArea.js +60 -0
- package/esm/shape/area/curveArea.js.map +1 -0
- package/esm/shape/area/smoothArea.d.ts +5 -0
- package/esm/shape/area/smoothArea.js +23 -0
- package/esm/shape/area/smoothArea.js.map +1 -0
- package/esm/shape/edge/arc.d.ts +8 -0
- package/esm/shape/edge/arc.js +51 -0
- package/esm/shape/edge/arc.js.map +1 -0
- package/esm/shape/edge/edge.d.ts +6 -0
- package/esm/shape/edge/edge.js +11 -0
- package/esm/shape/edge/edge.js.map +1 -0
- package/esm/shape/edge/ribbon.d.ts +15 -0
- package/esm/shape/edge/ribbon.js +69 -0
- package/esm/shape/edge/ribbon.js.map +1 -0
- package/esm/shape/edge/smoothEdge.d.ts +6 -0
- package/esm/shape/edge/smoothEdge.js +39 -0
- package/esm/shape/edge/smoothEdge.js.map +1 -0
- package/esm/shape/edge/vhv.d.ts +12 -0
- package/esm/shape/edge/vhv.js +69 -0
- package/esm/shape/edge/vhv.js.map +1 -0
- package/esm/shape/image/image.d.ts +3 -0
- package/esm/shape/image/image.js +38 -0
- package/esm/shape/image/image.js.map +1 -0
- package/esm/shape/index.d.ts +48 -0
- package/esm/shape/index.js +50 -0
- package/esm/shape/index.js.map +1 -0
- package/esm/shape/interval/colorRect.d.ts +14 -0
- package/esm/shape/interval/colorRect.js +80 -0
- package/esm/shape/interval/colorRect.js.map +1 -0
- package/esm/shape/interval/funnel.d.ts +10 -0
- package/esm/shape/interval/funnel.js +43 -0
- package/esm/shape/interval/funnel.js.map +1 -0
- package/esm/shape/interval/hollowRect.d.ts +6 -0
- package/esm/shape/interval/hollowRect.js +9 -0
- package/esm/shape/interval/hollowRect.js.map +1 -0
- package/esm/shape/interval/pyramid.d.ts +6 -0
- package/esm/shape/interval/pyramid.js +38 -0
- package/esm/shape/interval/pyramid.js.map +1 -0
- package/esm/shape/interval/rect.d.ts +7 -0
- package/esm/shape/interval/rect.js +10 -0
- package/esm/shape/interval/rect.js.map +1 -0
- package/esm/shape/label/label.d.ts +7 -0
- package/esm/shape/label/label.js +29 -0
- package/esm/shape/label/label.js.map +1 -0
- package/esm/shape/line/curveLine.d.ts +8 -0
- package/esm/shape/line/curveLine.js +41 -0
- package/esm/shape/line/curveLine.js.map +1 -0
- package/esm/shape/line/hv.d.ts +3 -0
- package/esm/shape/line/hv.js +7 -0
- package/esm/shape/line/hv.js.map +1 -0
- package/esm/shape/line/hvh.d.ts +3 -0
- package/esm/shape/line/hvh.js +7 -0
- package/esm/shape/line/hvh.js.map +1 -0
- package/esm/shape/line/line.d.ts +3 -0
- package/esm/shape/line/line.js +7 -0
- package/esm/shape/line/line.js.map +1 -0
- package/esm/shape/line/smooth.d.ts +5 -0
- package/esm/shape/line/smooth.js +19 -0
- package/esm/shape/line/smooth.js.map +1 -0
- package/esm/shape/line/vh.d.ts +3 -0
- package/esm/shape/line/vh.js +7 -0
- package/esm/shape/line/vh.js.map +1 -0
- package/esm/shape/link/link.d.ts +13 -0
- package/esm/shape/link/link.js +49 -0
- package/esm/shape/link/link.js.map +1 -0
- package/esm/shape/node/point.d.ts +6 -0
- package/esm/shape/node/point.js +27 -0
- package/esm/shape/node/point.js.map +1 -0
- package/esm/shape/node/polygon.d.ts +3 -0
- package/esm/shape/node/polygon.js +8 -0
- package/esm/shape/node/polygon.js.map +1 -0
- package/esm/shape/point/bowtie.d.ts +6 -0
- package/esm/shape/point/bowtie.js +9 -0
- package/esm/shape/point/bowtie.js.map +1 -0
- package/esm/shape/point/colorPoint.d.ts +11 -0
- package/esm/shape/point/colorPoint.js +59 -0
- package/esm/shape/point/colorPoint.js.map +1 -0
- package/esm/shape/point/cross.d.ts +6 -0
- package/esm/shape/point/cross.js +9 -0
- package/esm/shape/point/cross.js.map +1 -0
- package/esm/shape/point/diamond.d.ts +6 -0
- package/esm/shape/point/diamond.js +9 -0
- package/esm/shape/point/diamond.js.map +1 -0
- package/esm/shape/point/hexagon.d.ts +6 -0
- package/esm/shape/point/hexagon.js +9 -0
- package/esm/shape/point/hexagon.js.map +1 -0
- package/esm/shape/point/hollowBowtie.d.ts +6 -0
- package/esm/shape/point/hollowBowtie.js +9 -0
- package/esm/shape/point/hollowBowtie.js.map +1 -0
- package/esm/shape/point/hollowDiamond.d.ts +6 -0
- package/esm/shape/point/hollowDiamond.js +9 -0
- package/esm/shape/point/hollowDiamond.js.map +1 -0
- package/esm/shape/point/hollowHexagon.d.ts +6 -0
- package/esm/shape/point/hollowHexagon.js +9 -0
- package/esm/shape/point/hollowHexagon.js.map +1 -0
- package/esm/shape/point/hollowPoint.d.ts +6 -0
- package/esm/shape/point/hollowPoint.js +9 -0
- package/esm/shape/point/hollowPoint.js.map +1 -0
- package/esm/shape/point/hollowSquare.d.ts +6 -0
- package/esm/shape/point/hollowSquare.js +9 -0
- package/esm/shape/point/hollowSquare.js.map +1 -0
- package/esm/shape/point/hollowTriangle.d.ts +6 -0
- package/esm/shape/point/hollowTriangle.js +9 -0
- package/esm/shape/point/hollowTriangle.js.map +1 -0
- package/esm/shape/point/hollowTriangleDown.d.ts +6 -0
- package/esm/shape/point/hollowTriangleDown.js +9 -0
- package/esm/shape/point/hollowTriangleDown.js.map +1 -0
- package/esm/shape/point/hyphen.d.ts +6 -0
- package/esm/shape/point/hyphen.js +9 -0
- package/esm/shape/point/hyphen.js.map +1 -0
- package/esm/shape/point/line.d.ts +6 -0
- package/esm/shape/point/line.js +9 -0
- package/esm/shape/point/line.js.map +1 -0
- package/esm/shape/point/plus.d.ts +6 -0
- package/esm/shape/point/plus.js +9 -0
- package/esm/shape/point/plus.js.map +1 -0
- package/esm/shape/point/point.d.ts +6 -0
- package/esm/shape/point/point.js +9 -0
- package/esm/shape/point/point.js.map +1 -0
- package/esm/shape/point/square.d.ts +6 -0
- package/esm/shape/point/square.js +9 -0
- package/esm/shape/point/square.js.map +1 -0
- package/esm/shape/point/symbol.d.ts +49 -0
- package/esm/shape/point/symbol.js +142 -0
- package/esm/shape/point/symbol.js.map +1 -0
- package/esm/shape/point/tick.d.ts +6 -0
- package/esm/shape/point/tick.js +9 -0
- package/esm/shape/point/tick.js.map +1 -0
- package/esm/shape/point/triangle.d.ts +6 -0
- package/esm/shape/point/triangle.js +9 -0
- package/esm/shape/point/triangle.js.map +1 -0
- package/esm/shape/point/triangleDown.d.ts +6 -0
- package/esm/shape/point/triangleDown.js +9 -0
- package/esm/shape/point/triangleDown.js.map +1 -0
- package/esm/shape/polygon/polygon.d.ts +3 -0
- package/esm/shape/polygon/polygon.js +67 -0
- package/esm/shape/polygon/polygon.js.map +1 -0
- package/esm/shape/schema/box.d.ts +3 -0
- package/esm/shape/schema/box.js +87 -0
- package/esm/shape/schema/box.js.map +1 -0
- package/esm/shape/text/text.d.ts +6 -0
- package/esm/shape/text/text.js +41 -0
- package/esm/shape/text/text.js.map +1 -0
- package/esm/shape/utils.d.ts +52 -0
- package/esm/shape/utils.js +67 -0
- package/esm/shape/utils.js.map +1 -0
- package/esm/shape/vector/vector.d.ts +13 -0
- package/esm/shape/vector/vector.js +48 -0
- package/esm/shape/vector/vector.js.map +1 -0
- package/esm/spec/action.d.ts +122 -0
- package/esm/spec/action.js +2 -0
- package/esm/spec/action.js.map +1 -0
- package/esm/spec/animate.d.ts +8 -0
- package/esm/spec/animate.js +2 -0
- package/esm/spec/animate.js.map +1 -0
- package/esm/spec/composition.d.ts +124 -0
- package/esm/spec/composition.js +2 -0
- package/esm/spec/composition.js.map +1 -0
- package/esm/spec/coordinate.d.ts +30 -0
- package/esm/spec/coordinate.js +2 -0
- package/esm/spec/coordinate.js.map +1 -0
- package/esm/spec/encode.d.ts +23 -0
- package/esm/spec/encode.js +2 -0
- package/esm/spec/encode.js.map +1 -0
- package/esm/spec/geometry.d.ts +60 -0
- package/esm/spec/geometry.js +2 -0
- package/esm/spec/geometry.js.map +1 -0
- package/esm/spec/index.d.ts +16 -0
- package/esm/spec/index.js +12 -0
- package/esm/spec/index.js.map +1 -0
- package/esm/spec/interaction.d.ts +66 -0
- package/esm/spec/interaction.js +2 -0
- package/esm/spec/interaction.js.map +1 -0
- package/esm/spec/palette.d.ts +13 -0
- package/esm/spec/palette.js +2 -0
- package/esm/spec/palette.js.map +1 -0
- package/esm/spec/scale.d.ts +27 -0
- package/esm/spec/scale.js +2 -0
- package/esm/spec/scale.js.map +1 -0
- package/esm/spec/statistic.d.ts +69 -0
- package/esm/spec/statistic.js +2 -0
- package/esm/spec/statistic.js.map +1 -0
- package/esm/spec/theme.d.ts +12 -0
- package/esm/spec/theme.js +2 -0
- package/esm/spec/theme.js.map +1 -0
- package/esm/spec/title.d.ts +2 -0
- package/esm/spec/title.js +2 -0
- package/esm/spec/title.js.map +1 -0
- package/esm/spec/transform.d.ts +177 -0
- package/esm/spec/transform.js +2 -0
- package/esm/spec/transform.js.map +1 -0
- package/esm/stdlib/index.d.ts +2 -0
- package/esm/stdlib/index.js +185 -0
- package/esm/stdlib/index.js.map +1 -0
- package/esm/theme/index.d.ts +1 -12
- package/esm/theme/index.js +1 -22
- package/esm/theme/index.js.map +1 -1
- package/esm/theme/light.d.ts +7 -0
- package/esm/theme/light.js +30 -0
- package/esm/theme/light.js.map +1 -0
- package/esm/transform/index.d.ts +36 -0
- package/esm/transform/index.js +40 -0
- package/esm/transform/index.js.map +1 -0
- package/esm/transform/inference/maybeArrayField.d.ts +8 -0
- package/esm/transform/inference/maybeArrayField.js +47 -0
- package/esm/transform/inference/maybeArrayField.js.map +1 -0
- package/esm/transform/inference/maybeKey.d.ts +9 -0
- package/esm/transform/inference/maybeKey.js +33 -0
- package/esm/transform/inference/maybeKey.js.map +1 -0
- package/esm/transform/inference/maybeSeries.d.ts +7 -0
- package/esm/transform/inference/maybeSeries.js +23 -0
- package/esm/transform/inference/maybeSeries.js.map +1 -0
- package/esm/transform/inference/maybeSize.d.ts +7 -0
- package/esm/transform/inference/maybeSize.js +14 -0
- package/esm/transform/inference/maybeSize.js.map +1 -0
- package/esm/transform/inference/maybeStackY.d.ts +9 -0
- package/esm/transform/inference/maybeStackY.js +32 -0
- package/esm/transform/inference/maybeStackY.js.map +1 -0
- package/esm/transform/inference/maybeTitleX.d.ts +7 -0
- package/esm/transform/inference/maybeTitleX.js +23 -0
- package/esm/transform/inference/maybeTitleX.js.map +1 -0
- package/esm/transform/inference/maybeTooltip.d.ts +9 -0
- package/esm/transform/inference/maybeTooltip.js +30 -0
- package/esm/transform/inference/maybeTooltip.js.map +1 -0
- package/esm/transform/inference/maybeTooltipPosition.d.ts +7 -0
- package/esm/transform/inference/maybeTooltipPosition.js +12 -0
- package/esm/transform/inference/maybeTooltipPosition.js.map +1 -0
- package/esm/transform/inference/maybeTooltipY.d.ts +7 -0
- package/esm/transform/inference/maybeTooltipY.js +12 -0
- package/esm/transform/inference/maybeTooltipY.js.map +1 -0
- package/esm/transform/inference/maybeZeroX.d.ts +7 -0
- package/esm/transform/inference/maybeZeroX.js +14 -0
- package/esm/transform/inference/maybeZeroX.js.map +1 -0
- package/esm/transform/inference/maybeZeroY.d.ts +7 -0
- package/esm/transform/inference/maybeZeroY.js +14 -0
- package/esm/transform/inference/maybeZeroY.js.map +1 -0
- package/esm/transform/inference/maybeZeroY1.d.ts +7 -0
- package/esm/transform/inference/maybeZeroY1.js +14 -0
- package/esm/transform/inference/maybeZeroY1.js.map +1 -0
- package/esm/transform/preprocessor/arc.d.ts +7 -0
- package/esm/transform/preprocessor/arc.js +16 -0
- package/esm/transform/preprocessor/arc.js.map +1 -0
- package/esm/transform/preprocessor/cluster.d.ts +5 -0
- package/esm/transform/preprocessor/cluster.js +40 -0
- package/esm/transform/preprocessor/cluster.js.map +1 -0
- package/esm/transform/preprocessor/connector.d.ts +7 -0
- package/esm/transform/preprocessor/connector.js +16 -0
- package/esm/transform/preprocessor/connector.js.map +1 -0
- package/esm/transform/preprocessor/fetch.d.ts +8 -0
- package/esm/transform/preprocessor/fetch.js +36 -0
- package/esm/transform/preprocessor/fetch.js.map +1 -0
- package/esm/transform/preprocessor/filterBy.d.ts +8 -0
- package/esm/transform/preprocessor/filterBy.js +18 -0
- package/esm/transform/preprocessor/filterBy.js.map +1 -0
- package/esm/transform/preprocessor/fold.d.ts +8 -0
- package/esm/transform/preprocessor/fold.js +27 -0
- package/esm/transform/preprocessor/fold.js.map +1 -0
- package/esm/transform/preprocessor/pick.d.ts +7 -0
- package/esm/transform/preprocessor/pick.js +12 -0
- package/esm/transform/preprocessor/pick.js.map +1 -0
- package/esm/transform/preprocessor/rename.d.ts +8 -0
- package/esm/transform/preprocessor/rename.js +20 -0
- package/esm/transform/preprocessor/rename.js.map +1 -0
- package/esm/transform/preprocessor/sankey.d.ts +8 -0
- package/esm/transform/preprocessor/sankey.js +80 -0
- package/esm/transform/preprocessor/sankey.js.map +1 -0
- package/esm/transform/preprocessor/sortBy.d.ts +7 -0
- package/esm/transform/preprocessor/sortBy.js +19 -0
- package/esm/transform/preprocessor/sortBy.js.map +1 -0
- package/esm/transform/preprocessor/subset.d.ts +7 -0
- package/esm/transform/preprocessor/subset.js +31 -0
- package/esm/transform/preprocessor/subset.js.map +1 -0
- package/esm/transform/preprocessor/tree.d.ts +4 -0
- package/esm/transform/preprocessor/tree.js +7 -0
- package/esm/transform/preprocessor/tree.js.map +1 -0
- package/esm/transform/preprocessor/voronoi.d.ts +4 -0
- package/esm/transform/preprocessor/voronoi.js +20 -0
- package/esm/transform/preprocessor/voronoi.js.map +1 -0
- package/esm/transform/preprocessor/wordCloud.d.ts +6 -0
- package/esm/transform/preprocessor/wordCloud.js +106 -0
- package/esm/transform/preprocessor/wordCloud.js.map +1 -0
- package/esm/transform/statistic/Select.d.ts +9 -0
- package/esm/transform/statistic/Select.js +58 -0
- package/esm/transform/statistic/Select.js.map +1 -0
- package/esm/transform/statistic/SelectX.d.ts +7 -0
- package/esm/transform/statistic/SelectX.js +23 -0
- package/esm/transform/statistic/SelectX.js.map +1 -0
- package/esm/transform/statistic/SelectY.d.ts +7 -0
- package/esm/transform/statistic/SelectY.js +23 -0
- package/esm/transform/statistic/SelectY.js.map +1 -0
- package/esm/transform/statistic/dodgeX.d.ts +9 -0
- package/esm/transform/statistic/dodgeX.js +56 -0
- package/esm/transform/statistic/dodgeX.js.map +1 -0
- package/esm/transform/statistic/groupX.d.ts +8 -0
- package/esm/transform/statistic/groupX.js +85 -0
- package/esm/transform/statistic/groupX.js.map +1 -0
- package/esm/transform/statistic/jitter.d.ts +9 -0
- package/esm/transform/statistic/jitter.js +40 -0
- package/esm/transform/statistic/jitter.js.map +1 -0
- package/esm/transform/statistic/jitterY.d.ts +8 -0
- package/esm/transform/statistic/jitterY.js +27 -0
- package/esm/transform/statistic/jitterY.js.map +1 -0
- package/esm/transform/statistic/normalizeY.d.ts +9 -0
- package/esm/transform/statistic/normalizeY.js +70 -0
- package/esm/transform/statistic/normalizeY.js.map +1 -0
- package/esm/transform/statistic/stackEnter.d.ts +13 -0
- package/esm/transform/statistic/stackEnter.js +59 -0
- package/esm/transform/statistic/stackEnter.js.map +1 -0
- package/esm/transform/statistic/stackY.d.ts +9 -0
- package/esm/transform/statistic/stackY.js +55 -0
- package/esm/transform/statistic/stackY.js.map +1 -0
- package/esm/transform/statistic/symmetryY.d.ts +8 -0
- package/esm/transform/statistic/symmetryY.js +61 -0
- package/esm/transform/statistic/symmetryY.js.map +1 -0
- package/esm/transform/statistic/utils.d.ts +9 -0
- package/esm/transform/statistic/utils.js +70 -0
- package/esm/transform/statistic/utils.js.map +1 -0
- package/esm/transform/utils/arc/arc.d.ts +8 -0
- package/esm/transform/utils/arc/arc.js +161 -0
- package/esm/transform/utils/arc/arc.js.map +1 -0
- package/esm/transform/utils/arc/index.d.ts +2 -0
- package/esm/transform/utils/arc/index.js +2 -0
- package/esm/transform/utils/arc/index.js.map +1 -0
- package/esm/transform/utils/arc/sort.d.ts +4 -0
- package/esm/transform/utils/arc/sort.js +13 -0
- package/esm/transform/utils/arc/sort.js.map +1 -0
- package/esm/transform/utils/arc/types.d.ts +26 -0
- package/esm/transform/utils/arc/types.js +2 -0
- package/esm/transform/utils/arc/types.js.map +1 -0
- package/esm/transform/utils/d3-cloud/index.d.ts +1 -0
- package/esm/transform/utils/d3-cloud/index.js +395 -0
- package/esm/transform/utils/d3-cloud/index.js.map +1 -0
- package/esm/transform/utils/d3-sankey/align.d.ts +4 -0
- package/esm/transform/utils/d3-sankey/align.js +21 -0
- package/esm/transform/utils/d3-sankey/align.js.map +1 -0
- package/esm/transform/utils/d3-sankey/constant.d.ts +1 -0
- package/esm/transform/utils/d3-sankey/constant.js +6 -0
- package/esm/transform/utils/d3-sankey/constant.js.map +1 -0
- package/esm/transform/utils/d3-sankey/index.d.ts +12 -0
- package/esm/transform/utils/d3-sankey/index.js +13 -0
- package/esm/transform/utils/d3-sankey/index.js.map +1 -0
- package/esm/transform/utils/d3-sankey/sankey.d.ts +24 -0
- package/esm/transform/utils/d3-sankey/sankey.js +388 -0
- package/esm/transform/utils/d3-sankey/sankey.js.map +1 -0
- package/esm/transform/utils/flow.d.ts +9 -0
- package/esm/transform/utils/flow.js +45 -0
- package/esm/transform/utils/flow.js.map +1 -0
- package/esm/transform/utils/helper.d.ts +14 -0
- package/esm/transform/utils/helper.js +40 -0
- package/esm/transform/utils/helper.js.map +1 -0
- package/esm/transform/utils/memo.d.ts +17 -0
- package/esm/transform/utils/memo.js +79 -0
- package/esm/transform/utils/memo.js.map +1 -0
- package/esm/utils/array.d.ts +14 -0
- package/esm/utils/array.js +42 -0
- package/esm/utils/array.js.map +1 -0
- package/esm/utils/container.d.ts +8 -0
- package/esm/utils/container.js +16 -0
- package/esm/utils/container.js.map +1 -0
- package/esm/utils/coordinate.d.ts +5 -0
- package/esm/utils/coordinate.js +20 -0
- package/esm/utils/coordinate.js.map +1 -0
- package/esm/utils/helper.d.ts +17 -0
- package/esm/utils/helper.js +63 -0
- package/esm/utils/helper.js.map +1 -0
- package/esm/utils/selection.d.ts +64 -0
- package/esm/utils/selection.js +285 -0
- package/esm/utils/selection.js.map +1 -0
- package/esm/utils/vector.d.ts +13 -0
- package/esm/utils/vector.js +42 -0
- package/esm/utils/vector.js.map +1 -0
- package/lib/adjust/index.d.ts +1 -0
- package/lib/adjust/index.js +6 -0
- package/lib/adjust/index.js.map +1 -0
- package/lib/adjust/pack.d.ts +8 -0
- package/lib/adjust/pack.js +59 -0
- package/lib/adjust/pack.js.map +1 -0
- package/lib/animation/fadeIn.d.ts +7 -0
- package/lib/animation/fadeIn.js +27 -0
- package/lib/animation/fadeIn.js.map +1 -0
- package/lib/animation/fadeOut.d.ts +7 -0
- package/lib/animation/fadeOut.js +25 -0
- package/lib/animation/fadeOut.js.map +1 -0
- package/lib/animation/index.d.ts +7 -0
- package/lib/animation/index.js +18 -0
- package/lib/animation/index.js.map +1 -0
- package/lib/animation/morphing.d.ts +13 -0
- package/lib/animation/morphing.js +165 -0
- package/lib/animation/morphing.js.map +1 -0
- package/lib/animation/scaleInX.d.ts +7 -0
- package/lib/animation/scaleInX.js +50 -0
- package/lib/animation/scaleInX.js.map +1 -0
- package/lib/animation/scaleInY.d.ts +7 -0
- package/lib/animation/scaleInY.js +50 -0
- package/lib/animation/scaleInY.js.map +1 -0
- package/lib/animation/scaleOutX.d.ts +7 -0
- package/lib/animation/scaleOutX.js +50 -0
- package/lib/animation/scaleOutX.js.map +1 -0
- package/lib/animation/scaleOutY.d.ts +7 -0
- package/lib/animation/scaleOutY.js +50 -0
- package/lib/animation/scaleOutY.js.map +1 -0
- package/lib/animation/utils.d.ts +2 -0
- package/lib/animation/utils.js +21 -0
- package/lib/animation/utils.js.map +1 -0
- package/lib/api/chart.d.ts +30 -0
- package/lib/api/chart.js +106 -0
- package/lib/api/chart.js.map +1 -0
- package/lib/api/composition/circle.d.ts +21 -0
- package/lib/api/composition/circle.js +33 -0
- package/lib/api/composition/circle.js.map +1 -0
- package/lib/api/composition/flex.d.ts +17 -0
- package/lib/api/composition/flex.js +29 -0
- package/lib/api/composition/flex.js.map +1 -0
- package/lib/api/composition/index.d.ts +26 -0
- package/lib/api/composition/index.js +36 -0
- package/lib/api/composition/index.js.map +1 -0
- package/lib/api/composition/keyframe.d.ts +17 -0
- package/lib/api/composition/keyframe.js +29 -0
- package/lib/api/composition/keyframe.js.map +1 -0
- package/lib/api/composition/layer.d.ts +14 -0
- package/lib/api/composition/layer.js +26 -0
- package/lib/api/composition/layer.js.map +1 -0
- package/lib/api/composition/matrix.d.ts +21 -0
- package/lib/api/composition/matrix.js +33 -0
- package/lib/api/composition/matrix.js.map +1 -0
- package/lib/api/composition/rect.d.ts +23 -0
- package/lib/api/composition/rect.js +35 -0
- package/lib/api/composition/rect.js.map +1 -0
- package/lib/api/composition/view.d.ts +20 -0
- package/lib/api/composition/view.js +33 -0
- package/lib/api/composition/view.js.map +1 -0
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +6 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/mark/index.d.ts +41 -0
- package/lib/api/mark/index.js +25 -0
- package/lib/api/mark/index.js.map +1 -0
- package/lib/api/mark/mark.d.ts +114 -0
- package/lib/api/mark/mark.js +193 -0
- package/lib/api/mark/mark.js.map +1 -0
- package/lib/api/mark/types.d.ts +21 -0
- package/lib/{util → api/mark}/types.js +0 -0
- package/lib/api/mark/types.js.map +1 -0
- package/lib/api/node.d.ts +31 -0
- package/lib/api/node.js +59 -0
- package/lib/api/node.js.map +1 -0
- package/lib/api/props.d.ts +12 -0
- package/lib/api/props.js +81 -0
- package/lib/api/props.js.map +1 -0
- package/lib/api/types.d.ts +10 -0
- package/lib/api/types.js +3 -0
- package/lib/api/types.js.map +1 -0
- package/lib/component/axis.d.ts +13 -0
- package/lib/component/axis.js +298 -0
- package/lib/component/axis.js.map +1 -0
- package/lib/component/axisX.d.ts +7 -0
- package/lib/component/axisX.js +13 -0
- package/lib/component/axisX.js.map +1 -0
- package/lib/component/axisY.d.ts +7 -0
- package/lib/component/axisY.js +13 -0
- package/lib/component/axisY.js.map +1 -0
- package/lib/component/index.d.ts +5 -0
- package/lib/component/index.js +14 -0
- package/lib/component/index.js.map +1 -0
- package/lib/component/legendCategory.d.ts +10 -0
- package/lib/component/legendCategory.js +88 -0
- package/lib/component/legendCategory.js.map +1 -0
- package/lib/component/legendContinuous.d.ts +9 -0
- package/lib/component/legendContinuous.js +42 -0
- package/lib/component/legendContinuous.js.map +1 -0
- package/lib/component/title.d.ts +6 -0
- package/lib/component/title.js +58 -0
- package/lib/component/title.js.map +1 -0
- package/lib/component/utils.d.ts +8 -0
- package/lib/component/utils.js +32 -0
- package/lib/component/utils.js.map +1 -0
- package/lib/composition/circle.d.ts +7 -0
- package/lib/composition/circle.js +89 -0
- package/lib/composition/circle.js.map +1 -0
- package/lib/composition/flex.d.ts +7 -0
- package/lib/composition/flex.js +42 -0
- package/lib/composition/flex.js.map +1 -0
- package/lib/composition/index.d.ts +8 -0
- package/lib/composition/index.js +20 -0
- package/lib/composition/index.js.map +1 -0
- package/lib/composition/keyframe.d.ts +7 -0
- package/lib/composition/keyframe.js +79 -0
- package/lib/composition/keyframe.js.map +1 -0
- package/lib/composition/layer.d.ts +7 -0
- package/lib/composition/layer.js +36 -0
- package/lib/composition/layer.js.map +1 -0
- package/lib/composition/mark.d.ts +4 -0
- package/lib/composition/mark.js +44 -0
- package/lib/composition/mark.js.map +1 -0
- package/lib/composition/matrix.d.ts +8 -0
- package/lib/composition/matrix.js +155 -0
- package/lib/composition/matrix.js.map +1 -0
- package/lib/composition/rect.d.ts +30 -0
- package/lib/composition/rect.js +292 -0
- package/lib/composition/rect.js.map +1 -0
- package/lib/composition/utils.d.ts +10 -0
- package/lib/composition/utils.js +19 -0
- package/lib/composition/utils.js.map +1 -0
- package/lib/composition/view.d.ts +9 -0
- package/lib/composition/view.js +36 -0
- package/lib/composition/view.js.map +1 -0
- package/lib/coordinate/cartesian.d.ts +7 -0
- package/lib/coordinate/cartesian.js +10 -0
- package/lib/coordinate/cartesian.js.map +1 -0
- package/lib/coordinate/fisheye.d.ts +7 -0
- package/lib/coordinate/fisheye.js +10 -0
- package/lib/coordinate/fisheye.js.map +1 -0
- package/lib/coordinate/index.d.ts +5 -0
- package/lib/coordinate/index.js +14 -0
- package/lib/coordinate/index.js.map +1 -0
- package/lib/coordinate/parallel.d.ts +7 -0
- package/lib/coordinate/parallel.js +10 -0
- package/lib/coordinate/parallel.js.map +1 -0
- package/lib/coordinate/polar.d.ts +8 -0
- package/lib/coordinate/polar.js +16 -0
- package/lib/coordinate/polar.js.map +1 -0
- package/lib/coordinate/transpose.d.ts +7 -0
- package/lib/coordinate/transpose.js +15 -0
- package/lib/coordinate/transpose.js.map +1 -0
- package/lib/encode/column.d.ts +7 -0
- package/lib/encode/column.js +12 -0
- package/lib/encode/column.js.map +1 -0
- package/lib/encode/constant.d.ts +7 -0
- package/lib/encode/constant.js +12 -0
- package/lib/encode/constant.js.map +1 -0
- package/lib/encode/field.d.ts +7 -0
- package/lib/encode/field.js +12 -0
- package/lib/encode/field.js.map +1 -0
- package/lib/encode/index.d.ts +4 -0
- package/lib/encode/index.js +12 -0
- package/lib/encode/index.js.map +1 -0
- package/lib/encode/transform.d.ts +9 -0
- package/lib/encode/transform.js +14 -0
- package/lib/encode/transform.js.map +1 -0
- package/lib/index.d.ts +4 -107
- package/lib/index.js +20 -591
- package/lib/index.js.map +1 -1
- package/lib/interaction/action/index.d.ts +23 -2
- package/lib/interaction/action/index.js +47 -10
- package/lib/interaction/action/index.js.map +1 -1
- package/lib/interaction/action/service/elementSelection.d.ts +4 -0
- package/lib/interaction/action/service/elementSelection.js +94 -0
- package/lib/interaction/action/service/elementSelection.js.map +1 -0
- package/lib/interaction/action/service/fisheyeFocus.d.ts +4 -0
- package/lib/interaction/action/service/fisheyeFocus.js +51 -0
- package/lib/interaction/action/service/fisheyeFocus.js.map +1 -0
- package/lib/interaction/action/service/legendItemSelection.d.ts +4 -0
- package/lib/interaction/action/service/legendItemSelection.js +21 -0
- package/lib/interaction/action/service/legendItemSelection.js.map +1 -0
- package/lib/interaction/action/service/recordCurrentPoint.d.ts +4 -0
- package/lib/interaction/action/service/recordCurrentPoint.js +20 -0
- package/lib/interaction/action/service/recordCurrentPoint.js.map +1 -0
- package/lib/interaction/action/service/recordPoint.d.ts +4 -0
- package/lib/interaction/action/service/recordPoint.js +32 -0
- package/lib/interaction/action/service/recordPoint.js.map +1 -0
- package/lib/interaction/action/service/recordRegion.d.ts +4 -0
- package/lib/interaction/action/service/recordRegion.js +34 -0
- package/lib/interaction/action/service/recordRegion.js.map +1 -0
- package/lib/interaction/action/service/recordState.d.ts +4 -0
- package/lib/interaction/action/service/recordState.js +14 -0
- package/lib/interaction/action/service/recordState.js.map +1 -0
- package/lib/interaction/action/service/recordTip.d.ts +8 -0
- package/lib/interaction/action/service/recordTip.js +19 -0
- package/lib/interaction/action/service/recordTip.js.map +1 -0
- package/lib/interaction/action/service/surfacePointSelection.d.ts +4 -0
- package/lib/interaction/action/service/surfacePointSelection.js +23 -0
- package/lib/interaction/action/service/surfacePointSelection.js.map +1 -0
- package/lib/interaction/action/service/triggerInfoSelection.d.ts +4 -0
- package/lib/interaction/action/service/triggerInfoSelection.js +22 -0
- package/lib/interaction/action/service/triggerInfoSelection.js.map +1 -0
- package/lib/interaction/action/transformer/activeElement.d.ts +4 -0
- package/lib/interaction/action/transformer/activeElement.js +27 -0
- package/lib/interaction/action/transformer/activeElement.js.map +1 -0
- package/lib/interaction/action/transformer/activeRegion.d.ts +4 -0
- package/lib/interaction/action/transformer/activeRegion.js +56 -0
- package/lib/interaction/action/transformer/activeRegion.js.map +1 -0
- package/lib/interaction/action/transformer/button.d.ts +4 -0
- package/lib/interaction/action/transformer/button.js +80 -0
- package/lib/interaction/action/transformer/button.js.map +1 -0
- package/lib/interaction/action/transformer/cursor.d.ts +4 -0
- package/lib/interaction/action/transformer/cursor.js +19 -0
- package/lib/interaction/action/transformer/cursor.js.map +1 -0
- package/lib/interaction/action/transformer/filter.d.ts +7 -0
- package/lib/interaction/action/transformer/filter.js +43 -0
- package/lib/interaction/action/transformer/filter.js.map +1 -0
- package/lib/interaction/action/transformer/filterElement.d.ts +4 -0
- package/lib/interaction/action/transformer/filterElement.js +45 -0
- package/lib/interaction/action/transformer/filterElement.js.map +1 -0
- package/lib/interaction/action/transformer/highlightElement.d.ts +4 -0
- package/lib/interaction/action/transformer/highlightElement.js +52 -0
- package/lib/interaction/action/transformer/highlightElement.js.map +1 -0
- package/lib/interaction/action/transformer/mask.d.ts +7 -0
- package/lib/interaction/action/transformer/mask.js +110 -0
- package/lib/interaction/action/transformer/mask.js.map +1 -0
- package/lib/interaction/action/transformer/move.d.ts +7 -0
- package/lib/interaction/action/transformer/move.js +74 -0
- package/lib/interaction/action/transformer/move.js.map +1 -0
- package/lib/interaction/action/transformer/plot.d.ts +4 -0
- package/lib/interaction/action/transformer/plot.js +14 -0
- package/lib/interaction/action/transformer/plot.js.map +1 -0
- package/lib/interaction/action/transformer/poptip.d.ts +4 -0
- package/lib/interaction/action/transformer/poptip.js +43 -0
- package/lib/interaction/action/transformer/poptip.js.map +1 -0
- package/lib/interaction/action/transformer/setItemState.d.ts +4 -0
- package/lib/interaction/action/transformer/setItemState.js +35 -0
- package/lib/interaction/action/transformer/setItemState.js.map +1 -0
- package/lib/interaction/action/transformer/tooltip.d.ts +9 -0
- package/lib/interaction/action/transformer/tooltip.js +293 -0
- package/lib/interaction/action/transformer/tooltip.js.map +1 -0
- package/lib/interaction/builtin/activeRegion.d.ts +19 -0
- package/lib/interaction/builtin/activeRegion.js +22 -0
- package/lib/interaction/builtin/activeRegion.js.map +1 -0
- package/lib/interaction/builtin/brush.d.ts +132 -0
- package/lib/interaction/builtin/brush.js +97 -0
- package/lib/interaction/builtin/brush.js.map +1 -0
- package/lib/interaction/builtin/brushHighlight.d.ts +98 -0
- package/lib/interaction/builtin/brushHighlight.js +115 -0
- package/lib/interaction/builtin/brushHighlight.js.map +1 -0
- package/lib/interaction/builtin/brushVisible.d.ts +88 -0
- package/lib/interaction/builtin/brushVisible.js +66 -0
- package/lib/interaction/builtin/brushVisible.js.map +1 -0
- package/lib/interaction/builtin/elementActive.d.ts +22 -0
- package/lib/interaction/builtin/elementActive.js +29 -0
- package/lib/interaction/builtin/elementActive.js.map +1 -0
- package/lib/interaction/builtin/elementHighlight.d.ts +19 -0
- package/lib/interaction/builtin/elementHighlight.js +28 -0
- package/lib/interaction/builtin/elementHighlight.js.map +1 -0
- package/lib/interaction/builtin/elementHighlightByColor.d.ts +23 -0
- package/lib/interaction/builtin/elementHighlightByColor.js +28 -0
- package/lib/interaction/builtin/elementHighlightByColor.js.map +1 -0
- package/lib/interaction/builtin/elementHighlightByX.d.ts +23 -0
- package/lib/interaction/builtin/elementHighlightByX.js +28 -0
- package/lib/interaction/builtin/elementHighlightByX.js.map +1 -0
- package/lib/interaction/builtin/elementListHighlight.d.ts +43 -0
- package/lib/interaction/builtin/elementListHighlight.js +32 -0
- package/lib/interaction/builtin/elementListHighlight.js.map +1 -0
- package/lib/interaction/builtin/elementSelected.d.ts +20 -0
- package/lib/interaction/builtin/elementSelected.js +22 -0
- package/lib/interaction/builtin/elementSelected.js.map +1 -0
- package/lib/interaction/builtin/ellipsisText.d.ts +19 -0
- package/lib/interaction/builtin/ellipsisText.js +21 -0
- package/lib/interaction/builtin/ellipsisText.js.map +1 -0
- package/lib/interaction/builtin/fisheye.d.ts +33 -0
- package/lib/interaction/builtin/fisheye.js +24 -0
- package/lib/interaction/builtin/fisheye.js.map +1 -0
- package/lib/interaction/builtin/legendActive.d.ts +43 -0
- package/lib/interaction/builtin/legendActive.js +34 -0
- package/lib/interaction/builtin/legendActive.js.map +1 -0
- package/lib/interaction/builtin/legendHighlight.d.ts +43 -0
- package/lib/interaction/builtin/legendHighlight.js +34 -0
- package/lib/interaction/builtin/legendHighlight.js.map +1 -0
- package/lib/interaction/builtin/tooltip.d.ts +44 -0
- package/lib/interaction/builtin/tooltip.js +32 -0
- package/lib/interaction/builtin/tooltip.js.map +1 -0
- package/lib/interaction/create.d.ts +3 -0
- package/lib/interaction/create.js +100 -0
- package/lib/interaction/create.js.map +1 -0
- package/lib/interaction/index.d.ts +18 -25
- package/lib/interaction/index.js +50 -51
- package/lib/interaction/index.js.map +1 -1
- package/lib/interaction/interactor/index.d.ts +2 -0
- package/lib/interaction/interactor/index.js +8 -0
- package/lib/interaction/interactor/index.js.map +1 -0
- package/lib/interaction/interactor/mousePosition.d.ts +3 -0
- package/lib/interaction/interactor/mousePosition.js +14 -0
- package/lib/interaction/interactor/mousePosition.js.map +1 -0
- package/lib/interaction/interactor/touchPosition.d.ts +3 -0
- package/lib/interaction/interactor/touchPosition.js +14 -0
- package/lib/interaction/interactor/touchPosition.js.map +1 -0
- package/lib/interaction/stdlib.d.ts +2 -0
- package/lib/interaction/stdlib.js +36 -0
- package/lib/interaction/stdlib.js.map +1 -0
- package/lib/interaction/types.d.ts +57 -0
- package/lib/interaction/types.js +3 -0
- package/lib/interaction/types.js.map +1 -0
- package/lib/interaction/utils.d.ts +3 -0
- package/lib/interaction/utils.js +45 -0
- package/lib/interaction/utils.js.map +1 -0
- package/lib/mark/annotation/connector.d.ts +4 -0
- package/lib/mark/annotation/connector.js +22 -0
- package/lib/mark/annotation/connector.js.map +1 -0
- package/lib/mark/annotation/index.d.ts +7 -0
- package/lib/mark/annotation/index.js +18 -0
- package/lib/mark/annotation/index.js.map +1 -0
- package/lib/mark/annotation/lineX.d.ts +4 -0
- package/lib/mark/annotation/lineX.js +25 -0
- package/lib/mark/annotation/lineX.js.map +1 -0
- package/lib/mark/annotation/lineY.d.ts +4 -0
- package/lib/mark/annotation/lineY.js +25 -0
- package/lib/mark/annotation/lineY.js.map +1 -0
- package/lib/mark/annotation/range.d.ts +8 -0
- package/lib/mark/annotation/range.js +49 -0
- package/lib/mark/annotation/range.js.map +1 -0
- package/lib/mark/annotation/rangeX.d.ts +4 -0
- package/lib/mark/annotation/rangeX.js +18 -0
- package/lib/mark/annotation/rangeX.js.map +1 -0
- package/lib/mark/annotation/rangeY.d.ts +4 -0
- package/lib/mark/annotation/rangeY.js +18 -0
- package/lib/mark/annotation/rangeY.js.map +1 -0
- package/lib/mark/annotation/text.d.ts +4 -0
- package/lib/mark/annotation/text.js +25 -0
- package/lib/mark/annotation/text.js.map +1 -0
- package/lib/mark/geometry/area.d.ts +4 -0
- package/lib/mark/geometry/area.js +74 -0
- package/lib/mark/geometry/area.js.map +1 -0
- package/lib/mark/geometry/edge.d.ts +13 -0
- package/lib/mark/geometry/edge.js +35 -0
- package/lib/mark/geometry/edge.js.map +1 -0
- package/lib/mark/geometry/grid.d.ts +9 -0
- package/lib/mark/geometry/grid.js +50 -0
- package/lib/mark/geometry/grid.js.map +1 -0
- package/lib/mark/geometry/image.d.ts +4 -0
- package/lib/mark/geometry/image.js +38 -0
- package/lib/mark/geometry/image.js.map +1 -0
- package/lib/mark/geometry/index.d.ts +13 -0
- package/lib/mark/geometry/index.js +30 -0
- package/lib/mark/geometry/index.js.map +1 -0
- package/lib/mark/geometry/interval.d.ts +12 -0
- package/lib/mark/geometry/interval.js +63 -0
- package/lib/mark/geometry/interval.js.map +1 -0
- package/lib/mark/geometry/line.d.ts +7 -0
- package/lib/mark/geometry/line.js +80 -0
- package/lib/mark/geometry/line.js.map +1 -0
- package/lib/mark/geometry/link.d.ts +7 -0
- package/lib/mark/geometry/link.js +37 -0
- package/lib/mark/geometry/link.js.map +1 -0
- package/lib/mark/geometry/node.d.ts +8 -0
- package/lib/mark/geometry/node.js +31 -0
- package/lib/mark/geometry/node.js.map +1 -0
- package/lib/mark/geometry/point.d.ts +10 -0
- package/lib/mark/geometry/point.js +75 -0
- package/lib/mark/geometry/point.js.map +1 -0
- package/lib/mark/geometry/polygon.d.ts +7 -0
- package/lib/mark/geometry/polygon.js +47 -0
- package/lib/mark/geometry/polygon.js.map +1 -0
- package/lib/mark/geometry/schema.d.ts +34 -0
- package/lib/mark/geometry/schema.js +94 -0
- package/lib/mark/geometry/schema.js.map +1 -0
- package/lib/mark/geometry/text.d.ts +4 -0
- package/lib/mark/geometry/text.js +39 -0
- package/lib/mark/geometry/text.js.map +1 -0
- package/lib/mark/geometry/vector.d.ts +8 -0
- package/lib/mark/geometry/vector.js +47 -0
- package/lib/mark/geometry/vector.js.map +1 -0
- package/lib/mark/utils.d.ts +10 -0
- package/lib/mark/utils.js +38 -0
- package/lib/mark/utils.js.map +1 -0
- package/lib/palette/category10.d.ts +7 -0
- package/lib/palette/category10.js +23 -0
- package/lib/palette/category10.js.map +1 -0
- package/lib/palette/category20.d.ts +7 -0
- package/lib/palette/category20.js +33 -0
- package/lib/palette/category20.js.map +1 -0
- package/lib/palette/index.d.ts +2 -0
- package/lib/palette/index.js +8 -0
- package/lib/palette/index.js.map +1 -0
- package/lib/renderer/canvas.d.ts +10 -0
- package/lib/renderer/canvas.js +22 -0
- package/lib/renderer/canvas.js.map +1 -0
- package/lib/renderer/index.d.ts +1 -0
- package/lib/renderer/index.js +6 -0
- package/lib/renderer/index.js.map +1 -0
- package/lib/runtime/component.d.ts +5 -0
- package/lib/runtime/component.js +137 -0
- package/lib/runtime/component.js.map +1 -0
- package/lib/runtime/coordinate.d.ts +7 -0
- package/lib/runtime/coordinate.js +41 -0
- package/lib/runtime/coordinate.js.map +1 -0
- package/lib/runtime/index.d.ts +7 -0
- package/lib/runtime/index.js +26 -0
- package/lib/runtime/index.js.map +1 -0
- package/lib/runtime/layout.d.ts +5 -0
- package/lib/runtime/layout.js +120 -0
- package/lib/runtime/layout.js.map +1 -0
- package/lib/runtime/library.d.ts +3 -0
- package/lib/runtime/library.js +30 -0
- package/lib/runtime/library.js.map +1 -0
- package/lib/runtime/mark.d.ts +6 -0
- package/lib/runtime/mark.js +188 -0
- package/lib/runtime/mark.js.map +1 -0
- package/lib/runtime/plot.d.ts +3 -0
- package/lib/runtime/plot.js +558 -0
- package/lib/runtime/plot.js.map +1 -0
- package/lib/runtime/render.d.ts +2 -0
- package/lib/runtime/render.js +82 -0
- package/lib/runtime/render.js.map +1 -0
- package/lib/runtime/scale.d.ts +8 -0
- package/lib/runtime/scale.js +333 -0
- package/lib/runtime/scale.js.map +1 -0
- package/lib/runtime/types/common.d.ts +125 -0
- package/lib/runtime/types/common.js +3 -0
- package/lib/runtime/types/common.js.map +1 -0
- package/lib/runtime/types/component.d.ts +73 -0
- package/lib/runtime/types/component.js +3 -0
- package/lib/runtime/types/component.js.map +1 -0
- package/lib/runtime/types/encode.d.ts +21 -0
- package/lib/runtime/types/encode.js +3 -0
- package/lib/runtime/types/encode.js.map +1 -0
- package/lib/runtime/types/mark.d.ts +20 -0
- package/lib/runtime/types/mark.js +3 -0
- package/lib/runtime/types/mark.js.map +1 -0
- package/lib/runtime/types/options.d.ts +106 -0
- package/lib/runtime/types/options.js +3 -0
- package/lib/runtime/types/options.js.map +1 -0
- package/lib/runtime/types/transform.d.ts +23 -0
- package/lib/runtime/types/transform.js +3 -0
- package/lib/runtime/types/transform.js.map +1 -0
- package/lib/scale/band.d.ts +4 -0
- package/lib/scale/band.js +10 -0
- package/lib/scale/band.js.map +1 -0
- package/lib/scale/identity.d.ts +4 -0
- package/lib/scale/identity.js +10 -0
- package/lib/scale/identity.js.map +1 -0
- package/lib/scale/index.d.ts +11 -0
- package/lib/scale/index.js +26 -0
- package/lib/scale/index.js.map +1 -0
- package/lib/scale/linear.d.ts +4 -0
- package/lib/scale/linear.js +10 -0
- package/lib/scale/linear.js.map +1 -0
- package/lib/scale/log.d.ts +4 -0
- package/lib/scale/log.js +10 -0
- package/lib/scale/log.js.map +1 -0
- package/lib/scale/ordinal.d.ts +4 -0
- package/lib/scale/ordinal.js +10 -0
- package/lib/scale/ordinal.js.map +1 -0
- package/lib/scale/point.d.ts +4 -0
- package/lib/scale/point.js +10 -0
- package/lib/scale/point.js.map +1 -0
- package/lib/scale/pow.d.ts +4 -0
- package/lib/scale/pow.js +10 -0
- package/lib/scale/pow.js.map +1 -0
- package/lib/scale/quantile.d.ts +4 -0
- package/lib/scale/quantile.js +10 -0
- package/lib/scale/quantile.js.map +1 -0
- package/lib/scale/quantize.d.ts +4 -0
- package/lib/scale/quantize.js +10 -0
- package/lib/scale/quantize.js.map +1 -0
- package/lib/scale/threshold.d.ts +4 -0
- package/lib/scale/threshold.js +10 -0
- package/lib/scale/threshold.js.map +1 -0
- package/lib/scale/time.d.ts +4 -0
- package/lib/scale/time.js +10 -0
- package/lib/scale/time.js.map +1 -0
- package/lib/shape/annotation/badge.d.ts +14 -0
- package/lib/shape/annotation/badge.js +97 -0
- package/lib/shape/annotation/badge.js.map +1 -0
- package/lib/shape/annotation/connector.d.ts +15 -0
- package/lib/shape/annotation/connector.js +105 -0
- package/lib/shape/annotation/connector.js.map +1 -0
- package/lib/shape/annotation/line.d.ts +3 -0
- package/lib/shape/annotation/line.js +60 -0
- package/lib/shape/annotation/line.js.map +1 -0
- package/lib/shape/annotation/text.d.ts +20 -0
- package/lib/shape/annotation/text.js +166 -0
- package/lib/shape/annotation/text.js.map +1 -0
- package/lib/shape/area/area.d.ts +3 -0
- package/lib/shape/area/area.js +15 -0
- package/lib/shape/area/area.js.map +1 -0
- package/lib/shape/area/curveArea.d.ts +8 -0
- package/lib/shape/area/curveArea.js +64 -0
- package/lib/shape/area/curveArea.js.map +1 -0
- package/lib/shape/area/smoothArea.d.ts +5 -0
- package/lib/shape/area/smoothArea.js +27 -0
- package/lib/shape/area/smoothArea.js.map +1 -0
- package/lib/shape/edge/arc.d.ts +8 -0
- package/lib/shape/edge/arc.js +55 -0
- package/lib/shape/edge/arc.js.map +1 -0
- package/lib/shape/edge/edge.d.ts +6 -0
- package/lib/shape/edge/edge.js +15 -0
- package/lib/shape/edge/edge.js.map +1 -0
- package/lib/shape/edge/ribbon.d.ts +15 -0
- package/lib/shape/edge/ribbon.js +73 -0
- package/lib/shape/edge/ribbon.js.map +1 -0
- package/lib/shape/edge/smoothEdge.d.ts +6 -0
- package/lib/shape/edge/smoothEdge.js +43 -0
- package/lib/shape/edge/smoothEdge.js.map +1 -0
- package/lib/shape/edge/vhv.d.ts +12 -0
- package/lib/shape/edge/vhv.js +73 -0
- package/lib/shape/edge/vhv.js.map +1 -0
- package/lib/shape/image/image.d.ts +3 -0
- package/lib/shape/image/image.js +42 -0
- package/lib/shape/image/image.js.map +1 -0
- package/lib/shape/index.d.ts +48 -0
- package/lib/shape/index.js +101 -0
- package/lib/shape/index.js.map +1 -0
- package/lib/shape/interval/colorRect.d.ts +14 -0
- package/lib/shape/interval/colorRect.js +84 -0
- package/lib/shape/interval/colorRect.js.map +1 -0
- package/lib/shape/interval/funnel.d.ts +10 -0
- package/lib/shape/interval/funnel.js +47 -0
- package/lib/shape/interval/funnel.js.map +1 -0
- package/lib/shape/interval/hollowRect.d.ts +6 -0
- package/lib/shape/interval/hollowRect.js +13 -0
- package/lib/shape/interval/hollowRect.js.map +1 -0
- package/lib/shape/interval/pyramid.d.ts +6 -0
- package/lib/shape/interval/pyramid.js +42 -0
- package/lib/shape/interval/pyramid.js.map +1 -0
- package/lib/shape/interval/rect.d.ts +7 -0
- package/lib/shape/interval/rect.js +14 -0
- package/lib/shape/interval/rect.js.map +1 -0
- package/lib/shape/label/label.d.ts +7 -0
- package/lib/shape/label/label.js +33 -0
- package/lib/shape/label/label.js.map +1 -0
- package/lib/shape/line/curveLine.d.ts +8 -0
- package/lib/shape/line/curveLine.js +45 -0
- package/lib/shape/line/curveLine.js.map +1 -0
- package/lib/shape/line/hv.d.ts +3 -0
- package/lib/shape/line/hv.js +11 -0
- package/lib/shape/line/hv.js.map +1 -0
- package/lib/shape/line/hvh.d.ts +3 -0
- package/lib/shape/line/hvh.js +11 -0
- package/lib/shape/line/hvh.js.map +1 -0
- package/lib/shape/line/line.d.ts +3 -0
- package/lib/shape/line/line.js +11 -0
- package/lib/shape/line/line.js.map +1 -0
- package/lib/shape/line/smooth.d.ts +5 -0
- package/lib/shape/line/smooth.js +23 -0
- package/lib/shape/line/smooth.js.map +1 -0
- package/lib/shape/line/vh.d.ts +3 -0
- package/lib/shape/line/vh.js +11 -0
- package/lib/shape/line/vh.js.map +1 -0
- package/lib/shape/link/link.d.ts +13 -0
- package/lib/shape/link/link.js +53 -0
- package/lib/shape/link/link.js.map +1 -0
- package/lib/shape/node/point.d.ts +6 -0
- package/lib/shape/node/point.js +31 -0
- package/lib/shape/node/point.js.map +1 -0
- package/lib/shape/node/polygon.d.ts +3 -0
- package/lib/shape/node/polygon.js +12 -0
- package/lib/shape/node/polygon.js.map +1 -0
- package/lib/shape/point/bowtie.d.ts +6 -0
- package/lib/shape/point/bowtie.js +13 -0
- package/lib/shape/point/bowtie.js.map +1 -0
- package/lib/shape/point/colorPoint.d.ts +11 -0
- package/lib/shape/point/colorPoint.js +86 -0
- package/lib/shape/point/colorPoint.js.map +1 -0
- package/lib/shape/point/cross.d.ts +6 -0
- package/lib/shape/point/cross.js +13 -0
- package/lib/shape/point/cross.js.map +1 -0
- package/lib/shape/point/diamond.d.ts +6 -0
- package/lib/shape/point/diamond.js +13 -0
- package/lib/shape/point/diamond.js.map +1 -0
- package/lib/shape/point/hexagon.d.ts +6 -0
- package/lib/shape/point/hexagon.js +13 -0
- package/lib/shape/point/hexagon.js.map +1 -0
- package/lib/shape/point/hollowBowtie.d.ts +6 -0
- package/lib/shape/point/hollowBowtie.js +13 -0
- package/lib/shape/point/hollowBowtie.js.map +1 -0
- package/lib/shape/point/hollowDiamond.d.ts +6 -0
- package/lib/shape/point/hollowDiamond.js +13 -0
- package/lib/shape/point/hollowDiamond.js.map +1 -0
- package/lib/shape/point/hollowHexagon.d.ts +6 -0
- package/lib/shape/point/hollowHexagon.js +13 -0
- package/lib/shape/point/hollowHexagon.js.map +1 -0
- package/lib/shape/point/hollowPoint.d.ts +6 -0
- package/lib/shape/point/hollowPoint.js +13 -0
- package/lib/shape/point/hollowPoint.js.map +1 -0
- package/lib/shape/point/hollowSquare.d.ts +6 -0
- package/lib/shape/point/hollowSquare.js +13 -0
- package/lib/shape/point/hollowSquare.js.map +1 -0
- package/lib/shape/point/hollowTriangle.d.ts +6 -0
- package/lib/shape/point/hollowTriangle.js +13 -0
- package/lib/shape/point/hollowTriangle.js.map +1 -0
- package/lib/shape/point/hollowTriangleDown.d.ts +6 -0
- package/lib/shape/point/hollowTriangleDown.js +13 -0
- package/lib/shape/point/hollowTriangleDown.js.map +1 -0
- package/lib/shape/point/hyphen.d.ts +6 -0
- package/lib/shape/point/hyphen.js +13 -0
- package/lib/shape/point/hyphen.js.map +1 -0
- package/lib/shape/point/line.d.ts +6 -0
- package/lib/shape/point/line.js +13 -0
- package/lib/shape/point/line.js.map +1 -0
- package/lib/shape/point/plus.d.ts +6 -0
- package/lib/shape/point/plus.js +13 -0
- package/lib/shape/point/plus.js.map +1 -0
- package/lib/shape/point/point.d.ts +6 -0
- package/lib/shape/point/point.js +13 -0
- package/lib/shape/point/point.js.map +1 -0
- package/lib/shape/point/square.d.ts +6 -0
- package/lib/shape/point/square.js +13 -0
- package/lib/shape/point/square.js.map +1 -0
- package/lib/shape/point/symbol.d.ts +49 -0
- package/lib/shape/point/symbol.js +157 -0
- package/lib/shape/point/symbol.js.map +1 -0
- package/lib/shape/point/tick.d.ts +6 -0
- package/lib/shape/point/tick.js +13 -0
- package/lib/shape/point/tick.js.map +1 -0
- package/lib/shape/point/triangle.d.ts +6 -0
- package/lib/shape/point/triangle.js +13 -0
- package/lib/shape/point/triangle.js.map +1 -0
- package/lib/shape/point/triangleDown.d.ts +6 -0
- package/lib/shape/point/triangleDown.js +13 -0
- package/lib/shape/point/triangleDown.js.map +1 -0
- package/lib/shape/polygon/polygon.d.ts +3 -0
- package/lib/shape/polygon/polygon.js +71 -0
- package/lib/shape/polygon/polygon.js.map +1 -0
- package/lib/shape/schema/box.d.ts +3 -0
- package/lib/shape/schema/box.js +91 -0
- package/lib/shape/schema/box.js.map +1 -0
- package/lib/shape/text/text.d.ts +6 -0
- package/lib/shape/text/text.js +45 -0
- package/lib/shape/text/text.js.map +1 -0
- package/lib/shape/utils.d.ts +52 -0
- package/lib/shape/utils.js +75 -0
- package/lib/shape/utils.js.map +1 -0
- package/lib/shape/vector/vector.d.ts +13 -0
- package/lib/shape/vector/vector.js +52 -0
- package/lib/shape/vector/vector.js.map +1 -0
- package/lib/spec/action.d.ts +122 -0
- package/lib/spec/action.js +3 -0
- package/lib/spec/action.js.map +1 -0
- package/lib/spec/animate.d.ts +8 -0
- package/lib/spec/animate.js +3 -0
- package/lib/spec/animate.js.map +1 -0
- package/lib/spec/composition.d.ts +124 -0
- package/lib/spec/composition.js +3 -0
- package/lib/spec/composition.js.map +1 -0
- package/lib/spec/coordinate.d.ts +30 -0
- package/lib/spec/coordinate.js +3 -0
- package/lib/spec/coordinate.js.map +1 -0
- package/lib/spec/encode.d.ts +23 -0
- package/lib/spec/encode.js +3 -0
- package/lib/spec/encode.js.map +1 -0
- package/lib/spec/geometry.d.ts +60 -0
- package/lib/spec/geometry.js +3 -0
- package/lib/spec/geometry.js.map +1 -0
- package/lib/spec/index.d.ts +16 -0
- package/lib/spec/index.js +28 -0
- package/lib/spec/index.js.map +1 -0
- package/lib/spec/interaction.d.ts +66 -0
- package/lib/spec/interaction.js +3 -0
- package/lib/spec/interaction.js.map +1 -0
- package/lib/spec/palette.d.ts +13 -0
- package/lib/spec/palette.js +3 -0
- package/lib/spec/palette.js.map +1 -0
- package/lib/spec/scale.d.ts +27 -0
- package/lib/spec/scale.js +3 -0
- package/lib/spec/scale.js.map +1 -0
- package/lib/spec/statistic.d.ts +69 -0
- package/lib/spec/statistic.js +3 -0
- package/lib/spec/statistic.js.map +1 -0
- package/lib/spec/theme.d.ts +12 -0
- package/lib/spec/theme.js +3 -0
- package/lib/spec/theme.js.map +1 -0
- package/lib/spec/title.d.ts +2 -0
- package/lib/spec/title.js +3 -0
- package/lib/spec/title.js.map +1 -0
- package/lib/spec/transform.d.ts +177 -0
- package/lib/spec/transform.js +3 -0
- package/lib/spec/transform.js.map +1 -0
- package/lib/stdlib/index.d.ts +2 -0
- package/lib/stdlib/index.js +189 -0
- package/lib/stdlib/index.js.map +1 -0
- package/lib/theme/index.d.ts +1 -12
- package/lib/theme/index.js +3 -25
- package/lib/theme/index.js.map +1 -1
- package/lib/theme/light.d.ts +7 -0
- package/lib/theme/light.js +34 -0
- package/lib/theme/light.js.map +1 -0
- package/lib/transform/index.d.ts +36 -0
- package/lib/transform/index.js +79 -0
- package/lib/transform/index.js.map +1 -0
- package/lib/transform/inference/maybeArrayField.d.ts +8 -0
- package/lib/transform/inference/maybeArrayField.js +51 -0
- package/lib/transform/inference/maybeArrayField.js.map +1 -0
- package/lib/transform/inference/maybeKey.d.ts +9 -0
- package/lib/transform/inference/maybeKey.js +37 -0
- package/lib/transform/inference/maybeKey.js.map +1 -0
- package/lib/transform/inference/maybeSeries.d.ts +7 -0
- package/lib/transform/inference/maybeSeries.js +27 -0
- package/lib/transform/inference/maybeSeries.js.map +1 -0
- package/lib/transform/inference/maybeSize.d.ts +7 -0
- package/lib/transform/inference/maybeSize.js +18 -0
- package/lib/transform/inference/maybeSize.js.map +1 -0
- package/lib/transform/inference/maybeStackY.d.ts +9 -0
- package/lib/transform/inference/maybeStackY.js +36 -0
- package/lib/transform/inference/maybeStackY.js.map +1 -0
- package/lib/transform/inference/maybeTitleX.d.ts +7 -0
- package/lib/transform/inference/maybeTitleX.js +27 -0
- package/lib/transform/inference/maybeTitleX.js.map +1 -0
- package/lib/transform/inference/maybeTooltip.d.ts +9 -0
- package/lib/transform/inference/maybeTooltip.js +34 -0
- package/lib/transform/inference/maybeTooltip.js.map +1 -0
- package/lib/transform/inference/maybeTooltipPosition.d.ts +7 -0
- package/lib/transform/inference/maybeTooltipPosition.js +16 -0
- package/lib/transform/inference/maybeTooltipPosition.js.map +1 -0
- package/lib/transform/inference/maybeTooltipY.d.ts +7 -0
- package/lib/transform/inference/maybeTooltipY.js +16 -0
- package/lib/transform/inference/maybeTooltipY.js.map +1 -0
- package/lib/transform/inference/maybeZeroX.d.ts +7 -0
- package/lib/transform/inference/maybeZeroX.js +18 -0
- package/lib/transform/inference/maybeZeroX.js.map +1 -0
- package/lib/transform/inference/maybeZeroY.d.ts +7 -0
- package/lib/transform/inference/maybeZeroY.js +18 -0
- package/lib/transform/inference/maybeZeroY.js.map +1 -0
- package/lib/transform/inference/maybeZeroY1.d.ts +7 -0
- package/lib/transform/inference/maybeZeroY1.js +18 -0
- package/lib/transform/inference/maybeZeroY1.js.map +1 -0
- package/lib/transform/preprocessor/arc.d.ts +7 -0
- package/lib/transform/preprocessor/arc.js +20 -0
- package/lib/transform/preprocessor/arc.js.map +1 -0
- package/lib/transform/preprocessor/cluster.d.ts +5 -0
- package/lib/transform/preprocessor/cluster.js +44 -0
- package/lib/transform/preprocessor/cluster.js.map +1 -0
- package/lib/transform/preprocessor/connector.d.ts +7 -0
- package/lib/transform/preprocessor/connector.js +20 -0
- package/lib/transform/preprocessor/connector.js.map +1 -0
- package/lib/transform/preprocessor/fetch.d.ts +8 -0
- package/lib/transform/preprocessor/fetch.js +40 -0
- package/lib/transform/preprocessor/fetch.js.map +1 -0
- package/lib/transform/preprocessor/filterBy.d.ts +8 -0
- package/lib/transform/preprocessor/filterBy.js +22 -0
- package/lib/transform/preprocessor/filterBy.js.map +1 -0
- package/lib/transform/preprocessor/fold.d.ts +8 -0
- package/lib/transform/preprocessor/fold.js +32 -0
- package/lib/transform/preprocessor/fold.js.map +1 -0
- package/lib/transform/preprocessor/pick.d.ts +7 -0
- package/lib/transform/preprocessor/pick.js +16 -0
- package/lib/transform/preprocessor/pick.js.map +1 -0
- package/lib/transform/preprocessor/rename.d.ts +8 -0
- package/lib/transform/preprocessor/rename.js +25 -0
- package/lib/transform/preprocessor/rename.js.map +1 -0
- package/lib/transform/preprocessor/sankey.d.ts +8 -0
- package/lib/transform/preprocessor/sankey.js +84 -0
- package/lib/transform/preprocessor/sankey.js.map +1 -0
- package/lib/transform/preprocessor/sortBy.d.ts +7 -0
- package/lib/transform/preprocessor/sortBy.js +23 -0
- package/lib/transform/preprocessor/sortBy.js.map +1 -0
- package/lib/transform/preprocessor/subset.d.ts +7 -0
- package/lib/transform/preprocessor/subset.js +35 -0
- package/lib/transform/preprocessor/subset.js.map +1 -0
- package/lib/transform/preprocessor/tree.d.ts +4 -0
- package/lib/transform/preprocessor/tree.js +10 -0
- package/lib/transform/preprocessor/tree.js.map +1 -0
- package/lib/transform/preprocessor/voronoi.d.ts +4 -0
- package/lib/transform/preprocessor/voronoi.js +24 -0
- package/lib/transform/preprocessor/voronoi.js.map +1 -0
- package/lib/transform/preprocessor/wordCloud.d.ts +6 -0
- package/lib/transform/preprocessor/wordCloud.js +112 -0
- package/lib/transform/preprocessor/wordCloud.js.map +1 -0
- package/lib/transform/statistic/Select.d.ts +9 -0
- package/lib/transform/statistic/Select.js +62 -0
- package/lib/transform/statistic/Select.js.map +1 -0
- package/lib/transform/statistic/SelectX.d.ts +7 -0
- package/lib/transform/statistic/SelectX.js +27 -0
- package/lib/transform/statistic/SelectX.js.map +1 -0
- package/lib/transform/statistic/SelectY.d.ts +7 -0
- package/lib/transform/statistic/SelectY.js +27 -0
- package/lib/transform/statistic/SelectY.js.map +1 -0
- package/lib/transform/statistic/dodgeX.d.ts +9 -0
- package/lib/transform/statistic/dodgeX.js +60 -0
- package/lib/transform/statistic/dodgeX.js.map +1 -0
- package/lib/transform/statistic/groupX.d.ts +8 -0
- package/lib/transform/statistic/groupX.js +89 -0
- package/lib/transform/statistic/groupX.js.map +1 -0
- package/lib/transform/statistic/jitter.d.ts +9 -0
- package/lib/transform/statistic/jitter.js +45 -0
- package/lib/transform/statistic/jitter.js.map +1 -0
- package/lib/transform/statistic/jitterY.d.ts +8 -0
- package/lib/transform/statistic/jitterY.js +31 -0
- package/lib/transform/statistic/jitterY.js.map +1 -0
- package/lib/transform/statistic/normalizeY.d.ts +9 -0
- package/lib/transform/statistic/normalizeY.js +74 -0
- package/lib/transform/statistic/normalizeY.js.map +1 -0
- package/lib/transform/statistic/stackEnter.d.ts +13 -0
- package/lib/transform/statistic/stackEnter.js +63 -0
- package/lib/transform/statistic/stackEnter.js.map +1 -0
- package/lib/transform/statistic/stackY.d.ts +9 -0
- package/lib/transform/statistic/stackY.js +59 -0
- package/lib/transform/statistic/stackY.js.map +1 -0
- package/lib/transform/statistic/symmetryY.d.ts +8 -0
- package/lib/transform/statistic/symmetryY.js +65 -0
- package/lib/transform/statistic/symmetryY.js.map +1 -0
- package/lib/transform/statistic/utils.d.ts +9 -0
- package/lib/transform/statistic/utils.js +77 -0
- package/lib/transform/statistic/utils.js.map +1 -0
- package/lib/transform/utils/arc/arc.d.ts +8 -0
- package/lib/transform/utils/arc/arc.js +188 -0
- package/lib/transform/utils/arc/arc.js.map +1 -0
- package/lib/transform/utils/arc/index.d.ts +2 -0
- package/lib/transform/utils/arc/index.js +6 -0
- package/lib/transform/utils/arc/index.js.map +1 -0
- package/lib/transform/utils/arc/sort.d.ts +4 -0
- package/lib/transform/utils/arc/sort.js +20 -0
- package/lib/transform/utils/arc/sort.js.map +1 -0
- package/lib/transform/utils/arc/types.d.ts +26 -0
- package/lib/transform/utils/arc/types.js +3 -0
- package/lib/transform/utils/arc/types.js.map +1 -0
- package/lib/transform/utils/d3-cloud/index.d.ts +1 -0
- package/lib/transform/utils/d3-cloud/index.js +399 -0
- package/lib/transform/utils/d3-cloud/index.js.map +1 -0
- package/lib/transform/utils/d3-sankey/align.d.ts +4 -0
- package/lib/transform/utils/d3-sankey/align.js +28 -0
- package/lib/transform/utils/d3-sankey/align.js.map +1 -0
- package/lib/transform/utils/d3-sankey/constant.d.ts +1 -0
- package/lib/transform/utils/d3-sankey/constant.js +10 -0
- package/lib/transform/utils/d3-sankey/constant.js.map +1 -0
- package/lib/transform/utils/d3-sankey/index.d.ts +12 -0
- package/lib/transform/utils/d3-sankey/index.js +20 -0
- package/lib/transform/utils/d3-sankey/index.js.map +1 -0
- package/lib/transform/utils/d3-sankey/sankey.d.ts +24 -0
- package/lib/transform/utils/d3-sankey/sankey.js +392 -0
- package/lib/transform/utils/d3-sankey/sankey.js.map +1 -0
- package/lib/transform/utils/flow.d.ts +9 -0
- package/lib/transform/utils/flow.js +49 -0
- package/lib/transform/utils/flow.js.map +1 -0
- package/lib/transform/utils/helper.d.ts +14 -0
- package/lib/transform/utils/helper.js +48 -0
- package/lib/transform/utils/helper.js.map +1 -0
- package/lib/transform/utils/memo.d.ts +17 -0
- package/lib/transform/utils/memo.js +85 -0
- package/lib/transform/utils/memo.js.map +1 -0
- package/lib/utils/array.d.ts +14 -0
- package/lib/utils/array.js +52 -0
- package/lib/utils/array.js.map +1 -0
- package/lib/utils/container.d.ts +8 -0
- package/lib/utils/container.js +19 -0
- package/lib/utils/container.js.map +1 -0
- package/lib/utils/coordinate.d.ts +5 -0
- package/lib/utils/coordinate.js +27 -0
- package/lib/utils/coordinate.js.map +1 -0
- package/lib/utils/helper.d.ts +17 -0
- package/lib/utils/helper.js +76 -0
- package/lib/utils/helper.js.map +1 -0
- package/lib/utils/selection.d.ts +64 -0
- package/lib/utils/selection.js +290 -0
- package/lib/utils/selection.js.map +1 -0
- package/lib/utils/vector.d.ts +13 -0
- package/lib/utils/vector.js +51 -0
- package/lib/utils/vector.js.map +1 -0
- package/package.json +85 -120
- package/src/adjust/index.ts +1 -0
- package/src/adjust/pack.ts +67 -0
- package/src/animation/fadeIn.ts +30 -0
- package/src/animation/fadeOut.ts +26 -0
- package/src/animation/index.ts +7 -0
- package/src/animation/morphing.ts +212 -0
- package/src/animation/scaleInX.ts +60 -0
- package/src/animation/scaleInY.ts +60 -0
- package/src/animation/scaleOutX.ts +60 -0
- package/src/animation/scaleOutY.ts +60 -0
- package/src/animation/utils.ts +26 -0
- package/src/api/chart.ts +124 -0
- package/src/api/composition/circle.ts +43 -0
- package/src/api/composition/flex.ts +30 -0
- package/src/api/composition/index.ts +39 -0
- package/src/api/composition/keyframe.ts +30 -0
- package/src/api/composition/layer.ts +24 -0
- package/src/api/composition/matrix.ts +43 -0
- package/src/api/composition/rect.ts +47 -0
- package/src/api/composition/view.ts +42 -0
- package/src/api/index.ts +1 -0
- package/src/api/mark/index.ts +62 -0
- package/src/api/mark/mark.ts +249 -0
- package/src/api/mark/types.ts +22 -0
- package/src/api/node.ts +79 -0
- package/src/api/props.ts +86 -0
- package/src/api/types.ts +20 -0
- package/src/component/axis.ts +391 -0
- package/src/component/axisX.ts +16 -0
- package/src/component/axisY.ts +16 -0
- package/src/component/index.ts +5 -0
- package/src/component/legendCategory.ts +99 -0
- package/src/component/legendContinuous.ts +54 -0
- package/src/component/title.ts +76 -0
- package/src/component/utils.ts +38 -0
- package/src/composition/circle.ts +102 -0
- package/src/composition/flex.ts +47 -0
- package/src/composition/index.ts +8 -0
- package/src/composition/keyframe.ts +90 -0
- package/src/composition/layer.ts +25 -0
- package/src/composition/mark.ts +52 -0
- package/src/composition/matrix.ts +170 -0
- package/src/composition/rect.ts +340 -0
- package/src/composition/utils.ts +17 -0
- package/src/composition/view.ts +27 -0
- package/src/coordinate/cartesian.ts +11 -0
- package/src/coordinate/fisheye.ts +16 -0
- package/src/coordinate/index.ts +5 -0
- package/src/coordinate/parallel.ts +11 -0
- package/src/coordinate/polar.ts +22 -0
- package/src/coordinate/transpose.ts +16 -0
- package/src/encode/column.ts +13 -0
- package/src/encode/constant.ts +13 -0
- package/src/encode/field.ts +13 -0
- package/src/encode/index.ts +4 -0
- package/src/encode/transform.ts +15 -0
- package/src/index.ts +4 -738
- package/src/interaction/action/index.ts +47 -2
- package/src/interaction/action/service/elementSelection.ts +125 -0
- package/src/interaction/action/service/fisheyeFocus.ts +62 -0
- package/src/interaction/action/service/legendItemSelection.ts +34 -0
- package/src/interaction/action/service/recordCurrentPoint.ts +22 -0
- package/src/interaction/action/service/recordPoint.ts +35 -0
- package/src/interaction/action/service/recordRegion.ts +41 -0
- package/src/interaction/action/service/recordState.ts +15 -0
- package/src/interaction/action/service/recordTip.ts +20 -0
- package/src/interaction/action/service/surfacePointSelection.ts +28 -0
- package/src/interaction/action/service/triggerInfoSelection.ts +33 -0
- package/src/interaction/action/transformer/activeElement.ts +32 -0
- package/src/interaction/action/transformer/activeRegion.ts +73 -0
- package/src/interaction/action/transformer/button.ts +113 -0
- package/src/interaction/action/transformer/cursor.ts +21 -0
- package/src/interaction/action/transformer/filter.ts +53 -0
- package/src/interaction/action/transformer/filterElement.ts +54 -0
- package/src/interaction/action/transformer/highlightElement.ts +61 -0
- package/src/interaction/action/transformer/mask.ts +115 -0
- package/src/interaction/action/transformer/move.ts +76 -0
- package/src/interaction/action/transformer/plot.ts +15 -0
- package/src/interaction/action/transformer/poptip.ts +51 -0
- package/src/interaction/action/transformer/setItemState.ts +39 -0
- package/src/interaction/action/transformer/tooltip.ts +404 -0
- package/src/interaction/builtin/activeRegion.ts +25 -0
- package/src/interaction/builtin/brush.ts +99 -0
- package/src/interaction/builtin/brushHighlight.ts +122 -0
- package/src/interaction/builtin/brushVisible.ts +69 -0
- package/src/interaction/builtin/elementActive.ts +32 -0
- package/src/interaction/builtin/elementHighlight.ts +31 -0
- package/src/interaction/builtin/elementHighlightByColor.ts +35 -0
- package/src/interaction/builtin/elementHighlightByX.ts +35 -0
- package/src/interaction/builtin/elementListHighlight.ts +39 -0
- package/src/interaction/builtin/elementSelected.ts +25 -0
- package/src/interaction/builtin/ellipsisText.ts +24 -0
- package/src/interaction/builtin/fisheye.ts +25 -0
- package/src/interaction/builtin/legendActive.ts +37 -0
- package/src/interaction/builtin/legendHighlight.ts +37 -0
- package/src/interaction/builtin/tooltip.ts +33 -0
- package/src/interaction/create.ts +153 -0
- package/src/interaction/index.ts +18 -48
- package/src/interaction/interactor/index.ts +2 -0
- package/src/interaction/interactor/mousePosition.ts +13 -0
- package/src/interaction/interactor/touchPosition.ts +13 -0
- package/src/interaction/stdlib.ts +57 -0
- package/src/interaction/types.ts +80 -0
- package/src/interaction/utils.ts +65 -0
- package/src/mark/annotation/connector.ts +27 -0
- package/src/mark/annotation/index.ts +25 -0
- package/src/mark/annotation/lineX.ts +31 -0
- package/src/mark/annotation/lineY.ts +31 -0
- package/src/mark/annotation/range.ts +55 -0
- package/src/mark/annotation/rangeX.ts +23 -0
- package/src/mark/annotation/rangeY.ts +23 -0
- package/src/mark/annotation/text.ts +30 -0
- package/src/mark/geometry/area.ts +85 -0
- package/src/mark/geometry/edge.ts +40 -0
- package/src/mark/geometry/grid.ts +56 -0
- package/src/mark/geometry/image.ts +41 -0
- package/src/mark/geometry/index.ts +13 -0
- package/src/mark/geometry/interval.ts +71 -0
- package/src/mark/geometry/line.ts +94 -0
- package/src/mark/geometry/link.ts +44 -0
- package/src/mark/geometry/node.ts +36 -0
- package/src/mark/geometry/point.ts +80 -0
- package/src/mark/geometry/polygon.ts +54 -0
- package/src/mark/geometry/schema.ts +105 -0
- package/src/mark/geometry/text.ts +43 -0
- package/src/mark/geometry/vector.ts +56 -0
- package/src/mark/utils.ts +35 -0
- package/src/palette/category10.ts +24 -0
- package/src/palette/category20.ts +34 -0
- package/src/palette/index.ts +2 -0
- package/src/renderer/canvas.ts +27 -0
- package/src/renderer/index.ts +1 -0
- package/src/runtime/component.ts +189 -0
- package/src/runtime/coordinate.ts +51 -0
- package/src/runtime/index.ts +7 -0
- package/src/runtime/layout.ts +180 -0
- package/src/runtime/library.ts +27 -0
- package/src/runtime/mark.ts +262 -0
- package/src/runtime/plot.ts +832 -0
- package/src/runtime/render.ts +81 -0
- package/src/runtime/scale.ts +443 -0
- package/src/runtime/types/common.ts +155 -0
- package/src/runtime/types/component.ts +213 -0
- package/src/runtime/types/encode.ts +32 -0
- package/src/runtime/types/mark.ts +31 -0
- package/src/runtime/types/options.ts +159 -0
- package/src/runtime/types/transform.ts +34 -0
- package/src/scale/band.ts +11 -0
- package/src/scale/identity.ts +11 -0
- package/src/scale/index.ts +11 -0
- package/src/scale/linear.ts +11 -0
- package/src/scale/log.ts +11 -0
- package/src/scale/ordinal.ts +11 -0
- package/src/scale/point.ts +12 -0
- package/src/scale/pow.ts +11 -0
- package/src/scale/quantile.ts +11 -0
- package/src/scale/quantize.ts +11 -0
- package/src/scale/threshold.ts +11 -0
- package/src/scale/time.ts +11 -0
- package/src/shape/annotation/badge.ts +114 -0
- package/src/shape/annotation/connector.ts +138 -0
- package/src/shape/annotation/line.ts +55 -0
- package/src/shape/annotation/text.ts +224 -0
- package/src/shape/area/area.ts +17 -0
- package/src/shape/area/curveArea.ts +61 -0
- package/src/shape/area/smoothArea.ts +25 -0
- package/src/shape/edge/arc.ts +46 -0
- package/src/shape/edge/edge.ts +15 -0
- package/src/shape/edge/ribbon.ts +93 -0
- package/src/shape/edge/smoothEdge.ts +41 -0
- package/src/shape/edge/vhv.ts +85 -0
- package/src/shape/image/image.ts +33 -0
- package/src/shape/index.ts +66 -0
- package/src/shape/interval/colorRect.ts +81 -0
- package/src/shape/interval/funnel.ts +58 -0
- package/src/shape/interval/hollowRect.ts +15 -0
- package/src/shape/interval/pyramid.ts +50 -0
- package/src/shape/interval/rect.ts +16 -0
- package/src/shape/label/label.ts +33 -0
- package/src/shape/line/curveLine.ts +44 -0
- package/src/shape/line/hv.ts +13 -0
- package/src/shape/line/hvh.ts +13 -0
- package/src/shape/line/line.ts +13 -0
- package/src/shape/line/smooth.ts +16 -0
- package/src/shape/line/vh.ts +13 -0
- package/src/shape/link/link.ts +51 -0
- package/src/shape/node/point.ts +32 -0
- package/src/shape/node/polygon.ts +12 -0
- package/src/shape/point/bowtie.ts +15 -0
- package/src/shape/point/colorPoint.ts +65 -0
- package/src/shape/point/cross.ts +15 -0
- package/src/shape/point/diamond.ts +15 -0
- package/src/shape/point/hexagon.ts +15 -0
- package/src/shape/point/hollowBowtie.ts +15 -0
- package/src/shape/point/hollowDiamond.ts +19 -0
- package/src/shape/point/hollowHexagon.ts +19 -0
- package/src/shape/point/hollowPoint.ts +15 -0
- package/src/shape/point/hollowSquare.ts +15 -0
- package/src/shape/point/hollowTriangle.ts +19 -0
- package/src/shape/point/hollowTriangleDown.ts +19 -0
- package/src/shape/point/hyphen.ts +15 -0
- package/src/shape/point/line.ts +15 -0
- package/src/shape/point/plus.ts +15 -0
- package/src/shape/point/point.ts +15 -0
- package/src/shape/point/square.ts +15 -0
- package/src/shape/point/symbol.ts +153 -0
- package/src/shape/point/tick.ts +15 -0
- package/src/shape/point/triangle.ts +15 -0
- package/src/shape/point/triangleDown.ts +19 -0
- package/src/shape/polygon/polygon.ts +67 -0
- package/src/shape/schema/box.ts +96 -0
- package/src/shape/text/text.ts +43 -0
- package/src/shape/utils.ts +129 -0
- package/src/shape/vector/vector.ts +51 -0
- package/src/spec/action.ts +196 -0
- package/src/spec/animate.ts +16 -0
- package/src/spec/composition.ts +142 -0
- package/src/spec/coordinate.ts +49 -0
- package/src/spec/encode.ts +46 -0
- package/src/spec/geometry.ts +167 -0
- package/src/spec/index.ts +18 -0
- package/src/spec/interaction.ts +115 -0
- package/src/spec/palette.ts +18 -0
- package/src/spec/scale.ts +78 -0
- package/src/spec/statistic.ts +135 -0
- package/src/spec/theme.ts +20 -0
- package/src/spec/title.ts +3 -0
- package/src/spec/transform.ts +223 -0
- package/src/stdlib/index.ts +345 -0
- package/src/theme/index.ts +1 -28
- package/src/theme/light.ts +34 -0
- package/src/transform/index.ts +47 -0
- package/src/transform/inference/maybeArrayField.ts +55 -0
- package/src/transform/inference/maybeKey.ts +29 -0
- package/src/transform/inference/maybeSeries.ts +26 -0
- package/src/transform/inference/maybeSize.ts +18 -0
- package/src/transform/inference/maybeStackY.ts +38 -0
- package/src/transform/inference/maybeTitleX.ts +26 -0
- package/src/transform/inference/maybeTooltip.ts +35 -0
- package/src/transform/inference/maybeTooltipPosition.ts +16 -0
- package/src/transform/inference/maybeTooltipY.ts +16 -0
- package/src/transform/inference/maybeZeroX.ts +18 -0
- package/src/transform/inference/maybeZeroY.ts +18 -0
- package/src/transform/inference/maybeZeroY1.ts +18 -0
- package/src/transform/preprocessor/arc.ts +21 -0
- package/src/transform/preprocessor/cluster.ts +56 -0
- package/src/transform/preprocessor/connector.ts +22 -0
- package/src/transform/preprocessor/fetch.ts +32 -0
- package/src/transform/preprocessor/filterBy.ts +24 -0
- package/src/transform/preprocessor/fold.ts +32 -0
- package/src/transform/preprocessor/pick.ts +17 -0
- package/src/transform/preprocessor/rename.ts +29 -0
- package/src/transform/preprocessor/sankey.ts +105 -0
- package/src/transform/preprocessor/sortBy.ts +28 -0
- package/src/transform/preprocessor/subset.ts +40 -0
- package/src/transform/preprocessor/tree.ts +12 -0
- package/src/transform/preprocessor/voronoi.ts +30 -0
- package/src/transform/preprocessor/wordCloud.ts +115 -0
- package/src/transform/statistic/dodgeX.ts +56 -0
- package/src/transform/statistic/groupX.ts +91 -0
- package/src/transform/statistic/jitter.ts +49 -0
- package/src/transform/statistic/jitterY.ts +32 -0
- package/src/transform/statistic/normalizeY.ts +69 -0
- package/src/transform/statistic/select.ts +58 -0
- package/src/transform/statistic/selectX.ts +17 -0
- package/src/transform/statistic/selectY.ts +17 -0
- package/src/transform/statistic/stackEnter.ts +65 -0
- package/src/transform/statistic/stackY.ts +58 -0
- package/src/transform/statistic/symmetryY.ts +59 -0
- package/src/transform/statistic/utils.ts +120 -0
- package/src/transform/utils/arc/arc.ts +210 -0
- package/src/transform/utils/arc/index.ts +2 -0
- package/src/transform/utils/arc/sort.ts +15 -0
- package/src/transform/utils/arc/types.ts +27 -0
- package/src/transform/utils/d3-cloud/index.ts +499 -0
- package/src/transform/utils/d3-sankey/align.ts +25 -0
- package/src/transform/utils/d3-sankey/constant.ts +5 -0
- package/src/transform/utils/d3-sankey/index.ts +12 -0
- package/src/transform/utils/d3-sankey/sankey.ts +436 -0
- package/src/transform/utils/flow.ts +36 -0
- package/src/transform/utils/helper.ts +54 -0
- package/src/transform/utils/memo.ts +79 -0
- package/src/utils/array.ts +50 -0
- package/src/utils/container.ts +21 -0
- package/src/utils/coordinate.ts +24 -0
- package/src/utils/helper.ts +69 -0
- package/src/utils/selection.ts +403 -0
- package/src/utils/vector.ts +47 -0
- package/dist/g2.min.js.map +0 -1
- package/esm/animate/animation/fade.d.ts +0 -21
- package/esm/animate/animation/fade.js +0 -42
- package/esm/animate/animation/fade.js.map +0 -1
- package/esm/animate/animation/grow-in.d.ts +0 -30
- package/esm/animate/animation/grow-in.js +0 -38
- package/esm/animate/animation/grow-in.js.map +0 -1
- package/esm/animate/animation/index.d.ts +0 -16
- package/esm/animate/animation/index.js +0 -17
- package/esm/animate/animation/index.js.map +0 -1
- package/esm/animate/animation/path-in.d.ts +0 -12
- package/esm/animate/animation/path-in.js +0 -21
- package/esm/animate/animation/path-in.js.map +0 -1
- package/esm/animate/animation/position-update.d.ts +0 -11
- package/esm/animate/animation/position-update.js +0 -24
- package/esm/animate/animation/position-update.js.map +0 -1
- package/esm/animate/animation/scale-in.d.ts +0 -19
- package/esm/animate/animation/scale-in.js +0 -60
- package/esm/animate/animation/scale-in.js.map +0 -1
- package/esm/animate/animation/sector-path-update.d.ts +0 -27
- package/esm/animate/animation/sector-path-update.js +0 -132
- package/esm/animate/animation/sector-path-update.js.map +0 -1
- package/esm/animate/animation/util.d.ts +0 -19
- package/esm/animate/animation/util.js +0 -89
- package/esm/animate/animation/util.js.map +0 -1
- package/esm/animate/animation/wave-in.d.ts +0 -13
- package/esm/animate/animation/wave-in.js +0 -30
- package/esm/animate/animation/wave-in.js.map +0 -1
- package/esm/animate/animation/zoom.d.ts +0 -21
- package/esm/animate/animation/zoom.js +0 -66
- package/esm/animate/animation/zoom.js.map +0 -1
- package/esm/animate/index.d.ts +0 -48
- package/esm/animate/index.js +0 -249
- package/esm/animate/index.js.map +0 -1
- package/esm/animate/interface.d.ts +0 -18
- package/esm/animate/interface.js +0 -2
- package/esm/animate/interface.js.map +0 -1
- package/esm/api.d.ts +0 -2
- package/esm/api.js +0 -3
- package/esm/api.js.map +0 -1
- package/esm/base.d.ts +0 -33
- package/esm/base.js +0 -55
- package/esm/base.js.map +0 -1
- package/esm/chart/chart.d.ts +0 -61
- package/esm/chart/chart.js +0 -157
- package/esm/chart/chart.js.map +0 -1
- package/esm/chart/controller/annotation.d.ts +0 -162
- package/esm/chart/controller/annotation.js +0 -592
- package/esm/chart/controller/annotation.js.map +0 -1
- package/esm/chart/controller/axis.d.ts +0 -93
- package/esm/chart/controller/axis.js +0 -578
- package/esm/chart/controller/axis.js.map +0 -1
- package/esm/chart/controller/base.d.ts +0 -64
- package/esm/chart/controller/base.js +0 -62
- package/esm/chart/controller/base.js.map +0 -1
- package/esm/chart/controller/coordinate.d.ts +0 -74
- package/esm/chart/controller/coordinate.js +0 -145
- package/esm/chart/controller/coordinate.js.map +0 -1
- package/esm/chart/controller/gesture.d.ts +0 -37
- package/esm/chart/controller/gesture.js +0 -258
- package/esm/chart/controller/gesture.js.map +0 -1
- package/esm/chart/controller/index.d.ts +0 -25
- package/esm/chart/controller/index.js +0 -34
- package/esm/chart/controller/index.js.map +0 -1
- package/esm/chart/controller/legend.d.ts +0 -106
- package/esm/chart/controller/legend.js +0 -484
- package/esm/chart/controller/legend.js.map +0 -1
- package/esm/chart/controller/scrollbar.d.ts +0 -64
- package/esm/chart/controller/scrollbar.js +0 -316
- package/esm/chart/controller/scrollbar.js.map +0 -1
- package/esm/chart/controller/slider.d.ts +0 -88
- package/esm/chart/controller/slider.js +0 -296
- package/esm/chart/controller/slider.js.map +0 -1
- package/esm/chart/controller/tooltip.d.ts +0 -68
- package/esm/chart/controller/tooltip.js +0 -696
- package/esm/chart/controller/tooltip.js.map +0 -1
- package/esm/chart/event.d.ts +0 -47
- package/esm/chart/event.js +0 -91
- package/esm/chart/event.js.map +0 -1
- package/esm/chart/index.d.ts +0 -4
- package/esm/chart/index.js +0 -5
- package/esm/chart/index.js.map +0 -1
- package/esm/chart/layout/auto.d.ts +0 -8
- package/esm/chart/layout/auto.js +0 -64
- package/esm/chart/layout/auto.js.map +0 -1
- package/esm/chart/layout/constraint/bounds.d.ts +0 -32
- package/esm/chart/layout/constraint/bounds.js +0 -30
- package/esm/chart/layout/constraint/bounds.js.map +0 -1
- package/esm/chart/layout/constraint/constraint.d.ts +0 -31
- package/esm/chart/layout/constraint/constraint.js +0 -82
- package/esm/chart/layout/constraint/constraint.js.map +0 -1
- package/esm/chart/layout/constraint/gauss.d.ts +0 -11
- package/esm/chart/layout/constraint/gauss.js +0 -63
- package/esm/chart/layout/constraint/gauss.js.map +0 -1
- package/esm/chart/layout/constraint/index.d.ts +0 -5
- package/esm/chart/layout/constraint/index.js +0 -30
- package/esm/chart/layout/constraint/index.js.map +0 -1
- package/esm/chart/layout/constraint/solver.d.ts +0 -40
- package/esm/chart/layout/constraint/solver.js +0 -78
- package/esm/chart/layout/constraint/solver.js.map +0 -1
- package/esm/chart/layout/constraint/types.d.ts +0 -21
- package/esm/chart/layout/constraint/types.js +0 -13
- package/esm/chart/layout/constraint/types.js.map +0 -1
- package/esm/chart/layout/constraint/variable.d.ts +0 -24
- package/esm/chart/layout/constraint/variable.js +0 -28
- package/esm/chart/layout/constraint/variable.js.map +0 -1
- package/esm/chart/layout/index.d.ts +0 -15
- package/esm/chart/layout/index.js +0 -26
- package/esm/chart/layout/index.js.map +0 -1
- package/esm/chart/layout/padding-cal.d.ts +0 -53
- package/esm/chart/layout/padding-cal.js +0 -108
- package/esm/chart/layout/padding-cal.js.map +0 -1
- package/esm/chart/util/scale-pool.d.ts +0 -57
- package/esm/chart/util/scale-pool.js +0 -212
- package/esm/chart/util/scale-pool.js.map +0 -1
- package/esm/chart/util/sync-view-padding.d.ts +0 -9
- package/esm/chart/util/sync-view-padding.js +0 -14
- package/esm/chart/util/sync-view-padding.js.map +0 -1
- package/esm/chart/view.d.ts +0 -747
- package/esm/chart/view.js +0 -1636
- package/esm/chart/view.js.map +0 -1
- package/esm/component/labels.d.ts +0 -46
- package/esm/component/labels.js +0 -306
- package/esm/component/labels.js.map +0 -1
- package/esm/component/update-label.d.ts +0 -21
- package/esm/component/update-label.js +0 -57
- package/esm/component/update-label.js.map +0 -1
- package/esm/constant.d.ts +0 -124
- package/esm/constant.js +0 -136
- package/esm/constant.js.map +0 -1
- package/esm/core.d.ts +0 -46
- package/esm/core.js +0 -60
- package/esm/core.js.map +0 -1
- package/esm/dependents.d.ts +0 -21
- package/esm/dependents.js +0 -33
- package/esm/dependents.js.map +0 -1
- package/esm/engine/index.d.ts +0 -13
- package/esm/engine/index.js +0 -22
- package/esm/engine/index.js.map +0 -1
- package/esm/facet/circle.d.ts +0 -36
- package/esm/facet/circle.js +0 -119
- package/esm/facet/circle.js.map +0 -1
- package/esm/facet/facet.d.ts +0 -165
- package/esm/facet/facet.js +0 -292
- package/esm/facet/facet.js.map +0 -1
- package/esm/facet/index.d.ts +0 -13
- package/esm/facet/index.js +0 -22
- package/esm/facet/index.js.map +0 -1
- package/esm/facet/list.d.ts +0 -46
- package/esm/facet/list.js +0 -134
- package/esm/facet/list.js.map +0 -1
- package/esm/facet/matrix.d.ts +0 -34
- package/esm/facet/matrix.js +0 -119
- package/esm/facet/matrix.js.map +0 -1
- package/esm/facet/mirror.d.ts +0 -31
- package/esm/facet/mirror.js +0 -144
- package/esm/facet/mirror.js.map +0 -1
- package/esm/facet/rect.d.ts +0 -35
- package/esm/facet/rect.js +0 -141
- package/esm/facet/rect.js.map +0 -1
- package/esm/facet/tree.d.ts +0 -40
- package/esm/facet/tree.js +0 -298
- package/esm/facet/tree.js.map +0 -1
- package/esm/geometry/area.d.ts +0 -46
- package/esm/geometry/area.js +0 -62
- package/esm/geometry/area.js.map +0 -1
- package/esm/geometry/base.d.ts +0 -796
- package/esm/geometry/base.js +0 -1556
- package/esm/geometry/base.js.map +0 -1
- package/esm/geometry/edge.d.ts +0 -15
- package/esm/geometry/edge.js +0 -24
- package/esm/geometry/edge.js.map +0 -1
- package/esm/geometry/element/index.d.ts +0 -127
- package/esm/geometry/element/index.js +0 -438
- package/esm/geometry/element/index.js.map +0 -1
- package/esm/geometry/heatmap.d.ts +0 -31
- package/esm/geometry/heatmap.js +0 -200
- package/esm/geometry/heatmap.js.map +0 -1
- package/esm/geometry/interval.d.ts +0 -41
- package/esm/geometry/interval.js +0 -98
- package/esm/geometry/interval.js.map +0 -1
- package/esm/geometry/label/base.d.ts +0 -76
- package/esm/geometry/label/base.js +0 -416
- package/esm/geometry/label/base.js.map +0 -1
- package/esm/geometry/label/index.d.ts +0 -38
- package/esm/geometry/label/index.js +0 -35
- package/esm/geometry/label/index.js.map +0 -1
- package/esm/geometry/label/interface.d.ts +0 -66
- package/esm/geometry/label/interface.js +0 -2
- package/esm/geometry/label/interface.js.map +0 -1
- package/esm/geometry/label/interval.d.ts +0 -27
- package/esm/geometry/label/interval.js +0 -146
- package/esm/geometry/label/interval.js.map +0 -1
- package/esm/geometry/label/layout/adjust-color.d.ts +0 -3
- package/esm/geometry/label/layout/adjust-color.js +0 -36
- package/esm/geometry/label/layout/adjust-color.js.map +0 -1
- package/esm/geometry/label/layout/hide-overlap.d.ts +0 -8
- package/esm/geometry/label/layout/hide-overlap.js +0 -75
- package/esm/geometry/label/layout/hide-overlap.js.map +0 -1
- package/esm/geometry/label/layout/interval/adjust-position.d.ts +0 -9
- package/esm/geometry/label/layout/interval/adjust-position.js +0 -61
- package/esm/geometry/label/layout/interval/adjust-position.js.map +0 -1
- package/esm/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
- package/esm/geometry/label/layout/interval/hide-overlap.js +0 -79
- package/esm/geometry/label/layout/interval/hide-overlap.js.map +0 -1
- package/esm/geometry/label/layout/limit-in-canvas.d.ts +0 -9
- package/esm/geometry/label/layout/limit-in-canvas.js +0 -44
- package/esm/geometry/label/layout/limit-in-canvas.js.map +0 -1
- package/esm/geometry/label/layout/limit-in-plot.d.ts +0 -18
- package/esm/geometry/label/layout/limit-in-plot.js +0 -75
- package/esm/geometry/label/layout/limit-in-plot.js.map +0 -1
- package/esm/geometry/label/layout/limit-in-shape.d.ts +0 -7
- package/esm/geometry/label/layout/limit-in-shape.js +0 -18
- package/esm/geometry/label/layout/limit-in-shape.js.map +0 -1
- package/esm/geometry/label/layout/overlap.d.ts +0 -15
- package/esm/geometry/label/layout/overlap.js +0 -223
- package/esm/geometry/label/layout/overlap.js.map +0 -1
- package/esm/geometry/label/layout/path/adjust-position.d.ts +0 -17
- package/esm/geometry/label/layout/path/adjust-position.js +0 -95
- package/esm/geometry/label/layout/path/adjust-position.js.map +0 -1
- package/esm/geometry/label/layout/pie/distribute.d.ts +0 -3
- package/esm/geometry/label/layout/pie/distribute.js +0 -196
- package/esm/geometry/label/layout/pie/distribute.js.map +0 -1
- package/esm/geometry/label/layout/pie/outer.d.ts +0 -6
- package/esm/geometry/label/layout/pie/outer.js +0 -218
- package/esm/geometry/label/layout/pie/outer.js.map +0 -1
- package/esm/geometry/label/layout/pie/spider.d.ts +0 -7
- package/esm/geometry/label/layout/pie/spider.js +0 -193
- package/esm/geometry/label/layout/pie/spider.js.map +0 -1
- package/esm/geometry/label/layout/pie/util.d.ts +0 -10
- package/esm/geometry/label/layout/pie/util.js +0 -73
- package/esm/geometry/label/layout/pie/util.js.map +0 -1
- package/esm/geometry/label/layout/point/adjust-position.d.ts +0 -17
- package/esm/geometry/label/layout/point/adjust-position.js +0 -95
- package/esm/geometry/label/layout/point/adjust-position.js.map +0 -1
- package/esm/geometry/label/layout/worker/hide-overlap.d.ts +0 -2
- package/esm/geometry/label/layout/worker/hide-overlap.js +0 -155
- package/esm/geometry/label/layout/worker/hide-overlap.js.map +0 -1
- package/esm/geometry/label/pie.d.ts +0 -22
- package/esm/geometry/label/pie.js +0 -95
- package/esm/geometry/label/pie.js.map +0 -1
- package/esm/geometry/label/polar.d.ts +0 -64
- package/esm/geometry/label/polar.js +0 -221
- package/esm/geometry/label/polar.js.map +0 -1
- package/esm/geometry/label/util/createWorker.d.ts +0 -1
- package/esm/geometry/label/util/createWorker.js +0 -16
- package/esm/geometry/label/util/createWorker.js.map +0 -1
- package/esm/geometry/label/util/index.d.ts +0 -28
- package/esm/geometry/label/util/index.js +0 -62
- package/esm/geometry/label/util/index.js.map +0 -1
- package/esm/geometry/line.d.ts +0 -11
- package/esm/geometry/line.js +0 -21
- package/esm/geometry/line.js.map +0 -1
- package/esm/geometry/path.d.ts +0 -40
- package/esm/geometry/path.js +0 -150
- package/esm/geometry/path.js.map +0 -1
- package/esm/geometry/point.d.ts +0 -19
- package/esm/geometry/point.js +0 -30
- package/esm/geometry/point.js.map +0 -1
- package/esm/geometry/polygon.d.ts +0 -19
- package/esm/geometry/polygon.js +0 -62
- package/esm/geometry/polygon.js.map +0 -1
- package/esm/geometry/schema.d.ts +0 -18
- package/esm/geometry/schema.js +0 -48
- package/esm/geometry/schema.js.map +0 -1
- package/esm/geometry/shape/area/index.d.ts +0 -2
- package/esm/geometry/shape/area/index.js +0 -45
- package/esm/geometry/shape/area/index.js.map +0 -1
- package/esm/geometry/shape/area/line.d.ts +0 -1
- package/esm/geometry/shape/area/line.js +0 -31
- package/esm/geometry/shape/area/line.js.map +0 -1
- package/esm/geometry/shape/area/smooth-line.d.ts +0 -1
- package/esm/geometry/shape/area/smooth-line.js +0 -30
- package/esm/geometry/shape/area/smooth-line.js.map +0 -1
- package/esm/geometry/shape/area/smooth.d.ts +0 -1
- package/esm/geometry/shape/area/smooth.js +0 -32
- package/esm/geometry/shape/area/smooth.js.map +0 -1
- package/esm/geometry/shape/area/util.d.ts +0 -22
- package/esm/geometry/shape/area/util.js +0 -88
- package/esm/geometry/shape/area/util.js.map +0 -1
- package/esm/geometry/shape/base.d.ts +0 -22
- package/esm/geometry/shape/base.js +0 -162
- package/esm/geometry/shape/base.js.map +0 -1
- package/esm/geometry/shape/constant.d.ts +0 -4
- package/esm/geometry/shape/constant.js +0 -5
- package/esm/geometry/shape/constant.js.map +0 -1
- package/esm/geometry/shape/edge/arc.d.ts +0 -1
- package/esm/geometry/shape/edge/arc.js +0 -84
- package/esm/geometry/shape/edge/arc.js.map +0 -1
- package/esm/geometry/shape/edge/index.d.ts +0 -2
- package/esm/geometry/shape/edge/index.js +0 -31
- package/esm/geometry/shape/edge/index.js.map +0 -1
- package/esm/geometry/shape/edge/smooth.d.ts +0 -1
- package/esm/geometry/shape/edge/smooth.js +0 -30
- package/esm/geometry/shape/edge/smooth.js.map +0 -1
- package/esm/geometry/shape/edge/util.d.ts +0 -17
- package/esm/geometry/shape/edge/util.js +0 -32
- package/esm/geometry/shape/edge/util.js.map +0 -1
- package/esm/geometry/shape/edge/vhv.d.ts +0 -1
- package/esm/geometry/shape/edge/vhv.js +0 -42
- package/esm/geometry/shape/edge/vhv.js.map +0 -1
- package/esm/geometry/shape/interval/funnel.d.ts +0 -1
- package/esm/geometry/shape/interval/funnel.js +0 -31
- package/esm/geometry/shape/interval/funnel.js.map +0 -1
- package/esm/geometry/shape/interval/hollow-rect.d.ts +0 -1
- package/esm/geometry/shape/interval/hollow-rect.js +0 -51
- package/esm/geometry/shape/interval/hollow-rect.js.map +0 -1
- package/esm/geometry/shape/interval/index.d.ts +0 -3
- package/esm/geometry/shape/interval/index.js +0 -65
- package/esm/geometry/shape/interval/index.js.map +0 -1
- package/esm/geometry/shape/interval/line.d.ts +0 -1
- package/esm/geometry/shape/interval/line.js +0 -54
- package/esm/geometry/shape/interval/line.js.map +0 -1
- package/esm/geometry/shape/interval/pyramid.d.ts +0 -1
- package/esm/geometry/shape/interval/pyramid.js +0 -31
- package/esm/geometry/shape/interval/pyramid.js.map +0 -1
- package/esm/geometry/shape/interval/tick.d.ts +0 -1
- package/esm/geometry/shape/interval/tick.js +0 -78
- package/esm/geometry/shape/interval/tick.js.map +0 -1
- package/esm/geometry/shape/interval/util.d.ts +0 -55
- package/esm/geometry/shape/interval/util.js +0 -318
- package/esm/geometry/shape/interval/util.js.map +0 -1
- package/esm/geometry/shape/line/index.d.ts +0 -8
- package/esm/geometry/shape/line/index.js +0 -105
- package/esm/geometry/shape/line/index.js.map +0 -1
- package/esm/geometry/shape/line/step.d.ts +0 -1
- package/esm/geometry/shape/line/step.js +0 -84
- package/esm/geometry/shape/line/step.js.map +0 -1
- package/esm/geometry/shape/line/util.d.ts +0 -16
- package/esm/geometry/shape/line/util.js +0 -83
- package/esm/geometry/shape/line/util.js.map +0 -1
- package/esm/geometry/shape/point/hollow.d.ts +0 -1
- package/esm/geometry/shape/point/hollow.js +0 -24
- package/esm/geometry/shape/point/hollow.js.map +0 -1
- package/esm/geometry/shape/point/image.d.ts +0 -1
- package/esm/geometry/shape/point/image.js +0 -59
- package/esm/geometry/shape/point/image.js.map +0 -1
- package/esm/geometry/shape/point/index.d.ts +0 -2
- package/esm/geometry/shape/point/index.js +0 -32
- package/esm/geometry/shape/point/index.js.map +0 -1
- package/esm/geometry/shape/point/solid.d.ts +0 -1
- package/esm/geometry/shape/point/solid.js +0 -23
- package/esm/geometry/shape/point/solid.js.map +0 -1
- package/esm/geometry/shape/point/util.d.ts +0 -15
- package/esm/geometry/shape/point/util.js +0 -49
- package/esm/geometry/shape/point/util.js.map +0 -1
- package/esm/geometry/shape/polygon/index.d.ts +0 -2
- package/esm/geometry/shape/polygon/index.js +0 -65
- package/esm/geometry/shape/polygon/index.js.map +0 -1
- package/esm/geometry/shape/polygon/square.d.ts +0 -1
- package/esm/geometry/shape/polygon/square.js +0 -44
- package/esm/geometry/shape/polygon/square.js.map +0 -1
- package/esm/geometry/shape/schema/box.d.ts +0 -1
- package/esm/geometry/shape/schema/box.js +0 -142
- package/esm/geometry/shape/schema/box.js.map +0 -1
- package/esm/geometry/shape/schema/candle.d.ts +0 -1
- package/esm/geometry/shape/schema/candle.js +0 -80
- package/esm/geometry/shape/schema/candle.js.map +0 -1
- package/esm/geometry/shape/schema/index.d.ts +0 -2
- package/esm/geometry/shape/schema/index.js +0 -6
- package/esm/geometry/shape/schema/index.js.map +0 -1
- package/esm/geometry/shape/util/get-path-points.d.ts +0 -38
- package/esm/geometry/shape/util/get-path-points.js +0 -131
- package/esm/geometry/shape/util/get-path-points.js.map +0 -1
- package/esm/geometry/shape/util/get-style.d.ts +0 -18
- package/esm/geometry/shape/util/get-style.js +0 -47
- package/esm/geometry/shape/util/get-style.js.map +0 -1
- package/esm/geometry/shape/util/path.d.ts +0 -32
- package/esm/geometry/shape/util/path.js +0 -313
- package/esm/geometry/shape/util/path.js.map +0 -1
- package/esm/geometry/shape/util/split-points.d.ts +0 -13
- package/esm/geometry/shape/util/split-points.js +0 -24
- package/esm/geometry/shape/util/split-points.js.map +0 -1
- package/esm/geometry/shape/violin/hollow.d.ts +0 -1
- package/esm/geometry/shape/violin/hollow.js +0 -51
- package/esm/geometry/shape/violin/hollow.js.map +0 -1
- package/esm/geometry/shape/violin/index.d.ts +0 -2
- package/esm/geometry/shape/violin/index.js +0 -60
- package/esm/geometry/shape/violin/index.js.map +0 -1
- package/esm/geometry/shape/violin/smooth.d.ts +0 -1
- package/esm/geometry/shape/violin/smooth.js +0 -28
- package/esm/geometry/shape/violin/smooth.js.map +0 -1
- package/esm/geometry/util/diff.d.ts +0 -11
- package/esm/geometry/util/diff.js +0 -30
- package/esm/geometry/util/diff.js.map +0 -1
- package/esm/geometry/util/get-shape-type.d.ts +0 -8
- package/esm/geometry/util/get-shape-type.js +0 -16
- package/esm/geometry/util/get-shape-type.js.map +0 -1
- package/esm/geometry/util/group-data.d.ts +0 -3
- package/esm/geometry/util/group-data.js +0 -42
- package/esm/geometry/util/group-data.js.map +0 -1
- package/esm/geometry/util/is-model-change.d.ts +0 -9
- package/esm/geometry/util/is-model-change.js +0 -14
- package/esm/geometry/util/is-model-change.js.map +0 -1
- package/esm/geometry/util/parse-fields.d.ts +0 -2
- package/esm/geometry/util/parse-fields.js +0 -9
- package/esm/geometry/util/parse-fields.js.map +0 -1
- package/esm/geometry/util/shape-size.d.ts +0 -2
- package/esm/geometry/util/shape-size.js +0 -124
- package/esm/geometry/util/shape-size.js.map +0 -1
- package/esm/geometry/violin.d.ts +0 -25
- package/esm/geometry/violin.js +0 -67
- package/esm/geometry/violin.js.map +0 -1
- package/esm/interaction/action/active-region.d.ts +0 -33
- package/esm/interaction/action/active-region.js +0 -226
- package/esm/interaction/action/active-region.js.map +0 -1
- package/esm/interaction/action/base.d.ts +0 -29
- package/esm/interaction/action/base.js +0 -36
- package/esm/interaction/action/base.js.map +0 -1
- package/esm/interaction/action/callback.d.ts +0 -17
- package/esm/interaction/action/callback.js +0 -27
- package/esm/interaction/action/callback.js.map +0 -1
- package/esm/interaction/action/component/axis/axis-description.d.ts +0 -9
- package/esm/interaction/action/component/axis/axis-description.js +0 -73
- package/esm/interaction/action/component/axis/axis-description.js.map +0 -1
- package/esm/interaction/action/component/list-active.d.ts +0 -14
- package/esm/interaction/action/component/list-active.js +0 -24
- package/esm/interaction/action/component/list-active.js.map +0 -1
- package/esm/interaction/action/component/list-checked.d.ts +0 -30
- package/esm/interaction/action/component/list-checked.js +0 -82
- package/esm/interaction/action/component/list-checked.js.map +0 -1
- package/esm/interaction/action/component/list-focus.d.ts +0 -5
- package/esm/interaction/action/component/list-focus.js +0 -92
- package/esm/interaction/action/component/list-focus.js.map +0 -1
- package/esm/interaction/action/component/list-highlight-util.d.ts +0 -7
- package/esm/interaction/action/component/list-highlight-util.js +0 -20
- package/esm/interaction/action/component/list-highlight-util.js.map +0 -1
- package/esm/interaction/action/component/list-highlight.d.ts +0 -20
- package/esm/interaction/action/component/list-highlight.js +0 -97
- package/esm/interaction/action/component/list-highlight.js.map +0 -1
- package/esm/interaction/action/component/list-radio.d.ts +0 -24
- package/esm/interaction/action/component/list-radio.js +0 -116
- package/esm/interaction/action/component/list-radio.js.map +0 -1
- package/esm/interaction/action/component/list-selected.d.ts +0 -10
- package/esm/interaction/action/component/list-selected.js +0 -20
- package/esm/interaction/action/component/list-selected.js.map +0 -1
- package/esm/interaction/action/component/list-state.d.ts +0 -46
- package/esm/interaction/action/component/list-state.js +0 -167
- package/esm/interaction/action/component/list-state.js.map +0 -1
- package/esm/interaction/action/component/list-unchecked.d.ts +0 -13
- package/esm/interaction/action/component/list-unchecked.js +0 -23
- package/esm/interaction/action/component/list-unchecked.js.map +0 -1
- package/esm/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
- package/esm/interaction/action/component/tooltip/ellipsis-text.js +0 -93
- package/esm/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
- package/esm/interaction/action/component/tooltip/geometry.d.ts +0 -24
- package/esm/interaction/action/component/tooltip/geometry.js +0 -71
- package/esm/interaction/action/component/tooltip/geometry.js.map +0 -1
- package/esm/interaction/action/component/tooltip/sibling.d.ts +0 -21
- package/esm/interaction/action/component/tooltip/sibling.js +0 -39
- package/esm/interaction/action/component/tooltip/sibling.js.map +0 -1
- package/esm/interaction/action/cursor.d.ts +0 -77
- package/esm/interaction/action/cursor.js +0 -125
- package/esm/interaction/action/cursor.js.map +0 -1
- package/esm/interaction/action/data/filter.d.ts +0 -13
- package/esm/interaction/action/data/filter.js +0 -66
- package/esm/interaction/action/data/filter.js.map +0 -1
- package/esm/interaction/action/data/range-filter.d.ts +0 -56
- package/esm/interaction/action/data/range-filter.js +0 -163
- package/esm/interaction/action/data/range-filter.js.map +0 -1
- package/esm/interaction/action/data/sibling-filter.d.ts +0 -22
- package/esm/interaction/action/data/sibling-filter.js +0 -39
- package/esm/interaction/action/data/sibling-filter.js.map +0 -1
- package/esm/interaction/action/element/active.d.ts +0 -14
- package/esm/interaction/action/element/active.js +0 -24
- package/esm/interaction/action/element/active.js.map +0 -1
- package/esm/interaction/action/element/filter.d.ts +0 -20
- package/esm/interaction/action/element/filter.js +0 -89
- package/esm/interaction/action/element/filter.js.map +0 -1
- package/esm/interaction/action/element/highlight-by-color.d.ts +0 -10
- package/esm/interaction/action/element/highlight-by-color.js +0 -30
- package/esm/interaction/action/element/highlight-by-color.js.map +0 -1
- package/esm/interaction/action/element/highlight-by-x.d.ts +0 -15
- package/esm/interaction/action/element/highlight-by-x.js +0 -51
- package/esm/interaction/action/element/highlight-by-x.js.map +0 -1
- package/esm/interaction/action/element/highlight-util.d.ts +0 -18
- package/esm/interaction/action/element/highlight-util.js +0 -45
- package/esm/interaction/action/element/highlight-util.js.map +0 -1
- package/esm/interaction/action/element/highlight.d.ts +0 -21
- package/esm/interaction/action/element/highlight.js +0 -93
- package/esm/interaction/action/element/highlight.js.map +0 -1
- package/esm/interaction/action/element/link-by-color.d.ts +0 -51
- package/esm/interaction/action/element/link-by-color.js +0 -156
- package/esm/interaction/action/element/link-by-color.js.map +0 -1
- package/esm/interaction/action/element/range-active.d.ts +0 -13
- package/esm/interaction/action/element/range-active.js +0 -23
- package/esm/interaction/action/element/range-active.js.map +0 -1
- package/esm/interaction/action/element/range-highlight.d.ts +0 -27
- package/esm/interaction/action/element/range-highlight.js +0 -54
- package/esm/interaction/action/element/range-highlight.js.map +0 -1
- package/esm/interaction/action/element/range-selected.d.ts +0 -13
- package/esm/interaction/action/element/range-selected.js +0 -23
- package/esm/interaction/action/element/range-selected.js.map +0 -1
- package/esm/interaction/action/element/range-state.d.ts +0 -38
- package/esm/interaction/action/element/range-state.js +0 -164
- package/esm/interaction/action/element/range-state.js.map +0 -1
- package/esm/interaction/action/element/selected.d.ts +0 -14
- package/esm/interaction/action/element/selected.js +0 -24
- package/esm/interaction/action/element/selected.js.map +0 -1
- package/esm/interaction/action/element/sibling-filter.d.ts +0 -19
- package/esm/interaction/action/element/sibling-filter.js +0 -93
- package/esm/interaction/action/element/sibling-filter.js.map +0 -1
- package/esm/interaction/action/element/single-active.d.ts +0 -13
- package/esm/interaction/action/element/single-active.js +0 -23
- package/esm/interaction/action/element/single-active.js.map +0 -1
- package/esm/interaction/action/element/single-highlight.d.ts +0 -16
- package/esm/interaction/action/element/single-highlight.js +0 -35
- package/esm/interaction/action/element/single-highlight.js.map +0 -1
- package/esm/interaction/action/element/single-selected.d.ts +0 -13
- package/esm/interaction/action/element/single-selected.js +0 -23
- package/esm/interaction/action/element/single-selected.js.map +0 -1
- package/esm/interaction/action/element/single-state.d.ts +0 -18
- package/esm/interaction/action/element/single-state.js +0 -53
- package/esm/interaction/action/element/single-state.js.map +0 -1
- package/esm/interaction/action/element/state-base.d.ts +0 -39
- package/esm/interaction/action/element/state-base.js +0 -59
- package/esm/interaction/action/element/state-base.js.map +0 -1
- package/esm/interaction/action/element/state.d.ts +0 -28
- package/esm/interaction/action/element/state.js +0 -99
- package/esm/interaction/action/element/state.js.map +0 -1
- package/esm/interaction/action/mask/base.d.ts +0 -62
- package/esm/interaction/action/mask/base.js +0 -169
- package/esm/interaction/action/mask/base.js.map +0 -1
- package/esm/interaction/action/mask/circle.d.ts +0 -14
- package/esm/interaction/action/mask/circle.js +0 -37
- package/esm/interaction/action/mask/circle.js.map +0 -1
- package/esm/interaction/action/mask/dim-rect.d.ts +0 -11
- package/esm/interaction/action/mask/dim-rect.js +0 -62
- package/esm/interaction/action/mask/dim-rect.js.map +0 -1
- package/esm/interaction/action/mask/path.d.ts +0 -16
- package/esm/interaction/action/mask/path.js +0 -44
- package/esm/interaction/action/mask/path.js.map +0 -1
- package/esm/interaction/action/mask/rect.d.ts +0 -17
- package/esm/interaction/action/mask/rect.js +0 -39
- package/esm/interaction/action/mask/rect.js.map +0 -1
- package/esm/interaction/action/mask/smooth-path.d.ts +0 -9
- package/esm/interaction/action/mask/smooth-path.js +0 -21
- package/esm/interaction/action/mask/smooth-path.js.map +0 -1
- package/esm/interaction/action/register.d.ts +0 -36
- package/esm/interaction/action/register.js +0 -60
- package/esm/interaction/action/register.js.map +0 -1
- package/esm/interaction/action/util.d.ts +0 -140
- package/esm/interaction/action/util.js +0 -361
- package/esm/interaction/action/util.js.map +0 -1
- package/esm/interaction/action/view/button.d.ts +0 -25
- package/esm/interaction/action/view/button.js +0 -116
- package/esm/interaction/action/view/button.js.map +0 -1
- package/esm/interaction/action/view/drag.d.ts +0 -24
- package/esm/interaction/action/view/drag.js +0 -73
- package/esm/interaction/action/view/drag.js.map +0 -1
- package/esm/interaction/action/view/mousewheel-scroll.d.ts +0 -5
- package/esm/interaction/action/view/mousewheel-scroll.js +0 -35
- package/esm/interaction/action/view/mousewheel-scroll.js.map +0 -1
- package/esm/interaction/action/view/move.d.ts +0 -28
- package/esm/interaction/action/view/move.js +0 -80
- package/esm/interaction/action/view/move.js.map +0 -1
- package/esm/interaction/action/view/scale-transform.d.ts +0 -18
- package/esm/interaction/action/view/scale-transform.js +0 -51
- package/esm/interaction/action/view/scale-transform.js.map +0 -1
- package/esm/interaction/action/view/scale-translate.d.ts +0 -30
- package/esm/interaction/action/view/scale-translate.js +0 -112
- package/esm/interaction/action/view/scale-translate.js.map +0 -1
- package/esm/interaction/action/view/scale-zoom.d.ts +0 -20
- package/esm/interaction/action/view/scale-zoom.js +0 -83
- package/esm/interaction/action/view/scale-zoom.js.map +0 -1
- package/esm/interaction/context.d.ts +0 -65
- package/esm/interaction/context.js +0 -142
- package/esm/interaction/context.js.map +0 -1
- package/esm/interaction/grammar-interaction.d.ts +0 -158
- package/esm/interaction/grammar-interaction.js +0 -285
- package/esm/interaction/grammar-interaction.js.map +0 -1
- package/esm/interaction/interaction.d.ts +0 -29
- package/esm/interaction/interaction.js +0 -32
- package/esm/interaction/interaction.js.map +0 -1
- package/esm/interface.d.ts +0 -3686
- package/esm/interface.js +0 -2
- package/esm/interface.js.map +0 -1
- package/esm/theme/style-sheet/dark.d.ts +0 -545
- package/esm/theme/style-sheet/dark.js +0 -500
- package/esm/theme/style-sheet/dark.js.map +0 -1
- package/esm/theme/style-sheet/light.d.ts +0 -541
- package/esm/theme/style-sheet/light.js +0 -496
- package/esm/theme/style-sheet/light.js.map +0 -1
- package/esm/theme/util/create-by-style-sheet.d.ts +0 -6
- package/esm/theme/util/create-by-style-sheet.js +0 -1425
- package/esm/theme/util/create-by-style-sheet.js.map +0 -1
- package/esm/theme/util/create-theme.d.ts +0 -6
- package/esm/theme/util/create-theme.js +0 -12
- package/esm/theme/util/create-theme.js.map +0 -1
- package/esm/theme/util/index.d.ts +0 -1
- package/esm/theme/util/index.js +0 -2
- package/esm/theme/util/index.js.map +0 -1
- package/esm/util/annotation.d.ts +0 -7
- package/esm/util/annotation.js +0 -39
- package/esm/util/annotation.js.map +0 -1
- package/esm/util/attr.d.ts +0 -10
- package/esm/util/attr.js +0 -25
- package/esm/util/attr.js.map +0 -1
- package/esm/util/axis.d.ts +0 -100
- package/esm/util/axis.js +0 -236
- package/esm/util/axis.js.map +0 -1
- package/esm/util/bbox.d.ts +0 -105
- package/esm/util/bbox.js +0 -283
- package/esm/util/bbox.js.map +0 -1
- package/esm/util/collision-detect.d.ts +0 -20
- package/esm/util/collision-detect.js +0 -129
- package/esm/util/collision-detect.js.map +0 -1
- package/esm/util/color.d.ts +0 -1
- package/esm/util/color.js +0 -19
- package/esm/util/color.js.map +0 -1
- package/esm/util/context.d.ts +0 -4
- package/esm/util/context.js +0 -11
- package/esm/util/context.js.map +0 -1
- package/esm/util/coordinate.d.ts +0 -86
- package/esm/util/coordinate.js +0 -147
- package/esm/util/coordinate.js.map +0 -1
- package/esm/util/direction.d.ts +0 -19
- package/esm/util/direction.js +0 -120
- package/esm/util/direction.js.map +0 -1
- package/esm/util/dom.d.ts +0 -19
- package/esm/util/dom.js +0 -61
- package/esm/util/dom.js.map +0 -1
- package/esm/util/event.d.ts +0 -8
- package/esm/util/event.js +0 -14
- package/esm/util/event.js.map +0 -1
- package/esm/util/facet.d.ts +0 -16
- package/esm/util/facet.js +0 -43
- package/esm/util/facet.js.map +0 -1
- package/esm/util/graphics.d.ts +0 -58
- package/esm/util/graphics.js +0 -203
- package/esm/util/graphics.js.map +0 -1
- package/esm/util/grid.d.ts +0 -36
- package/esm/util/grid.js +0 -118
- package/esm/util/grid.js.map +0 -1
- package/esm/util/helper.d.ts +0 -34
- package/esm/util/helper.js +0 -83
- package/esm/util/helper.js.map +0 -1
- package/esm/util/legend.d.ts +0 -45
- package/esm/util/legend.js +0 -145
- package/esm/util/legend.js.map +0 -1
- package/esm/util/marker.d.ts +0 -10
- package/esm/util/marker.js +0 -58
- package/esm/util/marker.js.map +0 -1
- package/esm/util/padding.d.ts +0 -14
- package/esm/util/padding.js +0 -40
- package/esm/util/padding.js.map +0 -1
- package/esm/util/scale.d.ts +0 -42
- package/esm/util/scale.js +0 -129
- package/esm/util/scale.js.map +0 -1
- package/esm/util/stat.d.ts +0 -10
- package/esm/util/stat.js +0 -36
- package/esm/util/stat.js.map +0 -1
- package/esm/util/text.d.ts +0 -23
- package/esm/util/text.js +0 -84
- package/esm/util/text.js.map +0 -1
- package/esm/util/tooltip.d.ts +0 -26
- package/esm/util/tooltip.js +0 -469
- package/esm/util/tooltip.js.map +0 -1
- package/esm/util/transform.d.ts +0 -33
- package/esm/util/transform.js +0 -61
- package/esm/util/transform.js.map +0 -1
- package/esm/util/types.d.ts +0 -6
- package/esm/util/types.js.map +0 -1
- package/lib/animate/animation/fade.d.ts +0 -21
- package/lib/animate/animation/fade.js +0 -47
- package/lib/animate/animation/fade.js.map +0 -1
- package/lib/animate/animation/grow-in.d.ts +0 -30
- package/lib/animate/animation/grow-in.js +0 -44
- package/lib/animate/animation/grow-in.js.map +0 -1
- package/lib/animate/animation/index.d.ts +0 -16
- package/lib/animate/animation/index.js +0 -22
- package/lib/animate/animation/index.js.map +0 -1
- package/lib/animate/animation/path-in.d.ts +0 -12
- package/lib/animate/animation/path-in.js +0 -25
- package/lib/animate/animation/path-in.js.map +0 -1
- package/lib/animate/animation/position-update.d.ts +0 -11
- package/lib/animate/animation/position-update.js +0 -28
- package/lib/animate/animation/position-update.js.map +0 -1
- package/lib/animate/animation/scale-in.d.ts +0 -19
- package/lib/animate/animation/scale-in.js +0 -65
- package/lib/animate/animation/scale-in.js.map +0 -1
- package/lib/animate/animation/sector-path-update.d.ts +0 -27
- package/lib/animate/animation/sector-path-update.js +0 -137
- package/lib/animate/animation/sector-path-update.js.map +0 -1
- package/lib/animate/animation/util.d.ts +0 -19
- package/lib/animate/animation/util.js +0 -94
- package/lib/animate/animation/util.js.map +0 -1
- package/lib/animate/animation/wave-in.d.ts +0 -13
- package/lib/animate/animation/wave-in.js +0 -34
- package/lib/animate/animation/wave-in.js.map +0 -1
- package/lib/animate/animation/zoom.d.ts +0 -21
- package/lib/animate/animation/zoom.js +0 -71
- package/lib/animate/animation/zoom.js.map +0 -1
- package/lib/animate/index.d.ts +0 -48
- package/lib/animate/index.js +0 -255
- package/lib/animate/index.js.map +0 -1
- package/lib/animate/interface.d.ts +0 -18
- package/lib/animate/interface.js +0 -3
- package/lib/animate/interface.js.map +0 -1
- package/lib/api.d.ts +0 -2
- package/lib/api.js +0 -7
- package/lib/api.js.map +0 -1
- package/lib/base.d.ts +0 -33
- package/lib/base.js +0 -57
- package/lib/base.js.map +0 -1
- package/lib/chart/chart.d.ts +0 -61
- package/lib/chart/chart.js +0 -159
- package/lib/chart/chart.js.map +0 -1
- package/lib/chart/controller/annotation.d.ts +0 -162
- package/lib/chart/controller/annotation.js +0 -594
- package/lib/chart/controller/annotation.js.map +0 -1
- package/lib/chart/controller/axis.d.ts +0 -93
- package/lib/chart/controller/axis.js +0 -580
- package/lib/chart/controller/axis.js.map +0 -1
- package/lib/chart/controller/base.d.ts +0 -64
- package/lib/chart/controller/base.js +0 -65
- package/lib/chart/controller/base.js.map +0 -1
- package/lib/chart/controller/coordinate.d.ts +0 -74
- package/lib/chart/controller/coordinate.js +0 -147
- package/lib/chart/controller/coordinate.js.map +0 -1
- package/lib/chart/controller/gesture.d.ts +0 -37
- package/lib/chart/controller/gesture.js +0 -260
- package/lib/chart/controller/gesture.js.map +0 -1
- package/lib/chart/controller/index.d.ts +0 -25
- package/lib/chart/controller/index.js +0 -41
- package/lib/chart/controller/index.js.map +0 -1
- package/lib/chart/controller/legend.d.ts +0 -106
- package/lib/chart/controller/legend.js +0 -486
- package/lib/chart/controller/legend.js.map +0 -1
- package/lib/chart/controller/scrollbar.d.ts +0 -64
- package/lib/chart/controller/scrollbar.js +0 -318
- package/lib/chart/controller/scrollbar.js.map +0 -1
- package/lib/chart/controller/slider.d.ts +0 -88
- package/lib/chart/controller/slider.js +0 -298
- package/lib/chart/controller/slider.js.map +0 -1
- package/lib/chart/controller/tooltip.d.ts +0 -68
- package/lib/chart/controller/tooltip.js +0 -698
- package/lib/chart/controller/tooltip.js.map +0 -1
- package/lib/chart/event.d.ts +0 -47
- package/lib/chart/event.js +0 -93
- package/lib/chart/event.js.map +0 -1
- package/lib/chart/index.d.ts +0 -4
- package/lib/chart/index.js +0 -16
- package/lib/chart/index.js.map +0 -1
- package/lib/chart/layout/auto.d.ts +0 -8
- package/lib/chart/layout/auto.js +0 -68
- package/lib/chart/layout/auto.js.map +0 -1
- package/lib/chart/layout/constraint/bounds.d.ts +0 -32
- package/lib/chart/layout/constraint/bounds.js +0 -33
- package/lib/chart/layout/constraint/bounds.js.map +0 -1
- package/lib/chart/layout/constraint/constraint.d.ts +0 -31
- package/lib/chart/layout/constraint/constraint.js +0 -85
- package/lib/chart/layout/constraint/constraint.js.map +0 -1
- package/lib/chart/layout/constraint/gauss.d.ts +0 -11
- package/lib/chart/layout/constraint/gauss.js +0 -68
- package/lib/chart/layout/constraint/gauss.js.map +0 -1
- package/lib/chart/layout/constraint/index.d.ts +0 -5
- package/lib/chart/layout/constraint/index.js +0 -38
- package/lib/chart/layout/constraint/index.js.map +0 -1
- package/lib/chart/layout/constraint/solver.d.ts +0 -40
- package/lib/chart/layout/constraint/solver.js +0 -81
- package/lib/chart/layout/constraint/solver.js.map +0 -1
- package/lib/chart/layout/constraint/types.d.ts +0 -21
- package/lib/chart/layout/constraint/types.js +0 -16
- package/lib/chart/layout/constraint/types.js.map +0 -1
- package/lib/chart/layout/constraint/variable.d.ts +0 -24
- package/lib/chart/layout/constraint/variable.js +0 -31
- package/lib/chart/layout/constraint/variable.js.map +0 -1
- package/lib/chart/layout/index.d.ts +0 -15
- package/lib/chart/layout/index.js +0 -29
- package/lib/chart/layout/index.js.map +0 -1
- package/lib/chart/layout/padding-cal.d.ts +0 -53
- package/lib/chart/layout/padding-cal.js +0 -111
- package/lib/chart/layout/padding-cal.js.map +0 -1
- package/lib/chart/util/scale-pool.d.ts +0 -57
- package/lib/chart/util/scale-pool.js +0 -215
- package/lib/chart/util/scale-pool.js.map +0 -1
- package/lib/chart/util/sync-view-padding.d.ts +0 -9
- package/lib/chart/util/sync-view-padding.js +0 -18
- package/lib/chart/util/sync-view-padding.js.map +0 -1
- package/lib/chart/view.d.ts +0 -747
- package/lib/chart/view.js +0 -1640
- package/lib/chart/view.js.map +0 -1
- package/lib/component/labels.d.ts +0 -46
- package/lib/component/labels.js +0 -308
- package/lib/component/labels.js.map +0 -1
- package/lib/component/update-label.d.ts +0 -21
- package/lib/component/update-label.js +0 -61
- package/lib/component/update-label.js.map +0 -1
- package/lib/constant.d.ts +0 -124
- package/lib/constant.js +0 -139
- package/lib/constant.js.map +0 -1
- package/lib/core.d.ts +0 -46
- package/lib/core.js +0 -101
- package/lib/core.js.map +0 -1
- package/lib/dependents.d.ts +0 -21
- package/lib/dependents.js +0 -55
- package/lib/dependents.js.map +0 -1
- package/lib/engine/index.d.ts +0 -13
- package/lib/engine/index.js +0 -27
- package/lib/engine/index.js.map +0 -1
- package/lib/facet/circle.d.ts +0 -36
- package/lib/facet/circle.js +0 -121
- package/lib/facet/circle.js.map +0 -1
- package/lib/facet/facet.d.ts +0 -165
- package/lib/facet/facet.js +0 -295
- package/lib/facet/facet.js.map +0 -1
- package/lib/facet/index.d.ts +0 -13
- package/lib/facet/index.js +0 -28
- package/lib/facet/index.js.map +0 -1
- package/lib/facet/list.d.ts +0 -46
- package/lib/facet/list.js +0 -136
- package/lib/facet/list.js.map +0 -1
- package/lib/facet/matrix.d.ts +0 -34
- package/lib/facet/matrix.js +0 -121
- package/lib/facet/matrix.js.map +0 -1
- package/lib/facet/mirror.d.ts +0 -31
- package/lib/facet/mirror.js +0 -146
- package/lib/facet/mirror.js.map +0 -1
- package/lib/facet/rect.d.ts +0 -35
- package/lib/facet/rect.js +0 -143
- package/lib/facet/rect.js.map +0 -1
- package/lib/facet/tree.d.ts +0 -40
- package/lib/facet/tree.js +0 -300
- package/lib/facet/tree.js.map +0 -1
- package/lib/geometry/area.d.ts +0 -46
- package/lib/geometry/area.js +0 -64
- package/lib/geometry/area.js.map +0 -1
- package/lib/geometry/base.d.ts +0 -796
- package/lib/geometry/base.js +0 -1558
- package/lib/geometry/base.js.map +0 -1
- package/lib/geometry/edge.d.ts +0 -15
- package/lib/geometry/edge.js +0 -26
- package/lib/geometry/edge.js.map +0 -1
- package/lib/geometry/element/index.d.ts +0 -127
- package/lib/geometry/element/index.js +0 -440
- package/lib/geometry/element/index.js.map +0 -1
- package/lib/geometry/heatmap.d.ts +0 -31
- package/lib/geometry/heatmap.js +0 -202
- package/lib/geometry/heatmap.js.map +0 -1
- package/lib/geometry/interval.d.ts +0 -41
- package/lib/geometry/interval.js +0 -100
- package/lib/geometry/interval.js.map +0 -1
- package/lib/geometry/label/base.d.ts +0 -76
- package/lib/geometry/label/base.js +0 -418
- package/lib/geometry/label/base.js.map +0 -1
- package/lib/geometry/label/index.d.ts +0 -38
- package/lib/geometry/label/index.js +0 -42
- package/lib/geometry/label/index.js.map +0 -1
- package/lib/geometry/label/interface.d.ts +0 -66
- package/lib/geometry/label/interface.js +0 -3
- package/lib/geometry/label/interface.js.map +0 -1
- package/lib/geometry/label/interval.d.ts +0 -27
- package/lib/geometry/label/interval.js +0 -148
- package/lib/geometry/label/interval.js.map +0 -1
- package/lib/geometry/label/layout/adjust-color.d.ts +0 -3
- package/lib/geometry/label/layout/adjust-color.js +0 -40
- package/lib/geometry/label/layout/adjust-color.js.map +0 -1
- package/lib/geometry/label/layout/hide-overlap.d.ts +0 -8
- package/lib/geometry/label/layout/hide-overlap.js +0 -79
- package/lib/geometry/label/layout/hide-overlap.js.map +0 -1
- package/lib/geometry/label/layout/interval/adjust-position.d.ts +0 -9
- package/lib/geometry/label/layout/interval/adjust-position.js +0 -65
- package/lib/geometry/label/layout/interval/adjust-position.js.map +0 -1
- package/lib/geometry/label/layout/interval/hide-overlap.d.ts +0 -9
- package/lib/geometry/label/layout/interval/hide-overlap.js +0 -83
- package/lib/geometry/label/layout/interval/hide-overlap.js.map +0 -1
- package/lib/geometry/label/layout/limit-in-canvas.d.ts +0 -9
- package/lib/geometry/label/layout/limit-in-canvas.js +0 -48
- package/lib/geometry/label/layout/limit-in-canvas.js.map +0 -1
- package/lib/geometry/label/layout/limit-in-plot.d.ts +0 -18
- package/lib/geometry/label/layout/limit-in-plot.js +0 -79
- package/lib/geometry/label/layout/limit-in-plot.js.map +0 -1
- package/lib/geometry/label/layout/limit-in-shape.d.ts +0 -7
- package/lib/geometry/label/layout/limit-in-shape.js +0 -22
- package/lib/geometry/label/layout/limit-in-shape.js.map +0 -1
- package/lib/geometry/label/layout/overlap.d.ts +0 -15
- package/lib/geometry/label/layout/overlap.js +0 -228
- package/lib/geometry/label/layout/overlap.js.map +0 -1
- package/lib/geometry/label/layout/path/adjust-position.d.ts +0 -17
- package/lib/geometry/label/layout/path/adjust-position.js +0 -99
- package/lib/geometry/label/layout/path/adjust-position.js.map +0 -1
- package/lib/geometry/label/layout/pie/distribute.d.ts +0 -3
- package/lib/geometry/label/layout/pie/distribute.js +0 -200
- package/lib/geometry/label/layout/pie/distribute.js.map +0 -1
- package/lib/geometry/label/layout/pie/outer.d.ts +0 -6
- package/lib/geometry/label/layout/pie/outer.js +0 -222
- package/lib/geometry/label/layout/pie/outer.js.map +0 -1
- package/lib/geometry/label/layout/pie/spider.d.ts +0 -7
- package/lib/geometry/label/layout/pie/spider.js +0 -197
- package/lib/geometry/label/layout/pie/spider.js.map +0 -1
- package/lib/geometry/label/layout/pie/util.d.ts +0 -10
- package/lib/geometry/label/layout/pie/util.js +0 -77
- package/lib/geometry/label/layout/pie/util.js.map +0 -1
- package/lib/geometry/label/layout/point/adjust-position.d.ts +0 -17
- package/lib/geometry/label/layout/point/adjust-position.js +0 -99
- package/lib/geometry/label/layout/point/adjust-position.js.map +0 -1
- package/lib/geometry/label/layout/worker/hide-overlap.d.ts +0 -2
- package/lib/geometry/label/layout/worker/hide-overlap.js +0 -158
- package/lib/geometry/label/layout/worker/hide-overlap.js.map +0 -1
- package/lib/geometry/label/pie.d.ts +0 -22
- package/lib/geometry/label/pie.js +0 -97
- package/lib/geometry/label/pie.js.map +0 -1
- package/lib/geometry/label/polar.d.ts +0 -64
- package/lib/geometry/label/polar.js +0 -223
- package/lib/geometry/label/polar.js.map +0 -1
- package/lib/geometry/label/util/createWorker.d.ts +0 -1
- package/lib/geometry/label/util/createWorker.js +0 -20
- package/lib/geometry/label/util/createWorker.js.map +0 -1
- package/lib/geometry/label/util/index.d.ts +0 -28
- package/lib/geometry/label/util/index.js +0 -69
- package/lib/geometry/label/util/index.js.map +0 -1
- package/lib/geometry/line.d.ts +0 -11
- package/lib/geometry/line.js +0 -23
- package/lib/geometry/line.js.map +0 -1
- package/lib/geometry/path.d.ts +0 -40
- package/lib/geometry/path.js +0 -152
- package/lib/geometry/path.js.map +0 -1
- package/lib/geometry/point.d.ts +0 -19
- package/lib/geometry/point.js +0 -32
- package/lib/geometry/point.js.map +0 -1
- package/lib/geometry/polygon.d.ts +0 -19
- package/lib/geometry/polygon.js +0 -64
- package/lib/geometry/polygon.js.map +0 -1
- package/lib/geometry/schema.d.ts +0 -18
- package/lib/geometry/schema.js +0 -50
- package/lib/geometry/schema.js.map +0 -1
- package/lib/geometry/shape/area/index.d.ts +0 -2
- package/lib/geometry/shape/area/index.js +0 -47
- package/lib/geometry/shape/area/index.js.map +0 -1
- package/lib/geometry/shape/area/line.d.ts +0 -1
- package/lib/geometry/shape/area/line.js +0 -33
- package/lib/geometry/shape/area/line.js.map +0 -1
- package/lib/geometry/shape/area/smooth-line.d.ts +0 -1
- package/lib/geometry/shape/area/smooth-line.js +0 -32
- package/lib/geometry/shape/area/smooth-line.js.map +0 -1
- package/lib/geometry/shape/area/smooth.d.ts +0 -1
- package/lib/geometry/shape/area/smooth.js +0 -34
- package/lib/geometry/shape/area/smooth.js.map +0 -1
- package/lib/geometry/shape/area/util.d.ts +0 -22
- package/lib/geometry/shape/area/util.js +0 -93
- package/lib/geometry/shape/area/util.js.map +0 -1
- package/lib/geometry/shape/base.d.ts +0 -22
- package/lib/geometry/shape/base.js +0 -168
- package/lib/geometry/shape/base.js.map +0 -1
- package/lib/geometry/shape/constant.d.ts +0 -4
- package/lib/geometry/shape/constant.js +0 -8
- package/lib/geometry/shape/constant.js.map +0 -1
- package/lib/geometry/shape/edge/arc.d.ts +0 -1
- package/lib/geometry/shape/edge/arc.js +0 -86
- package/lib/geometry/shape/edge/arc.js.map +0 -1
- package/lib/geometry/shape/edge/index.d.ts +0 -2
- package/lib/geometry/shape/edge/index.js +0 -33
- package/lib/geometry/shape/edge/index.js.map +0 -1
- package/lib/geometry/shape/edge/smooth.d.ts +0 -1
- package/lib/geometry/shape/edge/smooth.js +0 -32
- package/lib/geometry/shape/edge/smooth.js.map +0 -1
- package/lib/geometry/shape/edge/util.d.ts +0 -17
- package/lib/geometry/shape/edge/util.js +0 -37
- package/lib/geometry/shape/edge/util.js.map +0 -1
- package/lib/geometry/shape/edge/vhv.d.ts +0 -1
- package/lib/geometry/shape/edge/vhv.js +0 -44
- package/lib/geometry/shape/edge/vhv.js.map +0 -1
- package/lib/geometry/shape/interval/funnel.d.ts +0 -1
- package/lib/geometry/shape/interval/funnel.js +0 -33
- package/lib/geometry/shape/interval/funnel.js.map +0 -1
- package/lib/geometry/shape/interval/hollow-rect.d.ts +0 -1
- package/lib/geometry/shape/interval/hollow-rect.js +0 -53
- package/lib/geometry/shape/interval/hollow-rect.js.map +0 -1
- package/lib/geometry/shape/interval/index.d.ts +0 -3
- package/lib/geometry/shape/interval/index.js +0 -67
- package/lib/geometry/shape/interval/index.js.map +0 -1
- package/lib/geometry/shape/interval/line.d.ts +0 -1
- package/lib/geometry/shape/interval/line.js +0 -56
- package/lib/geometry/shape/interval/line.js.map +0 -1
- package/lib/geometry/shape/interval/pyramid.d.ts +0 -1
- package/lib/geometry/shape/interval/pyramid.js +0 -33
- package/lib/geometry/shape/interval/pyramid.js.map +0 -1
- package/lib/geometry/shape/interval/tick.d.ts +0 -1
- package/lib/geometry/shape/interval/tick.js +0 -80
- package/lib/geometry/shape/interval/tick.js.map +0 -1
- package/lib/geometry/shape/interval/util.d.ts +0 -55
- package/lib/geometry/shape/interval/util.js +0 -328
- package/lib/geometry/shape/interval/util.js.map +0 -1
- package/lib/geometry/shape/line/index.d.ts +0 -8
- package/lib/geometry/shape/line/index.js +0 -109
- package/lib/geometry/shape/line/index.js.map +0 -1
- package/lib/geometry/shape/line/step.d.ts +0 -1
- package/lib/geometry/shape/line/step.js +0 -86
- package/lib/geometry/shape/line/step.js.map +0 -1
- package/lib/geometry/shape/line/util.d.ts +0 -16
- package/lib/geometry/shape/line/util.js +0 -87
- package/lib/geometry/shape/line/util.js.map +0 -1
- package/lib/geometry/shape/point/hollow.d.ts +0 -1
- package/lib/geometry/shape/point/hollow.js +0 -26
- package/lib/geometry/shape/point/hollow.js.map +0 -1
- package/lib/geometry/shape/point/image.d.ts +0 -1
- package/lib/geometry/shape/point/image.js +0 -61
- package/lib/geometry/shape/point/image.js.map +0 -1
- package/lib/geometry/shape/point/index.d.ts +0 -2
- package/lib/geometry/shape/point/index.js +0 -34
- package/lib/geometry/shape/point/index.js.map +0 -1
- package/lib/geometry/shape/point/solid.d.ts +0 -1
- package/lib/geometry/shape/point/solid.js +0 -25
- package/lib/geometry/shape/point/solid.js.map +0 -1
- package/lib/geometry/shape/point/util.d.ts +0 -15
- package/lib/geometry/shape/point/util.js +0 -53
- package/lib/geometry/shape/point/util.js.map +0 -1
- package/lib/geometry/shape/polygon/index.d.ts +0 -2
- package/lib/geometry/shape/polygon/index.js +0 -67
- package/lib/geometry/shape/polygon/index.js.map +0 -1
- package/lib/geometry/shape/polygon/square.d.ts +0 -1
- package/lib/geometry/shape/polygon/square.js +0 -46
- package/lib/geometry/shape/polygon/square.js.map +0 -1
- package/lib/geometry/shape/schema/box.d.ts +0 -1
- package/lib/geometry/shape/schema/box.js +0 -144
- package/lib/geometry/shape/schema/box.js.map +0 -1
- package/lib/geometry/shape/schema/candle.d.ts +0 -1
- package/lib/geometry/shape/schema/candle.js +0 -82
- package/lib/geometry/shape/schema/candle.js.map +0 -1
- package/lib/geometry/shape/schema/index.d.ts +0 -2
- package/lib/geometry/shape/schema/index.js +0 -8
- package/lib/geometry/shape/schema/index.js.map +0 -1
- package/lib/geometry/shape/util/get-path-points.d.ts +0 -38
- package/lib/geometry/shape/util/get-path-points.js +0 -137
- package/lib/geometry/shape/util/get-path-points.js.map +0 -1
- package/lib/geometry/shape/util/get-style.d.ts +0 -18
- package/lib/geometry/shape/util/get-style.js +0 -52
- package/lib/geometry/shape/util/get-style.js.map +0 -1
- package/lib/geometry/shape/util/path.d.ts +0 -32
- package/lib/geometry/shape/util/path.js +0 -322
- package/lib/geometry/shape/util/path.js.map +0 -1
- package/lib/geometry/shape/util/split-points.d.ts +0 -13
- package/lib/geometry/shape/util/split-points.js +0 -28
- package/lib/geometry/shape/util/split-points.js.map +0 -1
- package/lib/geometry/shape/violin/hollow.d.ts +0 -1
- package/lib/geometry/shape/violin/hollow.js +0 -53
- package/lib/geometry/shape/violin/hollow.js.map +0 -1
- package/lib/geometry/shape/violin/index.d.ts +0 -2
- package/lib/geometry/shape/violin/index.js +0 -62
- package/lib/geometry/shape/violin/index.js.map +0 -1
- package/lib/geometry/shape/violin/smooth.d.ts +0 -1
- package/lib/geometry/shape/violin/smooth.js +0 -30
- package/lib/geometry/shape/violin/smooth.js.map +0 -1
- package/lib/geometry/util/diff.d.ts +0 -11
- package/lib/geometry/util/diff.js +0 -34
- package/lib/geometry/util/diff.js.map +0 -1
- package/lib/geometry/util/get-shape-type.d.ts +0 -8
- package/lib/geometry/util/get-shape-type.js +0 -20
- package/lib/geometry/util/get-shape-type.js.map +0 -1
- package/lib/geometry/util/group-data.d.ts +0 -3
- package/lib/geometry/util/group-data.js +0 -46
- package/lib/geometry/util/group-data.js.map +0 -1
- package/lib/geometry/util/is-model-change.d.ts +0 -9
- package/lib/geometry/util/is-model-change.js +0 -18
- package/lib/geometry/util/is-model-change.js.map +0 -1
- package/lib/geometry/util/parse-fields.d.ts +0 -2
- package/lib/geometry/util/parse-fields.js +0 -13
- package/lib/geometry/util/parse-fields.js.map +0 -1
- package/lib/geometry/util/shape-size.d.ts +0 -2
- package/lib/geometry/util/shape-size.js +0 -128
- package/lib/geometry/util/shape-size.js.map +0 -1
- package/lib/geometry/violin.d.ts +0 -25
- package/lib/geometry/violin.js +0 -69
- package/lib/geometry/violin.js.map +0 -1
- package/lib/interaction/action/active-region.d.ts +0 -33
- package/lib/interaction/action/active-region.js +0 -230
- package/lib/interaction/action/active-region.js.map +0 -1
- package/lib/interaction/action/base.d.ts +0 -29
- package/lib/interaction/action/base.js +0 -38
- package/lib/interaction/action/base.js.map +0 -1
- package/lib/interaction/action/callback.d.ts +0 -17
- package/lib/interaction/action/callback.js +0 -29
- package/lib/interaction/action/callback.js.map +0 -1
- package/lib/interaction/action/component/axis/axis-description.d.ts +0 -9
- package/lib/interaction/action/component/axis/axis-description.js +0 -75
- package/lib/interaction/action/component/axis/axis-description.js.map +0 -1
- package/lib/interaction/action/component/list-active.d.ts +0 -14
- package/lib/interaction/action/component/list-active.js +0 -26
- package/lib/interaction/action/component/list-active.js.map +0 -1
- package/lib/interaction/action/component/list-checked.d.ts +0 -30
- package/lib/interaction/action/component/list-checked.js +0 -84
- package/lib/interaction/action/component/list-checked.js.map +0 -1
- package/lib/interaction/action/component/list-focus.d.ts +0 -5
- package/lib/interaction/action/component/list-focus.js +0 -94
- package/lib/interaction/action/component/list-focus.js.map +0 -1
- package/lib/interaction/action/component/list-highlight-util.d.ts +0 -7
- package/lib/interaction/action/component/list-highlight-util.js +0 -24
- package/lib/interaction/action/component/list-highlight-util.js.map +0 -1
- package/lib/interaction/action/component/list-highlight.d.ts +0 -20
- package/lib/interaction/action/component/list-highlight.js +0 -99
- package/lib/interaction/action/component/list-highlight.js.map +0 -1
- package/lib/interaction/action/component/list-radio.d.ts +0 -24
- package/lib/interaction/action/component/list-radio.js +0 -118
- package/lib/interaction/action/component/list-radio.js.map +0 -1
- package/lib/interaction/action/component/list-selected.d.ts +0 -10
- package/lib/interaction/action/component/list-selected.js +0 -22
- package/lib/interaction/action/component/list-selected.js.map +0 -1
- package/lib/interaction/action/component/list-state.d.ts +0 -46
- package/lib/interaction/action/component/list-state.js +0 -169
- package/lib/interaction/action/component/list-state.js.map +0 -1
- package/lib/interaction/action/component/list-unchecked.d.ts +0 -13
- package/lib/interaction/action/component/list-unchecked.js +0 -25
- package/lib/interaction/action/component/list-unchecked.js.map +0 -1
- package/lib/interaction/action/component/tooltip/ellipsis-text.d.ts +0 -25
- package/lib/interaction/action/component/tooltip/ellipsis-text.js +0 -95
- package/lib/interaction/action/component/tooltip/ellipsis-text.js.map +0 -1
- package/lib/interaction/action/component/tooltip/geometry.d.ts +0 -24
- package/lib/interaction/action/component/tooltip/geometry.js +0 -73
- package/lib/interaction/action/component/tooltip/geometry.js.map +0 -1
- package/lib/interaction/action/component/tooltip/sibling.d.ts +0 -21
- package/lib/interaction/action/component/tooltip/sibling.js +0 -41
- package/lib/interaction/action/component/tooltip/sibling.js.map +0 -1
- package/lib/interaction/action/cursor.d.ts +0 -77
- package/lib/interaction/action/cursor.js +0 -127
- package/lib/interaction/action/cursor.js.map +0 -1
- package/lib/interaction/action/data/filter.d.ts +0 -13
- package/lib/interaction/action/data/filter.js +0 -68
- package/lib/interaction/action/data/filter.js.map +0 -1
- package/lib/interaction/action/data/range-filter.d.ts +0 -56
- package/lib/interaction/action/data/range-filter.js +0 -166
- package/lib/interaction/action/data/range-filter.js.map +0 -1
- package/lib/interaction/action/data/sibling-filter.d.ts +0 -22
- package/lib/interaction/action/data/sibling-filter.js +0 -41
- package/lib/interaction/action/data/sibling-filter.js.map +0 -1
- package/lib/interaction/action/element/active.d.ts +0 -14
- package/lib/interaction/action/element/active.js +0 -26
- package/lib/interaction/action/element/active.js.map +0 -1
- package/lib/interaction/action/element/filter.d.ts +0 -20
- package/lib/interaction/action/element/filter.js +0 -91
- package/lib/interaction/action/element/filter.js.map +0 -1
- package/lib/interaction/action/element/highlight-by-color.d.ts +0 -10
- package/lib/interaction/action/element/highlight-by-color.js +0 -32
- package/lib/interaction/action/element/highlight-by-color.js.map +0 -1
- package/lib/interaction/action/element/highlight-by-x.d.ts +0 -15
- package/lib/interaction/action/element/highlight-by-x.js +0 -53
- package/lib/interaction/action/element/highlight-by-x.js.map +0 -1
- package/lib/interaction/action/element/highlight-util.d.ts +0 -18
- package/lib/interaction/action/element/highlight-util.js +0 -50
- package/lib/interaction/action/element/highlight-util.js.map +0 -1
- package/lib/interaction/action/element/highlight.d.ts +0 -21
- package/lib/interaction/action/element/highlight.js +0 -96
- package/lib/interaction/action/element/highlight.js.map +0 -1
- package/lib/interaction/action/element/link-by-color.d.ts +0 -51
- package/lib/interaction/action/element/link-by-color.js +0 -158
- package/lib/interaction/action/element/link-by-color.js.map +0 -1
- package/lib/interaction/action/element/range-active.d.ts +0 -13
- package/lib/interaction/action/element/range-active.js +0 -25
- package/lib/interaction/action/element/range-active.js.map +0 -1
- package/lib/interaction/action/element/range-highlight.d.ts +0 -27
- package/lib/interaction/action/element/range-highlight.js +0 -57
- package/lib/interaction/action/element/range-highlight.js.map +0 -1
- package/lib/interaction/action/element/range-selected.d.ts +0 -13
- package/lib/interaction/action/element/range-selected.js +0 -25
- package/lib/interaction/action/element/range-selected.js.map +0 -1
- package/lib/interaction/action/element/range-state.d.ts +0 -38
- package/lib/interaction/action/element/range-state.js +0 -166
- package/lib/interaction/action/element/range-state.js.map +0 -1
- package/lib/interaction/action/element/selected.d.ts +0 -14
- package/lib/interaction/action/element/selected.js +0 -26
- package/lib/interaction/action/element/selected.js.map +0 -1
- package/lib/interaction/action/element/sibling-filter.d.ts +0 -19
- package/lib/interaction/action/element/sibling-filter.js +0 -95
- package/lib/interaction/action/element/sibling-filter.js.map +0 -1
- package/lib/interaction/action/element/single-active.d.ts +0 -13
- package/lib/interaction/action/element/single-active.js +0 -25
- package/lib/interaction/action/element/single-active.js.map +0 -1
- package/lib/interaction/action/element/single-highlight.d.ts +0 -16
- package/lib/interaction/action/element/single-highlight.js +0 -37
- package/lib/interaction/action/element/single-highlight.js.map +0 -1
- package/lib/interaction/action/element/single-selected.d.ts +0 -13
- package/lib/interaction/action/element/single-selected.js +0 -25
- package/lib/interaction/action/element/single-selected.js.map +0 -1
- package/lib/interaction/action/element/single-state.d.ts +0 -18
- package/lib/interaction/action/element/single-state.js +0 -55
- package/lib/interaction/action/element/single-state.js.map +0 -1
- package/lib/interaction/action/element/state-base.d.ts +0 -39
- package/lib/interaction/action/element/state-base.js +0 -61
- package/lib/interaction/action/element/state-base.js.map +0 -1
- package/lib/interaction/action/element/state.d.ts +0 -28
- package/lib/interaction/action/element/state.js +0 -101
- package/lib/interaction/action/element/state.js.map +0 -1
- package/lib/interaction/action/mask/base.d.ts +0 -62
- package/lib/interaction/action/mask/base.js +0 -171
- package/lib/interaction/action/mask/base.js.map +0 -1
- package/lib/interaction/action/mask/circle.d.ts +0 -14
- package/lib/interaction/action/mask/circle.js +0 -39
- package/lib/interaction/action/mask/circle.js.map +0 -1
- package/lib/interaction/action/mask/dim-rect.d.ts +0 -11
- package/lib/interaction/action/mask/dim-rect.js +0 -64
- package/lib/interaction/action/mask/dim-rect.js.map +0 -1
- package/lib/interaction/action/mask/path.d.ts +0 -16
- package/lib/interaction/action/mask/path.js +0 -46
- package/lib/interaction/action/mask/path.js.map +0 -1
- package/lib/interaction/action/mask/rect.d.ts +0 -17
- package/lib/interaction/action/mask/rect.js +0 -41
- package/lib/interaction/action/mask/rect.js.map +0 -1
- package/lib/interaction/action/mask/smooth-path.d.ts +0 -9
- package/lib/interaction/action/mask/smooth-path.js +0 -23
- package/lib/interaction/action/mask/smooth-path.js.map +0 -1
- package/lib/interaction/action/register.d.ts +0 -36
- package/lib/interaction/action/register.js +0 -69
- package/lib/interaction/action/register.js.map +0 -1
- package/lib/interaction/action/util.d.ts +0 -140
- package/lib/interaction/action/util.js +0 -387
- package/lib/interaction/action/util.js.map +0 -1
- package/lib/interaction/action/view/button.d.ts +0 -25
- package/lib/interaction/action/view/button.js +0 -118
- package/lib/interaction/action/view/button.js.map +0 -1
- package/lib/interaction/action/view/drag.d.ts +0 -24
- package/lib/interaction/action/view/drag.js +0 -75
- package/lib/interaction/action/view/drag.js.map +0 -1
- package/lib/interaction/action/view/mousewheel-scroll.d.ts +0 -5
- package/lib/interaction/action/view/mousewheel-scroll.js +0 -37
- package/lib/interaction/action/view/mousewheel-scroll.js.map +0 -1
- package/lib/interaction/action/view/move.d.ts +0 -28
- package/lib/interaction/action/view/move.js +0 -82
- package/lib/interaction/action/view/move.js.map +0 -1
- package/lib/interaction/action/view/scale-transform.d.ts +0 -18
- package/lib/interaction/action/view/scale-transform.js +0 -53
- package/lib/interaction/action/view/scale-transform.js.map +0 -1
- package/lib/interaction/action/view/scale-translate.d.ts +0 -30
- package/lib/interaction/action/view/scale-translate.js +0 -114
- package/lib/interaction/action/view/scale-translate.js.map +0 -1
- package/lib/interaction/action/view/scale-zoom.d.ts +0 -20
- package/lib/interaction/action/view/scale-zoom.js +0 -85
- package/lib/interaction/action/view/scale-zoom.js.map +0 -1
- package/lib/interaction/context.d.ts +0 -65
- package/lib/interaction/context.js +0 -144
- package/lib/interaction/context.js.map +0 -1
- package/lib/interaction/grammar-interaction.d.ts +0 -158
- package/lib/interaction/grammar-interaction.js +0 -289
- package/lib/interaction/grammar-interaction.js.map +0 -1
- package/lib/interaction/interaction.d.ts +0 -29
- package/lib/interaction/interaction.js +0 -34
- package/lib/interaction/interaction.js.map +0 -1
- package/lib/interface.d.ts +0 -3686
- package/lib/interface.js +0 -3
- package/lib/interface.js.map +0 -1
- package/lib/theme/style-sheet/dark.d.ts +0 -545
- package/lib/theme/style-sheet/dark.js +0 -504
- package/lib/theme/style-sheet/dark.js.map +0 -1
- package/lib/theme/style-sheet/light.d.ts +0 -541
- package/lib/theme/style-sheet/light.js +0 -500
- package/lib/theme/style-sheet/light.js.map +0 -1
- package/lib/theme/util/create-by-style-sheet.d.ts +0 -6
- package/lib/theme/util/create-by-style-sheet.js +0 -1429
- package/lib/theme/util/create-by-style-sheet.js.map +0 -1
- package/lib/theme/util/create-theme.d.ts +0 -6
- package/lib/theme/util/create-theme.js +0 -16
- package/lib/theme/util/create-theme.js.map +0 -1
- package/lib/theme/util/index.d.ts +0 -1
- package/lib/theme/util/index.js +0 -6
- package/lib/theme/util/index.js.map +0 -1
- package/lib/util/annotation.d.ts +0 -7
- package/lib/util/annotation.js +0 -43
- package/lib/util/annotation.js.map +0 -1
- package/lib/util/attr.d.ts +0 -10
- package/lib/util/attr.js +0 -29
- package/lib/util/attr.js.map +0 -1
- package/lib/util/axis.d.ts +0 -100
- package/lib/util/axis.js +0 -251
- package/lib/util/axis.js.map +0 -1
- package/lib/util/bbox.d.ts +0 -105
- package/lib/util/bbox.js +0 -288
- package/lib/util/bbox.js.map +0 -1
- package/lib/util/collision-detect.d.ts +0 -20
- package/lib/util/collision-detect.js +0 -134
- package/lib/util/collision-detect.js.map +0 -1
- package/lib/util/color.d.ts +0 -1
- package/lib/util/color.js +0 -23
- package/lib/util/color.js.map +0 -1
- package/lib/util/context.d.ts +0 -4
- package/lib/util/context.js +0 -15
- package/lib/util/context.js.map +0 -1
- package/lib/util/coordinate.d.ts +0 -86
- package/lib/util/coordinate.js +0 -157
- package/lib/util/coordinate.js.map +0 -1
- package/lib/util/direction.d.ts +0 -19
- package/lib/util/direction.js +0 -125
- package/lib/util/direction.js.map +0 -1
- package/lib/util/dom.d.ts +0 -19
- package/lib/util/dom.js +0 -68
- package/lib/util/dom.js.map +0 -1
- package/lib/util/event.d.ts +0 -8
- package/lib/util/event.js +0 -18
- package/lib/util/event.js.map +0 -1
- package/lib/util/facet.d.ts +0 -16
- package/lib/util/facet.js +0 -48
- package/lib/util/facet.js.map +0 -1
- package/lib/util/graphics.d.ts +0 -58
- package/lib/util/graphics.js +0 -212
- package/lib/util/graphics.js.map +0 -1
- package/lib/util/grid.d.ts +0 -36
- package/lib/util/grid.js +0 -125
- package/lib/util/grid.js.map +0 -1
- package/lib/util/helper.d.ts +0 -34
- package/lib/util/helper.js +0 -90
- package/lib/util/helper.js.map +0 -1
- package/lib/util/legend.d.ts +0 -45
- package/lib/util/legend.js +0 -152
- package/lib/util/legend.js.map +0 -1
- package/lib/util/marker.d.ts +0 -10
- package/lib/util/marker.js +0 -61
- package/lib/util/marker.js.map +0 -1
- package/lib/util/padding.d.ts +0 -14
- package/lib/util/padding.js +0 -45
- package/lib/util/padding.js.map +0 -1
- package/lib/util/scale.d.ts +0 -42
- package/lib/util/scale.js +0 -138
- package/lib/util/scale.js.map +0 -1
- package/lib/util/stat.d.ts +0 -10
- package/lib/util/stat.js +0 -41
- package/lib/util/stat.js.map +0 -1
- package/lib/util/text.d.ts +0 -23
- package/lib/util/text.js +0 -88
- package/lib/util/text.js.map +0 -1
- package/lib/util/tooltip.d.ts +0 -26
- package/lib/util/tooltip.js +0 -476
- package/lib/util/tooltip.js.map +0 -1
- package/lib/util/transform.d.ts +0 -33
- package/lib/util/transform.js +0 -69
- package/lib/util/transform.js.map +0 -1
- package/lib/util/types.d.ts +0 -6
- package/lib/util/types.js.map +0 -1
- package/src/animate/animation/fade.ts +0 -52
- package/src/animate/animation/grow-in.ts +0 -44
- package/src/animate/animation/index.ts +0 -29
- package/src/animate/animation/path-in.ts +0 -24
- package/src/animate/animation/position-update.ts +0 -33
- package/src/animate/animation/scale-in.ts +0 -75
- package/src/animate/animation/sector-path-update.ts +0 -159
- package/src/animate/animation/util.ts +0 -104
- package/src/animate/animation/wave-in.ts +0 -37
- package/src/animate/animation/zoom.ts +0 -78
- package/src/animate/index.ts +0 -268
- package/src/animate/interface.ts +0 -19
- package/src/api.ts +0 -3
- package/src/base.ts +0 -61
- package/src/chart/chart.ts +0 -218
- package/src/chart/controller/annotation.ts +0 -763
- package/src/chart/controller/axis.ts +0 -699
- package/src/chart/controller/base.ts +0 -105
- package/src/chart/controller/coordinate.ts +0 -177
- package/src/chart/controller/gesture.ts +0 -293
- package/src/chart/controller/index.ts +0 -39
- package/src/chart/controller/legend.ts +0 -566
- package/src/chart/controller/scrollbar.ts +0 -392
- package/src/chart/controller/slider.ts +0 -360
- package/src/chart/controller/tooltip.ts +0 -751
- package/src/chart/event.ts +0 -86
- package/src/chart/index.ts +0 -5
- package/src/chart/layout/auto.ts +0 -76
- package/src/chart/layout/constraint/bounds.ts +0 -51
- package/src/chart/layout/constraint/constraint.ts +0 -97
- package/src/chart/layout/constraint/gauss.ts +0 -71
- package/src/chart/layout/constraint/index.ts +0 -30
- package/src/chart/layout/constraint/solver.ts +0 -97
- package/src/chart/layout/constraint/types.ts +0 -29
- package/src/chart/layout/constraint/variable.ts +0 -33
- package/src/chart/layout/index.ts +0 -33
- package/src/chart/layout/padding-cal.ts +0 -123
- package/src/chart/util/scale-pool.ts +0 -250
- package/src/chart/util/sync-view-padding.ts +0 -17
- package/src/chart/view.ts +0 -2112
- package/src/component/labels.ts +0 -331
- package/src/component/update-label.ts +0 -69
- package/src/constant.ts +0 -143
- package/src/core.ts +0 -81
- package/src/dependents.ts +0 -99
- package/src/engine/index.ts +0 -27
- package/src/facet/circle.ts +0 -135
- package/src/facet/facet.ts +0 -373
- package/src/facet/index.ts +0 -25
- package/src/facet/list.ts +0 -167
- package/src/facet/matrix.ts +0 -149
- package/src/facet/mirror.ts +0 -167
- package/src/facet/rect.ts +0 -177
- package/src/facet/tree.ts +0 -317
- package/src/geometry/area.ts +0 -76
- package/src/geometry/base.ts +0 -2145
- package/src/geometry/edge.ts +0 -16
- package/src/geometry/element/index.ts +0 -519
- package/src/geometry/heatmap.ts +0 -223
- package/src/geometry/interval.ts +0 -109
- package/src/geometry/label/base.ts +0 -458
- package/src/geometry/label/index.ts +0 -59
- package/src/geometry/label/interface.ts +0 -65
- package/src/geometry/label/interval.ts +0 -160
- package/src/geometry/label/layout/adjust-color.ts +0 -40
- package/src/geometry/label/layout/hide-overlap.ts +0 -85
- package/src/geometry/label/layout/interval/adjust-position.ts +0 -72
- package/src/geometry/label/layout/interval/hide-overlap.ts +0 -86
- package/src/geometry/label/layout/limit-in-canvas.ts +0 -48
- package/src/geometry/label/layout/limit-in-plot.ts +0 -99
- package/src/geometry/label/layout/limit-in-shape.ts +0 -22
- package/src/geometry/label/layout/overlap.ts +0 -251
- package/src/geometry/label/layout/path/adjust-position.ts +0 -129
- package/src/geometry/label/layout/pie/distribute.ts +0 -203
- package/src/geometry/label/layout/pie/outer.ts +0 -247
- package/src/geometry/label/layout/pie/spider.ts +0 -201
- package/src/geometry/label/layout/pie/util.ts +0 -85
- package/src/geometry/label/layout/point/adjust-position.ts +0 -129
- package/src/geometry/label/layout/worker/hide-overlap.ts +0 -192
- package/src/geometry/label/pie.ts +0 -97
- package/src/geometry/label/polar.ts +0 -225
- package/src/geometry/label/util/createWorker.ts +0 -15
- package/src/geometry/label/util/index.ts +0 -81
- package/src/geometry/line.ts +0 -18
- package/src/geometry/path.ts +0 -140
- package/src/geometry/point.ts +0 -28
- package/src/geometry/polygon.ts +0 -55
- package/src/geometry/schema.ts +0 -43
- package/src/geometry/shape/area/index.ts +0 -50
- package/src/geometry/shape/area/line.ts +0 -33
- package/src/geometry/shape/area/smooth-line.ts +0 -33
- package/src/geometry/shape/area/smooth.ts +0 -35
- package/src/geometry/shape/area/util.ts +0 -111
- package/src/geometry/shape/base.ts +0 -191
- package/src/geometry/shape/constant.ts +0 -4
- package/src/geometry/shape/edge/arc.ts +0 -104
- package/src/geometry/shape/edge/index.ts +0 -38
- package/src/geometry/shape/edge/smooth.ts +0 -37
- package/src/geometry/shape/edge/util.ts +0 -36
- package/src/geometry/shape/edge/vhv.ts +0 -51
- package/src/geometry/shape/interval/funnel.ts +0 -36
- package/src/geometry/shape/interval/hollow-rect.ts +0 -62
- package/src/geometry/shape/interval/index.ts +0 -79
- package/src/geometry/shape/interval/line.ts +0 -63
- package/src/geometry/shape/interval/pyramid.ts +0 -37
- package/src/geometry/shape/interval/tick.ts +0 -86
- package/src/geometry/shape/interval/util.ts +0 -348
- package/src/geometry/shape/line/index.ts +0 -141
- package/src/geometry/shape/line/step.ts +0 -97
- package/src/geometry/shape/line/util.ts +0 -85
- package/src/geometry/shape/point/hollow.ts +0 -27
- package/src/geometry/shape/point/image.ts +0 -51
- package/src/geometry/shape/point/index.ts +0 -37
- package/src/geometry/shape/point/solid.ts +0 -26
- package/src/geometry/shape/point/util.ts +0 -54
- package/src/geometry/shape/polygon/index.ts +0 -78
- package/src/geometry/shape/polygon/square.ts +0 -52
- package/src/geometry/shape/schema/box.ts +0 -154
- package/src/geometry/shape/schema/candle.ts +0 -90
- package/src/geometry/shape/schema/index.ts +0 -7
- package/src/geometry/shape/util/get-path-points.ts +0 -136
- package/src/geometry/shape/util/get-style.ts +0 -56
- package/src/geometry/shape/util/path.ts +0 -348
- package/src/geometry/shape/util/split-points.ts +0 -26
- package/src/geometry/shape/violin/hollow.ts +0 -59
- package/src/geometry/shape/violin/index.ts +0 -69
- package/src/geometry/shape/violin/smooth.ts +0 -32
- package/src/geometry/util/diff.ts +0 -29
- package/src/geometry/util/get-shape-type.ts +0 -17
- package/src/geometry/util/group-data.ts +0 -30
- package/src/geometry/util/is-model-change.ts +0 -18
- package/src/geometry/util/parse-fields.ts +0 -10
- package/src/geometry/util/shape-size.ts +0 -128
- package/src/geometry/violin.ts +0 -64
- package/src/interaction/action/active-region.ts +0 -216
- package/src/interaction/action/base.ts +0 -49
- package/src/interaction/action/callback.ts +0 -25
- package/src/interaction/action/component/axis/axis-description.ts +0 -84
- package/src/interaction/action/component/list-active.ts +0 -18
- package/src/interaction/action/component/list-checked.ts +0 -84
- package/src/interaction/action/component/list-focus.ts +0 -36
- package/src/interaction/action/component/list-highlight-util.ts +0 -22
- package/src/interaction/action/component/list-highlight.ts +0 -93
- package/src/interaction/action/component/list-radio.ts +0 -128
- package/src/interaction/action/component/list-selected.ts +0 -14
- package/src/interaction/action/component/list-state.ts +0 -175
- package/src/interaction/action/component/list-unchecked.ts +0 -17
- package/src/interaction/action/component/tooltip/ellipsis-text.ts +0 -102
- package/src/interaction/action/component/tooltip/geometry.ts +0 -77
- package/src/interaction/action/component/tooltip/sibling.ts +0 -36
- package/src/interaction/action/cursor.ts +0 -129
- package/src/interaction/action/data/filter.ts +0 -59
- package/src/interaction/action/data/range-filter.ts +0 -173
- package/src/interaction/action/data/sibling-filter.ts +0 -38
- package/src/interaction/action/element/active.ts +0 -18
- package/src/interaction/action/element/filter.ts +0 -88
- package/src/interaction/action/element/highlight-by-color.ts +0 -26
- package/src/interaction/action/element/highlight-by-x.ts +0 -48
- package/src/interaction/action/element/highlight-util.ts +0 -50
- package/src/interaction/action/element/highlight.ts +0 -93
- package/src/interaction/action/element/link-by-color.ts +0 -161
- package/src/interaction/action/element/range-active.ts +0 -17
- package/src/interaction/action/element/range-highlight.ts +0 -54
- package/src/interaction/action/element/range-selected.ts +0 -17
- package/src/interaction/action/element/range-state.ts +0 -162
- package/src/interaction/action/element/selected.ts +0 -18
- package/src/interaction/action/element/sibling-filter.ts +0 -85
- package/src/interaction/action/element/single-active.ts +0 -17
- package/src/interaction/action/element/single-highlight.ts +0 -33
- package/src/interaction/action/element/single-selected.ts +0 -17
- package/src/interaction/action/element/single-state.ts +0 -49
- package/src/interaction/action/element/state-base.ts +0 -63
- package/src/interaction/action/element/state.ts +0 -110
- package/src/interaction/action/mask/base.ts +0 -182
- package/src/interaction/action/mask/circle.ts +0 -31
- package/src/interaction/action/mask/dim-rect.ts +0 -57
- package/src/interaction/action/mask/path.ts +0 -40
- package/src/interaction/action/mask/rect.ts +0 -34
- package/src/interaction/action/mask/smooth-path.ts +0 -16
- package/src/interaction/action/register.ts +0 -76
- package/src/interaction/action/util.ts +0 -386
- package/src/interaction/action/view/button.ts +0 -125
- package/src/interaction/action/view/drag.ts +0 -73
- package/src/interaction/action/view/mousewheel-scroll.ts +0 -38
- package/src/interaction/action/view/move.ts +0 -79
- package/src/interaction/action/view/scale-transform.ts +0 -49
- package/src/interaction/action/view/scale-translate.ts +0 -111
- package/src/interaction/action/view/scale-zoom.ts +0 -80
- package/src/interaction/context.ts +0 -150
- package/src/interaction/grammar-interaction.ts +0 -417
- package/src/interaction/interaction.ts +0 -43
- package/src/interface.ts +0 -3956
- package/src/theme/style-sheet/dark.ts +0 -564
- package/src/theme/style-sheet/light.ts +0 -560
- package/src/theme/util/create-by-style-sheet.ts +0 -1461
- package/src/theme/util/create-theme.ts +0 -17
- package/src/theme/util/index.ts +0 -1
- package/src/util/annotation.ts +0 -42
- package/src/util/attr.ts +0 -26
- package/src/util/axis.ts +0 -261
- package/src/util/bbox.ts +0 -271
- package/src/util/collision-detect.ts +0 -163
- package/src/util/color.ts +0 -21
- package/src/util/context.ts +0 -12
- package/src/util/coordinate.ts +0 -160
- package/src/util/direction.ts +0 -138
- package/src/util/dom.ts +0 -73
- package/src/util/event.ts +0 -14
- package/src/util/facet.ts +0 -48
- package/src/util/graphics.ts +0 -236
- package/src/util/grid.ts +0 -135
- package/src/util/helper.ts +0 -74
- package/src/util/legend.ts +0 -174
- package/src/util/marker.ts +0 -57
- package/src/util/padding.ts +0 -42
- package/src/util/scale.ts +0 -146
- package/src/util/stat.ts +0 -45
- package/src/util/text.ts +0 -106
- package/src/util/tooltip.ts +0 -482
- package/src/util/transform.ts +0 -69
- package/src/util/types.ts +0 -4
package/lib/geometry/base.js
DELETED
|
@@ -1,1558 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var tslib_1 = require("tslib");
|
|
4
|
-
var adjust_1 = require("@antv/adjust");
|
|
5
|
-
var attr_1 = require("@antv/attr");
|
|
6
|
-
var util_1 = require("@antv/util");
|
|
7
|
-
var animate_1 = require("../animate");
|
|
8
|
-
var base_1 = tslib_1.__importDefault(require("../base"));
|
|
9
|
-
var constant_1 = require("../constant");
|
|
10
|
-
var helper_1 = require("../util/helper");
|
|
11
|
-
var element_1 = tslib_1.__importDefault(require("./element"));
|
|
12
|
-
var label_1 = require("./label");
|
|
13
|
-
var base_2 = require("./shape/base");
|
|
14
|
-
var group_data_1 = require("./util/group-data");
|
|
15
|
-
var is_model_change_1 = require("./util/is-model-change");
|
|
16
|
-
var parse_fields_1 = require("./util/parse-fields");
|
|
17
|
-
var diff_1 = require("./util/diff");
|
|
18
|
-
var scale_1 = require("../util/scale");
|
|
19
|
-
var coordinate_1 = require("../util/coordinate");
|
|
20
|
-
/**
|
|
21
|
-
* Geometry 几何标记基类,主要负责数据到图形属性的映射以及绘制逻辑。
|
|
22
|
-
*/
|
|
23
|
-
var Geometry = /** @class */ (function (_super) {
|
|
24
|
-
tslib_1.__extends(Geometry, _super);
|
|
25
|
-
/**
|
|
26
|
-
* 创建 Geometry 实例。
|
|
27
|
-
* @param cfg
|
|
28
|
-
*/
|
|
29
|
-
function Geometry(cfg) {
|
|
30
|
-
var _this = _super.call(this, cfg) || this;
|
|
31
|
-
/** Geometry 几何标记类型。 */
|
|
32
|
-
_this.type = 'base';
|
|
33
|
-
// 内部产生的属性
|
|
34
|
-
/** Attribute map */
|
|
35
|
-
_this.attributes = {};
|
|
36
|
-
/** Element map */
|
|
37
|
-
_this.elements = [];
|
|
38
|
-
/** 使用 key-value 结构存储 Element,key 为每个 Element 实例对应的唯一 ID */
|
|
39
|
-
_this.elementsMap = {};
|
|
40
|
-
/** animate 配置项 */
|
|
41
|
-
_this.animateOption = true;
|
|
42
|
-
/** 图形属性映射配置 */
|
|
43
|
-
_this.attributeOption = {};
|
|
44
|
-
/** 存储上一次渲染时的 element 映射表,用于更新逻辑 */
|
|
45
|
-
_this.lastElementsMap = {};
|
|
46
|
-
/** 是否生成多个点来绘制图形。 */
|
|
47
|
-
_this.generatePoints = false;
|
|
48
|
-
/** 存储发生图形属性映射前的数据 */
|
|
49
|
-
_this.beforeMappingData = null;
|
|
50
|
-
_this.adjusts = {};
|
|
51
|
-
_this.idFields = [];
|
|
52
|
-
_this.hasSorted = false;
|
|
53
|
-
_this.isCoordinateChanged = false;
|
|
54
|
-
var container = cfg.container, labelsContainer = cfg.labelsContainer, coordinate = cfg.coordinate, data = cfg.data, _a = cfg.sortable, sortable = _a === void 0 ? false : _a, _b = cfg.visible, visible = _b === void 0 ? true : _b, theme = cfg.theme, _c = cfg.scales, scales = _c === void 0 ? {} : _c, _d = cfg.scaleDefs, scaleDefs = _d === void 0 ? {} : _d,
|
|
55
|
-
// 柱状图间隔与宽度相关配置
|
|
56
|
-
intervalPadding = cfg.intervalPadding, dodgePadding = cfg.dodgePadding, maxColumnWidth = cfg.maxColumnWidth, minColumnWidth = cfg.minColumnWidth, columnWidthRatio = cfg.columnWidthRatio, roseWidthRatio = cfg.roseWidthRatio, multiplePieWidthRatio = cfg.multiplePieWidthRatio, zIndexReversed = cfg.zIndexReversed, sortZIndex = cfg.sortZIndex, useDeferredLabel = cfg.useDeferredLabel;
|
|
57
|
-
_this.container = container;
|
|
58
|
-
_this.labelsContainer = labelsContainer;
|
|
59
|
-
_this.coordinate = coordinate;
|
|
60
|
-
_this.data = data;
|
|
61
|
-
_this.sortable = sortable;
|
|
62
|
-
_this.visible = visible;
|
|
63
|
-
_this.userTheme = theme;
|
|
64
|
-
_this.scales = scales;
|
|
65
|
-
_this.scaleDefs = scaleDefs;
|
|
66
|
-
// 柱状图间隔与宽度相关配置
|
|
67
|
-
_this.intervalPadding = intervalPadding;
|
|
68
|
-
_this.dodgePadding = dodgePadding;
|
|
69
|
-
_this.maxColumnWidth = maxColumnWidth;
|
|
70
|
-
_this.minColumnWidth = minColumnWidth;
|
|
71
|
-
_this.columnWidthRatio = columnWidthRatio;
|
|
72
|
-
_this.roseWidthRatio = roseWidthRatio;
|
|
73
|
-
_this.multiplePieWidthRatio = multiplePieWidthRatio;
|
|
74
|
-
_this.zIndexReversed = zIndexReversed;
|
|
75
|
-
_this.sortZIndex = sortZIndex;
|
|
76
|
-
_this.useDeferredLabel = useDeferredLabel ? (typeof useDeferredLabel === 'number' ? useDeferredLabel : Infinity) : null;
|
|
77
|
-
return _this;
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* 配置 position 通道映射规则。
|
|
81
|
-
*
|
|
82
|
-
* @example
|
|
83
|
-
* ```typescript
|
|
84
|
-
* // 数据结构: [{ x: 'A', y: 10, color: 'red' }]
|
|
85
|
-
* geometry.position('x*y');
|
|
86
|
-
* geometry.position([ 'x', 'y' ]);
|
|
87
|
-
* geometry.position({
|
|
88
|
-
* fields: [ 'x', 'y' ],
|
|
89
|
-
* });
|
|
90
|
-
* ```
|
|
91
|
-
*
|
|
92
|
-
* @param cfg 映射规则
|
|
93
|
-
* @returns
|
|
94
|
-
*/
|
|
95
|
-
Geometry.prototype.position = function (cfg) {
|
|
96
|
-
var positionCfg = cfg;
|
|
97
|
-
if (!(0, util_1.isPlainObject)(cfg)) {
|
|
98
|
-
// 字符串字段或者数组字段
|
|
99
|
-
positionCfg = {
|
|
100
|
-
fields: (0, parse_fields_1.parseFields)(cfg),
|
|
101
|
-
};
|
|
102
|
-
}
|
|
103
|
-
var fields = (0, util_1.get)(positionCfg, 'fields');
|
|
104
|
-
if (fields.length === 1) {
|
|
105
|
-
// 默认填充一维 1*xx
|
|
106
|
-
fields.unshift('1');
|
|
107
|
-
(0, util_1.set)(positionCfg, 'fields', fields);
|
|
108
|
-
}
|
|
109
|
-
(0, util_1.set)(this.attributeOption, 'position', positionCfg);
|
|
110
|
-
return this;
|
|
111
|
-
};
|
|
112
|
-
Geometry.prototype.color = function (field, cfg) {
|
|
113
|
-
this.createAttrOption('color', field, cfg);
|
|
114
|
-
return this;
|
|
115
|
-
};
|
|
116
|
-
Geometry.prototype.shape = function (field, cfg) {
|
|
117
|
-
this.createAttrOption('shape', field, cfg);
|
|
118
|
-
return this;
|
|
119
|
-
};
|
|
120
|
-
Geometry.prototype.size = function (field, cfg) {
|
|
121
|
-
this.createAttrOption('size', field, cfg);
|
|
122
|
-
return this;
|
|
123
|
-
};
|
|
124
|
-
/**
|
|
125
|
-
* 设置数据调整方式。G2 目前内置了四种类型:
|
|
126
|
-
* 1. dodge
|
|
127
|
-
* 2. stack
|
|
128
|
-
* 3. symmetric
|
|
129
|
-
* 4. jitter
|
|
130
|
-
*
|
|
131
|
-
*
|
|
132
|
-
* **Tip**
|
|
133
|
-
* + 对于 'dodge' 类型,可以额外进行如下属性的配置:
|
|
134
|
-
* ```typescript
|
|
135
|
-
* geometry.adjust('dodge', {
|
|
136
|
-
* marginRatio: 0, // 取 0 到 1 范围的值(相对于每个柱子宽度),用于控制一个分组中柱子之间的间距
|
|
137
|
-
* dodgeBy: 'x', // 该属性只对 'dodge' 类型生效,声明以哪个数据字段为分组依据
|
|
138
|
-
* });
|
|
139
|
-
* ```
|
|
140
|
-
*
|
|
141
|
-
* + 对于 'stack' 类型,可以额外进行如下属性的配置:
|
|
142
|
-
* ```typescript
|
|
143
|
-
* geometry.adjust('stack', {
|
|
144
|
-
* reverseOrder: false, // 用于控制是否对数据进行反序操作
|
|
145
|
-
* });
|
|
146
|
-
* ```
|
|
147
|
-
*
|
|
148
|
-
* @example
|
|
149
|
-
* ```typescript
|
|
150
|
-
* geometry.adjust('stack');
|
|
151
|
-
*
|
|
152
|
-
* geometry.adjust({
|
|
153
|
-
* type: 'stack',
|
|
154
|
-
* reverseOrder: false,
|
|
155
|
-
* });
|
|
156
|
-
*
|
|
157
|
-
* // 组合使用 adjust
|
|
158
|
-
* geometry.adjust([ 'stack', 'dodge' ]);
|
|
159
|
-
*
|
|
160
|
-
* geometry.adjust([
|
|
161
|
-
* { type: 'stack' },
|
|
162
|
-
* { type: 'dodge', dodgeBy: 'x' },
|
|
163
|
-
* ]);
|
|
164
|
-
* ```
|
|
165
|
-
*
|
|
166
|
-
* @param adjustCfg 数据调整配置
|
|
167
|
-
* @returns
|
|
168
|
-
*/
|
|
169
|
-
Geometry.prototype.adjust = function (adjustCfg) {
|
|
170
|
-
var adjusts = adjustCfg;
|
|
171
|
-
if ((0, util_1.isString)(adjustCfg) || (0, util_1.isPlainObject)(adjustCfg)) {
|
|
172
|
-
adjusts = [adjustCfg];
|
|
173
|
-
}
|
|
174
|
-
(0, util_1.each)(adjusts, function (adjust, index) {
|
|
175
|
-
if (!(0, util_1.isObject)(adjust)) {
|
|
176
|
-
adjusts[index] = { type: adjust };
|
|
177
|
-
}
|
|
178
|
-
});
|
|
179
|
-
this.adjustOption = adjusts;
|
|
180
|
-
return this;
|
|
181
|
-
};
|
|
182
|
-
Geometry.prototype.style = function (field, styleFunc) {
|
|
183
|
-
if ((0, util_1.isString)(field)) {
|
|
184
|
-
var fields = (0, parse_fields_1.parseFields)(field);
|
|
185
|
-
this.styleOption = {
|
|
186
|
-
fields: fields,
|
|
187
|
-
callback: styleFunc,
|
|
188
|
-
};
|
|
189
|
-
}
|
|
190
|
-
else {
|
|
191
|
-
var _a = field, fields = _a.fields, callback = _a.callback, cfg = _a.cfg;
|
|
192
|
-
if (fields || callback || cfg) {
|
|
193
|
-
this.styleOption = field;
|
|
194
|
-
}
|
|
195
|
-
else {
|
|
196
|
-
this.styleOption = {
|
|
197
|
-
cfg: field,
|
|
198
|
-
};
|
|
199
|
-
}
|
|
200
|
-
}
|
|
201
|
-
return this;
|
|
202
|
-
};
|
|
203
|
-
Geometry.prototype.tooltip = function (field, cfg) {
|
|
204
|
-
if ((0, util_1.isString)(field)) {
|
|
205
|
-
var fields = (0, parse_fields_1.parseFields)(field);
|
|
206
|
-
this.tooltipOption = {
|
|
207
|
-
fields: fields,
|
|
208
|
-
callback: cfg,
|
|
209
|
-
};
|
|
210
|
-
}
|
|
211
|
-
else {
|
|
212
|
-
this.tooltipOption = field;
|
|
213
|
-
}
|
|
214
|
-
return this;
|
|
215
|
-
};
|
|
216
|
-
/**
|
|
217
|
-
* Geometry 动画配置。
|
|
218
|
-
*
|
|
219
|
-
* + `animate(false)` 关闭动画
|
|
220
|
-
* + `animate(true)` 开启动画,默认开启。
|
|
221
|
-
*
|
|
222
|
-
* 我们将动画分为四个场景:
|
|
223
|
-
* 1. appear: 图表第一次加载时的入场动画;
|
|
224
|
-
* 2. enter: 图表绘制完成,发生更新后,产生的新图形的进场动画;
|
|
225
|
-
* 3. update: 图表绘制完成,数据发生变更后,有状态变更的图形的更新动画;
|
|
226
|
-
* 4. leave: 图表绘制完成,数据发生变更后,被销毁图形的销毁动画。
|
|
227
|
-
*
|
|
228
|
-
* @example
|
|
229
|
-
* ```typescript
|
|
230
|
-
* animate({
|
|
231
|
-
* enter: {
|
|
232
|
-
* duration: 1000, // enter 动画执行时间
|
|
233
|
-
* },
|
|
234
|
-
* leave: false, // 关闭 leave 销毁动画
|
|
235
|
-
* });
|
|
236
|
-
* ```
|
|
237
|
-
*
|
|
238
|
-
* @param cfg 动画配置
|
|
239
|
-
* @returns
|
|
240
|
-
*/
|
|
241
|
-
Geometry.prototype.animate = function (cfg) {
|
|
242
|
-
this.animateOption = cfg;
|
|
243
|
-
return this;
|
|
244
|
-
};
|
|
245
|
-
Geometry.prototype.label = function (field, secondParam, thirdParam) {
|
|
246
|
-
if ((0, util_1.isString)(field)) {
|
|
247
|
-
var labelOption = {};
|
|
248
|
-
var fields = (0, parse_fields_1.parseFields)(field);
|
|
249
|
-
labelOption.fields = fields;
|
|
250
|
-
if ((0, util_1.isFunction)(secondParam)) {
|
|
251
|
-
labelOption.callback = secondParam;
|
|
252
|
-
}
|
|
253
|
-
else if ((0, util_1.isPlainObject)(secondParam)) {
|
|
254
|
-
labelOption.cfg = secondParam;
|
|
255
|
-
}
|
|
256
|
-
if (thirdParam) {
|
|
257
|
-
labelOption.cfg = thirdParam;
|
|
258
|
-
}
|
|
259
|
-
this.labelOption = labelOption;
|
|
260
|
-
}
|
|
261
|
-
else {
|
|
262
|
-
this.labelOption = field;
|
|
263
|
-
}
|
|
264
|
-
return this;
|
|
265
|
-
};
|
|
266
|
-
/**
|
|
267
|
-
* 设置状态对应的样式。
|
|
268
|
-
*
|
|
269
|
-
* @example
|
|
270
|
-
* ```ts
|
|
271
|
-
* chart.interval().state({
|
|
272
|
-
* selected: {
|
|
273
|
-
* animate: { duration: 100, easing: 'easeLinear' },
|
|
274
|
-
* style: {
|
|
275
|
-
* lineWidth: 2,
|
|
276
|
-
* stroke: '#000',
|
|
277
|
-
* },
|
|
278
|
-
* },
|
|
279
|
-
* });
|
|
280
|
-
* ```
|
|
281
|
-
*
|
|
282
|
-
* 如果图形 shape 是由多个 shape 组成,即为一个 G.Group 对象,那么针对 group 中的每个 shape,我们需要使用下列方式进行状态样式设置:
|
|
283
|
-
* 如果我们为 group 中的每个 shape 设置了 'name' 属性(shape.set('name', 'xx')),则以 'name' 作为 key,否则默认以索引值(即 shape 的 添加顺序)为 key。
|
|
284
|
-
*
|
|
285
|
-
* ```ts
|
|
286
|
-
* chart.interval().shape('groupShape').state({
|
|
287
|
-
* selected: {
|
|
288
|
-
* style: {
|
|
289
|
-
* 0: { lineWidth: 2 },
|
|
290
|
-
* 1: { fillOpacity: 1 },
|
|
291
|
-
* }
|
|
292
|
-
* }
|
|
293
|
-
* });
|
|
294
|
-
* ```
|
|
295
|
-
*
|
|
296
|
-
* @param cfg 状态样式
|
|
297
|
-
*/
|
|
298
|
-
Geometry.prototype.state = function (cfg) {
|
|
299
|
-
this.stateOption = cfg;
|
|
300
|
-
return this;
|
|
301
|
-
};
|
|
302
|
-
/**
|
|
303
|
-
* 用于向 shape 中传入自定义的数据。目前可能仅仅可能用于在自定义 shape 的时候,像自定义 shape 中传入自定义的数据,方便实现自定义 shape 的配置能力。
|
|
304
|
-
*
|
|
305
|
-
* @example
|
|
306
|
-
* ```ts
|
|
307
|
-
* chart.interval().customInfo({ yourData: 'hello, g2!' });
|
|
308
|
-
* ```
|
|
309
|
-
*
|
|
310
|
-
* 然后在自定义 shape 的时候,可以拿到这个信息。
|
|
311
|
-
*
|
|
312
|
-
* ```ts
|
|
313
|
-
* registerShape('interval', 'your-shape', {
|
|
314
|
-
* draw(shapeInfo, container) {
|
|
315
|
-
* const { customInfo } = shapeInfo;
|
|
316
|
-
* console.log(customInfo); // will log { yourData: 'hello, g2!' }.
|
|
317
|
-
* }
|
|
318
|
-
* });
|
|
319
|
-
* ```
|
|
320
|
-
*
|
|
321
|
-
* @param cfg
|
|
322
|
-
*/
|
|
323
|
-
Geometry.prototype.customInfo = function (cfg) {
|
|
324
|
-
this.customOption = cfg;
|
|
325
|
-
return this;
|
|
326
|
-
};
|
|
327
|
-
/**
|
|
328
|
-
* 初始化 Geomtry 实例:
|
|
329
|
-
* 创建 [[Attribute]] and [[Scale]] 实例,进行数据处理,包括分组、数值化以及数据调整。
|
|
330
|
-
*/
|
|
331
|
-
Geometry.prototype.init = function (cfg) {
|
|
332
|
-
if (cfg === void 0) { cfg = {}; }
|
|
333
|
-
this.setCfg(cfg);
|
|
334
|
-
this.initAttributes(); // 创建图形属性
|
|
335
|
-
// 数据加工:分组 -> 数字化 -> adjust
|
|
336
|
-
this.processData(this.data);
|
|
337
|
-
// 调整 scale
|
|
338
|
-
this.adjustScale();
|
|
339
|
-
};
|
|
340
|
-
/**
|
|
341
|
-
* Geometry 更新。
|
|
342
|
-
* @param [cfg] 更新的配置
|
|
343
|
-
*/
|
|
344
|
-
Geometry.prototype.update = function (cfg) {
|
|
345
|
-
if (cfg === void 0) { cfg = {}; }
|
|
346
|
-
var data = cfg.data, isDataChanged = cfg.isDataChanged, isCoordinateChanged = cfg.isCoordinateChanged;
|
|
347
|
-
var _a = this, attributeOption = _a.attributeOption, lastAttributeOption = _a.lastAttributeOption;
|
|
348
|
-
if (!(0, util_1.isEqual)(attributeOption, lastAttributeOption)) {
|
|
349
|
-
// 映射发生改变,则重新创建图形属性
|
|
350
|
-
this.init(cfg);
|
|
351
|
-
}
|
|
352
|
-
else if (data && (isDataChanged || !(0, util_1.isEqual)(data, this.data))) {
|
|
353
|
-
// 数据发生变化
|
|
354
|
-
this.setCfg(cfg);
|
|
355
|
-
this.initAttributes(); // 创建图形属性
|
|
356
|
-
this.processData(data); // 数据加工:分组 -> 数字化 -> adjust
|
|
357
|
-
}
|
|
358
|
-
else {
|
|
359
|
-
// 有可能 coordinate 变化
|
|
360
|
-
this.setCfg(cfg);
|
|
361
|
-
}
|
|
362
|
-
// 调整 scale
|
|
363
|
-
this.adjustScale();
|
|
364
|
-
this.isCoordinateChanged = isCoordinateChanged;
|
|
365
|
-
};
|
|
366
|
-
/**
|
|
367
|
-
* 将原始数据映射至图形空间,同时创建图形对象。
|
|
368
|
-
*/
|
|
369
|
-
Geometry.prototype.paint = function (isUpdate) {
|
|
370
|
-
var _this = this;
|
|
371
|
-
if (isUpdate === void 0) { isUpdate = false; }
|
|
372
|
-
if (this.animateOption) {
|
|
373
|
-
this.animateOption = (0, util_1.deepMix)({}, (0, animate_1.getDefaultAnimateCfg)(this.type, this.coordinate), this.animateOption);
|
|
374
|
-
}
|
|
375
|
-
this.defaultSize = undefined;
|
|
376
|
-
this.elementsMap = {};
|
|
377
|
-
this.elements = [];
|
|
378
|
-
var offscreenGroup = this.getOffscreenGroup();
|
|
379
|
-
offscreenGroup.clear();
|
|
380
|
-
var beforeMappingData = this.beforeMappingData;
|
|
381
|
-
var dataArray = this.beforeMapping(beforeMappingData);
|
|
382
|
-
this.dataArray = new Array(dataArray.length);
|
|
383
|
-
for (var i = 0; i < dataArray.length; i++) {
|
|
384
|
-
var data = dataArray[i];
|
|
385
|
-
this.dataArray[i] = this.mapping(data);
|
|
386
|
-
}
|
|
387
|
-
this.updateElements(this.dataArray, isUpdate);
|
|
388
|
-
this.lastElementsMap = this.elementsMap;
|
|
389
|
-
if (this.canDoGroupAnimation(isUpdate)) {
|
|
390
|
-
// 如果用户没有配置 appear.animation,就默认走整体动画
|
|
391
|
-
var container = this.container;
|
|
392
|
-
var type = this.type;
|
|
393
|
-
var coordinate = this.coordinate;
|
|
394
|
-
var animateCfg = (0, util_1.get)(this.animateOption, 'appear');
|
|
395
|
-
var yScale = this.getYScale();
|
|
396
|
-
var yMinPoint = coordinate.convert({
|
|
397
|
-
x: 0,
|
|
398
|
-
y: yScale.scale(this.getYMinValue()),
|
|
399
|
-
});
|
|
400
|
-
(0, animate_1.doGroupAppearAnimate)(container, animateCfg, type, coordinate, yMinPoint);
|
|
401
|
-
}
|
|
402
|
-
// 添加 label
|
|
403
|
-
if (this.labelOption) {
|
|
404
|
-
var deferred = this.useDeferredLabel;
|
|
405
|
-
var callback = (function () { return _this.renderLabels((0, util_1.flatten)(_this.dataArray), isUpdate); }).bind(this);
|
|
406
|
-
if (typeof deferred === 'number') {
|
|
407
|
-
// Use `requestIdleCallback` to render labels in idle time (like react fiber)
|
|
408
|
-
var timeout = (typeof deferred === 'number' && deferred !== Infinity) ? deferred : 0;
|
|
409
|
-
if (!window.requestIdleCallback) {
|
|
410
|
-
setTimeout(callback, timeout);
|
|
411
|
-
}
|
|
412
|
-
else {
|
|
413
|
-
var options = timeout && timeout !== Infinity ? { timeout: timeout } : undefined;
|
|
414
|
-
window.requestIdleCallback(callback, options);
|
|
415
|
-
}
|
|
416
|
-
}
|
|
417
|
-
else {
|
|
418
|
-
callback();
|
|
419
|
-
}
|
|
420
|
-
}
|
|
421
|
-
// 缓存,用于更新
|
|
422
|
-
this.lastAttributeOption = tslib_1.__assign({}, this.attributeOption);
|
|
423
|
-
if (this.visible === false) {
|
|
424
|
-
// 用户在初始化的时候声明 visible: false
|
|
425
|
-
this.changeVisible(false);
|
|
426
|
-
}
|
|
427
|
-
};
|
|
428
|
-
/**
|
|
429
|
-
* 清空当前 Geometry,配置项仍保留,但是内部创建的对象全部清空。
|
|
430
|
-
* @override
|
|
431
|
-
*/
|
|
432
|
-
Geometry.prototype.clear = function () {
|
|
433
|
-
var _a = this, container = _a.container, geometryLabel = _a.geometryLabel, offscreenGroup = _a.offscreenGroup;
|
|
434
|
-
if (container) {
|
|
435
|
-
container.clear();
|
|
436
|
-
}
|
|
437
|
-
if (geometryLabel) {
|
|
438
|
-
geometryLabel.clear();
|
|
439
|
-
}
|
|
440
|
-
if (offscreenGroup) {
|
|
441
|
-
offscreenGroup.clear();
|
|
442
|
-
}
|
|
443
|
-
// 属性恢复至出厂状态
|
|
444
|
-
this.scaleDefs = undefined;
|
|
445
|
-
this.attributes = {};
|
|
446
|
-
this.scales = {};
|
|
447
|
-
this.elementsMap = {};
|
|
448
|
-
this.lastElementsMap = {};
|
|
449
|
-
this.elements = [];
|
|
450
|
-
this.adjusts = {};
|
|
451
|
-
this.dataArray = null;
|
|
452
|
-
this.beforeMappingData = null;
|
|
453
|
-
this.lastAttributeOption = undefined;
|
|
454
|
-
this.defaultSize = undefined;
|
|
455
|
-
this.idFields = [];
|
|
456
|
-
this.groupScales = undefined;
|
|
457
|
-
this.hasSorted = false;
|
|
458
|
-
this.isCoordinateChanged = false;
|
|
459
|
-
};
|
|
460
|
-
/**
|
|
461
|
-
* 销毁 Geometry 实例。
|
|
462
|
-
*/
|
|
463
|
-
Geometry.prototype.destroy = function () {
|
|
464
|
-
this.clear();
|
|
465
|
-
var container = this.container;
|
|
466
|
-
container.remove(true);
|
|
467
|
-
if (this.offscreenGroup) {
|
|
468
|
-
this.offscreenGroup.remove(true);
|
|
469
|
-
this.offscreenGroup = null;
|
|
470
|
-
}
|
|
471
|
-
if (this.geometryLabel) {
|
|
472
|
-
this.geometryLabel.destroy();
|
|
473
|
-
this.geometryLabel = null;
|
|
474
|
-
}
|
|
475
|
-
this.theme = undefined;
|
|
476
|
-
this.shapeFactory = undefined;
|
|
477
|
-
_super.prototype.destroy.call(this);
|
|
478
|
-
};
|
|
479
|
-
/**
|
|
480
|
-
* 获取决定分组的图形属性对应的 scale 实例。
|
|
481
|
-
* @returns
|
|
482
|
-
*/
|
|
483
|
-
Geometry.prototype.getGroupScales = function () {
|
|
484
|
-
return this.groupScales;
|
|
485
|
-
};
|
|
486
|
-
/**
|
|
487
|
-
* 根据名字获取图形属性实例。
|
|
488
|
-
*/
|
|
489
|
-
Geometry.prototype.getAttribute = function (name) {
|
|
490
|
-
return this.attributes[name];
|
|
491
|
-
};
|
|
492
|
-
/** 获取 x 轴对应的 scale 实例。 */
|
|
493
|
-
Geometry.prototype.getXScale = function () {
|
|
494
|
-
return this.getAttribute('position').scales[0];
|
|
495
|
-
};
|
|
496
|
-
/** 获取 y 轴对应的 scale 实例。 */
|
|
497
|
-
Geometry.prototype.getYScale = function () {
|
|
498
|
-
return this.getAttribute('position').scales[1];
|
|
499
|
-
};
|
|
500
|
-
/**
|
|
501
|
-
* 获取决定分组的图形属性实例。
|
|
502
|
-
*/
|
|
503
|
-
Geometry.prototype.getGroupAttributes = function () {
|
|
504
|
-
var rst = [];
|
|
505
|
-
(0, util_1.each)(this.attributes, function (attr) {
|
|
506
|
-
if (constant_1.GROUP_ATTRS.includes(attr.type)) {
|
|
507
|
-
rst.push(attr);
|
|
508
|
-
}
|
|
509
|
-
});
|
|
510
|
-
return rst;
|
|
511
|
-
};
|
|
512
|
-
/** 获取图形属性默认的映射值。 */
|
|
513
|
-
Geometry.prototype.getDefaultValue = function (attrName) {
|
|
514
|
-
var value;
|
|
515
|
-
var attr = this.getAttribute(attrName);
|
|
516
|
-
if (attr && (0, util_1.isEmpty)(attr.scales)) {
|
|
517
|
-
// 获取映射至常量的值
|
|
518
|
-
value = attr.values[0];
|
|
519
|
-
}
|
|
520
|
-
return value;
|
|
521
|
-
};
|
|
522
|
-
/**
|
|
523
|
-
* 获取该数据发生图形映射后对应的 Attribute 图形空间数据。
|
|
524
|
-
* @param attr Attribute 图形属性实例。
|
|
525
|
-
* @param obj 需要进行映射的原始数据。
|
|
526
|
-
* @returns
|
|
527
|
-
*/
|
|
528
|
-
Geometry.prototype.getAttributeValues = function (attr, obj) {
|
|
529
|
-
var params = [];
|
|
530
|
-
var scales = attr.scales;
|
|
531
|
-
for (var index = 0, length_1 = scales.length; index < length_1; index++) {
|
|
532
|
-
var scale = scales[index];
|
|
533
|
-
var field = scale.field;
|
|
534
|
-
if (scale.isIdentity) {
|
|
535
|
-
params.push(scale.values);
|
|
536
|
-
}
|
|
537
|
-
else {
|
|
538
|
-
params.push(obj[field]);
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
return attr.mapping.apply(attr, tslib_1.__spreadArray([], tslib_1.__read(params), false));
|
|
542
|
-
};
|
|
543
|
-
/**
|
|
544
|
-
* 获取对应的 adjust 实例
|
|
545
|
-
* @param adjustType
|
|
546
|
-
* @returns
|
|
547
|
-
*/
|
|
548
|
-
Geometry.prototype.getAdjust = function (adjustType) {
|
|
549
|
-
return this.adjusts[adjustType];
|
|
550
|
-
};
|
|
551
|
-
/**
|
|
552
|
-
* 获得 coordinate 实例
|
|
553
|
-
* @returns
|
|
554
|
-
*/
|
|
555
|
-
Geometry.prototype.getCoordinate = function () {
|
|
556
|
-
return this.coordinate;
|
|
557
|
-
};
|
|
558
|
-
Geometry.prototype.getData = function () {
|
|
559
|
-
return this.data;
|
|
560
|
-
};
|
|
561
|
-
/**
|
|
562
|
-
* 获取 shape 对应的 marker 样式。
|
|
563
|
-
* @param shapeName shape 具体名字
|
|
564
|
-
* @param cfg marker 信息
|
|
565
|
-
* @returns
|
|
566
|
-
*/
|
|
567
|
-
Geometry.prototype.getShapeMarker = function (shapeName, cfg) {
|
|
568
|
-
var shapeFactory = this.getShapeFactory();
|
|
569
|
-
return shapeFactory.getMarker(shapeName, cfg);
|
|
570
|
-
};
|
|
571
|
-
/**
|
|
572
|
-
* 根据一定的规则查找 Geometry 的 Elements。
|
|
573
|
-
*
|
|
574
|
-
* ```typescript
|
|
575
|
-
* getElementsBy((element) => {
|
|
576
|
-
* const data = element.getData();
|
|
577
|
-
*
|
|
578
|
-
* return data.a === 'a';
|
|
579
|
-
* });
|
|
580
|
-
* ```
|
|
581
|
-
*
|
|
582
|
-
* @param condition 定义查找规则的回调函数。
|
|
583
|
-
* @returns
|
|
584
|
-
*/
|
|
585
|
-
Geometry.prototype.getElementsBy = function (condition) {
|
|
586
|
-
return this.elements.filter(function (element) { return condition(element); });
|
|
587
|
-
};
|
|
588
|
-
/**
|
|
589
|
-
* 获取 Geometry 的所有 Elements。
|
|
590
|
-
*
|
|
591
|
-
* ```typescript
|
|
592
|
-
* getElements();
|
|
593
|
-
* ```
|
|
594
|
-
*/
|
|
595
|
-
Geometry.prototype.getElements = function () {
|
|
596
|
-
return this.elements;
|
|
597
|
-
};
|
|
598
|
-
/**
|
|
599
|
-
* 获取数据对应的唯一 id。
|
|
600
|
-
* @param data Element 对应的绘制数据
|
|
601
|
-
* @returns
|
|
602
|
-
*/
|
|
603
|
-
Geometry.prototype.getElementId = function (data) {
|
|
604
|
-
data = (0, util_1.isArray)(data) ? data[0] : data;
|
|
605
|
-
var originData = data[constant_1.FIELD_ORIGIN];
|
|
606
|
-
// 如果用户声明了使用哪些字段作为 id 值
|
|
607
|
-
if (this.idFields.length) {
|
|
608
|
-
var elementId = originData[this.idFields[0]];
|
|
609
|
-
for (var index = 1; index < this.idFields.length; index++) {
|
|
610
|
-
elementId += '-' + originData[this.idFields[index]];
|
|
611
|
-
}
|
|
612
|
-
return elementId;
|
|
613
|
-
}
|
|
614
|
-
var type = this.type;
|
|
615
|
-
var xScale = this.getXScale();
|
|
616
|
-
var yScale = this.getYScale();
|
|
617
|
-
var xField = xScale.field || 'x';
|
|
618
|
-
var yField = yScale.field || 'y';
|
|
619
|
-
var yVal = originData[yField];
|
|
620
|
-
var xVal;
|
|
621
|
-
if (xScale.type === 'identity') {
|
|
622
|
-
xVal = xScale.values[0];
|
|
623
|
-
}
|
|
624
|
-
else {
|
|
625
|
-
xVal = originData[xField];
|
|
626
|
-
}
|
|
627
|
-
var id;
|
|
628
|
-
if (type === 'interval' || type === 'schema') {
|
|
629
|
-
id = "".concat(xVal);
|
|
630
|
-
}
|
|
631
|
-
else if (type === 'line' || type === 'area' || type === 'path') {
|
|
632
|
-
id = type;
|
|
633
|
-
}
|
|
634
|
-
else {
|
|
635
|
-
id = "".concat(xVal, "-").concat(yVal);
|
|
636
|
-
}
|
|
637
|
-
var groupScales = this.groupScales;
|
|
638
|
-
for (var index = 0, length_2 = groupScales.length; index < length_2; index++) {
|
|
639
|
-
var groupScale = groupScales[index];
|
|
640
|
-
var field = groupScale.field;
|
|
641
|
-
id = "".concat(id, "-").concat(originData[field]);
|
|
642
|
-
}
|
|
643
|
-
// 用户在进行 dodge 类型的 adjust 调整的时候设置了 dodgeBy 属性
|
|
644
|
-
var dodgeAdjust = this.getAdjust('dodge');
|
|
645
|
-
if (dodgeAdjust) {
|
|
646
|
-
var dodgeBy = dodgeAdjust.dodgeBy;
|
|
647
|
-
if (dodgeBy) {
|
|
648
|
-
id = "".concat(id, "-").concat(originData[dodgeBy]);
|
|
649
|
-
}
|
|
650
|
-
}
|
|
651
|
-
if (this.getAdjust('jitter')) {
|
|
652
|
-
id = "".concat(id, "-").concat(data.x, "-").concat(data.y);
|
|
653
|
-
}
|
|
654
|
-
return id;
|
|
655
|
-
};
|
|
656
|
-
/**
|
|
657
|
-
* 获取所有需要创建 scale 的字段名称。
|
|
658
|
-
*/
|
|
659
|
-
Geometry.prototype.getScaleFields = function () {
|
|
660
|
-
var fields = [];
|
|
661
|
-
var tmpMap = new Map();
|
|
662
|
-
var _a = this, attributeOption = _a.attributeOption, labelOption = _a.labelOption, tooltipOption = _a.tooltipOption;
|
|
663
|
-
// 获取图形属性上的 fields
|
|
664
|
-
for (var attributeType in attributeOption) {
|
|
665
|
-
if (attributeOption.hasOwnProperty(attributeType)) {
|
|
666
|
-
var eachOpt = attributeOption[attributeType];
|
|
667
|
-
if (eachOpt.fields) {
|
|
668
|
-
(0, helper_1.uniq)(eachOpt.fields, fields, tmpMap);
|
|
669
|
-
}
|
|
670
|
-
else if (eachOpt.values) {
|
|
671
|
-
// 考虑 size(10), shape('circle') 等场景
|
|
672
|
-
(0, helper_1.uniq)(eachOpt.values, fields, tmpMap);
|
|
673
|
-
}
|
|
674
|
-
}
|
|
675
|
-
}
|
|
676
|
-
// 获取 label 上的字段
|
|
677
|
-
if (labelOption && labelOption.fields) {
|
|
678
|
-
(0, helper_1.uniq)(labelOption.fields, fields, tmpMap);
|
|
679
|
-
}
|
|
680
|
-
// 获取 tooltip 上的字段
|
|
681
|
-
if ((0, util_1.isObject)(tooltipOption) && tooltipOption.fields) {
|
|
682
|
-
(0, helper_1.uniq)(tooltipOption.fields, fields, tmpMap);
|
|
683
|
-
}
|
|
684
|
-
return fields;
|
|
685
|
-
};
|
|
686
|
-
/**
|
|
687
|
-
* 显示或者隐藏 geometry。
|
|
688
|
-
* @param visible
|
|
689
|
-
*/
|
|
690
|
-
Geometry.prototype.changeVisible = function (visible) {
|
|
691
|
-
_super.prototype.changeVisible.call(this, visible);
|
|
692
|
-
var elements = this.elements;
|
|
693
|
-
for (var index = 0, length_3 = elements.length; index < length_3; index++) {
|
|
694
|
-
var element = elements[index];
|
|
695
|
-
element.changeVisible(visible);
|
|
696
|
-
}
|
|
697
|
-
if (visible) {
|
|
698
|
-
if (this.container) {
|
|
699
|
-
this.container.show();
|
|
700
|
-
}
|
|
701
|
-
if (this.labelsContainer) {
|
|
702
|
-
this.labelsContainer.show();
|
|
703
|
-
}
|
|
704
|
-
}
|
|
705
|
-
else {
|
|
706
|
-
if (this.container) {
|
|
707
|
-
this.container.hide();
|
|
708
|
-
}
|
|
709
|
-
if (this.labelsContainer) {
|
|
710
|
-
this.labelsContainer.hide();
|
|
711
|
-
}
|
|
712
|
-
}
|
|
713
|
-
};
|
|
714
|
-
/**
|
|
715
|
-
* 获得所有的字段
|
|
716
|
-
*/
|
|
717
|
-
Geometry.prototype.getFields = function () {
|
|
718
|
-
var uniqMap = new Map();
|
|
719
|
-
var fields = [];
|
|
720
|
-
Object.values(this.attributeOption).forEach(function (cfg) {
|
|
721
|
-
var fs = (cfg === null || cfg === void 0 ? void 0 : cfg.fields) || [];
|
|
722
|
-
fs.forEach(function (f) {
|
|
723
|
-
if (!uniqMap.has(f)) {
|
|
724
|
-
fields.push(f);
|
|
725
|
-
}
|
|
726
|
-
uniqMap.set(f, true);
|
|
727
|
-
});
|
|
728
|
-
}, []);
|
|
729
|
-
return fields;
|
|
730
|
-
};
|
|
731
|
-
/**
|
|
732
|
-
* 获取当前配置中的所有分组 & 分类的字段。
|
|
733
|
-
* @return fields string[]
|
|
734
|
-
*/
|
|
735
|
-
Geometry.prototype.getGroupFields = function () {
|
|
736
|
-
var groupFields = [];
|
|
737
|
-
var tmpMap = new Map(); // 用于去重过滤
|
|
738
|
-
for (var index = 0, length_4 = constant_1.GROUP_ATTRS.length; index < length_4; index++) {
|
|
739
|
-
var attributeName = constant_1.GROUP_ATTRS[index];
|
|
740
|
-
var cfg = this.attributeOption[attributeName];
|
|
741
|
-
if (cfg && cfg.fields) {
|
|
742
|
-
(0, helper_1.uniq)(cfg.fields, groupFields, tmpMap);
|
|
743
|
-
}
|
|
744
|
-
}
|
|
745
|
-
return groupFields;
|
|
746
|
-
};
|
|
747
|
-
/**
|
|
748
|
-
* 获得图形的 x y 字段。
|
|
749
|
-
*/
|
|
750
|
-
Geometry.prototype.getXYFields = function () {
|
|
751
|
-
var _a = tslib_1.__read(this.attributeOption.position.fields, 2), x = _a[0], y = _a[1];
|
|
752
|
-
return [x, y];
|
|
753
|
-
};
|
|
754
|
-
/**
|
|
755
|
-
* x 字段
|
|
756
|
-
* @returns
|
|
757
|
-
*/
|
|
758
|
-
Geometry.prototype.getXField = function () {
|
|
759
|
-
return (0, util_1.get)(this.getXYFields(), [0]);
|
|
760
|
-
};
|
|
761
|
-
/**
|
|
762
|
-
* y 字段
|
|
763
|
-
* @returns
|
|
764
|
-
*/
|
|
765
|
-
Geometry.prototype.getYField = function () {
|
|
766
|
-
return (0, util_1.get)(this.getXYFields(), [1]);
|
|
767
|
-
};
|
|
768
|
-
/**
|
|
769
|
-
* 获取该 Geometry 下所有生成的 shapes。
|
|
770
|
-
* @returns shapes
|
|
771
|
-
*/
|
|
772
|
-
Geometry.prototype.getShapes = function () {
|
|
773
|
-
return this.elements.map(function (element) { return element.shape; });
|
|
774
|
-
};
|
|
775
|
-
/**
|
|
776
|
-
* 获取虚拟 Group。
|
|
777
|
-
* @returns
|
|
778
|
-
*/
|
|
779
|
-
Geometry.prototype.getOffscreenGroup = function () {
|
|
780
|
-
if (!this.offscreenGroup) {
|
|
781
|
-
var GroupCtor = this.container.getGroupBase(); // 获取分组的构造函数
|
|
782
|
-
this.offscreenGroup = new GroupCtor({});
|
|
783
|
-
}
|
|
784
|
-
return this.offscreenGroup;
|
|
785
|
-
};
|
|
786
|
-
// 对数据进行排序
|
|
787
|
-
Geometry.prototype.sort = function (mappingArray) {
|
|
788
|
-
if (!this.hasSorted) {
|
|
789
|
-
// 未发生过排序
|
|
790
|
-
var xScale_1 = this.getXScale();
|
|
791
|
-
var xField_1 = xScale_1.field;
|
|
792
|
-
for (var index = 0; index < mappingArray.length; index++) {
|
|
793
|
-
var itemArr = mappingArray[index];
|
|
794
|
-
itemArr.sort(function (obj1, obj2) {
|
|
795
|
-
return xScale_1.translate(obj1[constant_1.FIELD_ORIGIN][xField_1]) - xScale_1.translate(obj2[constant_1.FIELD_ORIGIN][xField_1]);
|
|
796
|
-
});
|
|
797
|
-
}
|
|
798
|
-
}
|
|
799
|
-
this.hasSorted = true;
|
|
800
|
-
};
|
|
801
|
-
/**
|
|
802
|
-
* 调整度量范围。主要针对发生层叠以及一些特殊需求的 Geometry,比如 Interval 下的柱状图 Y 轴默认从 0 开始。
|
|
803
|
-
*/
|
|
804
|
-
Geometry.prototype.adjustScale = function () {
|
|
805
|
-
var yScale = this.getYScale();
|
|
806
|
-
// 如果数据发生过 stack adjust,需要调整下 yScale 的数据范围
|
|
807
|
-
if (yScale && this.getAdjust('stack')) {
|
|
808
|
-
this.updateStackRange(yScale, this.beforeMappingData);
|
|
809
|
-
}
|
|
810
|
-
};
|
|
811
|
-
/**
|
|
812
|
-
* 获取当前 Geometry 对应的 Shape 工厂实例。
|
|
813
|
-
*/
|
|
814
|
-
Geometry.prototype.getShapeFactory = function () {
|
|
815
|
-
var shapeType = this.shapeType;
|
|
816
|
-
if (!(0, base_2.getShapeFactory)(shapeType)) {
|
|
817
|
-
return;
|
|
818
|
-
}
|
|
819
|
-
if (!this.shapeFactory) {
|
|
820
|
-
this.shapeFactory = (0, util_1.clone)((0, base_2.getShapeFactory)(shapeType)); // 防止多个 view 共享一个 shapeFactory 实例,导致 coordinate 被篡改
|
|
821
|
-
}
|
|
822
|
-
// 因为这里缓存了 shapeFactory,但是外部可能会变更 coordinate,导致无法重新设置到 shapeFactory 中
|
|
823
|
-
this.shapeFactory.coordinate = this.coordinate;
|
|
824
|
-
// theme 原因同上
|
|
825
|
-
this.shapeFactory.theme = this.theme.geometries[shapeType] || {};
|
|
826
|
-
return this.shapeFactory;
|
|
827
|
-
};
|
|
828
|
-
/**
|
|
829
|
-
* 获取每个 Shape 对应的关键点数据。
|
|
830
|
-
* @param obj 经过分组 -> 数字化 -> adjust 调整后的数据记录
|
|
831
|
-
* @returns
|
|
832
|
-
*/
|
|
833
|
-
Geometry.prototype.createShapePointsCfg = function (obj) {
|
|
834
|
-
var xScale = this.getXScale();
|
|
835
|
-
var yScale = this.getYScale();
|
|
836
|
-
var x = this.normalizeValues(obj[xScale.field], xScale);
|
|
837
|
-
var y; // 存在没有 y 的情况
|
|
838
|
-
if (yScale) {
|
|
839
|
-
y = this.normalizeValues(obj[yScale.field], yScale);
|
|
840
|
-
}
|
|
841
|
-
else {
|
|
842
|
-
y = obj.y ? obj.y : 0.1;
|
|
843
|
-
}
|
|
844
|
-
return {
|
|
845
|
-
x: x,
|
|
846
|
-
y: y,
|
|
847
|
-
y0: yScale ? yScale.scale(this.getYMinValue()) : undefined,
|
|
848
|
-
};
|
|
849
|
-
};
|
|
850
|
-
/**
|
|
851
|
-
* 创建 Element 实例。
|
|
852
|
-
* @param mappingDatum Element 对应的绘制数据
|
|
853
|
-
* @param [isUpdate] 是否处于更新阶段
|
|
854
|
-
* @returns element 返回创建的 Element 实例
|
|
855
|
-
*/
|
|
856
|
-
Geometry.prototype.createElement = function (mappingDatum, index, isUpdate) {
|
|
857
|
-
if (isUpdate === void 0) { isUpdate = false; }
|
|
858
|
-
var container = this.container;
|
|
859
|
-
var shapeCfg = this.getDrawCfg(mappingDatum); // 获取绘制图形的配置信息
|
|
860
|
-
var shapeFactory = this.getShapeFactory();
|
|
861
|
-
var element = new element_1.default({
|
|
862
|
-
shapeFactory: shapeFactory,
|
|
863
|
-
container: container,
|
|
864
|
-
offscreenGroup: this.getOffscreenGroup(),
|
|
865
|
-
elementIndex: index,
|
|
866
|
-
});
|
|
867
|
-
element.animate = this.animateOption;
|
|
868
|
-
element.geometry = this;
|
|
869
|
-
element.draw(shapeCfg, isUpdate); // 绘制
|
|
870
|
-
return element;
|
|
871
|
-
};
|
|
872
|
-
/**
|
|
873
|
-
* 获取每条数据对应的图形绘制数据。
|
|
874
|
-
* @param mappingDatum 映射后的数据
|
|
875
|
-
* @returns draw cfg
|
|
876
|
-
*/
|
|
877
|
-
Geometry.prototype.getDrawCfg = function (mappingDatum) {
|
|
878
|
-
var originData = mappingDatum[constant_1.FIELD_ORIGIN]; // 原始数据
|
|
879
|
-
var cfg = {
|
|
880
|
-
mappingData: mappingDatum,
|
|
881
|
-
data: originData,
|
|
882
|
-
x: mappingDatum.x,
|
|
883
|
-
y: mappingDatum.y,
|
|
884
|
-
color: mappingDatum.color,
|
|
885
|
-
size: mappingDatum.size,
|
|
886
|
-
isInCircle: this.coordinate.isPolar,
|
|
887
|
-
customInfo: this.customOption,
|
|
888
|
-
};
|
|
889
|
-
var shapeName = mappingDatum.shape;
|
|
890
|
-
if (!shapeName && this.getShapeFactory()) {
|
|
891
|
-
shapeName = this.getShapeFactory().defaultShapeType;
|
|
892
|
-
}
|
|
893
|
-
cfg.shape = shapeName;
|
|
894
|
-
// 获取默认样式
|
|
895
|
-
var theme = this.theme.geometries[this.shapeType];
|
|
896
|
-
cfg.defaultStyle = (0, util_1.get)(theme, [shapeName, 'default'], {}).style;
|
|
897
|
-
if (!cfg.defaultStyle && this.getShapeFactory()) {
|
|
898
|
-
cfg.defaultStyle = this.getShapeFactory().getDefaultStyle(theme);
|
|
899
|
-
}
|
|
900
|
-
var styleOption = this.styleOption;
|
|
901
|
-
if (styleOption) {
|
|
902
|
-
cfg.style = this.getStyleCfg(styleOption, originData);
|
|
903
|
-
}
|
|
904
|
-
if (this.generatePoints) {
|
|
905
|
-
cfg.points = mappingDatum.points;
|
|
906
|
-
cfg.nextPoints = mappingDatum.nextPoints;
|
|
907
|
-
}
|
|
908
|
-
return cfg;
|
|
909
|
-
};
|
|
910
|
-
Geometry.prototype.updateElements = function (mappingDataArray, isUpdate) {
|
|
911
|
-
var e_1, _a, e_2, _b, e_3, _c;
|
|
912
|
-
if (isUpdate === void 0) { isUpdate = false; }
|
|
913
|
-
var keyDatum = new Map();
|
|
914
|
-
var keys = [];
|
|
915
|
-
// 用来保持 diff 元素之后 added, updated 的相对顺序
|
|
916
|
-
var keyIndex = new Map();
|
|
917
|
-
var index = 0;
|
|
918
|
-
// 获得更新数据所有的 keys
|
|
919
|
-
// 将更新的数据用 key 索引
|
|
920
|
-
for (var i = 0; i < mappingDataArray.length; i++) {
|
|
921
|
-
var mappingData = mappingDataArray[i];
|
|
922
|
-
for (var j = 0; j < mappingData.length; j++) {
|
|
923
|
-
var mappingDatum = mappingData[j];
|
|
924
|
-
var key = this.getElementId(mappingDatum);
|
|
925
|
-
var finalKey = keyDatum.has(key) ? "".concat(key, "-").concat(i, "-").concat(j) : key;
|
|
926
|
-
keys.push(finalKey);
|
|
927
|
-
keyDatum.set(finalKey, mappingDatum);
|
|
928
|
-
keyIndex.set(finalKey, index);
|
|
929
|
-
index++;
|
|
930
|
-
}
|
|
931
|
-
}
|
|
932
|
-
this.elements = new Array(index);
|
|
933
|
-
var _d = (0, diff_1.diff)(this.lastElementsMap, keys), added = _d.added, updated = _d.updated, removed = _d.removed;
|
|
934
|
-
try {
|
|
935
|
-
// 新建 element
|
|
936
|
-
for (var added_1 = tslib_1.__values(added), added_1_1 = added_1.next(); !added_1_1.done; added_1_1 = added_1.next()) {
|
|
937
|
-
var key = added_1_1.value;
|
|
938
|
-
var mappingDatum = keyDatum.get(key);
|
|
939
|
-
var i = keyIndex.get(key);
|
|
940
|
-
var element = this.createElement(mappingDatum, i, isUpdate);
|
|
941
|
-
this.elements[i] = element;
|
|
942
|
-
this.elementsMap[key] = element;
|
|
943
|
-
if (element.shape) {
|
|
944
|
-
element.shape.set('zIndex', this.zIndexReversed ? this.elements.length - i : i);
|
|
945
|
-
}
|
|
946
|
-
}
|
|
947
|
-
}
|
|
948
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
949
|
-
finally {
|
|
950
|
-
try {
|
|
951
|
-
if (added_1_1 && !added_1_1.done && (_a = added_1.return)) _a.call(added_1);
|
|
952
|
-
}
|
|
953
|
-
finally { if (e_1) throw e_1.error; }
|
|
954
|
-
}
|
|
955
|
-
try {
|
|
956
|
-
// 更新 element
|
|
957
|
-
for (var updated_1 = tslib_1.__values(updated), updated_1_1 = updated_1.next(); !updated_1_1.done; updated_1_1 = updated_1.next()) {
|
|
958
|
-
var key = updated_1_1.value;
|
|
959
|
-
var element = this.lastElementsMap[key];
|
|
960
|
-
var mappingDatum = keyDatum.get(key);
|
|
961
|
-
var currentShapeCfg = this.getDrawCfg(mappingDatum);
|
|
962
|
-
var preShapeCfg = element.getModel();
|
|
963
|
-
var i = keyIndex.get(key);
|
|
964
|
-
if (this.isCoordinateChanged || (0, is_model_change_1.isModelChange)(currentShapeCfg, preShapeCfg)) {
|
|
965
|
-
element.animate = this.animateOption;
|
|
966
|
-
// 通过绘制数据的变更来判断是否需要更新,因为用户有可能会修改图形属性映射
|
|
967
|
-
element.update(currentShapeCfg); // 更新对应的 element
|
|
968
|
-
}
|
|
969
|
-
this.elements[i] = element;
|
|
970
|
-
this.elementsMap[key] = element;
|
|
971
|
-
if (element.shape) {
|
|
972
|
-
element.shape.set('zIndex', this.zIndexReversed ? this.elements.length - i : i);
|
|
973
|
-
}
|
|
974
|
-
}
|
|
975
|
-
}
|
|
976
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
977
|
-
finally {
|
|
978
|
-
try {
|
|
979
|
-
if (updated_1_1 && !updated_1_1.done && (_b = updated_1.return)) _b.call(updated_1);
|
|
980
|
-
}
|
|
981
|
-
finally { if (e_2) throw e_2.error; }
|
|
982
|
-
}
|
|
983
|
-
// 全部 setZIndex 之后,再执行 sort
|
|
984
|
-
if (this.container) {
|
|
985
|
-
this.container.sort();
|
|
986
|
-
}
|
|
987
|
-
try {
|
|
988
|
-
// 销毁被删除的 elements
|
|
989
|
-
for (var removed_1 = tslib_1.__values(removed), removed_1_1 = removed_1.next(); !removed_1_1.done; removed_1_1 = removed_1.next()) {
|
|
990
|
-
var key = removed_1_1.value;
|
|
991
|
-
var element = this.lastElementsMap[key];
|
|
992
|
-
// 更新动画配置,用户有可能在更新之前有对动画进行配置操作
|
|
993
|
-
element.animate = this.animateOption;
|
|
994
|
-
element.destroy();
|
|
995
|
-
}
|
|
996
|
-
}
|
|
997
|
-
catch (e_3_1) { e_3 = { error: e_3_1 }; }
|
|
998
|
-
finally {
|
|
999
|
-
try {
|
|
1000
|
-
if (removed_1_1 && !removed_1_1.done && (_c = removed_1.return)) _c.call(removed_1);
|
|
1001
|
-
}
|
|
1002
|
-
finally { if (e_3) throw e_3.error; }
|
|
1003
|
-
}
|
|
1004
|
-
};
|
|
1005
|
-
/**
|
|
1006
|
-
* 获取渲染的 label 类型。
|
|
1007
|
-
*/
|
|
1008
|
-
Geometry.prototype.getLabelType = function () {
|
|
1009
|
-
var _a = this, labelOption = _a.labelOption, coordinate = _a.coordinate, type = _a.type;
|
|
1010
|
-
var coordinateType = coordinate.type, isTransposed = coordinate.isTransposed;
|
|
1011
|
-
var labelType = (0, util_1.get)(labelOption, ['cfg', 'type']);
|
|
1012
|
-
if (!labelType) {
|
|
1013
|
-
// 用户未定义,则进行默认的逻辑
|
|
1014
|
-
if (coordinateType === 'polar') {
|
|
1015
|
-
// 极坐标下使用通用的极坐标文本,转置则使用饼图
|
|
1016
|
-
labelType = isTransposed ? 'pie' : 'polar';
|
|
1017
|
-
}
|
|
1018
|
-
else if (coordinateType === 'theta') {
|
|
1019
|
-
// theta 坐标系下使用饼图文本
|
|
1020
|
-
labelType = 'pie';
|
|
1021
|
-
}
|
|
1022
|
-
else if (type === 'interval' || type === 'polygon') {
|
|
1023
|
-
labelType = 'interval';
|
|
1024
|
-
}
|
|
1025
|
-
else {
|
|
1026
|
-
labelType = 'base';
|
|
1027
|
-
}
|
|
1028
|
-
}
|
|
1029
|
-
return labelType;
|
|
1030
|
-
};
|
|
1031
|
-
/**
|
|
1032
|
-
* 获取 Y 轴上的最小值。
|
|
1033
|
-
*/
|
|
1034
|
-
Geometry.prototype.getYMinValue = function () {
|
|
1035
|
-
var yScale = this.getYScale();
|
|
1036
|
-
var min = yScale.min, max = yScale.max;
|
|
1037
|
-
var value;
|
|
1038
|
-
if (min >= 0) {
|
|
1039
|
-
value = min;
|
|
1040
|
-
}
|
|
1041
|
-
else if (max <= 0) {
|
|
1042
|
-
// 当值全位于负区间时,需要保证 ymin 在区域内,不可为 0
|
|
1043
|
-
value = max;
|
|
1044
|
-
}
|
|
1045
|
-
else {
|
|
1046
|
-
value = 0;
|
|
1047
|
-
}
|
|
1048
|
-
return value;
|
|
1049
|
-
};
|
|
1050
|
-
// 创建图形属性相关的配置项
|
|
1051
|
-
Geometry.prototype.createAttrOption = function (attrName, field, cfg) {
|
|
1052
|
-
if ((0, util_1.isNil)(field) || (0, util_1.isObject)(field)) {
|
|
1053
|
-
if ((0, util_1.isObject)(field) && (0, util_1.isEqual)(Object.keys(field), ['values'])) {
|
|
1054
|
-
// shape({ values: [ 'funnel' ] })
|
|
1055
|
-
(0, util_1.set)(this.attributeOption, attrName, {
|
|
1056
|
-
fields: field.values,
|
|
1057
|
-
});
|
|
1058
|
-
}
|
|
1059
|
-
else {
|
|
1060
|
-
(0, util_1.set)(this.attributeOption, attrName, field);
|
|
1061
|
-
}
|
|
1062
|
-
}
|
|
1063
|
-
else {
|
|
1064
|
-
var attrCfg = {};
|
|
1065
|
-
if ((0, util_1.isNumber)(field)) {
|
|
1066
|
-
// size(3)
|
|
1067
|
-
attrCfg.values = [field];
|
|
1068
|
-
}
|
|
1069
|
-
else {
|
|
1070
|
-
attrCfg.fields = (0, parse_fields_1.parseFields)(field);
|
|
1071
|
-
}
|
|
1072
|
-
if (cfg) {
|
|
1073
|
-
if ((0, util_1.isFunction)(cfg)) {
|
|
1074
|
-
attrCfg.callback = cfg;
|
|
1075
|
-
}
|
|
1076
|
-
else {
|
|
1077
|
-
attrCfg.values = cfg;
|
|
1078
|
-
}
|
|
1079
|
-
}
|
|
1080
|
-
(0, util_1.set)(this.attributeOption, attrName, attrCfg);
|
|
1081
|
-
}
|
|
1082
|
-
};
|
|
1083
|
-
Geometry.prototype.initAttributes = function () {
|
|
1084
|
-
var _this = this;
|
|
1085
|
-
var _a = this, attributes = _a.attributes, attributeOption = _a.attributeOption, theme = _a.theme, shapeType = _a.shapeType;
|
|
1086
|
-
this.groupScales = [];
|
|
1087
|
-
var tmpMap = {};
|
|
1088
|
-
var _loop_1 = function (attrType) {
|
|
1089
|
-
if (attributeOption.hasOwnProperty(attrType)) {
|
|
1090
|
-
var option = attributeOption[attrType];
|
|
1091
|
-
if (!option) {
|
|
1092
|
-
return { value: void 0 };
|
|
1093
|
-
}
|
|
1094
|
-
var attrCfg = tslib_1.__assign({}, option);
|
|
1095
|
-
var callback = attrCfg.callback, values = attrCfg.values, _b = attrCfg.fields, fields = _b === void 0 ? [] : _b;
|
|
1096
|
-
// 获取每一个字段对应的 scale
|
|
1097
|
-
var scales = fields.map(function (field) {
|
|
1098
|
-
var scale = _this.scales[field];
|
|
1099
|
-
if (!tmpMap[field] && constant_1.GROUP_ATTRS.includes(attrType)) {
|
|
1100
|
-
var inferedScaleType = (0, scale_1.inferScaleType)(scale, (0, util_1.get)(_this.scaleDefs, field), attrType, _this.type);
|
|
1101
|
-
if (inferedScaleType === 'cat') {
|
|
1102
|
-
_this.groupScales.push(scale);
|
|
1103
|
-
tmpMap[field] = true;
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
return scale;
|
|
1107
|
-
});
|
|
1108
|
-
attrCfg.scales = scales;
|
|
1109
|
-
if (attrType !== 'position' && scales.length === 1 && scales[0].type === 'identity') {
|
|
1110
|
-
// 用户在图形通道上声明了常量字段 color('red'), size(5)
|
|
1111
|
-
attrCfg.values = scales[0].values;
|
|
1112
|
-
}
|
|
1113
|
-
else if (!callback && !values) {
|
|
1114
|
-
// 用户没有指定任何规则,则使用默认的映射规则
|
|
1115
|
-
if (attrType === 'size') {
|
|
1116
|
-
attrCfg.values = theme.sizes;
|
|
1117
|
-
}
|
|
1118
|
-
else if (attrType === 'shape') {
|
|
1119
|
-
attrCfg.values = theme.shapes[shapeType] || [];
|
|
1120
|
-
}
|
|
1121
|
-
else if (attrType === 'color') {
|
|
1122
|
-
if (scales.length) {
|
|
1123
|
-
// 根据数值个数使用对应的色板
|
|
1124
|
-
attrCfg.values = scales[0].values.length <= 10 ? theme.colors10 : theme.colors20;
|
|
1125
|
-
}
|
|
1126
|
-
else {
|
|
1127
|
-
attrCfg.values = theme.colors10;
|
|
1128
|
-
}
|
|
1129
|
-
}
|
|
1130
|
-
}
|
|
1131
|
-
var AttributeCtor = (0, attr_1.getAttribute)(attrType);
|
|
1132
|
-
attributes[attrType] = new AttributeCtor(attrCfg);
|
|
1133
|
-
}
|
|
1134
|
-
};
|
|
1135
|
-
// 遍历每一个 attrOption,各自创建 Attribute 实例
|
|
1136
|
-
for (var attrType in attributeOption) {
|
|
1137
|
-
var state_1 = _loop_1(attrType);
|
|
1138
|
-
if (typeof state_1 === "object")
|
|
1139
|
-
return state_1.value;
|
|
1140
|
-
}
|
|
1141
|
-
};
|
|
1142
|
-
// 处理数据:分组 -> 数字化 -> adjust 调整
|
|
1143
|
-
Geometry.prototype.processData = function (data) {
|
|
1144
|
-
var e_4, _a;
|
|
1145
|
-
this.hasSorted = false;
|
|
1146
|
-
var scales = this.getAttribute('position').scales;
|
|
1147
|
-
var categoryScales = scales.filter(function (scale) { return scale.isCategory; });
|
|
1148
|
-
var groupedArray = this.groupData(data); // 数据分组
|
|
1149
|
-
var beforeAdjust = [];
|
|
1150
|
-
for (var i = 0, len = groupedArray.length; i < len; i++) {
|
|
1151
|
-
var subData = groupedArray[i];
|
|
1152
|
-
var arr = [];
|
|
1153
|
-
for (var j = 0, subLen = subData.length; j < subLen; j++) {
|
|
1154
|
-
var originData = subData[j];
|
|
1155
|
-
var item = {};
|
|
1156
|
-
// tslint:disable-next-line: forin
|
|
1157
|
-
for (var k in originData) {
|
|
1158
|
-
item[k] = originData[k];
|
|
1159
|
-
}
|
|
1160
|
-
item[constant_1.FIELD_ORIGIN] = originData;
|
|
1161
|
-
try {
|
|
1162
|
-
// 将分类数据翻译成数据, 仅对位置相关的度量进行数字化处理
|
|
1163
|
-
for (var categoryScales_1 = (e_4 = void 0, tslib_1.__values(categoryScales)), categoryScales_1_1 = categoryScales_1.next(); !categoryScales_1_1.done; categoryScales_1_1 = categoryScales_1.next()) {
|
|
1164
|
-
var scale = categoryScales_1_1.value;
|
|
1165
|
-
var field = scale.field;
|
|
1166
|
-
item[field] = scale.translate(item[field]);
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
catch (e_4_1) { e_4 = { error: e_4_1 }; }
|
|
1170
|
-
finally {
|
|
1171
|
-
try {
|
|
1172
|
-
if (categoryScales_1_1 && !categoryScales_1_1.done && (_a = categoryScales_1.return)) _a.call(categoryScales_1);
|
|
1173
|
-
}
|
|
1174
|
-
finally { if (e_4) throw e_4.error; }
|
|
1175
|
-
}
|
|
1176
|
-
arr.push(item);
|
|
1177
|
-
}
|
|
1178
|
-
beforeAdjust.push(arr);
|
|
1179
|
-
}
|
|
1180
|
-
var dataArray = this.adjustData(beforeAdjust); // 进行 adjust 数据调整
|
|
1181
|
-
this.beforeMappingData = dataArray;
|
|
1182
|
-
return dataArray;
|
|
1183
|
-
};
|
|
1184
|
-
// 调整数据
|
|
1185
|
-
Geometry.prototype.adjustData = function (dataArray) {
|
|
1186
|
-
var adjustOption = this.adjustOption;
|
|
1187
|
-
var _a = this, intervalPadding = _a.intervalPadding, dodgePadding = _a.dodgePadding, theme = _a.theme;
|
|
1188
|
-
// 兼容theme配置
|
|
1189
|
-
var maxColumnWidth = this.maxColumnWidth || theme.maxColumnWidth;
|
|
1190
|
-
var minColumnWidth = this.minColumnWidth || theme.minColumnWidth;
|
|
1191
|
-
var columnWidthRatio = this.columnWidthRatio || theme.columnWidthRatio;
|
|
1192
|
-
var result = dataArray;
|
|
1193
|
-
if (adjustOption) {
|
|
1194
|
-
var xScale_2 = this.getXScale();
|
|
1195
|
-
var yScale = this.getYScale();
|
|
1196
|
-
var xField = xScale_2.field;
|
|
1197
|
-
var yField = yScale ? yScale.field : null;
|
|
1198
|
-
var xDimensionLength = (0, coordinate_1.getXDimensionLength)(this.coordinate);
|
|
1199
|
-
var groupNum = xScale_2.values.length;
|
|
1200
|
-
// 传入size计算相关参数,默认宽度、最大最小宽度约束
|
|
1201
|
-
var sizeAttr = this.getAttribute('size');
|
|
1202
|
-
var defaultSize = void 0;
|
|
1203
|
-
if (sizeAttr) {
|
|
1204
|
-
defaultSize = sizeAttr.values[0];
|
|
1205
|
-
}
|
|
1206
|
-
for (var i = 0, len = adjustOption.length; i < len; i++) {
|
|
1207
|
-
var adjust = adjustOption[i];
|
|
1208
|
-
var adjustCfg = tslib_1.__assign({ xField: xField, yField: yField, intervalPadding: intervalPadding, dodgePadding: dodgePadding, xDimensionLength: xDimensionLength, groupNum: groupNum, defaultSize: defaultSize, maxColumnWidth: maxColumnWidth, minColumnWidth: minColumnWidth, columnWidthRatio: columnWidthRatio }, adjust);
|
|
1209
|
-
var type = adjust.type;
|
|
1210
|
-
if (type === 'dodge') {
|
|
1211
|
-
var adjustNames = [];
|
|
1212
|
-
if (xScale_2.isCategory || xScale_2.type === 'identity') {
|
|
1213
|
-
adjustNames.push('x');
|
|
1214
|
-
}
|
|
1215
|
-
else if (!yScale) {
|
|
1216
|
-
adjustNames.push('y');
|
|
1217
|
-
}
|
|
1218
|
-
else {
|
|
1219
|
-
throw new Error('dodge is not support linear attribute, please use category attribute!');
|
|
1220
|
-
}
|
|
1221
|
-
adjustCfg.adjustNames = adjustNames;
|
|
1222
|
-
// 每个分组内每条柱子的宽度占比,用户不可指定,用户需要通过 columnWidthRatio 指定
|
|
1223
|
-
// 兼容theme配置
|
|
1224
|
-
adjustCfg.dodgeRatio = columnWidthRatio;
|
|
1225
|
-
}
|
|
1226
|
-
else if (type === 'stack') {
|
|
1227
|
-
var coordinate = this.coordinate;
|
|
1228
|
-
if (!yScale) {
|
|
1229
|
-
// 一维的情况下获取高度和默认size
|
|
1230
|
-
adjustCfg.height = coordinate.getHeight();
|
|
1231
|
-
var size = this.getDefaultValue('size') || 3;
|
|
1232
|
-
adjustCfg.size = size;
|
|
1233
|
-
}
|
|
1234
|
-
// 不进行 transpose 时,用户又没有设置这个参数时,默认从上向下
|
|
1235
|
-
if (!coordinate.isTransposed && (0, util_1.isNil)(adjustCfg.reverseOrder)) {
|
|
1236
|
-
adjustCfg.reverseOrder = true;
|
|
1237
|
-
}
|
|
1238
|
-
}
|
|
1239
|
-
var adjustCtor = (0, adjust_1.getAdjust)(type);
|
|
1240
|
-
adjustCfg.dimValuesMap = {};
|
|
1241
|
-
//生成dimValuesMap
|
|
1242
|
-
if (xScale_2 && xScale_2.values) {
|
|
1243
|
-
adjustCfg.dimValuesMap[xScale_2.field] = xScale_2.values.map(function (v) { return xScale_2.translate(v); });
|
|
1244
|
-
}
|
|
1245
|
-
var adjustInstance = new adjustCtor(adjustCfg);
|
|
1246
|
-
result = adjustInstance.process(result);
|
|
1247
|
-
this.adjusts[type] = adjustInstance;
|
|
1248
|
-
}
|
|
1249
|
-
}
|
|
1250
|
-
return result;
|
|
1251
|
-
};
|
|
1252
|
-
// 对数据进行分组
|
|
1253
|
-
Geometry.prototype.groupData = function (data) {
|
|
1254
|
-
var groupScales = this.getGroupScales();
|
|
1255
|
-
var scaleDefs = this.scaleDefs;
|
|
1256
|
-
var appendConditions = {};
|
|
1257
|
-
var groupFields = [];
|
|
1258
|
-
for (var index = 0; index < groupScales.length; index++) {
|
|
1259
|
-
var scale = groupScales[index];
|
|
1260
|
-
var field = scale.field;
|
|
1261
|
-
groupFields.push(field);
|
|
1262
|
-
if ((0, util_1.get)(scaleDefs, [field, 'values'])) {
|
|
1263
|
-
// 用户通过 view.scale() 接口指定了 values 属性
|
|
1264
|
-
appendConditions[field] = scaleDefs[field].values;
|
|
1265
|
-
}
|
|
1266
|
-
}
|
|
1267
|
-
return (0, group_data_1.group)(data, groupFields, appendConditions);
|
|
1268
|
-
};
|
|
1269
|
-
// 更新发生层叠后的数据对应的度量范围
|
|
1270
|
-
Geometry.prototype.updateStackRange = function (scale, dataArray) {
|
|
1271
|
-
var mergeArray = (0, util_1.flatten)(dataArray);
|
|
1272
|
-
var field = scale.field;
|
|
1273
|
-
var min = scale.min;
|
|
1274
|
-
var max = scale.max;
|
|
1275
|
-
for (var index = 0; index < mergeArray.length; index++) {
|
|
1276
|
-
var obj = mergeArray[index];
|
|
1277
|
-
var tmpMin = Math.min.apply(null, obj[field]);
|
|
1278
|
-
var tmpMax = Math.max.apply(null, obj[field]);
|
|
1279
|
-
if (tmpMin < min) {
|
|
1280
|
-
min = tmpMin;
|
|
1281
|
-
}
|
|
1282
|
-
if (tmpMax > max) {
|
|
1283
|
-
max = tmpMax;
|
|
1284
|
-
}
|
|
1285
|
-
}
|
|
1286
|
-
var scaleDefs = this.scaleDefs;
|
|
1287
|
-
var cfg = {};
|
|
1288
|
-
if (min < scale.min && !(0, util_1.get)(scaleDefs, [field, 'min'])) {
|
|
1289
|
-
// 用户如果在列定义中定义了 min,则以用户定义的为准
|
|
1290
|
-
cfg.min = min;
|
|
1291
|
-
}
|
|
1292
|
-
if (max > scale.max && !(0, util_1.get)(scaleDefs, [field, 'max'])) {
|
|
1293
|
-
// 用户如果在列定义中定义了 max
|
|
1294
|
-
cfg.max = max;
|
|
1295
|
-
}
|
|
1296
|
-
scale.change(cfg);
|
|
1297
|
-
};
|
|
1298
|
-
// 将数据映射至图形空间前的操作:排序以及关键点的生成
|
|
1299
|
-
Geometry.prototype.beforeMapping = function (beforeMappingData) {
|
|
1300
|
-
// 当初加 clone 是因为 points 的引用关系,导致更新失败,可是现在貌似复现不出来了,所以暂时不进行 clone
|
|
1301
|
-
// const source = clone(beforeMappingData);
|
|
1302
|
-
var source = beforeMappingData;
|
|
1303
|
-
if (this.sortable) {
|
|
1304
|
-
this.sort(source);
|
|
1305
|
-
}
|
|
1306
|
-
if (this.generatePoints) {
|
|
1307
|
-
// 需要生成关键点
|
|
1308
|
-
for (var index = 0, length_5 = source.length; index < length_5; index++) {
|
|
1309
|
-
var currentData = source[index];
|
|
1310
|
-
this.generateShapePoints(currentData);
|
|
1311
|
-
var nextData = source[index + 1];
|
|
1312
|
-
if (nextData) {
|
|
1313
|
-
this.generateShapePoints(nextData);
|
|
1314
|
-
currentData[0].nextPoints = nextData[0].points;
|
|
1315
|
-
}
|
|
1316
|
-
}
|
|
1317
|
-
}
|
|
1318
|
-
return source;
|
|
1319
|
-
};
|
|
1320
|
-
// 生成 shape 的关键点
|
|
1321
|
-
Geometry.prototype.generateShapePoints = function (data) {
|
|
1322
|
-
var shapeFactory = this.getShapeFactory();
|
|
1323
|
-
var shapeAttr = this.getAttribute('shape');
|
|
1324
|
-
for (var index = 0; index < data.length; index++) {
|
|
1325
|
-
var obj = data[index];
|
|
1326
|
-
var cfg = this.createShapePointsCfg(obj);
|
|
1327
|
-
var shape = shapeAttr ? this.getAttributeValues(shapeAttr, obj) : null;
|
|
1328
|
-
var points = shapeFactory.getShapePoints(shape, cfg);
|
|
1329
|
-
obj.points = points;
|
|
1330
|
-
}
|
|
1331
|
-
};
|
|
1332
|
-
// 将数据归一化
|
|
1333
|
-
Geometry.prototype.normalizeValues = function (values, scale) {
|
|
1334
|
-
var rst = [];
|
|
1335
|
-
if ((0, util_1.isArray)(values)) {
|
|
1336
|
-
for (var index = 0; index < values.length; index++) {
|
|
1337
|
-
var value = values[index];
|
|
1338
|
-
rst.push(scale.scale(value));
|
|
1339
|
-
}
|
|
1340
|
-
}
|
|
1341
|
-
else {
|
|
1342
|
-
rst = scale.scale(values);
|
|
1343
|
-
}
|
|
1344
|
-
return rst;
|
|
1345
|
-
};
|
|
1346
|
-
// 将数据映射至图形空间
|
|
1347
|
-
Geometry.prototype.mapping = function (data) {
|
|
1348
|
-
var attributes = this.attributes;
|
|
1349
|
-
var mappingData = [];
|
|
1350
|
-
for (var index = 0; index < data.length; index++) {
|
|
1351
|
-
var record = data[index];
|
|
1352
|
-
var newRecord = {
|
|
1353
|
-
_origin: record[constant_1.FIELD_ORIGIN],
|
|
1354
|
-
points: record.points,
|
|
1355
|
-
nextPoints: record.nextPoints,
|
|
1356
|
-
};
|
|
1357
|
-
for (var k in attributes) {
|
|
1358
|
-
if (attributes.hasOwnProperty(k)) {
|
|
1359
|
-
var attr = attributes[k];
|
|
1360
|
-
var names = attr.names;
|
|
1361
|
-
var values = this.getAttributeValues(attr, record);
|
|
1362
|
-
if (names.length > 1) {
|
|
1363
|
-
// position 之类的生成多个字段的属性
|
|
1364
|
-
for (var j = 0; j < values.length; j += 1) {
|
|
1365
|
-
var val = values[j];
|
|
1366
|
-
var name_1 = names[j];
|
|
1367
|
-
newRecord[name_1] = (0, util_1.isArray)(val) && val.length === 1 ? val[0] : val; // 只有一个值时返回第一个属性值
|
|
1368
|
-
}
|
|
1369
|
-
}
|
|
1370
|
-
else {
|
|
1371
|
-
// values.length === 1 的判断是以下情况,获取用户设置的图形属性值
|
|
1372
|
-
// shape('a', ['dot', 'dash']), color('a', ['red', 'yellow'])
|
|
1373
|
-
newRecord[names[0]] = values.length === 1 ? values[0] : values;
|
|
1374
|
-
}
|
|
1375
|
-
}
|
|
1376
|
-
}
|
|
1377
|
-
this.convertPoint(newRecord); // 将 x、y 转换成画布坐标
|
|
1378
|
-
mappingData.push(newRecord);
|
|
1379
|
-
}
|
|
1380
|
-
return mappingData;
|
|
1381
|
-
};
|
|
1382
|
-
// 将归一化的坐标值转换成画布坐标
|
|
1383
|
-
Geometry.prototype.convertPoint = function (mappingRecord) {
|
|
1384
|
-
var x = mappingRecord.x, y = mappingRecord.y;
|
|
1385
|
-
var rstX;
|
|
1386
|
-
var rstY;
|
|
1387
|
-
var obj;
|
|
1388
|
-
var coordinate = this.coordinate;
|
|
1389
|
-
if ((0, util_1.isArray)(x) && (0, util_1.isArray)(y)) {
|
|
1390
|
-
rstX = [];
|
|
1391
|
-
rstY = [];
|
|
1392
|
-
for (var i = 0, j = 0, xLen = x.length, yLen = y.length; i < xLen && j < yLen; i += 1, j += 1) {
|
|
1393
|
-
obj = coordinate.convert({
|
|
1394
|
-
x: x[i],
|
|
1395
|
-
y: y[j],
|
|
1396
|
-
});
|
|
1397
|
-
rstX.push(obj.x);
|
|
1398
|
-
rstY.push(obj.y);
|
|
1399
|
-
}
|
|
1400
|
-
}
|
|
1401
|
-
else if ((0, util_1.isArray)(y)) {
|
|
1402
|
-
rstY = [];
|
|
1403
|
-
for (var index = 0; index < y.length; index++) {
|
|
1404
|
-
var yVal = y[index];
|
|
1405
|
-
obj = coordinate.convert({
|
|
1406
|
-
x: x,
|
|
1407
|
-
y: yVal,
|
|
1408
|
-
});
|
|
1409
|
-
if (rstX && rstX !== obj.x) {
|
|
1410
|
-
if (!(0, util_1.isArray)(rstX)) {
|
|
1411
|
-
rstX = [rstX];
|
|
1412
|
-
}
|
|
1413
|
-
rstX.push(obj.x);
|
|
1414
|
-
}
|
|
1415
|
-
else {
|
|
1416
|
-
rstX = obj.x;
|
|
1417
|
-
}
|
|
1418
|
-
rstY.push(obj.y);
|
|
1419
|
-
}
|
|
1420
|
-
}
|
|
1421
|
-
else if ((0, util_1.isArray)(x)) {
|
|
1422
|
-
rstX = [];
|
|
1423
|
-
for (var index = 0; index < x.length; index++) {
|
|
1424
|
-
var xVal = x[index];
|
|
1425
|
-
obj = coordinate.convert({
|
|
1426
|
-
x: xVal,
|
|
1427
|
-
y: y,
|
|
1428
|
-
});
|
|
1429
|
-
if (rstY && rstY !== obj.y) {
|
|
1430
|
-
if (!(0, util_1.isArray)(rstY)) {
|
|
1431
|
-
rstY = [rstY];
|
|
1432
|
-
}
|
|
1433
|
-
rstY.push(obj.y);
|
|
1434
|
-
}
|
|
1435
|
-
else {
|
|
1436
|
-
rstY = obj.y;
|
|
1437
|
-
}
|
|
1438
|
-
rstX.push(obj.x);
|
|
1439
|
-
}
|
|
1440
|
-
}
|
|
1441
|
-
else {
|
|
1442
|
-
var point = coordinate.convert({
|
|
1443
|
-
x: x,
|
|
1444
|
-
y: y,
|
|
1445
|
-
});
|
|
1446
|
-
rstX = point.x;
|
|
1447
|
-
rstY = point.y;
|
|
1448
|
-
}
|
|
1449
|
-
mappingRecord.x = rstX;
|
|
1450
|
-
mappingRecord.y = rstY;
|
|
1451
|
-
};
|
|
1452
|
-
// 获取 style 配置
|
|
1453
|
-
Geometry.prototype.getStyleCfg = function (styleOption, originData) {
|
|
1454
|
-
var _a = styleOption.fields, fields = _a === void 0 ? [] : _a, callback = styleOption.callback, cfg = styleOption.cfg;
|
|
1455
|
-
if (cfg) {
|
|
1456
|
-
// 用户直接配置样式属性
|
|
1457
|
-
return cfg;
|
|
1458
|
-
}
|
|
1459
|
-
var params = fields.map(function (field) {
|
|
1460
|
-
return originData[field];
|
|
1461
|
-
});
|
|
1462
|
-
return callback.apply(void 0, tslib_1.__spreadArray([], tslib_1.__read(params), false));
|
|
1463
|
-
};
|
|
1464
|
-
Geometry.prototype.setCfg = function (cfg) {
|
|
1465
|
-
var _this = this;
|
|
1466
|
-
var coordinate = cfg.coordinate, data = cfg.data, theme = cfg.theme, scaleDefs = cfg.scaleDefs;
|
|
1467
|
-
if (coordinate) {
|
|
1468
|
-
this.coordinate = coordinate;
|
|
1469
|
-
}
|
|
1470
|
-
if (data) {
|
|
1471
|
-
this.data = data;
|
|
1472
|
-
}
|
|
1473
|
-
if (scaleDefs) {
|
|
1474
|
-
this.scaleDefs = scaleDefs;
|
|
1475
|
-
this.idFields = [];
|
|
1476
|
-
(0, util_1.each)(scaleDefs, function (scaleDef, field) {
|
|
1477
|
-
if (scaleDef && scaleDef.key) {
|
|
1478
|
-
_this.idFields.push(field);
|
|
1479
|
-
}
|
|
1480
|
-
});
|
|
1481
|
-
}
|
|
1482
|
-
if (theme) {
|
|
1483
|
-
this.theme = this.userTheme ? (0, util_1.deepMix)({}, theme, this.userTheme) : theme; // 支持 geometry 层级的主题设置
|
|
1484
|
-
}
|
|
1485
|
-
};
|
|
1486
|
-
Geometry.prototype.renderLabels = function (mappingArray, isUpdate) {
|
|
1487
|
-
if (isUpdate === void 0) { isUpdate = false; }
|
|
1488
|
-
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
1489
|
-
var geometryLabel, labelType, GeometryLabelsCtor, labelsMap, elementLabels, _a, _b, _c, element, labels;
|
|
1490
|
-
var e_5, _d;
|
|
1491
|
-
var _this = this;
|
|
1492
|
-
return tslib_1.__generator(this, function (_e) {
|
|
1493
|
-
switch (_e.label) {
|
|
1494
|
-
case 0:
|
|
1495
|
-
geometryLabel = this.geometryLabel;
|
|
1496
|
-
this.emit(constant_1.GEOMETRY_LIFE_CIRCLE.BEFORE_RENDER_LABEL);
|
|
1497
|
-
if (!geometryLabel) {
|
|
1498
|
-
labelType = this.getLabelType();
|
|
1499
|
-
GeometryLabelsCtor = (0, label_1.getGeometryLabel)(labelType);
|
|
1500
|
-
geometryLabel = new GeometryLabelsCtor(this);
|
|
1501
|
-
this.geometryLabel = geometryLabel;
|
|
1502
|
-
}
|
|
1503
|
-
return [4 /*yield*/, geometryLabel.render(mappingArray, isUpdate)];
|
|
1504
|
-
case 1:
|
|
1505
|
-
_e.sent();
|
|
1506
|
-
labelsMap = geometryLabel.labelsRenderer.shapesMap;
|
|
1507
|
-
elementLabels = new Map();
|
|
1508
|
-
(0, util_1.each)(labelsMap, function (labelGroup, labelGroupId) {
|
|
1509
|
-
var labelChildren = labelGroup.getChildren() || [];
|
|
1510
|
-
for (var j = 0; j < labelChildren.length; j++) {
|
|
1511
|
-
var labelShape = labelChildren[j];
|
|
1512
|
-
var element = _this.elementsMap[labelShape.get('elementId') || labelGroupId.split(' ')[0]];
|
|
1513
|
-
if (element) {
|
|
1514
|
-
labelShape.cfg.name = ['element', 'label'];
|
|
1515
|
-
labelShape.cfg.element = element;
|
|
1516
|
-
var labels = elementLabels.get(element) || new Set();
|
|
1517
|
-
labels.add(labelGroup);
|
|
1518
|
-
elementLabels.set(element, labels);
|
|
1519
|
-
}
|
|
1520
|
-
}
|
|
1521
|
-
});
|
|
1522
|
-
try {
|
|
1523
|
-
for (_a = tslib_1.__values(elementLabels.entries()), _b = _a.next(); !_b.done; _b = _a.next()) {
|
|
1524
|
-
_c = tslib_1.__read(_b.value, 2), element = _c[0], labels = _c[1];
|
|
1525
|
-
element.labelShape = tslib_1.__spreadArray([], tslib_1.__read(labels), false);
|
|
1526
|
-
}
|
|
1527
|
-
}
|
|
1528
|
-
catch (e_5_1) { e_5 = { error: e_5_1 }; }
|
|
1529
|
-
finally {
|
|
1530
|
-
try {
|
|
1531
|
-
if (_b && !_b.done && (_d = _a.return)) _d.call(_a);
|
|
1532
|
-
}
|
|
1533
|
-
finally { if (e_5) throw e_5.error; }
|
|
1534
|
-
}
|
|
1535
|
-
this.emit(constant_1.GEOMETRY_LIFE_CIRCLE.AFTER_RENDER_LABEL);
|
|
1536
|
-
return [2 /*return*/];
|
|
1537
|
-
}
|
|
1538
|
-
});
|
|
1539
|
-
});
|
|
1540
|
-
};
|
|
1541
|
-
/**
|
|
1542
|
-
* 是否需要进行群组入场动画
|
|
1543
|
-
* 规则:
|
|
1544
|
-
* 1. 如果发生更新,则不进行
|
|
1545
|
-
* 2. 如果用户关闭 geometry 动画,则不进行
|
|
1546
|
-
* 3. 如果用户关闭了 appear 动画,则不进行
|
|
1547
|
-
* 4. 如果用户配置了 appear.animation,则不进行
|
|
1548
|
-
*/
|
|
1549
|
-
Geometry.prototype.canDoGroupAnimation = function (isUpdate) {
|
|
1550
|
-
return (!isUpdate &&
|
|
1551
|
-
this.animateOption &&
|
|
1552
|
-
((0, util_1.get)(this.animateOption, 'appear') === undefined ||
|
|
1553
|
-
((0, util_1.get)(this.animateOption, 'appear') && (0, util_1.get)(this.animateOption, ['appear', 'animation']) === undefined)));
|
|
1554
|
-
};
|
|
1555
|
-
return Geometry;
|
|
1556
|
-
}(base_1.default));
|
|
1557
|
-
exports.default = Geometry;
|
|
1558
|
-
//# sourceMappingURL=base.js.map
|