@antv/g2 5.0.0-beta.9 → 5.0.0-rc.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/dist/g2-lite.min.js +3 -3
- package/dist/g2.min.js +4 -4
- package/esm/animation/waveIn.js +1 -12
- package/esm/animation/waveIn.js.map +1 -1
- package/esm/api/chart.d.ts +19 -5
- package/esm/api/chart.js +17 -7
- package/esm/api/chart.js.map +1 -1
- package/esm/api/composition/base.d.ts +1 -1
- package/esm/api/composition/base.js +6 -17
- package/esm/api/composition/base.js.map +1 -1
- package/esm/api/composition/facetCircle.d.ts +2 -2
- package/esm/api/composition/facetCircle.js +2 -2
- package/esm/api/composition/facetCircle.js.map +1 -1
- package/esm/api/composition/facetRect.d.ts +2 -2
- package/esm/api/composition/facetRect.js +2 -2
- package/esm/api/composition/facetRect.js.map +1 -1
- package/esm/api/composition/geoPath.d.ts +5 -6
- package/esm/api/composition/geoPath.js +4 -5
- package/esm/api/composition/geoPath.js.map +1 -1
- package/esm/api/composition/geoView.d.ts +4 -5
- package/esm/api/composition/geoView.js +4 -5
- package/esm/api/composition/geoView.js.map +1 -1
- package/esm/api/composition/index.d.ts +2 -2
- package/esm/api/composition/index.js +2 -2
- package/esm/api/composition/index.js.map +1 -1
- package/esm/api/composition/repeatMatrix.d.ts +2 -2
- package/esm/api/composition/repeatMatrix.js +2 -2
- package/esm/api/composition/repeatMatrix.js.map +1 -1
- package/esm/api/composition/spaceFlex.d.ts +2 -2
- package/esm/api/composition/spaceFlex.js +2 -2
- package/esm/api/composition/spaceFlex.js.map +1 -1
- package/esm/api/composition/spaceLayer.d.ts +2 -2
- package/esm/api/composition/spaceLayer.js +2 -2
- package/esm/api/composition/spaceLayer.js.map +1 -1
- package/esm/api/composition/timingKeyframe.d.ts +2 -2
- package/esm/api/composition/timingKeyframe.js +2 -2
- package/esm/api/composition/timingKeyframe.js.map +1 -1
- package/esm/api/composition/view.d.ts +4 -4
- package/esm/api/composition/view.js +4 -4
- package/esm/api/composition/view.js.map +1 -1
- package/esm/api/index.d.ts +2 -0
- package/esm/api/index.js +2 -0
- package/esm/api/index.js.map +1 -1
- package/esm/api/mark/base.d.ts +1 -1
- package/esm/api/mark/base.js +7 -7
- package/esm/api/mark/base.js.map +1 -1
- package/esm/api/mark/index.d.ts +7 -1
- package/esm/api/mark/index.js +4 -1
- package/esm/api/mark/index.js.map +1 -1
- package/esm/api/mark/mark.d.ts +52 -40
- package/esm/api/mark/mark.js +49 -27
- package/esm/api/mark/mark.js.map +1 -1
- package/esm/api/mark/types.d.ts +6 -2
- package/esm/api/node.d.ts +1 -1
- package/esm/api/node.js +1 -1
- package/esm/api/node.js.map +1 -1
- package/esm/api/props.d.ts +1 -1
- package/esm/api/props.js +31 -4
- package/esm/api/props.js.map +1 -1
- package/esm/api/types.d.ts +2 -2
- package/esm/component/axis.js +5 -16
- package/esm/component/axis.js.map +1 -1
- package/esm/component/axisRadar.js +1 -2
- package/esm/component/axisRadar.js.map +1 -1
- package/esm/component/legendCategory.js +30 -9
- package/esm/component/legendCategory.js.map +1 -1
- package/esm/component/legendContinuous.js +14 -35
- package/esm/component/legendContinuous.js.map +1 -1
- package/esm/component/scrollbar.js +3 -3
- package/esm/component/scrollbar.js.map +1 -1
- package/esm/component/slider.js +3 -3
- package/esm/component/slider.js.map +1 -1
- package/esm/component/title.js +3 -14
- package/esm/component/title.js.map +1 -1
- package/esm/component/utils.d.ts +12 -2
- package/esm/component/utils.js +42 -4
- package/esm/component/utils.js.map +1 -1
- package/esm/composition/facetCircle.js +1 -1
- package/esm/composition/facetCircle.js.map +1 -1
- package/esm/composition/mark.d.ts +1 -1
- package/esm/composition/mark.js +3 -3
- package/esm/composition/mark.js.map +1 -1
- package/esm/composition/spaceLayer.js +3 -6
- package/esm/composition/spaceLayer.js.map +1 -1
- package/esm/composition/timingKeyframe.js +13 -7
- package/esm/composition/timingKeyframe.js.map +1 -1
- package/esm/composition/view.js +3 -3
- package/esm/composition/view.js.map +1 -1
- package/esm/coordinate/fisheye.js +1 -1
- package/esm/coordinate/fisheye.js.map +1 -1
- package/esm/coordinate/index.d.ts +2 -10
- package/esm/coordinate/index.js +1 -5
- package/esm/coordinate/index.js.map +1 -1
- package/esm/coordinate/polar.d.ts +3 -2
- package/esm/coordinate/radar.d.ts +7 -0
- package/esm/coordinate/radar.js +14 -0
- package/esm/coordinate/radar.js.map +1 -0
- package/esm/coordinate/radial.d.ts +3 -2
- package/esm/coordinate/radial.js +3 -2
- package/esm/coordinate/radial.js.map +1 -1
- package/esm/coordinate/theta.d.ts +1 -0
- package/esm/coordinate/transpose.js +1 -1
- package/esm/coordinate/transpose.js.map +1 -1
- package/esm/data/arc.d.ts +1 -2
- package/esm/data/arc.js.map +1 -1
- package/esm/data/cluster.d.ts +1 -2
- package/esm/data/cluster.js.map +1 -1
- package/esm/data/sankey.d.ts +1 -2
- package/esm/data/sankey.js.map +1 -1
- package/esm/data/tree.d.ts +1 -2
- package/esm/data/tree.js.map +1 -1
- package/esm/data/wordCloud.d.ts +1 -2
- package/esm/data/wordCloud.js.map +1 -1
- package/esm/geo/geoView.js +9 -5
- package/esm/geo/geoView.js.map +1 -1
- package/esm/geo/index.d.ts +2 -2
- package/esm/index.d.ts +4 -3
- package/esm/index.js +3 -2
- package/esm/index.js.map +1 -1
- package/{lib/interaction/native → esm/interaction}/brushAxisHighlight.d.ts +2 -1
- package/esm/interaction/{native/brushAxisHighlight.js → brushAxisHighlight.js} +11 -8
- package/esm/interaction/brushAxisHighlight.js.map +1 -0
- package/esm/interaction/{native/brushFilter.js → brushFilter.js} +3 -3
- package/esm/interaction/brushFilter.js.map +1 -0
- package/{lib/interaction/native → esm/interaction}/brushHighlight.d.ts +2 -1
- package/esm/interaction/{native/brushHighlight.js → brushHighlight.js} +32 -24
- package/esm/interaction/brushHighlight.js.map +1 -0
- package/esm/interaction/brushXFilter.js.map +1 -0
- package/esm/interaction/brushXHighlight.js.map +1 -0
- package/esm/interaction/brushYFilter.js.map +1 -0
- package/esm/interaction/brushYHighlight.js.map +1 -0
- package/esm/interaction/{native/chartIndex.js → chartIndex.js} +2 -2
- package/esm/interaction/chartIndex.js.map +1 -0
- package/esm/interaction/{native/elementHighlight.d.ts → elementHighlight.d.ts} +5 -2
- package/esm/interaction/{native/elementHighlight.js → elementHighlight.js} +36 -27
- package/esm/interaction/elementHighlight.js.map +1 -0
- package/esm/interaction/elementHighlightByColor.d.ts +1 -0
- package/esm/interaction/elementHighlightByColor.js +6 -0
- package/esm/interaction/elementHighlightByColor.js.map +1 -0
- package/esm/interaction/elementHighlightByX.d.ts +1 -0
- package/esm/interaction/elementHighlightByX.js +6 -0
- package/esm/interaction/elementHighlightByX.js.map +1 -0
- package/{lib/interaction/native → esm/interaction}/elementSelect.d.ts +7 -2
- package/esm/interaction/{native/elementSelect.js → elementSelect.js} +31 -21
- package/esm/interaction/elementSelect.js.map +1 -0
- package/esm/interaction/elementSelectByColor.js +6 -0
- package/esm/interaction/elementSelectByColor.js.map +1 -0
- package/esm/interaction/elementSelectByX.js +6 -0
- package/esm/interaction/elementSelectByX.js.map +1 -0
- package/esm/interaction/event.d.ts +1 -0
- package/esm/interaction/event.js +103 -0
- package/esm/interaction/event.js.map +1 -0
- package/esm/interaction/{native/fisheye.js → fisheye.js} +6 -4
- package/esm/interaction/fisheye.js.map +1 -0
- package/esm/interaction/index.d.ts +21 -22
- package/esm/interaction/index.js +21 -23
- package/esm/interaction/index.js.map +1 -1
- package/esm/interaction/{native/legendFilter.js → legendFilter.js} +18 -22
- package/esm/interaction/legendFilter.js.map +1 -0
- package/esm/interaction/legendHighlight.d.ts +1 -0
- package/esm/interaction/{native/legendHighlight.js → legendHighlight.js} +20 -26
- package/esm/interaction/legendHighlight.js.map +1 -0
- package/esm/interaction/{native/poptip.js → poptip.js} +2 -2
- package/esm/interaction/poptip.js.map +1 -0
- package/esm/interaction/{native/sliderFilter.js → sliderFilter.js} +3 -3
- package/esm/interaction/sliderFilter.js.map +1 -0
- package/esm/interaction/tooltip.d.ts +11 -0
- package/esm/interaction/{native/tooltip.js → tooltip.js} +168 -113
- package/esm/interaction/tooltip.js.map +1 -0
- package/esm/interaction/utils.d.ts +47 -3
- package/esm/interaction/utils.js +371 -32
- package/esm/interaction/utils.js.map +1 -1
- package/esm/label-transform/contrastReverse.d.ts +2 -2
- package/esm/label-transform/contrastReverse.js.map +1 -1
- package/esm/label-transform/overflowHide.d.ts +2 -2
- package/esm/label-transform/overlapDodgeY.d.ts +2 -2
- package/esm/label-transform/overlapHide.d.ts +2 -2
- package/esm/mark/area.d.ts +2 -2
- package/esm/mark/area.js +1 -0
- package/esm/mark/area.js.map +1 -1
- package/esm/mark/box.d.ts +2 -2
- package/esm/mark/box.js +1 -0
- package/esm/mark/box.js.map +1 -1
- package/esm/mark/boxplot.js +21 -6
- package/esm/mark/boxplot.js.map +1 -1
- package/esm/mark/cell.d.ts +2 -2
- package/esm/mark/cell.js +1 -0
- package/esm/mark/cell.js.map +1 -1
- package/esm/mark/connector.js +1 -0
- package/esm/mark/connector.js.map +1 -1
- package/esm/mark/forceGraph.js +29 -4
- package/esm/mark/forceGraph.js.map +1 -1
- package/esm/mark/gauge.d.ts +4 -0
- package/esm/mark/gauge.js +166 -0
- package/esm/mark/gauge.js.map +1 -0
- package/esm/mark/image.d.ts +2 -2
- package/esm/mark/image.js +1 -0
- package/esm/mark/image.js.map +1 -1
- package/esm/mark/index.d.ts +2 -0
- package/esm/mark/index.js +1 -0
- package/esm/mark/index.js.map +1 -1
- package/esm/mark/interval.d.ts +2 -2
- package/esm/mark/interval.js +1 -0
- package/esm/mark/interval.js.map +1 -1
- package/esm/mark/line.d.ts +2 -2
- package/esm/mark/line.js +1 -0
- package/esm/mark/line.js.map +1 -1
- package/esm/mark/lineX.js +1 -0
- package/esm/mark/lineX.js.map +1 -1
- package/esm/mark/lineY.js +1 -0
- package/esm/mark/lineY.js.map +1 -1
- package/esm/mark/link.d.ts +2 -2
- package/esm/mark/link.js +1 -0
- package/esm/mark/link.js.map +1 -1
- package/esm/mark/pack.js +10 -4
- package/esm/mark/pack.js.map +1 -1
- package/esm/mark/path.js +1 -0
- package/esm/mark/path.js.map +1 -1
- package/esm/mark/point.d.ts +2 -2
- package/esm/mark/point.js +1 -0
- package/esm/mark/point.js.map +1 -1
- package/esm/mark/polygon.d.ts +2 -2
- package/esm/mark/polygon.js +1 -0
- package/esm/mark/polygon.js.map +1 -1
- package/esm/mark/range.js +1 -0
- package/esm/mark/range.js.map +1 -1
- package/esm/mark/rangeX.js +1 -0
- package/esm/mark/rangeX.js.map +1 -1
- package/esm/mark/rangeY.js +1 -0
- package/esm/mark/rangeY.js.map +1 -1
- package/esm/mark/rect.d.ts +2 -2
- package/esm/mark/rect.js +1 -0
- package/esm/mark/rect.js.map +1 -1
- package/esm/mark/sankey.js +19 -4
- package/esm/mark/sankey.js.map +1 -1
- package/esm/mark/shape.js +1 -0
- package/esm/mark/shape.js.map +1 -1
- package/esm/mark/text.d.ts +2 -2
- package/esm/mark/text.js +1 -0
- package/esm/mark/text.js.map +1 -1
- package/esm/mark/tree.js +18 -4
- package/esm/mark/tree.js.map +1 -1
- package/esm/mark/treemap.js +13 -5
- package/esm/mark/treemap.js.map +1 -1
- package/esm/mark/utils.js +1 -5
- package/esm/mark/utils.js.map +1 -1
- package/esm/mark/vector.d.ts +2 -2
- package/esm/mark/vector.js +1 -0
- package/esm/mark/vector.js.map +1 -1
- package/esm/mark/wordCloud.js +1 -1
- package/esm/mark/wordCloud.js.map +1 -1
- package/esm/palette/index.d.ts +0 -36
- package/esm/palette/index.js +0 -18
- package/esm/palette/index.js.map +1 -1
- package/esm/runtime/component.js +57 -13
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/coordinate.d.ts +1 -0
- package/esm/runtime/coordinate.js +25 -1
- package/esm/runtime/coordinate.js.map +1 -1
- package/esm/runtime/mark.js +12 -7
- package/esm/runtime/mark.js.map +1 -1
- package/esm/runtime/plot.js +155 -58
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/scale.js +2 -0
- package/esm/runtime/scale.js.map +1 -1
- package/esm/runtime/transform.d.ts +5 -0
- package/esm/runtime/transform.js +76 -6
- package/esm/runtime/transform.js.map +1 -1
- package/esm/runtime/types/common.d.ts +8 -3
- package/esm/runtime/types/component.d.ts +8 -4
- package/esm/runtime/types/mark.d.ts +3 -3
- package/esm/runtime/types/options.d.ts +10 -2
- package/esm/runtime/types/scale.d.ts +3 -0
- package/esm/runtime/types/scale.js +3 -0
- package/esm/runtime/types/scale.js.map +1 -1
- package/esm/runtime/types/theme.d.ts +2 -2
- package/esm/scale/constant.d.ts +4 -0
- package/esm/scale/constant.js +6 -0
- package/esm/scale/constant.js.map +1 -0
- package/esm/scale/index.d.ts +2 -0
- package/esm/scale/index.js +1 -0
- package/esm/scale/index.js.map +1 -1
- package/esm/shape/interval/color.js +9 -4
- package/esm/shape/interval/color.js.map +1 -1
- package/esm/shape/point/color.js +2 -7
- package/esm/shape/point/color.js.map +1 -1
- package/esm/shape/utils.d.ts +1 -0
- package/esm/shape/utils.js +6 -0
- package/esm/shape/utils.js.map +1 -1
- package/esm/shape/vector/vector.js +0 -1
- package/esm/shape/vector/vector.js.map +1 -1
- package/esm/spec/animate.d.ts +23 -1
- package/esm/spec/component.d.ts +72 -0
- package/esm/spec/component.js +2 -0
- package/esm/spec/component.js.map +1 -0
- package/esm/spec/composition.d.ts +29 -24
- package/esm/spec/coordinate.d.ts +31 -56
- package/esm/spec/coordinateTransform.d.ts +13 -0
- package/esm/spec/coordinateTransform.js +2 -0
- package/esm/spec/coordinateTransform.js.map +1 -0
- package/esm/spec/data.d.ts +4 -222
- package/esm/spec/dataTransform.d.ts +91 -0
- package/esm/spec/dataTransform.js +2 -0
- package/esm/spec/dataTransform.js.map +1 -0
- package/esm/spec/index.d.ts +15 -11
- package/esm/spec/index.js +12 -9
- package/esm/spec/index.js.map +1 -1
- package/esm/spec/interaction.d.ts +16 -18
- package/esm/spec/labelTransform.d.ts +5 -5
- package/esm/spec/mark.d.ts +190 -0
- package/esm/spec/mark.js +2 -0
- package/esm/spec/mark.js.map +1 -0
- package/esm/spec/palette.d.ts +0 -54
- package/esm/spec/scale.d.ts +4 -3
- package/esm/spec/transform.d.ts +1 -1
- package/esm/spec/utils.d.ts +11 -0
- package/esm/spec/utils.js +2 -0
- package/esm/spec/utils.js.map +1 -0
- package/esm/stdlib/index.js +6 -31
- package/esm/stdlib/index.js.map +1 -1
- package/esm/theme/academy.js +1 -0
- package/esm/theme/academy.js.map +1 -1
- package/esm/theme/dark.js +1 -0
- package/esm/theme/dark.js.map +1 -1
- package/esm/theme/light.js +1 -0
- package/esm/theme/light.js.map +1 -1
- package/esm/transform/bin.js +5 -5
- package/esm/transform/bin.js.map +1 -1
- package/esm/transform/groupN.js +17 -2
- package/esm/transform/groupN.js.map +1 -1
- package/esm/transform/maybeTitle.js +22 -4
- package/esm/transform/maybeTitle.js.map +1 -1
- package/esm/transform/maybeTooltip.js +23 -20
- package/esm/transform/maybeTooltip.js.map +1 -1
- package/esm/transform/maybeZeroPadding.js.map +1 -1
- package/esm/transform/maybeZeroX.js +2 -2
- package/esm/transform/maybeZeroX.js.map +1 -1
- package/esm/transform/maybeZeroY.js +2 -2
- package/esm/transform/maybeZeroY.js.map +1 -1
- package/esm/transform/maybeZeroY1.js +2 -2
- package/esm/transform/maybeZeroY1.js.map +1 -1
- package/esm/transform/normalizeY.js +7 -4
- package/esm/transform/normalizeY.js.map +1 -1
- package/esm/transform/sample.js +1 -1
- package/esm/transform/sample.js.map +1 -1
- package/esm/transform/stackY.js +2 -1
- package/esm/transform/stackY.js.map +1 -1
- package/esm/transform/utils/helper.d.ts +12 -0
- package/esm/transform/utils/helper.js +8 -0
- package/esm/transform/utils/helper.js.map +1 -1
- package/esm/utils/coordinate.d.ts +3 -1
- package/esm/utils/coordinate.js +9 -2
- package/esm/utils/coordinate.js.map +1 -1
- package/esm/utils/helper.d.ts +3 -0
- package/esm/utils/helper.js +17 -3
- package/esm/utils/helper.js.map +1 -1
- package/esm/utils/mark.d.ts +4 -0
- package/esm/utils/mark.js +29 -0
- package/esm/utils/mark.js.map +1 -0
- package/esm/utils/selection.js +5 -2
- package/esm/utils/selection.js.map +1 -1
- package/lib/animation/waveIn.js +1 -12
- package/lib/animation/waveIn.js.map +1 -1
- package/lib/api/chart.d.ts +19 -5
- package/lib/api/chart.js +17 -7
- package/lib/api/chart.js.map +1 -1
- package/lib/api/composition/base.d.ts +1 -1
- package/lib/api/composition/base.js +8 -18
- package/lib/api/composition/base.js.map +1 -1
- package/lib/api/composition/facetCircle.d.ts +2 -2
- package/lib/api/composition/facetCircle.js +1 -1
- package/lib/api/composition/facetCircle.js.map +1 -1
- package/lib/api/composition/facetRect.d.ts +2 -2
- package/lib/api/composition/facetRect.js +1 -1
- package/lib/api/composition/facetRect.js.map +1 -1
- package/lib/api/composition/geoPath.d.ts +5 -6
- package/lib/api/composition/geoPath.js +3 -4
- package/lib/api/composition/geoPath.js.map +1 -1
- package/lib/api/composition/geoView.d.ts +4 -5
- package/lib/api/composition/geoView.js +3 -4
- package/lib/api/composition/geoView.js.map +1 -1
- package/lib/api/composition/index.d.ts +2 -2
- package/lib/api/composition/index.js +2 -2
- package/lib/api/composition/index.js.map +1 -1
- package/lib/api/composition/repeatMatrix.d.ts +2 -2
- package/lib/api/composition/repeatMatrix.js +1 -1
- package/lib/api/composition/repeatMatrix.js.map +1 -1
- package/lib/api/composition/spaceFlex.d.ts +2 -2
- package/lib/api/composition/spaceFlex.js +1 -1
- package/lib/api/composition/spaceFlex.js.map +1 -1
- package/lib/api/composition/spaceLayer.d.ts +2 -2
- package/lib/api/composition/spaceLayer.js +1 -1
- package/lib/api/composition/spaceLayer.js.map +1 -1
- package/lib/api/composition/timingKeyframe.d.ts +2 -2
- package/lib/api/composition/timingKeyframe.js +1 -1
- package/lib/api/composition/timingKeyframe.js.map +1 -1
- package/lib/api/composition/view.d.ts +4 -4
- package/lib/api/composition/view.js +3 -3
- package/lib/api/composition/view.js.map +1 -1
- package/lib/api/index.d.ts +2 -0
- package/lib/api/index.js +5 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/mark/base.d.ts +1 -1
- package/lib/api/mark/base.js +9 -9
- package/lib/api/mark/base.js.map +1 -1
- package/lib/api/mark/index.d.ts +7 -1
- package/lib/api/mark/index.js +5 -1
- package/lib/api/mark/index.js.map +1 -1
- package/lib/api/mark/mark.d.ts +52 -40
- package/lib/api/mark/mark.js +49 -27
- package/lib/api/mark/mark.js.map +1 -1
- package/lib/api/mark/types.d.ts +6 -2
- package/lib/api/node.d.ts +1 -1
- package/lib/api/node.js +1 -1
- package/lib/api/node.js.map +1 -1
- package/lib/api/props.d.ts +1 -1
- package/lib/api/props.js +31 -4
- package/lib/api/props.js.map +1 -1
- package/lib/api/types.d.ts +2 -2
- package/lib/component/axis.js +5 -16
- package/lib/component/axis.js.map +1 -1
- package/lib/component/axisRadar.js +1 -2
- package/lib/component/axisRadar.js.map +1 -1
- package/lib/component/legendCategory.js +29 -8
- package/lib/component/legendCategory.js.map +1 -1
- package/lib/component/legendContinuous.js +13 -34
- package/lib/component/legendContinuous.js.map +1 -1
- package/lib/component/scrollbar.js +3 -3
- package/lib/component/scrollbar.js.map +1 -1
- package/lib/component/slider.js +3 -3
- package/lib/component/slider.js.map +1 -1
- package/lib/component/title.js +3 -14
- package/lib/component/title.js.map +1 -1
- package/lib/component/utils.d.ts +12 -2
- package/lib/component/utils.js +47 -5
- package/lib/component/utils.js.map +1 -1
- package/lib/composition/facetCircle.js +1 -1
- package/lib/composition/facetCircle.js.map +1 -1
- package/lib/composition/mark.d.ts +1 -1
- package/lib/composition/mark.js +3 -3
- package/lib/composition/mark.js.map +1 -1
- package/lib/composition/spaceLayer.js +3 -6
- package/lib/composition/spaceLayer.js.map +1 -1
- package/lib/composition/timingKeyframe.js +13 -7
- package/lib/composition/timingKeyframe.js.map +1 -1
- package/lib/composition/view.js +3 -3
- package/lib/composition/view.js.map +1 -1
- package/lib/coordinate/fisheye.js +1 -1
- package/lib/coordinate/fisheye.js.map +1 -1
- package/lib/coordinate/index.d.ts +2 -10
- package/lib/coordinate/index.js +3 -11
- package/lib/coordinate/index.js.map +1 -1
- package/lib/coordinate/polar.d.ts +3 -2
- package/lib/coordinate/radar.d.ts +7 -0
- package/lib/coordinate/radar.js +18 -0
- package/lib/coordinate/radar.js.map +1 -0
- package/lib/coordinate/radial.d.ts +3 -2
- package/lib/coordinate/radial.js +3 -2
- package/lib/coordinate/radial.js.map +1 -1
- package/lib/coordinate/theta.d.ts +1 -0
- package/lib/coordinate/transpose.js +1 -1
- package/lib/coordinate/transpose.js.map +1 -1
- package/lib/data/arc.d.ts +1 -2
- package/lib/data/arc.js.map +1 -1
- package/lib/data/cluster.d.ts +1 -2
- package/lib/data/cluster.js.map +1 -1
- package/lib/data/sankey.d.ts +1 -2
- package/lib/data/sankey.js.map +1 -1
- package/lib/data/tree.d.ts +1 -2
- package/lib/data/tree.js.map +1 -1
- package/lib/data/wordCloud.d.ts +1 -2
- package/lib/data/wordCloud.js.map +1 -1
- package/lib/geo/geoView.js +9 -5
- package/lib/geo/geoView.js.map +1 -1
- package/lib/geo/index.d.ts +2 -2
- package/lib/index.d.ts +4 -3
- package/lib/index.js +15 -2
- package/lib/index.js.map +1 -1
- package/{esm/interaction/native → lib/interaction}/brushAxisHighlight.d.ts +2 -1
- package/lib/interaction/{native/brushAxisHighlight.js → brushAxisHighlight.js} +10 -7
- package/lib/interaction/brushAxisHighlight.js.map +1 -0
- package/lib/interaction/{native/brushFilter.js → brushFilter.js} +3 -3
- package/lib/interaction/brushFilter.js.map +1 -0
- package/{esm/interaction/native → lib/interaction}/brushHighlight.d.ts +2 -1
- package/lib/interaction/{native/brushHighlight.js → brushHighlight.js} +31 -23
- package/lib/interaction/brushHighlight.js.map +1 -0
- package/lib/interaction/brushXFilter.js.map +1 -0
- package/lib/interaction/brushXHighlight.js.map +1 -0
- package/lib/interaction/brushYFilter.js.map +1 -0
- package/lib/interaction/brushYHighlight.js.map +1 -0
- package/lib/interaction/{native/chartIndex.js → chartIndex.js} +2 -2
- package/lib/interaction/chartIndex.js.map +1 -0
- package/lib/interaction/{native/elementHighlight.d.ts → elementHighlight.d.ts} +5 -2
- package/lib/interaction/{native/elementHighlight.js → elementHighlight.js} +35 -26
- package/lib/interaction/elementHighlight.js.map +1 -0
- package/lib/interaction/elementHighlightByColor.d.ts +1 -0
- package/lib/interaction/elementHighlightByColor.js +10 -0
- package/lib/interaction/elementHighlightByColor.js.map +1 -0
- package/lib/interaction/elementHighlightByX.d.ts +1 -0
- package/lib/interaction/elementHighlightByX.js +10 -0
- package/lib/interaction/elementHighlightByX.js.map +1 -0
- package/{esm/interaction/native → lib/interaction}/elementSelect.d.ts +7 -2
- package/lib/interaction/{native/elementSelect.js → elementSelect.js} +30 -20
- package/lib/interaction/elementSelect.js.map +1 -0
- package/lib/interaction/elementSelectByColor.js +10 -0
- package/lib/interaction/elementSelectByColor.js.map +1 -0
- package/lib/interaction/elementSelectByX.js +10 -0
- package/lib/interaction/elementSelectByX.js.map +1 -0
- package/lib/interaction/event.d.ts +1 -0
- package/lib/interaction/event.js +107 -0
- package/lib/interaction/event.js.map +1 -0
- package/lib/interaction/{native/fisheye.js → fisheye.js} +6 -4
- package/lib/interaction/fisheye.js.map +1 -0
- package/lib/interaction/index.d.ts +21 -22
- package/lib/interaction/index.js +23 -25
- package/lib/interaction/index.js.map +1 -1
- package/lib/interaction/{native/legendFilter.js → legendFilter.js} +18 -22
- package/lib/interaction/legendFilter.js.map +1 -0
- package/lib/interaction/legendHighlight.d.ts +1 -0
- package/lib/interaction/{native/legendHighlight.js → legendHighlight.js} +19 -25
- package/lib/interaction/legendHighlight.js.map +1 -0
- package/lib/interaction/{native/poptip.js → poptip.js} +2 -2
- package/lib/interaction/poptip.js.map +1 -0
- package/lib/interaction/{native/sliderFilter.js → sliderFilter.js} +3 -3
- package/lib/interaction/sliderFilter.js.map +1 -0
- package/lib/interaction/tooltip.d.ts +11 -0
- package/lib/interaction/{native/tooltip.js → tooltip.js} +166 -111
- package/lib/interaction/tooltip.js.map +1 -0
- package/lib/interaction/utils.d.ts +47 -3
- package/lib/interaction/utils.js +389 -34
- package/lib/interaction/utils.js.map +1 -1
- package/lib/label-transform/contrastReverse.d.ts +2 -2
- package/lib/label-transform/contrastReverse.js.map +1 -1
- package/lib/label-transform/overflowHide.d.ts +2 -2
- package/lib/label-transform/overlapDodgeY.d.ts +2 -2
- package/lib/label-transform/overlapHide.d.ts +2 -2
- package/lib/mark/area.d.ts +2 -2
- package/lib/mark/area.js +1 -0
- package/lib/mark/area.js.map +1 -1
- package/lib/mark/box.d.ts +2 -2
- package/lib/mark/box.js +1 -0
- package/lib/mark/box.js.map +1 -1
- package/lib/mark/boxplot.js +21 -6
- package/lib/mark/boxplot.js.map +1 -1
- package/lib/mark/cell.d.ts +2 -2
- package/lib/mark/cell.js +1 -0
- package/lib/mark/cell.js.map +1 -1
- package/lib/mark/connector.js +1 -0
- package/lib/mark/connector.js.map +1 -1
- package/lib/mark/forceGraph.js +29 -4
- package/lib/mark/forceGraph.js.map +1 -1
- package/lib/mark/gauge.d.ts +4 -0
- package/lib/mark/gauge.js +170 -0
- package/lib/mark/gauge.js.map +1 -0
- package/lib/mark/image.d.ts +2 -2
- package/lib/mark/image.js +1 -0
- package/lib/mark/image.js.map +1 -1
- package/lib/mark/index.d.ts +2 -0
- package/lib/mark/index.js +3 -1
- package/lib/mark/index.js.map +1 -1
- package/lib/mark/interval.d.ts +2 -2
- package/lib/mark/interval.js +1 -0
- package/lib/mark/interval.js.map +1 -1
- package/lib/mark/line.d.ts +2 -2
- package/lib/mark/line.js +1 -0
- package/lib/mark/line.js.map +1 -1
- package/lib/mark/lineX.js +1 -0
- package/lib/mark/lineX.js.map +1 -1
- package/lib/mark/lineY.js +1 -0
- package/lib/mark/lineY.js.map +1 -1
- package/lib/mark/link.d.ts +2 -2
- package/lib/mark/link.js +1 -0
- package/lib/mark/link.js.map +1 -1
- package/lib/mark/pack.js +10 -4
- package/lib/mark/pack.js.map +1 -1
- package/lib/mark/path.js +1 -0
- package/lib/mark/path.js.map +1 -1
- package/lib/mark/point.d.ts +2 -2
- package/lib/mark/point.js +1 -0
- package/lib/mark/point.js.map +1 -1
- package/lib/mark/polygon.d.ts +2 -2
- package/lib/mark/polygon.js +1 -0
- package/lib/mark/polygon.js.map +1 -1
- package/lib/mark/range.js +1 -0
- package/lib/mark/range.js.map +1 -1
- package/lib/mark/rangeX.js +1 -0
- package/lib/mark/rangeX.js.map +1 -1
- package/lib/mark/rangeY.js +1 -0
- package/lib/mark/rangeY.js.map +1 -1
- package/lib/mark/rect.d.ts +2 -2
- package/lib/mark/rect.js +1 -0
- package/lib/mark/rect.js.map +1 -1
- package/lib/mark/sankey.js +19 -4
- package/lib/mark/sankey.js.map +1 -1
- package/lib/mark/shape.js +1 -0
- package/lib/mark/shape.js.map +1 -1
- package/lib/mark/text.d.ts +2 -2
- package/lib/mark/text.js +1 -0
- package/lib/mark/text.js.map +1 -1
- package/lib/mark/tree.js +18 -4
- package/lib/mark/tree.js.map +1 -1
- package/lib/mark/treemap.js +12 -4
- package/lib/mark/treemap.js.map +1 -1
- package/lib/mark/utils.js +1 -5
- package/lib/mark/utils.js.map +1 -1
- package/lib/mark/vector.d.ts +2 -2
- package/lib/mark/vector.js +1 -0
- package/lib/mark/vector.js.map +1 -1
- package/lib/mark/wordCloud.js +1 -1
- package/lib/mark/wordCloud.js.map +1 -1
- package/lib/palette/index.d.ts +0 -36
- package/lib/palette/index.js +1 -37
- package/lib/palette/index.js.map +1 -1
- package/lib/runtime/component.js +56 -12
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/coordinate.d.ts +1 -0
- package/lib/runtime/coordinate.js +27 -2
- package/lib/runtime/coordinate.js.map +1 -1
- package/lib/runtime/mark.js +11 -6
- package/lib/runtime/mark.js.map +1 -1
- package/lib/runtime/plot.js +153 -56
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/scale.js +2 -0
- package/lib/runtime/scale.js.map +1 -1
- package/lib/runtime/transform.d.ts +5 -0
- package/lib/runtime/transform.js +80 -8
- package/lib/runtime/transform.js.map +1 -1
- package/lib/runtime/types/common.d.ts +8 -3
- package/lib/runtime/types/component.d.ts +8 -4
- package/lib/runtime/types/mark.d.ts +3 -3
- package/lib/runtime/types/options.d.ts +10 -2
- package/lib/runtime/types/scale.d.ts +3 -0
- package/lib/runtime/types/scale.js +4 -1
- package/lib/runtime/types/scale.js.map +1 -1
- package/lib/runtime/types/theme.d.ts +2 -2
- package/lib/scale/constant.d.ts +4 -0
- package/lib/scale/constant.js +10 -0
- package/lib/scale/constant.js.map +1 -0
- package/lib/scale/index.d.ts +2 -0
- package/lib/scale/index.js +3 -1
- package/lib/scale/index.js.map +1 -1
- package/lib/shape/interval/color.js +9 -4
- package/lib/shape/interval/color.js.map +1 -1
- package/lib/shape/point/color.js +2 -7
- package/lib/shape/point/color.js.map +1 -1
- package/lib/shape/utils.d.ts +1 -0
- package/lib/shape/utils.js +8 -1
- package/lib/shape/utils.js.map +1 -1
- package/lib/shape/vector/vector.js +0 -1
- package/lib/shape/vector/vector.js.map +1 -1
- package/lib/spec/animate.d.ts +23 -1
- package/lib/spec/component.d.ts +72 -0
- package/lib/spec/{action.js → component.js} +1 -1
- package/lib/spec/component.js.map +1 -0
- package/lib/spec/composition.d.ts +29 -24
- package/lib/spec/coordinate.d.ts +31 -56
- package/lib/spec/coordinateTransform.d.ts +13 -0
- package/lib/spec/coordinateTransform.js +3 -0
- package/lib/spec/coordinateTransform.js.map +1 -0
- package/lib/spec/data.d.ts +4 -222
- package/lib/spec/dataTransform.d.ts +91 -0
- package/lib/spec/{geometry.js → dataTransform.js} +1 -1
- package/lib/spec/dataTransform.js.map +1 -0
- package/lib/spec/index.d.ts +15 -11
- package/lib/spec/index.js +12 -9
- package/lib/spec/index.js.map +1 -1
- package/lib/spec/interaction.d.ts +16 -18
- package/lib/spec/labelTransform.d.ts +5 -5
- package/lib/spec/mark.d.ts +190 -0
- package/lib/{interaction/types.js → spec/mark.js} +1 -1
- package/lib/spec/mark.js.map +1 -0
- package/lib/spec/palette.d.ts +0 -54
- package/lib/spec/scale.d.ts +4 -3
- package/lib/spec/transform.d.ts +1 -1
- package/lib/spec/utils.d.ts +11 -0
- package/lib/spec/{title.js → utils.js} +1 -1
- package/lib/spec/utils.js.map +1 -0
- package/lib/stdlib/index.js +1 -15
- package/lib/stdlib/index.js.map +1 -1
- package/lib/theme/academy.js +1 -0
- package/lib/theme/academy.js.map +1 -1
- package/lib/theme/dark.js +1 -0
- package/lib/theme/dark.js.map +1 -1
- package/lib/theme/light.js +1 -0
- package/lib/theme/light.js.map +1 -1
- package/lib/transform/bin.js +5 -5
- package/lib/transform/bin.js.map +1 -1
- package/lib/transform/groupN.js +16 -1
- package/lib/transform/groupN.js.map +1 -1
- package/lib/transform/maybeTitle.js +22 -4
- package/lib/transform/maybeTitle.js.map +1 -1
- package/lib/transform/maybeTooltip.js +23 -20
- package/lib/transform/maybeTooltip.js.map +1 -1
- package/lib/transform/maybeZeroPadding.js.map +1 -1
- package/lib/transform/maybeZeroX.js +1 -1
- package/lib/transform/maybeZeroX.js.map +1 -1
- package/lib/transform/maybeZeroY.js +1 -1
- package/lib/transform/maybeZeroY.js.map +1 -1
- package/lib/transform/maybeZeroY1.js +1 -1
- package/lib/transform/maybeZeroY1.js.map +1 -1
- package/lib/transform/normalizeY.js +9 -6
- package/lib/transform/normalizeY.js.map +1 -1
- package/lib/transform/sample.js +1 -1
- package/lib/transform/sample.js.map +1 -1
- package/lib/transform/stackY.js +1 -0
- package/lib/transform/stackY.js.map +1 -1
- package/lib/transform/utils/helper.d.ts +12 -0
- package/lib/transform/utils/helper.js +11 -1
- package/lib/transform/utils/helper.js.map +1 -1
- package/lib/utils/coordinate.d.ts +3 -1
- package/lib/utils/coordinate.js +11 -3
- package/lib/utils/coordinate.js.map +1 -1
- package/lib/utils/helper.d.ts +3 -0
- package/lib/utils/helper.js +20 -3
- package/lib/utils/helper.js.map +1 -1
- package/lib/utils/mark.d.ts +4 -0
- package/lib/utils/mark.js +36 -0
- package/lib/utils/mark.js.map +1 -0
- package/lib/utils/selection.js +5 -2
- package/lib/utils/selection.js.map +1 -1
- package/package.json +10 -6
- package/src/animation/waveIn.ts +0 -1
- package/src/api/chart.ts +37 -10
- package/src/api/composition/base.ts +5 -7
- package/src/api/composition/facetCircle.ts +2 -2
- package/src/api/composition/facetRect.ts +2 -2
- package/src/api/composition/geoPath.ts +7 -14
- package/src/api/composition/geoView.ts +6 -8
- package/src/api/composition/index.ts +2 -2
- package/src/api/composition/repeatMatrix.ts +2 -2
- package/src/api/composition/spaceFlex.ts +2 -2
- package/src/api/composition/spaceLayer.ts +2 -2
- package/src/api/composition/timingKeyframe.ts +2 -2
- package/src/api/composition/view.ts +6 -6
- package/src/api/index.ts +2 -0
- package/src/api/mark/base.ts +7 -7
- package/src/api/mark/index.ts +9 -0
- package/src/api/mark/mark.ts +79 -51
- package/src/api/mark/types.ts +6 -2
- package/src/api/node.ts +1 -1
- package/src/api/props.ts +33 -5
- package/src/api/types.ts +4 -2
- package/src/component/axis.ts +12 -31
- package/src/component/axisRadar.ts +1 -2
- package/src/component/legendCategory.ts +44 -9
- package/src/component/legendContinuous.ts +28 -28
- package/src/component/scrollbar.ts +2 -1
- package/src/component/slider.ts +2 -1
- package/src/component/title.ts +3 -3
- package/src/component/utils.ts +51 -6
- package/src/composition/facetCircle.ts +1 -1
- package/src/composition/mark.ts +5 -5
- package/src/composition/spaceLayer.ts +12 -6
- package/src/composition/timingKeyframe.ts +13 -7
- package/src/composition/view.ts +13 -1
- package/src/coordinate/fisheye.ts +1 -1
- package/src/coordinate/index.ts +2 -10
- package/src/coordinate/radar.ts +24 -0
- package/src/coordinate/radial.ts +3 -2
- package/src/coordinate/transpose.ts +1 -1
- package/src/data/arc.ts +1 -2
- package/src/data/cluster.ts +1 -2
- package/src/data/sankey.ts +1 -2
- package/src/data/tree.ts +1 -2
- package/src/data/wordCloud.ts +1 -2
- package/src/geo/geoView.ts +9 -4
- package/src/index.ts +15 -3
- package/src/interaction/{native/brushAxisHighlight.ts → brushAxisHighlight.ts} +11 -6
- package/src/interaction/{native/brushFilter.ts → brushFilter.ts} +4 -4
- package/src/interaction/{native/brushHighlight.ts → brushHighlight.ts} +54 -26
- package/src/interaction/{native/chartIndex.ts → chartIndex.ts} +2 -2
- package/src/interaction/{native/elementHighlight.ts → elementHighlight.ts} +40 -23
- package/src/interaction/elementHighlightByColor.ts +6 -0
- package/src/interaction/elementHighlightByX.ts +6 -0
- package/src/interaction/{native/elementSelect.ts → elementSelect.ts} +34 -19
- package/src/interaction/elementSelectByColor.ts +6 -0
- package/src/interaction/elementSelectByX.ts +6 -0
- package/src/interaction/event.ts +119 -0
- package/src/interaction/{native/fisheye.ts → fisheye.ts} +6 -4
- package/src/interaction/index.ts +21 -56
- package/src/interaction/{native/legendFilter.ts → legendFilter.ts} +13 -16
- package/src/interaction/{native/legendHighlight.ts → legendHighlight.ts} +28 -14
- package/src/interaction/{native/poptip.ts → poptip.ts} +2 -2
- package/src/interaction/{native/sliderFilter.ts → sliderFilter.ts} +3 -3
- package/src/interaction/{native/tooltip.ts → tooltip.ts} +210 -140
- package/src/interaction/utils.ts +446 -56
- package/src/label-transform/contrastReverse.ts +5 -2
- package/src/label-transform/overflowHide.ts +2 -2
- package/src/label-transform/overlapDodgeY.ts +2 -2
- package/src/label-transform/overlapHide.ts +2 -2
- package/src/mark/area.ts +3 -2
- package/src/mark/box.ts +3 -2
- package/src/mark/boxplot.ts +37 -7
- package/src/mark/cell.ts +3 -2
- package/src/mark/connector.ts +1 -0
- package/src/mark/forceGraph.ts +24 -6
- package/src/mark/gauge.ts +221 -0
- package/src/mark/image.ts +3 -2
- package/src/mark/index.ts +2 -0
- package/src/mark/interval.ts +3 -2
- package/src/mark/line.ts +3 -2
- package/src/mark/lineX.ts +1 -0
- package/src/mark/lineY.ts +1 -0
- package/src/mark/link.ts +3 -2
- package/src/mark/pack.ts +11 -2
- package/src/mark/path.ts +1 -0
- package/src/mark/point.ts +3 -2
- package/src/mark/polygon.ts +3 -2
- package/src/mark/range.ts +1 -0
- package/src/mark/rangeX.ts +1 -0
- package/src/mark/rangeY.ts +1 -0
- package/src/mark/rect.ts +3 -2
- package/src/mark/sankey.ts +26 -5
- package/src/mark/shape.ts +1 -0
- package/src/mark/text.ts +3 -2
- package/src/mark/tree.ts +25 -5
- package/src/mark/treemap.ts +17 -3
- package/src/mark/utils.ts +3 -5
- package/src/mark/vector.ts +3 -2
- package/src/mark/wordCloud.ts +1 -1
- package/src/palette/index.ts +0 -37
- package/src/runtime/component.ts +70 -17
- package/src/runtime/coordinate.ts +18 -1
- package/src/runtime/mark.ts +13 -5
- package/src/runtime/plot.ts +242 -80
- package/src/runtime/scale.ts +2 -0
- package/src/runtime/transform.ts +100 -6
- package/src/runtime/types/common.ts +9 -3
- package/src/runtime/types/component.ts +9 -9
- package/src/runtime/types/mark.ts +3 -3
- package/src/runtime/types/options.ts +10 -2
- package/src/runtime/types/scale.ts +4 -0
- package/src/runtime/types/theme.ts +1 -1
- package/src/scale/constant.ts +11 -0
- package/src/scale/index.ts +2 -0
- package/src/shape/interval/color.ts +14 -7
- package/src/shape/point/color.ts +2 -7
- package/src/shape/utils.ts +6 -0
- package/src/shape/vector/vector.ts +0 -1
- package/src/spec/animate.ts +50 -4
- package/src/spec/component.ts +107 -0
- package/src/spec/composition.ts +43 -30
- package/src/spec/coordinate.ts +34 -76
- package/src/spec/coordinateTransform.ts +16 -0
- package/src/spec/data.ts +12 -271
- package/src/spec/dataTransform.ts +125 -0
- package/src/spec/index.ts +15 -11
- package/src/spec/interaction.ts +15 -42
- package/src/spec/labelTransform.ts +8 -8
- package/src/spec/mark.ts +373 -0
- package/src/spec/palette.ts +0 -80
- package/src/spec/scale.ts +6 -1
- package/src/spec/transform.ts +1 -1
- package/src/spec/utils.ts +16 -0
- package/src/stdlib/index.ts +9 -74
- package/src/theme/academy.ts +1 -0
- package/src/theme/dark.ts +1 -0
- package/src/theme/light.ts +1 -0
- package/src/transform/bin.ts +5 -5
- package/src/transform/groupN.ts +18 -2
- package/src/transform/maybeTitle.ts +20 -4
- package/src/transform/maybeTooltip.ts +19 -21
- package/src/transform/maybeZeroPadding.ts +0 -1
- package/src/transform/maybeZeroX.ts +2 -2
- package/src/transform/maybeZeroY.ts +2 -2
- package/src/transform/maybeZeroY1.ts +2 -2
- package/src/transform/normalizeY.ts +9 -1
- package/src/transform/sample.ts +1 -1
- package/src/transform/stackY.ts +7 -1
- package/src/transform/utils/helper.ts +10 -0
- package/src/utils/coordinate.ts +14 -2
- package/src/utils/helper.ts +34 -3
- package/src/utils/mark.ts +26 -0
- package/src/utils/selection.ts +5 -2
- package/esm/coordinate/fisheyeX.d.ts +0 -7
- package/esm/coordinate/fisheyeX.js +0 -6
- package/esm/coordinate/fisheyeX.js.map +0 -1
- package/esm/coordinate/fisheyeY.d.ts +0 -7
- package/esm/coordinate/fisheyeY.js +0 -6
- package/esm/coordinate/fisheyeY.js.map +0 -1
- package/esm/coordinate/reflect.d.ts +0 -7
- package/esm/coordinate/reflect.js +0 -10
- package/esm/coordinate/reflect.js.map +0 -1
- package/esm/coordinate/reflectX.d.ts +0 -7
- package/esm/coordinate/reflectX.js +0 -10
- package/esm/coordinate/reflectX.js.map +0 -1
- package/esm/coordinate/reflectY.d.ts +0 -7
- package/esm/coordinate/reflectY.js +0 -10
- package/esm/coordinate/reflectY.js.map +0 -1
- package/esm/data/voronoi.d.ts +0 -1
- package/esm/data/voronoi.js +0 -6
- package/esm/data/voronoi.js.map +0 -1
- package/esm/interaction/action/index.d.ts +0 -44
- package/esm/interaction/action/index.js +0 -24
- package/esm/interaction/action/index.js.map +0 -1
- package/esm/interaction/action/service/elementSelection.d.ts +0 -4
- package/esm/interaction/action/service/elementSelection.js +0 -90
- package/esm/interaction/action/service/elementSelection.js.map +0 -1
- package/esm/interaction/action/service/fisheyeFocus.d.ts +0 -4
- package/esm/interaction/action/service/fisheyeFocus.js +0 -51
- package/esm/interaction/action/service/fisheyeFocus.js.map +0 -1
- package/esm/interaction/action/service/legendItemSelection.d.ts +0 -4
- package/esm/interaction/action/service/legendItemSelection.js +0 -17
- package/esm/interaction/action/service/legendItemSelection.js.map +0 -1
- package/esm/interaction/action/service/recordCurrentPoint.d.ts +0 -4
- package/esm/interaction/action/service/recordCurrentPoint.js +0 -16
- package/esm/interaction/action/service/recordCurrentPoint.js.map +0 -1
- package/esm/interaction/action/service/recordPoint.d.ts +0 -4
- package/esm/interaction/action/service/recordPoint.js +0 -28
- package/esm/interaction/action/service/recordPoint.js.map +0 -1
- package/esm/interaction/action/service/recordRegion.d.ts +0 -4
- package/esm/interaction/action/service/recordRegion.js +0 -30
- package/esm/interaction/action/service/recordRegion.js.map +0 -1
- package/esm/interaction/action/service/recordState.d.ts +0 -4
- package/esm/interaction/action/service/recordState.js +0 -10
- package/esm/interaction/action/service/recordState.js.map +0 -1
- package/esm/interaction/action/service/recordTip.d.ts +0 -8
- package/esm/interaction/action/service/recordTip.js +0 -15
- package/esm/interaction/action/service/recordTip.js.map +0 -1
- package/esm/interaction/action/service/surfacePointSelection.d.ts +0 -4
- package/esm/interaction/action/service/surfacePointSelection.js +0 -19
- package/esm/interaction/action/service/surfacePointSelection.js.map +0 -1
- package/esm/interaction/action/service/triggerInfoSelection.d.ts +0 -4
- package/esm/interaction/action/service/triggerInfoSelection.js +0 -18
- package/esm/interaction/action/service/triggerInfoSelection.js.map +0 -1
- package/esm/interaction/action/transformer/activeElement.d.ts +0 -4
- package/esm/interaction/action/transformer/activeElement.js +0 -23
- package/esm/interaction/action/transformer/activeElement.js.map +0 -1
- package/esm/interaction/action/transformer/activeRegion.d.ts +0 -4
- package/esm/interaction/action/transformer/activeRegion.js +0 -52
- package/esm/interaction/action/transformer/activeRegion.js.map +0 -1
- package/esm/interaction/action/transformer/button.d.ts +0 -4
- package/esm/interaction/action/transformer/button.js +0 -76
- package/esm/interaction/action/transformer/button.js.map +0 -1
- package/esm/interaction/action/transformer/cursor.d.ts +0 -4
- package/esm/interaction/action/transformer/cursor.js +0 -15
- package/esm/interaction/action/transformer/cursor.js.map +0 -1
- package/esm/interaction/action/transformer/filter.d.ts +0 -7
- package/esm/interaction/action/transformer/filter.js +0 -47
- package/esm/interaction/action/transformer/filter.js.map +0 -1
- package/esm/interaction/action/transformer/filterElement.d.ts +0 -4
- package/esm/interaction/action/transformer/filterElement.js +0 -41
- package/esm/interaction/action/transformer/filterElement.js.map +0 -1
- package/esm/interaction/action/transformer/highlightElement.d.ts +0 -4
- package/esm/interaction/action/transformer/highlightElement.js +0 -48
- package/esm/interaction/action/transformer/highlightElement.js.map +0 -1
- package/esm/interaction/action/transformer/mask.d.ts +0 -7
- package/esm/interaction/action/transformer/mask.js +0 -106
- package/esm/interaction/action/transformer/mask.js.map +0 -1
- package/esm/interaction/action/transformer/move.d.ts +0 -7
- package/esm/interaction/action/transformer/move.js +0 -70
- package/esm/interaction/action/transformer/move.js.map +0 -1
- package/esm/interaction/action/transformer/plot.d.ts +0 -4
- package/esm/interaction/action/transformer/plot.js +0 -10
- package/esm/interaction/action/transformer/plot.js.map +0 -1
- package/esm/interaction/action/transformer/poptip.d.ts +0 -4
- package/esm/interaction/action/transformer/poptip.js +0 -39
- package/esm/interaction/action/transformer/poptip.js.map +0 -1
- package/esm/interaction/action/transformer/setItemState.d.ts +0 -4
- package/esm/interaction/action/transformer/setItemState.js +0 -31
- package/esm/interaction/action/transformer/setItemState.js.map +0 -1
- package/esm/interaction/action/transformer/tooltip.d.ts +0 -9
- package/esm/interaction/action/transformer/tooltip.js +0 -289
- package/esm/interaction/action/transformer/tooltip.js.map +0 -1
- package/esm/interaction/builtin/activeRegion.d.ts +0 -19
- package/esm/interaction/builtin/activeRegion.js +0 -18
- package/esm/interaction/builtin/activeRegion.js.map +0 -1
- package/esm/interaction/builtin/brush.d.ts +0 -132
- package/esm/interaction/builtin/brush.js +0 -93
- package/esm/interaction/builtin/brush.js.map +0 -1
- package/esm/interaction/builtin/brushHighlight.d.ts +0 -98
- package/esm/interaction/builtin/brushHighlight.js +0 -111
- package/esm/interaction/builtin/brushHighlight.js.map +0 -1
- package/esm/interaction/builtin/brushVisible.d.ts +0 -88
- package/esm/interaction/builtin/brushVisible.js +0 -62
- package/esm/interaction/builtin/brushVisible.js.map +0 -1
- package/esm/interaction/builtin/elementActive.d.ts +0 -20
- package/esm/interaction/builtin/elementActive.js +0 -25
- package/esm/interaction/builtin/elementActive.js.map +0 -1
- package/esm/interaction/builtin/elementHighlight.d.ts +0 -19
- package/esm/interaction/builtin/elementHighlight.js +0 -24
- package/esm/interaction/builtin/elementHighlight.js.map +0 -1
- package/esm/interaction/builtin/elementHighlightByColor.d.ts +0 -25
- package/esm/interaction/builtin/elementHighlightByColor.js +0 -24
- package/esm/interaction/builtin/elementHighlightByColor.js.map +0 -1
- package/esm/interaction/builtin/elementHighlightByX.d.ts +0 -25
- package/esm/interaction/builtin/elementHighlightByX.js +0 -24
- package/esm/interaction/builtin/elementHighlightByX.js.map +0 -1
- package/esm/interaction/builtin/elementListHighlight.d.ts +0 -43
- package/esm/interaction/builtin/elementListHighlight.js +0 -28
- package/esm/interaction/builtin/elementListHighlight.js.map +0 -1
- package/esm/interaction/builtin/elementSelected.d.ts +0 -18
- package/esm/interaction/builtin/elementSelected.js +0 -18
- package/esm/interaction/builtin/elementSelected.js.map +0 -1
- package/esm/interaction/builtin/ellipsisText.d.ts +0 -19
- package/esm/interaction/builtin/ellipsisText.js +0 -17
- package/esm/interaction/builtin/ellipsisText.js.map +0 -1
- package/esm/interaction/builtin/fisheye.d.ts +0 -41
- package/esm/interaction/builtin/fisheye.js +0 -20
- package/esm/interaction/builtin/fisheye.js.map +0 -1
- package/esm/interaction/builtin/legendActive.d.ts +0 -43
- package/esm/interaction/builtin/legendActive.js +0 -30
- package/esm/interaction/builtin/legendActive.js.map +0 -1
- package/esm/interaction/builtin/legendHighlight.d.ts +0 -43
- package/esm/interaction/builtin/legendHighlight.js +0 -30
- package/esm/interaction/builtin/legendHighlight.js.map +0 -1
- package/esm/interaction/builtin/tooltip.d.ts +0 -50
- package/esm/interaction/builtin/tooltip.js +0 -28
- package/esm/interaction/builtin/tooltip.js.map +0 -1
- package/esm/interaction/create.d.ts +0 -3
- package/esm/interaction/create.js +0 -96
- package/esm/interaction/create.js.map +0 -1
- package/esm/interaction/interactor/index.d.ts +0 -4
- package/esm/interaction/interactor/index.js +0 -3
- package/esm/interaction/interactor/index.js.map +0 -1
- package/esm/interaction/interactor/mousePosition.d.ts +0 -3
- package/esm/interaction/interactor/mousePosition.js +0 -10
- package/esm/interaction/interactor/mousePosition.js.map +0 -1
- package/esm/interaction/interactor/touchPosition.d.ts +0 -3
- package/esm/interaction/interactor/touchPosition.js +0 -10
- package/esm/interaction/interactor/touchPosition.js.map +0 -1
- package/esm/interaction/native/brushAxisHighlight.js.map +0 -1
- package/esm/interaction/native/brushFilter.js.map +0 -1
- package/esm/interaction/native/brushHighlight.js.map +0 -1
- package/esm/interaction/native/brushXFilter.js.map +0 -1
- package/esm/interaction/native/brushXHighlight.js.map +0 -1
- package/esm/interaction/native/brushYFilter.js.map +0 -1
- package/esm/interaction/native/brushYHighlight.js.map +0 -1
- package/esm/interaction/native/chartIndex.js.map +0 -1
- package/esm/interaction/native/elementHighlight.js.map +0 -1
- package/esm/interaction/native/elementHighlightByColor.d.ts +0 -7
- package/esm/interaction/native/elementHighlightByColor.js +0 -28
- package/esm/interaction/native/elementHighlightByColor.js.map +0 -1
- package/esm/interaction/native/elementHighlightByX.d.ts +0 -8
- package/esm/interaction/native/elementHighlightByX.js +0 -29
- package/esm/interaction/native/elementHighlightByX.js.map +0 -1
- package/esm/interaction/native/elementSelect.js.map +0 -1
- package/esm/interaction/native/elementSelectByColor.js +0 -10
- package/esm/interaction/native/elementSelectByColor.js.map +0 -1
- package/esm/interaction/native/elementSelectByX.js +0 -10
- package/esm/interaction/native/elementSelectByX.js.map +0 -1
- package/esm/interaction/native/fisheye.js.map +0 -1
- package/esm/interaction/native/legendFilter.js.map +0 -1
- package/esm/interaction/native/legendHighlight.d.ts +0 -4
- package/esm/interaction/native/legendHighlight.js.map +0 -1
- package/esm/interaction/native/poptip.js.map +0 -1
- package/esm/interaction/native/sliderFilter.js.map +0 -1
- package/esm/interaction/native/tooltip.d.ts +0 -11
- package/esm/interaction/native/tooltip.js.map +0 -1
- package/esm/interaction/native/utils.d.ts +0 -47
- package/esm/interaction/native/utils.js +0 -329
- package/esm/interaction/native/utils.js.map +0 -1
- package/esm/interaction/stdlib.d.ts +0 -2
- package/esm/interaction/stdlib.js +0 -32
- package/esm/interaction/stdlib.js.map +0 -1
- package/esm/interaction/types.d.ts +0 -57
- package/esm/interaction/types.js +0 -2
- package/esm/interaction/types.js.map +0 -1
- package/esm/palette/divergingGreenRed.d.ts +0 -7
- package/esm/palette/divergingGreenRed.js +0 -26
- package/esm/palette/divergingGreenRed.js.map +0 -1
- package/esm/palette/divergingGreenYellow.d.ts +0 -7
- package/esm/palette/divergingGreenYellow.js +0 -26
- package/esm/palette/divergingGreenYellow.js.map +0 -1
- package/esm/palette/divergingRedBlue.d.ts +0 -7
- package/esm/palette/divergingRedBlue.js +0 -26
- package/esm/palette/divergingRedBlue.js.map +0 -1
- package/esm/palette/divergingRedPurple.d.ts +0 -7
- package/esm/palette/divergingRedPurple.js +0 -26
- package/esm/palette/divergingRedPurple.js.map +0 -1
- package/esm/palette/sequentialBlue.d.ts +0 -7
- package/esm/palette/sequentialBlue.js +0 -18
- package/esm/palette/sequentialBlue.js.map +0 -1
- package/esm/palette/sequentialDarkBlue.d.ts +0 -7
- package/esm/palette/sequentialDarkBlue.js +0 -18
- package/esm/palette/sequentialDarkBlue.js.map +0 -1
- package/esm/palette/sequentialDarkGreen.d.ts +0 -7
- package/esm/palette/sequentialDarkGreen.js +0 -18
- package/esm/palette/sequentialDarkGreen.js.map +0 -1
- package/esm/palette/sequentialGreen.d.ts +0 -7
- package/esm/palette/sequentialGreen.js +0 -18
- package/esm/palette/sequentialGreen.js.map +0 -1
- package/esm/palette/sequentialGreenBlue.d.ts +0 -7
- package/esm/palette/sequentialGreenBlue.js +0 -18
- package/esm/palette/sequentialGreenBlue.js.map +0 -1
- package/esm/palette/sequentialGrey.d.ts +0 -7
- package/esm/palette/sequentialGrey.js +0 -18
- package/esm/palette/sequentialGrey.js.map +0 -1
- package/esm/palette/sequentialOrange.d.ts +0 -7
- package/esm/palette/sequentialOrange.js +0 -18
- package/esm/palette/sequentialOrange.js.map +0 -1
- package/esm/palette/sequentialPink.d.ts +0 -7
- package/esm/palette/sequentialPink.js +0 -18
- package/esm/palette/sequentialPink.js.map +0 -1
- package/esm/palette/sequentialPinkPurple.d.ts +0 -7
- package/esm/palette/sequentialPinkPurple.js +0 -18
- package/esm/palette/sequentialPinkPurple.js.map +0 -1
- package/esm/palette/sequentialPurple.d.ts +0 -7
- package/esm/palette/sequentialPurple.js +0 -18
- package/esm/palette/sequentialPurple.js.map +0 -1
- package/esm/palette/sequentialRed.d.ts +0 -7
- package/esm/palette/sequentialRed.js +0 -18
- package/esm/palette/sequentialRed.js.map +0 -1
- package/esm/palette/sequentialYellow.d.ts +0 -7
- package/esm/palette/sequentialYellow.js +0 -18
- package/esm/palette/sequentialYellow.js.map +0 -1
- package/esm/palette/sequentialYellowGreen.d.ts +0 -7
- package/esm/palette/sequentialYellowGreen.js +0 -18
- package/esm/palette/sequentialYellowGreen.js.map +0 -1
- package/esm/palette/sequentialYellowOrange.d.ts +0 -7
- package/esm/palette/sequentialYellowOrange.js +0 -18
- package/esm/palette/sequentialYellowOrange.js.map +0 -1
- package/esm/spec/action.d.ts +0 -122
- package/esm/spec/action.js +0 -2
- package/esm/spec/action.js.map +0 -1
- package/esm/spec/geometry.d.ts +0 -134
- package/esm/spec/geometry.js +0 -2
- package/esm/spec/geometry.js.map +0 -1
- package/esm/spec/title.d.ts +0 -2
- package/esm/spec/title.js +0 -2
- package/esm/spec/title.js.map +0 -1
- package/lib/coordinate/fisheyeX.d.ts +0 -7
- package/lib/coordinate/fisheyeX.js +0 -10
- package/lib/coordinate/fisheyeX.js.map +0 -1
- package/lib/coordinate/fisheyeY.d.ts +0 -7
- package/lib/coordinate/fisheyeY.js +0 -10
- package/lib/coordinate/fisheyeY.js.map +0 -1
- package/lib/coordinate/reflect.d.ts +0 -7
- package/lib/coordinate/reflect.js +0 -14
- package/lib/coordinate/reflect.js.map +0 -1
- package/lib/coordinate/reflectX.d.ts +0 -7
- package/lib/coordinate/reflectX.js +0 -14
- package/lib/coordinate/reflectX.js.map +0 -1
- package/lib/coordinate/reflectY.d.ts +0 -7
- package/lib/coordinate/reflectY.js +0 -14
- package/lib/coordinate/reflectY.js.map +0 -1
- package/lib/data/voronoi.d.ts +0 -1
- package/lib/data/voronoi.js +0 -7
- package/lib/data/voronoi.js.map +0 -1
- package/lib/interaction/action/index.d.ts +0 -44
- package/lib/interaction/action/index.js +0 -50
- package/lib/interaction/action/index.js.map +0 -1
- package/lib/interaction/action/service/elementSelection.d.ts +0 -4
- package/lib/interaction/action/service/elementSelection.js +0 -94
- package/lib/interaction/action/service/elementSelection.js.map +0 -1
- package/lib/interaction/action/service/fisheyeFocus.d.ts +0 -4
- package/lib/interaction/action/service/fisheyeFocus.js +0 -55
- package/lib/interaction/action/service/fisheyeFocus.js.map +0 -1
- package/lib/interaction/action/service/legendItemSelection.d.ts +0 -4
- package/lib/interaction/action/service/legendItemSelection.js +0 -21
- package/lib/interaction/action/service/legendItemSelection.js.map +0 -1
- package/lib/interaction/action/service/recordCurrentPoint.d.ts +0 -4
- package/lib/interaction/action/service/recordCurrentPoint.js +0 -20
- package/lib/interaction/action/service/recordCurrentPoint.js.map +0 -1
- package/lib/interaction/action/service/recordPoint.d.ts +0 -4
- package/lib/interaction/action/service/recordPoint.js +0 -32
- package/lib/interaction/action/service/recordPoint.js.map +0 -1
- package/lib/interaction/action/service/recordRegion.d.ts +0 -4
- package/lib/interaction/action/service/recordRegion.js +0 -34
- package/lib/interaction/action/service/recordRegion.js.map +0 -1
- package/lib/interaction/action/service/recordState.d.ts +0 -4
- package/lib/interaction/action/service/recordState.js +0 -14
- package/lib/interaction/action/service/recordState.js.map +0 -1
- package/lib/interaction/action/service/recordTip.d.ts +0 -8
- package/lib/interaction/action/service/recordTip.js +0 -19
- package/lib/interaction/action/service/recordTip.js.map +0 -1
- package/lib/interaction/action/service/surfacePointSelection.d.ts +0 -4
- package/lib/interaction/action/service/surfacePointSelection.js +0 -23
- package/lib/interaction/action/service/surfacePointSelection.js.map +0 -1
- package/lib/interaction/action/service/triggerInfoSelection.d.ts +0 -4
- package/lib/interaction/action/service/triggerInfoSelection.js +0 -22
- package/lib/interaction/action/service/triggerInfoSelection.js.map +0 -1
- package/lib/interaction/action/transformer/activeElement.d.ts +0 -4
- package/lib/interaction/action/transformer/activeElement.js +0 -27
- package/lib/interaction/action/transformer/activeElement.js.map +0 -1
- package/lib/interaction/action/transformer/activeRegion.d.ts +0 -4
- package/lib/interaction/action/transformer/activeRegion.js +0 -56
- package/lib/interaction/action/transformer/activeRegion.js.map +0 -1
- package/lib/interaction/action/transformer/button.d.ts +0 -4
- package/lib/interaction/action/transformer/button.js +0 -80
- package/lib/interaction/action/transformer/button.js.map +0 -1
- package/lib/interaction/action/transformer/cursor.d.ts +0 -4
- package/lib/interaction/action/transformer/cursor.js +0 -19
- package/lib/interaction/action/transformer/cursor.js.map +0 -1
- package/lib/interaction/action/transformer/filter.d.ts +0 -7
- package/lib/interaction/action/transformer/filter.js +0 -51
- package/lib/interaction/action/transformer/filter.js.map +0 -1
- package/lib/interaction/action/transformer/filterElement.d.ts +0 -4
- package/lib/interaction/action/transformer/filterElement.js +0 -45
- package/lib/interaction/action/transformer/filterElement.js.map +0 -1
- package/lib/interaction/action/transformer/highlightElement.d.ts +0 -4
- package/lib/interaction/action/transformer/highlightElement.js +0 -52
- package/lib/interaction/action/transformer/highlightElement.js.map +0 -1
- package/lib/interaction/action/transformer/mask.d.ts +0 -7
- package/lib/interaction/action/transformer/mask.js +0 -110
- package/lib/interaction/action/transformer/mask.js.map +0 -1
- package/lib/interaction/action/transformer/move.d.ts +0 -7
- package/lib/interaction/action/transformer/move.js +0 -74
- package/lib/interaction/action/transformer/move.js.map +0 -1
- package/lib/interaction/action/transformer/plot.d.ts +0 -4
- package/lib/interaction/action/transformer/plot.js +0 -14
- package/lib/interaction/action/transformer/plot.js.map +0 -1
- package/lib/interaction/action/transformer/poptip.d.ts +0 -4
- package/lib/interaction/action/transformer/poptip.js +0 -43
- package/lib/interaction/action/transformer/poptip.js.map +0 -1
- package/lib/interaction/action/transformer/setItemState.d.ts +0 -4
- package/lib/interaction/action/transformer/setItemState.js +0 -35
- package/lib/interaction/action/transformer/setItemState.js.map +0 -1
- package/lib/interaction/action/transformer/tooltip.d.ts +0 -9
- package/lib/interaction/action/transformer/tooltip.js +0 -293
- package/lib/interaction/action/transformer/tooltip.js.map +0 -1
- package/lib/interaction/builtin/activeRegion.d.ts +0 -19
- package/lib/interaction/builtin/activeRegion.js +0 -22
- package/lib/interaction/builtin/activeRegion.js.map +0 -1
- package/lib/interaction/builtin/brush.d.ts +0 -132
- package/lib/interaction/builtin/brush.js +0 -97
- package/lib/interaction/builtin/brush.js.map +0 -1
- package/lib/interaction/builtin/brushHighlight.d.ts +0 -98
- package/lib/interaction/builtin/brushHighlight.js +0 -115
- package/lib/interaction/builtin/brushHighlight.js.map +0 -1
- package/lib/interaction/builtin/brushVisible.d.ts +0 -88
- package/lib/interaction/builtin/brushVisible.js +0 -66
- package/lib/interaction/builtin/brushVisible.js.map +0 -1
- package/lib/interaction/builtin/elementActive.d.ts +0 -20
- package/lib/interaction/builtin/elementActive.js +0 -29
- package/lib/interaction/builtin/elementActive.js.map +0 -1
- package/lib/interaction/builtin/elementHighlight.d.ts +0 -19
- package/lib/interaction/builtin/elementHighlight.js +0 -28
- package/lib/interaction/builtin/elementHighlight.js.map +0 -1
- package/lib/interaction/builtin/elementHighlightByColor.d.ts +0 -25
- package/lib/interaction/builtin/elementHighlightByColor.js +0 -28
- package/lib/interaction/builtin/elementHighlightByColor.js.map +0 -1
- package/lib/interaction/builtin/elementHighlightByX.d.ts +0 -25
- package/lib/interaction/builtin/elementHighlightByX.js +0 -28
- package/lib/interaction/builtin/elementHighlightByX.js.map +0 -1
- package/lib/interaction/builtin/elementListHighlight.d.ts +0 -43
- package/lib/interaction/builtin/elementListHighlight.js +0 -32
- package/lib/interaction/builtin/elementListHighlight.js.map +0 -1
- package/lib/interaction/builtin/elementSelected.d.ts +0 -18
- package/lib/interaction/builtin/elementSelected.js +0 -22
- package/lib/interaction/builtin/elementSelected.js.map +0 -1
- package/lib/interaction/builtin/ellipsisText.d.ts +0 -19
- package/lib/interaction/builtin/ellipsisText.js +0 -21
- package/lib/interaction/builtin/ellipsisText.js.map +0 -1
- package/lib/interaction/builtin/fisheye.d.ts +0 -41
- package/lib/interaction/builtin/fisheye.js +0 -24
- package/lib/interaction/builtin/fisheye.js.map +0 -1
- package/lib/interaction/builtin/legendActive.d.ts +0 -43
- package/lib/interaction/builtin/legendActive.js +0 -34
- package/lib/interaction/builtin/legendActive.js.map +0 -1
- package/lib/interaction/builtin/legendHighlight.d.ts +0 -43
- package/lib/interaction/builtin/legendHighlight.js +0 -34
- package/lib/interaction/builtin/legendHighlight.js.map +0 -1
- package/lib/interaction/builtin/tooltip.d.ts +0 -50
- package/lib/interaction/builtin/tooltip.js +0 -32
- package/lib/interaction/builtin/tooltip.js.map +0 -1
- package/lib/interaction/create.d.ts +0 -3
- package/lib/interaction/create.js +0 -100
- package/lib/interaction/create.js.map +0 -1
- package/lib/interaction/interactor/index.d.ts +0 -4
- package/lib/interaction/interactor/index.js +0 -8
- package/lib/interaction/interactor/index.js.map +0 -1
- package/lib/interaction/interactor/mousePosition.d.ts +0 -3
- package/lib/interaction/interactor/mousePosition.js +0 -14
- package/lib/interaction/interactor/mousePosition.js.map +0 -1
- package/lib/interaction/interactor/touchPosition.d.ts +0 -3
- package/lib/interaction/interactor/touchPosition.js +0 -14
- package/lib/interaction/interactor/touchPosition.js.map +0 -1
- package/lib/interaction/native/brushAxisHighlight.js.map +0 -1
- package/lib/interaction/native/brushFilter.js.map +0 -1
- package/lib/interaction/native/brushHighlight.js.map +0 -1
- package/lib/interaction/native/brushXFilter.js.map +0 -1
- package/lib/interaction/native/brushXHighlight.js.map +0 -1
- package/lib/interaction/native/brushYFilter.js.map +0 -1
- package/lib/interaction/native/brushYHighlight.js.map +0 -1
- package/lib/interaction/native/chartIndex.js.map +0 -1
- package/lib/interaction/native/elementHighlight.js.map +0 -1
- package/lib/interaction/native/elementHighlightByColor.d.ts +0 -7
- package/lib/interaction/native/elementHighlightByColor.js +0 -32
- package/lib/interaction/native/elementHighlightByColor.js.map +0 -1
- package/lib/interaction/native/elementHighlightByX.d.ts +0 -8
- package/lib/interaction/native/elementHighlightByX.js +0 -33
- package/lib/interaction/native/elementHighlightByX.js.map +0 -1
- package/lib/interaction/native/elementSelect.js.map +0 -1
- package/lib/interaction/native/elementSelectByColor.js +0 -14
- package/lib/interaction/native/elementSelectByColor.js.map +0 -1
- package/lib/interaction/native/elementSelectByX.js +0 -14
- package/lib/interaction/native/elementSelectByX.js.map +0 -1
- package/lib/interaction/native/fisheye.js.map +0 -1
- package/lib/interaction/native/legendFilter.js.map +0 -1
- package/lib/interaction/native/legendHighlight.d.ts +0 -4
- package/lib/interaction/native/legendHighlight.js.map +0 -1
- package/lib/interaction/native/poptip.js.map +0 -1
- package/lib/interaction/native/sliderFilter.js.map +0 -1
- package/lib/interaction/native/tooltip.d.ts +0 -11
- package/lib/interaction/native/tooltip.js.map +0 -1
- package/lib/interaction/native/utils.d.ts +0 -47
- package/lib/interaction/native/utils.js +0 -349
- package/lib/interaction/native/utils.js.map +0 -1
- package/lib/interaction/stdlib.d.ts +0 -2
- package/lib/interaction/stdlib.js +0 -36
- package/lib/interaction/stdlib.js.map +0 -1
- package/lib/interaction/types.d.ts +0 -57
- package/lib/interaction/types.js.map +0 -1
- package/lib/palette/divergingGreenRed.d.ts +0 -7
- package/lib/palette/divergingGreenRed.js +0 -30
- package/lib/palette/divergingGreenRed.js.map +0 -1
- package/lib/palette/divergingGreenYellow.d.ts +0 -7
- package/lib/palette/divergingGreenYellow.js +0 -30
- package/lib/palette/divergingGreenYellow.js.map +0 -1
- package/lib/palette/divergingRedBlue.d.ts +0 -7
- package/lib/palette/divergingRedBlue.js +0 -30
- package/lib/palette/divergingRedBlue.js.map +0 -1
- package/lib/palette/divergingRedPurple.d.ts +0 -7
- package/lib/palette/divergingRedPurple.js +0 -30
- package/lib/palette/divergingRedPurple.js.map +0 -1
- package/lib/palette/sequentialBlue.d.ts +0 -7
- package/lib/palette/sequentialBlue.js +0 -22
- package/lib/palette/sequentialBlue.js.map +0 -1
- package/lib/palette/sequentialDarkBlue.d.ts +0 -7
- package/lib/palette/sequentialDarkBlue.js +0 -22
- package/lib/palette/sequentialDarkBlue.js.map +0 -1
- package/lib/palette/sequentialDarkGreen.d.ts +0 -7
- package/lib/palette/sequentialDarkGreen.js +0 -22
- package/lib/palette/sequentialDarkGreen.js.map +0 -1
- package/lib/palette/sequentialGreen.d.ts +0 -7
- package/lib/palette/sequentialGreen.js +0 -22
- package/lib/palette/sequentialGreen.js.map +0 -1
- package/lib/palette/sequentialGreenBlue.d.ts +0 -7
- package/lib/palette/sequentialGreenBlue.js +0 -22
- package/lib/palette/sequentialGreenBlue.js.map +0 -1
- package/lib/palette/sequentialGrey.d.ts +0 -7
- package/lib/palette/sequentialGrey.js +0 -22
- package/lib/palette/sequentialGrey.js.map +0 -1
- package/lib/palette/sequentialOrange.d.ts +0 -7
- package/lib/palette/sequentialOrange.js +0 -22
- package/lib/palette/sequentialOrange.js.map +0 -1
- package/lib/palette/sequentialPink.d.ts +0 -7
- package/lib/palette/sequentialPink.js +0 -22
- package/lib/palette/sequentialPink.js.map +0 -1
- package/lib/palette/sequentialPinkPurple.d.ts +0 -7
- package/lib/palette/sequentialPinkPurple.js +0 -22
- package/lib/palette/sequentialPinkPurple.js.map +0 -1
- package/lib/palette/sequentialPurple.d.ts +0 -7
- package/lib/palette/sequentialPurple.js +0 -22
- package/lib/palette/sequentialPurple.js.map +0 -1
- package/lib/palette/sequentialRed.d.ts +0 -7
- package/lib/palette/sequentialRed.js +0 -22
- package/lib/palette/sequentialRed.js.map +0 -1
- package/lib/palette/sequentialYellow.d.ts +0 -7
- package/lib/palette/sequentialYellow.js +0 -22
- package/lib/palette/sequentialYellow.js.map +0 -1
- package/lib/palette/sequentialYellowGreen.d.ts +0 -7
- package/lib/palette/sequentialYellowGreen.js +0 -22
- package/lib/palette/sequentialYellowGreen.js.map +0 -1
- package/lib/palette/sequentialYellowOrange.d.ts +0 -7
- package/lib/palette/sequentialYellowOrange.js +0 -22
- package/lib/palette/sequentialYellowOrange.js.map +0 -1
- package/lib/spec/action.d.ts +0 -122
- package/lib/spec/action.js.map +0 -1
- package/lib/spec/geometry.d.ts +0 -134
- package/lib/spec/geometry.js.map +0 -1
- package/lib/spec/title.d.ts +0 -2
- package/lib/spec/title.js.map +0 -1
- package/src/coordinate/fisheyeX.ts +0 -15
- package/src/coordinate/fisheyeY.ts +0 -15
- package/src/coordinate/reflect.ts +0 -15
- package/src/coordinate/reflectX.ts +0 -15
- package/src/coordinate/reflectY.ts +0 -15
- package/src/data/voronoi.ts +0 -32
- package/src/interaction/action/index.ts +0 -45
- package/src/interaction/action/service/elementSelection.ts +0 -125
- package/src/interaction/action/service/fisheyeFocus.ts +0 -75
- package/src/interaction/action/service/legendItemSelection.ts +0 -33
- package/src/interaction/action/service/recordCurrentPoint.ts +0 -22
- package/src/interaction/action/service/recordPoint.ts +0 -35
- package/src/interaction/action/service/recordRegion.ts +0 -41
- package/src/interaction/action/service/recordState.ts +0 -15
- package/src/interaction/action/service/recordTip.ts +0 -20
- package/src/interaction/action/service/surfacePointSelection.ts +0 -28
- package/src/interaction/action/service/triggerInfoSelection.ts +0 -33
- package/src/interaction/action/transformer/activeElement.ts +0 -32
- package/src/interaction/action/transformer/activeRegion.ts +0 -73
- package/src/interaction/action/transformer/button.ts +0 -113
- package/src/interaction/action/transformer/cursor.ts +0 -21
- package/src/interaction/action/transformer/filter.ts +0 -58
- package/src/interaction/action/transformer/filterElement.ts +0 -54
- package/src/interaction/action/transformer/highlightElement.ts +0 -61
- package/src/interaction/action/transformer/mask.ts +0 -115
- package/src/interaction/action/transformer/move.ts +0 -76
- package/src/interaction/action/transformer/plot.ts +0 -15
- package/src/interaction/action/transformer/poptip.ts +0 -51
- package/src/interaction/action/transformer/setItemState.ts +0 -38
- package/src/interaction/action/transformer/tooltip.ts +0 -404
- package/src/interaction/builtin/activeRegion.ts +0 -26
- package/src/interaction/builtin/brush.ts +0 -100
- package/src/interaction/builtin/brushHighlight.ts +0 -123
- package/src/interaction/builtin/brushVisible.ts +0 -70
- package/src/interaction/builtin/elementActive.ts +0 -33
- package/src/interaction/builtin/elementHighlight.ts +0 -32
- package/src/interaction/builtin/elementHighlightByColor.ts +0 -36
- package/src/interaction/builtin/elementHighlightByX.ts +0 -36
- package/src/interaction/builtin/elementListHighlight.ts +0 -40
- package/src/interaction/builtin/elementSelected.ts +0 -26
- package/src/interaction/builtin/ellipsisText.ts +0 -25
- package/src/interaction/builtin/fisheye.ts +0 -26
- package/src/interaction/builtin/legendActive.ts +0 -38
- package/src/interaction/builtin/legendHighlight.ts +0 -38
- package/src/interaction/builtin/tooltip.ts +0 -34
- package/src/interaction/create.ts +0 -153
- package/src/interaction/interactor/index.ts +0 -5
- package/src/interaction/interactor/mousePosition.ts +0 -13
- package/src/interaction/interactor/touchPosition.ts +0 -13
- package/src/interaction/native/elementHighlightByColor.ts +0 -28
- package/src/interaction/native/elementHighlightByX.ts +0 -29
- package/src/interaction/native/elementSelectByColor.ts +0 -22
- package/src/interaction/native/elementSelectByX.ts +0 -22
- package/src/interaction/native/utils.ts +0 -399
- package/src/interaction/stdlib.ts +0 -57
- package/src/interaction/types.ts +0 -80
- package/src/palette/divergingGreenRed.ts +0 -33
- package/src/palette/divergingGreenYellow.ts +0 -36
- package/src/palette/divergingRedBlue.ts +0 -33
- package/src/palette/divergingRedPurple.ts +0 -33
- package/src/palette/sequentialBlue.ts +0 -23
- package/src/palette/sequentialDarkBlue.ts +0 -25
- package/src/palette/sequentialDarkGreen.ts +0 -28
- package/src/palette/sequentialGreen.ts +0 -23
- package/src/palette/sequentialGreenBlue.ts +0 -28
- package/src/palette/sequentialGrey.ts +0 -23
- package/src/palette/sequentialOrange.ts +0 -25
- package/src/palette/sequentialPink.ts +0 -23
- package/src/palette/sequentialPinkPurple.ts +0 -28
- package/src/palette/sequentialPurple.ts +0 -25
- package/src/palette/sequentialRed.ts +0 -23
- package/src/palette/sequentialYellow.ts +0 -25
- package/src/palette/sequentialYellowGreen.ts +0 -28
- package/src/palette/sequentialYellowOrange.ts +0 -28
- package/src/spec/action.ts +0 -196
- package/src/spec/geometry.ts +0 -312
- package/src/spec/title.ts +0 -3
- /package/esm/interaction/{native/brushFilter.d.ts → brushFilter.d.ts} +0 -0
- /package/esm/interaction/{native/brushXFilter.d.ts → brushXFilter.d.ts} +0 -0
- /package/esm/interaction/{native/brushXFilter.js → brushXFilter.js} +0 -0
- /package/esm/interaction/{native/brushXHighlight.d.ts → brushXHighlight.d.ts} +0 -0
- /package/esm/interaction/{native/brushXHighlight.js → brushXHighlight.js} +0 -0
- /package/esm/interaction/{native/brushYFilter.d.ts → brushYFilter.d.ts} +0 -0
- /package/esm/interaction/{native/brushYFilter.js → brushYFilter.js} +0 -0
- /package/esm/interaction/{native/brushYHighlight.d.ts → brushYHighlight.d.ts} +0 -0
- /package/esm/interaction/{native/brushYHighlight.js → brushYHighlight.js} +0 -0
- /package/esm/interaction/{native/chartIndex.d.ts → chartIndex.d.ts} +0 -0
- /package/esm/interaction/{native/elementSelectByColor.d.ts → elementSelectByColor.d.ts} +0 -0
- /package/esm/interaction/{native/elementSelectByX.d.ts → elementSelectByX.d.ts} +0 -0
- /package/esm/interaction/{native/fisheye.d.ts → fisheye.d.ts} +0 -0
- /package/esm/interaction/{native/legendFilter.d.ts → legendFilter.d.ts} +0 -0
- /package/esm/interaction/{native/poptip.d.ts → poptip.d.ts} +0 -0
- /package/esm/interaction/{native/sliderFilter.d.ts → sliderFilter.d.ts} +0 -0
- /package/lib/interaction/{native/brushFilter.d.ts → brushFilter.d.ts} +0 -0
- /package/lib/interaction/{native/brushXFilter.d.ts → brushXFilter.d.ts} +0 -0
- /package/lib/interaction/{native/brushXFilter.js → brushXFilter.js} +0 -0
- /package/lib/interaction/{native/brushXHighlight.d.ts → brushXHighlight.d.ts} +0 -0
- /package/lib/interaction/{native/brushXHighlight.js → brushXHighlight.js} +0 -0
- /package/lib/interaction/{native/brushYFilter.d.ts → brushYFilter.d.ts} +0 -0
- /package/lib/interaction/{native/brushYFilter.js → brushYFilter.js} +0 -0
- /package/lib/interaction/{native/brushYHighlight.d.ts → brushYHighlight.d.ts} +0 -0
- /package/lib/interaction/{native/brushYHighlight.js → brushYHighlight.js} +0 -0
- /package/lib/interaction/{native/chartIndex.d.ts → chartIndex.d.ts} +0 -0
- /package/lib/interaction/{native/elementSelectByColor.d.ts → elementSelectByColor.d.ts} +0 -0
- /package/lib/interaction/{native/elementSelectByX.d.ts → elementSelectByX.d.ts} +0 -0
- /package/lib/interaction/{native/fisheye.d.ts → fisheye.d.ts} +0 -0
- /package/lib/interaction/{native/legendFilter.d.ts → legendFilter.d.ts} +0 -0
- /package/lib/interaction/{native/poptip.d.ts → poptip.d.ts} +0 -0
- /package/lib/interaction/{native/sliderFilter.d.ts → sliderFilter.d.ts} +0 -0
- /package/src/interaction/{native/brushXFilter.ts → brushXFilter.ts} +0 -0
- /package/src/interaction/{native/brushXHighlight.ts → brushXHighlight.ts} +0 -0
- /package/src/interaction/{native/brushYFilter.ts → brushYFilter.ts} +0 -0
- /package/src/interaction/{native/brushYHighlight.ts → brushYHighlight.ts} +0 -0
package/src/runtime/plot.ts
CHANGED
|
@@ -7,7 +7,6 @@ import { mapObject } from '../utils/array';
|
|
|
7
7
|
import { CHART_LIFE_CIRCLE } from '../utils/event';
|
|
8
8
|
import {
|
|
9
9
|
appendTransform,
|
|
10
|
-
compose,
|
|
11
10
|
copyAttributes,
|
|
12
11
|
defined,
|
|
13
12
|
error,
|
|
@@ -27,7 +26,7 @@ import {
|
|
|
27
26
|
PLOT_CLASS_NAME,
|
|
28
27
|
VIEW_CLASS_NAME,
|
|
29
28
|
} from './constant';
|
|
30
|
-
import { createCoordinate } from './coordinate';
|
|
29
|
+
import { coordinate2Transform, createCoordinate } from './coordinate';
|
|
31
30
|
import { computeLayout, placeComponents } from './layout';
|
|
32
31
|
import { useLibrary } from './library';
|
|
33
32
|
import { initializeMark } from './mark';
|
|
@@ -53,8 +52,6 @@ import {
|
|
|
53
52
|
InteractionComponent,
|
|
54
53
|
LabelTransform,
|
|
55
54
|
LabelTransformComponent,
|
|
56
|
-
Scale,
|
|
57
|
-
ScaleComponent,
|
|
58
55
|
Shape,
|
|
59
56
|
ShapeComponent,
|
|
60
57
|
Theme,
|
|
@@ -65,6 +62,7 @@ import {
|
|
|
65
62
|
G2AnimationOptions,
|
|
66
63
|
G2CompositionOptions,
|
|
67
64
|
G2Context,
|
|
65
|
+
G2GuideComponentOptions,
|
|
68
66
|
G2InteractionOptions,
|
|
69
67
|
G2LabelTransformOptions,
|
|
70
68
|
G2Library,
|
|
@@ -102,6 +100,12 @@ export async function plot<T extends G2ViewTree>(
|
|
|
102
100
|
);
|
|
103
101
|
const typeOf = (node: G2ViewTree) => {
|
|
104
102
|
const { type } = node;
|
|
103
|
+
if (typeof type === 'function') {
|
|
104
|
+
// @ts-ignore
|
|
105
|
+
const { props = {} } = type;
|
|
106
|
+
const { composite = true } = props;
|
|
107
|
+
if (composite) return 'mark';
|
|
108
|
+
}
|
|
105
109
|
return typeof type === 'string' && marks.has(type) ? 'mark' : type;
|
|
106
110
|
};
|
|
107
111
|
const isMark = (node: G2ViewTree) => typeOf(node) === 'mark';
|
|
@@ -136,7 +140,9 @@ export async function plot<T extends G2ViewTree>(
|
|
|
136
140
|
|
|
137
141
|
// Transform children, they will be transformed into
|
|
138
142
|
// standardView if they are mark or view node.
|
|
139
|
-
const transformedNodes = children
|
|
143
|
+
const transformedNodes = children
|
|
144
|
+
.flatMap(transform)
|
|
145
|
+
.map((d) => coordinate2Transform(d, library));
|
|
140
146
|
discovered.push(...transformedNodes);
|
|
141
147
|
|
|
142
148
|
// Only StandardView can be treated as facet and it
|
|
@@ -226,7 +232,7 @@ export async function plot<T extends G2ViewTree>(
|
|
|
226
232
|
// Apply interactions.
|
|
227
233
|
for (const option of inferInteraction(options)) {
|
|
228
234
|
const interaction = useInteraction(option);
|
|
229
|
-
const destroy = interaction(target, enterViewInstances);
|
|
235
|
+
const destroy = interaction(target, enterViewInstances, context.emitter);
|
|
230
236
|
nameInteraction.set(option.type, { destroy });
|
|
231
237
|
}
|
|
232
238
|
}
|
|
@@ -243,7 +249,7 @@ export async function plot<T extends G2ViewTree>(
|
|
|
243
249
|
|
|
244
250
|
// Apply new interaction.
|
|
245
251
|
const interaction = useInteraction(option);
|
|
246
|
-
const destroy = interaction(target, updateViewInstances);
|
|
252
|
+
const destroy = interaction(target, updateViewInstances, context.emitter);
|
|
247
253
|
nameInteraction.set(options.type, { destroy });
|
|
248
254
|
}
|
|
249
255
|
}
|
|
@@ -311,8 +317,78 @@ async function initializeView(
|
|
|
311
317
|
options: G2View,
|
|
312
318
|
library: G2Library,
|
|
313
319
|
): Promise<[G2ViewDescriptor, G2ViewTree[]]> {
|
|
314
|
-
const
|
|
315
|
-
|
|
320
|
+
const flattenOptions = await transformMarks(options, library);
|
|
321
|
+
|
|
322
|
+
const mergedOptions = bubbleOptions(flattenOptions);
|
|
323
|
+
// @todo Remove this.
|
|
324
|
+
// !!! NOTE: Mute original view options.
|
|
325
|
+
// Update interaction and coordinate for this view.
|
|
326
|
+
options.interaction = mergedOptions.interaction;
|
|
327
|
+
options.coordinate = mergedOptions.coordinate;
|
|
328
|
+
|
|
329
|
+
const transformedOptions = coordinate2Transform(mergedOptions, library);
|
|
330
|
+
const state = await initializeMarks(transformedOptions, library);
|
|
331
|
+
return initializeState(state, transformedOptions, library);
|
|
332
|
+
}
|
|
333
|
+
|
|
334
|
+
function bubbleOptions(options: G2View): G2View {
|
|
335
|
+
const {
|
|
336
|
+
coordinate: viewCoordinate = {},
|
|
337
|
+
interaction: viewInteraction = {},
|
|
338
|
+
marks,
|
|
339
|
+
...rest
|
|
340
|
+
} = options;
|
|
341
|
+
const markCoordinates = marks.map((d) => d.coordinate || {});
|
|
342
|
+
const markInteractions = marks.map((d) => d.interaction || {});
|
|
343
|
+
const newCoordinate = [...markCoordinates, viewCoordinate].reduceRight(
|
|
344
|
+
(prev, cur) => deepMix(prev, cur),
|
|
345
|
+
{},
|
|
346
|
+
);
|
|
347
|
+
const newInteraction = [viewInteraction, ...markInteractions].reduce(
|
|
348
|
+
(prev, cur) => deepMix(prev, cur),
|
|
349
|
+
{},
|
|
350
|
+
);
|
|
351
|
+
return {
|
|
352
|
+
...rest,
|
|
353
|
+
marks,
|
|
354
|
+
coordinate: newCoordinate,
|
|
355
|
+
interaction: newInteraction,
|
|
356
|
+
};
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
async function transformMarks(
|
|
360
|
+
options: G2View,
|
|
361
|
+
library: G2Library,
|
|
362
|
+
): Promise<G2View> {
|
|
363
|
+
const [useMark, createMark] = useLibrary<G2MarkOptions, MarkComponent, Mark>(
|
|
364
|
+
'mark',
|
|
365
|
+
library,
|
|
366
|
+
);
|
|
367
|
+
|
|
368
|
+
const { marks } = options;
|
|
369
|
+
const flattenMarks = [];
|
|
370
|
+
const discovered = [...marks];
|
|
371
|
+
|
|
372
|
+
// Pre order traversal.
|
|
373
|
+
while (discovered.length) {
|
|
374
|
+
const [node] = discovered.splice(0, 1);
|
|
375
|
+
// Apply data transform to get data.
|
|
376
|
+
const mark = (await applyTransform(node, library)) as G2Mark;
|
|
377
|
+
const { type = error('G2Mark type is required.'), key } = mark;
|
|
378
|
+
const { props = {} } = createMark(type);
|
|
379
|
+
const { composite = true } = props;
|
|
380
|
+
if (!composite) flattenMarks.push(mark);
|
|
381
|
+
else {
|
|
382
|
+
// Convert composite mark to marks.
|
|
383
|
+
const marks = await (
|
|
384
|
+
useMark as (options: G2MarkOptions) => CompositeMark
|
|
385
|
+
)(mark)(options);
|
|
386
|
+
const M = Array.isArray(marks) ? marks : [marks];
|
|
387
|
+
discovered.unshift(...M.map((d, i) => ({ ...d, key: `${key}-${i}` })));
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
|
|
391
|
+
return { ...options, marks: flattenMarks };
|
|
316
392
|
}
|
|
317
393
|
|
|
318
394
|
async function initializeMarks(
|
|
@@ -323,7 +399,7 @@ async function initializeMarks(
|
|
|
323
399
|
'theme',
|
|
324
400
|
library,
|
|
325
401
|
);
|
|
326
|
-
const [
|
|
402
|
+
const [, createMark] = useLibrary<G2MarkOptions, MarkComponent, Mark>(
|
|
327
403
|
'mark',
|
|
328
404
|
library,
|
|
329
405
|
);
|
|
@@ -336,31 +412,10 @@ async function initializeMarks(
|
|
|
336
412
|
const theme = useTheme(inferTheme(partialTheme));
|
|
337
413
|
const markState = new Map<G2Mark, G2MarkState>();
|
|
338
414
|
|
|
339
|
-
// Apply data transform to get data.
|
|
340
|
-
const dataMarks = [];
|
|
341
|
-
for (const mark of partialMarks) {
|
|
342
|
-
const dataMark = await applyTransform(mark, library);
|
|
343
|
-
dataMarks.push(dataMark);
|
|
344
|
-
}
|
|
345
|
-
|
|
346
|
-
// Convert composite mark to single mark.
|
|
347
|
-
const flattenMarks = await Promise.all(
|
|
348
|
-
dataMarks.map(async (mark) => {
|
|
349
|
-
const { type = error('G2Mark type is required.'), key } = mark;
|
|
350
|
-
const { props } = createMark(type);
|
|
351
|
-
const { composite = false } = props;
|
|
352
|
-
if (!composite) return mark;
|
|
353
|
-
const marks = await (
|
|
354
|
-
useMark as (options: G2MarkOptions) => CompositeMark
|
|
355
|
-
)(mark)(options);
|
|
356
|
-
return marks.map((d, i) => ({ key: `${key}-${i}`, ...d }));
|
|
357
|
-
}),
|
|
358
|
-
).then((res) => res.flat());
|
|
359
|
-
|
|
360
415
|
// Initialize channels for marks.
|
|
361
|
-
for (const markOptions of
|
|
416
|
+
for (const markOptions of partialMarks) {
|
|
362
417
|
const { type } = markOptions;
|
|
363
|
-
const { props } = createMark(type);
|
|
418
|
+
const { props = {} } = createMark(type);
|
|
364
419
|
const markAndState = await initializeMark(markOptions, props, library);
|
|
365
420
|
if (markAndState) {
|
|
366
421
|
const [initializedMark, state] = markAndState;
|
|
@@ -419,16 +474,24 @@ function initializeState(
|
|
|
419
474
|
'mark',
|
|
420
475
|
library,
|
|
421
476
|
);
|
|
422
|
-
const [useScale] = useLibrary<G2ScaleOptions, ScaleComponent, Scale>(
|
|
423
|
-
'scale',
|
|
424
|
-
library,
|
|
425
|
-
);
|
|
426
477
|
const [useTheme] = useLibrary<G2ThemeOptions, ThemeComponent, Theme>(
|
|
427
478
|
'theme',
|
|
428
479
|
library,
|
|
429
480
|
);
|
|
481
|
+
const [useLabelTransform] = useLibrary<
|
|
482
|
+
G2LabelTransformOptions,
|
|
483
|
+
LabelTransformComponent,
|
|
484
|
+
LabelTransform
|
|
485
|
+
>('labelTransform', library);
|
|
430
486
|
|
|
431
|
-
const {
|
|
487
|
+
const {
|
|
488
|
+
key,
|
|
489
|
+
frame = false,
|
|
490
|
+
theme: partialTheme,
|
|
491
|
+
clip,
|
|
492
|
+
style = {},
|
|
493
|
+
labelTransform = [],
|
|
494
|
+
} = options;
|
|
432
495
|
|
|
433
496
|
const theme = useTheme(inferTheme(partialTheme));
|
|
434
497
|
|
|
@@ -438,7 +501,11 @@ function initializeState(
|
|
|
438
501
|
new Set(states.flatMap((d) => d.channels.map((d) => d.scale))),
|
|
439
502
|
);
|
|
440
503
|
|
|
441
|
-
const components = inferComponent(
|
|
504
|
+
const components = inferComponent(
|
|
505
|
+
inferComponentScales(Array.from(scales), states, markState),
|
|
506
|
+
options,
|
|
507
|
+
library,
|
|
508
|
+
);
|
|
442
509
|
const layout = computeLayout(components, options);
|
|
443
510
|
const coordinate = createCoordinate(layout, options, library);
|
|
444
511
|
const framedStyle = frame
|
|
@@ -465,7 +532,7 @@ function initializeState(
|
|
|
465
532
|
modifier,
|
|
466
533
|
key: markKey,
|
|
467
534
|
} = mark;
|
|
468
|
-
const { index, channels } = state;
|
|
535
|
+
const { index, channels, tooltip } = state;
|
|
469
536
|
const scale = Object.fromEntries(
|
|
470
537
|
channels.map(({ name, scale }) => [name, scale]),
|
|
471
538
|
);
|
|
@@ -486,13 +553,29 @@ function initializeState(
|
|
|
486
553
|
);
|
|
487
554
|
const count = dataDomain || I.length;
|
|
488
555
|
const T = modifier ? modifier(P, count, layout) : [];
|
|
556
|
+
const titleOf = (i) => tooltip.title?.[i]?.value;
|
|
557
|
+
const itemsOf = (i) => tooltip.items.map((V) => V[i]);
|
|
489
558
|
const visualData: Record<string, any>[] = I.map((d, i) => {
|
|
490
|
-
const datum = {
|
|
559
|
+
const datum = {
|
|
560
|
+
points: P[i],
|
|
561
|
+
transform: T[i],
|
|
562
|
+
index: d,
|
|
563
|
+
markKey,
|
|
564
|
+
viewKey: key,
|
|
565
|
+
...(tooltip && {
|
|
566
|
+
title: titleOf(d),
|
|
567
|
+
items: itemsOf(d),
|
|
568
|
+
}),
|
|
569
|
+
};
|
|
491
570
|
for (const [k, V] of Object.entries(value)) {
|
|
492
571
|
datum[k] = V[d];
|
|
493
572
|
if (S) datum[`series${upperFirst(k)}`] = S[i].map((i) => V[i]);
|
|
494
573
|
}
|
|
495
574
|
if (S) datum['seriesIndex'] = S[i];
|
|
575
|
+
if (S && tooltip) {
|
|
576
|
+
datum['seriesItems'] = S[i].map((si) => itemsOf(si));
|
|
577
|
+
datum['seriesTitle'] = S[i].map((si) => titleOf(si));
|
|
578
|
+
}
|
|
496
579
|
return datum;
|
|
497
580
|
});
|
|
498
581
|
state.data = visualData;
|
|
@@ -518,14 +601,14 @@ function initializeState(
|
|
|
518
601
|
clip,
|
|
519
602
|
scale: scaleInstance,
|
|
520
603
|
style: framedStyle,
|
|
604
|
+
labelTransform: composeLabelTransform(
|
|
605
|
+
labelTransform.map(useLabelTransform),
|
|
606
|
+
),
|
|
521
607
|
};
|
|
522
608
|
|
|
523
609
|
return [view, children];
|
|
524
610
|
}
|
|
525
611
|
|
|
526
|
-
/**
|
|
527
|
-
* @todo Extract className as constants.
|
|
528
|
-
*/
|
|
529
612
|
async function plotView(
|
|
530
613
|
view: G2ViewDescriptor,
|
|
531
614
|
selection: Selection,
|
|
@@ -589,9 +672,14 @@ async function plotView(
|
|
|
589
672
|
(exit) => exit.remove(),
|
|
590
673
|
);
|
|
591
674
|
|
|
675
|
+
const animationExtent = computeAnimationExtent(markState);
|
|
676
|
+
|
|
677
|
+
const componentAnimateOptions = animationExtent
|
|
678
|
+
? { duration: animationExtent[1] }
|
|
679
|
+
: false;
|
|
592
680
|
// Render components.
|
|
593
681
|
// @todo renderComponent return ctor and options.
|
|
594
|
-
selection
|
|
682
|
+
const componentsTransitions = selection
|
|
595
683
|
.selectAll(className(COMPONENT_CLASS_NAME))
|
|
596
684
|
.data(components, (d, i) => `${d.type}-${i}`)
|
|
597
685
|
.join(
|
|
@@ -601,25 +689,31 @@ async function plotView(
|
|
|
601
689
|
.style('zIndex', ({ zIndex }) => zIndex || -1)
|
|
602
690
|
.attr('className', COMPONENT_CLASS_NAME)
|
|
603
691
|
.append((options) =>
|
|
604
|
-
renderComponent(
|
|
692
|
+
renderComponent(
|
|
693
|
+
deepMix({ animate: componentAnimateOptions }, options),
|
|
694
|
+
coordinate,
|
|
695
|
+
theme,
|
|
696
|
+
library,
|
|
697
|
+
),
|
|
605
698
|
),
|
|
606
699
|
(update) =>
|
|
607
|
-
update.
|
|
700
|
+
update.transition(function (options: G2GuideComponentOptions) {
|
|
608
701
|
const { preserve = false } = options;
|
|
609
702
|
if (preserve) return;
|
|
610
703
|
const newComponent = renderComponent(
|
|
611
|
-
options,
|
|
704
|
+
deepMix({ animate: componentAnimateOptions }, options),
|
|
612
705
|
coordinate,
|
|
613
706
|
theme,
|
|
614
707
|
library,
|
|
615
708
|
);
|
|
616
709
|
const { attributes } = newComponent;
|
|
617
710
|
const [node] = this.childNodes;
|
|
618
|
-
node.update(
|
|
711
|
+
return node.update(attributes);
|
|
619
712
|
}),
|
|
620
|
-
)
|
|
713
|
+
)
|
|
714
|
+
.transitions();
|
|
621
715
|
|
|
622
|
-
|
|
716
|
+
transitions.push(...componentsTransitions.flat().filter(defined));
|
|
623
717
|
|
|
624
718
|
// Main layer is for showing the main visual representation such as marks. There
|
|
625
719
|
// may be multiple main layers for a view, each main layer correspond to one of marks.
|
|
@@ -654,12 +748,14 @@ async function plotView(
|
|
|
654
748
|
// Render marks with corresponding data.
|
|
655
749
|
for (const [mark, state] of markState.entries()) {
|
|
656
750
|
const { data } = state;
|
|
657
|
-
const { key, class: cls } = mark;
|
|
751
|
+
const { key, class: cls, type } = mark;
|
|
658
752
|
const shapeFunction = createMarkShapeFunction(mark, state, view, library);
|
|
659
753
|
const enterFunction = createEnterFunction(mark, state, view, library);
|
|
660
754
|
const updateFunction = createUpdateFunction(mark, state, view, library);
|
|
661
755
|
const exitFunction = createExitFunction(mark, state, view, library);
|
|
662
756
|
const facetElements = selectFacetElements(selection, cls, 'element');
|
|
757
|
+
const classNames = [ELEMENT_CLASS_NAME];
|
|
758
|
+
if (typeof type === 'string') classNames.push(type);
|
|
663
759
|
const T = selection
|
|
664
760
|
.select(`#${key}`)
|
|
665
761
|
.selectAll(className(ELEMENT_CLASS_NAME))
|
|
@@ -673,7 +769,7 @@ async function plotView(
|
|
|
673
769
|
(enter) =>
|
|
674
770
|
enter
|
|
675
771
|
.append(shapeFunction)
|
|
676
|
-
.attr('className',
|
|
772
|
+
.attr('className', classNames.join(' '))
|
|
677
773
|
.transition(function (data) {
|
|
678
774
|
return enterFunction(data, [this]);
|
|
679
775
|
}),
|
|
@@ -810,7 +906,9 @@ function plotLabel(
|
|
|
810
906
|
const { coordinate } = view;
|
|
811
907
|
for (const [label, shapes] of labelGroups) {
|
|
812
908
|
const { transform = [] } = label;
|
|
813
|
-
const transformFunction =
|
|
909
|
+
const transformFunction = composeLabelTransform(
|
|
910
|
+
transform.map(useLabelTransform),
|
|
911
|
+
);
|
|
814
912
|
transformFunction(shapes, coordinate);
|
|
815
913
|
}
|
|
816
914
|
|
|
@@ -820,6 +918,15 @@ function plotLabel(
|
|
|
820
918
|
}
|
|
821
919
|
}
|
|
822
920
|
|
|
921
|
+
function composeLabelTransform(transform: LabelTransform[]): LabelTransform {
|
|
922
|
+
return (labels, coordinate) => {
|
|
923
|
+
for (const t of transform) {
|
|
924
|
+
labels = t(labels, coordinate);
|
|
925
|
+
}
|
|
926
|
+
return labels;
|
|
927
|
+
};
|
|
928
|
+
}
|
|
929
|
+
|
|
823
930
|
function getLabels(
|
|
824
931
|
label: Record<string, any>,
|
|
825
932
|
labelIndex: number,
|
|
@@ -919,9 +1026,15 @@ function createLabelShapeFunction(
|
|
|
919
1026
|
return (options) => {
|
|
920
1027
|
const { index, points } = options;
|
|
921
1028
|
const datum = abstractData[index];
|
|
922
|
-
const {
|
|
923
|
-
|
|
924
|
-
|
|
1029
|
+
const {
|
|
1030
|
+
formatter = (d) => `${d}`,
|
|
1031
|
+
transform,
|
|
1032
|
+
style: abstractStyle,
|
|
1033
|
+
...abstractOptions
|
|
1034
|
+
} = options;
|
|
1035
|
+
const visualOptions = mapObject(
|
|
1036
|
+
{ ...abstractOptions, ...abstractStyle } as Record<string, any>,
|
|
1037
|
+
(d) => valueOf(d, datum, index, abstractData),
|
|
925
1038
|
);
|
|
926
1039
|
const { shape = defaultLabelShape, text, ...style } = visualOptions;
|
|
927
1040
|
const f = typeof formatter === 'string' ? format(formatter) : formatter;
|
|
@@ -952,17 +1065,22 @@ function computeAnimationExtent(markState): [number, number] {
|
|
|
952
1065
|
for (const [mark, state] of markState) {
|
|
953
1066
|
const { animate = {} } = mark;
|
|
954
1067
|
const { data } = state;
|
|
1068
|
+
const { enter = {}, update = {}, exit = {} } = animate;
|
|
1069
|
+
const {
|
|
1070
|
+
type: defaultUpdateType,
|
|
1071
|
+
duration: defaultUpdateDuration = 300,
|
|
1072
|
+
delay: defaultUpdateDelay = 0,
|
|
1073
|
+
} = update;
|
|
955
1074
|
const {
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
} = animate;
|
|
1075
|
+
type: defaultEnterType,
|
|
1076
|
+
duration: defaultEnterDuration = 300,
|
|
1077
|
+
delay: defaultEnterDelay = 0,
|
|
1078
|
+
} = enter;
|
|
1079
|
+
const {
|
|
1080
|
+
type: defaultExitType,
|
|
1081
|
+
duration: defaultExitDuration = 300,
|
|
1082
|
+
delay: defaultExitDelay = 0,
|
|
1083
|
+
} = exit;
|
|
966
1084
|
for (const d of data) {
|
|
967
1085
|
const {
|
|
968
1086
|
updateType = defaultUpdateType,
|
|
@@ -1103,7 +1221,7 @@ function createAnimationFunction(
|
|
|
1103
1221
|
shapeName(mark, defaultShape),
|
|
1104
1222
|
).props;
|
|
1105
1223
|
const { [type]: defaultEffectTiming = {} } = theme;
|
|
1106
|
-
const animate =
|
|
1224
|
+
const animate = mark.animate?.[type] || {};
|
|
1107
1225
|
return (data, from, to) => {
|
|
1108
1226
|
const {
|
|
1109
1227
|
[`${type}Type`]: animation,
|
|
@@ -1183,16 +1301,17 @@ function inferTheme(theme: G2ThemeOptions = { type: 'light' }): G2ThemeOptions {
|
|
|
1183
1301
|
* @todo Infer builtin tooltips.
|
|
1184
1302
|
*/
|
|
1185
1303
|
function inferInteraction(view: G2View): G2InteractionOptions[] {
|
|
1186
|
-
const
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1304
|
+
const defaults = {
|
|
1305
|
+
event: true,
|
|
1306
|
+
tooltip: true,
|
|
1307
|
+
};
|
|
1308
|
+
const { interaction = {} } = view;
|
|
1309
|
+
return Object.entries(deepMix(defaults, interaction))
|
|
1310
|
+
.filter((d) => !!d[1])
|
|
1311
|
+
.map(([key, value]) => ({
|
|
1312
|
+
type: key,
|
|
1313
|
+
...(value as Record<string, any>),
|
|
1314
|
+
}));
|
|
1196
1315
|
}
|
|
1197
1316
|
|
|
1198
1317
|
async function applyTransform<T extends G2ViewTree>(
|
|
@@ -1237,9 +1356,10 @@ function animateBBox(selection: Selection, extent: [number, number]) {
|
|
|
1237
1356
|
});
|
|
1238
1357
|
}
|
|
1239
1358
|
|
|
1240
|
-
function shapeName(mark
|
|
1359
|
+
function shapeName(mark, name) {
|
|
1241
1360
|
const { type } = mark;
|
|
1242
|
-
return `${type}.${name}`;
|
|
1361
|
+
if (typeof name === 'string') return `${type}.${name}`;
|
|
1362
|
+
return name;
|
|
1243
1363
|
}
|
|
1244
1364
|
|
|
1245
1365
|
/**
|
|
@@ -1296,6 +1416,48 @@ function applyClip(selection, clip?: boolean) {
|
|
|
1296
1416
|
});
|
|
1297
1417
|
}
|
|
1298
1418
|
|
|
1419
|
+
function inferComponentScales(
|
|
1420
|
+
scales: G2ScaleOptions[],
|
|
1421
|
+
states: G2MarkState[],
|
|
1422
|
+
markState: Map<G2Mark, G2MarkState>,
|
|
1423
|
+
): G2ScaleOptions[] {
|
|
1424
|
+
// add shape scale to state.
|
|
1425
|
+
|
|
1426
|
+
// for cell, omit shape scale.
|
|
1427
|
+
// @todo support shape scale for cell.
|
|
1428
|
+
for (const [key] of markState.entries()) {
|
|
1429
|
+
if (key.type === 'cell') {
|
|
1430
|
+
return scales.filter((scale) => scale.name !== 'shape');
|
|
1431
|
+
}
|
|
1432
|
+
}
|
|
1433
|
+
|
|
1434
|
+
// can't infer shape scale if there are multiple states.
|
|
1435
|
+
if (states.length !== 1 || scales.some((scale) => scale.name === 'shape')) {
|
|
1436
|
+
return scales;
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
const { defaultShape: shape } = states[0];
|
|
1440
|
+
const acceptMarkTypes = ['point', 'line', 'rect', 'hollow'];
|
|
1441
|
+
if (!acceptMarkTypes.includes(shape)) return scales;
|
|
1442
|
+
const shapeMap = {
|
|
1443
|
+
point: 'point',
|
|
1444
|
+
line: 'hyphen',
|
|
1445
|
+
rect: 'square',
|
|
1446
|
+
hollow: 'hollow',
|
|
1447
|
+
};
|
|
1448
|
+
|
|
1449
|
+
// create shape scale
|
|
1450
|
+
const field = scales.find((scale) => scale.name === 'color')?.field || null;
|
|
1451
|
+
const shapeScale = {
|
|
1452
|
+
field,
|
|
1453
|
+
name: 'shape',
|
|
1454
|
+
type: 'constant',
|
|
1455
|
+
domain: [],
|
|
1456
|
+
range: [shapeMap[shape]],
|
|
1457
|
+
};
|
|
1458
|
+
return [...scales, shapeScale];
|
|
1459
|
+
}
|
|
1460
|
+
|
|
1299
1461
|
export function applyStyle(
|
|
1300
1462
|
selection: Selection,
|
|
1301
1463
|
style: Record<string, Primitive>,
|
package/src/runtime/scale.ts
CHANGED
package/src/runtime/transform.ts
CHANGED
|
@@ -1,7 +1,14 @@
|
|
|
1
1
|
import { Primitive } from 'd3-array';
|
|
2
2
|
import { deepMix } from '@antv/util';
|
|
3
|
+
import { format } from 'd3-format';
|
|
3
4
|
import { indexOf, mapObject } from '../utils/array';
|
|
4
|
-
import {
|
|
5
|
+
import {
|
|
6
|
+
composeAsync,
|
|
7
|
+
defined,
|
|
8
|
+
isStrictObject,
|
|
9
|
+
isUnset,
|
|
10
|
+
} from '../utils/helper';
|
|
11
|
+
import { isFullTooltip } from '../utils/mark';
|
|
5
12
|
import { useLibrary } from './library';
|
|
6
13
|
import { createColumnOf } from './mark';
|
|
7
14
|
import { Data, DataComponent } from './types/data';
|
|
@@ -77,7 +84,6 @@ export function inferChannelsType(
|
|
|
77
84
|
return [I, { ...mark, encode: typedEncode }];
|
|
78
85
|
}
|
|
79
86
|
|
|
80
|
-
// @todo Move visual property to style instead of flagging visual.
|
|
81
87
|
export function maybeVisualChannel(
|
|
82
88
|
I: number[],
|
|
83
89
|
mark: G2Mark,
|
|
@@ -88,7 +94,7 @@ export function maybeVisualChannel(
|
|
|
88
94
|
const newEncode = mapObject(encode, (channel, name) => {
|
|
89
95
|
const { type } = channel;
|
|
90
96
|
if (type !== 'constant' || isPosition(name)) return channel;
|
|
91
|
-
return { ...channel,
|
|
97
|
+
return { ...channel, constant: true };
|
|
92
98
|
});
|
|
93
99
|
return [I, { ...mark, encode: newEncode }];
|
|
94
100
|
}
|
|
@@ -106,6 +112,94 @@ export function extractColumns(
|
|
|
106
112
|
return [I, { ...mark, encode: valuedEncode }];
|
|
107
113
|
}
|
|
108
114
|
|
|
115
|
+
/**
|
|
116
|
+
* Normalize mark.tooltip to {title, items}.
|
|
117
|
+
*/
|
|
118
|
+
export function normalizeTooltip(
|
|
119
|
+
I: number[],
|
|
120
|
+
mark: G2Mark,
|
|
121
|
+
context: TransformContext,
|
|
122
|
+
): [number[], G2Mark] {
|
|
123
|
+
const { tooltip = {} } = mark;
|
|
124
|
+
if (isUnset(tooltip)) return [I, mark];
|
|
125
|
+
if (Array.isArray(tooltip)) {
|
|
126
|
+
return [I, { ...mark, tooltip: { items: tooltip } }];
|
|
127
|
+
}
|
|
128
|
+
if (isStrictObject(tooltip) && isFullTooltip(tooltip)) {
|
|
129
|
+
return [I, { ...mark, tooltip }];
|
|
130
|
+
}
|
|
131
|
+
return [I, { ...mark, tooltip: { items: [tooltip] } }];
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export function extractTooltip(
|
|
135
|
+
I: number[],
|
|
136
|
+
mark: G2Mark,
|
|
137
|
+
context: TransformContext,
|
|
138
|
+
): [number[], G2Mark] {
|
|
139
|
+
const { data, encode, tooltip = {} } = mark;
|
|
140
|
+
if (isUnset(tooltip)) return [I, mark];
|
|
141
|
+
const valueOf = (item) => {
|
|
142
|
+
if (!item) return item;
|
|
143
|
+
if (typeof item === 'string') {
|
|
144
|
+
return I.map((i) => ({ name: item, value: data[i][item] }));
|
|
145
|
+
}
|
|
146
|
+
if (isStrictObject(item)) {
|
|
147
|
+
const {
|
|
148
|
+
field,
|
|
149
|
+
channel,
|
|
150
|
+
color,
|
|
151
|
+
name = field,
|
|
152
|
+
valueFormatter = (d) => d,
|
|
153
|
+
} = item;
|
|
154
|
+
|
|
155
|
+
// Support d3-format.
|
|
156
|
+
const normalizedValueFormatter =
|
|
157
|
+
typeof valueFormatter === 'string'
|
|
158
|
+
? format(valueFormatter)
|
|
159
|
+
: valueFormatter;
|
|
160
|
+
|
|
161
|
+
// Field name.
|
|
162
|
+
const definedChannel = channel && encode[channel];
|
|
163
|
+
const channelField = definedChannel && encode[channel].field;
|
|
164
|
+
const name1 = name || channelField || channel;
|
|
165
|
+
|
|
166
|
+
const values = [];
|
|
167
|
+
for (const i of I) {
|
|
168
|
+
const value1 = field
|
|
169
|
+
? data[i][field]
|
|
170
|
+
: definedChannel
|
|
171
|
+
? encode[channel].value[i]
|
|
172
|
+
: null;
|
|
173
|
+
if (value1) {
|
|
174
|
+
values[i] = {
|
|
175
|
+
name: name1,
|
|
176
|
+
color,
|
|
177
|
+
value: normalizedValueFormatter(value1),
|
|
178
|
+
};
|
|
179
|
+
}
|
|
180
|
+
}
|
|
181
|
+
return values;
|
|
182
|
+
}
|
|
183
|
+
if (typeof item === 'function') {
|
|
184
|
+
const values = [];
|
|
185
|
+
for (const i of I) {
|
|
186
|
+
const v = item(data[i], i, data, encode);
|
|
187
|
+
if (isStrictObject(v)) values[i] = v;
|
|
188
|
+
else values[i] = { value: v };
|
|
189
|
+
}
|
|
190
|
+
return values;
|
|
191
|
+
}
|
|
192
|
+
return item;
|
|
193
|
+
};
|
|
194
|
+
const { title, items = [], ...rest } = tooltip;
|
|
195
|
+
const newTooltip = {
|
|
196
|
+
title: valueOf(title),
|
|
197
|
+
items: Array.isArray(items) ? items.map(valueOf) : [],
|
|
198
|
+
...rest,
|
|
199
|
+
};
|
|
200
|
+
return [I, { ...mark, tooltip: newTooltip }];
|
|
201
|
+
}
|
|
202
|
+
|
|
109
203
|
export function maybeArrayField(
|
|
110
204
|
I: number[],
|
|
111
205
|
mark: G2Mark,
|
|
@@ -191,9 +285,9 @@ export function maybeNonAnimate(
|
|
|
191
285
|
if (animate || animate === undefined) return [I, mark];
|
|
192
286
|
deepMix(mark, {
|
|
193
287
|
animate: {
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
288
|
+
enter: { type: null },
|
|
289
|
+
exit: { type: null },
|
|
290
|
+
update: { type: null },
|
|
197
291
|
},
|
|
198
292
|
});
|
|
199
293
|
return [I, mark];
|