@antv/g2 5.0.0-beta.12 → 5.0.0-beta.13
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 +3 -3
- package/esm/api/chart.d.ts +15 -2
- package/esm/api/chart.js +13 -3
- package/esm/api/chart.js.map +1 -1
- package/esm/api/composition/geoPath.js.map +1 -1
- package/esm/api/mark/index.d.ts +4 -1
- package/esm/api/mark/index.js +2 -1
- package/esm/api/mark/index.js.map +1 -1
- package/esm/api/mark/mark.d.ts +32 -26
- package/esm/api/mark/mark.js +9 -0
- package/esm/api/mark/mark.js.map +1 -1
- package/esm/api/mark/types.d.ts +2 -2
- package/esm/api/props.js +6 -2
- package/esm/api/props.js.map +1 -1
- package/esm/api/types.d.ts +2 -2
- package/esm/component/axis.js +3 -3
- package/esm/component/axis.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/composition/mark.d.ts +1 -1
- package/esm/coordinate/polar.d.ts +3 -2
- package/esm/coordinate/radial.d.ts +3 -2
- package/esm/coordinate/theta.d.ts +1 -0
- 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/index.d.ts +2 -2
- package/esm/index.d.ts +3 -2
- package/esm/index.js +2 -1
- package/esm/index.js.map +1 -1
- package/esm/interaction/{native/brushAxisHighlight.js → brushAxisHighlight.js} +1 -1
- 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/esm/interaction/{native/brushHighlight.js → brushHighlight.js} +1 -1
- 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.js → elementHighlight.js} +1 -1
- package/esm/interaction/elementHighlight.js.map +1 -0
- package/esm/interaction/elementHighlightByColor.js.map +1 -0
- package/esm/interaction/elementHighlightByX.js.map +1 -0
- package/esm/interaction/{native/elementSelect.js → elementSelect.js} +1 -1
- package/esm/interaction/elementSelect.js.map +1 -0
- package/esm/interaction/elementSelectByColor.js.map +1 -0
- package/esm/interaction/elementSelectByX.js.map +1 -0
- package/esm/interaction/event.js +103 -0
- package/esm/interaction/event.js.map +1 -0
- package/esm/interaction/fisheye.js.map +1 -0
- package/esm/interaction/index.d.ts +21 -23
- package/esm/interaction/index.js +21 -24
- package/esm/interaction/index.js.map +1 -1
- package/esm/interaction/{native/legendFilter.js → legendFilter.js} +1 -1
- package/esm/interaction/legendFilter.js.map +1 -0
- package/esm/interaction/{native/legendHighlight.js → legendHighlight.js} +1 -1
- 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/{native/tooltip.js → tooltip.js} +1 -1
- 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/box.d.ts +2 -2
- package/esm/mark/cell.d.ts +2 -2
- package/esm/mark/image.d.ts +2 -2
- package/esm/mark/interval.d.ts +2 -2
- package/esm/mark/line.d.ts +2 -2
- package/esm/mark/link.d.ts +2 -2
- package/esm/mark/point.d.ts +2 -2
- package/esm/mark/polygon.d.ts +2 -2
- package/esm/mark/rect.d.ts +2 -2
- package/esm/mark/text.d.ts +2 -2
- package/esm/mark/vector.d.ts +2 -2
- 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/plot.js +3 -1
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/types/common.d.ts +6 -2
- package/esm/runtime/types/theme.d.ts +2 -2
- package/esm/spec/animate.d.ts +23 -1
- package/esm/spec/component.d.ts +68 -0
- package/esm/spec/component.js +2 -0
- package/esm/spec/component.js.map +1 -0
- package/esm/spec/composition.d.ts +26 -26
- package/esm/spec/coordinate.d.ts +23 -32
- 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 +4 -4
- package/esm/spec/labelTransform.d.ts +5 -5
- package/esm/spec/mark.d.ts +185 -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/transform.d.ts +1 -1
- package/esm/spec/utils.d.ts +4 -0
- package/esm/stdlib/index.js +3 -28
- package/esm/stdlib/index.js.map +1 -1
- package/lib/api/chart.d.ts +15 -2
- package/lib/api/chart.js +13 -3
- package/lib/api/chart.js.map +1 -1
- package/lib/api/composition/geoPath.js.map +1 -1
- package/lib/api/mark/index.d.ts +4 -1
- package/lib/api/mark/index.js +1 -0
- package/lib/api/mark/index.js.map +1 -1
- package/lib/api/mark/mark.d.ts +32 -26
- package/lib/api/mark/mark.js +10 -1
- package/lib/api/mark/mark.js.map +1 -1
- package/lib/api/mark/types.d.ts +2 -2
- package/lib/api/props.js +6 -2
- package/lib/api/props.js.map +1 -1
- package/lib/api/types.d.ts +2 -2
- package/lib/component/axis.js +3 -3
- package/lib/component/axis.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/composition/mark.d.ts +1 -1
- package/lib/coordinate/polar.d.ts +3 -2
- package/lib/coordinate/radial.d.ts +3 -2
- package/lib/coordinate/theta.d.ts +1 -0
- 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/index.d.ts +2 -2
- package/lib/index.d.ts +3 -2
- package/lib/index.js +13 -2
- package/lib/index.js.map +1 -1
- package/lib/interaction/{native/brushAxisHighlight.js → brushAxisHighlight.js} +1 -1
- 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/lib/interaction/{native/brushHighlight.js → brushHighlight.js} +1 -1
- 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.js → elementHighlight.js} +1 -1
- package/lib/interaction/elementHighlight.js.map +1 -0
- package/lib/interaction/elementHighlightByColor.js.map +1 -0
- package/lib/interaction/elementHighlightByX.js.map +1 -0
- package/lib/interaction/{native/elementSelect.js → elementSelect.js} +1 -1
- package/lib/interaction/elementSelect.js.map +1 -0
- package/lib/interaction/elementSelectByColor.js.map +1 -0
- package/lib/interaction/elementSelectByX.js.map +1 -0
- package/lib/interaction/event.js +107 -0
- package/lib/interaction/event.js.map +1 -0
- package/lib/interaction/fisheye.js.map +1 -0
- package/lib/interaction/index.d.ts +21 -23
- package/lib/interaction/index.js +22 -26
- package/lib/interaction/index.js.map +1 -1
- package/lib/interaction/{native/legendFilter.js → legendFilter.js} +1 -1
- package/lib/interaction/legendFilter.js.map +1 -0
- package/lib/interaction/{native/legendHighlight.js → legendHighlight.js} +1 -1
- 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/{native/tooltip.js → tooltip.js} +1 -1
- 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/box.d.ts +2 -2
- package/lib/mark/cell.d.ts +2 -2
- package/lib/mark/image.d.ts +2 -2
- package/lib/mark/interval.d.ts +2 -2
- package/lib/mark/line.d.ts +2 -2
- package/lib/mark/link.d.ts +2 -2
- package/lib/mark/point.d.ts +2 -2
- package/lib/mark/polygon.d.ts +2 -2
- package/lib/mark/rect.d.ts +2 -2
- package/lib/mark/text.d.ts +2 -2
- package/lib/mark/vector.d.ts +2 -2
- 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/plot.js +3 -1
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/types/common.d.ts +6 -2
- package/lib/runtime/types/theme.d.ts +2 -2
- package/lib/spec/animate.d.ts +23 -1
- package/lib/spec/component.d.ts +68 -0
- package/lib/spec/{action.js → component.js} +1 -1
- package/lib/spec/component.js.map +1 -0
- package/lib/spec/composition.d.ts +26 -26
- package/lib/spec/coordinate.d.ts +23 -32
- package/lib/spec/coordinateTransform.d.ts +13 -0
- package/lib/spec/{title.js → coordinateTransform.js} +1 -1
- 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 +4 -4
- package/lib/spec/labelTransform.d.ts +5 -5
- package/lib/spec/mark.d.ts +185 -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/transform.d.ts +1 -1
- package/lib/spec/utils.d.ts +4 -0
- package/lib/stdlib/index.js +1 -15
- package/lib/stdlib/index.js.map +1 -1
- package/package.json +1 -1
- package/src/api/chart.ts +31 -4
- package/src/api/composition/geoPath.ts +1 -6
- package/src/api/mark/index.ts +4 -0
- package/src/api/mark/mark.ts +49 -37
- package/src/api/mark/types.ts +2 -2
- package/src/api/props.ts +6 -2
- package/src/api/types.ts +4 -2
- package/src/component/axis.ts +3 -0
- package/src/component/scrollbar.ts +2 -1
- package/src/component/slider.ts +2 -1
- package/src/component/title.ts +3 -3
- package/src/composition/mark.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/index.ts +14 -2
- package/src/interaction/{native/brushAxisHighlight.ts → brushAxisHighlight.ts} +1 -1
- package/src/interaction/{native/brushFilter.ts → brushFilter.ts} +4 -4
- package/src/interaction/{native/brushHighlight.ts → brushHighlight.ts} +1 -1
- package/src/interaction/{native/chartIndex.ts → chartIndex.ts} +2 -2
- package/src/interaction/{native/elementHighlight.ts → elementHighlight.ts} +1 -1
- package/src/interaction/{native/elementSelect.ts → elementSelect.ts} +1 -1
- package/src/interaction/event.ts +119 -0
- package/src/interaction/index.ts +21 -57
- package/src/interaction/{native/legendFilter.ts → legendFilter.ts} +1 -1
- package/src/interaction/{native/legendHighlight.ts → legendHighlight.ts} +1 -1
- 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} +1 -1
- 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 +2 -2
- package/src/mark/box.ts +2 -2
- package/src/mark/cell.ts +2 -2
- package/src/mark/image.ts +2 -2
- package/src/mark/interval.ts +2 -2
- package/src/mark/line.ts +2 -2
- package/src/mark/link.ts +2 -2
- package/src/mark/point.ts +2 -2
- package/src/mark/polygon.ts +2 -2
- package/src/mark/rect.ts +2 -2
- package/src/mark/text.ts +2 -2
- package/src/mark/vector.ts +2 -2
- package/src/palette/index.ts +0 -37
- package/src/runtime/plot.ts +3 -2
- package/src/runtime/types/common.ts +7 -2
- package/src/runtime/types/theme.ts +1 -1
- package/src/spec/animate.ts +50 -4
- package/src/spec/component.ts +94 -0
- package/src/spec/composition.ts +40 -28
- package/src/spec/coordinate.ts +20 -36
- 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 +4 -5
- package/src/spec/labelTransform.ts +8 -8
- package/src/spec/mark.ts +359 -0
- package/src/spec/palette.ts +0 -80
- package/src/spec/transform.ts +1 -1
- package/src/spec/utils.ts +11 -2
- package/src/stdlib/index.ts +1 -64
- 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 -17
- 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 -16
- 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 -52
- 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.js.map +0 -1
- package/esm/interaction/native/elementHighlightByX.js.map +0 -1
- package/esm/interaction/native/elementSelect.js.map +0 -1
- package/esm/interaction/native/elementSelectByColor.js.map +0 -1
- package/esm/interaction/native/elementSelectByX.js.map +0 -1
- package/esm/interaction/native/event.js +0 -42
- package/esm/interaction/native/event.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.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.js.map +0 -1
- package/esm/interaction/native/utils.d.ts +0 -47
- package/esm/interaction/native/utils.js +0 -379
- 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 -162
- 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/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 -17
- 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 -16
- 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 -52
- 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.js.map +0 -1
- package/lib/interaction/native/elementHighlightByX.js.map +0 -1
- package/lib/interaction/native/elementSelect.js.map +0 -1
- package/lib/interaction/native/elementSelectByColor.js.map +0 -1
- package/lib/interaction/native/elementSelectByX.js.map +0 -1
- package/lib/interaction/native/event.js +0 -46
- package/lib/interaction/native/event.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.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.js.map +0 -1
- package/lib/interaction/native/utils.d.ts +0 -47
- package/lib/interaction/native/utils.js +0 -400
- 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 -162
- 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/.DS_Store +0 -0
- package/src/data/.DS_Store +0 -0
- 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/event.ts +0 -44
- package/src/interaction/native/utils.ts +0 -455
- 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/shape/.DS_Store +0 -0
- package/src/spec/action.ts +0 -196
- package/src/spec/geometry.ts +0 -335
- package/src/spec/title.ts +0 -3
- /package/esm/interaction/{native/brushAxisHighlight.d.ts → brushAxisHighlight.d.ts} +0 -0
- /package/esm/interaction/{native/brushFilter.d.ts → brushFilter.d.ts} +0 -0
- /package/esm/interaction/{native/brushHighlight.d.ts → brushHighlight.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/elementHighlight.d.ts → elementHighlight.d.ts} +0 -0
- /package/esm/interaction/{native/elementHighlightByColor.d.ts → elementHighlightByColor.d.ts} +0 -0
- /package/esm/interaction/{native/elementHighlightByColor.js → elementHighlightByColor.js} +0 -0
- /package/esm/interaction/{native/elementHighlightByX.d.ts → elementHighlightByX.d.ts} +0 -0
- /package/esm/interaction/{native/elementHighlightByX.js → elementHighlightByX.js} +0 -0
- /package/esm/interaction/{native/elementSelect.d.ts → elementSelect.d.ts} +0 -0
- /package/esm/interaction/{native/elementSelectByColor.d.ts → elementSelectByColor.d.ts} +0 -0
- /package/esm/interaction/{native/elementSelectByColor.js → elementSelectByColor.js} +0 -0
- /package/esm/interaction/{native/elementSelectByX.d.ts → elementSelectByX.d.ts} +0 -0
- /package/esm/interaction/{native/elementSelectByX.js → elementSelectByX.js} +0 -0
- /package/esm/interaction/{native/event.d.ts → event.d.ts} +0 -0
- /package/esm/interaction/{native/fisheye.d.ts → fisheye.d.ts} +0 -0
- /package/esm/interaction/{native/fisheye.js → fisheye.js} +0 -0
- /package/esm/interaction/{native/legendFilter.d.ts → legendFilter.d.ts} +0 -0
- /package/esm/interaction/{native/legendHighlight.d.ts → legendHighlight.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/esm/interaction/{native/tooltip.d.ts → tooltip.d.ts} +0 -0
- /package/lib/interaction/{native/brushAxisHighlight.d.ts → brushAxisHighlight.d.ts} +0 -0
- /package/lib/interaction/{native/brushFilter.d.ts → brushFilter.d.ts} +0 -0
- /package/lib/interaction/{native/brushHighlight.d.ts → brushHighlight.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/elementHighlight.d.ts → elementHighlight.d.ts} +0 -0
- /package/lib/interaction/{native/elementHighlightByColor.d.ts → elementHighlightByColor.d.ts} +0 -0
- /package/lib/interaction/{native/elementHighlightByColor.js → elementHighlightByColor.js} +0 -0
- /package/lib/interaction/{native/elementHighlightByX.d.ts → elementHighlightByX.d.ts} +0 -0
- /package/lib/interaction/{native/elementHighlightByX.js → elementHighlightByX.js} +0 -0
- /package/lib/interaction/{native/elementSelect.d.ts → elementSelect.d.ts} +0 -0
- /package/lib/interaction/{native/elementSelectByColor.d.ts → elementSelectByColor.d.ts} +0 -0
- /package/lib/interaction/{native/elementSelectByColor.js → elementSelectByColor.js} +0 -0
- /package/lib/interaction/{native/elementSelectByX.d.ts → elementSelectByX.d.ts} +0 -0
- /package/lib/interaction/{native/elementSelectByX.js → elementSelectByX.js} +0 -0
- /package/lib/interaction/{native/event.d.ts → event.d.ts} +0 -0
- /package/lib/interaction/{native/fisheye.d.ts → fisheye.d.ts} +0 -0
- /package/lib/interaction/{native/fisheye.js → fisheye.js} +0 -0
- /package/lib/interaction/{native/legendFilter.d.ts → legendFilter.d.ts} +0 -0
- /package/lib/interaction/{native/legendHighlight.d.ts → legendHighlight.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/lib/interaction/{native/tooltip.d.ts → tooltip.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/interaction/{native/elementHighlightByColor.ts → elementHighlightByColor.ts} +0 -0
- /package/src/interaction/{native/elementHighlightByX.ts → elementHighlightByX.ts} +0 -0
- /package/src/interaction/{native/elementSelectByColor.ts → elementSelectByColor.ts} +0 -0
- /package/src/interaction/{native/elementSelectByX.ts → elementSelectByX.ts} +0 -0
- /package/src/interaction/{native/fisheye.ts → fisheye.ts} +0 -0
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { DisplayObject } from '@antv/g';
|
|
2
2
|
import { ascending } from 'd3-array';
|
|
3
|
-
import {
|
|
3
|
+
import { OverlapDodgeYLabelTransform } from '../spec';
|
|
4
4
|
import { LabelTransformComponent as LLC } from '../runtime';
|
|
5
5
|
import { defined } from '../utils/helper';
|
|
6
6
|
|
|
7
|
-
export type OverlapDodgeYOptions = Omit<
|
|
7
|
+
export type OverlapDodgeYOptions = Omit<OverlapDodgeYLabelTransform, 'type'>;
|
|
8
8
|
|
|
9
9
|
function isSegmentIntersect([a, b], [c, d]) {
|
|
10
10
|
return d > a && b > c;
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { DisplayObject } from '@antv/g';
|
|
2
2
|
import { LabelTransformComponent as LLC } from '../runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { OverlapHideLabelTransform } from '../spec';
|
|
4
4
|
import { isOverlap, parseAABB } from '../utils/bounds';
|
|
5
5
|
|
|
6
|
-
export type OverlapHideOptions = Omit<
|
|
6
|
+
export type OverlapHideOptions = Omit<OverlapHideLabelTransform, 'type'>;
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
9
|
* Hide the label when overlap.
|
package/src/mark/area.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { group } from 'd3-array';
|
|
2
2
|
import { MarkComponent as MC } from '../runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { AreaMark } from '../spec';
|
|
4
4
|
import {
|
|
5
5
|
baseGeometryChannels,
|
|
6
6
|
basePostInference,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
tooltip1d,
|
|
9
9
|
} from './utils';
|
|
10
10
|
|
|
11
|
-
export type AreaOptions = Omit<
|
|
11
|
+
export type AreaOptions = Omit<AreaMark, 'type'>;
|
|
12
12
|
|
|
13
13
|
/*
|
|
14
14
|
* Convert value for each channel to area shapes.
|
package/src/mark/box.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Band } from '@antv/scale';
|
|
2
2
|
import { Vector2, MarkComponent as MC } from '../runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { BoxMark } from '../spec';
|
|
4
4
|
import {
|
|
5
5
|
baseGeometryChannels,
|
|
6
6
|
basePostInference,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
tooltip1d,
|
|
9
9
|
} from './utils';
|
|
10
10
|
|
|
11
|
-
export type BoxOptions = Omit<
|
|
11
|
+
export type BoxOptions = Omit<BoxMark, 'type'>;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Convert value for each channel to box shapes.
|
package/src/mark/cell.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Band } from '@antv/scale';
|
|
2
2
|
import { MarkComponent as MC, Vector2 } from '../runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { CellMark } from '../spec';
|
|
4
4
|
import {
|
|
5
5
|
baseGeometryChannels,
|
|
6
6
|
basePostInference,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
tooltip2d,
|
|
9
9
|
} from './utils';
|
|
10
10
|
|
|
11
|
-
export type CellOptions = Omit<
|
|
11
|
+
export type CellOptions = Omit<CellMark, 'type'>;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Convert value for each channel to Cell shapes.
|
package/src/mark/image.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Mark, MarkComponent as MC, Vector2 } from '../runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { ImageMark } from '../spec';
|
|
3
3
|
import {
|
|
4
4
|
baseGeometryChannels,
|
|
5
5
|
basePostInference,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
visualMark,
|
|
10
10
|
} from './utils';
|
|
11
11
|
|
|
12
|
-
export type ImageOptions = Omit<
|
|
12
|
+
export type ImageOptions = Omit<ImageMark, 'type'>;
|
|
13
13
|
|
|
14
14
|
export const Image: MC<ImageOptions> = (options) => {
|
|
15
15
|
const { cartesian } = options;
|
package/src/mark/interval.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Band } from '@antv/scale';
|
|
2
2
|
import { MarkComponent as MC, Vector2 } from '../runtime';
|
|
3
|
-
import {
|
|
3
|
+
import { IntervalMark } from '../spec';
|
|
4
4
|
import {
|
|
5
5
|
baseGeometryChannels,
|
|
6
6
|
basePostInference,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
tooltip1d,
|
|
9
9
|
} from './utils';
|
|
10
10
|
|
|
11
|
-
export type IntervalOptions = Omit<
|
|
11
|
+
export type IntervalOptions = Omit<IntervalMark, 'type'>;
|
|
12
12
|
|
|
13
13
|
function bandWidth(scale: Band, x: any): number {
|
|
14
14
|
return scale.getBandWidth(scale.invert(x));
|
package/src/mark/line.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Vector } from '@antv/coord';
|
|
|
2
2
|
import { group } from 'd3-array';
|
|
3
3
|
import { isParallel } from '../utils/coordinate';
|
|
4
4
|
import { Mark, MarkComponent as MC, Vector2 } from '../runtime';
|
|
5
|
-
import {
|
|
5
|
+
import { LineMark } from '../spec';
|
|
6
6
|
import {
|
|
7
7
|
baseGeometryChannels,
|
|
8
8
|
basePostInference,
|
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
tooltipXd,
|
|
12
12
|
} from './utils';
|
|
13
13
|
|
|
14
|
-
export type LineOptions = Omit<
|
|
14
|
+
export type LineOptions = Omit<LineMark, 'type'>;
|
|
15
15
|
|
|
16
16
|
const line: Mark = (index, scale, value, coordinate) => {
|
|
17
17
|
const { series: S, x: X, y: Y } = value;
|
package/src/mark/link.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkComponent as MC, Vector2 } from '../runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { LineMark } from '../spec';
|
|
3
3
|
import {
|
|
4
4
|
baseGeometryChannels,
|
|
5
5
|
basePostInference,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
tooltip2d,
|
|
9
9
|
} from './utils';
|
|
10
10
|
|
|
11
|
-
export type LinkOptions = Omit<
|
|
11
|
+
export type LinkOptions = Omit<LineMark, 'type'>;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Connect `start` to `end` with single line.
|
package/src/mark/point.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkComponent as MC, Vector2 } from '../runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { PointMark } from '../spec';
|
|
3
3
|
import {
|
|
4
4
|
baseGeometryChannels,
|
|
5
5
|
basePostInference,
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
tooltip2d,
|
|
9
9
|
} from './utils';
|
|
10
10
|
|
|
11
|
-
export type PointOptions = Omit<
|
|
11
|
+
export type PointOptions = Omit<PointMark, 'type'>;
|
|
12
12
|
|
|
13
13
|
/**
|
|
14
14
|
* Convert value for each channel to point shapes.
|
package/src/mark/polygon.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Vector2, MarkComponent as MC } from '../runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { PolygonMark } from '../spec';
|
|
3
3
|
import {
|
|
4
4
|
baseGeometryChannels,
|
|
5
5
|
basePostInference,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
tooltip2d,
|
|
8
8
|
} from './utils';
|
|
9
9
|
|
|
10
|
-
export type PolygonOptions = Omit<
|
|
10
|
+
export type PolygonOptions = Omit<PolygonMark, 'type'>;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Convert value for each channel to polygon shapes.
|
package/src/mark/rect.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkComponent as MC, Vector2 } from '../runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { RectMark } from '../spec';
|
|
3
3
|
import {
|
|
4
4
|
baseGeometryChannels,
|
|
5
5
|
basePostInference,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
tooltip1d,
|
|
8
8
|
} from './utils';
|
|
9
9
|
|
|
10
|
-
export type RectOptions = Omit<
|
|
10
|
+
export type RectOptions = Omit<RectMark, 'type'>;
|
|
11
11
|
|
|
12
12
|
export const Rect: MC<RectOptions> = () => {
|
|
13
13
|
return (index, scale, value, coordinate) => {
|
package/src/mark/text.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkComponent as MC, Vector2, Mark } from '../runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { TextMark } from '../spec';
|
|
3
3
|
import {
|
|
4
4
|
baseGeometryChannels,
|
|
5
5
|
basePostInference,
|
|
@@ -9,7 +9,7 @@ import {
|
|
|
9
9
|
visualMark,
|
|
10
10
|
} from './utils';
|
|
11
11
|
|
|
12
|
-
export type TextOptions = Omit<
|
|
12
|
+
export type TextOptions = Omit<TextMark, 'type'>;
|
|
13
13
|
|
|
14
14
|
export const Text: MC<TextOptions> = (options) => {
|
|
15
15
|
const { cartesian = false } = options;
|
package/src/mark/vector.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { MarkComponent as MC, Vector2 } from '../runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { VectorMark } from '../spec';
|
|
3
3
|
import {
|
|
4
4
|
baseGeometryChannels,
|
|
5
5
|
basePostInference,
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
tooltip2d,
|
|
8
8
|
} from './utils';
|
|
9
9
|
|
|
10
|
-
export type VectorOptions = Omit<
|
|
10
|
+
export type VectorOptions = Omit<VectorMark, 'type'>;
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* Convert value for each channel to start, end.
|
package/src/palette/index.ts
CHANGED
|
@@ -1,41 +1,4 @@
|
|
|
1
1
|
export { Category10 } from './category10';
|
|
2
2
|
export { Category20 } from './category20';
|
|
3
|
-
export { SequentialBlue } from './sequentialBlue';
|
|
4
|
-
export { SequentialDarkBlue } from './sequentialDarkBlue';
|
|
5
|
-
export { SequentialGreen } from './sequentialGreen';
|
|
6
|
-
export { SequentialDarkGreen } from './sequentialDarkGreen';
|
|
7
|
-
export { SequentialGrey } from './sequentialGrey';
|
|
8
|
-
export { SequentialOrange } from './sequentialOrange';
|
|
9
|
-
export { SequentialPink } from './sequentialPink';
|
|
10
|
-
export { SequentialRed } from './sequentialRed';
|
|
11
|
-
export { SequentialYellow } from './sequentialYellow';
|
|
12
|
-
export { SequentialPurple } from './sequentialPurple';
|
|
13
|
-
export { SequentialYellowOrange } from './sequentialYellowOrange';
|
|
14
|
-
export { SequentialYellowGreen } from './sequentialYellowGreen';
|
|
15
|
-
export { SequentialPinkPurple } from './sequentialPinkPurple';
|
|
16
|
-
export { SequentialGreenBlue } from './sequentialGreenBlue';
|
|
17
|
-
export { DivergingGreenYellow } from './divergingGreenYellow';
|
|
18
|
-
export { DivergingRedBlue } from './divergingRedBlue';
|
|
19
|
-
export { DivergingGreenRed } from './divergingGreenRed';
|
|
20
|
-
export { DivergingRedPurple } from './divergingRedPurple';
|
|
21
|
-
|
|
22
3
|
export type { Category10Options } from './category10';
|
|
23
4
|
export type { Category20Options } from './category20';
|
|
24
|
-
export type { SequentialBlueOptions } from './sequentialBlue';
|
|
25
|
-
export type { SequentialDarkBlueOptions } from './sequentialDarkBlue';
|
|
26
|
-
export type { SequentialGreenOptions } from './sequentialGreen';
|
|
27
|
-
export type { SequentialDarkGreenOptions } from './sequentialDarkGreen';
|
|
28
|
-
export type { SequentialGreyOptions } from './sequentialGrey';
|
|
29
|
-
export type { SequentialOrangeOptions } from './sequentialOrange';
|
|
30
|
-
export type { SequentialPinkOptions } from './sequentialPink';
|
|
31
|
-
export type { SequentialRedOptions } from './sequentialRed';
|
|
32
|
-
export type { SequentialYellowOptions } from './sequentialYellow';
|
|
33
|
-
export type { SequentialPurpleOptions } from './sequentialPurple';
|
|
34
|
-
export type { SequentialYellowOrangeOptions } from './sequentialYellowOrange';
|
|
35
|
-
export type { SequentialYellowGreenOptions } from './sequentialYellowGreen';
|
|
36
|
-
export type { SequentialPinkPurpleOptions } from './sequentialPinkPurple';
|
|
37
|
-
export type { SequentialGreenBlueOptions } from './sequentialGreenBlue';
|
|
38
|
-
export type { DivergingGreenYellowOptions } from './divergingGreenYellow';
|
|
39
|
-
export type { DivergingRedBlueOptions } from './divergingRedBlue';
|
|
40
|
-
export type { DivergingGreenRedOptions } from './divergingGreenRed';
|
|
41
|
-
export type { DivergingRedPurpleOptions } from './divergingRedPurple';
|
package/src/runtime/plot.ts
CHANGED
|
@@ -1350,9 +1350,10 @@ function animateBBox(selection: Selection, extent: [number, number]) {
|
|
|
1350
1350
|
});
|
|
1351
1351
|
}
|
|
1352
1352
|
|
|
1353
|
-
function shapeName(mark
|
|
1353
|
+
function shapeName(mark, name) {
|
|
1354
1354
|
const { type } = mark;
|
|
1355
|
-
return `${type}.${name}`;
|
|
1355
|
+
if (typeof name === 'string') return `${type}.${name}`;
|
|
1356
|
+
return name;
|
|
1356
1357
|
}
|
|
1357
1358
|
|
|
1358
1359
|
/**
|
|
@@ -28,8 +28,13 @@ export type G2Title = {
|
|
|
28
28
|
* The vertical spacing between title and subtitle, default is 2.
|
|
29
29
|
*/
|
|
30
30
|
spacing?: number;
|
|
31
|
-
|
|
32
|
-
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Styles.
|
|
34
|
+
*/
|
|
35
|
+
style?: WithPrefix<Omit<TextStyleProps, 'x' | 'y' | 'text'>, 'title'> & // G.Text style for title.
|
|
36
|
+
WithPrefix<Omit<TextStyleProps, 'x' | 'y' | 'text'>, 'subtitle'>; // G.Text style for subtitle.
|
|
37
|
+
};
|
|
33
38
|
|
|
34
39
|
export type G2ViewDescriptor = {
|
|
35
40
|
scale: Record<string, Scale>;
|
package/src/spec/animate.ts
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
+
export type Animation =
|
|
2
|
+
| FadeInAnimation
|
|
3
|
+
| FadeOutAnimation
|
|
4
|
+
| ScaleInXAnimation
|
|
5
|
+
| ScaleOutXAnimation
|
|
6
|
+
| ScaleInYAnimation
|
|
7
|
+
| ScaleOutYAnimation
|
|
8
|
+
| WaveInAnimation
|
|
9
|
+
| MorphingAnimation
|
|
10
|
+
| ZoomInAnimation
|
|
11
|
+
| ZoomOutYAnimation
|
|
12
|
+
| PathInAnimation
|
|
13
|
+
| GrowInXAnimation
|
|
14
|
+
| GrowInYAnimation;
|
|
15
|
+
|
|
1
16
|
export type AnimationTypes =
|
|
2
17
|
| 'fadeIn'
|
|
3
18
|
| 'fadeOut'
|
|
@@ -11,7 +26,38 @@ export type AnimationTypes =
|
|
|
11
26
|
| 'zoomOut'
|
|
12
27
|
| 'pathIn'
|
|
13
28
|
| 'growInX'
|
|
14
|
-
| 'growInY'
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
29
|
+
| 'growInY';
|
|
30
|
+
|
|
31
|
+
export type FadeInAnimation = BaseAnimation<'fadeIn'>;
|
|
32
|
+
|
|
33
|
+
export type FadeOutAnimation = BaseAnimation<'fadeOut'>;
|
|
34
|
+
|
|
35
|
+
export type ScaleInXAnimation = BaseAnimation<'scaleInX'>;
|
|
36
|
+
|
|
37
|
+
export type ScaleOutXAnimation = BaseAnimation<'scaleOutX'>;
|
|
38
|
+
|
|
39
|
+
export type ScaleInYAnimation = BaseAnimation<'scaleInY'>;
|
|
40
|
+
|
|
41
|
+
export type ScaleOutYAnimation = BaseAnimation<'scaleOutY'>;
|
|
42
|
+
|
|
43
|
+
export type WaveInAnimation = BaseAnimation<'waveIn'>;
|
|
44
|
+
|
|
45
|
+
export type MorphingAnimation = BaseAnimation<'morphing'>;
|
|
46
|
+
|
|
47
|
+
export type ZoomInAnimation = BaseAnimation<'zoomIn'>;
|
|
48
|
+
|
|
49
|
+
export type ZoomOutYAnimation = BaseAnimation<'zoomOut'>;
|
|
50
|
+
|
|
51
|
+
export type PathInAnimation = BaseAnimation<'pathIn'>;
|
|
52
|
+
|
|
53
|
+
export type GrowInXAnimation = BaseAnimation<'growInX'>;
|
|
54
|
+
|
|
55
|
+
export type GrowInYAnimation = BaseAnimation<'growInY'>;
|
|
56
|
+
|
|
57
|
+
type BaseAnimation<T> = {
|
|
58
|
+
type?: T;
|
|
59
|
+
duration?: number;
|
|
60
|
+
delay?: number;
|
|
61
|
+
easing?: string;
|
|
62
|
+
fill?: 'forwards' | 'none' | 'backwards' | 'both' | 'auto';
|
|
63
|
+
};
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { Primitive } from '../runtime';
|
|
2
|
+
import { UsePrefix } from './utils';
|
|
3
|
+
|
|
4
|
+
export type Component =
|
|
5
|
+
| TitleComponent
|
|
6
|
+
| AxisComponent
|
|
7
|
+
| LegendComponent
|
|
8
|
+
| ScrollbarComponent
|
|
9
|
+
| SliderComponent
|
|
10
|
+
| TooltipComponent;
|
|
11
|
+
|
|
12
|
+
export type TitleComponent = {
|
|
13
|
+
/**
|
|
14
|
+
* Height of title, default is 36.
|
|
15
|
+
*/
|
|
16
|
+
size?: number;
|
|
17
|
+
/**
|
|
18
|
+
* Text of title.
|
|
19
|
+
*/
|
|
20
|
+
title?: string;
|
|
21
|
+
/**
|
|
22
|
+
* Text of subtitle.
|
|
23
|
+
*/
|
|
24
|
+
subtitle?: string | null;
|
|
25
|
+
/**
|
|
26
|
+
* Align method for title.
|
|
27
|
+
*/
|
|
28
|
+
align?: 'left' | 'center' | 'right';
|
|
29
|
+
/**
|
|
30
|
+
* The vertical spacing between title and subtitle, default is 2.
|
|
31
|
+
*/
|
|
32
|
+
spacing?: number;
|
|
33
|
+
/**
|
|
34
|
+
* Styles.
|
|
35
|
+
*/
|
|
36
|
+
style?: UsePrefix<'title' | 'subtitle', Record<string, any>>;
|
|
37
|
+
};
|
|
38
|
+
|
|
39
|
+
export type AxisComponent = {
|
|
40
|
+
tickCount?: number;
|
|
41
|
+
labelFormatter?: any;
|
|
42
|
+
tickFilter?: any;
|
|
43
|
+
title?: any;
|
|
44
|
+
state?: Partial<
|
|
45
|
+
Record<
|
|
46
|
+
'active' | 'selected' | 'inactive' | 'unselected',
|
|
47
|
+
Record<string, any>
|
|
48
|
+
>
|
|
49
|
+
>;
|
|
50
|
+
[key: string]: any; // @todo
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
export type LegendComponent = {
|
|
54
|
+
tickCount?: number;
|
|
55
|
+
labelFormatter?: any;
|
|
56
|
+
tickFilter?: any;
|
|
57
|
+
title?: any;
|
|
58
|
+
position?: string;
|
|
59
|
+
state?: Partial<
|
|
60
|
+
Record<
|
|
61
|
+
'active' | 'selected' | 'inactive' | 'unselected',
|
|
62
|
+
Record<string, any>
|
|
63
|
+
>
|
|
64
|
+
>;
|
|
65
|
+
[key: string]: any; // @todo
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export type SliderComponent = any; // @todo
|
|
69
|
+
|
|
70
|
+
export type ScrollbarComponent = any; // @todo
|
|
71
|
+
|
|
72
|
+
export type TooltipComponent =
|
|
73
|
+
| TooltipItem
|
|
74
|
+
| TooltipItem[]
|
|
75
|
+
| { title?: Encodeable<TooltipTitle>; items?: TooltipItem[] }
|
|
76
|
+
| null;
|
|
77
|
+
|
|
78
|
+
export type TooltipTitle = string | { field?: string; channel?: string };
|
|
79
|
+
|
|
80
|
+
export type TooltipItem =
|
|
81
|
+
| string
|
|
82
|
+
| { name?: string; color?: string; channel?: string; field?: string }
|
|
83
|
+
| Encodeable<Primitive>
|
|
84
|
+
| Encodeable<TooltipItemValue>;
|
|
85
|
+
|
|
86
|
+
export type TooltipItemValue = {
|
|
87
|
+
name?: string;
|
|
88
|
+
color?: string;
|
|
89
|
+
value?: Primitive;
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
export type Encodeable<T> =
|
|
93
|
+
| T
|
|
94
|
+
| ((d: any, index: number, data: any[], column: any) => T);
|
package/src/spec/composition.ts
CHANGED
|
@@ -1,30 +1,35 @@
|
|
|
1
|
-
import { Geometry } from './geometry';
|
|
2
1
|
import { Theme } from './theme';
|
|
3
|
-
import { Coordinate
|
|
2
|
+
import { Coordinate } from './coordinate';
|
|
4
3
|
import { Interaction } from './interaction';
|
|
5
4
|
import { Transform } from './transform';
|
|
6
5
|
import { Scale } from './scale';
|
|
7
|
-
import { Title } from './title';
|
|
8
6
|
import { Data } from './data';
|
|
9
7
|
import { LabelTransform } from './labelTransform';
|
|
10
|
-
import { Encode } from './encode';
|
|
11
8
|
import { Literal2Object } from './utils';
|
|
9
|
+
import { TitleComponent } from './component';
|
|
10
|
+
import { Mark } from './mark';
|
|
12
11
|
|
|
13
|
-
export type
|
|
14
|
-
| MarkComposition
|
|
12
|
+
export type Composition =
|
|
15
13
|
| ViewComposition
|
|
14
|
+
| GeoViewComposition
|
|
15
|
+
| GeoPathComposition
|
|
16
16
|
| SpaceLayerComposition
|
|
17
17
|
| SpaceFlexComposition
|
|
18
18
|
| RepeatMatrixComposition
|
|
19
19
|
| FacetRectComposition
|
|
20
20
|
| FacetCircleComposition
|
|
21
|
-
| GeoViewComposition
|
|
22
21
|
| TimingKeyframeComposition;
|
|
23
22
|
|
|
24
|
-
export type
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
export type CompositionTypes =
|
|
24
|
+
| 'view'
|
|
25
|
+
| 'getView'
|
|
26
|
+
| 'geoPath'
|
|
27
|
+
| 'spaceLayer'
|
|
28
|
+
| 'spaceFlex'
|
|
29
|
+
| 'facetRect'
|
|
30
|
+
| 'facetCircle'
|
|
31
|
+
| 'repeatMatrix'
|
|
32
|
+
| 'timingKeyframe';
|
|
28
33
|
|
|
29
34
|
export type ViewComposition = {
|
|
30
35
|
type?: 'view';
|
|
@@ -48,12 +53,12 @@ export type ViewComposition = {
|
|
|
48
53
|
insetTop?: number;
|
|
49
54
|
insetBottom?: number;
|
|
50
55
|
insetRight?: number;
|
|
51
|
-
coordinate?: Coordinate
|
|
56
|
+
coordinate?: Coordinate;
|
|
52
57
|
interaction?: Literal2Object<Interaction>;
|
|
53
58
|
transform?: Transform[];
|
|
54
|
-
title?:
|
|
59
|
+
title?: string | TitleComponent;
|
|
55
60
|
theme?: Theme;
|
|
56
|
-
children?:
|
|
61
|
+
children?: Mark[];
|
|
57
62
|
scale?: Record<string, Scale>;
|
|
58
63
|
labelTransform?: LabelTransform[];
|
|
59
64
|
// @todo
|
|
@@ -65,6 +70,19 @@ export type ViewComposition = {
|
|
|
65
70
|
clip?: boolean;
|
|
66
71
|
};
|
|
67
72
|
|
|
73
|
+
export type GeoViewComposition = Omit<ViewComposition, 'type'> & {
|
|
74
|
+
type?: 'geoView';
|
|
75
|
+
// @todo
|
|
76
|
+
coordinate?: Record<string, any>;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export type GeoPathComposition = Omit<ViewComposition, 'type'> & {
|
|
80
|
+
type?: 'geoPath';
|
|
81
|
+
// @todo
|
|
82
|
+
coordinate?: Record<string, any>;
|
|
83
|
+
[key: string]: any; // @todo
|
|
84
|
+
};
|
|
85
|
+
|
|
68
86
|
export type SpaceLayerComposition = {
|
|
69
87
|
type?: 'spaceLayer';
|
|
70
88
|
key?: string;
|
|
@@ -107,7 +125,7 @@ export type FacetRectComposition = {
|
|
|
107
125
|
marginTop?: number;
|
|
108
126
|
marginRight?: number;
|
|
109
127
|
key?: string;
|
|
110
|
-
title?:
|
|
128
|
+
title?: string | TitleComponent;
|
|
111
129
|
encode?: {
|
|
112
130
|
x?: string;
|
|
113
131
|
y?: string;
|
|
@@ -115,6 +133,7 @@ export type FacetRectComposition = {
|
|
|
115
133
|
scale?: {
|
|
116
134
|
x?: Scale;
|
|
117
135
|
y?: Scale;
|
|
136
|
+
color?: Scale;
|
|
118
137
|
};
|
|
119
138
|
shareData?: boolean;
|
|
120
139
|
shareSize?: boolean;
|
|
@@ -137,7 +156,7 @@ export type RepeatMatrixComposition = {
|
|
|
137
156
|
marginTop?: number;
|
|
138
157
|
marginRight?: number;
|
|
139
158
|
transform?: Transform;
|
|
140
|
-
title?:
|
|
159
|
+
title?: string | TitleComponent;
|
|
141
160
|
data?: Data;
|
|
142
161
|
key?: string;
|
|
143
162
|
encode?: {
|
|
@@ -148,6 +167,7 @@ export type RepeatMatrixComposition = {
|
|
|
148
167
|
scale?: {
|
|
149
168
|
x?: Scale;
|
|
150
169
|
y?: Scale;
|
|
170
|
+
color?: Scale;
|
|
151
171
|
};
|
|
152
172
|
// @todo
|
|
153
173
|
axis?: Record<string, any>;
|
|
@@ -168,7 +188,7 @@ export type FacetCircleComposition = {
|
|
|
168
188
|
marginTop?: number;
|
|
169
189
|
marginRight?: number;
|
|
170
190
|
transform?: Transform;
|
|
171
|
-
title?:
|
|
191
|
+
title?: string | TitleComponent;
|
|
172
192
|
data?: Data;
|
|
173
193
|
key?: string;
|
|
174
194
|
encode?: {
|
|
@@ -177,6 +197,7 @@ export type FacetCircleComposition = {
|
|
|
177
197
|
scale?: {
|
|
178
198
|
x?: Scale;
|
|
179
199
|
y?: Scale;
|
|
200
|
+
color?: Scale;
|
|
180
201
|
};
|
|
181
202
|
children?: Node[] | ((facet: FacetContext) => Node);
|
|
182
203
|
// @todo
|
|
@@ -186,7 +207,7 @@ export type FacetCircleComposition = {
|
|
|
186
207
|
};
|
|
187
208
|
|
|
188
209
|
export type TimingKeyframeComposition = {
|
|
189
|
-
type?: '
|
|
210
|
+
type?: 'timingKeyframe';
|
|
190
211
|
duration?: number;
|
|
191
212
|
key?: string;
|
|
192
213
|
easing?: string;
|
|
@@ -195,13 +216,4 @@ export type TimingKeyframeComposition = {
|
|
|
195
216
|
children?: Node[];
|
|
196
217
|
};
|
|
197
218
|
|
|
198
|
-
|
|
199
|
-
type?: 'geoView';
|
|
200
|
-
// @todo
|
|
201
|
-
coordinate?: Record<string, any>;
|
|
202
|
-
};
|
|
203
|
-
|
|
204
|
-
export type GeoPathComposition = Omit<GeoViewComposition, 'type'> & {
|
|
205
|
-
type?: 'geoView';
|
|
206
|
-
encode?: Record<string, Encode>;
|
|
207
|
-
};
|
|
219
|
+
type Node = Mark | Composition;
|