@antv/g2 4.2.6 → 5.0.0-alpha.1
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 +47 -74
- package/README.md +47 -72
- 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 +21 -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 +160 -0
- package/esm/animation/morphing.js.map +1 -0
- package/esm/animation/scaleInX.d.ts +7 -0
- package/esm/animation/scaleInX.js +45 -0
- package/esm/animation/scaleInX.js.map +1 -0
- package/esm/animation/scaleInY.d.ts +7 -0
- package/esm/animation/scaleInY.js +45 -0
- package/esm/animation/scaleInY.js.map +1 -0
- package/esm/animation/scaleOutX.d.ts +7 -0
- package/esm/animation/scaleOutX.js +45 -0
- package/esm/animation/scaleOutX.js.map +1 -0
- package/esm/animation/scaleOutY.d.ts +7 -0
- package/esm/animation/scaleOutY.js +45 -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 +33 -0
- package/esm/api/chart.js +110 -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 +2 -0
- package/esm/api/index.js +3 -0
- package/esm/api/index.js.map +1 -0
- package/esm/api/library.d.ts +3 -0
- package/esm/api/library.js +7 -0
- package/esm/api/library.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 +40 -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 +41 -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 +286 -0
- package/esm/composition/rect.js.map +1 -0
- package/esm/composition/utils.d.ts +16 -0
- package/esm/composition/utils.js +33 -0
- package/esm/composition/utils.js.map +1 -0
- package/esm/composition/view.d.ts +9 -0
- package/esm/composition/view.js +33 -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/fisheyeX.d.ts +7 -0
- package/esm/coordinate/fisheyeX.js +6 -0
- package/esm/coordinate/fisheyeX.js.map +1 -0
- package/esm/coordinate/fisheyeY.d.ts +7 -0
- package/esm/coordinate/fisheyeY.js +6 -0
- package/esm/coordinate/fisheyeY.js.map +1 -0
- package/esm/coordinate/helix.d.ts +7 -0
- package/esm/coordinate/helix.js +11 -0
- package/esm/coordinate/helix.js.map +1 -0
- package/esm/coordinate/index.d.ts +12 -0
- package/esm/coordinate/index.js +13 -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/reflect.d.ts +7 -0
- package/esm/coordinate/reflect.js +10 -0
- package/esm/coordinate/reflect.js.map +1 -0
- package/esm/coordinate/reflectX.d.ts +7 -0
- package/esm/coordinate/reflectX.js +10 -0
- package/esm/coordinate/reflectX.js.map +1 -0
- package/esm/coordinate/reflectY.d.ts +7 -0
- package/esm/coordinate/reflectY.js +10 -0
- package/esm/coordinate/reflectY.js.map +1 -0
- package/esm/coordinate/theta.d.ts +7 -0
- package/esm/coordinate/theta.js +11 -0
- package/esm/coordinate/theta.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/data/arc.d.ts +0 -0
- package/esm/data/arc.js +19 -0
- package/esm/data/arc.js.map +1 -0
- package/esm/data/cluster.d.ts +0 -0
- package/esm/data/cluster.js +47 -0
- package/esm/data/cluster.js.map +1 -0
- package/esm/data/connector.d.ts +7 -0
- package/esm/data/connector.js +9 -0
- package/esm/data/connector.js.map +1 -0
- package/esm/data/fetch.d.ts +4 -0
- package/esm/data/fetch.js +27 -0
- package/esm/data/fetch.js.map +1 -0
- package/esm/data/filterBy.d.ts +8 -0
- package/esm/data/filterBy.js +13 -0
- package/esm/data/filterBy.js.map +1 -0
- package/esm/data/fold.d.ts +10 -0
- package/esm/data/fold.js +24 -0
- package/esm/data/fold.js.map +1 -0
- package/esm/data/index.d.ts +9 -0
- package/esm/data/index.js +10 -0
- package/esm/data/index.js.map +1 -0
- package/esm/data/inline.d.ts +4 -0
- package/esm/data/inline.js +6 -0
- package/esm/data/inline.js.map +1 -0
- package/esm/data/pick.d.ts +7 -0
- package/esm/data/pick.js +10 -0
- package/esm/data/pick.js.map +1 -0
- package/esm/data/rename.d.ts +8 -0
- package/esm/data/rename.js +17 -0
- package/esm/data/rename.js.map +1 -0
- package/esm/data/sankey.d.ts +0 -0
- package/esm/data/sankey.js +96 -0
- package/esm/data/sankey.js.map +1 -0
- package/esm/data/sortBy.d.ts +7 -0
- package/esm/data/sortBy.js +14 -0
- package/esm/data/sortBy.js.map +1 -0
- package/esm/data/subset.d.ts +7 -0
- package/esm/data/subset.js +26 -0
- package/esm/data/subset.js.map +1 -0
- package/esm/data/tree.d.ts +0 -0
- package/esm/data/tree.js +10 -0
- package/esm/data/tree.js.map +1 -0
- package/esm/data/utils/arc/arc.d.ts +8 -0
- package/esm/data/utils/arc/arc.js +161 -0
- package/esm/data/utils/arc/arc.js.map +1 -0
- package/esm/data/utils/arc/index.d.ts +2 -0
- package/esm/data/utils/arc/index.js +2 -0
- package/esm/data/utils/arc/index.js.map +1 -0
- package/esm/data/utils/arc/sort.d.ts +4 -0
- package/esm/data/utils/arc/sort.js +13 -0
- package/esm/data/utils/arc/sort.js.map +1 -0
- package/esm/data/utils/arc/types.d.ts +26 -0
- package/esm/data/utils/arc/types.js +2 -0
- package/esm/data/utils/arc/types.js.map +1 -0
- package/esm/data/utils/d3-cloud/index.d.ts +1 -0
- package/esm/data/utils/d3-cloud/index.js +395 -0
- package/esm/data/utils/d3-cloud/index.js.map +1 -0
- package/esm/data/utils/d3-sankey/align.d.ts +4 -0
- package/esm/data/utils/d3-sankey/align.js +21 -0
- package/esm/data/utils/d3-sankey/align.js.map +1 -0
- package/esm/data/utils/d3-sankey/constant.d.ts +1 -0
- package/esm/data/utils/d3-sankey/constant.js +6 -0
- package/esm/data/utils/d3-sankey/constant.js.map +1 -0
- package/esm/data/utils/d3-sankey/index.d.ts +12 -0
- package/esm/data/utils/d3-sankey/index.js +13 -0
- package/esm/data/utils/d3-sankey/index.js.map +1 -0
- package/esm/data/utils/d3-sankey/sankey.d.ts +24 -0
- package/esm/data/utils/d3-sankey/sankey.js +388 -0
- package/esm/data/utils/d3-sankey/sankey.js.map +1 -0
- package/esm/data/utils/flow.d.ts +9 -0
- package/esm/data/utils/flow.js +45 -0
- package/esm/data/utils/flow.js.map +1 -0
- package/esm/data/utils/memo.d.ts +17 -0
- package/esm/data/utils/memo.js +79 -0
- package/esm/data/utils/memo.js.map +1 -0
- package/esm/data/voronoi.d.ts +0 -0
- package/esm/data/voronoi.js +27 -0
- package/esm/data/voronoi.js.map +1 -0
- package/esm/data/wordCloud.d.ts +0 -0
- package/esm/data/wordCloud.js +100 -0
- package/esm/data/wordCloud.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 +51 -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 +45 -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 +35 -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/labelLayout/hideOverlap.d.ts +2 -0
- package/esm/labelLayout/hideOverlap.js +38 -0
- package/esm/labelLayout/hideOverlap.js.map +1 -0
- package/esm/labelLayout/index.d.ts +1 -0
- package/esm/labelLayout/index.js +2 -0
- package/esm/labelLayout/index.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 +8 -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 +140 -0
- package/esm/runtime/component.js.map +1 -0
- package/esm/runtime/coordinate.d.ts +11 -0
- package/esm/runtime/coordinate.js +50 -0
- package/esm/runtime/coordinate.js.map +1 -0
- package/esm/runtime/index.d.ts +8 -0
- package/esm/runtime/index.js +9 -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 +127 -0
- package/esm/runtime/mark.js.map +1 -0
- package/esm/runtime/plot.d.ts +3 -0
- package/esm/runtime/plot.js +560 -0
- package/esm/runtime/plot.js.map +1 -0
- package/esm/runtime/render.d.ts +2 -0
- package/esm/runtime/render.js +67 -0
- package/esm/runtime/render.js.map +1 -0
- package/esm/runtime/scale.d.ts +8 -0
- package/esm/runtime/scale.js +335 -0
- package/esm/runtime/scale.js.map +1 -0
- package/esm/runtime/transform.d.ts +9 -0
- package/esm/runtime/transform.js +144 -0
- package/esm/runtime/transform.js.map +1 -0
- package/esm/runtime/types/common.d.ts +127 -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 +76 -0
- package/esm/runtime/types/component.js +2 -0
- package/esm/runtime/types/component.js.map +1 -0
- package/esm/runtime/types/data.d.ts +7 -0
- package/esm/runtime/types/data.js +2 -0
- package/esm/runtime/types/data.js.map +1 -0
- package/esm/runtime/types/encode.d.ts +23 -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 +109 -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 +17 -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 +62 -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 +100 -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 +59 -0
- package/esm/shape/utils.js +90 -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 +127 -0
- package/esm/spec/composition.js +2 -0
- package/esm/spec/composition.js.map +1 -0
- package/esm/spec/coordinate.d.ts +74 -0
- package/esm/spec/coordinate.js +2 -0
- package/esm/spec/coordinate.js.map +1 -0
- package/esm/spec/data.d.ts +54 -0
- package/esm/spec/data.js +2 -0
- package/esm/spec/data.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 +61 -0
- package/esm/spec/geometry.js +2 -0
- package/esm/spec/geometry.js.map +1 -0
- package/esm/spec/index.d.ts +17 -0
- package/esm/spec/index.js +13 -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/labelLayout.d.ts +4 -0
- package/esm/spec/labelLayout.js +2 -0
- package/esm/spec/labelLayout.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/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 +69 -0
- package/esm/spec/transform.js +135 -0
- package/esm/spec/transform.js.map +1 -0
- package/esm/stdlib/index.d.ts +2 -0
- package/esm/stdlib/index.js +196 -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 +31 -0
- package/esm/theme/light.js.map +1 -0
- package/esm/transform/Select.d.ts +9 -0
- package/esm/transform/Select.js +53 -0
- package/esm/transform/Select.js.map +1 -0
- package/esm/transform/SelectX.d.ts +7 -0
- package/esm/transform/SelectX.js +21 -0
- package/esm/transform/SelectX.js.map +1 -0
- package/esm/transform/SelectY.d.ts +7 -0
- package/esm/transform/SelectY.js +21 -0
- package/esm/transform/SelectY.js.map +1 -0
- package/esm/transform/dodgeX.d.ts +9 -0
- package/esm/transform/dodgeX.js +56 -0
- package/esm/transform/dodgeX.js.map +1 -0
- package/esm/transform/groupX.d.ts +9 -0
- package/esm/transform/groupX.js +89 -0
- package/esm/transform/groupX.js.map +1 -0
- package/esm/transform/index.d.ts +21 -0
- package/esm/transform/index.js +22 -0
- package/esm/transform/index.js.map +1 -0
- package/esm/transform/jitter.d.ts +9 -0
- package/esm/transform/jitter.js +36 -0
- package/esm/transform/jitter.js.map +1 -0
- package/esm/transform/jitterY.d.ts +8 -0
- package/esm/transform/jitterY.js +21 -0
- package/esm/transform/jitterY.js.map +1 -0
- package/esm/transform/maybeKey.d.ts +6 -0
- package/esm/transform/maybeKey.js +32 -0
- package/esm/transform/maybeKey.js.map +1 -0
- package/esm/transform/maybeSeries.d.ts +6 -0
- package/esm/transform/maybeSeries.js +17 -0
- package/esm/transform/maybeSeries.js.map +1 -0
- package/esm/transform/maybeSize.d.ts +7 -0
- package/esm/transform/maybeSize.js +20 -0
- package/esm/transform/maybeSize.js.map +1 -0
- package/esm/transform/maybeStackY.d.ts +9 -0
- package/esm/transform/maybeStackY.js +30 -0
- package/esm/transform/maybeStackY.js.map +1 -0
- package/esm/transform/maybeTitleX.d.ts +6 -0
- package/esm/transform/maybeTitleX.js +17 -0
- package/esm/transform/maybeTitleX.js.map +1 -0
- package/esm/transform/maybeTooltip.d.ts +8 -0
- package/esm/transform/maybeTooltip.js +29 -0
- package/esm/transform/maybeTooltip.js.map +1 -0
- package/esm/transform/maybeTooltipPosition.d.ts +7 -0
- package/esm/transform/maybeTooltipPosition.js +10 -0
- package/esm/transform/maybeTooltipPosition.js.map +1 -0
- package/esm/transform/maybeTooltipY.d.ts +6 -0
- package/esm/transform/maybeTooltipY.js +9 -0
- package/esm/transform/maybeTooltipY.js.map +1 -0
- package/esm/transform/maybeZeroX.d.ts +7 -0
- package/esm/transform/maybeZeroX.js +22 -0
- package/esm/transform/maybeZeroX.js.map +1 -0
- package/esm/transform/maybeZeroY.d.ts +6 -0
- package/esm/transform/maybeZeroY.js +21 -0
- package/esm/transform/maybeZeroY.js.map +1 -0
- package/esm/transform/maybeZeroY1.d.ts +6 -0
- package/esm/transform/maybeZeroY1.js +21 -0
- package/esm/transform/maybeZeroY1.js.map +1 -0
- package/esm/transform/normalizeY.d.ts +9 -0
- package/esm/transform/normalizeY.js +69 -0
- package/esm/transform/normalizeY.js.map +1 -0
- package/esm/transform/stackEnter.d.ts +13 -0
- package/esm/transform/stackEnter.js +62 -0
- package/esm/transform/stackEnter.js.map +1 -0
- package/esm/transform/stackY.d.ts +9 -0
- package/esm/transform/stackY.js +56 -0
- package/esm/transform/stackY.js.map +1 -0
- package/esm/transform/symmetryY.d.ts +8 -0
- package/esm/transform/symmetryY.js +60 -0
- package/esm/transform/symmetryY.js.map +1 -0
- package/esm/transform/utils/helper.d.ts +15 -0
- package/esm/transform/utils/helper.js +34 -0
- package/esm/transform/utils/helper.js.map +1 -0
- package/esm/transform/utils/order.d.ts +9 -0
- package/esm/transform/utils/order.js +72 -0
- package/esm/transform/utils/order.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 +6 -0
- package/esm/utils/coordinate.js +24 -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 +25 -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 +164 -0
- package/lib/animation/morphing.js.map +1 -0
- package/lib/animation/scaleInX.d.ts +7 -0
- package/lib/animation/scaleInX.js +49 -0
- package/lib/animation/scaleInX.js.map +1 -0
- package/lib/animation/scaleInY.d.ts +7 -0
- package/lib/animation/scaleInY.js +49 -0
- package/lib/animation/scaleInY.js.map +1 -0
- package/lib/animation/scaleOutX.d.ts +7 -0
- package/lib/animation/scaleOutX.js +49 -0
- package/lib/animation/scaleOutX.js.map +1 -0
- package/lib/animation/scaleOutY.d.ts +7 -0
- package/lib/animation/scaleOutY.js +49 -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 +33 -0
- package/lib/api/chart.js +114 -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 +2 -0
- package/lib/api/index.js +8 -0
- package/lib/api/index.js.map +1 -0
- package/lib/api/library.d.ts +3 -0
- package/lib/api/library.js +11 -0
- package/lib/api/library.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 +44 -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 +45 -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 +291 -0
- package/lib/composition/rect.js.map +1 -0
- package/lib/composition/utils.d.ts +16 -0
- package/lib/composition/utils.js +39 -0
- package/lib/composition/utils.js.map +1 -0
- package/lib/composition/view.d.ts +9 -0
- package/lib/composition/view.js +37 -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/fisheyeX.d.ts +7 -0
- package/lib/coordinate/fisheyeX.js +10 -0
- package/lib/coordinate/fisheyeX.js.map +1 -0
- package/lib/coordinate/fisheyeY.d.ts +7 -0
- package/lib/coordinate/fisheyeY.js +10 -0
- package/lib/coordinate/fisheyeY.js.map +1 -0
- package/lib/coordinate/helix.d.ts +7 -0
- package/lib/coordinate/helix.js +15 -0
- package/lib/coordinate/helix.js.map +1 -0
- package/lib/coordinate/index.d.ts +12 -0
- package/lib/coordinate/index.js +28 -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/reflect.d.ts +7 -0
- package/lib/coordinate/reflect.js +14 -0
- package/lib/coordinate/reflect.js.map +1 -0
- package/lib/coordinate/reflectX.d.ts +7 -0
- package/lib/coordinate/reflectX.js +14 -0
- package/lib/coordinate/reflectX.js.map +1 -0
- package/lib/coordinate/reflectY.d.ts +7 -0
- package/lib/coordinate/reflectY.js +14 -0
- package/lib/coordinate/reflectY.js.map +1 -0
- package/lib/coordinate/theta.d.ts +7 -0
- package/lib/coordinate/theta.js +15 -0
- package/lib/coordinate/theta.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/data/arc.d.ts +0 -0
- package/lib/data/arc.js +19 -0
- package/lib/data/arc.js.map +1 -0
- package/lib/data/cluster.d.ts +0 -0
- package/lib/data/cluster.js +47 -0
- package/lib/data/cluster.js.map +1 -0
- package/lib/data/connector.d.ts +7 -0
- package/lib/data/connector.js +13 -0
- package/lib/data/connector.js.map +1 -0
- package/lib/data/fetch.d.ts +4 -0
- package/lib/data/fetch.js +31 -0
- package/lib/data/fetch.js.map +1 -0
- package/lib/data/filterBy.d.ts +8 -0
- package/lib/data/filterBy.js +17 -0
- package/lib/data/filterBy.js.map +1 -0
- package/lib/data/fold.d.ts +10 -0
- package/lib/data/fold.js +29 -0
- package/lib/data/fold.js.map +1 -0
- package/lib/data/index.d.ts +9 -0
- package/lib/data/index.js +22 -0
- package/lib/data/index.js.map +1 -0
- package/lib/data/inline.d.ts +4 -0
- package/lib/data/inline.js +10 -0
- package/lib/data/inline.js.map +1 -0
- package/lib/data/pick.d.ts +7 -0
- package/lib/data/pick.js +14 -0
- package/lib/data/pick.js.map +1 -0
- package/lib/data/rename.d.ts +8 -0
- package/lib/data/rename.js +22 -0
- package/lib/data/rename.js.map +1 -0
- package/lib/data/sankey.d.ts +0 -0
- package/lib/data/sankey.js +96 -0
- package/lib/data/sankey.js.map +1 -0
- package/lib/data/sortBy.d.ts +7 -0
- package/lib/data/sortBy.js +18 -0
- package/lib/data/sortBy.js.map +1 -0
- package/lib/data/subset.d.ts +7 -0
- package/lib/data/subset.js +30 -0
- package/lib/data/subset.js.map +1 -0
- package/lib/data/tree.d.ts +0 -0
- package/lib/data/tree.js +10 -0
- package/lib/data/tree.js.map +1 -0
- package/lib/data/utils/arc/arc.d.ts +8 -0
- package/lib/data/utils/arc/arc.js +188 -0
- package/lib/data/utils/arc/arc.js.map +1 -0
- package/lib/data/utils/arc/index.d.ts +2 -0
- package/lib/data/utils/arc/index.js +6 -0
- package/lib/data/utils/arc/index.js.map +1 -0
- package/lib/data/utils/arc/sort.d.ts +4 -0
- package/lib/data/utils/arc/sort.js +20 -0
- package/lib/data/utils/arc/sort.js.map +1 -0
- package/lib/data/utils/arc/types.d.ts +26 -0
- package/lib/data/utils/arc/types.js +3 -0
- package/lib/data/utils/arc/types.js.map +1 -0
- package/lib/data/utils/d3-cloud/index.d.ts +1 -0
- package/lib/data/utils/d3-cloud/index.js +399 -0
- package/lib/data/utils/d3-cloud/index.js.map +1 -0
- package/lib/data/utils/d3-sankey/align.d.ts +4 -0
- package/lib/data/utils/d3-sankey/align.js +28 -0
- package/lib/data/utils/d3-sankey/align.js.map +1 -0
- package/lib/data/utils/d3-sankey/constant.d.ts +1 -0
- package/lib/data/utils/d3-sankey/constant.js +10 -0
- package/lib/data/utils/d3-sankey/constant.js.map +1 -0
- package/lib/data/utils/d3-sankey/index.d.ts +12 -0
- package/lib/data/utils/d3-sankey/index.js +20 -0
- package/lib/data/utils/d3-sankey/index.js.map +1 -0
- package/lib/data/utils/d3-sankey/sankey.d.ts +24 -0
- package/lib/data/utils/d3-sankey/sankey.js +392 -0
- package/lib/data/utils/d3-sankey/sankey.js.map +1 -0
- package/lib/data/utils/flow.d.ts +9 -0
- package/lib/data/utils/flow.js +49 -0
- package/lib/data/utils/flow.js.map +1 -0
- package/lib/data/utils/memo.d.ts +17 -0
- package/lib/data/utils/memo.js +85 -0
- package/lib/data/utils/memo.js.map +1 -0
- package/lib/data/voronoi.d.ts +0 -0
- package/lib/data/voronoi.js +27 -0
- package/lib/data/voronoi.js.map +1 -0
- package/lib/data/wordCloud.d.ts +0 -0
- package/lib/data/wordCloud.js +100 -0
- package/lib/data/wordCloud.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 +21 -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 +55 -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 +49 -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 +35 -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/labelLayout/hideOverlap.d.ts +2 -0
- package/lib/labelLayout/hideOverlap.js +42 -0
- package/lib/labelLayout/hideOverlap.js.map +1 -0
- package/lib/labelLayout/index.d.ts +1 -0
- package/lib/labelLayout/index.js +6 -0
- package/lib/labelLayout/index.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 +8 -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 +145 -0
- package/lib/runtime/component.js.map +1 -0
- package/lib/runtime/coordinate.d.ts +11 -0
- package/lib/runtime/coordinate.js +61 -0
- package/lib/runtime/coordinate.js.map +1 -0
- package/lib/runtime/index.d.ts +8 -0
- package/lib/runtime/index.js +27 -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 +132 -0
- package/lib/runtime/mark.js.map +1 -0
- package/lib/runtime/plot.d.ts +3 -0
- package/lib/runtime/plot.js +564 -0
- package/lib/runtime/plot.js.map +1 -0
- package/lib/runtime/render.d.ts +2 -0
- package/lib/runtime/render.js +71 -0
- package/lib/runtime/render.js.map +1 -0
- package/lib/runtime/scale.d.ts +8 -0
- package/lib/runtime/scale.js +342 -0
- package/lib/runtime/scale.js.map +1 -0
- package/lib/runtime/transform.d.ts +9 -0
- package/lib/runtime/transform.js +154 -0
- package/lib/runtime/transform.js.map +1 -0
- package/lib/runtime/types/common.d.ts +127 -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 +76 -0
- package/lib/runtime/types/component.js +3 -0
- package/lib/runtime/types/component.js.map +1 -0
- package/lib/runtime/types/data.d.ts +7 -0
- package/lib/runtime/types/data.js +3 -0
- package/lib/runtime/types/data.js.map +1 -0
- package/lib/runtime/types/encode.d.ts +23 -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 +109 -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 +17 -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 +66 -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 +104 -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 +59 -0
- package/lib/shape/utils.js +99 -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 +127 -0
- package/lib/spec/composition.js +3 -0
- package/lib/spec/composition.js.map +1 -0
- package/lib/spec/coordinate.d.ts +74 -0
- package/lib/spec/coordinate.js +3 -0
- package/lib/spec/coordinate.js.map +1 -0
- package/lib/spec/data.d.ts +54 -0
- package/lib/spec/data.js +3 -0
- package/lib/spec/data.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 +61 -0
- package/lib/spec/geometry.js +3 -0
- package/lib/spec/geometry.js.map +1 -0
- package/lib/spec/index.d.ts +17 -0
- package/lib/spec/index.js +29 -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/labelLayout.d.ts +4 -0
- package/lib/spec/labelLayout.js +3 -0
- package/lib/spec/labelLayout.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/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 +69 -0
- package/lib/spec/transform.js +136 -0
- package/lib/spec/transform.js.map +1 -0
- package/lib/stdlib/index.d.ts +2 -0
- package/lib/stdlib/index.js +200 -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 +35 -0
- package/lib/theme/light.js.map +1 -0
- package/lib/transform/Select.d.ts +9 -0
- package/lib/transform/Select.js +57 -0
- package/lib/transform/Select.js.map +1 -0
- package/lib/transform/SelectX.d.ts +7 -0
- package/lib/transform/SelectX.js +25 -0
- package/lib/transform/SelectX.js.map +1 -0
- package/lib/transform/SelectY.d.ts +7 -0
- package/lib/transform/SelectY.js +25 -0
- package/lib/transform/SelectY.js.map +1 -0
- package/lib/transform/dodgeX.d.ts +9 -0
- package/lib/transform/dodgeX.js +60 -0
- package/lib/transform/dodgeX.js.map +1 -0
- package/lib/transform/groupX.d.ts +9 -0
- package/lib/transform/groupX.js +93 -0
- package/lib/transform/groupX.js.map +1 -0
- package/lib/transform/index.d.ts +21 -0
- package/lib/transform/index.js +46 -0
- package/lib/transform/index.js.map +1 -0
- package/lib/transform/jitter.d.ts +9 -0
- package/lib/transform/jitter.js +41 -0
- package/lib/transform/jitter.js.map +1 -0
- package/lib/transform/jitterY.d.ts +8 -0
- package/lib/transform/jitterY.js +25 -0
- package/lib/transform/jitterY.js.map +1 -0
- package/lib/transform/maybeKey.d.ts +6 -0
- package/lib/transform/maybeKey.js +36 -0
- package/lib/transform/maybeKey.js.map +1 -0
- package/lib/transform/maybeSeries.d.ts +6 -0
- package/lib/transform/maybeSeries.js +21 -0
- package/lib/transform/maybeSeries.js.map +1 -0
- package/lib/transform/maybeSize.d.ts +7 -0
- package/lib/transform/maybeSize.js +24 -0
- package/lib/transform/maybeSize.js.map +1 -0
- package/lib/transform/maybeStackY.d.ts +9 -0
- package/lib/transform/maybeStackY.js +34 -0
- package/lib/transform/maybeStackY.js.map +1 -0
- package/lib/transform/maybeTitleX.d.ts +6 -0
- package/lib/transform/maybeTitleX.js +21 -0
- package/lib/transform/maybeTitleX.js.map +1 -0
- package/lib/transform/maybeTooltip.d.ts +8 -0
- package/lib/transform/maybeTooltip.js +33 -0
- package/lib/transform/maybeTooltip.js.map +1 -0
- package/lib/transform/maybeTooltipPosition.d.ts +7 -0
- package/lib/transform/maybeTooltipPosition.js +14 -0
- package/lib/transform/maybeTooltipPosition.js.map +1 -0
- package/lib/transform/maybeTooltipY.d.ts +6 -0
- package/lib/transform/maybeTooltipY.js +13 -0
- package/lib/transform/maybeTooltipY.js.map +1 -0
- package/lib/transform/maybeZeroX.d.ts +7 -0
- package/lib/transform/maybeZeroX.js +26 -0
- package/lib/transform/maybeZeroX.js.map +1 -0
- package/lib/transform/maybeZeroY.d.ts +6 -0
- package/lib/transform/maybeZeroY.js +25 -0
- package/lib/transform/maybeZeroY.js.map +1 -0
- package/lib/transform/maybeZeroY1.d.ts +6 -0
- package/lib/transform/maybeZeroY1.js +25 -0
- package/lib/transform/maybeZeroY1.js.map +1 -0
- package/lib/transform/normalizeY.d.ts +9 -0
- package/lib/transform/normalizeY.js +73 -0
- package/lib/transform/normalizeY.js.map +1 -0
- package/lib/transform/stackEnter.d.ts +13 -0
- package/lib/transform/stackEnter.js +66 -0
- package/lib/transform/stackEnter.js.map +1 -0
- package/lib/transform/stackY.d.ts +9 -0
- package/lib/transform/stackY.js +60 -0
- package/lib/transform/stackY.js.map +1 -0
- package/lib/transform/symmetryY.d.ts +8 -0
- package/lib/transform/symmetryY.js +64 -0
- package/lib/transform/symmetryY.js.map +1 -0
- package/lib/transform/utils/helper.d.ts +15 -0
- package/lib/transform/utils/helper.js +42 -0
- package/lib/transform/utils/helper.js.map +1 -0
- package/lib/transform/utils/order.d.ts +9 -0
- package/lib/transform/utils/order.js +79 -0
- package/lib/transform/utils/order.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 +6 -0
- package/lib/utils/coordinate.js +32 -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 +86 -120
- package/src/adjust/index.ts +1 -0
- package/src/adjust/pack.ts +67 -0
- package/src/animation/fadeIn.ts +28 -0
- package/src/animation/fadeOut.ts +26 -0
- package/src/animation/index.ts +7 -0
- package/src/animation/morphing.ts +211 -0
- package/src/animation/scaleInX.ts +64 -0
- package/src/animation/scaleInY.ts +64 -0
- package/src/animation/scaleOutX.ts +64 -0
- package/src/animation/scaleOutY.ts +64 -0
- package/src/animation/utils.ts +26 -0
- package/src/api/chart.ts +135 -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 +2 -0
- package/src/api/library.ts +12 -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 +49 -0
- package/src/composition/index.ts +8 -0
- package/src/composition/keyframe.ts +90 -0
- package/src/composition/layer.ts +26 -0
- package/src/composition/mark.ts +55 -0
- package/src/composition/matrix.ts +170 -0
- package/src/composition/rect.ts +339 -0
- package/src/composition/utils.ts +27 -0
- package/src/composition/view.ts +28 -0
- package/src/coordinate/cartesian.ts +11 -0
- package/src/coordinate/fisheye.ts +17 -0
- package/src/coordinate/fisheyeX.ts +15 -0
- package/src/coordinate/fisheyeY.ts +15 -0
- package/src/coordinate/helix.ts +21 -0
- package/src/coordinate/index.ts +12 -0
- package/src/coordinate/parallel.ts +11 -0
- package/src/coordinate/polar.ts +22 -0
- package/src/coordinate/reflect.ts +15 -0
- package/src/coordinate/reflectX.ts +15 -0
- package/src/coordinate/reflectY.ts +15 -0
- package/src/coordinate/theta.ts +21 -0
- package/src/coordinate/transpose.ts +16 -0
- package/src/data/arc.ts +21 -0
- package/src/data/cluster.ts +56 -0
- package/src/data/connector.ts +14 -0
- package/src/data/fetch.ts +23 -0
- package/src/data/filterBy.ts +19 -0
- package/src/data/fold.ts +29 -0
- package/src/data/index.ts +9 -0
- package/src/data/inline.ts +11 -0
- package/src/data/pick.ts +15 -0
- package/src/data/rename.ts +26 -0
- package/src/data/sankey.ts +105 -0
- package/src/data/sortBy.ts +23 -0
- package/src/data/subset.ts +35 -0
- package/src/data/tree.ts +12 -0
- package/src/data/utils/arc/arc.ts +210 -0
- package/src/data/utils/arc/index.ts +2 -0
- package/src/data/utils/arc/sort.ts +15 -0
- package/src/data/utils/arc/types.ts +27 -0
- package/src/data/utils/d3-cloud/index.ts +499 -0
- package/src/data/utils/d3-sankey/align.ts +25 -0
- package/src/data/utils/d3-sankey/constant.ts +5 -0
- package/src/data/utils/d3-sankey/index.ts +12 -0
- package/src/data/utils/d3-sankey/sankey.ts +436 -0
- package/src/data/utils/flow.ts +36 -0
- package/src/data/utils/memo.ts +80 -0
- package/src/data/voronoi.ts +30 -0
- package/src/data/wordCloud.ts +115 -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 +75 -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 +57 -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/labelLayout/hideOverlap.ts +47 -0
- package/src/labelLayout/index.ts +1 -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 +209 -0
- package/src/runtime/coordinate.ts +71 -0
- package/src/runtime/index.ts +8 -0
- package/src/runtime/layout.ts +180 -0
- package/src/runtime/library.ts +27 -0
- package/src/runtime/mark.ts +183 -0
- package/src/runtime/plot.ts +839 -0
- package/src/runtime/render.ts +80 -0
- package/src/runtime/scale.ts +453 -0
- package/src/runtime/transform.ts +159 -0
- package/src/runtime/types/common.ts +158 -0
- package/src/runtime/types/component.ts +223 -0
- package/src/runtime/types/data.ts +10 -0
- package/src/runtime/types/encode.ts +36 -0
- package/src/runtime/types/mark.ts +31 -0
- package/src/runtime/types/options.ts +164 -0
- package/src/runtime/types/transform.ts +29 -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 +62 -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 +116 -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 +160 -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 +145 -0
- package/src/spec/coordinate.ts +113 -0
- package/src/spec/data.ts +81 -0
- package/src/spec/encode.ts +46 -0
- package/src/spec/geometry.ts +168 -0
- package/src/spec/index.ts +19 -0
- package/src/spec/interaction.ts +115 -0
- package/src/spec/labelLayout.ts +5 -0
- package/src/spec/palette.ts +18 -0
- package/src/spec/scale.ts +78 -0
- package/src/spec/theme.ts +20 -0
- package/src/spec/title.ts +3 -0
- package/src/spec/transform.ts +274 -0
- package/src/stdlib/index.ts +364 -0
- package/src/theme/index.ts +1 -28
- package/src/theme/light.ts +35 -0
- package/src/transform/dodgeX.ts +59 -0
- package/src/transform/groupX.ts +92 -0
- package/src/transform/index.ts +24 -0
- package/src/transform/jitter.ts +45 -0
- package/src/transform/jitterY.ts +26 -0
- package/src/transform/maybeKey.ts +26 -0
- package/src/transform/maybeSeries.ts +20 -0
- package/src/transform/maybeSize.ts +23 -0
- package/src/transform/maybeStackY.ts +37 -0
- package/src/transform/maybeTitleX.ts +20 -0
- package/src/transform/maybeTooltip.ts +34 -0
- package/src/transform/maybeTooltipPosition.ts +14 -0
- package/src/transform/maybeTooltipY.ts +13 -0
- package/src/transform/maybeZeroX.ts +25 -0
- package/src/transform/maybeZeroY.ts +24 -0
- package/src/transform/maybeZeroY1.ts +24 -0
- package/src/transform/normalizeY.ts +70 -0
- package/src/transform/select.ts +53 -0
- package/src/transform/selectX.ts +15 -0
- package/src/transform/selectY.ts +15 -0
- package/src/transform/stackEnter.ts +73 -0
- package/src/transform/stackY.ts +59 -0
- package/src/transform/symmetryY.ts +60 -0
- package/src/transform/utils/helper.ts +37 -0
- package/src/transform/utils/order.ts +123 -0
- package/src/utils/array.ts +50 -0
- package/src/utils/container.ts +21 -0
- package/src/utils/coordinate.ts +29 -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/interface.d.ts
DELETED
|
@@ -1,3686 +0,0 @@
|
|
|
1
|
-
import { COMPONENT_TYPE, DIRECTION, LAYER } from './constant';
|
|
2
|
-
import { AxisLabelCfg, AxisLineCfg, AxisSubTickLineCfg, AxisTickLineCfg, AxisTitleCfg, ContinueLegendHandlerCfg, ContinueLegendLabelCfg, ContinueLegendRailCfg, ContinueLegendTrackCfg, Coordinate, CrosshairLineCfg, CrosshairTextBackgroundCfg, CrosshairTextCfg, EnhancedTextCfg, GridLineCfg, GroupComponent, HtmlComponent, ICanvas, IGroup, IShape, CategoryLegendCfg, LegendBackgroundCfg, LegendItemNameCfg, LegendItemValueCfg, LegendMarkerCfg, LegendTitleCfg, LegendPageNavigatorCfg, PathCommand, Scale, ScaleConfig, ShapeAttrs, LineAnnotationTextCfg, TrendCfg } from './dependents';
|
|
3
|
-
import { View } from './chart';
|
|
4
|
-
import { Facet } from './facet';
|
|
5
|
-
import Element from './geometry/element';
|
|
6
|
-
import { PaddingCalCtor } from './chart/layout/padding-cal';
|
|
7
|
-
import { LegendRadio } from '@antv/component';
|
|
8
|
-
/**
|
|
9
|
-
* @title 通用对象
|
|
10
|
-
*/
|
|
11
|
-
export interface LooseObject {
|
|
12
|
-
[key: string]: any;
|
|
13
|
-
}
|
|
14
|
-
/**
|
|
15
|
-
* @title 一个点位置
|
|
16
|
-
*/
|
|
17
|
-
export interface Point {
|
|
18
|
-
readonly x: number;
|
|
19
|
-
readonly y: number;
|
|
20
|
-
}
|
|
21
|
-
/**
|
|
22
|
-
* @title 画布范围
|
|
23
|
-
*/
|
|
24
|
-
export interface Region {
|
|
25
|
-
readonly start: Point;
|
|
26
|
-
readonly end: Point;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* @title 画布大小
|
|
30
|
-
*/
|
|
31
|
-
export interface Size {
|
|
32
|
-
readonly width: number;
|
|
33
|
-
readonly height: number;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* @title 带范围的点结构
|
|
37
|
-
*/
|
|
38
|
-
export interface RangePoint {
|
|
39
|
-
readonly x?: number | number[];
|
|
40
|
-
readonly y?: number | number[];
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* WAI-ARIA 无障碍标签配置
|
|
44
|
-
*/
|
|
45
|
-
export declare type AriaOption = false | {
|
|
46
|
-
readonly label: string;
|
|
47
|
-
};
|
|
48
|
-
/**
|
|
49
|
-
* @title 用户数据经过图形映射处理后的数据结构
|
|
50
|
-
*/
|
|
51
|
-
export interface MappingDatum {
|
|
52
|
-
/**
|
|
53
|
-
* @title 原始数据
|
|
54
|
-
*/
|
|
55
|
-
_origin: Datum;
|
|
56
|
-
/**
|
|
57
|
-
* @title shape 的关键点信息
|
|
58
|
-
*/
|
|
59
|
-
points?: ShapeVertices;
|
|
60
|
-
/**
|
|
61
|
-
* @title 相对于当前 shape 的下一个 shape 的关键点信息
|
|
62
|
-
*/
|
|
63
|
-
nextPoints?: ShapeVertices;
|
|
64
|
-
/**
|
|
65
|
-
* @title x 轴的坐标
|
|
66
|
-
*/
|
|
67
|
-
x?: number[] | number;
|
|
68
|
-
/**
|
|
69
|
-
* @title y 轴的坐标
|
|
70
|
-
*/
|
|
71
|
-
y?: number[] | number;
|
|
72
|
-
/**
|
|
73
|
-
* @title 颜色
|
|
74
|
-
*/
|
|
75
|
-
color?: string;
|
|
76
|
-
/**
|
|
77
|
-
* @title 渲染的 shape 类型
|
|
78
|
-
*/
|
|
79
|
-
shape?: string | string[];
|
|
80
|
-
/**
|
|
81
|
-
* @title 大小
|
|
82
|
-
*/
|
|
83
|
-
size?: number;
|
|
84
|
-
}
|
|
85
|
-
/**
|
|
86
|
-
* @title 绘制 Shape 需要的图形、样式、关键点等信息
|
|
87
|
-
*/
|
|
88
|
-
export interface ShapeInfo {
|
|
89
|
-
/**
|
|
90
|
-
* @title x 坐标
|
|
91
|
-
*/
|
|
92
|
-
x: number | number[];
|
|
93
|
-
/**
|
|
94
|
-
* @title y 坐标
|
|
95
|
-
*/
|
|
96
|
-
y: number | number[];
|
|
97
|
-
/**
|
|
98
|
-
* @title 映射的 shape 类型
|
|
99
|
-
*/
|
|
100
|
-
shape?: string | string[];
|
|
101
|
-
/**
|
|
102
|
-
* @title size 映射值
|
|
103
|
-
*/
|
|
104
|
-
size?: number;
|
|
105
|
-
/**
|
|
106
|
-
* @title 映射的颜色值
|
|
107
|
-
*/
|
|
108
|
-
color?: string;
|
|
109
|
-
/**
|
|
110
|
-
* @title 用户设置的图形样式
|
|
111
|
-
*/
|
|
112
|
-
style?: LooseObject;
|
|
113
|
-
/**
|
|
114
|
-
* @title 是否在极坐标下
|
|
115
|
-
*/
|
|
116
|
-
isInCircle?: boolean;
|
|
117
|
-
/**
|
|
118
|
-
* @title 对应的原始数据记录
|
|
119
|
-
*/
|
|
120
|
-
data?: Datum | Data;
|
|
121
|
-
/**
|
|
122
|
-
* @title 存储进行图形映射后的数据
|
|
123
|
-
*/
|
|
124
|
-
mappingData?: MappingDatum | MappingDatum[];
|
|
125
|
-
/**
|
|
126
|
-
* @title 构成 shape 的关键点
|
|
127
|
-
*/
|
|
128
|
-
points?: ShapeVertices;
|
|
129
|
-
/**
|
|
130
|
-
* @title 下一个数据集对应的关键点
|
|
131
|
-
*/
|
|
132
|
-
nextPoints?: ShapeVertices;
|
|
133
|
-
/**
|
|
134
|
-
* @title Geometry.Text 需要
|
|
135
|
-
*/
|
|
136
|
-
text?: string;
|
|
137
|
-
/**
|
|
138
|
-
* @title 数据是否发生层叠
|
|
139
|
-
*/
|
|
140
|
-
isStack?: boolean;
|
|
141
|
-
/**
|
|
142
|
-
* @title 是否连接空值,只对 Path Line Area 这三种 Geometry 生效。
|
|
143
|
-
*/
|
|
144
|
-
connectNulls?: boolean;
|
|
145
|
-
/**
|
|
146
|
-
* @title shape 背景,只对 Interval Geometry 生效,目前只对 interval-rect shape 生效。
|
|
147
|
-
*/
|
|
148
|
-
background?: {
|
|
149
|
-
style?: ShapeAttrs;
|
|
150
|
-
};
|
|
151
|
-
/**
|
|
152
|
-
* @title 是否展示单个孤立的数据点,只对 Path Line Area 这三种 Geometry 生效。
|
|
153
|
-
*/
|
|
154
|
-
showSinglePoint?: boolean;
|
|
155
|
-
/**
|
|
156
|
-
* @title 默认的 shape 样式
|
|
157
|
-
*/
|
|
158
|
-
defaultStyle?: LooseObject;
|
|
159
|
-
/**
|
|
160
|
-
* @title 自定义的数据,传入到 shapeInfo 中
|
|
161
|
-
*/
|
|
162
|
-
customInfo?: CustomOption;
|
|
163
|
-
}
|
|
164
|
-
/**
|
|
165
|
-
* @title 用户配置的动画,属性均可选
|
|
166
|
-
*/
|
|
167
|
-
export interface AnimateCfg {
|
|
168
|
-
/**
|
|
169
|
-
* @title 动画缓动函数
|
|
170
|
-
*/
|
|
171
|
-
readonly easing?: string | AnimateEasingCallback;
|
|
172
|
-
/**
|
|
173
|
-
* @title 动画执行函数
|
|
174
|
-
*/
|
|
175
|
-
readonly animation?: string;
|
|
176
|
-
/**
|
|
177
|
-
* @title 动画执行时间
|
|
178
|
-
*/
|
|
179
|
-
readonly duration?: number | AnimateDurationCallback;
|
|
180
|
-
/**
|
|
181
|
-
* @title 动画延迟时间
|
|
182
|
-
*/
|
|
183
|
-
readonly delay?: number | AnimateDelayCallback;
|
|
184
|
-
/**
|
|
185
|
-
* @title 动画执行结束后的回调函数
|
|
186
|
-
*/
|
|
187
|
-
readonly callback?: () => any;
|
|
188
|
-
/**
|
|
189
|
-
* @title 动画是否重复
|
|
190
|
-
*/
|
|
191
|
-
readonly repeat?: boolean;
|
|
192
|
-
}
|
|
193
|
-
/**
|
|
194
|
-
* @title 传递给 G 的动画配置,duration 必须提供
|
|
195
|
-
*/
|
|
196
|
-
export interface GAnimateCfg {
|
|
197
|
-
/**
|
|
198
|
-
* @title 动画执行时间
|
|
199
|
-
*/
|
|
200
|
-
readonly duration: number;
|
|
201
|
-
/**
|
|
202
|
-
* @title 动画缓动函数
|
|
203
|
-
*/
|
|
204
|
-
readonly easing?: string;
|
|
205
|
-
/**
|
|
206
|
-
* @title 动画执行函数
|
|
207
|
-
*/
|
|
208
|
-
readonly animation?: string;
|
|
209
|
-
/**
|
|
210
|
-
* @title 动画延迟时间
|
|
211
|
-
*/
|
|
212
|
-
readonly delay?: number;
|
|
213
|
-
/**
|
|
214
|
-
* @title 动画执行结束后的回调函数
|
|
215
|
-
*/
|
|
216
|
-
readonly callback?: () => any;
|
|
217
|
-
/**
|
|
218
|
-
* @title 动画是否重复
|
|
219
|
-
*/
|
|
220
|
-
readonly repeat?: boolean;
|
|
221
|
-
}
|
|
222
|
-
/**
|
|
223
|
-
* @title 图形属性配置项定义,如 geometry.position({})
|
|
224
|
-
*/
|
|
225
|
-
export interface AttributeOption {
|
|
226
|
-
/**
|
|
227
|
-
* @title 映射的属性字段。
|
|
228
|
-
*/
|
|
229
|
-
fields?: string[];
|
|
230
|
-
/**
|
|
231
|
-
* @title 回调函数。
|
|
232
|
-
*/
|
|
233
|
-
callback?: (...args: any[]) => any;
|
|
234
|
-
/**
|
|
235
|
-
* @title 指定常量映射规则。
|
|
236
|
-
*/
|
|
237
|
-
values?: any[];
|
|
238
|
-
}
|
|
239
|
-
/**
|
|
240
|
-
* @title 数据调整配置项定义,`geometry.adjust({})`
|
|
241
|
-
*/
|
|
242
|
-
export interface AdjustOption {
|
|
243
|
-
/**
|
|
244
|
-
* @title 数据调整类型。
|
|
245
|
-
*/
|
|
246
|
-
readonly type: AdjustType;
|
|
247
|
-
/**
|
|
248
|
-
* @title 间距
|
|
249
|
-
* @description 该属性只对 'dodge' 类型生效,取 0 到 1 范围的值(相对于每个柱子宽度),用于控制一个分组中柱子之间的间距。
|
|
250
|
-
* @see 
|
|
251
|
-
*/
|
|
252
|
-
readonly marginRatio?: number;
|
|
253
|
-
/**
|
|
254
|
-
* @title 分组字段
|
|
255
|
-
* @description 该属性只对 'dodge' 类型生效,声明以哪个数据字段为分组依据。
|
|
256
|
-
*/
|
|
257
|
-
readonly dodgeBy?: string;
|
|
258
|
-
/**
|
|
259
|
-
* @title 是否反序
|
|
260
|
-
* @description 该属性只对 'stack' 类型生效,用于控制是否对数据进行反序操作。
|
|
261
|
-
*/
|
|
262
|
-
readonly reverseOrder?: boolean;
|
|
263
|
-
}
|
|
264
|
-
/**
|
|
265
|
-
* @title `geometry.style({})` 样式配置定义
|
|
266
|
-
*/
|
|
267
|
-
export interface StyleOption {
|
|
268
|
-
/**
|
|
269
|
-
* @title 映射的字段。
|
|
270
|
-
*/
|
|
271
|
-
readonly fields?: string[];
|
|
272
|
-
/**
|
|
273
|
-
* @title 回调函数。
|
|
274
|
-
*/
|
|
275
|
-
readonly callback?: (...args: any[]) => LooseObject;
|
|
276
|
-
/**
|
|
277
|
-
* @title 图形样式配置。
|
|
278
|
-
*/
|
|
279
|
-
readonly cfg?: LooseObject;
|
|
280
|
-
}
|
|
281
|
-
/**
|
|
282
|
-
* @title geometry.custom() custom 自定义的配置,可以传入任何数据
|
|
283
|
-
*/
|
|
284
|
-
export declare type CustomOption = any;
|
|
285
|
-
/**
|
|
286
|
-
* @title `geometry.tooltip({})` Tooltip 配置定义
|
|
287
|
-
*/
|
|
288
|
-
export interface GeometryTooltipOption {
|
|
289
|
-
/**
|
|
290
|
-
* @title 参与映射的字段。
|
|
291
|
-
*/
|
|
292
|
-
readonly fields: string[];
|
|
293
|
-
/**
|
|
294
|
-
* @title 回调函数。
|
|
295
|
-
*/
|
|
296
|
-
readonly callback?: (...args: any[]) => LooseObject;
|
|
297
|
-
}
|
|
298
|
-
export interface GeometryLabelLayoutCfg {
|
|
299
|
-
/**
|
|
300
|
-
* @title label 布局类型。
|
|
301
|
-
*/
|
|
302
|
-
type: string;
|
|
303
|
-
/**
|
|
304
|
-
* @title 各个布局函数开放给用户的配置。
|
|
305
|
-
*/
|
|
306
|
-
cfg?: LooseObject;
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* @title geometry.label({}) 配置属性
|
|
310
|
-
*/
|
|
311
|
-
export interface GeometryLabelCfg {
|
|
312
|
-
/**
|
|
313
|
-
* @title 类型
|
|
314
|
-
* @description 用于声明渲染的 label 类型。当用户使用了自定义的 label 类型,需要声明具体的 type 类型,否则会使用默认的 label 类型渲染。
|
|
315
|
-
*/
|
|
316
|
-
type?: string;
|
|
317
|
-
/**
|
|
318
|
-
* @title 相对数据点的偏移距离, polar 和 theta 坐标系下可使用百分比字符串。
|
|
319
|
-
*/
|
|
320
|
-
offset?: number | string;
|
|
321
|
-
/**
|
|
322
|
-
* @title label 相对于数据点在 X 方向的偏移距离。
|
|
323
|
-
*/
|
|
324
|
-
offsetX?: number;
|
|
325
|
-
/**
|
|
326
|
-
* @title label 相对于数据点在 Y 方向的偏移距离。
|
|
327
|
-
*/
|
|
328
|
-
offsetY?: number;
|
|
329
|
-
/**
|
|
330
|
-
* @title 文本内容
|
|
331
|
-
* @description 展示的文本内容,如果不声明则按照参与映射的第一字段的值进行显示。当 content 为 IGroup 或者 IShape 类型时,请使用相对定位,即 x 和 y 坐标都设为 0,G2 内部会整体做最后的 label 进行定位的。
|
|
332
|
-
* @link 示例: https://g2.antv.vision/zh/examples/pie/basic#pie-custome-label
|
|
333
|
-
*/
|
|
334
|
-
content?: string | IGroup | IShape | GeometryLabelContentCallback;
|
|
335
|
-
/**
|
|
336
|
-
* @title 文本样式
|
|
337
|
-
* @description label 文本图形属性样式。
|
|
338
|
-
*/
|
|
339
|
-
style?: LooseObject;
|
|
340
|
-
/**
|
|
341
|
-
* @title 是否自动旋转
|
|
342
|
-
* @description label 是否自动旋转
|
|
343
|
-
* @default true
|
|
344
|
-
*/
|
|
345
|
-
autoRotate?: boolean;
|
|
346
|
-
/**
|
|
347
|
-
* @title 旋转
|
|
348
|
-
* @description 当且仅当 `autoRotate` 为 false 时生效,用于设置文本的旋转角度,**弧度制**。
|
|
349
|
-
*/
|
|
350
|
-
rotate?: number;
|
|
351
|
-
/**
|
|
352
|
-
* @title 标签高度
|
|
353
|
-
* @description 标签高度设置,仅当标签类型 type 为 pie 时生效;也可在主题中设置 pieLabels.labelHeight
|
|
354
|
-
*/
|
|
355
|
-
labelHeight?: number;
|
|
356
|
-
/**
|
|
357
|
-
* @title 文本连接线
|
|
358
|
-
* @description 用于设置文本连接线的样式属性,null 表示不展示。
|
|
359
|
-
*/
|
|
360
|
-
labelLine?: null | boolean | {
|
|
361
|
-
style?: object;
|
|
362
|
-
};
|
|
363
|
-
/**
|
|
364
|
-
* @title 文本放射状
|
|
365
|
-
* @description 只对极坐标下的文本生效,表示文本是否按照角度进行放射状显示,true 表示开启,false 表示关闭。
|
|
366
|
-
*/
|
|
367
|
-
labelEmit?: boolean;
|
|
368
|
-
/**
|
|
369
|
-
* @title 文本布局
|
|
370
|
-
* 文本布局类型,支持多种布局函数组合使用。
|
|
371
|
-
*
|
|
372
|
-
* 目前提供了三种:'overlap','fixedOverlap','limitInShape':
|
|
373
|
-
* 1. overlap: label 防遮挡,为了防止 label 之间相互覆盖,通过尝试向**四周偏移**来剔除放不下的 label。
|
|
374
|
-
* 2. fixed-overlap: 不改变 label 位置的情况下对相互重叠的 label 进行调整。
|
|
375
|
-
* 3. limit-in-shape: 剔除 shape 容纳不了的 label。
|
|
376
|
-
*
|
|
377
|
-
* @example
|
|
378
|
-
* ```ts
|
|
379
|
-
* layout: {
|
|
380
|
-
* type: 'overlap',
|
|
381
|
-
* },
|
|
382
|
-
* ```
|
|
383
|
-
*/
|
|
384
|
-
layout?: GeometryLabelLayoutCfg | GeometryLabelLayoutCfg[];
|
|
385
|
-
/**
|
|
386
|
-
* @title 背景
|
|
387
|
-
* @description 用于绘制 label 背景
|
|
388
|
-
*/
|
|
389
|
-
background?: {
|
|
390
|
-
/**
|
|
391
|
-
* @title 背景框图形属性配置
|
|
392
|
-
* - fill?: string; 背景框 填充色
|
|
393
|
-
* - stroke?: string; 背景框 描边色
|
|
394
|
-
* - lineWidth?: string; 背景框 描边宽度
|
|
395
|
-
* - radius?: number | number[]; 背景框圆角,支持整数或数组形式
|
|
396
|
-
*/
|
|
397
|
-
style?: ShapeAttrs;
|
|
398
|
-
/**
|
|
399
|
-
* @title 背景框 内边距
|
|
400
|
-
*/
|
|
401
|
-
padding?: number | number[];
|
|
402
|
-
};
|
|
403
|
-
/**
|
|
404
|
-
* @title 位置
|
|
405
|
-
* @description 仅当 geometry 为 interval 时生效,指定当前 label 与当前图形的相对位置。
|
|
406
|
-
*/
|
|
407
|
-
position?: ((data: Datum, mappingData: MappingDatum, index: number) => IntervalGeometryLabelPosition) | IntervalGeometryLabelPosition;
|
|
408
|
-
/**
|
|
409
|
-
* @title 动画配置。
|
|
410
|
-
*/
|
|
411
|
-
animate?: AnimateOption | false | null;
|
|
412
|
-
}
|
|
413
|
-
/**
|
|
414
|
-
* @title `geometry().label({})` 配置定义
|
|
415
|
-
*/
|
|
416
|
-
export interface LabelOption {
|
|
417
|
-
/**
|
|
418
|
-
* @title 映射的字段。
|
|
419
|
-
*/
|
|
420
|
-
fields?: string[];
|
|
421
|
-
/**
|
|
422
|
-
* @title 回调函数。
|
|
423
|
-
*/
|
|
424
|
-
callback?: LabelCallback;
|
|
425
|
-
cfg?: GeometryLabelCfg;
|
|
426
|
-
}
|
|
427
|
-
/**
|
|
428
|
-
* @title Geometry 下每个 state 的配置结构
|
|
429
|
-
*/
|
|
430
|
-
export interface StateCfg {
|
|
431
|
-
/**
|
|
432
|
-
* @title 状态样式配置。
|
|
433
|
-
*/
|
|
434
|
-
style?: object | StateStyleCallback;
|
|
435
|
-
}
|
|
436
|
-
/**
|
|
437
|
-
* @title geometry.state({}) 配置定义
|
|
438
|
-
*/
|
|
439
|
-
export interface StateOption {
|
|
440
|
-
/**
|
|
441
|
-
* @title 默认状态样式。
|
|
442
|
-
*/
|
|
443
|
-
default?: StateCfg;
|
|
444
|
-
/**
|
|
445
|
-
* @title active 状态配置。
|
|
446
|
-
*/
|
|
447
|
-
active?: StateCfg;
|
|
448
|
-
/**
|
|
449
|
-
* @title inactive 状态配置。
|
|
450
|
-
*/
|
|
451
|
-
inactive?: StateCfg;
|
|
452
|
-
/**
|
|
453
|
-
* @title selected 状态配置。
|
|
454
|
-
*/
|
|
455
|
-
selected?: StateCfg;
|
|
456
|
-
}
|
|
457
|
-
/**
|
|
458
|
-
* @title interval label 的位置
|
|
459
|
-
*/
|
|
460
|
-
export declare type IntervalGeometryLabelPosition = 'top' | 'bottom' | 'middle' | 'left' | 'right';
|
|
461
|
-
/**
|
|
462
|
-
* @title G2 提供的 adjust 类型
|
|
463
|
-
*/
|
|
464
|
-
export declare type AdjustType = 'stack' | 'jitter' | 'dodge' | 'symmetric';
|
|
465
|
-
/**
|
|
466
|
-
* @title geometry.color() 图形属性回调函数定义
|
|
467
|
-
*/
|
|
468
|
-
export declare type ColorAttrCallback = (...args: any[]) => string;
|
|
469
|
-
/**
|
|
470
|
-
* @title geometry.shape() 图形属性回调函数定义
|
|
471
|
-
*/
|
|
472
|
-
export declare type ShapeAttrCallback = (...args: any[]) => string | any[];
|
|
473
|
-
/**
|
|
474
|
-
* @title geometry.size() 图形属性回调函数定义
|
|
475
|
-
*/
|
|
476
|
-
export declare type SizeAttrCallback = (...args: any[]) => number;
|
|
477
|
-
/**
|
|
478
|
-
* @title geometry.tooltip() 接口回调函数定义
|
|
479
|
-
*/
|
|
480
|
-
export declare type TooltipCallback = (...args: any[]) => LooseObject;
|
|
481
|
-
/**
|
|
482
|
-
* @title geometry.style() 接口回调函数定义
|
|
483
|
-
*/
|
|
484
|
-
export declare type StyleCallback = (...args: any[]) => LooseObject;
|
|
485
|
-
/**
|
|
486
|
-
* @title geometry.label() 接口回调函数定义
|
|
487
|
-
*/
|
|
488
|
-
export declare type LabelCallback = (...args: any[]) => GeometryLabelCfg | null | undefined;
|
|
489
|
-
/**
|
|
490
|
-
* @title geometry label 中 content 属性的回调函数类型定义
|
|
491
|
-
*/
|
|
492
|
-
export declare type GeometryLabelContentCallback = (data: Datum, mappingData: MappingDatum, index: number) => string | IShape | IGroup;
|
|
493
|
-
/**
|
|
494
|
-
* @title state 下 style 回调函数定义
|
|
495
|
-
*/
|
|
496
|
-
export declare type StateStyleCallback = (element: Element) => LooseObject;
|
|
497
|
-
/**
|
|
498
|
-
* @title 获取 shape marker 时需要的信息
|
|
499
|
-
*/
|
|
500
|
-
export interface ShapeMarkerCfg {
|
|
501
|
-
/**
|
|
502
|
-
* @title 颜色。
|
|
503
|
-
*/
|
|
504
|
-
color: string;
|
|
505
|
-
/**
|
|
506
|
-
* @title 是否是极坐标。
|
|
507
|
-
*/
|
|
508
|
-
isInPolar: boolean;
|
|
509
|
-
}
|
|
510
|
-
/**
|
|
511
|
-
* @title 图形 marker 的配置信息。
|
|
512
|
-
*/
|
|
513
|
-
export interface ShapeMarkerAttrs {
|
|
514
|
-
/**
|
|
515
|
-
* @title marker 的形状。
|
|
516
|
-
*/
|
|
517
|
-
symbol: string | ShapeMarkerSymbol;
|
|
518
|
-
/**
|
|
519
|
-
* @title marker 样式
|
|
520
|
-
* @description
|
|
521
|
-
* marker 的样式,`ShapeAttrs` 属性结构如下:
|
|
522
|
-
*
|
|
523
|
-
* ```ts
|
|
524
|
-
* {
|
|
525
|
-
* // x 坐标
|
|
526
|
-
* x?: number;
|
|
527
|
-
* // y 坐标
|
|
528
|
-
* y?: number;
|
|
529
|
-
* // 圆半径
|
|
530
|
-
* r?: number;
|
|
531
|
-
* // 描边颜色
|
|
532
|
-
* stroke?: string | null;
|
|
533
|
-
* // 描边透明度
|
|
534
|
-
* strokeOpacity?: number;
|
|
535
|
-
* // 填充颜色
|
|
536
|
-
* fill?: string | null;
|
|
537
|
-
* // 填充透明度
|
|
538
|
-
* fillOpacity?: number;
|
|
539
|
-
* // 整体透明度
|
|
540
|
-
* opacity?: number;
|
|
541
|
-
* // 线宽
|
|
542
|
-
* lineWidth?: number;
|
|
543
|
-
* // 指定如何绘制每一条线段末端
|
|
544
|
-
* lineCap?: 'butt' | 'round' | 'square';
|
|
545
|
-
* // 用来设置2个长度不为0的相连部分(线段,圆弧,曲线)如何连接在一起的属性(长度为0的变形部分,其指定的末端和控制点在同一位置,会被忽略)
|
|
546
|
-
* lineJoin?: 'bevel' | 'round' | 'miter';
|
|
547
|
-
* // 设置线的虚线样式,可以指定一个数组。一组描述交替绘制线段和间距(坐标空间单位)长度的数字。 如果数组元素的数量是奇数,数组的元素会被复制并重复。例如, [5, 15, 25] 会变成 [5, 15, 25, 5, 15, 25]。这个属性取决于浏览器是否支持 setLineDash() 函数。
|
|
548
|
-
* lineDash?: number[] | null;
|
|
549
|
-
* // Path 路径
|
|
550
|
-
* path?: string | object[];
|
|
551
|
-
* // 图形坐标点
|
|
552
|
-
* points?: object[];
|
|
553
|
-
* // 宽度
|
|
554
|
-
* width?: number;
|
|
555
|
-
* // 高度
|
|
556
|
-
* height?: number;
|
|
557
|
-
* // 阴影模糊效果程度
|
|
558
|
-
* shadowBlur?: number;
|
|
559
|
-
* // 阴影颜色
|
|
560
|
-
* shadowColor?: string | null;
|
|
561
|
-
* // 阴影 x 方向偏移量
|
|
562
|
-
* shadowOffsetX?: number;
|
|
563
|
-
* // 阴影 y 方向偏移量
|
|
564
|
-
* shadowOffsetY?: number;
|
|
565
|
-
* // 设置文本内容的当前对齐方式
|
|
566
|
-
* textAlign?: 'start' | 'center' | 'end' | 'left' | 'right';
|
|
567
|
-
* // 设置在绘制文本时使用的当前文本基线
|
|
568
|
-
* textBaseline?: 'top' | 'hanging' | 'middle' | 'alphabetic' | 'ideographic' | 'bottom';
|
|
569
|
-
* // 字体样式
|
|
570
|
-
* fontStyle?: 'normal' | 'italic' | 'oblique';
|
|
571
|
-
* // 文本字体大小
|
|
572
|
-
* fontSize?: number;
|
|
573
|
-
* // 文本字体
|
|
574
|
-
* fontFamily?: string;
|
|
575
|
-
* // 文本粗细
|
|
576
|
-
* fontWeight?: 'normal' | 'bold' | 'bolder' | 'lighter' | number;
|
|
577
|
-
* // 字体变体
|
|
578
|
-
* fontVariant?: 'normal' | 'small-caps' | string;
|
|
579
|
-
* // 文本行高
|
|
580
|
-
* lineHeight?: number;
|
|
581
|
-
* [key: string]: any;
|
|
582
|
-
* }
|
|
583
|
-
* ```
|
|
584
|
-
*
|
|
585
|
-
* @link https://github.com/antvis/g/blob/28e3178b616573e0fa6d59694f1aaca2baaa9766/packages/g-base/src/types.ts#L37|ShapeAttrs
|
|
586
|
-
*/
|
|
587
|
-
style: ShapeAttrs;
|
|
588
|
-
}
|
|
589
|
-
/**
|
|
590
|
-
* @title shape 关键点信息
|
|
591
|
-
*/
|
|
592
|
-
export interface ShapePoint {
|
|
593
|
-
/**
|
|
594
|
-
* @title 数据点映射后对应 x 的值。
|
|
595
|
-
*/
|
|
596
|
-
readonly x: number | number[];
|
|
597
|
-
/**
|
|
598
|
-
* @title 数据点映射后对应 y 的值。
|
|
599
|
-
*/
|
|
600
|
-
readonly y?: number | number[];
|
|
601
|
-
/**
|
|
602
|
-
* @title 数据在 y 方向的最小值。
|
|
603
|
-
*/
|
|
604
|
-
readonly y0?: number;
|
|
605
|
-
/**
|
|
606
|
-
* @title 大小
|
|
607
|
-
*/
|
|
608
|
-
size?: number;
|
|
609
|
-
}
|
|
610
|
-
/**
|
|
611
|
-
* @title 小提琴图 shape 关键点信息
|
|
612
|
-
*/
|
|
613
|
-
export declare type ViolinShapePoint = ShapePoint & {
|
|
614
|
-
_size?: number[];
|
|
615
|
-
};
|
|
616
|
-
/**
|
|
617
|
-
* @title 注册 ShapeFactory 需要实现的接口。
|
|
618
|
-
*/
|
|
619
|
-
export interface RegisterShapeFactory {
|
|
620
|
-
/**
|
|
621
|
-
* @title 默认的 shape 类型。
|
|
622
|
-
*/
|
|
623
|
-
readonly defaultShapeType: string;
|
|
624
|
-
/**
|
|
625
|
-
* @title 返回绘制 shape 所有的关键点集合。
|
|
626
|
-
*/
|
|
627
|
-
readonly getDefaultPoints?: (pointInfo: ShapePoint) => Point[];
|
|
628
|
-
/**
|
|
629
|
-
* @title 获取 shape 的默认绘制样式
|
|
630
|
-
*/
|
|
631
|
-
readonly getDefaultStyle?: (geometryTheme: LooseObject) => LooseObject;
|
|
632
|
-
/**
|
|
633
|
-
* @title 获取 shape 对应的缩略图配置。
|
|
634
|
-
*/
|
|
635
|
-
readonly getMarker?: (shapeType: string, markerCfg: ShapeMarkerCfg) => ShapeMarkerAttrs;
|
|
636
|
-
/**
|
|
637
|
-
* @title 创建具体的 G.Shape 实例。
|
|
638
|
-
*/
|
|
639
|
-
readonly drawShape?: (shapeType: string, cfg: ShapeInfo, container: IGroup) => IShape | IGroup;
|
|
640
|
-
}
|
|
641
|
-
/**
|
|
642
|
-
* @title 注册具体 shape 需要实现的接口。
|
|
643
|
-
*/
|
|
644
|
-
export interface RegisterShape {
|
|
645
|
-
/**
|
|
646
|
-
* @title 计算绘制需要的关键点,在注册具体的 shape 时由开发者自己定义。
|
|
647
|
-
*/
|
|
648
|
-
readonly getPoints?: (pointInfo: ShapePoint) => Point[];
|
|
649
|
-
/**
|
|
650
|
-
* @title 获取 shape 对应的缩略图样式配置,在注册具体的 shape 时由开发者自己定义。
|
|
651
|
-
*/
|
|
652
|
-
readonly getMarker?: (markerCfg: ShapeMarkerCfg) => ShapeMarkerAttrs;
|
|
653
|
-
/**
|
|
654
|
-
* @title 绘制函数。
|
|
655
|
-
*/
|
|
656
|
-
readonly draw: (cfg: ShapeInfo, container: IGroup) => IShape | IGroup | void;
|
|
657
|
-
}
|
|
658
|
-
/**
|
|
659
|
-
* @title Shape 接口定义。
|
|
660
|
-
*/
|
|
661
|
-
export interface Shape extends RegisterShape {
|
|
662
|
-
/**
|
|
663
|
-
* @title 坐标系对象。
|
|
664
|
-
*/
|
|
665
|
-
coordinate: Coordinate;
|
|
666
|
-
/**
|
|
667
|
-
* @title 工具函数,将 0~1 path 转化成实际画布 path。
|
|
668
|
-
*/
|
|
669
|
-
parsePath: (path: any) => PathCommand[];
|
|
670
|
-
/**
|
|
671
|
-
* @title 工具函数,0~1 的坐标点转换成实际画布坐标点。
|
|
672
|
-
*/
|
|
673
|
-
parsePoint: (point: Point) => Point;
|
|
674
|
-
/**
|
|
675
|
-
* @title 工具函数,0~1 的坐标点集合转换成实际画布坐标点集合。
|
|
676
|
-
*/
|
|
677
|
-
parsePoints: (points: Point[]) => Point[];
|
|
678
|
-
}
|
|
679
|
-
/**
|
|
680
|
-
* @title ShapeFactory 接口定义。
|
|
681
|
-
*/
|
|
682
|
-
export interface ShapeFactory extends RegisterShapeFactory {
|
|
683
|
-
/**
|
|
684
|
-
* @title 工厂名。
|
|
685
|
-
*/
|
|
686
|
-
geometryType: string;
|
|
687
|
-
/**
|
|
688
|
-
* @title 坐标系对象。
|
|
689
|
-
*/
|
|
690
|
-
coordinate: Coordinate;
|
|
691
|
-
/**
|
|
692
|
-
* @title ShapeFactory 下所有的主题样式。
|
|
693
|
-
*/
|
|
694
|
-
theme: LooseObject;
|
|
695
|
-
/**
|
|
696
|
-
* @title 根据名称获取具体的 shape 对象。
|
|
697
|
-
*/
|
|
698
|
-
getShape: (shapeType: string | string[]) => Shape;
|
|
699
|
-
/**
|
|
700
|
-
* @title 获取构成 shape 的关键点。
|
|
701
|
-
*/
|
|
702
|
-
getShapePoints: (shapeType: string | string[], pointInfo: ShapePoint) => Point[];
|
|
703
|
-
}
|
|
704
|
-
/**
|
|
705
|
-
* @title 自定义 Shape marker 的函数
|
|
706
|
-
*/
|
|
707
|
-
export declare type ShapeMarkerSymbol = (x: number, y: number, r: number) => PathCommand[];
|
|
708
|
-
/**
|
|
709
|
-
* @title Annotation position 回调函数
|
|
710
|
-
*/
|
|
711
|
-
export declare type AnnotationPositionCallback = (xScales: Scale[] | Record<string, Scale>, yScales: Scale[] | Record<string, Scale>) => [number | string, number | string];
|
|
712
|
-
/**
|
|
713
|
-
* @title Annotation 位置相关属性的类型定义
|
|
714
|
-
*/
|
|
715
|
-
export declare type AnnotationPosition = [number | string, number | string] | Record<string, number | string> | AnnotationPositionCallback;
|
|
716
|
-
/**
|
|
717
|
-
* @title Annotation 定义的通用属性,chart.annotation().line({})
|
|
718
|
-
*/
|
|
719
|
-
export interface AnnotationBaseOption {
|
|
720
|
-
/**
|
|
721
|
-
* @title 类型
|
|
722
|
-
*/
|
|
723
|
-
readonly type?: string;
|
|
724
|
-
/**
|
|
725
|
-
* @title 是否顶层
|
|
726
|
-
* @description 指定 annotation 是否绘制在 canvas 最上层,默认为 false, 即绘制在最下层
|
|
727
|
-
*/
|
|
728
|
-
readonly top?: boolean;
|
|
729
|
-
/**
|
|
730
|
-
* @title 是否进行动画
|
|
731
|
-
*/
|
|
732
|
-
readonly animate?: boolean;
|
|
733
|
-
/**
|
|
734
|
-
* @title 动画参数配置
|
|
735
|
-
* @description 当且仅当 `animate` 属性为 true,即动画开启时生效。
|
|
736
|
-
*/
|
|
737
|
-
readonly animateOption?: ComponentAnimateOption;
|
|
738
|
-
/**
|
|
739
|
-
* @title x 方向的偏移量
|
|
740
|
-
*/
|
|
741
|
-
readonly offsetX?: number;
|
|
742
|
-
/**
|
|
743
|
-
* @title y 方向的偏移量
|
|
744
|
-
*/
|
|
745
|
-
readonly offsetY?: number;
|
|
746
|
-
}
|
|
747
|
-
/**
|
|
748
|
-
* @title 使用 RegionPosition 定位的组件配置
|
|
749
|
-
*/
|
|
750
|
-
export interface RegionPositionBaseOption extends AnnotationBaseOption {
|
|
751
|
-
/**
|
|
752
|
-
* @title 起始位置
|
|
753
|
-
*/
|
|
754
|
-
readonly start: AnnotationPosition;
|
|
755
|
-
/**
|
|
756
|
-
* @title 结束位置
|
|
757
|
-
*/
|
|
758
|
-
readonly end: AnnotationPosition;
|
|
759
|
-
/**
|
|
760
|
-
* @title 图形样式属性
|
|
761
|
-
*/
|
|
762
|
-
readonly style?: ShapeAttrs;
|
|
763
|
-
}
|
|
764
|
-
/**
|
|
765
|
-
* @title 使用 PointPosition 定位的组件配置
|
|
766
|
-
*/
|
|
767
|
-
export interface PointPositionBaseOption extends AnnotationBaseOption {
|
|
768
|
-
/**
|
|
769
|
-
* @title Point 定位位置
|
|
770
|
-
*/
|
|
771
|
-
readonly position: AnnotationPosition;
|
|
772
|
-
}
|
|
773
|
-
/**
|
|
774
|
-
* @title 使用 Image Annotation 组件的配置定义
|
|
775
|
-
*/
|
|
776
|
-
export interface ImageOption extends RegionPositionBaseOption {
|
|
777
|
-
/**
|
|
778
|
-
* @title 图片路径
|
|
779
|
-
*/
|
|
780
|
-
readonly src: string;
|
|
781
|
-
}
|
|
782
|
-
/**
|
|
783
|
-
* @title 使用 Line Annotation 组件的配置定义
|
|
784
|
-
*/
|
|
785
|
-
export interface LineOption extends RegionPositionBaseOption {
|
|
786
|
-
/**
|
|
787
|
-
* @title 文本配置定义
|
|
788
|
-
*/
|
|
789
|
-
readonly text?: LineAnnotationTextCfg;
|
|
790
|
-
}
|
|
791
|
-
/**
|
|
792
|
-
* @title 使用 Arc Annotation 组件的配置定义
|
|
793
|
-
*/
|
|
794
|
-
export declare type ArcOption = RegionPositionBaseOption;
|
|
795
|
-
/**
|
|
796
|
-
* @title 使用 Region Annotation 组件的配置定义
|
|
797
|
-
*/
|
|
798
|
-
export declare type RegionOption = RegionPositionBaseOption;
|
|
799
|
-
/**
|
|
800
|
-
* @title 使用 Text Annotation 组件的配置定义
|
|
801
|
-
*/
|
|
802
|
-
export interface TextOption extends PointPositionBaseOption, Omit<EnhancedTextCfg, 'content'> {
|
|
803
|
-
content?: string | number | ((filteredData: object[]) => string | number);
|
|
804
|
-
}
|
|
805
|
-
/**
|
|
806
|
-
* @title 使用 DataMarker Annotation 组件的配置定义
|
|
807
|
-
*/
|
|
808
|
-
export interface DataMarkerOption extends PointPositionBaseOption {
|
|
809
|
-
/**
|
|
810
|
-
* @title point 设置
|
|
811
|
-
*/
|
|
812
|
-
readonly point?: null | {
|
|
813
|
-
style?: ShapeAttrs;
|
|
814
|
-
};
|
|
815
|
-
/**
|
|
816
|
-
* @title line 设置
|
|
817
|
-
*/
|
|
818
|
-
readonly line?: null | {
|
|
819
|
-
style?: ShapeAttrs;
|
|
820
|
-
length?: number;
|
|
821
|
-
};
|
|
822
|
-
/**
|
|
823
|
-
* @title text 设置
|
|
824
|
-
*/
|
|
825
|
-
readonly text: null | EnhancedTextCfg;
|
|
826
|
-
/**
|
|
827
|
-
* @title 文本超出绘制区域时,是否自动调节文本方向,默认为 true
|
|
828
|
-
*/
|
|
829
|
-
readonly autoAdjust?: boolean;
|
|
830
|
-
/**
|
|
831
|
-
* @title 朝向,默认为 upward,可选值为 'upward' 或者 'downward'
|
|
832
|
-
*/
|
|
833
|
-
readonly direction?: 'upward' | 'downward';
|
|
834
|
-
}
|
|
835
|
-
/**
|
|
836
|
-
* @title 使用 DataRegion Annotation 组件的配置定义
|
|
837
|
-
*/
|
|
838
|
-
export interface DataRegionOption extends RegionPositionBaseOption {
|
|
839
|
-
/**
|
|
840
|
-
* @title line长度,default为 0
|
|
841
|
-
*/
|
|
842
|
-
readonly lineLength?: number;
|
|
843
|
-
/**
|
|
844
|
-
* @title 标注区间的配置
|
|
845
|
-
*/
|
|
846
|
-
readonly region?: null | {
|
|
847
|
-
style?: ShapeAttrs;
|
|
848
|
-
};
|
|
849
|
-
/**
|
|
850
|
-
* @title 文本的配置
|
|
851
|
-
*/
|
|
852
|
-
readonly text?: null | EnhancedTextCfg;
|
|
853
|
-
}
|
|
854
|
-
/**
|
|
855
|
-
* @title 使用 RegionFilter Annotation 组件的配置定义
|
|
856
|
-
*/
|
|
857
|
-
export interface RegionFilterOption extends RegionPositionBaseOption {
|
|
858
|
-
/**
|
|
859
|
-
* @title 染色色值
|
|
860
|
-
*/
|
|
861
|
-
readonly color: string;
|
|
862
|
-
/**
|
|
863
|
-
* @title 适用场景
|
|
864
|
-
* @description 可选,设定regionFilter只对特定geom类型起作用,如apply:['area']
|
|
865
|
-
*/
|
|
866
|
-
readonly apply?: string[];
|
|
867
|
-
}
|
|
868
|
-
/**
|
|
869
|
-
* @title Shape Annotation 的配置
|
|
870
|
-
*/
|
|
871
|
-
export interface ShapeAnnotationOption extends AnnotationBaseOption {
|
|
872
|
-
/**
|
|
873
|
-
* @title 自定义 Annotation 绘制函数
|
|
874
|
-
*/
|
|
875
|
-
render: (container: IGroup, view: View, helpers: {
|
|
876
|
-
parsePosition: (position: [string | number, string | number] | Datum) => Point;
|
|
877
|
-
}) => void;
|
|
878
|
-
}
|
|
879
|
-
/**
|
|
880
|
-
* Html Annotation 配置
|
|
881
|
-
*/
|
|
882
|
-
export interface HtmlAnnotationOption extends PointPositionBaseOption {
|
|
883
|
-
/**
|
|
884
|
-
* @title 容器元素
|
|
885
|
-
*/
|
|
886
|
-
container?: string | HTMLElement;
|
|
887
|
-
/**
|
|
888
|
-
* @title 自定义 HTML DOM 元素
|
|
889
|
-
*/
|
|
890
|
-
html: string | HTMLElement | ((container: HTMLElement, view: View) => void | string | HTMLElement);
|
|
891
|
-
/**
|
|
892
|
-
* @title X 方向对齐
|
|
893
|
-
*/
|
|
894
|
-
alignX?: 'left' | 'middle' | 'right';
|
|
895
|
-
/**
|
|
896
|
-
* @title Y 方向对齐
|
|
897
|
-
*/
|
|
898
|
-
alignY?: 'top' | 'middle' | 'bottom';
|
|
899
|
-
/**
|
|
900
|
-
* @title X 方向偏移
|
|
901
|
-
*/
|
|
902
|
-
offsetX?: number;
|
|
903
|
-
/**
|
|
904
|
-
* @title Y 方向偏移
|
|
905
|
-
*/
|
|
906
|
-
offsetY?: number;
|
|
907
|
-
}
|
|
908
|
-
/**
|
|
909
|
-
* @title Tooltip 内容框的 css 样式定义
|
|
910
|
-
*/
|
|
911
|
-
export interface TooltipDomStyles {
|
|
912
|
-
'g2-tooltip'?: LooseObject;
|
|
913
|
-
'g2-tooltip-title'?: LooseObject;
|
|
914
|
-
'g2-tooltip-list'?: LooseObject;
|
|
915
|
-
'g2-tooltip-list-item'?: LooseObject;
|
|
916
|
-
'g2-tooltip-marker'?: LooseObject;
|
|
917
|
-
'g2-tooltip-value'?: LooseObject;
|
|
918
|
-
'g2-tooltip-name'?: LooseObject;
|
|
919
|
-
}
|
|
920
|
-
/**
|
|
921
|
-
* @title 目前组件动画允许的参数配置
|
|
922
|
-
*/
|
|
923
|
-
export interface ComponentAnimateCfg {
|
|
924
|
-
/**
|
|
925
|
-
* @title 动画执行时间
|
|
926
|
-
*/
|
|
927
|
-
readonly duration?: number;
|
|
928
|
-
/**
|
|
929
|
-
* @title 动画缓动函数
|
|
930
|
-
*/
|
|
931
|
-
readonly easing?: string;
|
|
932
|
-
/**
|
|
933
|
-
* @title 动画延迟时间
|
|
934
|
-
*/
|
|
935
|
-
readonly delay?: number;
|
|
936
|
-
}
|
|
937
|
-
/**
|
|
938
|
-
* @title 组件各个动画类型配置
|
|
939
|
-
*/
|
|
940
|
-
export interface ComponentAnimateOption {
|
|
941
|
-
/**
|
|
942
|
-
* @title 初入场动画配置
|
|
943
|
-
*/
|
|
944
|
-
appear?: ComponentAnimateCfg;
|
|
945
|
-
/**
|
|
946
|
-
* @title 更新动画配置
|
|
947
|
-
*/
|
|
948
|
-
update?: ComponentAnimateCfg;
|
|
949
|
-
/**
|
|
950
|
-
* @title 更新后新入场的动画配置
|
|
951
|
-
*/
|
|
952
|
-
enter?: ComponentAnimateCfg;
|
|
953
|
-
/**
|
|
954
|
-
* @title 离场动画配置
|
|
955
|
-
*/
|
|
956
|
-
leave?: ComponentAnimateCfg;
|
|
957
|
-
}
|
|
958
|
-
/**
|
|
959
|
-
* @title 列定义配置项
|
|
960
|
-
*/
|
|
961
|
-
export interface ScaleOption extends ScaleConfig {
|
|
962
|
-
/**
|
|
963
|
-
* @title 声明度量类型。
|
|
964
|
-
*/
|
|
965
|
-
type?: ScaleType;
|
|
966
|
-
/**
|
|
967
|
-
* @title 同步 scale
|
|
968
|
-
*
|
|
969
|
-
* @example
|
|
970
|
-
* ```ts
|
|
971
|
-
* chart.scale({
|
|
972
|
-
* x: { sync: true },
|
|
973
|
-
* y: { sync: true },
|
|
974
|
-
* x1: { sync: 'x1' },
|
|
975
|
-
* x2: { sync: 'x1' },
|
|
976
|
-
* });
|
|
977
|
-
* ```
|
|
978
|
-
*
|
|
979
|
-
* 通过以上配置,我们会分别对 x 和 y 两个字段,x1 和 x2 两个字段进行同步度量操作。
|
|
980
|
-
*/
|
|
981
|
-
sync?: boolean | string;
|
|
982
|
-
/**
|
|
983
|
-
* @title 是否显示最后的 tick
|
|
984
|
-
* @description 只对 `type: 'cat'` 以及 `type: 'time-cat'` 的 scale 生效,强制显示最后的日期 tick。
|
|
985
|
-
*/
|
|
986
|
-
showLast?: boolean;
|
|
987
|
-
/**
|
|
988
|
-
* @title 唯一 ID
|
|
989
|
-
* @description
|
|
990
|
-
* 用于声明使用数据记录中的哪些字段来组成一条数据的唯一 id(如有多个字段,则使用 '-' 连接)。
|
|
991
|
-
* 数据 id 用于标识 Element 图形元素,应用于 Geometry 中的图形元素 Element 更新。
|
|
992
|
-
* 默认 G2 内部会有一套 ID 生成规则,如果不能满足用户需求,用户既可以使用该属性配置 id。
|
|
993
|
-
* @example
|
|
994
|
-
* 下面的例子中,声明了将 'x' 和 'y' 字段的数值来作为每条数据记录的 id,即下面数据两条数据的 id 分别为:'1-23' 和 '2-2'。
|
|
995
|
-
* ```ts
|
|
996
|
-
* const data = [
|
|
997
|
-
* { x: 1, y: 23, z: 'a' },
|
|
998
|
-
* { x: 2, y: 2, z: 'b' },
|
|
999
|
-
* ];
|
|
1000
|
-
*
|
|
1001
|
-
* chart.scale({
|
|
1002
|
-
* x: { key: true },
|
|
1003
|
-
* y: { key: true },
|
|
1004
|
-
* });
|
|
1005
|
-
* ```
|
|
1006
|
-
*/
|
|
1007
|
-
key?: boolean;
|
|
1008
|
-
}
|
|
1009
|
-
/**
|
|
1010
|
-
* @title Geometry 动画参数配置。geometry.animate()
|
|
1011
|
-
*/
|
|
1012
|
-
export interface AnimateOption {
|
|
1013
|
-
/**
|
|
1014
|
-
* @title chart 初始化渲染时的入场动画,false/null 表示关闭入场动画。
|
|
1015
|
-
*/
|
|
1016
|
-
appear?: AnimateCfg | false | null;
|
|
1017
|
-
/**
|
|
1018
|
-
* @title chart 发生更新时,新增元素的入场动画,false/null 表示关闭入场动画。
|
|
1019
|
-
*/
|
|
1020
|
-
enter?: AnimateCfg | false | null;
|
|
1021
|
-
/**
|
|
1022
|
-
* @title 更新动画配置,false/null 表示关闭更新动画。
|
|
1023
|
-
*/
|
|
1024
|
-
update?: AnimateCfg | false | null;
|
|
1025
|
-
/**
|
|
1026
|
-
* @title 销毁动画配置,false/null 表示关闭销毁动画。
|
|
1027
|
-
*/
|
|
1028
|
-
leave?: AnimateCfg | false | null;
|
|
1029
|
-
}
|
|
1030
|
-
/**
|
|
1031
|
-
* @title 用于配置项式声明交互行为
|
|
1032
|
-
*/
|
|
1033
|
-
export interface InteractionOption {
|
|
1034
|
-
/**
|
|
1035
|
-
* @title 交互名称
|
|
1036
|
-
*/
|
|
1037
|
-
type: string;
|
|
1038
|
-
/**
|
|
1039
|
-
* @title 交互配置
|
|
1040
|
-
*/
|
|
1041
|
-
cfg?: LooseObject;
|
|
1042
|
-
}
|
|
1043
|
-
/**
|
|
1044
|
-
* @title 用于配置项式的 Geometry 创建方式
|
|
1045
|
-
*/
|
|
1046
|
-
export interface GeometryOption {
|
|
1047
|
-
/**
|
|
1048
|
-
* @title Geometry 的类型。
|
|
1049
|
-
*/
|
|
1050
|
-
type?: 'interval' | 'line' | 'path' | 'point' | 'area' | 'polygon' | 'schema' | 'edge' | 'heatmap' | string;
|
|
1051
|
-
/**
|
|
1052
|
-
* @title position 通道映射规则,对应 `geometry.position()`。
|
|
1053
|
-
*/
|
|
1054
|
-
position?: string | AttributeOption;
|
|
1055
|
-
/**
|
|
1056
|
-
* @title color 通道映射规则,对应 `geometry.color()`。
|
|
1057
|
-
*/
|
|
1058
|
-
color?: string | AttributeOption;
|
|
1059
|
-
/**
|
|
1060
|
-
* @title shape 通道映射规则,对应 `geometry.shape()`。
|
|
1061
|
-
*/
|
|
1062
|
-
shape?: string | AttributeOption;
|
|
1063
|
-
/**
|
|
1064
|
-
* @title size 通道映射规则,对应 `geometry.size()`。
|
|
1065
|
-
*/
|
|
1066
|
-
size?: number | string | AttributeOption;
|
|
1067
|
-
/**
|
|
1068
|
-
* @title adjust 数据调整方式,对应 `geometry.adjust()`。
|
|
1069
|
-
*/
|
|
1070
|
-
adjust?: string | string[] | AdjustOption | AdjustOption[];
|
|
1071
|
-
/**
|
|
1072
|
-
* @title style 样式配置,对应 `geometry.size()`。
|
|
1073
|
-
*/
|
|
1074
|
-
style?: StyleOption | LooseObject;
|
|
1075
|
-
/**
|
|
1076
|
-
* @title tooltip 配置,对应 `geometry.tooltip()`。
|
|
1077
|
-
*/
|
|
1078
|
-
tooltip?: GeometryTooltipOption | boolean | string;
|
|
1079
|
-
/**
|
|
1080
|
-
* @title Geometry 动画配置,对应 `geometry.animate()`。
|
|
1081
|
-
*/
|
|
1082
|
-
animate?: AnimateOption | boolean;
|
|
1083
|
-
/**
|
|
1084
|
-
* @title Label 配置,对应 `geometry.label()`。
|
|
1085
|
-
*/
|
|
1086
|
-
label?: LabelOption | false | string;
|
|
1087
|
-
/**
|
|
1088
|
-
* @title state 样式配置,对应 `geometry.state()`。
|
|
1089
|
-
*/
|
|
1090
|
-
state?: StateOption;
|
|
1091
|
-
/**
|
|
1092
|
-
* @title 其他配置
|
|
1093
|
-
*/
|
|
1094
|
-
cfg?: {
|
|
1095
|
-
/**
|
|
1096
|
-
* @title 是否对数据进行排序
|
|
1097
|
-
*/
|
|
1098
|
-
sortable?: boolean;
|
|
1099
|
-
/**
|
|
1100
|
-
* @title 是否可见
|
|
1101
|
-
*/
|
|
1102
|
-
visible?: boolean;
|
|
1103
|
-
/**
|
|
1104
|
-
* @title 是否连接空值,仅对 'line', 'area' 和 'path' 生效
|
|
1105
|
-
*/
|
|
1106
|
-
connectNulls?: boolean;
|
|
1107
|
-
};
|
|
1108
|
-
}
|
|
1109
|
-
/**
|
|
1110
|
-
* @title 用于配置型式的 View 声明方式
|
|
1111
|
-
*/
|
|
1112
|
-
export interface ViewOption {
|
|
1113
|
-
/**
|
|
1114
|
-
* @title view 的唯一表示 ID
|
|
1115
|
-
*/
|
|
1116
|
-
readonly id?: string;
|
|
1117
|
-
/**
|
|
1118
|
-
* @title view 的绘制范围,起始点为左上角。
|
|
1119
|
-
*/
|
|
1120
|
-
readonly region?: Region;
|
|
1121
|
-
/**
|
|
1122
|
-
* 设置图表的内边距,使用方式参考 CSS 盒模型。
|
|
1123
|
-
* 下图黄色区域即为 padding 的范围。
|
|
1124
|
-
* 
|
|
1125
|
-
*
|
|
1126
|
-
* @example
|
|
1127
|
-
* 1. padding: 20
|
|
1128
|
-
* 2. padding: [ 10, 30, 30 ]
|
|
1129
|
-
*/
|
|
1130
|
-
readonly padding?: ViewPadding;
|
|
1131
|
-
/**
|
|
1132
|
-
* @title 设置主题。
|
|
1133
|
-
*/
|
|
1134
|
-
readonly theme?: LooseObject | string;
|
|
1135
|
-
/**
|
|
1136
|
-
* @title 是否可见。
|
|
1137
|
-
*/
|
|
1138
|
-
readonly visible?: boolean;
|
|
1139
|
-
/**
|
|
1140
|
-
* 图表组件、图形映射等相关的配置。
|
|
1141
|
-
*/
|
|
1142
|
-
readonly options?: Options;
|
|
1143
|
-
}
|
|
1144
|
-
/**
|
|
1145
|
-
* @title Chart 构造方法的入参
|
|
1146
|
-
*/
|
|
1147
|
-
export interface ChartCfg extends Omit<ViewCfg, 'parent' | 'canvas' | 'foregroundGroup' | 'middleGroup' | 'backgroundGroup' | 'region'> {
|
|
1148
|
-
/**
|
|
1149
|
-
* @title 指定 chart 绘制的 DOM,可以传入 DOM id,也可以直接传入 dom 实例。
|
|
1150
|
-
*/
|
|
1151
|
-
readonly container: string | HTMLElement;
|
|
1152
|
-
/**
|
|
1153
|
-
* @title 图表宽度。
|
|
1154
|
-
*/
|
|
1155
|
-
readonly width?: number;
|
|
1156
|
-
/**
|
|
1157
|
-
* @title 图表高度。
|
|
1158
|
-
*/
|
|
1159
|
-
readonly height?: number;
|
|
1160
|
-
/**
|
|
1161
|
-
* @title 否自适应容器宽高
|
|
1162
|
-
* @description
|
|
1163
|
-
* 图表是否自适应容器宽高,默认为 false,用户需要手动设置 width 和 height。当 `autoFit: true` 时,
|
|
1164
|
-
* 会自动取图表容器的宽高,如果用户设置了 height,那么会以用户设置的 height 为准。
|
|
1165
|
-
* @default false
|
|
1166
|
-
*/
|
|
1167
|
-
readonly autoFit?: boolean;
|
|
1168
|
-
/**
|
|
1169
|
-
* @title 渲染引擎
|
|
1170
|
-
* @default "canvas"
|
|
1171
|
-
*/
|
|
1172
|
-
readonly renderer?: Renderer;
|
|
1173
|
-
/**
|
|
1174
|
-
* @title 像素比
|
|
1175
|
-
* @description 设置设备像素比,默认取浏览器的值 `window.devicePixelRatio`。
|
|
1176
|
-
*/
|
|
1177
|
-
readonly pixelRatio?: number;
|
|
1178
|
-
/**
|
|
1179
|
-
* @title 是否开启局部刷新
|
|
1180
|
-
* @default true
|
|
1181
|
-
*/
|
|
1182
|
-
readonly localRefresh?: boolean;
|
|
1183
|
-
/**
|
|
1184
|
-
* @title 是否支持 CSS transform
|
|
1185
|
-
* @description 开启后图表的交互以及事件将在页面设置了 css transform 属性时生效,默认关闭。
|
|
1186
|
-
* @default false
|
|
1187
|
-
*/
|
|
1188
|
-
readonly supportCSSTransform?: boolean;
|
|
1189
|
-
/**
|
|
1190
|
-
* @title 配置图表默认交互,仅支持字符串形式。
|
|
1191
|
-
*/
|
|
1192
|
-
readonly defaultInteractions?: string[];
|
|
1193
|
-
}
|
|
1194
|
-
export declare type SyncViewPaddingFn = (chart: View, views: View[], PC: PaddingCalCtor) => void;
|
|
1195
|
-
/**
|
|
1196
|
-
* @title View 构造参数
|
|
1197
|
-
*/
|
|
1198
|
-
export interface ViewCfg {
|
|
1199
|
-
/**
|
|
1200
|
-
* @title View id,可以由外部传入
|
|
1201
|
-
*/
|
|
1202
|
-
readonly id?: string;
|
|
1203
|
-
/**
|
|
1204
|
-
* @title 当前 view 的父级 view。
|
|
1205
|
-
*/
|
|
1206
|
-
readonly parent: View;
|
|
1207
|
-
/**
|
|
1208
|
-
* @title canvas 实例。
|
|
1209
|
-
*/
|
|
1210
|
-
readonly canvas: ICanvas;
|
|
1211
|
-
/**
|
|
1212
|
-
* @title 前景层
|
|
1213
|
-
*/
|
|
1214
|
-
readonly foregroundGroup: IGroup;
|
|
1215
|
-
/**
|
|
1216
|
-
* @title 中间层
|
|
1217
|
-
*/
|
|
1218
|
-
readonly middleGroup: IGroup;
|
|
1219
|
-
/**
|
|
1220
|
-
* @title 背景层
|
|
1221
|
-
*/
|
|
1222
|
-
readonly backgroundGroup: IGroup;
|
|
1223
|
-
/**
|
|
1224
|
-
* @title view 的绘制范围
|
|
1225
|
-
*/
|
|
1226
|
-
readonly region?: Region;
|
|
1227
|
-
/**
|
|
1228
|
-
* @title 是否对超出坐标系范围的 Geometry 进行剪切
|
|
1229
|
-
*/
|
|
1230
|
-
readonly limitInPlot?: boolean;
|
|
1231
|
-
/**
|
|
1232
|
-
* @title 内边距
|
|
1233
|
-
* @description 设置图表的内边距,使用方式参考 CSS 盒模型,下图黄色区域即为 padding 的范围。
|
|
1234
|
-
* @see 
|
|
1235
|
-
* @example
|
|
1236
|
-
* 1. padding: 20
|
|
1237
|
-
* 2. padding: [ 10, 30, 30 ]
|
|
1238
|
-
*/
|
|
1239
|
-
readonly padding?: ViewPadding;
|
|
1240
|
-
/**
|
|
1241
|
-
* @title 额外边距
|
|
1242
|
-
* @description 设置图表的内边距在padding的基础上增加appendPadding的调整。
|
|
1243
|
-
* @example
|
|
1244
|
-
* 1. padding: 20
|
|
1245
|
-
* 2. padding: [ 10, 30, 30 ]
|
|
1246
|
-
*/
|
|
1247
|
-
readonly appendPadding?: ViewAppendPadding;
|
|
1248
|
-
/**
|
|
1249
|
-
* @title 是否同步子 view 的 padding
|
|
1250
|
-
* @description 是否同步子 view 的 padding,可以是 boolean / SyncViewPaddingFn
|
|
1251
|
-
* @example
|
|
1252
|
-
* view1 的 padding 10
|
|
1253
|
-
* view2 的 padding 20
|
|
1254
|
-
* 那么两个子 view 的 padding 统一变成最大的 20.
|
|
1255
|
-
*
|
|
1256
|
-
* 如果是 Funcion,则使用自定义的方式去计算子 view 的 padding,这个函数中去修改所有的 views autoPadding 值
|
|
1257
|
-
*/
|
|
1258
|
-
readonly syncViewPadding?: boolean | SyncViewPaddingFn;
|
|
1259
|
-
/**
|
|
1260
|
-
* @title 主题
|
|
1261
|
-
* @description 设置 view 实例主题
|
|
1262
|
-
*/
|
|
1263
|
-
readonly theme?: LooseObject | string;
|
|
1264
|
-
/**
|
|
1265
|
-
* @title 图表组件、图形映射等相关的配置。
|
|
1266
|
-
*/
|
|
1267
|
-
readonly options?: Options;
|
|
1268
|
-
/**
|
|
1269
|
-
* @title 是否可见
|
|
1270
|
-
*/
|
|
1271
|
-
readonly visible?: boolean;
|
|
1272
|
-
}
|
|
1273
|
-
/**
|
|
1274
|
-
* @ignore
|
|
1275
|
-
* 组件及布局的信息
|
|
1276
|
-
*/
|
|
1277
|
-
export interface ComponentOption {
|
|
1278
|
-
readonly id?: string;
|
|
1279
|
-
readonly component: GroupComponent | HtmlComponent;
|
|
1280
|
-
readonly layer: LAYER;
|
|
1281
|
-
direction: DIRECTION;
|
|
1282
|
-
readonly type: COMPONENT_TYPE;
|
|
1283
|
-
readonly extra?: any;
|
|
1284
|
-
}
|
|
1285
|
-
/**
|
|
1286
|
-
* @title Legend marker 的配置结构
|
|
1287
|
-
*/
|
|
1288
|
-
export interface MarkerCfg extends LegendMarkerCfg {
|
|
1289
|
-
/**
|
|
1290
|
-
* @title 配置图例 marker 的 symbol 形状。
|
|
1291
|
-
*/
|
|
1292
|
-
symbol?: Marker | MarkerCallback;
|
|
1293
|
-
style?: ShapeAttrs | ((style: ShapeAttrs) => ShapeAttrs);
|
|
1294
|
-
}
|
|
1295
|
-
/**
|
|
1296
|
-
* @title Legend item 各个图例项的数据结构
|
|
1297
|
-
*/
|
|
1298
|
-
export interface LegendItem {
|
|
1299
|
-
/**
|
|
1300
|
-
* 唯一值,用于动画或者查找
|
|
1301
|
-
*/
|
|
1302
|
-
id?: string;
|
|
1303
|
-
/**
|
|
1304
|
-
* @title 名称
|
|
1305
|
-
*/
|
|
1306
|
-
name: string;
|
|
1307
|
-
/**
|
|
1308
|
-
* @title 值
|
|
1309
|
-
*/
|
|
1310
|
-
value: any;
|
|
1311
|
-
/**
|
|
1312
|
-
* @title 图形标记
|
|
1313
|
-
*/
|
|
1314
|
-
marker?: MarkerCfg | ((name: string, index: number, item: {
|
|
1315
|
-
name: string;
|
|
1316
|
-
value: string;
|
|
1317
|
-
} & MarkerCfg) => MarkerCfg);
|
|
1318
|
-
/**
|
|
1319
|
-
* @title 初始是否处于未激活状态
|
|
1320
|
-
*/
|
|
1321
|
-
unchecked?: boolean;
|
|
1322
|
-
}
|
|
1323
|
-
export interface G2LegendTitleCfg extends LegendTitleCfg {
|
|
1324
|
-
/**
|
|
1325
|
-
* @title title 文本显示内容
|
|
1326
|
-
*/
|
|
1327
|
-
text?: string;
|
|
1328
|
-
}
|
|
1329
|
-
/**
|
|
1330
|
-
* 图例项配置
|
|
1331
|
-
*/
|
|
1332
|
-
export interface LegendCfg extends Omit<CategoryLegendCfg, 'marker'> {
|
|
1333
|
-
/**
|
|
1334
|
-
* @title 是否为自定义图例
|
|
1335
|
-
* @description 当该属性为 true 时,需要声明 items 属性。
|
|
1336
|
-
*/
|
|
1337
|
-
readonly custom?: boolean;
|
|
1338
|
-
/**
|
|
1339
|
-
* @title 布局
|
|
1340
|
-
* @description 布局方式: horizontal,vertical
|
|
1341
|
-
*/
|
|
1342
|
-
layout?: 'horizontal' | 'vertical';
|
|
1343
|
-
/**
|
|
1344
|
-
* @title 图例标题配置
|
|
1345
|
-
* @description 默认不展示。
|
|
1346
|
-
* @example
|
|
1347
|
-
* 属性结构如下:
|
|
1348
|
-
*
|
|
1349
|
-
* ```ts
|
|
1350
|
-
* {
|
|
1351
|
-
* spacing?: number; // 标题同图例项的间距
|
|
1352
|
-
* style?: ShapeAttrs; // 文本样式配置项
|
|
1353
|
-
* }
|
|
1354
|
-
* ```
|
|
1355
|
-
*
|
|
1356
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L639|LegendTitleCfg
|
|
1357
|
-
*/
|
|
1358
|
-
title?: G2LegendTitleCfg;
|
|
1359
|
-
/**
|
|
1360
|
-
* @title 背景框配置项。
|
|
1361
|
-
* @example
|
|
1362
|
-
* 属性结构如下:
|
|
1363
|
-
*
|
|
1364
|
-
* ```ts
|
|
1365
|
-
* {
|
|
1366
|
-
* padding?: number | number[]; // 背景的留白
|
|
1367
|
-
* style?: ShapeAttrs; // 背景样式配置项
|
|
1368
|
-
* }
|
|
1369
|
-
* ```
|
|
1370
|
-
*
|
|
1371
|
-
* 详见 {@link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L652|LegendBackgroundCfg}
|
|
1372
|
-
*/
|
|
1373
|
-
background?: LegendBackgroundCfg;
|
|
1374
|
-
/**
|
|
1375
|
-
* @title 图例的位置。
|
|
1376
|
-
*/
|
|
1377
|
-
position?: 'top' | 'top-left' | 'top-right' | 'right' | 'right-top' | 'right-bottom' | 'left' | 'left-top' | 'left-bottom' | 'bottom' | 'bottom-left' | 'bottom-right';
|
|
1378
|
-
/**
|
|
1379
|
-
* @title 动画开关,默认关闭。
|
|
1380
|
-
*/
|
|
1381
|
-
animate?: boolean;
|
|
1382
|
-
/**
|
|
1383
|
-
* @title 动画
|
|
1384
|
-
* @description 动画参数配置,当且仅当 `animate` 属性为 true,即动画开启时生效。
|
|
1385
|
-
*/
|
|
1386
|
-
animateOption?: ComponentAnimateOption;
|
|
1387
|
-
/**
|
|
1388
|
-
* @title 水平间距
|
|
1389
|
-
* @description **分类图例适用**,控制图例项水平方向的间距。
|
|
1390
|
-
*/
|
|
1391
|
-
itemSpacing?: number;
|
|
1392
|
-
/**
|
|
1393
|
-
* @title 垂直间距
|
|
1394
|
-
* @description **分类图例适用**,控制图例项垂直方向的间距。
|
|
1395
|
-
*/
|
|
1396
|
-
itemMarginBottom?: number;
|
|
1397
|
-
/**
|
|
1398
|
-
* @title 图例项的最大宽度
|
|
1399
|
-
* @description
|
|
1400
|
-
* **分类图例适用**,图例项的最大宽度,超出则自动缩略。
|
|
1401
|
-
* `maxItemWidth` 可以是像素值;
|
|
1402
|
-
* 也可以是相对值(取 0 到 1 范围的数值),代表占图表宽度的多少
|
|
1403
|
-
*/
|
|
1404
|
-
maxItemWidth?: number;
|
|
1405
|
-
/**
|
|
1406
|
-
* @title 图例项的宽度
|
|
1407
|
-
* @description **分类图例适用**,图例项的宽度, 默认为 null,自动计算。
|
|
1408
|
-
*/
|
|
1409
|
-
itemWidth?: number;
|
|
1410
|
-
/**
|
|
1411
|
-
* @title 图例项的高度
|
|
1412
|
-
* @description **分类图例适用**,图例的高度,默认为 null。
|
|
1413
|
-
*/
|
|
1414
|
-
itemHeight?: number;
|
|
1415
|
-
/**
|
|
1416
|
-
* @title 图例项 name
|
|
1417
|
-
* @description
|
|
1418
|
-
* **分类图例适用**,图例项 name 文本的配置。
|
|
1419
|
-
* 属性结构如下:
|
|
1420
|
-
*
|
|
1421
|
-
* ```ts
|
|
1422
|
-
* {
|
|
1423
|
-
* spacing?: number; // 图例项 name 同后面 value 的间距
|
|
1424
|
-
* formatter?: (text: string, item: ListItem, index: number) => any; // 格式化文本函数
|
|
1425
|
-
* style?: ShapeAttrs; // 文本配置项
|
|
1426
|
-
* }
|
|
1427
|
-
* ```
|
|
1428
|
-
*
|
|
1429
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L665|LegendItemNameCfg
|
|
1430
|
-
*/
|
|
1431
|
-
itemName?: LegendItemNameCfg;
|
|
1432
|
-
/**
|
|
1433
|
-
* @title 图例项 value
|
|
1434
|
-
* @description
|
|
1435
|
-
* **分类图例适用**,图例项 value 附加值的配置项。
|
|
1436
|
-
* 属性结构如下:
|
|
1437
|
-
*
|
|
1438
|
-
* ```ts
|
|
1439
|
-
* {
|
|
1440
|
-
* alignRight?: boolean; // 是否右对齐,默认为 false,仅当设置图例项宽度时生效
|
|
1441
|
-
* formatter?: (text: string, item: ListItem, index: number) => any; // 格式化文本函数
|
|
1442
|
-
* style?: ShapeAttrs; // 图例项附加值的配置
|
|
1443
|
-
* }
|
|
1444
|
-
* ```
|
|
1445
|
-
*
|
|
1446
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L685|LegendItemValueCfg
|
|
1447
|
-
*/
|
|
1448
|
-
itemValue?: LegendItemValueCfg;
|
|
1449
|
-
/**
|
|
1450
|
-
* @title 最大宽度
|
|
1451
|
-
* @description **分类图例适用**,图例项最大宽度设置。
|
|
1452
|
-
*/
|
|
1453
|
-
maxWidth?: number;
|
|
1454
|
-
/**
|
|
1455
|
-
* @title 最大高度
|
|
1456
|
-
* @description **分类图例适用**,图例项最大高度设置。
|
|
1457
|
-
*/
|
|
1458
|
-
maxHeight?: number;
|
|
1459
|
-
/**
|
|
1460
|
-
* @title 最大宽度比例
|
|
1461
|
-
* @description **分类图例适用**,图例项最大宽度比例(以 view 的 bbox 宽度为参照,默认 0.25)。
|
|
1462
|
-
*/
|
|
1463
|
-
maxWidthRatio?: number;
|
|
1464
|
-
/**
|
|
1465
|
-
* @title 最大高度比例
|
|
1466
|
-
* @description **分类图例适用**,图例项最大高度比例(以 view 的 bbox 高度为参照,默认 0.25)。
|
|
1467
|
-
*/
|
|
1468
|
-
maxHeightRatio?: number;
|
|
1469
|
-
/**
|
|
1470
|
-
* @title 图例项的 marker
|
|
1471
|
-
* @description **分类图例适用**,图例项的 marker 图标的配置。
|
|
1472
|
-
*/
|
|
1473
|
-
marker?: MarkerCfg | ((name: string, index: number, item: {
|
|
1474
|
-
name: string;
|
|
1475
|
-
value: string;
|
|
1476
|
-
} & MarkerCfg) => MarkerCfg);
|
|
1477
|
-
/**
|
|
1478
|
-
* @title 是否进行分页
|
|
1479
|
-
* @description **适用于分类图例**,当图例项过多时是否进行分页。
|
|
1480
|
-
*/
|
|
1481
|
-
flipPage?: boolean;
|
|
1482
|
-
/**
|
|
1483
|
-
* @title 分页器的样式
|
|
1484
|
-
* @description **适用于分类图例**,图例分页器的样式设置。
|
|
1485
|
-
*/
|
|
1486
|
-
pageNavigator?: LegendPageNavigatorCfg;
|
|
1487
|
-
/**
|
|
1488
|
-
* @title 图例项
|
|
1489
|
-
* @description **分类图例适用**,用户自己配置图例项的内容。
|
|
1490
|
-
*/
|
|
1491
|
-
items?: LegendItem[];
|
|
1492
|
-
/**
|
|
1493
|
-
* @title 反选
|
|
1494
|
-
* @description **分类图里适用**,用来配置正反选功能
|
|
1495
|
-
*/
|
|
1496
|
-
radio?: LegendRadio;
|
|
1497
|
-
/**
|
|
1498
|
-
* @title 是否逆序
|
|
1499
|
-
* @description **分类图例适用**,是否将图例项逆序展示。
|
|
1500
|
-
*/
|
|
1501
|
-
reversed?: boolean;
|
|
1502
|
-
/**
|
|
1503
|
-
* @title 最小值
|
|
1504
|
-
* @description **连续图例适用**,选择范围的最小值。
|
|
1505
|
-
*/
|
|
1506
|
-
min?: number;
|
|
1507
|
-
/**
|
|
1508
|
-
* @title 最大
|
|
1509
|
-
* @description **连续图例适用**,选择范围的最大值。
|
|
1510
|
-
*/
|
|
1511
|
-
max?: number;
|
|
1512
|
-
/**
|
|
1513
|
-
* @title value
|
|
1514
|
-
* @description **连续图例适用**,选择的值。
|
|
1515
|
-
*/
|
|
1516
|
-
value?: number[];
|
|
1517
|
-
/**
|
|
1518
|
-
* @title 色块样式
|
|
1519
|
-
* @description
|
|
1520
|
-
* **连续图例适用**,选择范围的色块样式配置项。
|
|
1521
|
-
* 属性结构如下:
|
|
1522
|
-
*
|
|
1523
|
-
* ```ts
|
|
1524
|
-
* {
|
|
1525
|
-
* style?: ShapeAttrs; // 选定范围的样式
|
|
1526
|
-
* }
|
|
1527
|
-
* ```
|
|
1528
|
-
*
|
|
1529
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L574|ContinueLegendTrackCfg
|
|
1530
|
-
*/
|
|
1531
|
-
track?: ContinueLegendTrackCfg;
|
|
1532
|
-
/**
|
|
1533
|
-
* @title 滑轨(背景
|
|
1534
|
-
* @description
|
|
1535
|
-
* **连续图例适用**,图例滑轨(背景)的样式配置项。
|
|
1536
|
-
* 属性结构如下:
|
|
1537
|
-
*
|
|
1538
|
-
* ```ts
|
|
1539
|
-
* {
|
|
1540
|
-
* type?: string; // rail 的类型,color, size
|
|
1541
|
-
* size?: number; // 滑轨的宽度
|
|
1542
|
-
* defaultLength?: number; // 滑轨的默认长度,,当限制了 maxWidth,maxHeight 时,不会使用这个属性会自动计算长度
|
|
1543
|
-
* style?: ShapeAttrs; // 滑轨的样式
|
|
1544
|
-
* }
|
|
1545
|
-
* ```
|
|
1546
|
-
*
|
|
1547
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L595|ContinueLegendRailCfg
|
|
1548
|
-
*/
|
|
1549
|
-
rail?: ContinueLegendRailCfg;
|
|
1550
|
-
/**
|
|
1551
|
-
* @title 文本
|
|
1552
|
-
* @description
|
|
1553
|
-
* **连续图例适用**,文本的配置项。
|
|
1554
|
-
* 属性结构如下:
|
|
1555
|
-
*
|
|
1556
|
-
* ```ts
|
|
1557
|
-
* {
|
|
1558
|
-
* // 文本同滑轨的对齐方式,有五种类型
|
|
1559
|
-
* // rail : 同滑轨对齐,在滑轨的两端
|
|
1560
|
-
* // top, bottom: 图例水平布局时有效
|
|
1561
|
-
* // left, right: 图例垂直布局时有效
|
|
1562
|
-
* align?: string;
|
|
1563
|
-
* spacing?: number; // 文本同滑轨的距离
|
|
1564
|
-
* style?: ShapeAttrs; // 文本样式
|
|
1565
|
-
* }
|
|
1566
|
-
* ```
|
|
1567
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L618|ContinueLegendLabelCfg
|
|
1568
|
-
*/
|
|
1569
|
-
label?: ContinueLegendLabelCfg;
|
|
1570
|
-
/**
|
|
1571
|
-
* @title 滑块
|
|
1572
|
-
* @description
|
|
1573
|
-
* **连续图例适用**,滑块的配置项。
|
|
1574
|
-
* 属性结构如下:
|
|
1575
|
-
*
|
|
1576
|
-
* ```ts
|
|
1577
|
-
* {
|
|
1578
|
-
* size?: number; // 滑块的大小
|
|
1579
|
-
* style?: ShapeAttrs; // 滑块的样式设置
|
|
1580
|
-
* }
|
|
1581
|
-
* ```
|
|
1582
|
-
*
|
|
1583
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L582|ContinueLegendTrackCfg
|
|
1584
|
-
*/
|
|
1585
|
-
handler?: ContinueLegendHandlerCfg;
|
|
1586
|
-
/**
|
|
1587
|
-
* @title 是否可滑动
|
|
1588
|
-
* @description **连续图例适用**,滑块是否可以滑动。
|
|
1589
|
-
*/
|
|
1590
|
-
slidable?: boolean;
|
|
1591
|
-
/**
|
|
1592
|
-
* @title 图例 x 方向的偏移。
|
|
1593
|
-
*/
|
|
1594
|
-
offsetX?: number;
|
|
1595
|
-
/**
|
|
1596
|
-
* @title 图例 y 方向的偏移。
|
|
1597
|
-
*/
|
|
1598
|
-
offsetY?: number;
|
|
1599
|
-
/**
|
|
1600
|
-
* @title 图例在四个方向的偏移量
|
|
1601
|
-
*/
|
|
1602
|
-
padding?: number[];
|
|
1603
|
-
/**
|
|
1604
|
-
* 图例高亮状态,false 表示默认置灰,无或 true 表示高亮
|
|
1605
|
-
*/
|
|
1606
|
-
selected?: {
|
|
1607
|
-
[key: string]: boolean;
|
|
1608
|
-
};
|
|
1609
|
-
}
|
|
1610
|
-
/**
|
|
1611
|
-
* Tooltip Crosshairs 的文本数据结构。
|
|
1612
|
-
*/
|
|
1613
|
-
export interface TooltipCrosshairsText extends CrosshairTextCfg {
|
|
1614
|
-
/**
|
|
1615
|
-
* @title crosshairs 文本内容
|
|
1616
|
-
*/
|
|
1617
|
-
content?: string;
|
|
1618
|
-
}
|
|
1619
|
-
/**
|
|
1620
|
-
* 辅助线文本回调函数
|
|
1621
|
-
* @param type 对应当前 crosshairs 的类型,值为 'x' 或者 'y'
|
|
1622
|
-
* @param defaultContent 对应当前 crosshairs 默认的文本内容
|
|
1623
|
-
* @param items 对应当前 tooltip 内容框中的数据
|
|
1624
|
-
* @param currentPoint 对应当前坐标点
|
|
1625
|
-
* @returns 返回当前 crosshairs 对应的辅助线文本配置
|
|
1626
|
-
*/
|
|
1627
|
-
export declare type TooltipCrosshairsTextCallback = (type: string, defaultContent: any, items: any[], currentPoint: Point) => TooltipCrosshairsText;
|
|
1628
|
-
/**
|
|
1629
|
-
* @title Tooltip crosshairs 配置结构
|
|
1630
|
-
*/
|
|
1631
|
-
export interface TooltipCrosshairs {
|
|
1632
|
-
/**
|
|
1633
|
-
* @title 类型
|
|
1634
|
-
* @description
|
|
1635
|
-
* crosshairs 的类型: `x` 表示 x 轴上的辅助线,`y` 表示 y 轴上的辅助项。
|
|
1636
|
-
* 以下是在不同坐标系下,crosshairs 各个类型的表现:
|
|
1637
|
-
*
|
|
1638
|
-
* | 坐标系 | type = 'x' | type = 'xy' | type = 'y' |
|
|
1639
|
-
* | ------------ | ------------- | ------------- |
|
|
1640
|
-
* | 直角坐标系 |  |  |  |
|
|
1641
|
-
* | 极坐标 |  |  |  |
|
|
1642
|
-
*/
|
|
1643
|
-
type?: 'x' | 'y' | 'xy';
|
|
1644
|
-
/**
|
|
1645
|
-
* @title 辅助线的样式配置。
|
|
1646
|
-
* @description
|
|
1647
|
-
* 属性结构如下:
|
|
1648
|
-
*
|
|
1649
|
-
* ```ts
|
|
1650
|
-
* {
|
|
1651
|
-
* style?: ShapeAttrs; // 线的样式配置
|
|
1652
|
-
* }
|
|
1653
|
-
* ```
|
|
1654
|
-
*
|
|
1655
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L1177|CrosshairLineCfg
|
|
1656
|
-
*/
|
|
1657
|
-
line?: CrosshairLineCfg;
|
|
1658
|
-
/**
|
|
1659
|
-
* @title 文本
|
|
1660
|
-
* @description 辅助线文本配置,支持回调。
|
|
1661
|
-
*/
|
|
1662
|
-
text?: TooltipCrosshairsText | TooltipCrosshairsTextCallback;
|
|
1663
|
-
/**
|
|
1664
|
-
* @title 辅助线文本背景配置。
|
|
1665
|
-
* @description
|
|
1666
|
-
* 属性结构如下:
|
|
1667
|
-
*
|
|
1668
|
-
* ```ts
|
|
1669
|
-
* {
|
|
1670
|
-
* padding?: number | number[]; // 文本背景周围的留白
|
|
1671
|
-
* style?: ShapeAttrs; // 文本背景的样式
|
|
1672
|
-
* }
|
|
1673
|
-
* ```
|
|
1674
|
-
*
|
|
1675
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L1185|CrosshairTextBackgroundCfg
|
|
1676
|
-
*/
|
|
1677
|
-
textBackground?: CrosshairTextBackgroundCfg;
|
|
1678
|
-
/**
|
|
1679
|
-
* @title 辅助线是否跟随鼠标移动
|
|
1680
|
-
* @description 即定位到数据点
|
|
1681
|
-
* @default false
|
|
1682
|
-
*/
|
|
1683
|
-
follow?: boolean;
|
|
1684
|
-
}
|
|
1685
|
-
export declare type TooltipTitle = string | ((title: string, datum: Datum) => string);
|
|
1686
|
-
export declare type TooltipItem = {
|
|
1687
|
-
/**
|
|
1688
|
-
* @title 原始数据
|
|
1689
|
-
*/
|
|
1690
|
-
readonly data: Datum;
|
|
1691
|
-
/**
|
|
1692
|
-
* @title 映射之后的数据
|
|
1693
|
-
*/
|
|
1694
|
-
readonly mappingData: Datum;
|
|
1695
|
-
/**
|
|
1696
|
-
* @title tooltip item 中名称
|
|
1697
|
-
*/
|
|
1698
|
-
readonly name: string;
|
|
1699
|
-
/**
|
|
1700
|
-
* @title tooltip item 中值
|
|
1701
|
-
*/
|
|
1702
|
-
readonly value: string | number;
|
|
1703
|
-
/**
|
|
1704
|
-
* @title tooltip item 中颜色
|
|
1705
|
-
*/
|
|
1706
|
-
readonly color: string;
|
|
1707
|
-
/**
|
|
1708
|
-
* @title tooltip item 中图标类型
|
|
1709
|
-
*/
|
|
1710
|
-
readonly marker: string;
|
|
1711
|
-
};
|
|
1712
|
-
/**
|
|
1713
|
-
* @title chart.tooltip() 接口配置属性
|
|
1714
|
-
*/
|
|
1715
|
-
export interface TooltipCfg {
|
|
1716
|
-
/**
|
|
1717
|
-
* @title 设置 tooltip 内容框是否跟随鼠标移动。
|
|
1718
|
-
* @description 默认为 true,跟随鼠标移动,false 则固定位置不随鼠标移动。
|
|
1719
|
-
* @default true
|
|
1720
|
-
*/
|
|
1721
|
-
follow?: boolean;
|
|
1722
|
-
/**
|
|
1723
|
-
* @title tooltip 是否允许鼠标滑入
|
|
1724
|
-
* @default false
|
|
1725
|
-
*/
|
|
1726
|
-
enterable?: boolean;
|
|
1727
|
-
/**
|
|
1728
|
-
* @title tooltip 显示延迟(ms)
|
|
1729
|
-
* @description 默认为 16ms,建议在 enterable = true 的时候才设置
|
|
1730
|
-
* @default "16ms"
|
|
1731
|
-
*/
|
|
1732
|
-
showDelay?: number;
|
|
1733
|
-
/**
|
|
1734
|
-
* @title 是否展示 tooltip 标题。
|
|
1735
|
-
*/
|
|
1736
|
-
showTitle?: boolean;
|
|
1737
|
-
/**
|
|
1738
|
-
* @title 标题
|
|
1739
|
-
* @description
|
|
1740
|
-
* 设置 tooltip 的标题内容:如果值为数据字段名,则会展示数据中对应该字段的数值,如果数据中不存在该字段,则直接展示 title 值。
|
|
1741
|
-
* 同时支持传入方法,回调的方式返回字符串
|
|
1742
|
-
*/
|
|
1743
|
-
title?: TooltipTitle;
|
|
1744
|
-
/**
|
|
1745
|
-
* @title 设置 tooltip 的固定展示位置,相对于数据点。
|
|
1746
|
-
*/
|
|
1747
|
-
position?: 'top' | 'bottom' | 'left' | 'right';
|
|
1748
|
-
/**
|
|
1749
|
-
* @title 是否合并当前点对应的所有数据
|
|
1750
|
-
* @description true 表示合并当前点对应的所有数据并展示,false 表示只展示离当前点最逼近的数据内容。
|
|
1751
|
-
*/
|
|
1752
|
-
shared?: boolean;
|
|
1753
|
-
/**
|
|
1754
|
-
* @title 是否展示 crosshairs。
|
|
1755
|
-
*/
|
|
1756
|
-
showCrosshairs?: boolean;
|
|
1757
|
-
/**
|
|
1758
|
-
* @title 交叉线
|
|
1759
|
-
* @description 配置 tooltip 的 crosshairs,当且仅当 `showCrosshairs` 为 true 时生效。
|
|
1760
|
-
*/
|
|
1761
|
-
crosshairs?: TooltipCrosshairs;
|
|
1762
|
-
/**
|
|
1763
|
-
* @title 是否渲染 tooltipMarkers。
|
|
1764
|
-
*/
|
|
1765
|
-
showMarkers?: boolean;
|
|
1766
|
-
/**
|
|
1767
|
-
* @title tooltipMarker 的样式配置。
|
|
1768
|
-
*/
|
|
1769
|
-
marker?: object;
|
|
1770
|
-
/**
|
|
1771
|
-
* @title 是否展示 tooltip 内容框
|
|
1772
|
-
*/
|
|
1773
|
-
showContent?: boolean | ((datum: Datum) => boolean);
|
|
1774
|
-
/**
|
|
1775
|
-
* @title 自定义 tooltip 的容器。
|
|
1776
|
-
*/
|
|
1777
|
-
container?: string | HTMLElement;
|
|
1778
|
-
/**
|
|
1779
|
-
* @title 图例容器的模板
|
|
1780
|
-
* @description 用于指定图例容器的模板,自定义模板时必须包含各个 dom 节点的 class。
|
|
1781
|
-
*/
|
|
1782
|
-
containerTpl?: string;
|
|
1783
|
-
/**
|
|
1784
|
-
* @title 默认模板
|
|
1785
|
-
* @description 每项记录的默认模板,自定义模板时必须包含各个 dom 节点的 class。
|
|
1786
|
-
*/
|
|
1787
|
-
itemTpl?: string;
|
|
1788
|
-
/**
|
|
1789
|
-
* @title dom 样式
|
|
1790
|
-
* @description 传入各个 dom 的样式。
|
|
1791
|
-
*/
|
|
1792
|
-
domStyles?: TooltipDomStyles;
|
|
1793
|
-
/**
|
|
1794
|
-
* @title tooltip 偏移量。
|
|
1795
|
-
*/
|
|
1796
|
-
offset?: number;
|
|
1797
|
-
/**
|
|
1798
|
-
* @title 是否将 tooltip items 逆序
|
|
1799
|
-
*/
|
|
1800
|
-
reversed?: boolean;
|
|
1801
|
-
/**
|
|
1802
|
-
* @title 是否显示空值的 tooltip 项目
|
|
1803
|
-
*/
|
|
1804
|
-
showNil?: boolean;
|
|
1805
|
-
/**
|
|
1806
|
-
* @description 在 tooltip 渲染之前,对最终的 items 进行自定义处理(比如排序、过滤、格式化等)
|
|
1807
|
-
*/
|
|
1808
|
-
customItems?: (originalItems: TooltipItem[]) => TooltipItem[];
|
|
1809
|
-
/**
|
|
1810
|
-
* @title 自定义模板
|
|
1811
|
-
*/
|
|
1812
|
-
customContent?: (title: string, data: any[]) => string | HTMLElement;
|
|
1813
|
-
}
|
|
1814
|
-
/**
|
|
1815
|
-
* @title 坐标系配置
|
|
1816
|
-
*/
|
|
1817
|
-
export interface CoordinateOption {
|
|
1818
|
-
/**
|
|
1819
|
-
* @title 坐标系类型
|
|
1820
|
-
*/
|
|
1821
|
-
type?: 'polar' | 'theta' | 'rect' | 'cartesian' | 'helix';
|
|
1822
|
-
/**
|
|
1823
|
-
* @title 坐标系配置项,目前常用于极坐标。
|
|
1824
|
-
*/
|
|
1825
|
-
cfg?: CoordinateCfg;
|
|
1826
|
-
/**
|
|
1827
|
-
* @title 坐标系变换
|
|
1828
|
-
* @description
|
|
1829
|
-
* 1. rotate 表示旋转,使用弧度制。
|
|
1830
|
-
* 2. scale 表示沿着 x 和 y 方向的缩放比率。
|
|
1831
|
-
* 3. reflect 表示沿 x 方向镜像或者沿 y 轴方向映射。
|
|
1832
|
-
* 4. transpose 表示 x,y 轴置换。
|
|
1833
|
-
*/
|
|
1834
|
-
actions?: CoordinateActions[];
|
|
1835
|
-
}
|
|
1836
|
-
/**
|
|
1837
|
-
* @title 极坐标系支持的配置属性
|
|
1838
|
-
*/
|
|
1839
|
-
export interface CoordinateCfg {
|
|
1840
|
-
/**
|
|
1841
|
-
* @title 起始弧度
|
|
1842
|
-
* @description 用于极坐标,配置起始弧度。
|
|
1843
|
-
*/
|
|
1844
|
-
startAngle?: number;
|
|
1845
|
-
/**
|
|
1846
|
-
* @title 结束弧度
|
|
1847
|
-
* @description 用于极坐标,配置结束弧度。
|
|
1848
|
-
*/
|
|
1849
|
-
endAngle?: number;
|
|
1850
|
-
/**
|
|
1851
|
-
* @title 半径
|
|
1852
|
-
* @description 用于极坐标,配置极坐标半径,0 - 1 范围的数值。
|
|
1853
|
-
*/
|
|
1854
|
-
radius?: number;
|
|
1855
|
-
/**
|
|
1856
|
-
* @title 内半径
|
|
1857
|
-
* @description 用于极坐标,极坐标内半径,0 -1 范围的数值。
|
|
1858
|
-
*/
|
|
1859
|
-
innerRadius?: number;
|
|
1860
|
-
}
|
|
1861
|
-
/**
|
|
1862
|
-
* @title 坐标轴网格线的配置属性
|
|
1863
|
-
*/
|
|
1864
|
-
export interface AxisGridCfg {
|
|
1865
|
-
/**
|
|
1866
|
-
* @title 线的样式
|
|
1867
|
-
* @description
|
|
1868
|
-
* 属性结构如下:
|
|
1869
|
-
*
|
|
1870
|
-
* ```ts
|
|
1871
|
-
* {
|
|
1872
|
-
* type?: string; // 栅格线的类型,'line' 或者 'circle'
|
|
1873
|
-
* style?: ShapeAttrs; // 栅格线的样式配置项
|
|
1874
|
-
* }
|
|
1875
|
-
* ```
|
|
1876
|
-
*
|
|
1877
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L407|GridLineCfg
|
|
1878
|
-
*/
|
|
1879
|
-
line?: GridLineCfg;
|
|
1880
|
-
/**
|
|
1881
|
-
* @title 两个栅格线间的填充色。
|
|
1882
|
-
*/
|
|
1883
|
-
alternateColor?: string | string[];
|
|
1884
|
-
/**
|
|
1885
|
-
* @title 是否关闭
|
|
1886
|
-
* @description 对于 circle 是否关闭 grid。
|
|
1887
|
-
*/
|
|
1888
|
-
closed?: boolean;
|
|
1889
|
-
/**
|
|
1890
|
-
* @title 是否同刻度线对齐
|
|
1891
|
-
* @description 如果值为 false,则会显示在两个刻度中间。
|
|
1892
|
-
* @see 
|
|
1893
|
-
*/
|
|
1894
|
-
alignTick?: boolean;
|
|
1895
|
-
}
|
|
1896
|
-
/**
|
|
1897
|
-
* @title 坐标轴配置属性,chart.axis()
|
|
1898
|
-
*/
|
|
1899
|
-
export interface AxisCfg {
|
|
1900
|
-
/**
|
|
1901
|
-
* @title 是否渲染在画布顶层
|
|
1902
|
-
* @description 防止部分图形中,需要将 axis 显示在图形上面,避免被图形遮挡
|
|
1903
|
-
*/
|
|
1904
|
-
top?: boolean;
|
|
1905
|
-
/**
|
|
1906
|
-
* @title 坐标轴的位置
|
|
1907
|
-
* @description 适用于直角坐标系,设置坐标轴的位置。
|
|
1908
|
-
*/
|
|
1909
|
-
position?: 'top' | 'bottom' | 'right' | 'left';
|
|
1910
|
-
/**
|
|
1911
|
-
* @title 轴线
|
|
1912
|
-
* @description
|
|
1913
|
-
* 坐标轴线的配置项,null 表示不展示。
|
|
1914
|
-
* 属性结构如下:
|
|
1915
|
-
*
|
|
1916
|
-
* ```ts
|
|
1917
|
-
* {
|
|
1918
|
-
* style?: ShapeAttrs; // 坐标轴线的样式配置项
|
|
1919
|
-
* }
|
|
1920
|
-
* ```
|
|
1921
|
-
*
|
|
1922
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L91|AxisLineCfg
|
|
1923
|
-
*/
|
|
1924
|
-
line?: AxisLineCfg | null;
|
|
1925
|
-
/**
|
|
1926
|
-
* @title 刻度线线
|
|
1927
|
-
* @description
|
|
1928
|
-
* 坐标轴刻度线线的配置项,null 表示不展示。
|
|
1929
|
-
* 属性结构如下:
|
|
1930
|
-
*
|
|
1931
|
-
* ```ts
|
|
1932
|
-
* {
|
|
1933
|
-
* style?: ShapeAttrs; // 坐标轴刻度线的样式配置项
|
|
1934
|
-
* alignTick?: boolean; // 是否同 tick 对齐
|
|
1935
|
-
* length?: number; // 长度
|
|
1936
|
-
* }
|
|
1937
|
-
* ```
|
|
1938
|
-
*
|
|
1939
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L103|AxisTickLineCfg
|
|
1940
|
-
*/
|
|
1941
|
-
tickLine?: AxisTickLineCfg | null;
|
|
1942
|
-
/**
|
|
1943
|
-
* @title 子刻度线
|
|
1944
|
-
* @description
|
|
1945
|
-
* 坐标轴子刻度线的配置项,null 表示不展示。
|
|
1946
|
-
* 属性结构如下:
|
|
1947
|
-
*
|
|
1948
|
-
* ```ts
|
|
1949
|
-
* {
|
|
1950
|
-
* style?: ShapeAttrs; // 坐标轴刻度线的样式配置项
|
|
1951
|
-
* count?: number; // 子刻度个数
|
|
1952
|
-
* length?: number; // 子刻度线长度
|
|
1953
|
-
* }
|
|
1954
|
-
* ```
|
|
1955
|
-
*
|
|
1956
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L169|AxisSubTickLineCfg
|
|
1957
|
-
*/
|
|
1958
|
-
subTickLine?: AxisSubTickLineCfg | null;
|
|
1959
|
-
/**
|
|
1960
|
-
* @title 标题
|
|
1961
|
-
* @description
|
|
1962
|
-
* 标题的配置项,null 表示不展示。
|
|
1963
|
-
* 属性结构如下:
|
|
1964
|
-
*
|
|
1965
|
-
* ```ts
|
|
1966
|
-
* {
|
|
1967
|
-
* offset?: number; // 标题距离坐标轴的距离
|
|
1968
|
-
* style?: ShapeAttrs; // 标题文本配置项
|
|
1969
|
-
* autoRotate?: boolean; // 是否自动旋转
|
|
1970
|
-
* }
|
|
1971
|
-
* ```
|
|
1972
|
-
*
|
|
1973
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L191|AxisTitleCfg
|
|
1974
|
-
*/
|
|
1975
|
-
title?: AxisTitleCfg | null;
|
|
1976
|
-
/**
|
|
1977
|
-
* @title 文本标签
|
|
1978
|
-
* @description
|
|
1979
|
-
* 文本标签的配置项,null 表示不展示。
|
|
1980
|
-
* 属性结构如下:
|
|
1981
|
-
*
|
|
1982
|
-
* ```ts
|
|
1983
|
-
* {
|
|
1984
|
-
* // 坐标轴文本的样式
|
|
1985
|
-
* style?: ShapeAttrs;
|
|
1986
|
-
* // label 的偏移量
|
|
1987
|
-
* offset?: number;
|
|
1988
|
-
* // 文本旋转角度
|
|
1989
|
-
* rotate?: number;
|
|
1990
|
-
* // 格式化函数
|
|
1991
|
-
* formatter?: (text: string, item: ListItem, index: number) => any;
|
|
1992
|
-
* // 是否自动旋转,默认 false
|
|
1993
|
-
* autoRotate?: boolean | (isVertical: boolean, labelGroup: IGroup, limitLength?: number) => boolean; | string;
|
|
1994
|
-
* // 是否自动隐藏,默认 true
|
|
1995
|
-
* autoHide?: boolean | (isVertical: boolean, labelGroup: IGroup, limitLength?: number) => boolean; | string;
|
|
1996
|
-
* // 是否自动省略,默认 false
|
|
1997
|
-
* autoEllipsis?: boolean | (isVertical: boolean, labelGroup: IGroup, limitLength?: number) => boolean; | string;
|
|
1998
|
-
* }
|
|
1999
|
-
* ```
|
|
2000
|
-
*
|
|
2001
|
-
* @link https://github.com/antvis/component/blob/81890719a431b3f9088e0c31c4d5d382ef0089df/src/types.ts#L127|AxisLabelCfg
|
|
2002
|
-
*/
|
|
2003
|
-
label?: AxisLabelCfg | null;
|
|
2004
|
-
/**
|
|
2005
|
-
* @title 网格线
|
|
2006
|
-
* @description 坐标轴网格线的配置项,null 表示不展示。
|
|
2007
|
-
*/
|
|
2008
|
-
grid?: AxisGridCfg | null;
|
|
2009
|
-
/**
|
|
2010
|
-
* @title 动画
|
|
2011
|
-
* @default true
|
|
2012
|
-
*/
|
|
2013
|
-
animate?: boolean;
|
|
2014
|
-
/**
|
|
2015
|
-
* @title 动画参数
|
|
2016
|
-
*/
|
|
2017
|
-
animateOption?: ComponentAnimateOption;
|
|
2018
|
-
/**
|
|
2019
|
-
* @title 坐标轴 label 的方向
|
|
2020
|
-
* @description 标记坐标轴 label 的方向,左侧为 1,右侧为 -1。
|
|
2021
|
-
*/
|
|
2022
|
-
verticalFactor?: number;
|
|
2023
|
-
/**
|
|
2024
|
-
* @title 坐标轴垂直方向的最大限制长度
|
|
2025
|
-
* @description
|
|
2026
|
-
* 配置坐标轴垂直方向的最大限制长度,对文本自适应有很大影响。
|
|
2027
|
-
* 1. 可以直接设置像素值,如 100;
|
|
2028
|
-
* 2. 也可设置绝对值,如 0.2,如果是 x 轴,则相对于图表的高度,如果是 y 轴,则相对于图表的宽度
|
|
2029
|
-
*
|
|
2030
|
-
* 在 G2 中,x 轴的文本默认最大高度为图表高度的 1/2,y 轴的文本默认最大长度为图表宽度的 1/3
|
|
2031
|
-
*/
|
|
2032
|
-
verticalLimitLength?: number;
|
|
2033
|
-
}
|
|
2034
|
-
export interface SliderCfg {
|
|
2035
|
-
/**
|
|
2036
|
-
* @title slider 高度
|
|
2037
|
-
*/
|
|
2038
|
-
readonly height?: number;
|
|
2039
|
-
/**
|
|
2040
|
-
* @title 滑块背景区域配置
|
|
2041
|
-
*/
|
|
2042
|
-
readonly trendCfg?: Omit<TrendCfg, 'data'> & {
|
|
2043
|
-
data?: number[];
|
|
2044
|
-
};
|
|
2045
|
-
/**
|
|
2046
|
-
* @title 滑块背景样式
|
|
2047
|
-
*/
|
|
2048
|
-
readonly backgroundStyle?: any;
|
|
2049
|
-
/**
|
|
2050
|
-
* @title 滑块前景样式
|
|
2051
|
-
*/
|
|
2052
|
-
readonly foregroundStyle?: any;
|
|
2053
|
-
/**
|
|
2054
|
-
* @title 滑块两个操作块样式
|
|
2055
|
-
*/
|
|
2056
|
-
readonly handlerStyle?: any;
|
|
2057
|
-
/**
|
|
2058
|
-
* @title 文本样式
|
|
2059
|
-
*/
|
|
2060
|
-
readonly textStyle?: any;
|
|
2061
|
-
/**
|
|
2062
|
-
* @title 允许滑动位置的最小值
|
|
2063
|
-
*/
|
|
2064
|
-
readonly minLimit?: number;
|
|
2065
|
-
/**
|
|
2066
|
-
* @title 允许滑动位置的最大值
|
|
2067
|
-
*/
|
|
2068
|
-
readonly maxLimit?: number;
|
|
2069
|
-
/**
|
|
2070
|
-
* @title 滑块初始化的起始位置
|
|
2071
|
-
*/
|
|
2072
|
-
readonly start?: number;
|
|
2073
|
-
/**
|
|
2074
|
-
* @title 滑块初始化的结束位置
|
|
2075
|
-
*/
|
|
2076
|
-
readonly end?: number;
|
|
2077
|
-
/**
|
|
2078
|
-
* @title 布局的 padding
|
|
2079
|
-
*/
|
|
2080
|
-
readonly padding?: number[];
|
|
2081
|
-
/**
|
|
2082
|
-
* @title 滑块文本格式化函数
|
|
2083
|
-
*/
|
|
2084
|
-
formatter?: (val: any, datum: Datum, idx: number) => any;
|
|
2085
|
-
}
|
|
2086
|
-
/**
|
|
2087
|
-
* 事件 payload
|
|
2088
|
-
*/
|
|
2089
|
-
export declare type EventPayload = LooseObject & {
|
|
2090
|
-
/**
|
|
2091
|
-
* @title 触发事件的来源
|
|
2092
|
-
*/
|
|
2093
|
-
source?: string;
|
|
2094
|
-
};
|
|
2095
|
-
export declare type EventCallback = (event: LooseObject) => void;
|
|
2096
|
-
/**
|
|
2097
|
-
* todo: 事件名可穷举,后续需要补充
|
|
2098
|
-
* 事件配置项
|
|
2099
|
-
*/
|
|
2100
|
-
export interface EventCfg {
|
|
2101
|
-
[key: string]: EventCallback;
|
|
2102
|
-
}
|
|
2103
|
-
/**
|
|
2104
|
-
* 缩略轴的配置项
|
|
2105
|
-
*/
|
|
2106
|
-
export declare type SliderOption = SliderCfg | boolean;
|
|
2107
|
-
/**
|
|
2108
|
-
* @title 滚动条组件配置项
|
|
2109
|
-
*/
|
|
2110
|
-
export interface ScrollbarCfg {
|
|
2111
|
-
/**
|
|
2112
|
-
* @title 滚动条类型,默认 horizontal
|
|
2113
|
-
*/
|
|
2114
|
-
type?: 'horizontal' | 'vertical';
|
|
2115
|
-
/**
|
|
2116
|
-
* @title 宽度,在 vertical 下生效
|
|
2117
|
-
*/
|
|
2118
|
-
width?: number;
|
|
2119
|
-
/**
|
|
2120
|
-
* @title 高度,在 horizontal 下生效
|
|
2121
|
-
*/
|
|
2122
|
-
height?: number;
|
|
2123
|
-
/**
|
|
2124
|
-
* @title 可选 padding
|
|
2125
|
-
*/
|
|
2126
|
-
padding?: Padding;
|
|
2127
|
-
/**
|
|
2128
|
-
* @title 对应水平滚动条,为 X 轴每个分类字段的宽度;对于垂直滚动条,为 X 轴每个分类字段的高度
|
|
2129
|
-
*/
|
|
2130
|
-
categorySize?: number;
|
|
2131
|
-
/**
|
|
2132
|
-
* @title 滚动的时候是否开启动画,默认跟随 view 中 animate 配置
|
|
2133
|
-
*/
|
|
2134
|
-
animate?: boolean;
|
|
2135
|
-
/**
|
|
2136
|
-
* @title 主题样式设置, 暂不提供 hover 高亮滑块样式配置
|
|
2137
|
-
*/
|
|
2138
|
-
style?: {
|
|
2139
|
-
/**
|
|
2140
|
-
* @title 滑道颜色
|
|
2141
|
-
*/
|
|
2142
|
-
trackColor?: string;
|
|
2143
|
-
/**
|
|
2144
|
-
* @title 滑块颜色
|
|
2145
|
-
*/
|
|
2146
|
-
thumbColor?: string;
|
|
2147
|
-
/**
|
|
2148
|
-
* @title 滑块高亮样式,对应主题的 hover.style.thumbColor
|
|
2149
|
-
*/
|
|
2150
|
-
thumbHighlightColor?: string;
|
|
2151
|
-
/**
|
|
2152
|
-
* @title 是否圆角
|
|
2153
|
-
*/
|
|
2154
|
-
lineCap?: string;
|
|
2155
|
-
};
|
|
2156
|
-
}
|
|
2157
|
-
/**
|
|
2158
|
-
* @title 滚动条配置
|
|
2159
|
-
*/
|
|
2160
|
-
export declare type ScrollbarOption = ScrollbarCfg | boolean;
|
|
2161
|
-
/**
|
|
2162
|
-
* @title 配置项声明式
|
|
2163
|
-
*/
|
|
2164
|
-
export interface Options {
|
|
2165
|
-
/**
|
|
2166
|
-
* @title 数据源配置。
|
|
2167
|
-
*/
|
|
2168
|
-
readonly data?: Data;
|
|
2169
|
-
/**
|
|
2170
|
-
* @title 设置数据过滤条件,以 data 中的数据属性为 key。
|
|
2171
|
-
*/
|
|
2172
|
-
readonly filters?: Record<string, FilterCondition>;
|
|
2173
|
-
/**
|
|
2174
|
-
* @title 坐标轴配置,以 data 中的数据属性为 key。
|
|
2175
|
-
*/
|
|
2176
|
-
readonly axes?: Record<string, AxisOption> | boolean;
|
|
2177
|
-
/**
|
|
2178
|
-
* @title 图例配置,以 data 中的数据属性为 key。
|
|
2179
|
-
*/
|
|
2180
|
-
readonly legends?: AllLegendsOptions;
|
|
2181
|
-
/**
|
|
2182
|
-
* @title 列定义配置,用于配置数值的类型等,以 data 中的数据属性为 key。
|
|
2183
|
-
*/
|
|
2184
|
-
readonly scales?: Record<string, ScaleOption>;
|
|
2185
|
-
/**
|
|
2186
|
-
* @title Tooltip 配置。
|
|
2187
|
-
*/
|
|
2188
|
-
readonly tooltip?: TooltipOption;
|
|
2189
|
-
/**
|
|
2190
|
-
* @title 坐标系配置。
|
|
2191
|
-
*/
|
|
2192
|
-
readonly coordinate?: CoordinateOption;
|
|
2193
|
-
/**
|
|
2194
|
-
* @title 静态辅助元素声明。
|
|
2195
|
-
*/
|
|
2196
|
-
readonly annotations?: (ArcOption | RegionFilterOption | ImageOption | LineOption | TextOption | RegionOption | DataMarkerOption | DataRegionOption)[];
|
|
2197
|
-
/**
|
|
2198
|
-
* @title Geometry 配置
|
|
2199
|
-
*/
|
|
2200
|
-
readonly geometries?: GeometryOption[];
|
|
2201
|
-
/**
|
|
2202
|
-
* @title 开启/关闭动画,默认开启
|
|
2203
|
-
*/
|
|
2204
|
-
readonly animate?: boolean;
|
|
2205
|
-
/**
|
|
2206
|
-
* @title 配置需要使用的交互行为
|
|
2207
|
-
*/
|
|
2208
|
-
readonly interactions?: InteractionOption[];
|
|
2209
|
-
/**
|
|
2210
|
-
* @title 事件配置
|
|
2211
|
-
*/
|
|
2212
|
-
readonly events?: EventCfg;
|
|
2213
|
-
/**
|
|
2214
|
-
* @title 缩略轴的配置
|
|
2215
|
-
*/
|
|
2216
|
-
readonly slider?: SliderOption;
|
|
2217
|
-
/**
|
|
2218
|
-
* @title 滚动条配置
|
|
2219
|
-
*/
|
|
2220
|
-
readonly scrollbar?: ScrollbarOption;
|
|
2221
|
-
/**
|
|
2222
|
-
* @title 子 View
|
|
2223
|
-
*/
|
|
2224
|
-
readonly views?: ViewOption[];
|
|
2225
|
-
/**
|
|
2226
|
-
* @title 分面
|
|
2227
|
-
*/
|
|
2228
|
-
readonly facets?: (RectCfg | MirrorCfg | CircleCfg | ListCfg | TreeCfg)[];
|
|
2229
|
-
/**
|
|
2230
|
-
* @title 其他自定义的 option
|
|
2231
|
-
*/
|
|
2232
|
-
readonly [name: string]: any;
|
|
2233
|
-
}
|
|
2234
|
-
/**
|
|
2235
|
-
* @title 支持的 Marker 类型
|
|
2236
|
-
*/
|
|
2237
|
-
export declare type Marker = 'circle' | 'square' | 'diamond' | 'triangle' | 'triangle-down' | 'hexagon' | 'bowtie' | 'cross' | 'tick' | 'plus' | 'hyphen' | 'line';
|
|
2238
|
-
/**
|
|
2239
|
-
* @title 自定义 Marker 的回调函数定义
|
|
2240
|
-
*/
|
|
2241
|
-
export declare type MarkerCallback = (x: number, y: number, r: number) => PathCommand[];
|
|
2242
|
-
/**
|
|
2243
|
-
* @title chart.tooltip() 参数类型
|
|
2244
|
-
*/
|
|
2245
|
-
export declare type TooltipOption = TooltipCfg | boolean;
|
|
2246
|
-
export declare type FilterCondition = (value: any, datum: Datum, idx?: number) => boolean;
|
|
2247
|
-
/**
|
|
2248
|
-
* @title chart.axis() 参数类型
|
|
2249
|
-
*/
|
|
2250
|
-
export declare type AxisOption = AxisCfg | boolean;
|
|
2251
|
-
/**
|
|
2252
|
-
* @title chart.legend() 参数类型
|
|
2253
|
-
*/
|
|
2254
|
-
export declare type LegendOption = LegendCfg | boolean;
|
|
2255
|
-
/**
|
|
2256
|
-
* @title Options 中 legends 的配置定义
|
|
2257
|
-
*/
|
|
2258
|
-
export declare type AllLegendsOptions = LegendCfg | Record<string, LegendOption> | boolean;
|
|
2259
|
-
/**
|
|
2260
|
-
* @title G2 支持的度量类型
|
|
2261
|
-
*/
|
|
2262
|
-
export declare type ScaleType = 'linear' | 'cat' | 'category' | 'identity' | 'log' | 'pow' | 'time' | 'timeCat' | 'quantize' | 'quantile';
|
|
2263
|
-
export declare type CoordinateRotate = ['rotate', number];
|
|
2264
|
-
export declare type CoordinateReflect = ['reflect', 'x' | 'y'];
|
|
2265
|
-
export declare type CoordinateScale = ['scale', number, number];
|
|
2266
|
-
export declare type CoordinateTranspose = ['transpose'];
|
|
2267
|
-
/**
|
|
2268
|
-
* @title 坐标系支持的 action 配置
|
|
2269
|
-
*/
|
|
2270
|
-
export declare type CoordinateActions = CoordinateRotate | CoordinateReflect | CoordinateScale | CoordinateTranspose;
|
|
2271
|
-
export declare type FacetCtor = new (view: View, cfg: any) => Facet;
|
|
2272
|
-
export interface Condition {
|
|
2273
|
-
readonly field: string;
|
|
2274
|
-
readonly value: any;
|
|
2275
|
-
readonly values: any[];
|
|
2276
|
-
}
|
|
2277
|
-
export declare type FacetDataFilter = (data: Datum[]) => boolean;
|
|
2278
|
-
/**
|
|
2279
|
-
* 默认的基础配置
|
|
2280
|
-
*/
|
|
2281
|
-
export interface FacetCfg<D> {
|
|
2282
|
-
/**
|
|
2283
|
-
* @title 布局类型。
|
|
2284
|
-
*/
|
|
2285
|
-
readonly type?: string;
|
|
2286
|
-
/**
|
|
2287
|
-
* @title view 创建回调。
|
|
2288
|
-
*/
|
|
2289
|
-
readonly eachView: (innerView: View, facet?: D) => any;
|
|
2290
|
-
/**
|
|
2291
|
-
* @title 分面 view 之间的间隔, 百分比或像素值
|
|
2292
|
-
*/
|
|
2293
|
-
readonly spacing?: [number | string, number | string];
|
|
2294
|
-
/**
|
|
2295
|
-
* @title facet view padding。
|
|
2296
|
-
*/
|
|
2297
|
-
readonly padding?: ViewPadding;
|
|
2298
|
-
/**
|
|
2299
|
-
* @title 是否显示标题。
|
|
2300
|
-
*/
|
|
2301
|
-
readonly showTitle?: boolean;
|
|
2302
|
-
/**
|
|
2303
|
-
* @title facet 数据划分维度。
|
|
2304
|
-
*/
|
|
2305
|
-
readonly fields: string[];
|
|
2306
|
-
}
|
|
2307
|
-
/**
|
|
2308
|
-
* Facet title 配置项
|
|
2309
|
-
*/
|
|
2310
|
-
export interface FacetTitle {
|
|
2311
|
-
/**
|
|
2312
|
-
* @title x 方向偏移。
|
|
2313
|
-
*/
|
|
2314
|
-
readonly offsetX?: number;
|
|
2315
|
-
/**
|
|
2316
|
-
* @title y 方向偏移。
|
|
2317
|
-
*/
|
|
2318
|
-
readonly offsetY?: number;
|
|
2319
|
-
/**
|
|
2320
|
-
* @title 文本样式。
|
|
2321
|
-
*/
|
|
2322
|
-
readonly style?: object;
|
|
2323
|
-
/**
|
|
2324
|
-
* @title 格式化
|
|
2325
|
-
*/
|
|
2326
|
-
readonly formatter?: (val: any) => any;
|
|
2327
|
-
}
|
|
2328
|
-
/**
|
|
2329
|
-
* 分面数据
|
|
2330
|
-
*/
|
|
2331
|
-
export interface FacetData {
|
|
2332
|
-
/**
|
|
2333
|
-
* @title 分面类型。
|
|
2334
|
-
*/
|
|
2335
|
-
readonly type: string;
|
|
2336
|
-
/**
|
|
2337
|
-
* @title 当前分面子 view 的数据。
|
|
2338
|
-
*/
|
|
2339
|
-
readonly data: object[];
|
|
2340
|
-
/**
|
|
2341
|
-
* @title 当前分面子 view 的范围。
|
|
2342
|
-
*/
|
|
2343
|
-
readonly region: Region;
|
|
2344
|
-
/**
|
|
2345
|
-
* @title 当前分面子 view 的 padding。
|
|
2346
|
-
*/
|
|
2347
|
-
readonly padding?: number;
|
|
2348
|
-
/**
|
|
2349
|
-
* @title 当前 facet 对应生成的 view。
|
|
2350
|
-
*/
|
|
2351
|
-
view?: View;
|
|
2352
|
-
/**
|
|
2353
|
-
* @title 分面行字段。
|
|
2354
|
-
*/
|
|
2355
|
-
readonly rowField: string;
|
|
2356
|
-
/**
|
|
2357
|
-
* @title 分面列字段。
|
|
2358
|
-
*/
|
|
2359
|
-
readonly columnField: string;
|
|
2360
|
-
/**
|
|
2361
|
-
* @title 当前行分面的枚举值。
|
|
2362
|
-
*/
|
|
2363
|
-
readonly rowValue: string;
|
|
2364
|
-
/**
|
|
2365
|
-
* @title 当前列分面的枚举值。
|
|
2366
|
-
*/
|
|
2367
|
-
readonly columnValue: string;
|
|
2368
|
-
/**
|
|
2369
|
-
* @title 当前行索引。
|
|
2370
|
-
*/
|
|
2371
|
-
readonly rowIndex: number;
|
|
2372
|
-
/**
|
|
2373
|
-
* @title 当前列索引。
|
|
2374
|
-
*/
|
|
2375
|
-
readonly columnIndex: number;
|
|
2376
|
-
/**
|
|
2377
|
-
* @title 当前行字段的枚举值长度。
|
|
2378
|
-
*/
|
|
2379
|
-
readonly rowValuesLength: number;
|
|
2380
|
-
/**
|
|
2381
|
-
* @title 当前列字段的枚举值长度。
|
|
2382
|
-
*/
|
|
2383
|
-
readonly columnValuesLength: number;
|
|
2384
|
-
}
|
|
2385
|
-
/**
|
|
2386
|
-
* @title rect 分面类型配置
|
|
2387
|
-
*/
|
|
2388
|
-
export interface RectCfg extends FacetCfg<RectData> {
|
|
2389
|
-
/**
|
|
2390
|
-
* @title 行标题的样式。
|
|
2391
|
-
*/
|
|
2392
|
-
readonly columnTitle?: FacetTitle;
|
|
2393
|
-
/**
|
|
2394
|
-
* @title 列标题的样式。
|
|
2395
|
-
*/
|
|
2396
|
-
readonly rowTitle?: FacetTitle;
|
|
2397
|
-
}
|
|
2398
|
-
export declare type RectData = FacetData;
|
|
2399
|
-
/**
|
|
2400
|
-
* @title mirror 分面类型配置
|
|
2401
|
-
*/
|
|
2402
|
-
export interface MirrorCfg extends FacetCfg<MirrorData> {
|
|
2403
|
-
/**
|
|
2404
|
-
* @title 是否转置。
|
|
2405
|
-
*/
|
|
2406
|
-
readonly transpose?: boolean;
|
|
2407
|
-
/**
|
|
2408
|
-
* @title 标题样式。
|
|
2409
|
-
*/
|
|
2410
|
-
readonly title?: FacetTitle;
|
|
2411
|
-
}
|
|
2412
|
-
export declare type MirrorData = FacetData;
|
|
2413
|
-
/**
|
|
2414
|
-
* @title list 分面类型配置
|
|
2415
|
-
*/
|
|
2416
|
-
export interface ListCfg extends FacetCfg<ListData> {
|
|
2417
|
-
/**
|
|
2418
|
-
* @title 指定每行可显示分面的个数,超出时会自动换行。
|
|
2419
|
-
*/
|
|
2420
|
-
readonly cols?: number;
|
|
2421
|
-
/**
|
|
2422
|
-
* @title 每个分面标题配置。
|
|
2423
|
-
*/
|
|
2424
|
-
readonly title?: FacetTitle;
|
|
2425
|
-
}
|
|
2426
|
-
export interface ListData extends FacetData {
|
|
2427
|
-
readonly total?: number;
|
|
2428
|
-
}
|
|
2429
|
-
/**
|
|
2430
|
-
* @title matrix 分面类型配置
|
|
2431
|
-
*/
|
|
2432
|
-
export interface MatrixCfg extends FacetCfg<MirrorData> {
|
|
2433
|
-
/**
|
|
2434
|
-
* @title 列标题的样式
|
|
2435
|
-
*/
|
|
2436
|
-
readonly columnTitle?: FacetTitle;
|
|
2437
|
-
/**
|
|
2438
|
-
* @title 列标题的样式
|
|
2439
|
-
*/
|
|
2440
|
-
readonly rowTitle?: FacetTitle;
|
|
2441
|
-
}
|
|
2442
|
-
export declare type MatrixData = FacetData;
|
|
2443
|
-
/**
|
|
2444
|
-
* @title circle 分面类型配置
|
|
2445
|
-
*/
|
|
2446
|
-
export interface CircleCfg extends FacetCfg<CircleData> {
|
|
2447
|
-
/**
|
|
2448
|
-
* @title 分面标题配置。
|
|
2449
|
-
*/
|
|
2450
|
-
readonly title?: FacetTitle;
|
|
2451
|
-
}
|
|
2452
|
-
export declare type CircleData = FacetData;
|
|
2453
|
-
export interface Line {
|
|
2454
|
-
readonly style?: ShapeAttrs;
|
|
2455
|
-
readonly smooth?: boolean;
|
|
2456
|
-
}
|
|
2457
|
-
/**
|
|
2458
|
-
* @title tree 分面类型配置
|
|
2459
|
-
*/
|
|
2460
|
-
export interface TreeCfg extends FacetCfg<TreeData> {
|
|
2461
|
-
readonly line?: Line;
|
|
2462
|
-
readonly title?: FacetTitle;
|
|
2463
|
-
}
|
|
2464
|
-
export interface TreeData extends FacetData {
|
|
2465
|
-
children?: TreeData[];
|
|
2466
|
-
originColIndex?: number;
|
|
2467
|
-
}
|
|
2468
|
-
/**
|
|
2469
|
-
* facet object map
|
|
2470
|
-
*/
|
|
2471
|
-
export interface FacetCfgMap {
|
|
2472
|
-
/**
|
|
2473
|
-
* @title rect 类型分面配置
|
|
2474
|
-
*/
|
|
2475
|
-
readonly rect: RectCfg;
|
|
2476
|
-
/**
|
|
2477
|
-
* @title mirror 类型分面配置
|
|
2478
|
-
*/
|
|
2479
|
-
readonly mirror: MirrorCfg;
|
|
2480
|
-
/**
|
|
2481
|
-
* @title list 类型分面配置
|
|
2482
|
-
*/
|
|
2483
|
-
readonly list: ListCfg;
|
|
2484
|
-
/**
|
|
2485
|
-
* @title matrix 类型分面配置
|
|
2486
|
-
*/
|
|
2487
|
-
readonly matrix: MatrixCfg;
|
|
2488
|
-
/**
|
|
2489
|
-
* @title circle 类型分面配置
|
|
2490
|
-
*/
|
|
2491
|
-
readonly circle: CircleCfg;
|
|
2492
|
-
/**
|
|
2493
|
-
* @title tree 类型分面配置
|
|
2494
|
-
*/
|
|
2495
|
-
readonly tree: TreeCfg;
|
|
2496
|
-
}
|
|
2497
|
-
export interface StyleSheet {
|
|
2498
|
-
/**
|
|
2499
|
-
* @title 背景色
|
|
2500
|
-
*/
|
|
2501
|
-
backgroundColor?: string;
|
|
2502
|
-
/**
|
|
2503
|
-
* @title 主题色
|
|
2504
|
-
*/
|
|
2505
|
-
brandColor?: string;
|
|
2506
|
-
/**
|
|
2507
|
-
* @title 辅助色
|
|
2508
|
-
*/
|
|
2509
|
-
subColor?: string;
|
|
2510
|
-
/**
|
|
2511
|
-
* @title 分类色板 1,在数据量小于等于 10 时使用
|
|
2512
|
-
*/
|
|
2513
|
-
paletteQualitative10?: string[];
|
|
2514
|
-
/**
|
|
2515
|
-
* @title 分类色板 2,在数据量大于 10 时使用
|
|
2516
|
-
*/
|
|
2517
|
-
paletteQualitative20?: string[];
|
|
2518
|
-
/**
|
|
2519
|
-
* @title 语义色
|
|
2520
|
-
*/
|
|
2521
|
-
paletteSemanticRed?: string;
|
|
2522
|
-
/**
|
|
2523
|
-
* @title 语义色
|
|
2524
|
-
*/
|
|
2525
|
-
paletteSemanticGreen?: string;
|
|
2526
|
-
/**
|
|
2527
|
-
* @title 语义色
|
|
2528
|
-
*/
|
|
2529
|
-
paletteSemanticYellow?: string;
|
|
2530
|
-
/**
|
|
2531
|
-
* @title (单色)顺序色板
|
|
2532
|
-
*/
|
|
2533
|
-
paletteSequence?: string[];
|
|
2534
|
-
/**
|
|
2535
|
-
* @title 字体
|
|
2536
|
-
*/
|
|
2537
|
-
fontFamily?: string;
|
|
2538
|
-
/**
|
|
2539
|
-
* @title 坐标轴线颜色
|
|
2540
|
-
*/
|
|
2541
|
-
axisLineBorderColor?: string;
|
|
2542
|
-
/**
|
|
2543
|
-
* @title 坐标轴线粗细
|
|
2544
|
-
*/
|
|
2545
|
-
axisLineBorder?: number;
|
|
2546
|
-
/**
|
|
2547
|
-
* @title 坐标轴线 lineDash 设置
|
|
2548
|
-
*/
|
|
2549
|
-
axisLineDash?: number[];
|
|
2550
|
-
/**
|
|
2551
|
-
* @title 坐标轴标题颜色
|
|
2552
|
-
*/
|
|
2553
|
-
axisTitleTextFillColor?: string;
|
|
2554
|
-
/**
|
|
2555
|
-
* @title 坐标轴标题文本字体大小
|
|
2556
|
-
*/
|
|
2557
|
-
axisTitleTextFontSize?: number;
|
|
2558
|
-
/**
|
|
2559
|
-
* @title 坐标轴标题文本行高
|
|
2560
|
-
*/
|
|
2561
|
-
axisTitleTextLineHeight?: number;
|
|
2562
|
-
/**
|
|
2563
|
-
* @title 坐标轴标题文本字体粗细
|
|
2564
|
-
*/
|
|
2565
|
-
axisTitleTextFontWeight?: number | string;
|
|
2566
|
-
/**
|
|
2567
|
-
* @title 坐标轴标题距离坐标轴文本的间距
|
|
2568
|
-
*/
|
|
2569
|
-
axisTitleSpacing?: number;
|
|
2570
|
-
/**
|
|
2571
|
-
* @title 坐标轴详细说明icon颜色
|
|
2572
|
-
*/
|
|
2573
|
-
axisDescriptionIconFillColor?: string;
|
|
2574
|
-
/**
|
|
2575
|
-
* @title 坐标轴刻度线颜色
|
|
2576
|
-
*/
|
|
2577
|
-
axisTickLineBorderColor?: string;
|
|
2578
|
-
/**
|
|
2579
|
-
* @title 坐标轴刻度线长度
|
|
2580
|
-
*/
|
|
2581
|
-
axisTickLineLength?: number;
|
|
2582
|
-
/**
|
|
2583
|
-
* @title 坐标轴刻度线粗细
|
|
2584
|
-
*/
|
|
2585
|
-
axisTickLineBorder?: number;
|
|
2586
|
-
/**
|
|
2587
|
-
* @title 坐标轴次刻度线颜色
|
|
2588
|
-
*/
|
|
2589
|
-
axisSubTickLineBorderColor?: string;
|
|
2590
|
-
/**
|
|
2591
|
-
* @title 坐标轴次刻度线长度
|
|
2592
|
-
*/
|
|
2593
|
-
axisSubTickLineLength?: number;
|
|
2594
|
-
/**
|
|
2595
|
-
* @title 坐标轴次刻度线粗细
|
|
2596
|
-
*/
|
|
2597
|
-
axisSubTickLineBorder?: number;
|
|
2598
|
-
/**
|
|
2599
|
-
* @title 坐标轴刻度文本颜色
|
|
2600
|
-
*/
|
|
2601
|
-
axisLabelFillColor?: string;
|
|
2602
|
-
/**
|
|
2603
|
-
* @title 坐标轴刻度文本字体大小
|
|
2604
|
-
*/
|
|
2605
|
-
axisLabelFontSize?: number;
|
|
2606
|
-
/**
|
|
2607
|
-
* @title 坐标轴刻度文本行高
|
|
2608
|
-
*/
|
|
2609
|
-
axisLabelLineHeight?: number;
|
|
2610
|
-
/**
|
|
2611
|
-
* @title 坐标轴刻度文本字体粗细
|
|
2612
|
-
*/
|
|
2613
|
-
axisLabelFontWeight?: number | string;
|
|
2614
|
-
/**
|
|
2615
|
-
* @title 坐标轴刻度文本距离坐标轴线的间距
|
|
2616
|
-
*/
|
|
2617
|
-
axisLabelOffset: number;
|
|
2618
|
-
/**
|
|
2619
|
-
* @title 坐标轴网格线颜色
|
|
2620
|
-
*/
|
|
2621
|
-
axisGridBorderColor?: string;
|
|
2622
|
-
/**
|
|
2623
|
-
* @title 坐标轴网格线粗细
|
|
2624
|
-
*/
|
|
2625
|
-
axisGridBorder?: number;
|
|
2626
|
-
/**
|
|
2627
|
-
* @title 坐标轴网格线虚线设置
|
|
2628
|
-
*/
|
|
2629
|
-
axisGridLineDash?: number[];
|
|
2630
|
-
/**
|
|
2631
|
-
* @title 图例标题颜色
|
|
2632
|
-
*/
|
|
2633
|
-
legendTitleTextFillColor?: string;
|
|
2634
|
-
/**
|
|
2635
|
-
* @title 图例标题文本字体大小
|
|
2636
|
-
*/
|
|
2637
|
-
legendTitleTextFontSize?: number;
|
|
2638
|
-
/**
|
|
2639
|
-
* @title 图例标题文本行高
|
|
2640
|
-
*/
|
|
2641
|
-
legendTitleTextLineHeight?: number;
|
|
2642
|
-
/**
|
|
2643
|
-
* @title 图例标题文本字体粗细
|
|
2644
|
-
*/
|
|
2645
|
-
legendTitleTextFontWeight?: number | string;
|
|
2646
|
-
/**
|
|
2647
|
-
* @title 图例 marker 颜色
|
|
2648
|
-
*/
|
|
2649
|
-
legendMarkerColor?: string;
|
|
2650
|
-
/**
|
|
2651
|
-
* @title 图例 marker 距离图例文本的间距
|
|
2652
|
-
*/
|
|
2653
|
-
legendMarkerSpacing?: number;
|
|
2654
|
-
/**
|
|
2655
|
-
* @title 图例 marker 默认半径大小
|
|
2656
|
-
*/
|
|
2657
|
-
legendMarkerSize?: number;
|
|
2658
|
-
/**
|
|
2659
|
-
* @title 图例 'circle' marker 半径
|
|
2660
|
-
*/
|
|
2661
|
-
legendCircleMarkerSize?: number;
|
|
2662
|
-
/**
|
|
2663
|
-
* @title 图例 'square' marker 半径
|
|
2664
|
-
*/
|
|
2665
|
-
legendSquareMarkerSize?: number;
|
|
2666
|
-
/**
|
|
2667
|
-
* @title 图例 'line' marker 半径
|
|
2668
|
-
*/
|
|
2669
|
-
legendLineMarkerSize?: number;
|
|
2670
|
-
/**
|
|
2671
|
-
* @title 图例项文本颜色
|
|
2672
|
-
*/
|
|
2673
|
-
legendItemNameFillColor?: string;
|
|
2674
|
-
/**
|
|
2675
|
-
* @title 图例项文本字体大小
|
|
2676
|
-
*/
|
|
2677
|
-
legendItemNameFontSize?: number;
|
|
2678
|
-
/**
|
|
2679
|
-
* @title 图例项文本行高
|
|
2680
|
-
*/
|
|
2681
|
-
legendItemNameLineHeight?: number;
|
|
2682
|
-
/**
|
|
2683
|
-
* @title 图例项粗细
|
|
2684
|
-
*/
|
|
2685
|
-
legendItemNameFontWeight?: number | string;
|
|
2686
|
-
/**
|
|
2687
|
-
* @title 图例项之间的水平间距
|
|
2688
|
-
*/
|
|
2689
|
-
legendItemSpacing?: number;
|
|
2690
|
-
/**
|
|
2691
|
-
* @title 图例项垂直方向的间隔
|
|
2692
|
-
*/
|
|
2693
|
-
legendItemMarginBottom?: number;
|
|
2694
|
-
/**
|
|
2695
|
-
* @title 图例与图表绘图区域的偏移距离
|
|
2696
|
-
*/
|
|
2697
|
-
legendPadding?: number[];
|
|
2698
|
-
/**
|
|
2699
|
-
* @title 水平布局的图例与绘图区域偏移距离
|
|
2700
|
-
*/
|
|
2701
|
-
legendHorizontalPadding?: number[];
|
|
2702
|
-
/**
|
|
2703
|
-
* @title 垂直布局的图例与绘图区域偏移距离
|
|
2704
|
-
*/
|
|
2705
|
-
legendVerticalPadding?: number[];
|
|
2706
|
-
/**
|
|
2707
|
-
* @title 图例分页器 marker 大小
|
|
2708
|
-
*/
|
|
2709
|
-
legendPageNavigatorMarkerSize: number;
|
|
2710
|
-
/**
|
|
2711
|
-
* @title 图例分页器 marker 非激活状态填充色
|
|
2712
|
-
*/
|
|
2713
|
-
legendPageNavigatorMarkerInactiveFillColor: string;
|
|
2714
|
-
/**
|
|
2715
|
-
* @title 图例分页器 marker 非激活状态填充色透明度
|
|
2716
|
-
*/
|
|
2717
|
-
legendPageNavigatorMarkerInactiveFillOpacity: number;
|
|
2718
|
-
/**
|
|
2719
|
-
* @title 图例分页器 marker 填充色
|
|
2720
|
-
*/
|
|
2721
|
-
legendPageNavigatorMarkerFillColor: string;
|
|
2722
|
-
/**
|
|
2723
|
-
* @title 图例分页器 marker 填充色透明度
|
|
2724
|
-
*/
|
|
2725
|
-
legendPageNavigatorMarkerFillOpacity: number;
|
|
2726
|
-
/**
|
|
2727
|
-
* @title 图例分页器文本颜色
|
|
2728
|
-
*/
|
|
2729
|
-
legendPageNavigatorTextFillColor: string;
|
|
2730
|
-
/**
|
|
2731
|
-
* @title 图例分页器文本字体大小
|
|
2732
|
-
*/
|
|
2733
|
-
legendPageNavigatorTextFontSize: number;
|
|
2734
|
-
/**
|
|
2735
|
-
* @title 连续图例滑块填充色
|
|
2736
|
-
*/
|
|
2737
|
-
sliderRailFillColor?: string;
|
|
2738
|
-
/**
|
|
2739
|
-
* @title 连续图例滑块边框粗细
|
|
2740
|
-
*/
|
|
2741
|
-
sliderRailBorder?: number;
|
|
2742
|
-
/**
|
|
2743
|
-
* @title 连续图例滑块边框颜色
|
|
2744
|
-
*/
|
|
2745
|
-
sliderRailBorderColor?: string;
|
|
2746
|
-
/**
|
|
2747
|
-
* @title 连续图例滑块宽度
|
|
2748
|
-
*/
|
|
2749
|
-
sliderRailWidth?: number;
|
|
2750
|
-
/**
|
|
2751
|
-
* @title 连续图例滑块高度
|
|
2752
|
-
*/
|
|
2753
|
-
sliderRailHeight?: number;
|
|
2754
|
-
/**
|
|
2755
|
-
* @title 连续图例文本颜色
|
|
2756
|
-
*/
|
|
2757
|
-
sliderLabelTextFillColor?: string;
|
|
2758
|
-
/**
|
|
2759
|
-
* @title 连续图例文本字体大小
|
|
2760
|
-
*/
|
|
2761
|
-
sliderLabelTextFontSize?: number;
|
|
2762
|
-
/**
|
|
2763
|
-
* @title 连续图例文本行高
|
|
2764
|
-
*/
|
|
2765
|
-
sliderLabelTextLineHeight?: number;
|
|
2766
|
-
/**
|
|
2767
|
-
* @title 连续图例文本字体粗细
|
|
2768
|
-
*/
|
|
2769
|
-
sliderLabelTextFontWeight?: number | string;
|
|
2770
|
-
/**
|
|
2771
|
-
* @title 连续图例滑块颜色
|
|
2772
|
-
*/
|
|
2773
|
-
sliderHandlerFillColor?: string;
|
|
2774
|
-
/**
|
|
2775
|
-
* @title 连续图例滑块宽度
|
|
2776
|
-
*/
|
|
2777
|
-
sliderHandlerWidth?: number;
|
|
2778
|
-
/**
|
|
2779
|
-
* @title 连续图例滑块高度
|
|
2780
|
-
*/
|
|
2781
|
-
sliderHandlerHeight?: number;
|
|
2782
|
-
/**
|
|
2783
|
-
* @title 连续图例滑块边框粗细
|
|
2784
|
-
*/
|
|
2785
|
-
sliderHandlerBorder?: number;
|
|
2786
|
-
/**
|
|
2787
|
-
* @title 连续图例滑块边框颜色
|
|
2788
|
-
*/
|
|
2789
|
-
sliderHandlerBorderColor?: string;
|
|
2790
|
-
/**
|
|
2791
|
-
* @title arc 图形标注描边颜色
|
|
2792
|
-
*/
|
|
2793
|
-
annotationArcBorderColor?: string;
|
|
2794
|
-
/**
|
|
2795
|
-
* @title arc 图形标注粗细
|
|
2796
|
-
*/
|
|
2797
|
-
annotationArcBorder?: number;
|
|
2798
|
-
/**
|
|
2799
|
-
* @title line 图形标注颜色
|
|
2800
|
-
*/
|
|
2801
|
-
annotationLineBorderColor?: string;
|
|
2802
|
-
/**
|
|
2803
|
-
* @title line 图形标注粗细
|
|
2804
|
-
*/
|
|
2805
|
-
annotationLineBorder?: number;
|
|
2806
|
-
/**
|
|
2807
|
-
* @title lube 图形标注的虚线间隔
|
|
2808
|
-
*/
|
|
2809
|
-
annotationLineDash?: number[];
|
|
2810
|
-
/**
|
|
2811
|
-
* @title text 图形标注文本颜色
|
|
2812
|
-
*/
|
|
2813
|
-
annotationTextFillColor?: string;
|
|
2814
|
-
/**
|
|
2815
|
-
* @title text 图形标注文本字体大小
|
|
2816
|
-
*/
|
|
2817
|
-
annotationTextFontSize?: number;
|
|
2818
|
-
/**
|
|
2819
|
-
* @title text 图形标注文本行高
|
|
2820
|
-
*/
|
|
2821
|
-
annotationTextLineHeight?: number;
|
|
2822
|
-
/**
|
|
2823
|
-
* @title text 图形标注文本字体粗细
|
|
2824
|
-
*/
|
|
2825
|
-
annotationTextFontWeight?: number | string;
|
|
2826
|
-
/**
|
|
2827
|
-
* @title text 图形标注文本边框颜色
|
|
2828
|
-
*/
|
|
2829
|
-
annotationTextBorderColor?: string;
|
|
2830
|
-
/**
|
|
2831
|
-
* @title text 图形标注文本边框粗细
|
|
2832
|
-
*/
|
|
2833
|
-
annotationTextBorder?: number;
|
|
2834
|
-
/**
|
|
2835
|
-
* @title region 图形标注填充颜色
|
|
2836
|
-
*/
|
|
2837
|
-
annotationRegionFillColor?: string;
|
|
2838
|
-
/**
|
|
2839
|
-
* @title region 图形标注填充颜色透明色
|
|
2840
|
-
*/
|
|
2841
|
-
annotationRegionFillOpacity?: number;
|
|
2842
|
-
/**
|
|
2843
|
-
* @title region 图形标注描边粗细
|
|
2844
|
-
*/
|
|
2845
|
-
annotationRegionBorder?: number;
|
|
2846
|
-
/**
|
|
2847
|
-
* @title region 图形标注描边颜色
|
|
2848
|
-
*/
|
|
2849
|
-
annotationRegionBorderColor?: string;
|
|
2850
|
-
/**
|
|
2851
|
-
* @title dataMarker 图形标注的连接线长度
|
|
2852
|
-
*/
|
|
2853
|
-
annotationDataMarkerLineLength?: number;
|
|
2854
|
-
/**
|
|
2855
|
-
* @title tooltip crosshairs 辅助线颜色
|
|
2856
|
-
*/
|
|
2857
|
-
tooltipCrosshairsBorderColor?: string;
|
|
2858
|
-
/**
|
|
2859
|
-
* @title tooltip crosshairs 辅助线粗细
|
|
2860
|
-
*/
|
|
2861
|
-
tooltipCrosshairsBorder?: number;
|
|
2862
|
-
/**
|
|
2863
|
-
* @title tooltip crosshairs 辅助线虚线间隔
|
|
2864
|
-
*/
|
|
2865
|
-
tooltipCrosshairsLineDash?: number[];
|
|
2866
|
-
/**
|
|
2867
|
-
* @title tooltip 内容框背景色
|
|
2868
|
-
*/
|
|
2869
|
-
tooltipContainerFillColor?: string;
|
|
2870
|
-
/**
|
|
2871
|
-
* @title tooltip 内容框背景透明度
|
|
2872
|
-
*/
|
|
2873
|
-
tooltipContainerFillOpacity?: number;
|
|
2874
|
-
/**
|
|
2875
|
-
* @title tooltip 内容框阴影
|
|
2876
|
-
*/
|
|
2877
|
-
tooltipContainerShadow?: string;
|
|
2878
|
-
/**
|
|
2879
|
-
* @title tooltip 内容框圆角
|
|
2880
|
-
*/
|
|
2881
|
-
tooltipContainerBorderRadius?: number;
|
|
2882
|
-
/**
|
|
2883
|
-
* @title tooltip 文本颜色
|
|
2884
|
-
*/
|
|
2885
|
-
tooltipTextFillColor?: string;
|
|
2886
|
-
/**
|
|
2887
|
-
* @title tooltip 文本字体大小
|
|
2888
|
-
*/
|
|
2889
|
-
tooltipTextFontSize?: number;
|
|
2890
|
-
/**
|
|
2891
|
-
* @title tooltip 文本行高
|
|
2892
|
-
*/
|
|
2893
|
-
tooltipTextLineHeight?: number;
|
|
2894
|
-
/**
|
|
2895
|
-
* @title tooltip 文本字体粗细
|
|
2896
|
-
*/
|
|
2897
|
-
tooltipTextFontWeight?: number | string;
|
|
2898
|
-
/**
|
|
2899
|
-
* @title Geometry label 文本颜色
|
|
2900
|
-
*/
|
|
2901
|
-
labelFillColor?: string;
|
|
2902
|
-
/**
|
|
2903
|
-
* @title Geometry label 暗色文本颜色
|
|
2904
|
-
*/
|
|
2905
|
-
labelFillColorDark?: string;
|
|
2906
|
-
/**
|
|
2907
|
-
* @title Geometry label 亮色文本颜色
|
|
2908
|
-
*/
|
|
2909
|
-
labelFillColorLight?: string;
|
|
2910
|
-
/**
|
|
2911
|
-
* @title Geometry label 文本字体大小
|
|
2912
|
-
*/
|
|
2913
|
-
labelFontSize?: number;
|
|
2914
|
-
/**
|
|
2915
|
-
* @title Geometry label 文本行高
|
|
2916
|
-
*/
|
|
2917
|
-
labelLineHeight?: number;
|
|
2918
|
-
/**
|
|
2919
|
-
* @title Geometry label 文本字体粗细
|
|
2920
|
-
*/
|
|
2921
|
-
labelFontWeight?: number | string;
|
|
2922
|
-
/**
|
|
2923
|
-
* @title Geometry label 文本描边颜色
|
|
2924
|
-
*/
|
|
2925
|
-
labelBorderColor?: string;
|
|
2926
|
-
/**
|
|
2927
|
-
* @title Geometry label 文本描边粗细
|
|
2928
|
-
*/
|
|
2929
|
-
labelBorder?: number;
|
|
2930
|
-
/**
|
|
2931
|
-
* @title Geometry innerLabel 文本颜色
|
|
2932
|
-
*/
|
|
2933
|
-
innerLabelFillColor?: string;
|
|
2934
|
-
/**
|
|
2935
|
-
* @title Geometry innerLabel 文本字体大小
|
|
2936
|
-
*/
|
|
2937
|
-
innerLabelFontSize?: number;
|
|
2938
|
-
/**
|
|
2939
|
-
* @title Geometry innerLabel 文本行高
|
|
2940
|
-
*/
|
|
2941
|
-
innerLabelLineHeight?: number;
|
|
2942
|
-
/**
|
|
2943
|
-
* @title Geometry innerLabel 文本字体粗细
|
|
2944
|
-
*/
|
|
2945
|
-
innerLabelFontWeight?: number | string;
|
|
2946
|
-
/**
|
|
2947
|
-
* @title Geometry innerLabel 文本描边颜色
|
|
2948
|
-
*/
|
|
2949
|
-
innerLabelBorderColor?: string;
|
|
2950
|
-
/**
|
|
2951
|
-
* @title Geometry innerLabel 文本描边粗细
|
|
2952
|
-
*/
|
|
2953
|
-
innerLabelBorder?: number;
|
|
2954
|
-
/**
|
|
2955
|
-
* @title Geometry overflowLabel 文本颜色
|
|
2956
|
-
*/
|
|
2957
|
-
overflowLabelFillColor?: string;
|
|
2958
|
-
/**
|
|
2959
|
-
* @title Geometry overflowLabel 暗色文本颜色
|
|
2960
|
-
*/
|
|
2961
|
-
overflowLabelFillColorDark?: string;
|
|
2962
|
-
/**
|
|
2963
|
-
* @title Geometry overflowLabel 亮色文本颜色
|
|
2964
|
-
*/
|
|
2965
|
-
overflowLabelFillColorLight?: string;
|
|
2966
|
-
/**
|
|
2967
|
-
* @title Geometry overflowLabel 文本字体大小
|
|
2968
|
-
*/
|
|
2969
|
-
overflowLabelFontSize?: number;
|
|
2970
|
-
/**
|
|
2971
|
-
* @title Geometry overflowLabel 文本行高
|
|
2972
|
-
*/
|
|
2973
|
-
overflowLabelLineHeight?: number;
|
|
2974
|
-
/**
|
|
2975
|
-
* @title Geometry overflowLabel 文本字体粗细
|
|
2976
|
-
*/
|
|
2977
|
-
overflowLabelFontWeight?: number | string;
|
|
2978
|
-
/**
|
|
2979
|
-
* @title Geometry overflowLabel 文本描边颜色
|
|
2980
|
-
*/
|
|
2981
|
-
overflowLabelBorderColor?: string;
|
|
2982
|
-
/**
|
|
2983
|
-
* @title Geometry overflowLabel 文本描边粗细
|
|
2984
|
-
*/
|
|
2985
|
-
overflowLabelBorder?: number;
|
|
2986
|
-
/**
|
|
2987
|
-
* @title Geometry label 文本连接线粗细
|
|
2988
|
-
*/
|
|
2989
|
-
labelLineBorder?: number;
|
|
2990
|
-
/**
|
|
2991
|
-
* @title Geometry label 文本连接线颜色
|
|
2992
|
-
*/
|
|
2993
|
-
labelLineBorderColor?: string;
|
|
2994
|
-
/**
|
|
2995
|
-
* @title slider 滑道高度
|
|
2996
|
-
*/
|
|
2997
|
-
cSliderRailHieght?: number;
|
|
2998
|
-
/**
|
|
2999
|
-
* @title slider 滑道背景色
|
|
3000
|
-
*/
|
|
3001
|
-
cSliderBackgroundFillColor?: string;
|
|
3002
|
-
/**
|
|
3003
|
-
* @title slider 滑道背景色透明度
|
|
3004
|
-
*/
|
|
3005
|
-
cSliderBackgroundFillOpacity?: number;
|
|
3006
|
-
/**
|
|
3007
|
-
* @title slider 滑道前景色
|
|
3008
|
-
*/
|
|
3009
|
-
cSliderForegroundFillColor?: string;
|
|
3010
|
-
/**
|
|
3011
|
-
* @title slider 滑道前景色透明度
|
|
3012
|
-
*/
|
|
3013
|
-
cSliderForegroundFillOpacity?: number;
|
|
3014
|
-
/**
|
|
3015
|
-
* @title slider 手柄高度
|
|
3016
|
-
*/
|
|
3017
|
-
cSliderHandlerHeight?: number;
|
|
3018
|
-
/**
|
|
3019
|
-
* @title Slider 手柄宽度
|
|
3020
|
-
*/
|
|
3021
|
-
cSliderHandlerWidth?: number;
|
|
3022
|
-
/**
|
|
3023
|
-
* @title Slider 手柄背景色
|
|
3024
|
-
*/
|
|
3025
|
-
cSliderHandlerFillColor?: string;
|
|
3026
|
-
/**
|
|
3027
|
-
* @title Slider 手柄背景色透明度
|
|
3028
|
-
*/
|
|
3029
|
-
cSliderHandlerFillOpacity?: number;
|
|
3030
|
-
/**
|
|
3031
|
-
* @title Slider 手柄高亮背景色
|
|
3032
|
-
*/
|
|
3033
|
-
cSliderHandlerHighlightFillColor?: string;
|
|
3034
|
-
/**
|
|
3035
|
-
* @title Slider 手柄边框色
|
|
3036
|
-
*/
|
|
3037
|
-
cSliderHandlerBorderColor?: string;
|
|
3038
|
-
/**
|
|
3039
|
-
* @title Slider 手柄边框粗细
|
|
3040
|
-
*/
|
|
3041
|
-
cSliderHandlerBorder?: number;
|
|
3042
|
-
/**
|
|
3043
|
-
* @title Slider 手柄边框圆角
|
|
3044
|
-
*/
|
|
3045
|
-
cSliderHandlerBorderRadius?: number;
|
|
3046
|
-
/**
|
|
3047
|
-
* @title Slider 字体标签颜色
|
|
3048
|
-
*/
|
|
3049
|
-
cSliderTextFillColor?: string;
|
|
3050
|
-
/**
|
|
3051
|
-
* @title Slider 字体标签透明度
|
|
3052
|
-
*/
|
|
3053
|
-
cSliderTextFillOpacity?: number;
|
|
3054
|
-
/**
|
|
3055
|
-
* @title Slider 字体标签大小
|
|
3056
|
-
*/
|
|
3057
|
-
cSliderTextFontSize?: number;
|
|
3058
|
-
/**
|
|
3059
|
-
* @title Slider 字体标签行高
|
|
3060
|
-
*/
|
|
3061
|
-
cSliderTextLineHeight?: number;
|
|
3062
|
-
/**
|
|
3063
|
-
* @title Slider 字体标签字重
|
|
3064
|
-
*/
|
|
3065
|
-
cSliderTextFontWeight?: number | string;
|
|
3066
|
-
/**
|
|
3067
|
-
* @title Slider 字体标签描边色
|
|
3068
|
-
*/
|
|
3069
|
-
cSliderTextBorderColor?: string;
|
|
3070
|
-
/**
|
|
3071
|
-
* @title Slider 字体标签描边粗细
|
|
3072
|
-
*/
|
|
3073
|
-
cSliderTextBorder?: number;
|
|
3074
|
-
/**
|
|
3075
|
-
* @title 滚动条 滚道填充色
|
|
3076
|
-
*/
|
|
3077
|
-
scrollbarTrackFillColor?: string;
|
|
3078
|
-
/**
|
|
3079
|
-
* @title 滚动条 滑块填充色
|
|
3080
|
-
*/
|
|
3081
|
-
scrollbarThumbFillColor?: string;
|
|
3082
|
-
/**
|
|
3083
|
-
* @title 滚动条 滑块高亮填充色
|
|
3084
|
-
*/
|
|
3085
|
-
scrollbarThumbHighlightFillColor?: string;
|
|
3086
|
-
/**
|
|
3087
|
-
* @title 点图的大小范围
|
|
3088
|
-
*/
|
|
3089
|
-
pointSizeRange?: [number, number];
|
|
3090
|
-
/**
|
|
3091
|
-
* @title 点图填充颜色
|
|
3092
|
-
*/
|
|
3093
|
-
pointFillColor?: string;
|
|
3094
|
-
/**
|
|
3095
|
-
* @title 点图填充颜色透明度
|
|
3096
|
-
*/
|
|
3097
|
-
pointFillOpacity?: number;
|
|
3098
|
-
/**
|
|
3099
|
-
* @title 点图大小
|
|
3100
|
-
*/
|
|
3101
|
-
pointSize?: number;
|
|
3102
|
-
/**
|
|
3103
|
-
* @title 点图描边粗细
|
|
3104
|
-
*/
|
|
3105
|
-
pointBorder?: number;
|
|
3106
|
-
/**
|
|
3107
|
-
* @title 点图描边颜色
|
|
3108
|
-
*/
|
|
3109
|
-
pointBorderColor?: string;
|
|
3110
|
-
/**
|
|
3111
|
-
* @title 点图描边透明度
|
|
3112
|
-
*/
|
|
3113
|
-
pointBorderOpacity?: number;
|
|
3114
|
-
/**
|
|
3115
|
-
* @title 点图 active 状态下填充颜色
|
|
3116
|
-
*/
|
|
3117
|
-
pointActiveFillColor?: string;
|
|
3118
|
-
/**
|
|
3119
|
-
* @title 点图 active 状态下填充颜色透明度
|
|
3120
|
-
*/
|
|
3121
|
-
pointActiveFillOpacity?: number;
|
|
3122
|
-
/**
|
|
3123
|
-
* @title 点图 active 状态下大小
|
|
3124
|
-
*/
|
|
3125
|
-
pointActiveSize?: number;
|
|
3126
|
-
/**
|
|
3127
|
-
* @title 点图 active 状态下描边粗细
|
|
3128
|
-
*/
|
|
3129
|
-
pointActiveBorder?: number;
|
|
3130
|
-
/**
|
|
3131
|
-
* @title 点图 active 状态下描边颜色
|
|
3132
|
-
*/
|
|
3133
|
-
pointActiveBorderColor?: string;
|
|
3134
|
-
/**
|
|
3135
|
-
* @title 点图 active 状态下描边透明度
|
|
3136
|
-
*/
|
|
3137
|
-
pointActiveBorderOpacity?: number;
|
|
3138
|
-
/**
|
|
3139
|
-
* @title 点图 selected 状态下填充颜色
|
|
3140
|
-
*/
|
|
3141
|
-
pointSelectedFillColor?: string;
|
|
3142
|
-
/**
|
|
3143
|
-
* @title 点图 selected 状态下填充颜色透明度
|
|
3144
|
-
*/
|
|
3145
|
-
pointSelectedFillOpacity?: number;
|
|
3146
|
-
/**
|
|
3147
|
-
* @title 点图 selected 状态下大小
|
|
3148
|
-
*/
|
|
3149
|
-
pointSelectedSize?: number;
|
|
3150
|
-
/**
|
|
3151
|
-
* @title 点图 selected 状态下描边粗细
|
|
3152
|
-
*/
|
|
3153
|
-
pointSelectedBorder?: number;
|
|
3154
|
-
/**
|
|
3155
|
-
* @title 点图 selected 状态下描边颜色
|
|
3156
|
-
*/
|
|
3157
|
-
pointSelectedBorderColor?: string;
|
|
3158
|
-
/**
|
|
3159
|
-
* @title 点图 selected 状态下描边透明度
|
|
3160
|
-
*/
|
|
3161
|
-
pointSelectedBorderOpacity?: number;
|
|
3162
|
-
/**
|
|
3163
|
-
* @title 点图 inactive 状态下填充颜色
|
|
3164
|
-
*/
|
|
3165
|
-
pointInactiveFillColor?: string;
|
|
3166
|
-
/**
|
|
3167
|
-
* @title 点图 inactive 状态下填充颜色透明度
|
|
3168
|
-
*/
|
|
3169
|
-
pointInactiveFillOpacity?: number;
|
|
3170
|
-
/**
|
|
3171
|
-
* @title 点图 inactive 状态下大小
|
|
3172
|
-
*/
|
|
3173
|
-
pointInactiveSize?: number;
|
|
3174
|
-
/**
|
|
3175
|
-
* @title 点图 inactive 状态下描边粗细
|
|
3176
|
-
*/
|
|
3177
|
-
pointInactiveBorder?: number;
|
|
3178
|
-
/**
|
|
3179
|
-
* @title 点图 inactive 状态下描边颜色
|
|
3180
|
-
*/
|
|
3181
|
-
pointInactiveBorderColor?: string;
|
|
3182
|
-
/**
|
|
3183
|
-
* @title 点图 inactive 状态下描边透明度
|
|
3184
|
-
*/
|
|
3185
|
-
pointInactiveBorderOpacity?: number;
|
|
3186
|
-
/**
|
|
3187
|
-
* @title 描边点图大小
|
|
3188
|
-
*/
|
|
3189
|
-
hollowPointSize?: number;
|
|
3190
|
-
/**
|
|
3191
|
-
* @title 描边点图描边粗细
|
|
3192
|
-
*/
|
|
3193
|
-
hollowPointBorder?: number;
|
|
3194
|
-
/**
|
|
3195
|
-
* @title 描边点图描边颜色
|
|
3196
|
-
*/
|
|
3197
|
-
hollowPointBorderColor?: string;
|
|
3198
|
-
/**
|
|
3199
|
-
* @title 描边点图描边透明度
|
|
3200
|
-
*/
|
|
3201
|
-
hollowPointBorderOpacity?: number;
|
|
3202
|
-
/**
|
|
3203
|
-
* @title 描边点图填充颜色
|
|
3204
|
-
*/
|
|
3205
|
-
hollowPointFillColor?: string;
|
|
3206
|
-
/**
|
|
3207
|
-
* @title 描边点图填充透明度
|
|
3208
|
-
*/
|
|
3209
|
-
hollowPointFillOpacity?: number;
|
|
3210
|
-
/**
|
|
3211
|
-
* @title 点 描边 active 状态下大小
|
|
3212
|
-
*/
|
|
3213
|
-
hollowPointActiveSize?: number;
|
|
3214
|
-
/**
|
|
3215
|
-
* @title 点 描边 active 状态下描边粗细
|
|
3216
|
-
*/
|
|
3217
|
-
hollowPointActiveBorder?: number;
|
|
3218
|
-
/**
|
|
3219
|
-
* @title 点 描边 active 状态下描边颜色
|
|
3220
|
-
*/
|
|
3221
|
-
hollowPointActiveBorderColor?: string;
|
|
3222
|
-
/**
|
|
3223
|
-
* @title 点 描边 active 状态下描边透明度
|
|
3224
|
-
*/
|
|
3225
|
-
hollowPointActiveBorderOpacity?: number;
|
|
3226
|
-
/**
|
|
3227
|
-
* @title 点 描边 selected 状态下大小
|
|
3228
|
-
*/
|
|
3229
|
-
hollowPointSelectedSize?: number;
|
|
3230
|
-
/**
|
|
3231
|
-
* @title 点 描边 selected 状态下描边粗细
|
|
3232
|
-
*/
|
|
3233
|
-
hollowPointSelectedBorder?: number;
|
|
3234
|
-
/**
|
|
3235
|
-
* @title 点 描边 selected 状态下描边颜色
|
|
3236
|
-
*/
|
|
3237
|
-
hollowPointSelectedBorderColor?: string;
|
|
3238
|
-
/**
|
|
3239
|
-
* @title 点 描边 selected 状态下描边透明度
|
|
3240
|
-
*/
|
|
3241
|
-
hollowPointSelectedBorderOpacity?: number;
|
|
3242
|
-
/**
|
|
3243
|
-
* @title 点 描边 inactive 状态下大小
|
|
3244
|
-
*/
|
|
3245
|
-
hollowPointInactiveSize?: number;
|
|
3246
|
-
/**
|
|
3247
|
-
* @title 点 描边 inactive 状态下描边粗细
|
|
3248
|
-
*/
|
|
3249
|
-
hollowPointInactiveBorder?: number;
|
|
3250
|
-
/**
|
|
3251
|
-
* @title 点 描边 inactive 状态下描边颜色
|
|
3252
|
-
*/
|
|
3253
|
-
hollowPointInactiveBorderColor?: string;
|
|
3254
|
-
/**
|
|
3255
|
-
* @title 点 描边 inactive 状态下描边透明度
|
|
3256
|
-
*/
|
|
3257
|
-
hollowPointInactiveBorderOpacity?: number;
|
|
3258
|
-
/**
|
|
3259
|
-
* @title 线图粗细
|
|
3260
|
-
*/
|
|
3261
|
-
lineBorder?: number;
|
|
3262
|
-
/**
|
|
3263
|
-
* @title 线图颜色
|
|
3264
|
-
*/
|
|
3265
|
-
lineBorderColor?: string;
|
|
3266
|
-
/**
|
|
3267
|
-
* @title 线图透明度
|
|
3268
|
-
*/
|
|
3269
|
-
lineBorderOpacity?: number;
|
|
3270
|
-
/**
|
|
3271
|
-
* @title 线图 active 状态下粗细
|
|
3272
|
-
*/
|
|
3273
|
-
lineActiveBorder?: number;
|
|
3274
|
-
/**
|
|
3275
|
-
* @title 线图 active 状态下颜色
|
|
3276
|
-
*/
|
|
3277
|
-
lineActiveBorderColor?: string;
|
|
3278
|
-
/**
|
|
3279
|
-
* @title 线图 active 状态下透明度
|
|
3280
|
-
*/
|
|
3281
|
-
lineActiveBorderOpacity?: number;
|
|
3282
|
-
/**
|
|
3283
|
-
* @title 线图 selected 状态下粗细
|
|
3284
|
-
*/
|
|
3285
|
-
lineSelectedBorder?: number;
|
|
3286
|
-
/**
|
|
3287
|
-
* @title 线图 selected 状态下颜色
|
|
3288
|
-
*/
|
|
3289
|
-
lineSelectedBorderColor?: string;
|
|
3290
|
-
/**
|
|
3291
|
-
* @title 线图 selected 状态下透明度
|
|
3292
|
-
*/
|
|
3293
|
-
lineSelectedBorderOpacity?: number;
|
|
3294
|
-
/**
|
|
3295
|
-
* @title 线图 inactive 状态下粗细
|
|
3296
|
-
*/
|
|
3297
|
-
lineInactiveBorder?: number;
|
|
3298
|
-
/**
|
|
3299
|
-
* @title 线图 inactive 状态下颜色
|
|
3300
|
-
*/
|
|
3301
|
-
lineInactiveBorderColor?: string;
|
|
3302
|
-
/**
|
|
3303
|
-
* @title 线图 inactive 状态下透明度
|
|
3304
|
-
*/
|
|
3305
|
-
lineInactiveBorderOpacity?: number;
|
|
3306
|
-
areaBorder?: number;
|
|
3307
|
-
/**
|
|
3308
|
-
* @title area 边框颜色
|
|
3309
|
-
*/
|
|
3310
|
-
areaBorderColor?: string;
|
|
3311
|
-
/**
|
|
3312
|
-
* @title area 边框透明度
|
|
3313
|
-
*/
|
|
3314
|
-
areaBorderOpacity?: number;
|
|
3315
|
-
/**
|
|
3316
|
-
* @title area 填充颜色
|
|
3317
|
-
*/
|
|
3318
|
-
areaFillColor?: string;
|
|
3319
|
-
/**
|
|
3320
|
-
* @title area 填充透明度
|
|
3321
|
-
*/
|
|
3322
|
-
areaFillOpacity?: number;
|
|
3323
|
-
/**
|
|
3324
|
-
* @title area Active 状态下边框粗细
|
|
3325
|
-
*/
|
|
3326
|
-
areaActiveBorder?: number;
|
|
3327
|
-
/**
|
|
3328
|
-
* @title area Active 状态下边框颜色
|
|
3329
|
-
*/
|
|
3330
|
-
areaActiveBorderColor?: string;
|
|
3331
|
-
/**
|
|
3332
|
-
* @title area Active 状态下边框透明度
|
|
3333
|
-
*/
|
|
3334
|
-
areaActiveBorderOpacity?: number;
|
|
3335
|
-
/**
|
|
3336
|
-
* @title area Active 状态下填充颜色
|
|
3337
|
-
*/
|
|
3338
|
-
areaActiveFillColor?: string;
|
|
3339
|
-
/**
|
|
3340
|
-
* @title area Active 状态下填充透明度
|
|
3341
|
-
*/
|
|
3342
|
-
areaActiveFillOpacity?: number;
|
|
3343
|
-
/**
|
|
3344
|
-
* @title area selected 状态下边框粗细
|
|
3345
|
-
*/
|
|
3346
|
-
areaSelectedBorder?: number;
|
|
3347
|
-
/**
|
|
3348
|
-
* @title area selected 状态下边框颜色
|
|
3349
|
-
*/
|
|
3350
|
-
areaSelectedBorderColor?: string;
|
|
3351
|
-
/**
|
|
3352
|
-
* @title area selected 状态下边框透明度
|
|
3353
|
-
*/
|
|
3354
|
-
areaSelectedBorderOpacity?: number;
|
|
3355
|
-
/**
|
|
3356
|
-
* @title area selected 状态下填充颜色
|
|
3357
|
-
*/
|
|
3358
|
-
areaSelectedFillColor?: string;
|
|
3359
|
-
/**
|
|
3360
|
-
* @title area selected 状态下填充透明度
|
|
3361
|
-
*/
|
|
3362
|
-
areaSelectedFillOpacity?: number;
|
|
3363
|
-
/**
|
|
3364
|
-
* @title area inactive 状态下边框粗细
|
|
3365
|
-
*/
|
|
3366
|
-
areaInactiveBorder?: number;
|
|
3367
|
-
/**
|
|
3368
|
-
* @title area inactive 状态下边框颜色
|
|
3369
|
-
*/
|
|
3370
|
-
areaInactiveBorderColor?: string;
|
|
3371
|
-
/**
|
|
3372
|
-
* @title area inactive 状态下边框透明度
|
|
3373
|
-
*/
|
|
3374
|
-
areaInactiveBorderOpacity?: number;
|
|
3375
|
-
/**
|
|
3376
|
-
* @title area inactive 状态下填充颜色
|
|
3377
|
-
*/
|
|
3378
|
-
areaInactiveFillColor?: string;
|
|
3379
|
-
/**
|
|
3380
|
-
* @title area inactive 状态下填充透明度
|
|
3381
|
-
*/
|
|
3382
|
-
areaInactiveFillOpacity?: number;
|
|
3383
|
-
/**
|
|
3384
|
-
* @title hollowArea 边框粗细
|
|
3385
|
-
*/
|
|
3386
|
-
hollowAreaBorder?: number;
|
|
3387
|
-
/**
|
|
3388
|
-
* @title hollowArea 边框颜色
|
|
3389
|
-
*/
|
|
3390
|
-
hollowAreaBorderColor?: string;
|
|
3391
|
-
/**
|
|
3392
|
-
* @title hollowArea 边框透明度
|
|
3393
|
-
*/
|
|
3394
|
-
hollowAreaBorderOpacity?: number;
|
|
3395
|
-
/**
|
|
3396
|
-
* @title hollowArea Active 状态下边框粗细
|
|
3397
|
-
*/
|
|
3398
|
-
hollowAreaActiveBorder?: number;
|
|
3399
|
-
/**
|
|
3400
|
-
* @title hollowArea Active 状态下边框颜色
|
|
3401
|
-
*/
|
|
3402
|
-
hollowAreaActiveBorderColor?: string;
|
|
3403
|
-
/**
|
|
3404
|
-
* @title hollowArea Active 状态下边框透明度
|
|
3405
|
-
*/
|
|
3406
|
-
hollowAreaActiveBorderOpacity?: number;
|
|
3407
|
-
/**
|
|
3408
|
-
* @title hollowArea selected 状态下边框粗细
|
|
3409
|
-
*/
|
|
3410
|
-
hollowAreaSelectedBorder?: number;
|
|
3411
|
-
/**
|
|
3412
|
-
* @title hollowArea selected 状态下边框颜色
|
|
3413
|
-
*/
|
|
3414
|
-
hollowAreaSelectedBorderColor?: string;
|
|
3415
|
-
/**
|
|
3416
|
-
* @title hollowArea selected 状态下边框透明度
|
|
3417
|
-
*/
|
|
3418
|
-
hollowAreaSelectedBorderOpacity?: number;
|
|
3419
|
-
/**
|
|
3420
|
-
* @title hollowArea inactive 状态下边框粗细
|
|
3421
|
-
*/
|
|
3422
|
-
hollowAreaInactiveBorder?: number;
|
|
3423
|
-
/**
|
|
3424
|
-
* @title hollowArea inactive 状态下边框颜色
|
|
3425
|
-
*/
|
|
3426
|
-
hollowAreaInactiveBorderColor?: string;
|
|
3427
|
-
/**
|
|
3428
|
-
* @title hollowArea inactive 状态下边框透明度
|
|
3429
|
-
*/
|
|
3430
|
-
hollowAreaInactiveBorderOpacity?: number;
|
|
3431
|
-
/**
|
|
3432
|
-
* @title interval 边框粗细
|
|
3433
|
-
*/
|
|
3434
|
-
intervalBorder?: number;
|
|
3435
|
-
/**
|
|
3436
|
-
* @title interval 边框颜色
|
|
3437
|
-
*/
|
|
3438
|
-
intervalBorderColor?: string;
|
|
3439
|
-
/**
|
|
3440
|
-
* @title interval 边框透明度
|
|
3441
|
-
*/
|
|
3442
|
-
intervalBorderOpacity?: number;
|
|
3443
|
-
/**
|
|
3444
|
-
* @title interval 填充颜色
|
|
3445
|
-
*/
|
|
3446
|
-
intervalFillColor?: string;
|
|
3447
|
-
/**
|
|
3448
|
-
* @title interval 填充透明度
|
|
3449
|
-
*/
|
|
3450
|
-
intervalFillOpacity?: number;
|
|
3451
|
-
/**
|
|
3452
|
-
* @title interval active 状态下边框粗细
|
|
3453
|
-
*/
|
|
3454
|
-
intervalActiveBorder?: number;
|
|
3455
|
-
/**
|
|
3456
|
-
* @title interval active 状态下边框颜色
|
|
3457
|
-
*/
|
|
3458
|
-
intervalActiveBorderColor?: string;
|
|
3459
|
-
/**
|
|
3460
|
-
* @title interval active 状态下边框透明度
|
|
3461
|
-
*/
|
|
3462
|
-
intervalActiveBorderOpacity?: number;
|
|
3463
|
-
/**
|
|
3464
|
-
* @title interval active 状态下填充颜色
|
|
3465
|
-
*/
|
|
3466
|
-
intervalActiveFillColor?: string;
|
|
3467
|
-
/**
|
|
3468
|
-
* @title interval active 状态下填充透明度
|
|
3469
|
-
*/
|
|
3470
|
-
intervalActiveFillOpacity?: number;
|
|
3471
|
-
/**
|
|
3472
|
-
* @title interval selected 状态下边框粗细
|
|
3473
|
-
*/
|
|
3474
|
-
intervalSelectedBorder?: number;
|
|
3475
|
-
/**
|
|
3476
|
-
* @title interval selected 状态下边框颜色
|
|
3477
|
-
*/
|
|
3478
|
-
intervalSelectedBorderColor?: string;
|
|
3479
|
-
/**
|
|
3480
|
-
* @title interval selected 状态下边框透明度
|
|
3481
|
-
*/
|
|
3482
|
-
intervalSelectedBorderOpacity?: number;
|
|
3483
|
-
/**
|
|
3484
|
-
* @title interval selected 状态下填充颜色
|
|
3485
|
-
*/
|
|
3486
|
-
intervalSelectedFillColor?: string;
|
|
3487
|
-
/**
|
|
3488
|
-
* @title interval selected 状态下填充透明度
|
|
3489
|
-
*/
|
|
3490
|
-
intervalSelectedFillOpacity?: number;
|
|
3491
|
-
/**
|
|
3492
|
-
* @title interval inactive 状态下边框粗细
|
|
3493
|
-
*/
|
|
3494
|
-
intervalInactiveBorder?: number;
|
|
3495
|
-
/**
|
|
3496
|
-
* @title interval inactive 状态下边框颜色
|
|
3497
|
-
*/
|
|
3498
|
-
intervalInactiveBorderColor?: string;
|
|
3499
|
-
/**
|
|
3500
|
-
* @title interval inactive 状态下边框透明度
|
|
3501
|
-
*/
|
|
3502
|
-
intervalInactiveBorderOpacity?: number;
|
|
3503
|
-
/**
|
|
3504
|
-
* @title interval inactive 状态下填充颜色
|
|
3505
|
-
*/
|
|
3506
|
-
intervalInactiveFillColor?: string;
|
|
3507
|
-
/**
|
|
3508
|
-
* @title interval inactive 状态下填充透明度
|
|
3509
|
-
*/
|
|
3510
|
-
intervalInactiveFillOpacity?: number;
|
|
3511
|
-
/**
|
|
3512
|
-
* @title hollowInterval 边框粗细
|
|
3513
|
-
*/
|
|
3514
|
-
hollowIntervalBorder?: number;
|
|
3515
|
-
/**
|
|
3516
|
-
* @title hollowInterval 边框颜色
|
|
3517
|
-
*/
|
|
3518
|
-
hollowIntervalBorderColor?: string;
|
|
3519
|
-
/**
|
|
3520
|
-
* @title hollowInterval 边框透明度
|
|
3521
|
-
*/
|
|
3522
|
-
hollowIntervalBorderOpacity?: number;
|
|
3523
|
-
/**
|
|
3524
|
-
* @title hollowInterval 填充颜色
|
|
3525
|
-
*/
|
|
3526
|
-
hollowIntervalFillColor?: string;
|
|
3527
|
-
/**
|
|
3528
|
-
* @title hollowInterval 填充透明度
|
|
3529
|
-
*/
|
|
3530
|
-
hollowIntervalFillOpacity?: number;
|
|
3531
|
-
/**
|
|
3532
|
-
* @title hollowInterval active 状态下边框粗细
|
|
3533
|
-
*/
|
|
3534
|
-
hollowIntervalActiveBorder?: number;
|
|
3535
|
-
/**
|
|
3536
|
-
* @title hollowInterval active 状态下边框颜色
|
|
3537
|
-
*/
|
|
3538
|
-
hollowIntervalActiveBorderColor?: string;
|
|
3539
|
-
/**
|
|
3540
|
-
* @title hollowInterval active 状态下边框透明度
|
|
3541
|
-
*/
|
|
3542
|
-
hollowIntervalActiveBorderOpacity?: number;
|
|
3543
|
-
/**
|
|
3544
|
-
* @title hollowInterval selected 状态下边框粗细
|
|
3545
|
-
*/
|
|
3546
|
-
hollowIntervalSelectedBorder?: number;
|
|
3547
|
-
/**
|
|
3548
|
-
* @title hollowInterval selected 状态下边框颜色
|
|
3549
|
-
*/
|
|
3550
|
-
hollowIntervalSelectedBorderColor?: string;
|
|
3551
|
-
/**
|
|
3552
|
-
* @title hollowInterval selected 状态下边框透明度
|
|
3553
|
-
*/
|
|
3554
|
-
hollowIntervalSelectedBorderOpacity?: number;
|
|
3555
|
-
/**
|
|
3556
|
-
* @title hollowInterval inactive 状态下边框粗细
|
|
3557
|
-
*/
|
|
3558
|
-
hollowIntervalInactiveBorder?: number;
|
|
3559
|
-
/**
|
|
3560
|
-
* @title hollowInterval inactive 状态下边框颜色
|
|
3561
|
-
*/
|
|
3562
|
-
hollowIntervalInactiveBorderColor?: string;
|
|
3563
|
-
/**
|
|
3564
|
-
* @title hollowInterval inactive 状态下边框透明度
|
|
3565
|
-
*/
|
|
3566
|
-
hollowIntervalInactiveBorderOpacity?: number;
|
|
3567
|
-
}
|
|
3568
|
-
/**
|
|
3569
|
-
* @title createTheme 主题样式表配置
|
|
3570
|
-
*/
|
|
3571
|
-
export declare type StyleSheetCfg = Partial<StyleSheet>;
|
|
3572
|
-
/**
|
|
3573
|
-
* @title 交互反馈的定义
|
|
3574
|
-
*/
|
|
3575
|
-
export interface IAction {
|
|
3576
|
-
/**
|
|
3577
|
-
* 初始化
|
|
3578
|
-
*/
|
|
3579
|
-
init(): any;
|
|
3580
|
-
/**
|
|
3581
|
-
* 交互 action (反馈)的名称
|
|
3582
|
-
*/
|
|
3583
|
-
name: string;
|
|
3584
|
-
/**
|
|
3585
|
-
* 上下文
|
|
3586
|
-
*/
|
|
3587
|
-
context: IInteractionContext;
|
|
3588
|
-
/**
|
|
3589
|
-
* 销毁函数
|
|
3590
|
-
*/
|
|
3591
|
-
destroy(): any;
|
|
3592
|
-
}
|
|
3593
|
-
/**
|
|
3594
|
-
* @title 交互上下文的接口定义
|
|
3595
|
-
*/
|
|
3596
|
-
export interface IInteractionContext extends LooseObject {
|
|
3597
|
-
/**
|
|
3598
|
-
* @title 事件对象
|
|
3599
|
-
*/
|
|
3600
|
-
event: LooseObject;
|
|
3601
|
-
/**
|
|
3602
|
-
* 当前的 view
|
|
3603
|
-
*/
|
|
3604
|
-
view: View;
|
|
3605
|
-
/**
|
|
3606
|
-
* @title 交互相关的 Actions
|
|
3607
|
-
*/
|
|
3608
|
-
actions: IAction[];
|
|
3609
|
-
/**
|
|
3610
|
-
* 缓存属性,用于上下文传递信息
|
|
3611
|
-
* @param key 键名
|
|
3612
|
-
* @param value 值
|
|
3613
|
-
*/
|
|
3614
|
-
cache(key: string, value?: any): any;
|
|
3615
|
-
/**
|
|
3616
|
-
* 获取 action
|
|
3617
|
-
* @param name - action 的名称
|
|
3618
|
-
* @returns 指定 name 的 Action
|
|
3619
|
-
*/
|
|
3620
|
-
getAction(name: any): IAction;
|
|
3621
|
-
/**
|
|
3622
|
-
* 获取当前的点
|
|
3623
|
-
* @returns 返回当前的点
|
|
3624
|
-
*/
|
|
3625
|
-
getCurrentPoint(): Point;
|
|
3626
|
-
/**
|
|
3627
|
-
* 获取当前的图形
|
|
3628
|
-
*/
|
|
3629
|
-
getCurrentShape(): IShape;
|
|
3630
|
-
/**
|
|
3631
|
-
* 添加 action
|
|
3632
|
-
* @param action 指定交互 action
|
|
3633
|
-
*/
|
|
3634
|
-
addAction(action: IAction): any;
|
|
3635
|
-
/**
|
|
3636
|
-
* 移除 action
|
|
3637
|
-
* @param action 移除的 action
|
|
3638
|
-
*/
|
|
3639
|
-
removeAction(action: IAction): any;
|
|
3640
|
-
/**
|
|
3641
|
-
* 事件触发时是否在 view 内部
|
|
3642
|
-
*/
|
|
3643
|
-
isInPlot(): any;
|
|
3644
|
-
/**
|
|
3645
|
-
* 是否在组件的包围盒内
|
|
3646
|
-
* @param name 组件名,可省略
|
|
3647
|
-
*/
|
|
3648
|
-
isInComponent(name?: string): any;
|
|
3649
|
-
/**
|
|
3650
|
-
* 是否在指定的图形内
|
|
3651
|
-
* @param name shape 的名称
|
|
3652
|
-
*/
|
|
3653
|
-
isInShape(name: any): any;
|
|
3654
|
-
/**
|
|
3655
|
-
* 销毁
|
|
3656
|
-
*/
|
|
3657
|
-
destroy(): any;
|
|
3658
|
-
}
|
|
3659
|
-
/**
|
|
3660
|
-
* @title G 的渲染类型
|
|
3661
|
-
*/
|
|
3662
|
-
export declare type Renderer = 'svg' | 'canvas';
|
|
3663
|
-
/**
|
|
3664
|
-
* @title 数据的定义
|
|
3665
|
-
*/
|
|
3666
|
-
export declare type Datum = Record<string, any>;
|
|
3667
|
-
export declare type Data = Datum[];
|
|
3668
|
-
export declare type ActionCallback = (context: IInteractionContext) => void;
|
|
3669
|
-
export declare type Padding = [number, number, number, number];
|
|
3670
|
-
export declare type ViewPadding = number | number[] | 'auto';
|
|
3671
|
-
export declare type ViewAppendPadding = number | number[];
|
|
3672
|
-
export declare type Position = [number, number];
|
|
3673
|
-
export declare type AttributeType = 'position' | 'size' | 'color' | 'shape';
|
|
3674
|
-
export declare type ShapeVertices = RangePoint[] | Point[] | Point[][];
|
|
3675
|
-
/**
|
|
3676
|
-
* @title easing 的回调函数, 入参 data 为对应的原始数据记录
|
|
3677
|
-
*/
|
|
3678
|
-
export declare type AnimateEasingCallback = (data: Datum) => string;
|
|
3679
|
-
/**
|
|
3680
|
-
* @title delay 的回调函数, 入参 data 为对应的原始数据记录
|
|
3681
|
-
*/
|
|
3682
|
-
export declare type AnimateDelayCallback = (data: Datum) => number;
|
|
3683
|
-
/**
|
|
3684
|
-
* @title duration 的回调函数, 入参 data 为对应的原始数据记录
|
|
3685
|
-
*/
|
|
3686
|
-
export declare type AnimateDurationCallback = (data: Datum) => number;
|