@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
|
@@ -0,0 +1,185 @@
|
|
|
1
|
+
import { MarkComponent } from '../runtime';
|
|
2
|
+
import { Encode } from './encode';
|
|
3
|
+
import { Transform } from './transform';
|
|
4
|
+
import { Scale } from './scale';
|
|
5
|
+
import { Coordinate } from './coordinate';
|
|
6
|
+
import { Animation } from './animate';
|
|
7
|
+
import { Interaction } from './interaction';
|
|
8
|
+
import { Theme } from './theme';
|
|
9
|
+
import { Data } from './data';
|
|
10
|
+
import { AxisComponent, LegendComponent, ScrollbarComponent, SliderComponent, TitleComponent, TooltipComponent } from './component';
|
|
11
|
+
import { Closeable, Literal2Object } from './utils';
|
|
12
|
+
export type Mark = IntervalMark | RectMark | LineMark | PointMark | TextMark | CellMark | AreaMark | NodeMark | EdgeMark | ImageMark | PolygonMark | BoxMark | VectorMark | LineXMark | LineYMark | RangeMark | RangeXMark | RangeYMark | ConnectorMark | SankeyMark | PathMark | TreemapMark | PackMark | BoxPlotMark | ShapeMark | ForceGraphMark | TreeMark | WordCloudMark | CustomMark;
|
|
13
|
+
export type MarkTypes = 'interval' | 'rect' | 'line' | 'point' | 'text' | 'cell' | 'area' | 'node' | 'edge' | 'link' | 'image' | 'polygon' | 'box' | 'vector' | 'lineX' | 'lineY' | 'connector' | 'range' | 'rangeX' | 'rangeY' | 'sankey' | 'path' | 'treemap' | 'pack' | 'boxplot' | 'shape' | 'forceGraph' | 'tree' | 'wordCloud' | MarkComponent;
|
|
14
|
+
export type ChannelTypes = 'x' | 'y' | 'x1' | 'y1' | 'series' | 'color' | 'opacity' | 'shape' | 'size' | 'key' | 'groupKey' | 'position' | 'series' | 'enterType' | 'enterEasing' | 'enterDuration' | 'enterDelay' | 'updateType' | 'updateEasing' | 'updateDuration' | 'updateDelay' | 'exitType' | 'exitEasing' | 'exitDuration' | 'exitDelay' | `position${number}`;
|
|
15
|
+
export type PositionChannelTypes = 'x' | 'y' | 'position' | `position${number}`;
|
|
16
|
+
export type AtheisticChanelTypes = 'size' | 'color' | 'shape' | 'opacity';
|
|
17
|
+
export type BaseMark<T extends MarkTypes, C extends string = ChannelTypes> = {
|
|
18
|
+
type?: T | string;
|
|
19
|
+
class?: string;
|
|
20
|
+
key?: string;
|
|
21
|
+
paddingLeft?: number;
|
|
22
|
+
paddingRight?: number;
|
|
23
|
+
paddingBottom?: number;
|
|
24
|
+
paddingTop?: number;
|
|
25
|
+
padding?: number;
|
|
26
|
+
inset?: number;
|
|
27
|
+
insetLeft?: number;
|
|
28
|
+
insetBottom?: number;
|
|
29
|
+
insetTop?: number;
|
|
30
|
+
insetRight?: number;
|
|
31
|
+
margin?: number;
|
|
32
|
+
marginLeft?: number;
|
|
33
|
+
marginBottom?: number;
|
|
34
|
+
marginTop?: number;
|
|
35
|
+
marginRight?: number;
|
|
36
|
+
facet?: boolean;
|
|
37
|
+
frame?: boolean;
|
|
38
|
+
zIndex?: number;
|
|
39
|
+
cartesian?: boolean;
|
|
40
|
+
clip?: boolean;
|
|
41
|
+
data?: Data;
|
|
42
|
+
transform?: Transform[];
|
|
43
|
+
layout?: Record<string, any>;
|
|
44
|
+
encode?: Partial<Record<C, Encode | Encode[]>>;
|
|
45
|
+
scale?: Partial<Record<C, Scale>>;
|
|
46
|
+
coordinate?: Coordinate;
|
|
47
|
+
style?: Record<string, any>;
|
|
48
|
+
state?: Partial<Record<'active' | 'selected' | 'inactive' | 'unselected', Record<string, any>>>;
|
|
49
|
+
animate?: Closeable<Partial<Record<'enter' | 'update' | 'exit', Closeable<Animation>>>>;
|
|
50
|
+
labels?: Record<string, any>[];
|
|
51
|
+
tooltip?: TooltipComponent;
|
|
52
|
+
axis?: Closeable<Partial<Record<PositionChannelTypes, Closeable<AxisComponent>>>>;
|
|
53
|
+
legend?: Closeable<Partial<Record<AtheisticChanelTypes, Closeable<LegendComponent>>>>;
|
|
54
|
+
slider?: Closeable<Partial<Record<PositionChannelTypes, Closeable<SliderComponent>>>>;
|
|
55
|
+
scrollbar?: Closeable<Partial<Record<PositionChannelTypes, Closeable<ScrollbarComponent>>>>;
|
|
56
|
+
title?: string | TitleComponent;
|
|
57
|
+
interaction?: Literal2Object<Interaction>;
|
|
58
|
+
theme?: Theme;
|
|
59
|
+
};
|
|
60
|
+
export type HOMMarkType = (options: Record<string, any>) => () => any[];
|
|
61
|
+
export type HOMMarkMark = BaseMark<HOMMarkType>;
|
|
62
|
+
export type IntervalMark = BaseMark<'interval', ChannelTypes | 'series'>;
|
|
63
|
+
export type RectMark = BaseMark<'rect', ChannelTypes>;
|
|
64
|
+
export type LineMark = BaseMark<'line', ChannelTypes | 'position' | `position${number}`>;
|
|
65
|
+
export type PointMark = BaseMark<'point'>;
|
|
66
|
+
export type TextMark = BaseMark<'text', ChannelTypes | 'text' | 'fontSize' | 'fontWeight' | 'rotate'>;
|
|
67
|
+
export type LineXMark = BaseMark<'lineX', ChannelTypes>;
|
|
68
|
+
export type LineYMark = BaseMark<'lineY', ChannelTypes>;
|
|
69
|
+
export type RangeMark = BaseMark<'range', ChannelTypes>;
|
|
70
|
+
export type RangeXMark = BaseMark<'rangeX', ChannelTypes>;
|
|
71
|
+
export type RangeYMark = BaseMark<'rangeY', ChannelTypes>;
|
|
72
|
+
export type ConnectorMark = BaseMark<'connector', ChannelTypes>;
|
|
73
|
+
export type CellMark = BaseMark<'cell'>;
|
|
74
|
+
export type AreaMark = BaseMark<'area', ChannelTypes>;
|
|
75
|
+
export type NodeMark = BaseMark<'node', ChannelTypes>;
|
|
76
|
+
export type EdgeMark = BaseMark<'edge', ChannelTypes>;
|
|
77
|
+
export type LinkMark = BaseMark<'link', ChannelTypes>;
|
|
78
|
+
export type ImageMark = BaseMark<'image', ChannelTypes | 'src'>;
|
|
79
|
+
export type PolygonMark = BaseMark<'polygon', ChannelTypes>;
|
|
80
|
+
export type BoxMark = BaseMark<'box', ChannelTypes>;
|
|
81
|
+
export type BoxPlotMark = BaseMark<'box', ChannelTypes>;
|
|
82
|
+
export type ShapeMark = BaseMark<'shape', ChannelTypes>;
|
|
83
|
+
export type VectorMark = BaseMark<'vector', ChannelTypes | 'rotate' | 'size'>;
|
|
84
|
+
export type SankeyMark = BaseMark<'sankey', 'source' | 'target' | 'value' | `node${Capitalize<ChannelTypes>}` | `link${Capitalize<ChannelTypes>}` | ChannelTypes> & {
|
|
85
|
+
layout?: {
|
|
86
|
+
nodeId?: (node: any) => string;
|
|
87
|
+
nodes?: (graph: any) => any;
|
|
88
|
+
links?: (graph: any) => any;
|
|
89
|
+
/**
|
|
90
|
+
* sankey.nodeSort(undefined) is the default and resorts by ascending breadth during each iteration.
|
|
91
|
+
* sankey.nodeSort(null) specifies the input order of nodes and never sorts.
|
|
92
|
+
* sankey.nodeSort(function) specifies the given order as a comparator function and sorts once on initialization.
|
|
93
|
+
*/
|
|
94
|
+
nodeSort?: null | undefined | ((a: any, b: any) => number);
|
|
95
|
+
/**
|
|
96
|
+
* sankey.linkSort(undefined) is the default, indicating that vertical order of links within each node will be determined automatically by the layout. If
|
|
97
|
+
* sankey.linkSort(null) will resort by the input.
|
|
98
|
+
* sankey.linkSort(function) specifies the given order as a comparator function and sorts once on initialization.
|
|
99
|
+
*/
|
|
100
|
+
linkSort?: null | undefined | ((a: any, b: any) => number);
|
|
101
|
+
nodeAlign?: 'left' | 'center' | 'right' | 'justify' | ((node: any, n: number) => number);
|
|
102
|
+
nodeWidth?: number;
|
|
103
|
+
nodePadding?: number;
|
|
104
|
+
iterations?: number;
|
|
105
|
+
nodeDepth?: (datum: any, maxDepth: number) => number;
|
|
106
|
+
};
|
|
107
|
+
nodeLabels: Record<string, any>[];
|
|
108
|
+
linkLabels: Record<string, any>[];
|
|
109
|
+
};
|
|
110
|
+
export type PathMark = BaseMark<'path', ChannelTypes>;
|
|
111
|
+
export type TreemapMark = BaseMark<'treemap', 'value' | ChannelTypes> & {
|
|
112
|
+
layout?: Record<string, any>;
|
|
113
|
+
};
|
|
114
|
+
export type PackMark = BaseMark<'pack', 'value' | ChannelTypes> & {
|
|
115
|
+
layout?: Record<string, any>;
|
|
116
|
+
};
|
|
117
|
+
export type ForceGraphMark = BaseMark<'forceGraph', 'source' | 'target' | 'color' | 'value' | `node${Capitalize<ChannelTypes>}` | `link${Capitalize<ChannelTypes>}`> & {
|
|
118
|
+
layout?: Record<string, any>;
|
|
119
|
+
nodeLabels: Record<string, any>[];
|
|
120
|
+
linkLabels: Record<string, any>[];
|
|
121
|
+
};
|
|
122
|
+
export type TreeMark = BaseMark<'tree', 'value' | ChannelTypes> & {
|
|
123
|
+
layout?: {
|
|
124
|
+
/**
|
|
125
|
+
* Layout field. Default: 'value'.
|
|
126
|
+
*/
|
|
127
|
+
field?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Sets this cluster layout’s node size to the specified two-element array of numbers [width, height] and returns this cluster layout.
|
|
130
|
+
* Default: null.
|
|
131
|
+
*/
|
|
132
|
+
nodeSize?: any;
|
|
133
|
+
/**
|
|
134
|
+
* The separation accessor is used to separate neighboring leaves. Default: (a, b) => a.parent == b.parent ? 1 : 2;
|
|
135
|
+
*/
|
|
136
|
+
separation?: (a: any, b: any) => number;
|
|
137
|
+
/**
|
|
138
|
+
* Sort function by compare 2 nodes.
|
|
139
|
+
*/
|
|
140
|
+
sortBy?: (a: any, b: any) => number;
|
|
141
|
+
/**
|
|
142
|
+
* Layout infomation saved into fields. Default: ['x', 'y'].
|
|
143
|
+
*/
|
|
144
|
+
as?: [string, string];
|
|
145
|
+
};
|
|
146
|
+
nodeLabels: Record<string, any>[];
|
|
147
|
+
linkLabels: Record<string, any>[];
|
|
148
|
+
};
|
|
149
|
+
export type WordCloudMark = BaseMark<'wordCloud', 'value' | ChannelTypes | 'text'> & {
|
|
150
|
+
layout?: {
|
|
151
|
+
/**
|
|
152
|
+
* @description If specified, sets the rectangular [width, height] of the layout
|
|
153
|
+
* @default [1, 1]
|
|
154
|
+
*/
|
|
155
|
+
size?: [number, number];
|
|
156
|
+
font?: string | ((word: any) => string);
|
|
157
|
+
fontStyle?: string | ((word: any) => string);
|
|
158
|
+
fontWeight?: any | ((word: any) => any);
|
|
159
|
+
fontSize?: number | [number, number] | ((word: any) => number);
|
|
160
|
+
padding?: number | ((word: any) => number);
|
|
161
|
+
/**
|
|
162
|
+
* @description sets the text accessor function, which indicates the text for each word
|
|
163
|
+
* @default (d) => d.text
|
|
164
|
+
*/
|
|
165
|
+
text?: (word: any) => number;
|
|
166
|
+
rotate?: number | ((word: any) => number);
|
|
167
|
+
timeInterval?: number;
|
|
168
|
+
random?: number | (() => number);
|
|
169
|
+
/**
|
|
170
|
+
* @description sets the current type of spiral used for positioning words. This can either be one of the two built-in spirals, "archimedean" and "rectangular"
|
|
171
|
+
* @default "archimedean"
|
|
172
|
+
*/
|
|
173
|
+
spiral?: 'archimedean' | 'rectangular' | ((size: [number, number]) => (t: number) => number[]);
|
|
174
|
+
imageMask?: HTMLImageElement | string;
|
|
175
|
+
on?: ((type: 'end', details?: {
|
|
176
|
+
cloud: any;
|
|
177
|
+
words: any;
|
|
178
|
+
bounds: any;
|
|
179
|
+
}) => void) | ((type: 'word', details?: {
|
|
180
|
+
cloud: any;
|
|
181
|
+
word: any;
|
|
182
|
+
}) => void);
|
|
183
|
+
};
|
|
184
|
+
};
|
|
185
|
+
export type CustomMark = BaseMark<MarkComponent, ChannelTypes>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"mark.js","sourceRoot":"src/","sources":["spec/mark.ts"],"names":[],"mappings":""}
|
package/lib/spec/palette.d.ts
CHANGED
|
@@ -7,60 +7,6 @@ export type Category10Palette = {
|
|
|
7
7
|
export type Category20Palette = {
|
|
8
8
|
type?: 'category20';
|
|
9
9
|
};
|
|
10
|
-
export type SequentialBluePalette = {
|
|
11
|
-
type?: 'sequentialBlue';
|
|
12
|
-
};
|
|
13
|
-
export type SequentialDarkBluePalette = {
|
|
14
|
-
type?: 'sequentialDarkBlue';
|
|
15
|
-
};
|
|
16
|
-
export type SequentialGreenPalette = {
|
|
17
|
-
type?: 'sequentialGreen';
|
|
18
|
-
};
|
|
19
|
-
export type SequentialDarkGreenPalette = {
|
|
20
|
-
type?: 'sequentialDarkGreen';
|
|
21
|
-
};
|
|
22
|
-
export type SequentialGreyPalette = {
|
|
23
|
-
type?: 'sequentialGrey';
|
|
24
|
-
};
|
|
25
|
-
export type SequentialOrangePalette = {
|
|
26
|
-
type?: 'sequentialOrange';
|
|
27
|
-
};
|
|
28
|
-
export type SequentialPinkPalette = {
|
|
29
|
-
type?: 'sequentialPink';
|
|
30
|
-
};
|
|
31
|
-
export type SequentialPurplePalette = {
|
|
32
|
-
type?: 'sequentialPurple';
|
|
33
|
-
};
|
|
34
|
-
export type SequentialRedPalette = {
|
|
35
|
-
type?: 'sequentialRed';
|
|
36
|
-
};
|
|
37
|
-
export type SequentialYellowPalette = {
|
|
38
|
-
type?: 'sequentialYellow';
|
|
39
|
-
};
|
|
40
|
-
export type SequentialYellowOrangePalette = {
|
|
41
|
-
type?: 'sequentialYellowOrange';
|
|
42
|
-
};
|
|
43
|
-
export type SequentialYellowGreenPalette = {
|
|
44
|
-
type?: 'sequentialYellowGreen';
|
|
45
|
-
};
|
|
46
|
-
export type SequentialPinkPurplePalette = {
|
|
47
|
-
type?: 'sequentialPinkPurple';
|
|
48
|
-
};
|
|
49
|
-
export type SequentialGreenBluePalette = {
|
|
50
|
-
type?: 'sequentialGreenBlue';
|
|
51
|
-
};
|
|
52
|
-
export type DivergingRedBluePalette = {
|
|
53
|
-
type?: 'divergingRedBlue';
|
|
54
|
-
};
|
|
55
|
-
export type DivergingGreenRedPalette = {
|
|
56
|
-
type?: 'divergingGreenRed';
|
|
57
|
-
};
|
|
58
|
-
export type DivergingGreenYellowPalette = {
|
|
59
|
-
type?: 'divergingGreenYellow';
|
|
60
|
-
};
|
|
61
|
-
export type DivergingRedPurplePalette = {
|
|
62
|
-
type?: 'divergingRedPurple';
|
|
63
|
-
};
|
|
64
10
|
export type CustomPalette = {
|
|
65
11
|
type?: PaletteComponent;
|
|
66
12
|
[key: string]: any;
|
package/lib/spec/transform.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { TransformComponent, Primitive } from '../runtime';
|
|
2
|
-
import { ChannelTypes } from './
|
|
2
|
+
import { ChannelTypes } from './mark';
|
|
3
3
|
export type Transform = StackYTransform | DodgeXTransform | NormalizeYTransform | StackEnterTransform | JitterTransform | JitterXTransform | SymmetryYTransform | DiffYTransform | SelectTransform | SelectXTransform | SelectYTransform | GroupXTransform | GroupYTransform | GroupColorTransform | SortXTransform | SortYTransform | SortColorTransform | GroupTransform | PackTransform | BinXTransform | BinTransform | SampleTransform | FlexXTransform | FilterTransform;
|
|
4
4
|
export type TransformTypes = 'dodgeX' | 'stackY' | 'normalizeY' | 'stackEnter' | 'jitter' | 'jitterX' | 'symmetryY' | 'diffY' | 'select' | 'selectY' | 'selectX' | 'groupX' | 'groupY' | 'group' | 'groupColor' | 'sortX' | 'sortColor' | 'sortY' | 'flexX' | 'pack' | 'sample' | 'filter' | TransformComponent;
|
|
5
5
|
export type TransformOrder = 'value' | 'sum' | 'series' | 'maxIndex' | string[] | null | ((data: Record<string, Primitive>) => Primitive);
|
package/lib/spec/utils.d.ts
CHANGED
|
@@ -5,3 +5,7 @@ export type Literal2Object<Literal extends {
|
|
|
5
5
|
type?: Type;
|
|
6
6
|
} ? Omit<Literal, 'type'> | boolean : never;
|
|
7
7
|
}>;
|
|
8
|
+
export type UsePrefix<Prefix extends string, Obj extends Record<string, unknown>> = {
|
|
9
|
+
[Property in keyof Obj as `${Prefix}${Capitalize<string & Property>}`]: Obj[Property];
|
|
10
|
+
};
|
|
11
|
+
export type Closeable<T> = T | boolean | null;
|
package/lib/stdlib/index.js
CHANGED
|
@@ -19,21 +19,7 @@ const geo_1 = require("../geo");
|
|
|
19
19
|
function createLibrary() {
|
|
20
20
|
return Object.assign({ 'data.fetch': data_1.Fetch, 'data.inline': data_1.Inline, 'data.sortBy': data_1.SortBy, 'data.sort': data_1.Sort, 'data.filter': data_1.Filter, 'data.pick': data_1.Pick, 'data.rename': data_1.Rename, 'data.fold': data_1.Fold, 'data.slice': data_1.Slice, 'data.custom': data_1.Custom, 'data.map': data_1.Map, 'data.cluster': data_1.Cluster, 'data.tree': data_1.Tree, 'data.sankey': data_1.Sankey, 'data.arc': data_1.Arc, 'data.wordCloud': data_1.WordCloud, 'data.join': data_1.Join,
|
|
21
21
|
// 'transform.voronoi': Voronoi,
|
|
22
|
-
'transform.maybeZeroY1': transform_1.MaybeZeroY1, 'transform.maybeZeroX': transform_1.MaybeZeroX, 'transform.maybeStackY': transform_1.MaybeStackY, 'transform.maybeTitle': transform_1.MaybeTitle, 'transform.maybeSeries': transform_1.MaybeSeries, 'transform.maybeZeroPadding': transform_1.MaybeZeroPadding, 'transform.stackY': transform_1.StackY, 'transform.binX': transform_1.BinX, 'transform.bin': transform_1.Bin, 'transform.dodgeX': transform_1.DodgeX, 'transform.jitter': transform_1.Jitter, 'transform.jitterX': transform_1.JitterX, 'transform.symmetryY': transform_1.SymmetryY, 'transform.diffY': transform_1.DiffY, 'transform.stackEnter': transform_1.StackEnter, 'transform.normalizeY': transform_1.NormalizeY, 'transform.select': transform_1.Select, 'transform.selectX': transform_1.SelectX, 'transform.selectY': transform_1.SelectY, 'transform.groupX': transform_1.GroupX, 'transform.groupY': transform_1.GroupY, 'transform.groupColor': transform_1.GroupColor, 'transform.group': transform_1.Group, 'transform.maybeSize': transform_1.MaybeSize, 'transform.maybeZeroY': transform_1.MaybeZeroY, 'transform.maybeKey': transform_1.MaybeKey, 'transform.sortX': transform_1.SortX, 'transform.sortY': transform_1.SortY, 'transform.sortColor': transform_1.SortColor, 'transform.flexX': transform_1.FlexX, 'transform.maybeTupleY': transform_1.MaybeTupleY, 'transform.maybeTupleX': transform_1.MaybeTupleX, 'transform.maybeIdentityY': transform_1.MaybeIdentityY, 'transform.maybeIdentityX': transform_1.MaybeIdentityX, 'transform.maybeTuple': transform_1.MaybeTuple, 'transform.maybeVisualPosition': transform_1.MaybeVisualPosition, 'transform.maybeFunctionAttribute': transform_1.MaybeFunctionAttribute, 'transform.maybeGradient': transform_1.MaybeGradient, 'transform.maybeTooltip': transform_1.MaybeTooltip, 'transform.pack': transform_1.Pack, 'transform.sample': transform_1.Sample, 'transform.filter': transform_1.Filter, 'coordinate.cartesian': coordinate_1.Cartesian, 'coordinate.polar': coordinate_1.Polar, 'coordinate.helix': coordinate_1.Helix, 'coordinate.transpose': coordinate_1.Transpose, 'coordinate.theta': coordinate_1.Theta, 'coordinate.parallel': coordinate_1.Parallel, 'coordinate.fisheye': coordinate_1.Fisheye, 'coordinate.radial': coordinate_1.Radial, 'coordinate.radar': coordinate_1.Radar, 'encode.constant': encode_1.Constant, 'encode.field': encode_1.Field, 'encode.transform': encode_1.Transform, 'encode.column': encode_1.Column, 'mark.interval': mark_1.Interval, 'mark.rect': mark_1.Rect, 'mark.line': mark_1.Line, 'mark.point': mark_1.Point, 'mark.text': mark_1.Text, 'mark.cell': mark_1.Cell, 'mark.area': mark_1.Area, 'mark.link': mark_1.Link, 'mark.image': mark_1.Image, 'mark.polygon': mark_1.Polygon, 'mark.box': mark_1.Box, 'mark.vector': mark_1.Vector, 'mark.lineX': mark_1.LineX, 'mark.lineY': mark_1.LineY, 'mark.connector': mark_1.Connector, 'mark.range': mark_1.Range, 'mark.rangeX': mark_1.RangeX, 'mark.rangeY': mark_1.RangeY, 'mark.sankey': mark_1.Sankey, 'mark.path': mark_1.Path, 'mark.treemap': mark_1.Treemap, 'mark.pack': mark_1.Pack, 'mark.boxplot': mark_1.Boxplot, 'mark.shape': mark_1.Shape, 'mark.forceGraph': mark_1.ForceGraph, 'mark.tree': mark_1.Tree, 'mark.wordCloud': mark_1.WordCloud, 'palette.category10': palette_1.Category10, 'palette.category20': palette_1.Category20, '
|
|
23
|
-
// 'interaction.elementSelected': ElementSelected,
|
|
24
|
-
// 'interaction.elementHighlight': ElementHighlight,
|
|
25
|
-
// 'interaction.elementHighlightByX': ElementHighlightByX,
|
|
26
|
-
// 'interaction.elementHighlightByColor': ElementHighlightByColor,
|
|
27
|
-
// 'interaction.elementListHighlight': ElementListHighlight,
|
|
28
|
-
// 'interaction.legendActive': LegendActive,
|
|
29
|
-
// 'interaction.legendHighlight': LegendHighlight,
|
|
30
|
-
// 'interaction.tooltip': Tooltip,
|
|
31
|
-
// 'interaction.fisheye': FisheyeInteraction,
|
|
32
|
-
// 'interaction.brush': Brush,
|
|
33
|
-
// 'interaction.brushVisible': BrushVisible,
|
|
34
|
-
// 'interaction.activeRegion': ActiveRegion,
|
|
35
|
-
// 'interaction.ellipsisText': EllipsisText,
|
|
36
|
-
'composition.spaceLayer': composition_1.SpaceLayer, 'composition.spaceFlex': composition_1.SpaceFlex, 'composition.mark': composition_1.Mark, 'composition.view': composition_1.View, 'composition.facetRect': composition_1.FacetRect, 'composition.repeatMatrix': composition_1.RepeatMatrix, 'composition.facetCircle': composition_1.FacetCircle, 'composition.timingKeyframe': composition_1.TimingKeyframe, 'labelTransform.overlapHide': label_transform_1.OverlapHide, 'labelTransform.overlapDodgeY': label_transform_1.OverlapDodgeY, 'labelTransform.overflowHide': label_transform_1.OverflowHide, 'labelTransform.contrastReverse': label_transform_1.ContrastReverse }, geo_1.geoLibrary);
|
|
22
|
+
'transform.maybeZeroY1': transform_1.MaybeZeroY1, 'transform.maybeZeroX': transform_1.MaybeZeroX, 'transform.maybeStackY': transform_1.MaybeStackY, 'transform.maybeTitle': transform_1.MaybeTitle, 'transform.maybeSeries': transform_1.MaybeSeries, 'transform.maybeZeroPadding': transform_1.MaybeZeroPadding, 'transform.stackY': transform_1.StackY, 'transform.binX': transform_1.BinX, 'transform.bin': transform_1.Bin, 'transform.dodgeX': transform_1.DodgeX, 'transform.jitter': transform_1.Jitter, 'transform.jitterX': transform_1.JitterX, 'transform.symmetryY': transform_1.SymmetryY, 'transform.diffY': transform_1.DiffY, 'transform.stackEnter': transform_1.StackEnter, 'transform.normalizeY': transform_1.NormalizeY, 'transform.select': transform_1.Select, 'transform.selectX': transform_1.SelectX, 'transform.selectY': transform_1.SelectY, 'transform.groupX': transform_1.GroupX, 'transform.groupY': transform_1.GroupY, 'transform.groupColor': transform_1.GroupColor, 'transform.group': transform_1.Group, 'transform.maybeSize': transform_1.MaybeSize, 'transform.maybeZeroY': transform_1.MaybeZeroY, 'transform.maybeKey': transform_1.MaybeKey, 'transform.sortX': transform_1.SortX, 'transform.sortY': transform_1.SortY, 'transform.sortColor': transform_1.SortColor, 'transform.flexX': transform_1.FlexX, 'transform.maybeTupleY': transform_1.MaybeTupleY, 'transform.maybeTupleX': transform_1.MaybeTupleX, 'transform.maybeIdentityY': transform_1.MaybeIdentityY, 'transform.maybeIdentityX': transform_1.MaybeIdentityX, 'transform.maybeTuple': transform_1.MaybeTuple, 'transform.maybeVisualPosition': transform_1.MaybeVisualPosition, 'transform.maybeFunctionAttribute': transform_1.MaybeFunctionAttribute, 'transform.maybeGradient': transform_1.MaybeGradient, 'transform.maybeTooltip': transform_1.MaybeTooltip, 'transform.pack': transform_1.Pack, 'transform.sample': transform_1.Sample, 'transform.filter': transform_1.Filter, 'coordinate.cartesian': coordinate_1.Cartesian, 'coordinate.polar': coordinate_1.Polar, 'coordinate.helix': coordinate_1.Helix, 'coordinate.transpose': coordinate_1.Transpose, 'coordinate.theta': coordinate_1.Theta, 'coordinate.parallel': coordinate_1.Parallel, 'coordinate.fisheye': coordinate_1.Fisheye, 'coordinate.radial': coordinate_1.Radial, 'coordinate.radar': coordinate_1.Radar, 'encode.constant': encode_1.Constant, 'encode.field': encode_1.Field, 'encode.transform': encode_1.Transform, 'encode.column': encode_1.Column, 'mark.interval': mark_1.Interval, 'mark.rect': mark_1.Rect, 'mark.line': mark_1.Line, 'mark.point': mark_1.Point, 'mark.text': mark_1.Text, 'mark.cell': mark_1.Cell, 'mark.area': mark_1.Area, 'mark.link': mark_1.Link, 'mark.image': mark_1.Image, 'mark.polygon': mark_1.Polygon, 'mark.box': mark_1.Box, 'mark.vector': mark_1.Vector, 'mark.lineX': mark_1.LineX, 'mark.lineY': mark_1.LineY, 'mark.connector': mark_1.Connector, 'mark.range': mark_1.Range, 'mark.rangeX': mark_1.RangeX, 'mark.rangeY': mark_1.RangeY, 'mark.sankey': mark_1.Sankey, 'mark.path': mark_1.Path, 'mark.treemap': mark_1.Treemap, 'mark.pack': mark_1.Pack, 'mark.boxplot': mark_1.Boxplot, 'mark.shape': mark_1.Shape, 'mark.forceGraph': mark_1.ForceGraph, 'mark.tree': mark_1.Tree, 'mark.wordCloud': mark_1.WordCloud, 'palette.category10': palette_1.Category10, 'palette.category20': palette_1.Category20, 'scale.linear': scale_1.Linear, 'scale.ordinal': scale_1.Ordinal, 'scale.band': scale_1.Band, 'scale.identity': scale_1.Identity, 'scale.point': scale_1.Point, 'scale.time': scale_1.Time, 'scale.log': scale_1.Log, 'scale.pow': scale_1.Pow, 'scale.sqrt': scale_1.Sqrt, 'scale.threshold': scale_1.Threshold, 'scale.quantile': scale_1.Quantile, 'scale.quantize': scale_1.Quantize, 'scale.sequential': scale_1.Sequential, 'scale.constant': scale_1.Constant, 'shape.interval.rect': shape_1.Rect, 'shape.interval.hollow': shape_1.HollowRect, 'shape.interval.funnel': shape_1.Funnel, 'shape.interval.pyramid': shape_1.Pyramid, 'shape.rect.rect': shape_1.Rect, 'shape.rect.hollow': shape_1.HollowRect, 'shape.cell.cell': shape_1.Rect, 'shape.cell.hollow': shape_1.HollowRect, 'shape.line.line': shape_1.Line, 'shape.line.hv': shape_1.HV, 'shape.line.vh': shape_1.VH, 'shape.line.hvh': shape_1.HVH, 'shape.line.smooth': shape_1.Smooth, 'shape.point.bowtie': shape_1.Bowtie, 'shape.point.cross': shape_1.Cross, 'shape.point.diamond': shape_1.Diamond, 'shape.point.hexagon': shape_1.Hexagon, 'shape.point.hollowBowtie': shape_1.HollowBowtie, 'shape.point.hollowDiamond': shape_1.HollowDiamond, 'shape.point.hollowHexagon': shape_1.HollowHexagon, 'shape.point.hollow': shape_1.HollowPoint, 'shape.point.hollowSquare': shape_1.HollowSquare, 'shape.point.hollowTriangle': shape_1.HollowTriangle, 'shape.point.hollowTriangleDown': shape_1.HollowTriangleDown, 'shape.point.hyphen': shape_1.Hyphen, 'shape.point.line': shape_1.LinePoint, 'shape.point.plus': shape_1.Plus, 'shape.point.point': shape_1.Point, 'shape.point.square': shape_1.Square, 'shape.point.tick': shape_1.Tick, 'shape.point.triangle': shape_1.Triangle, 'shape.point.triangleDown': shape_1.TriangleDown, 'shape.text.text': shape_1.Text, 'shape.area.area': shape_1.Area, 'shape.area.smooth': shape_1.SmoothArea, 'shape.area.hvh': shape_1.HVHArea, 'shape.area.vh': shape_1.VHArea, 'shape.area.hv': shape_1.HVArea, 'shape.link.smooth': shape_1.SmoothEdge, 'shape.link.vhv': shape_1.VHVEdge, 'shape.link.arc': shape_1.Arc, 'shape.link.link': shape_1.Link, 'shape.image.image': shape_1.Image, 'shape.polygon.polygon': shape_1.Polygon, 'shape.polygon.ribbon': shape_1.Ribbon, 'shape.box.box': shape_1.Box, 'shape.vector.vector': shape_1.Vector, 'shape.label.label': shape_1.Label, 'shape.text.badge': shape_1.Badge, 'shape.lineX.line': shape_1.LineXY, 'shape.lineY.line': shape_1.LineXY, 'shape.shape.shape': shape_1.Shape, 'shape.connector.connector': shape_1.Connector, 'shape.range.range': shape_1.Rect, 'shape.rangeX.range': shape_1.Rect, 'shape.rangeY.range': shape_1.Rect, 'shape.path.path': shape_1.Path, 'shape.path.hollow': shape_1.HollowPath, 'theme.light': theme_1.Light, 'theme.dark': theme_1.Dark, 'theme.academy': theme_1.Academy, 'component.axisX': component_1.AxisX, 'component.axisY': component_1.AxisY, 'component.axisRadar': component_1.AxisRadar, 'component.axisLinear': component_1.AxisLinear, 'component.axisArc': component_1.AxisArc, 'component.legendCategory': component_1.LegendCategory, 'component.legendContinuous': component_1.LegendContinuous, 'component.legendContinuousBlock': component_1.LegendContinuousBlock, 'component.legendContinuousBlockSize': component_1.LegendContinuousBlockSize, 'component.legendContinuousSize': component_1.LegendContinuousSize, 'component.title': component_1.TitleComponent, 'component.sliderX': component_1.SliderX, 'component.sliderY': component_1.SliderY, 'component.scrollbarX': component_1.ScrollbarX, 'component.scrollbarY': component_1.ScrollbarY, 'animation.scaleInX': animation_1.ScaleInX, 'animation.scaleOutX': animation_1.ScaleOutX, 'animation.scaleInY': animation_1.ScaleInY, 'animation.scaleOutY': animation_1.ScaleOutY, 'animation.waveIn': animation_1.WaveIn, 'animation.fadeIn': animation_1.FadeIn, 'animation.fadeOut': animation_1.FadeOut, 'animation.zoomIn': animation_1.ZoomIn, 'animation.zoomOut': animation_1.ZoomOut, 'animation.pathIn': animation_1.PathIn, 'animation.morphing': animation_1.Morphing, 'animation.growInX': animation_1.GrowInX, 'animation.growInY': animation_1.GrowInY, 'interaction.elementHighlight': interaction_1.ElementHighlight, 'interaction.elementHighlightByX': interaction_1.ElementHighlightByX, 'interaction.elementHighlightByColor': interaction_1.ElementHighlightByColor, 'interaction.elementSelect': interaction_1.ElementSelect, 'interaction.elementSelectByX': interaction_1.ElementSelectByX, 'interaction.elementSelectByColor': interaction_1.ElementSelectByColor, 'interaction.fisheye': interaction_1.Fisheye, 'interaction.chartIndex': interaction_1.ChartIndex, 'interaction.tooltip': interaction_1.Tooltip, 'interaction.legendFilter': interaction_1.LegendFilter, 'interaction.legendHighlight': interaction_1.LegendHighlight, 'interaction.brushHighlight': interaction_1.BrushHighlight, 'interaction.brushXHighlight': interaction_1.BrushXHighlight, 'interaction.brushYHighlight': interaction_1.BrushYHighlight, 'interaction.brushAxisHighlight': interaction_1.BrushAxisHighlight, 'interaction.brushFilter': interaction_1.BrushFilter, 'interaction.brushXFilter': interaction_1.BrushXFilter, 'interaction.brushYFilter': interaction_1.BrushYFilter, 'interaction.sliderFilter': interaction_1.SliderFilter, 'interaction.poptip': interaction_1.Poptip, 'interaction.event': interaction_1.Event, 'composition.spaceLayer': composition_1.SpaceLayer, 'composition.spaceFlex': composition_1.SpaceFlex, 'composition.mark': composition_1.Mark, 'composition.view': composition_1.View, 'composition.facetRect': composition_1.FacetRect, 'composition.repeatMatrix': composition_1.RepeatMatrix, 'composition.facetCircle': composition_1.FacetCircle, 'composition.timingKeyframe': composition_1.TimingKeyframe, 'labelTransform.overlapHide': label_transform_1.OverlapHide, 'labelTransform.overlapDodgeY': label_transform_1.OverlapDodgeY, 'labelTransform.overflowHide': label_transform_1.OverflowHide, 'labelTransform.contrastReverse': label_transform_1.ContrastReverse }, geo_1.geoLibrary);
|
|
37
23
|
}
|
|
38
24
|
exports.createLibrary = createLibrary;
|
|
39
25
|
//# sourceMappingURL=index.js.map
|
package/lib/stdlib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["stdlib/index.ts"],"names":[],"mappings":";;;AACA,8CAUuB;AACvB,sCAA+D;AAC/D,kCA4BiB;AACjB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["stdlib/index.ts"],"names":[],"mappings":";;;AACA,8CAUuB;AACvB,sCAA+D;AAC/D,kCA4BiB;AACjB,wCAAoD;AACpD,oCAekB;AAClB,oCAmDkB;AAClB,oCAAgD;AAChD,4CAgBsB;AACtB,4CAcsB;AACtB,gDAsBwB;AACxB,gDASwB;AACxB,4CA2CsB;AACtB,kCAkBiB;AACjB,wDAK4B;AAC5B,gCAAoC;AAEpC,SAAgB,aAAa;IAC3B,uBACE,YAAY,EAAE,YAAK,EACnB,aAAa,EAAE,aAAM,EACrB,aAA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AkB,EAAE,kBAAI,EACxB,uBAAuB,EAAE,uBAAS,EAClC,0BAA0B,EAAE,0BAAY,EACxC,yBAAyB,EAAE,yBAAW,EACtC,4BAA4B,EAAE,4BAAc,EAC5C,4BAA4B,EAAE,6BAAW,EACzC,8BAA8B,EAAE,+BAAa,EAC7C,6BAA6B,EAAE,8BAAY,EAC3C,gCAAgC,EAAE,iCAAe,IAC9C,gBAAU,EACb;AACJ,CAAC;AAlPD,sCAkPC"}
|
package/package.json
CHANGED
package/src/api/chart.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { RendererPlugin, Canvas as GCanvas } from '@antv/g';
|
|
2
2
|
import { Renderer as CanvasRenderer } from '@antv/g-canvas';
|
|
3
3
|
import { Plugin as DragAndDropPlugin } from '@antv/g-plugin-dragndrop';
|
|
4
|
-
import { debounce } from '@antv/util';
|
|
4
|
+
import { debounce, deepMix, omit } from '@antv/util';
|
|
5
5
|
import EventEmitter from '@antv/event-emitter';
|
|
6
6
|
import { G2Context, render, destroy } from '../runtime';
|
|
7
7
|
import { ViewComposition } from '../spec';
|
|
8
8
|
import { getChartSize } from '../utils/size';
|
|
9
9
|
import { CHART_LIFE_CIRCLE } from '../utils/event';
|
|
10
|
+
import { G2ViewTree } from '../runtime/types/options';
|
|
10
11
|
import { Node } from './node';
|
|
11
12
|
import {
|
|
12
13
|
defineProps,
|
|
@@ -24,6 +25,8 @@ import { mark, Mark } from './mark';
|
|
|
24
25
|
import { composition, Composition, View } from './composition';
|
|
25
26
|
import { library } from './library';
|
|
26
27
|
|
|
28
|
+
export const SPEC_EXTERNAL_KEYS = ['container', 'renderer'];
|
|
29
|
+
|
|
27
30
|
function normalizeContainer(container: string | HTMLElement): HTMLElement {
|
|
28
31
|
if (container === undefined) return document.createElement('div');
|
|
29
32
|
if (typeof container === 'string') {
|
|
@@ -134,7 +137,7 @@ export interface Chart extends Composition, Mark {
|
|
|
134
137
|
key: ValueAttribute<ChartProps['key'], Chart>;
|
|
135
138
|
transform: ArrayAttribute<ChartProps['transform'], Chart>;
|
|
136
139
|
theme: ObjectAttribute<ChartProps['theme'], Chart>;
|
|
137
|
-
title:
|
|
140
|
+
title: ValueAttribute<ChartProps['title'], Chart>;
|
|
138
141
|
scale: ObjectAttribute<ChartOptions['scale'], Chart>;
|
|
139
142
|
axis: ObjectAttribute<ChartOptions['axis'], Chart>;
|
|
140
143
|
legend: ObjectAttribute<ChartOptions['legend'], Chart>;
|
|
@@ -165,6 +168,7 @@ export class Chart extends View<ChartOptions> {
|
|
|
165
168
|
private _container: HTMLElement;
|
|
166
169
|
private _context: G2Context;
|
|
167
170
|
private _emitter: EventEmitter;
|
|
171
|
+
private _options: G2ViewTree;
|
|
168
172
|
|
|
169
173
|
constructor(options: ChartOptions = {}) {
|
|
170
174
|
const { container, canvas, ...rest } = options;
|
|
@@ -208,9 +212,32 @@ export class Chart extends View<ChartOptions> {
|
|
|
208
212
|
render(this.options(), this._context, () => resolve(this));
|
|
209
213
|
});
|
|
210
214
|
}
|
|
215
|
+
/**
|
|
216
|
+
* @overload
|
|
217
|
+
* @returns {G2ViewTree}
|
|
218
|
+
*/
|
|
219
|
+
options(): G2ViewTree;
|
|
220
|
+
/**
|
|
221
|
+
* @overload
|
|
222
|
+
* @param {G2ViewTree} options
|
|
223
|
+
* @returns {Chart}
|
|
224
|
+
*/
|
|
225
|
+
options(options: G2ViewTree): Chart;
|
|
226
|
+
/**
|
|
227
|
+
* @overload
|
|
228
|
+
* @param {G2ViewTree} [options]
|
|
229
|
+
* @returns {Chart|G2ViewTree}
|
|
230
|
+
*/
|
|
231
|
+
options(options?: G2ViewTree): Chart | G2ViewTree {
|
|
232
|
+
if (arguments.length === 0) {
|
|
233
|
+
return this._options || optionsOf(this);
|
|
234
|
+
}
|
|
235
|
+
this._options = deepMix(
|
|
236
|
+
this._options || {},
|
|
237
|
+
omit(options, SPEC_EXTERNAL_KEYS),
|
|
238
|
+
);
|
|
211
239
|
|
|
212
|
-
|
|
213
|
-
return optionsOf(this);
|
|
240
|
+
return this;
|
|
214
241
|
}
|
|
215
242
|
|
|
216
243
|
getContainer(): HTMLElement {
|
|
@@ -1,11 +1,6 @@
|
|
|
1
1
|
import { GeoPathComposition } from '../../spec';
|
|
2
2
|
import { defineProps, nodeProps } from '../props';
|
|
3
|
-
import {
|
|
4
|
-
ValueAttribute,
|
|
5
|
-
ObjectAttribute,
|
|
6
|
-
ArrayAttribute,
|
|
7
|
-
Concrete,
|
|
8
|
-
} from '../types';
|
|
3
|
+
import { ValueAttribute, ObjectAttribute, Concrete } from '../types';
|
|
9
4
|
import { mark, Mark } from '../mark';
|
|
10
5
|
import { Composition, CompositionNode } from './index';
|
|
11
6
|
|
package/src/api/mark/index.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { HOMMarkType } from '../../spec';
|
|
1
2
|
import {
|
|
2
3
|
Interval,
|
|
3
4
|
Rect,
|
|
@@ -25,9 +26,11 @@ import {
|
|
|
25
26
|
ForceGraph,
|
|
26
27
|
Tree,
|
|
27
28
|
WordCloud,
|
|
29
|
+
HOMMark,
|
|
28
30
|
} from './mark';
|
|
29
31
|
|
|
30
32
|
export interface Mark {
|
|
33
|
+
mark(HOMMark: HOMMarkType): HOMMark;
|
|
31
34
|
interval(): Interval;
|
|
32
35
|
rect(): Rect;
|
|
33
36
|
point(): Point;
|
|
@@ -59,6 +62,7 @@ export interface Mark {
|
|
|
59
62
|
export { MarkNode } from './base';
|
|
60
63
|
|
|
61
64
|
export const mark = {
|
|
65
|
+
mark: HOMMark,
|
|
62
66
|
interval: Interval,
|
|
63
67
|
rect: Rect,
|
|
64
68
|
point: Point,
|