@antv/g2 5.0.0-alpha.0 → 5.0.0-alpha.2
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/README.en-US.md +47 -75
- package/README.md +47 -83
- package/dist/g2-lite.min.js +10 -0
- package/dist/g2.min.js +3 -3
- package/esm/adjust/index.d.ts +2 -1
- package/esm/adjust/index.js.map +1 -1
- package/esm/animation/fadeIn.js +4 -6
- package/esm/animation/fadeIn.js.map +1 -1
- package/esm/animation/fadeOut.js +4 -4
- package/esm/animation/fadeOut.js.map +1 -1
- package/esm/animation/index.d.ts +14 -7
- package/esm/animation/index.js.map +1 -1
- package/esm/animation/morphing.js +4 -5
- package/esm/animation/morphing.js.map +1 -1
- package/esm/animation/scaleInX.js +7 -5
- package/esm/animation/scaleInX.js.map +1 -1
- package/esm/animation/scaleInY.js +7 -5
- package/esm/animation/scaleInY.js.map +1 -1
- package/esm/animation/scaleOutX.js +4 -5
- package/esm/animation/scaleOutX.js.map +1 -1
- package/esm/animation/scaleOutY.js +4 -5
- package/esm/animation/scaleOutY.js.map +1 -1
- package/esm/api/chart.d.ts +8 -1
- package/esm/api/chart.js +32 -7
- package/esm/api/chart.js.map +1 -1
- package/esm/api/composition/circle.js.map +1 -1
- package/esm/api/composition/flex.js.map +1 -1
- package/esm/api/composition/keyframe.js.map +1 -1
- package/esm/api/composition/layer.js.map +1 -1
- package/esm/api/composition/matrix.js.map +1 -1
- package/esm/api/composition/rect.js.map +1 -1
- package/esm/api/composition/view.js.map +1 -1
- package/esm/api/index.d.ts +1 -0
- package/esm/api/index.js +1 -0
- package/esm/api/index.js.map +1 -1
- package/esm/api/library.d.ts +3 -0
- package/esm/api/library.js +7 -0
- package/esm/api/library.js.map +1 -0
- package/esm/api/mark/index.d.ts +3 -3
- package/esm/api/mark/index.js +2 -2
- package/esm/api/mark/index.js.map +1 -1
- package/esm/api/mark/mark.d.ts +4 -4
- package/esm/api/mark/mark.js +6 -5
- package/esm/api/mark/mark.js.map +1 -1
- package/esm/api/mark/types.d.ts +1 -0
- package/esm/api/node.d.ts +4 -5
- package/esm/api/node.js +5 -7
- package/esm/api/node.js.map +1 -1
- package/esm/api/props.d.ts +1 -0
- package/esm/api/props.js +10 -10
- package/esm/api/props.js.map +1 -1
- package/esm/component/axis.d.ts +1 -1
- package/esm/component/axis.js +11 -4
- package/esm/component/axis.js.map +1 -1
- package/esm/component/index.d.ts +10 -5
- package/esm/component/index.js.map +1 -1
- package/esm/composition/circle.js +1 -1
- package/esm/composition/circle.js.map +1 -1
- package/esm/composition/flex.js +4 -2
- package/esm/composition/flex.js.map +1 -1
- package/esm/composition/index.d.ts +16 -8
- package/esm/composition/index.js.map +1 -1
- package/esm/composition/layer.js +3 -3
- package/esm/composition/layer.js.map +1 -1
- package/esm/composition/mark.js +2 -1
- package/esm/composition/mark.js.map +1 -1
- package/esm/composition/rect.js +29 -30
- package/esm/composition/rect.js.map +1 -1
- package/esm/composition/utils.d.ts +6 -0
- package/esm/composition/utils.js +19 -0
- package/esm/composition/utils.js.map +1 -1
- package/esm/composition/view.js +3 -2
- package/esm/composition/view.js.map +1 -1
- package/esm/coordinate/fisheye.d.ts +1 -1
- package/esm/coordinate/fisheye.js +1 -1
- package/esm/coordinate/fisheye.js.map +1 -1
- package/esm/coordinate/fisheyeX.d.ts +7 -0
- package/esm/coordinate/fisheyeX.js +6 -0
- package/esm/coordinate/fisheyeX.js.map +1 -0
- package/esm/coordinate/fisheyeY.d.ts +7 -0
- package/esm/coordinate/fisheyeY.js +6 -0
- package/esm/coordinate/fisheyeY.js.map +1 -0
- package/esm/coordinate/helix.d.ts +7 -0
- package/esm/coordinate/helix.js +11 -0
- package/esm/coordinate/helix.js.map +1 -0
- package/esm/coordinate/index.d.ts +24 -5
- package/esm/coordinate/index.js +7 -0
- package/esm/coordinate/index.js.map +1 -1
- package/esm/coordinate/reflect.d.ts +7 -0
- package/esm/coordinate/reflect.js +10 -0
- package/esm/coordinate/reflect.js.map +1 -0
- package/esm/coordinate/reflectX.d.ts +7 -0
- package/esm/coordinate/reflectX.js +10 -0
- package/esm/coordinate/reflectX.js.map +1 -0
- package/esm/coordinate/reflectY.d.ts +7 -0
- package/esm/coordinate/reflectY.js +10 -0
- package/esm/coordinate/reflectY.js.map +1 -0
- package/esm/coordinate/theta.d.ts +7 -0
- package/esm/coordinate/theta.js +11 -0
- package/esm/coordinate/theta.js.map +1 -0
- package/esm/data/arc.d.ts +7 -0
- package/esm/data/arc.js +11 -0
- package/esm/data/arc.js.map +1 -0
- package/esm/data/cluster.d.ts +8 -0
- package/esm/data/cluster.js +37 -0
- package/esm/data/cluster.js.map +1 -0
- package/esm/data/custom.d.ts +7 -0
- package/esm/data/custom.js +10 -0
- package/esm/data/custom.js.map +1 -0
- package/esm/data/fetch.d.ts +4 -0
- package/esm/data/fetch.js +28 -0
- package/esm/data/fetch.js.map +1 -0
- package/esm/data/filterBy.d.ts +8 -0
- package/esm/data/filterBy.js +17 -0
- package/esm/data/filterBy.js.map +1 -0
- package/esm/data/fold.d.ts +10 -0
- package/esm/data/fold.js +24 -0
- package/esm/data/fold.js.map +1 -0
- package/esm/data/index.d.ts +28 -0
- package/esm/data/index.js +15 -0
- package/esm/data/index.js.map +1 -0
- package/esm/data/inline.d.ts +4 -0
- package/esm/data/inline.js +6 -0
- package/esm/data/inline.js.map +1 -0
- package/esm/data/map.d.ts +7 -0
- package/esm/data/map.js +10 -0
- package/esm/data/map.js.map +1 -0
- package/esm/data/pick.d.ts +7 -0
- package/esm/data/pick.js +10 -0
- package/esm/data/pick.js.map +1 -0
- package/esm/data/rename.d.ts +8 -0
- package/esm/data/rename.js +17 -0
- package/esm/data/rename.js.map +1 -0
- package/esm/data/sankey.d.ts +8 -0
- package/esm/data/sankey.js +77 -0
- package/esm/data/sankey.js.map +1 -0
- package/esm/data/sortBy.d.ts +7 -0
- package/esm/data/sortBy.js +24 -0
- package/esm/data/sortBy.js.map +1 -0
- package/esm/data/subset.d.ts +7 -0
- package/esm/data/subset.js +26 -0
- package/esm/data/subset.js.map +1 -0
- package/esm/data/tree.d.ts +4 -0
- package/esm/data/tree.js +7 -0
- package/esm/data/tree.js.map +1 -0
- package/esm/{transform → data}/utils/arc/arc.d.ts +0 -0
- package/esm/{transform → data}/utils/arc/arc.js +0 -0
- package/esm/data/utils/arc/arc.js.map +1 -0
- package/esm/data/utils/arc/index.d.ts +2 -0
- package/esm/{transform → data}/utils/arc/index.js +0 -0
- package/esm/data/utils/arc/index.js.map +1 -0
- package/esm/{transform → data}/utils/arc/sort.d.ts +0 -0
- package/esm/{transform → data}/utils/arc/sort.js +0 -0
- package/esm/data/utils/arc/sort.js.map +1 -0
- package/esm/{transform → data}/utils/arc/types.d.ts +0 -0
- package/esm/{transform → data}/utils/arc/types.js +0 -0
- package/esm/data/utils/arc/types.js.map +1 -0
- package/esm/{transform → data}/utils/d3-cloud/index.d.ts +0 -0
- package/esm/{transform → data}/utils/d3-cloud/index.js +0 -0
- package/esm/data/utils/d3-cloud/index.js.map +1 -0
- package/esm/{transform → data}/utils/d3-sankey/align.d.ts +0 -0
- package/esm/{transform → data}/utils/d3-sankey/align.js +0 -0
- package/esm/data/utils/d3-sankey/align.js.map +1 -0
- package/esm/{transform → data}/utils/d3-sankey/constant.d.ts +0 -0
- package/esm/{transform → data}/utils/d3-sankey/constant.js +0 -0
- package/esm/data/utils/d3-sankey/constant.js.map +1 -0
- package/esm/{transform → data}/utils/d3-sankey/index.d.ts +0 -0
- package/esm/{transform → data}/utils/d3-sankey/index.js +0 -0
- package/esm/data/utils/d3-sankey/index.js.map +1 -0
- package/esm/{transform → data}/utils/d3-sankey/sankey.d.ts +0 -0
- package/esm/{transform → data}/utils/d3-sankey/sankey.js +0 -0
- package/esm/data/utils/d3-sankey/sankey.js.map +1 -0
- package/esm/data/utils/fields.d.ts +6 -0
- package/esm/data/utils/fields.js +15 -0
- package/esm/data/utils/fields.js.map +1 -0
- package/esm/{transform → data}/utils/flow.d.ts +0 -0
- package/esm/{transform → data}/utils/flow.js +0 -0
- package/esm/data/utils/flow.js.map +1 -0
- package/esm/{transform → data}/utils/memo.d.ts +0 -0
- package/esm/{transform → data}/utils/memo.js +0 -0
- package/esm/data/utils/memo.js.map +1 -0
- package/esm/data/voronoi.d.ts +1 -0
- package/esm/data/voronoi.js +6 -0
- package/esm/data/voronoi.js.map +1 -0
- package/esm/data/wordCloud.d.ts +1 -0
- package/esm/data/wordCloud.js +8 -0
- package/esm/data/wordCloud.js.map +1 -0
- package/esm/encode/index.d.ts +8 -4
- package/esm/encode/index.js.map +1 -1
- package/esm/index.d.ts +1 -1
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/esm/interaction/action/index.d.ts +42 -21
- package/esm/interaction/action/index.js +8 -8
- package/esm/interaction/action/index.js.map +1 -1
- package/esm/interaction/action/service/fisheyeFocus.js +7 -3
- package/esm/interaction/action/service/fisheyeFocus.js.map +1 -1
- package/esm/interaction/action/transformer/filter.js +9 -3
- package/esm/interaction/action/transformer/filter.js.map +1 -1
- package/esm/interaction/builtin/fisheye.d.ts +2 -0
- package/esm/interaction/index.d.ts +1 -1
- package/esm/interaction/index.js +0 -1
- package/esm/interaction/index.js.map +1 -1
- package/esm/interaction/interactor/index.d.ts +4 -2
- package/esm/interaction/interactor/index.js.map +1 -1
- package/esm/labelLayout/hideOverlap.d.ts +2 -0
- package/esm/labelLayout/hideOverlap.js +38 -0
- package/esm/labelLayout/hideOverlap.js.map +1 -0
- package/esm/labelLayout/index.d.ts +1 -0
- package/esm/labelLayout/index.js +2 -0
- package/esm/labelLayout/index.js.map +1 -0
- package/esm/mark/annotation/index.d.ts +14 -7
- package/esm/mark/annotation/index.js +6 -6
- package/esm/mark/annotation/index.js.map +1 -1
- package/esm/mark/geometry/box.d.ts +34 -0
- package/esm/mark/geometry/box.js +90 -0
- package/esm/mark/geometry/box.js.map +1 -0
- package/esm/mark/geometry/image.js +5 -4
- package/esm/mark/geometry/image.js.map +1 -1
- package/esm/mark/geometry/index.d.ts +22 -13
- package/esm/mark/geometry/index.js +1 -3
- package/esm/mark/geometry/index.js.map +1 -1
- package/esm/mark/geometry/interval.js +0 -1
- package/esm/mark/geometry/interval.js.map +1 -1
- package/esm/mark/geometry/line.js +5 -1
- package/esm/mark/geometry/line.js.map +1 -1
- package/esm/mark/geometry/link.js +1 -1
- package/esm/mark/geometry/link.js.map +1 -1
- package/esm/mark/geometry/point.js +6 -2
- package/esm/mark/geometry/point.js.map +1 -1
- package/esm/mark/geometry/polygon.js +1 -1
- package/esm/mark/geometry/polygon.js.map +1 -1
- package/esm/mark/utils.d.ts +1 -3
- package/esm/mark/utils.js +1 -1
- package/esm/mark/utils.js.map +1 -1
- package/esm/palette/index.d.ts +4 -2
- package/esm/palette/index.js.map +1 -1
- package/esm/runtime/component.d.ts +1 -1
- package/esm/runtime/component.js +19 -6
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/coordinate.d.ts +4 -0
- package/esm/runtime/coordinate.js +16 -0
- package/esm/runtime/coordinate.js.map +1 -1
- package/esm/runtime/index.d.ts +1 -0
- package/esm/runtime/index.js +1 -0
- package/esm/runtime/index.js.map +1 -1
- package/esm/runtime/layout.js.map +1 -1
- package/esm/runtime/mark.d.ts +3 -3
- package/esm/runtime/mark.js +38 -93
- package/esm/runtime/mark.js.map +1 -1
- package/esm/runtime/plot.js +64 -39
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.js +19 -21
- package/esm/runtime/render.js.map +1 -1
- package/esm/runtime/scale.js +15 -6
- package/esm/runtime/scale.js.map +1 -1
- package/esm/runtime/transform.d.ts +9 -0
- package/esm/runtime/transform.js +144 -0
- package/esm/runtime/transform.js.map +1 -0
- package/esm/runtime/types/common.d.ts +5 -3
- package/esm/runtime/types/component.d.ts +7 -6
- package/esm/runtime/types/data.d.ts +7 -0
- package/esm/runtime/types/data.js +2 -0
- package/esm/runtime/types/data.js.map +1 -0
- package/esm/runtime/types/encode.d.ts +4 -2
- package/esm/runtime/types/options.d.ts +7 -3
- package/esm/runtime/types/transform.d.ts +6 -12
- package/esm/scale/index.d.ts +22 -11
- package/esm/scale/index.js.map +1 -1
- package/esm/shape/annotation/text.js +16 -4
- package/esm/shape/annotation/text.js.map +1 -1
- package/esm/shape/{schema → box}/box.d.ts +0 -0
- package/esm/shape/box/box.js +87 -0
- package/esm/shape/box/box.js.map +1 -0
- package/esm/shape/index.d.ts +86 -48
- package/esm/shape/index.js +9 -12
- package/esm/shape/index.js.map +1 -1
- package/esm/shape/interval/colorRect.js +4 -22
- package/esm/shape/interval/colorRect.js.map +1 -1
- package/esm/shape/label/label.js +109 -14
- package/esm/shape/label/label.js.map +1 -1
- package/esm/shape/{edge → link}/arc.d.ts +0 -0
- package/esm/shape/{edge → link}/arc.js +0 -0
- package/esm/shape/link/arc.js.map +1 -0
- package/esm/shape/{edge → link}/smoothEdge.d.ts +0 -0
- package/esm/shape/{edge → link}/smoothEdge.js +0 -0
- package/esm/shape/link/smoothEdge.js.map +1 -0
- package/esm/shape/{edge → link}/vhv.d.ts +0 -0
- package/esm/shape/{edge → link}/vhv.js +0 -0
- package/esm/shape/link/vhv.js.map +1 -0
- package/esm/shape/{edge → polygon}/ribbon.d.ts +0 -0
- package/esm/shape/{edge → polygon}/ribbon.js +0 -0
- package/esm/shape/polygon/ribbon.js.map +1 -0
- package/esm/shape/utils.d.ts +7 -0
- package/esm/shape/utils.js +23 -0
- package/esm/shape/utils.js.map +1 -1
- package/esm/spec/composition.d.ts +8 -5
- package/esm/spec/coordinate.d.ts +46 -2
- package/esm/spec/data.d.ts +191 -0
- package/esm/spec/data.js +2 -0
- package/esm/spec/data.js.map +1 -0
- package/esm/spec/geometry.d.ts +7 -4
- package/esm/spec/index.d.ts +2 -1
- package/esm/spec/index.js +2 -1
- package/esm/spec/index.js.map +1 -1
- package/esm/spec/labelLayout.d.ts +4 -0
- package/esm/spec/labelLayout.js +2 -0
- package/esm/spec/labelLayout.js.map +1 -0
- package/esm/spec/transform.d.ts +66 -164
- package/esm/stdlib/index.js +34 -27
- package/esm/stdlib/index.js.map +1 -1
- package/esm/theme/light.js +1 -0
- package/esm/theme/light.js.map +1 -1
- package/esm/transform/Select.d.ts +9 -0
- package/esm/transform/Select.js +53 -0
- package/esm/transform/Select.js.map +1 -0
- package/esm/transform/SelectX.d.ts +7 -0
- package/esm/transform/SelectX.js +21 -0
- package/esm/transform/SelectX.js.map +1 -0
- package/esm/transform/SelectY.d.ts +7 -0
- package/esm/transform/SelectY.js +21 -0
- package/esm/transform/SelectY.js.map +1 -0
- package/esm/transform/dodgeX.d.ts +9 -0
- package/esm/transform/dodgeX.js +60 -0
- package/esm/transform/dodgeX.js.map +1 -0
- package/esm/transform/flexX.d.ts +7 -0
- package/esm/transform/flexX.js +31 -0
- package/esm/transform/flexX.js.map +1 -0
- package/esm/transform/groupX.d.ts +9 -0
- package/esm/transform/groupX.js +87 -0
- package/esm/transform/groupX.js.map +1 -0
- package/esm/transform/index.d.ts +46 -36
- package/esm/transform/index.js +23 -39
- package/esm/transform/index.js.map +1 -1
- package/esm/transform/jitter.d.ts +9 -0
- package/esm/transform/jitter.js +36 -0
- package/esm/transform/jitter.js.map +1 -0
- package/esm/transform/jitterY.d.ts +8 -0
- package/esm/transform/jitterY.js +21 -0
- package/esm/transform/jitterY.js.map +1 -0
- package/esm/transform/maybeKey.d.ts +6 -0
- package/esm/transform/maybeKey.js +32 -0
- package/esm/transform/maybeKey.js.map +1 -0
- package/esm/transform/maybeSeries.d.ts +6 -0
- package/esm/transform/maybeSeries.js +17 -0
- package/esm/transform/maybeSeries.js.map +1 -0
- package/esm/transform/maybeSize.d.ts +7 -0
- package/esm/transform/maybeSize.js +20 -0
- package/esm/transform/maybeSize.js.map +1 -0
- package/esm/transform/maybeStackY.d.ts +9 -0
- package/esm/transform/maybeStackY.js +30 -0
- package/esm/transform/maybeStackY.js.map +1 -0
- package/esm/transform/maybeTitleX.d.ts +6 -0
- package/esm/transform/maybeTitleX.js +17 -0
- package/esm/transform/maybeTitleX.js.map +1 -0
- package/esm/transform/maybeTooltip.d.ts +8 -0
- package/esm/transform/maybeTooltip.js +29 -0
- package/esm/transform/maybeTooltip.js.map +1 -0
- package/esm/transform/maybeTooltipPosition.d.ts +7 -0
- package/esm/transform/maybeTooltipPosition.js +10 -0
- package/esm/transform/maybeTooltipPosition.js.map +1 -0
- package/esm/transform/maybeTooltipY.d.ts +6 -0
- package/esm/transform/maybeTooltipY.js +9 -0
- package/esm/transform/maybeTooltipY.js.map +1 -0
- package/esm/transform/maybeZeroX.d.ts +7 -0
- package/esm/transform/maybeZeroX.js +22 -0
- package/esm/transform/maybeZeroX.js.map +1 -0
- package/esm/transform/maybeZeroY.d.ts +6 -0
- package/esm/transform/maybeZeroY.js +21 -0
- package/esm/transform/maybeZeroY.js.map +1 -0
- package/esm/transform/maybeZeroY1.d.ts +6 -0
- package/esm/transform/maybeZeroY1.js +21 -0
- package/esm/transform/maybeZeroY1.js.map +1 -0
- package/esm/transform/normalizeY.d.ts +9 -0
- package/esm/transform/normalizeY.js +68 -0
- package/esm/transform/normalizeY.js.map +1 -0
- package/esm/transform/sortX.d.ts +8 -0
- package/esm/transform/sortX.js +60 -0
- package/esm/transform/sortX.js.map +1 -0
- package/esm/transform/stackEnter.d.ts +13 -0
- package/esm/transform/stackEnter.js +62 -0
- package/esm/transform/stackEnter.js.map +1 -0
- package/esm/transform/stackY.d.ts +9 -0
- package/esm/transform/stackY.js +73 -0
- package/esm/transform/stackY.js.map +1 -0
- package/esm/transform/symmetryY.d.ts +8 -0
- package/esm/transform/symmetryY.js +60 -0
- package/esm/transform/symmetryY.js.map +1 -0
- package/esm/transform/utils/helper.d.ts +11 -10
- package/esm/transform/utils/helper.js +27 -33
- package/esm/transform/utils/helper.js.map +1 -1
- package/esm/transform/utils/order.d.ts +9 -0
- package/esm/transform/utils/order.js +72 -0
- package/esm/transform/utils/order.js.map +1 -0
- package/esm/utils/coordinate.d.ts +2 -0
- package/esm/utils/coordinate.js +7 -0
- package/esm/utils/coordinate.js.map +1 -1
- package/lib/adjust/index.d.ts +2 -1
- package/lib/adjust/index.js.map +1 -1
- package/lib/animation/fadeIn.js +4 -6
- package/lib/animation/fadeIn.js.map +1 -1
- package/lib/animation/fadeOut.js +4 -4
- package/lib/animation/fadeOut.js.map +1 -1
- package/lib/animation/index.d.ts +14 -7
- package/lib/animation/index.js.map +1 -1
- package/lib/animation/morphing.js +4 -5
- package/lib/animation/morphing.js.map +1 -1
- package/lib/animation/scaleInX.js +7 -5
- package/lib/animation/scaleInX.js.map +1 -1
- package/lib/animation/scaleInY.js +7 -5
- package/lib/animation/scaleInY.js.map +1 -1
- package/lib/animation/scaleOutX.js +4 -5
- package/lib/animation/scaleOutX.js.map +1 -1
- package/lib/animation/scaleOutY.js +4 -5
- package/lib/animation/scaleOutY.js.map +1 -1
- package/lib/api/chart.d.ts +8 -1
- package/lib/api/chart.js +32 -7
- package/lib/api/chart.js.map +1 -1
- package/lib/api/composition/circle.js.map +1 -1
- package/lib/api/composition/flex.js.map +1 -1
- package/lib/api/composition/keyframe.js.map +1 -1
- package/lib/api/composition/layer.js.map +1 -1
- package/lib/api/composition/matrix.js.map +1 -1
- package/lib/api/composition/rect.js.map +1 -1
- package/lib/api/composition/view.js.map +1 -1
- package/lib/api/index.d.ts +1 -0
- package/lib/api/index.js +3 -1
- package/lib/api/index.js.map +1 -1
- package/lib/api/library.d.ts +3 -0
- package/lib/api/library.js +11 -0
- package/lib/api/library.js.map +1 -0
- package/lib/api/mark/index.d.ts +3 -3
- package/lib/api/mark/index.js +1 -1
- package/lib/api/mark/index.js.map +1 -1
- package/lib/api/mark/mark.d.ts +4 -4
- package/lib/api/mark/mark.js +7 -6
- package/lib/api/mark/mark.js.map +1 -1
- package/lib/api/mark/types.d.ts +1 -0
- package/lib/api/node.d.ts +4 -5
- package/lib/api/node.js +5 -7
- package/lib/api/node.js.map +1 -1
- package/lib/api/props.d.ts +1 -0
- package/lib/api/props.js +10 -10
- package/lib/api/props.js.map +1 -1
- package/lib/component/axis.d.ts +1 -1
- package/lib/component/axis.js +11 -4
- package/lib/component/axis.js.map +1 -1
- package/lib/component/index.d.ts +10 -5
- package/lib/component/index.js.map +1 -1
- package/lib/composition/circle.js +1 -1
- package/lib/composition/circle.js.map +1 -1
- package/lib/composition/flex.js +4 -2
- package/lib/composition/flex.js.map +1 -1
- package/lib/composition/index.d.ts +16 -8
- package/lib/composition/index.js.map +1 -1
- package/lib/composition/layer.js +3 -3
- package/lib/composition/layer.js.map +1 -1
- package/lib/composition/mark.js +2 -1
- package/lib/composition/mark.js.map +1 -1
- package/lib/composition/rect.js +29 -30
- package/lib/composition/rect.js.map +1 -1
- package/lib/composition/utils.d.ts +6 -0
- package/lib/composition/utils.js +21 -1
- package/lib/composition/utils.js.map +1 -1
- package/lib/composition/view.js +3 -2
- package/lib/composition/view.js.map +1 -1
- package/lib/coordinate/fisheye.d.ts +1 -1
- package/lib/coordinate/fisheye.js +1 -1
- package/lib/coordinate/fisheye.js.map +1 -1
- package/lib/coordinate/fisheyeX.d.ts +7 -0
- package/lib/coordinate/fisheyeX.js +10 -0
- package/lib/coordinate/fisheyeX.js.map +1 -0
- package/lib/coordinate/fisheyeY.d.ts +7 -0
- package/lib/coordinate/fisheyeY.js +10 -0
- package/lib/coordinate/fisheyeY.js.map +1 -0
- package/lib/coordinate/helix.d.ts +7 -0
- package/lib/coordinate/helix.js +15 -0
- package/lib/coordinate/helix.js.map +1 -0
- package/lib/coordinate/index.d.ts +24 -5
- package/lib/coordinate/index.js +15 -1
- package/lib/coordinate/index.js.map +1 -1
- package/lib/coordinate/reflect.d.ts +7 -0
- package/lib/coordinate/reflect.js +14 -0
- package/lib/coordinate/reflect.js.map +1 -0
- package/lib/coordinate/reflectX.d.ts +7 -0
- package/lib/coordinate/reflectX.js +14 -0
- package/lib/coordinate/reflectX.js.map +1 -0
- package/lib/coordinate/reflectY.d.ts +7 -0
- package/lib/coordinate/reflectY.js +14 -0
- package/lib/coordinate/reflectY.js.map +1 -0
- package/lib/coordinate/theta.d.ts +7 -0
- package/lib/coordinate/theta.js +15 -0
- package/lib/coordinate/theta.js.map +1 -0
- package/lib/data/arc.d.ts +7 -0
- package/lib/data/arc.js +15 -0
- package/lib/data/arc.js.map +1 -0
- package/lib/data/cluster.d.ts +8 -0
- package/lib/data/cluster.js +42 -0
- package/lib/data/cluster.js.map +1 -0
- package/lib/data/custom.d.ts +7 -0
- package/lib/data/custom.js +14 -0
- package/lib/data/custom.js.map +1 -0
- package/lib/data/fetch.d.ts +4 -0
- package/lib/data/fetch.js +32 -0
- package/lib/data/fetch.js.map +1 -0
- package/lib/data/filterBy.d.ts +8 -0
- package/lib/data/filterBy.js +21 -0
- package/lib/data/filterBy.js.map +1 -0
- package/lib/data/fold.d.ts +10 -0
- package/lib/data/fold.js +29 -0
- package/lib/data/fold.js.map +1 -0
- package/lib/data/index.d.ts +28 -0
- package/lib/data/index.js +32 -0
- package/lib/data/index.js.map +1 -0
- package/lib/data/inline.d.ts +4 -0
- package/lib/data/inline.js +10 -0
- package/lib/data/inline.js.map +1 -0
- package/lib/data/map.d.ts +7 -0
- package/lib/data/map.js +14 -0
- package/lib/data/map.js.map +1 -0
- package/lib/data/pick.d.ts +7 -0
- package/lib/data/pick.js +14 -0
- package/lib/data/pick.js.map +1 -0
- package/lib/data/rename.d.ts +8 -0
- package/lib/data/rename.js +22 -0
- package/lib/data/rename.js.map +1 -0
- package/lib/data/sankey.d.ts +8 -0
- package/lib/data/sankey.js +81 -0
- package/lib/data/sankey.js.map +1 -0
- package/lib/data/sortBy.d.ts +7 -0
- package/lib/data/sortBy.js +28 -0
- package/lib/data/sortBy.js.map +1 -0
- package/lib/data/subset.d.ts +7 -0
- package/lib/data/subset.js +30 -0
- package/lib/data/subset.js.map +1 -0
- package/lib/data/tree.d.ts +4 -0
- package/lib/data/tree.js +11 -0
- package/lib/data/tree.js.map +1 -0
- package/lib/{transform → data}/utils/arc/arc.d.ts +0 -0
- package/lib/{transform → data}/utils/arc/arc.js +0 -0
- package/lib/data/utils/arc/arc.js.map +1 -0
- package/lib/data/utils/arc/index.d.ts +2 -0
- package/lib/{transform → data}/utils/arc/index.js +0 -0
- package/lib/data/utils/arc/index.js.map +1 -0
- package/lib/{transform → data}/utils/arc/sort.d.ts +0 -0
- package/lib/{transform → data}/utils/arc/sort.js +0 -0
- package/lib/data/utils/arc/sort.js.map +1 -0
- package/lib/{transform → data}/utils/arc/types.d.ts +0 -0
- package/lib/{transform → data}/utils/arc/types.js +0 -0
- package/lib/data/utils/arc/types.js.map +1 -0
- package/lib/{transform → data}/utils/d3-cloud/index.d.ts +0 -0
- package/lib/{transform → data}/utils/d3-cloud/index.js +0 -0
- package/lib/data/utils/d3-cloud/index.js.map +1 -0
- package/lib/{transform → data}/utils/d3-sankey/align.d.ts +0 -0
- package/lib/{transform → data}/utils/d3-sankey/align.js +0 -0
- package/lib/data/utils/d3-sankey/align.js.map +1 -0
- package/lib/{transform → data}/utils/d3-sankey/constant.d.ts +0 -0
- package/lib/{transform → data}/utils/d3-sankey/constant.js +0 -0
- package/lib/data/utils/d3-sankey/constant.js.map +1 -0
- package/lib/{transform → data}/utils/d3-sankey/index.d.ts +0 -0
- package/lib/{transform → data}/utils/d3-sankey/index.js +0 -0
- package/lib/data/utils/d3-sankey/index.js.map +1 -0
- package/lib/{transform → data}/utils/d3-sankey/sankey.d.ts +0 -0
- package/lib/{transform → data}/utils/d3-sankey/sankey.js +0 -0
- package/lib/data/utils/d3-sankey/sankey.js.map +1 -0
- package/lib/data/utils/fields.d.ts +6 -0
- package/lib/data/utils/fields.js +19 -0
- package/lib/data/utils/fields.js.map +1 -0
- package/lib/{transform → data}/utils/flow.d.ts +0 -0
- package/lib/{transform → data}/utils/flow.js +0 -0
- package/lib/data/utils/flow.js.map +1 -0
- package/lib/{transform → data}/utils/memo.d.ts +0 -0
- package/lib/{transform → data}/utils/memo.js +0 -0
- package/lib/data/utils/memo.js.map +1 -0
- package/lib/data/voronoi.d.ts +1 -0
- package/lib/data/voronoi.js +7 -0
- package/lib/data/voronoi.js.map +1 -0
- package/lib/data/wordCloud.d.ts +1 -0
- package/lib/data/wordCloud.js +9 -0
- package/lib/data/wordCloud.js.map +1 -0
- package/lib/encode/index.d.ts +8 -4
- package/lib/encode/index.js.map +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/interaction/action/index.d.ts +42 -21
- package/lib/interaction/action/index.js.map +1 -1
- package/lib/interaction/action/service/fisheyeFocus.js +7 -3
- package/lib/interaction/action/service/fisheyeFocus.js.map +1 -1
- package/lib/interaction/action/transformer/filter.js +9 -3
- package/lib/interaction/action/transformer/filter.js.map +1 -1
- package/lib/interaction/builtin/fisheye.d.ts +2 -0
- package/lib/interaction/index.d.ts +1 -1
- package/lib/interaction/index.js +0 -15
- package/lib/interaction/index.js.map +1 -1
- package/lib/interaction/interactor/index.d.ts +4 -2
- package/lib/interaction/interactor/index.js.map +1 -1
- package/lib/labelLayout/hideOverlap.d.ts +2 -0
- package/lib/labelLayout/hideOverlap.js +42 -0
- package/lib/labelLayout/hideOverlap.js.map +1 -0
- package/lib/labelLayout/index.d.ts +1 -0
- package/lib/labelLayout/index.js +6 -0
- package/lib/labelLayout/index.js.map +1 -0
- package/lib/mark/annotation/index.d.ts +14 -7
- package/lib/mark/annotation/index.js.map +1 -1
- package/lib/mark/geometry/box.d.ts +34 -0
- package/lib/mark/geometry/box.js +94 -0
- package/lib/mark/geometry/box.js.map +1 -0
- package/lib/mark/geometry/image.js +5 -4
- package/lib/mark/geometry/image.js.map +1 -1
- package/lib/mark/geometry/index.d.ts +22 -13
- package/lib/mark/geometry/index.js +3 -7
- package/lib/mark/geometry/index.js.map +1 -1
- package/lib/mark/geometry/interval.js +0 -1
- package/lib/mark/geometry/interval.js.map +1 -1
- package/lib/mark/geometry/line.js +5 -1
- package/lib/mark/geometry/line.js.map +1 -1
- package/lib/mark/geometry/link.js +1 -1
- package/lib/mark/geometry/link.js.map +1 -1
- package/lib/mark/geometry/point.js +6 -2
- package/lib/mark/geometry/point.js.map +1 -1
- package/lib/mark/geometry/polygon.js +1 -1
- package/lib/mark/geometry/polygon.js.map +1 -1
- package/lib/mark/utils.d.ts +1 -3
- package/lib/mark/utils.js +1 -1
- package/lib/mark/utils.js.map +1 -1
- package/lib/palette/index.d.ts +4 -2
- package/lib/palette/index.js.map +1 -1
- package/lib/runtime/component.d.ts +1 -1
- package/lib/runtime/component.js +18 -5
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/coordinate.d.ts +4 -0
- package/lib/runtime/coordinate.js +21 -1
- package/lib/runtime/coordinate.js.map +1 -1
- package/lib/runtime/index.d.ts +1 -0
- package/lib/runtime/index.js +1 -0
- package/lib/runtime/index.js.map +1 -1
- package/lib/runtime/layout.js.map +1 -1
- package/lib/runtime/mark.d.ts +3 -3
- package/lib/runtime/mark.js +37 -92
- package/lib/runtime/mark.js.map +1 -1
- package/lib/runtime/plot.js +62 -37
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.js +18 -20
- package/lib/runtime/render.js.map +1 -1
- package/lib/runtime/scale.js +14 -5
- package/lib/runtime/scale.js.map +1 -1
- package/lib/runtime/transform.d.ts +9 -0
- package/lib/runtime/transform.js +154 -0
- package/lib/runtime/transform.js.map +1 -0
- package/lib/runtime/types/common.d.ts +5 -3
- package/lib/runtime/types/component.d.ts +7 -6
- package/lib/runtime/types/data.d.ts +7 -0
- package/lib/runtime/types/data.js +3 -0
- package/lib/runtime/types/data.js.map +1 -0
- package/lib/runtime/types/encode.d.ts +4 -2
- package/lib/runtime/types/options.d.ts +7 -3
- package/lib/runtime/types/transform.d.ts +6 -12
- package/lib/scale/index.d.ts +22 -11
- package/lib/scale/index.js.map +1 -1
- package/lib/shape/annotation/text.js +16 -4
- package/lib/shape/annotation/text.js.map +1 -1
- package/lib/shape/{schema → box}/box.d.ts +0 -0
- package/lib/shape/box/box.js +91 -0
- package/lib/shape/box/box.js.map +1 -0
- package/lib/shape/index.d.ts +86 -48
- package/lib/shape/index.js +10 -16
- package/lib/shape/index.js.map +1 -1
- package/lib/shape/interval/colorRect.js +2 -20
- package/lib/shape/interval/colorRect.js.map +1 -1
- package/lib/shape/label/label.js +108 -13
- package/lib/shape/label/label.js.map +1 -1
- package/lib/shape/{edge → link}/arc.d.ts +0 -0
- package/lib/shape/{edge → link}/arc.js +0 -0
- package/lib/shape/link/arc.js.map +1 -0
- package/lib/shape/{edge → link}/smoothEdge.d.ts +0 -0
- package/lib/shape/{edge → link}/smoothEdge.js +0 -0
- package/lib/shape/link/smoothEdge.js.map +1 -0
- package/lib/shape/{edge → link}/vhv.d.ts +0 -0
- package/lib/shape/{edge → link}/vhv.js +0 -0
- package/lib/shape/link/vhv.js.map +1 -0
- package/lib/shape/{edge → polygon}/ribbon.d.ts +0 -0
- package/lib/shape/{edge → polygon}/ribbon.js +0 -0
- package/lib/shape/polygon/ribbon.js.map +1 -0
- package/lib/shape/utils.d.ts +7 -0
- package/lib/shape/utils.js +25 -1
- package/lib/shape/utils.js.map +1 -1
- package/lib/spec/composition.d.ts +8 -5
- package/lib/spec/coordinate.d.ts +46 -2
- package/lib/spec/data.d.ts +191 -0
- package/lib/spec/data.js +3 -0
- package/lib/spec/data.js.map +1 -0
- package/lib/spec/geometry.d.ts +7 -4
- package/lib/spec/index.d.ts +2 -1
- package/lib/spec/index.js +2 -1
- package/lib/spec/index.js.map +1 -1
- package/lib/spec/labelLayout.d.ts +4 -0
- package/lib/spec/labelLayout.js +3 -0
- package/lib/spec/labelLayout.js.map +1 -0
- package/lib/spec/transform.d.ts +66 -164
- package/lib/stdlib/index.js +30 -23
- package/lib/stdlib/index.js.map +1 -1
- package/lib/theme/light.js +1 -0
- package/lib/theme/light.js.map +1 -1
- package/lib/transform/Select.d.ts +9 -0
- package/lib/transform/Select.js +57 -0
- package/lib/transform/Select.js.map +1 -0
- package/lib/transform/SelectX.d.ts +7 -0
- package/lib/transform/SelectX.js +25 -0
- package/lib/transform/SelectX.js.map +1 -0
- package/lib/transform/SelectY.d.ts +7 -0
- package/lib/transform/SelectY.js +25 -0
- package/lib/transform/SelectY.js.map +1 -0
- package/lib/transform/dodgeX.d.ts +9 -0
- package/lib/transform/dodgeX.js +64 -0
- package/lib/transform/dodgeX.js.map +1 -0
- package/lib/transform/flexX.d.ts +7 -0
- package/lib/transform/flexX.js +35 -0
- package/lib/transform/flexX.js.map +1 -0
- package/lib/transform/groupX.d.ts +9 -0
- package/lib/transform/groupX.js +91 -0
- package/lib/transform/groupX.js.map +1 -0
- package/lib/transform/index.d.ts +46 -36
- package/lib/transform/index.js +26 -55
- package/lib/transform/index.js.map +1 -1
- package/lib/transform/jitter.d.ts +9 -0
- package/lib/transform/jitter.js +41 -0
- package/lib/transform/jitter.js.map +1 -0
- package/lib/transform/jitterY.d.ts +8 -0
- package/lib/transform/jitterY.js +25 -0
- package/lib/transform/jitterY.js.map +1 -0
- package/lib/transform/maybeKey.d.ts +6 -0
- package/lib/transform/maybeKey.js +36 -0
- package/lib/transform/maybeKey.js.map +1 -0
- package/lib/transform/maybeSeries.d.ts +6 -0
- package/lib/transform/maybeSeries.js +21 -0
- package/lib/transform/maybeSeries.js.map +1 -0
- package/lib/transform/maybeSize.d.ts +7 -0
- package/lib/transform/maybeSize.js +24 -0
- package/lib/transform/maybeSize.js.map +1 -0
- package/lib/transform/maybeStackY.d.ts +9 -0
- package/lib/transform/maybeStackY.js +34 -0
- package/lib/transform/maybeStackY.js.map +1 -0
- package/lib/transform/maybeTitleX.d.ts +6 -0
- package/lib/transform/maybeTitleX.js +21 -0
- package/lib/transform/maybeTitleX.js.map +1 -0
- package/lib/transform/maybeTooltip.d.ts +8 -0
- package/lib/transform/maybeTooltip.js +33 -0
- package/lib/transform/maybeTooltip.js.map +1 -0
- package/lib/transform/maybeTooltipPosition.d.ts +7 -0
- package/lib/transform/maybeTooltipPosition.js +14 -0
- package/lib/transform/maybeTooltipPosition.js.map +1 -0
- package/lib/transform/maybeTooltipY.d.ts +6 -0
- package/lib/transform/maybeTooltipY.js +13 -0
- package/lib/transform/maybeTooltipY.js.map +1 -0
- package/lib/transform/maybeZeroX.d.ts +7 -0
- package/lib/transform/maybeZeroX.js +26 -0
- package/lib/transform/maybeZeroX.js.map +1 -0
- package/lib/transform/maybeZeroY.d.ts +6 -0
- package/lib/transform/maybeZeroY.js +25 -0
- package/lib/transform/maybeZeroY.js.map +1 -0
- package/lib/transform/maybeZeroY1.d.ts +6 -0
- package/lib/transform/maybeZeroY1.js +25 -0
- package/lib/transform/maybeZeroY1.js.map +1 -0
- package/lib/transform/normalizeY.d.ts +9 -0
- package/lib/transform/normalizeY.js +72 -0
- package/lib/transform/normalizeY.js.map +1 -0
- package/lib/transform/sortX.d.ts +8 -0
- package/lib/transform/sortX.js +64 -0
- package/lib/transform/sortX.js.map +1 -0
- package/lib/transform/stackEnter.d.ts +13 -0
- package/lib/transform/stackEnter.js +66 -0
- package/lib/transform/stackEnter.js.map +1 -0
- package/lib/transform/stackY.d.ts +9 -0
- package/lib/transform/stackY.js +77 -0
- package/lib/transform/stackY.js.map +1 -0
- package/lib/transform/symmetryY.d.ts +8 -0
- package/lib/transform/symmetryY.js +64 -0
- package/lib/transform/symmetryY.js.map +1 -0
- package/lib/transform/utils/helper.d.ts +11 -10
- package/lib/transform/utils/helper.js +32 -38
- package/lib/transform/utils/helper.js.map +1 -1
- package/lib/transform/utils/order.d.ts +9 -0
- package/lib/transform/utils/order.js +79 -0
- package/lib/transform/utils/order.js.map +1 -0
- package/lib/utils/coordinate.d.ts +2 -0
- package/lib/utils/coordinate.js +10 -1
- package/lib/utils/coordinate.js.map +1 -1
- package/package.json +24 -8
- package/src/.DS_Store +0 -0
- package/src/adjust/index.ts +2 -1
- package/src/animation/fadeIn.ts +4 -6
- package/src/animation/fadeOut.ts +4 -4
- package/src/animation/index.ts +15 -7
- package/src/animation/morphing.ts +5 -6
- package/src/animation/scaleInX.ts +12 -5
- package/src/animation/scaleInY.ts +12 -5
- package/src/animation/scaleOutX.ts +9 -5
- package/src/animation/scaleOutY.ts +9 -5
- package/src/api/chart.ts +59 -11
- package/src/api/index.ts +1 -0
- package/src/api/library.ts +12 -0
- package/src/api/mark/index.ts +3 -3
- package/src/api/mark/mark.ts +6 -5
- package/src/api/mark/types.ts +1 -0
- package/src/api/node.ts +5 -6
- package/src/api/props.ts +14 -10
- package/src/component/axis.ts +13 -5
- package/src/component/index.ts +11 -5
- package/src/composition/circle.ts +1 -1
- package/src/composition/flex.ts +4 -2
- package/src/composition/index.ts +17 -8
- package/src/composition/layer.ts +3 -2
- package/src/composition/mark.ts +3 -0
- package/src/composition/rect.ts +27 -28
- package/src/composition/utils.ts +10 -0
- package/src/composition/view.ts +3 -2
- package/src/coordinate/fisheye.ts +3 -2
- package/src/coordinate/fisheyeX.ts +15 -0
- package/src/coordinate/fisheyeY.ts +15 -0
- package/src/coordinate/helix.ts +21 -0
- package/src/coordinate/index.ts +25 -5
- package/src/coordinate/reflect.ts +15 -0
- package/src/coordinate/reflectX.ts +15 -0
- package/src/coordinate/reflectY.ts +15 -0
- package/src/coordinate/theta.ts +21 -0
- package/src/data/arc.ts +16 -0
- package/src/data/cluster.ts +53 -0
- package/src/data/custom.ts +15 -0
- package/src/data/fetch.ts +28 -0
- package/src/data/filterBy.ts +28 -0
- package/src/data/fold.ts +29 -0
- package/src/data/index.ts +29 -0
- package/src/data/inline.ts +11 -0
- package/src/data/map.ts +15 -0
- package/src/data/pick.ts +15 -0
- package/src/data/rename.ts +26 -0
- package/src/data/sankey.ts +102 -0
- package/src/data/sortBy.ts +33 -0
- package/src/data/subset.ts +35 -0
- package/src/data/tree.ts +12 -0
- package/src/{transform → data}/utils/arc/arc.ts +0 -0
- package/src/data/utils/arc/index.ts +2 -0
- package/src/{transform → data}/utils/arc/sort.ts +0 -0
- package/src/{transform → data}/utils/arc/types.ts +0 -0
- package/src/{transform → data}/utils/d3-cloud/index.ts +0 -0
- package/src/{transform → data}/utils/d3-sankey/align.ts +0 -0
- package/src/{transform → data}/utils/d3-sankey/constant.ts +0 -0
- package/src/{transform → data}/utils/d3-sankey/index.ts +0 -0
- package/src/{transform → data}/utils/d3-sankey/sankey.ts +0 -0
- package/src/data/utils/fields.ts +17 -0
- package/src/{transform → data}/utils/flow.ts +0 -0
- package/src/data/utils/memo.ts +80 -0
- package/src/data/voronoi.ts +32 -0
- package/src/data/wordCloud.ts +117 -0
- package/src/encode/index.ts +9 -4
- package/src/index.ts +1 -1
- package/src/interaction/action/index.ts +43 -45
- package/src/interaction/action/service/fisheyeFocus.ts +16 -3
- package/src/interaction/action/transformer/filter.ts +8 -4
- package/src/interaction/index.ts +17 -1
- package/src/interaction/interactor/index.ts +5 -2
- package/src/interaction/types.ts +1 -1
- package/src/labelLayout/hideOverlap.ts +47 -0
- package/src/labelLayout/index.ts +1 -0
- package/src/mark/annotation/index.ts +15 -25
- package/src/mark/geometry/box.ts +105 -0
- package/src/mark/geometry/image.ts +4 -3
- package/src/mark/geometry/index.ts +23 -13
- package/src/mark/geometry/interval.ts +0 -1
- package/src/mark/geometry/line.ts +6 -1
- package/src/mark/geometry/link.ts +1 -1
- package/src/mark/geometry/point.ts +5 -2
- package/src/mark/geometry/polygon.ts +1 -1
- package/src/mark/utils.ts +1 -1
- package/src/palette/index.ts +5 -2
- package/src/runtime/component.ts +33 -6
- package/src/runtime/coordinate.ts +20 -0
- package/src/runtime/index.ts +1 -0
- package/src/runtime/layout.ts +1 -1
- package/src/runtime/mark.ts +60 -138
- package/src/runtime/plot.ts +93 -61
- package/src/runtime/render.ts +20 -15
- package/src/runtime/scale.ts +16 -6
- package/src/runtime/transform.ts +159 -0
- package/src/runtime/types/common.ts +5 -2
- package/src/runtime/types/component.ts +14 -13
- package/src/runtime/types/data.ts +10 -0
- package/src/runtime/types/encode.ts +6 -2
- package/src/runtime/types/options.ts +8 -2
- package/src/runtime/types/transform.ts +8 -13
- package/src/scale/index.ts +23 -11
- package/src/shape/annotation/text.ts +16 -4
- package/src/shape/box/box.ts +96 -0
- package/src/shape/index.ts +92 -60
- package/src/shape/interval/colorRect.ts +4 -23
- package/src/shape/label/label.ts +132 -15
- package/src/shape/{edge → link}/arc.ts +0 -0
- package/src/shape/{edge → link}/smoothEdge.ts +0 -0
- package/src/shape/{edge → link}/vhv.ts +0 -0
- package/src/shape/{edge → polygon}/ribbon.ts +0 -0
- package/src/shape/utils.ts +31 -0
- package/src/spec/composition.ts +8 -5
- package/src/spec/coordinate.ts +67 -3
- package/src/spec/data.ts +230 -0
- package/src/spec/geometry.ts +7 -4
- package/src/spec/index.ts +2 -1
- package/src/spec/labelLayout.ts +5 -0
- package/src/spec/transform.ts +129 -195
- package/src/stdlib/index.ts +62 -45
- package/src/theme/light.ts +1 -0
- package/src/transform/dodgeX.ts +60 -0
- package/src/transform/flexX.ts +38 -0
- package/src/transform/groupX.ts +109 -0
- package/src/transform/index.ts +46 -46
- package/src/transform/jitter.ts +45 -0
- package/src/transform/jitterY.ts +26 -0
- package/src/transform/maybeKey.ts +26 -0
- package/src/transform/maybeSeries.ts +20 -0
- package/src/transform/maybeSize.ts +23 -0
- package/src/transform/maybeStackY.ts +37 -0
- package/src/transform/maybeTitleX.ts +20 -0
- package/src/transform/maybeTooltip.ts +34 -0
- package/src/transform/maybeTooltipPosition.ts +14 -0
- package/src/transform/maybeTooltipY.ts +13 -0
- package/src/transform/maybeZeroX.ts +25 -0
- package/src/transform/maybeZeroY.ts +24 -0
- package/src/transform/maybeZeroY1.ts +24 -0
- package/src/transform/normalizeY.ts +69 -0
- package/src/transform/select.ts +53 -0
- package/src/transform/selectX.ts +15 -0
- package/src/transform/selectY.ts +15 -0
- package/src/transform/sortX.ts +48 -0
- package/src/transform/stackEnter.ts +73 -0
- package/src/transform/stackY.ts +84 -0
- package/src/transform/symmetryY.ts +60 -0
- package/src/transform/utils/helper.ts +27 -44
- package/src/transform/utils/order.ts +123 -0
- package/src/utils/coordinate.ts +9 -0
- package/esm/mark/geometry/edge.d.ts +0 -13
- package/esm/mark/geometry/edge.js +0 -31
- package/esm/mark/geometry/edge.js.map +0 -1
- package/esm/mark/geometry/node.d.ts +0 -8
- package/esm/mark/geometry/node.js +0 -27
- package/esm/mark/geometry/node.js.map +0 -1
- package/esm/mark/geometry/schema.d.ts +0 -34
- package/esm/mark/geometry/schema.js +0 -90
- package/esm/mark/geometry/schema.js.map +0 -1
- package/esm/renderer/canvas.d.ts +0 -10
- package/esm/renderer/canvas.js +0 -18
- package/esm/renderer/canvas.js.map +0 -1
- package/esm/renderer/index.d.ts +0 -1
- package/esm/renderer/index.js +0 -2
- package/esm/renderer/index.js.map +0 -1
- package/esm/shape/edge/arc.js.map +0 -1
- package/esm/shape/edge/edge.d.ts +0 -6
- package/esm/shape/edge/edge.js +0 -11
- package/esm/shape/edge/edge.js.map +0 -1
- package/esm/shape/edge/ribbon.js.map +0 -1
- package/esm/shape/edge/smoothEdge.js.map +0 -1
- package/esm/shape/edge/vhv.js.map +0 -1
- package/esm/shape/node/point.d.ts +0 -6
- package/esm/shape/node/point.js +0 -27
- package/esm/shape/node/point.js.map +0 -1
- package/esm/shape/node/polygon.d.ts +0 -3
- package/esm/shape/node/polygon.js +0 -8
- package/esm/shape/node/polygon.js.map +0 -1
- package/esm/shape/schema/box.js +0 -87
- package/esm/shape/schema/box.js.map +0 -1
- package/esm/spec/statistic.d.ts +0 -69
- package/esm/spec/statistic.js +0 -2
- package/esm/spec/statistic.js.map +0 -1
- package/esm/transform/inference/maybeArrayField.d.ts +0 -8
- package/esm/transform/inference/maybeArrayField.js +0 -47
- package/esm/transform/inference/maybeArrayField.js.map +0 -1
- package/esm/transform/inference/maybeKey.d.ts +0 -9
- package/esm/transform/inference/maybeKey.js +0 -33
- package/esm/transform/inference/maybeKey.js.map +0 -1
- package/esm/transform/inference/maybeSeries.d.ts +0 -7
- package/esm/transform/inference/maybeSeries.js +0 -23
- package/esm/transform/inference/maybeSeries.js.map +0 -1
- package/esm/transform/inference/maybeSize.d.ts +0 -7
- package/esm/transform/inference/maybeSize.js +0 -14
- package/esm/transform/inference/maybeSize.js.map +0 -1
- package/esm/transform/inference/maybeStackY.d.ts +0 -9
- package/esm/transform/inference/maybeStackY.js +0 -32
- package/esm/transform/inference/maybeStackY.js.map +0 -1
- package/esm/transform/inference/maybeTitleX.d.ts +0 -7
- package/esm/transform/inference/maybeTitleX.js +0 -23
- package/esm/transform/inference/maybeTitleX.js.map +0 -1
- package/esm/transform/inference/maybeTooltip.d.ts +0 -9
- package/esm/transform/inference/maybeTooltip.js +0 -30
- package/esm/transform/inference/maybeTooltip.js.map +0 -1
- package/esm/transform/inference/maybeTooltipPosition.d.ts +0 -7
- package/esm/transform/inference/maybeTooltipPosition.js +0 -12
- package/esm/transform/inference/maybeTooltipPosition.js.map +0 -1
- package/esm/transform/inference/maybeTooltipY.d.ts +0 -7
- package/esm/transform/inference/maybeTooltipY.js +0 -12
- package/esm/transform/inference/maybeTooltipY.js.map +0 -1
- package/esm/transform/inference/maybeZeroX.d.ts +0 -7
- package/esm/transform/inference/maybeZeroX.js +0 -14
- package/esm/transform/inference/maybeZeroX.js.map +0 -1
- package/esm/transform/inference/maybeZeroY.d.ts +0 -7
- package/esm/transform/inference/maybeZeroY.js +0 -14
- package/esm/transform/inference/maybeZeroY.js.map +0 -1
- package/esm/transform/inference/maybeZeroY1.d.ts +0 -7
- package/esm/transform/inference/maybeZeroY1.js +0 -14
- package/esm/transform/inference/maybeZeroY1.js.map +0 -1
- package/esm/transform/preprocessor/arc.d.ts +0 -7
- package/esm/transform/preprocessor/arc.js +0 -16
- package/esm/transform/preprocessor/arc.js.map +0 -1
- package/esm/transform/preprocessor/cluster.d.ts +0 -5
- package/esm/transform/preprocessor/cluster.js +0 -40
- package/esm/transform/preprocessor/cluster.js.map +0 -1
- package/esm/transform/preprocessor/connector.d.ts +0 -7
- package/esm/transform/preprocessor/connector.js +0 -16
- package/esm/transform/preprocessor/connector.js.map +0 -1
- package/esm/transform/preprocessor/fetch.d.ts +0 -8
- package/esm/transform/preprocessor/fetch.js +0 -36
- package/esm/transform/preprocessor/fetch.js.map +0 -1
- package/esm/transform/preprocessor/filterBy.d.ts +0 -8
- package/esm/transform/preprocessor/filterBy.js +0 -18
- package/esm/transform/preprocessor/filterBy.js.map +0 -1
- package/esm/transform/preprocessor/fold.d.ts +0 -8
- package/esm/transform/preprocessor/fold.js +0 -27
- package/esm/transform/preprocessor/fold.js.map +0 -1
- package/esm/transform/preprocessor/pick.d.ts +0 -7
- package/esm/transform/preprocessor/pick.js +0 -12
- package/esm/transform/preprocessor/pick.js.map +0 -1
- package/esm/transform/preprocessor/rename.d.ts +0 -8
- package/esm/transform/preprocessor/rename.js +0 -20
- package/esm/transform/preprocessor/rename.js.map +0 -1
- package/esm/transform/preprocessor/sankey.d.ts +0 -8
- package/esm/transform/preprocessor/sankey.js +0 -80
- package/esm/transform/preprocessor/sankey.js.map +0 -1
- package/esm/transform/preprocessor/sortBy.d.ts +0 -7
- package/esm/transform/preprocessor/sortBy.js +0 -19
- package/esm/transform/preprocessor/sortBy.js.map +0 -1
- package/esm/transform/preprocessor/subset.d.ts +0 -7
- package/esm/transform/preprocessor/subset.js +0 -31
- package/esm/transform/preprocessor/subset.js.map +0 -1
- package/esm/transform/preprocessor/tree.d.ts +0 -4
- package/esm/transform/preprocessor/tree.js +0 -7
- package/esm/transform/preprocessor/tree.js.map +0 -1
- package/esm/transform/preprocessor/voronoi.d.ts +0 -4
- package/esm/transform/preprocessor/voronoi.js +0 -20
- package/esm/transform/preprocessor/voronoi.js.map +0 -1
- package/esm/transform/preprocessor/wordCloud.d.ts +0 -6
- package/esm/transform/preprocessor/wordCloud.js +0 -106
- package/esm/transform/preprocessor/wordCloud.js.map +0 -1
- package/esm/transform/statistic/Select.d.ts +0 -9
- package/esm/transform/statistic/Select.js +0 -58
- package/esm/transform/statistic/Select.js.map +0 -1
- package/esm/transform/statistic/SelectX.d.ts +0 -7
- package/esm/transform/statistic/SelectX.js +0 -23
- package/esm/transform/statistic/SelectX.js.map +0 -1
- package/esm/transform/statistic/SelectY.d.ts +0 -7
- package/esm/transform/statistic/SelectY.js +0 -23
- package/esm/transform/statistic/SelectY.js.map +0 -1
- package/esm/transform/statistic/dodgeX.d.ts +0 -9
- package/esm/transform/statistic/dodgeX.js +0 -56
- package/esm/transform/statistic/dodgeX.js.map +0 -1
- package/esm/transform/statistic/groupX.d.ts +0 -8
- package/esm/transform/statistic/groupX.js +0 -85
- package/esm/transform/statistic/groupX.js.map +0 -1
- package/esm/transform/statistic/jitter.d.ts +0 -9
- package/esm/transform/statistic/jitter.js +0 -40
- package/esm/transform/statistic/jitter.js.map +0 -1
- package/esm/transform/statistic/jitterY.d.ts +0 -8
- package/esm/transform/statistic/jitterY.js +0 -27
- package/esm/transform/statistic/jitterY.js.map +0 -1
- package/esm/transform/statistic/normalizeY.d.ts +0 -9
- package/esm/transform/statistic/normalizeY.js +0 -70
- package/esm/transform/statistic/normalizeY.js.map +0 -1
- package/esm/transform/statistic/stackEnter.d.ts +0 -13
- package/esm/transform/statistic/stackEnter.js +0 -59
- package/esm/transform/statistic/stackEnter.js.map +0 -1
- package/esm/transform/statistic/stackY.d.ts +0 -9
- package/esm/transform/statistic/stackY.js +0 -55
- package/esm/transform/statistic/stackY.js.map +0 -1
- package/esm/transform/statistic/symmetryY.d.ts +0 -8
- package/esm/transform/statistic/symmetryY.js +0 -61
- package/esm/transform/statistic/symmetryY.js.map +0 -1
- package/esm/transform/statistic/utils.d.ts +0 -9
- package/esm/transform/statistic/utils.js +0 -70
- package/esm/transform/statistic/utils.js.map +0 -1
- package/esm/transform/utils/arc/arc.js.map +0 -1
- package/esm/transform/utils/arc/index.d.ts +0 -2
- package/esm/transform/utils/arc/index.js.map +0 -1
- package/esm/transform/utils/arc/sort.js.map +0 -1
- package/esm/transform/utils/arc/types.js.map +0 -1
- package/esm/transform/utils/d3-cloud/index.js.map +0 -1
- package/esm/transform/utils/d3-sankey/align.js.map +0 -1
- package/esm/transform/utils/d3-sankey/constant.js.map +0 -1
- package/esm/transform/utils/d3-sankey/index.js.map +0 -1
- package/esm/transform/utils/d3-sankey/sankey.js.map +0 -1
- package/esm/transform/utils/flow.js.map +0 -1
- package/esm/transform/utils/memo.js.map +0 -1
- package/lib/mark/geometry/edge.d.ts +0 -13
- package/lib/mark/geometry/edge.js +0 -35
- package/lib/mark/geometry/edge.js.map +0 -1
- package/lib/mark/geometry/node.d.ts +0 -8
- package/lib/mark/geometry/node.js +0 -31
- package/lib/mark/geometry/node.js.map +0 -1
- package/lib/mark/geometry/schema.d.ts +0 -34
- package/lib/mark/geometry/schema.js +0 -94
- package/lib/mark/geometry/schema.js.map +0 -1
- package/lib/renderer/canvas.d.ts +0 -10
- package/lib/renderer/canvas.js +0 -22
- package/lib/renderer/canvas.js.map +0 -1
- package/lib/renderer/index.d.ts +0 -1
- package/lib/renderer/index.js +0 -6
- package/lib/renderer/index.js.map +0 -1
- package/lib/shape/edge/arc.js.map +0 -1
- package/lib/shape/edge/edge.d.ts +0 -6
- package/lib/shape/edge/edge.js +0 -15
- package/lib/shape/edge/edge.js.map +0 -1
- package/lib/shape/edge/ribbon.js.map +0 -1
- package/lib/shape/edge/smoothEdge.js.map +0 -1
- package/lib/shape/edge/vhv.js.map +0 -1
- package/lib/shape/node/point.d.ts +0 -6
- package/lib/shape/node/point.js +0 -31
- package/lib/shape/node/point.js.map +0 -1
- package/lib/shape/node/polygon.d.ts +0 -3
- package/lib/shape/node/polygon.js +0 -12
- package/lib/shape/node/polygon.js.map +0 -1
- package/lib/shape/schema/box.js +0 -91
- package/lib/shape/schema/box.js.map +0 -1
- package/lib/spec/statistic.d.ts +0 -69
- package/lib/spec/statistic.js +0 -3
- package/lib/spec/statistic.js.map +0 -1
- package/lib/transform/inference/maybeArrayField.d.ts +0 -8
- package/lib/transform/inference/maybeArrayField.js +0 -51
- package/lib/transform/inference/maybeArrayField.js.map +0 -1
- package/lib/transform/inference/maybeKey.d.ts +0 -9
- package/lib/transform/inference/maybeKey.js +0 -37
- package/lib/transform/inference/maybeKey.js.map +0 -1
- package/lib/transform/inference/maybeSeries.d.ts +0 -7
- package/lib/transform/inference/maybeSeries.js +0 -27
- package/lib/transform/inference/maybeSeries.js.map +0 -1
- package/lib/transform/inference/maybeSize.d.ts +0 -7
- package/lib/transform/inference/maybeSize.js +0 -18
- package/lib/transform/inference/maybeSize.js.map +0 -1
- package/lib/transform/inference/maybeStackY.d.ts +0 -9
- package/lib/transform/inference/maybeStackY.js +0 -36
- package/lib/transform/inference/maybeStackY.js.map +0 -1
- package/lib/transform/inference/maybeTitleX.d.ts +0 -7
- package/lib/transform/inference/maybeTitleX.js +0 -27
- package/lib/transform/inference/maybeTitleX.js.map +0 -1
- package/lib/transform/inference/maybeTooltip.d.ts +0 -9
- package/lib/transform/inference/maybeTooltip.js +0 -34
- package/lib/transform/inference/maybeTooltip.js.map +0 -1
- package/lib/transform/inference/maybeTooltipPosition.d.ts +0 -7
- package/lib/transform/inference/maybeTooltipPosition.js +0 -16
- package/lib/transform/inference/maybeTooltipPosition.js.map +0 -1
- package/lib/transform/inference/maybeTooltipY.d.ts +0 -7
- package/lib/transform/inference/maybeTooltipY.js +0 -16
- package/lib/transform/inference/maybeTooltipY.js.map +0 -1
- package/lib/transform/inference/maybeZeroX.d.ts +0 -7
- package/lib/transform/inference/maybeZeroX.js +0 -18
- package/lib/transform/inference/maybeZeroX.js.map +0 -1
- package/lib/transform/inference/maybeZeroY.d.ts +0 -7
- package/lib/transform/inference/maybeZeroY.js +0 -18
- package/lib/transform/inference/maybeZeroY.js.map +0 -1
- package/lib/transform/inference/maybeZeroY1.d.ts +0 -7
- package/lib/transform/inference/maybeZeroY1.js +0 -18
- package/lib/transform/inference/maybeZeroY1.js.map +0 -1
- package/lib/transform/preprocessor/arc.d.ts +0 -7
- package/lib/transform/preprocessor/arc.js +0 -20
- package/lib/transform/preprocessor/arc.js.map +0 -1
- package/lib/transform/preprocessor/cluster.d.ts +0 -5
- package/lib/transform/preprocessor/cluster.js +0 -44
- package/lib/transform/preprocessor/cluster.js.map +0 -1
- package/lib/transform/preprocessor/connector.d.ts +0 -7
- package/lib/transform/preprocessor/connector.js +0 -20
- package/lib/transform/preprocessor/connector.js.map +0 -1
- package/lib/transform/preprocessor/fetch.d.ts +0 -8
- package/lib/transform/preprocessor/fetch.js +0 -40
- package/lib/transform/preprocessor/fetch.js.map +0 -1
- package/lib/transform/preprocessor/filterBy.d.ts +0 -8
- package/lib/transform/preprocessor/filterBy.js +0 -22
- package/lib/transform/preprocessor/filterBy.js.map +0 -1
- package/lib/transform/preprocessor/fold.d.ts +0 -8
- package/lib/transform/preprocessor/fold.js +0 -32
- package/lib/transform/preprocessor/fold.js.map +0 -1
- package/lib/transform/preprocessor/pick.d.ts +0 -7
- package/lib/transform/preprocessor/pick.js +0 -16
- package/lib/transform/preprocessor/pick.js.map +0 -1
- package/lib/transform/preprocessor/rename.d.ts +0 -8
- package/lib/transform/preprocessor/rename.js +0 -25
- package/lib/transform/preprocessor/rename.js.map +0 -1
- package/lib/transform/preprocessor/sankey.d.ts +0 -8
- package/lib/transform/preprocessor/sankey.js +0 -84
- package/lib/transform/preprocessor/sankey.js.map +0 -1
- package/lib/transform/preprocessor/sortBy.d.ts +0 -7
- package/lib/transform/preprocessor/sortBy.js +0 -23
- package/lib/transform/preprocessor/sortBy.js.map +0 -1
- package/lib/transform/preprocessor/subset.d.ts +0 -7
- package/lib/transform/preprocessor/subset.js +0 -35
- package/lib/transform/preprocessor/subset.js.map +0 -1
- package/lib/transform/preprocessor/tree.d.ts +0 -4
- package/lib/transform/preprocessor/tree.js +0 -10
- package/lib/transform/preprocessor/tree.js.map +0 -1
- package/lib/transform/preprocessor/voronoi.d.ts +0 -4
- package/lib/transform/preprocessor/voronoi.js +0 -24
- package/lib/transform/preprocessor/voronoi.js.map +0 -1
- package/lib/transform/preprocessor/wordCloud.d.ts +0 -6
- package/lib/transform/preprocessor/wordCloud.js +0 -112
- package/lib/transform/preprocessor/wordCloud.js.map +0 -1
- package/lib/transform/statistic/Select.d.ts +0 -9
- package/lib/transform/statistic/Select.js +0 -62
- package/lib/transform/statistic/Select.js.map +0 -1
- package/lib/transform/statistic/SelectX.d.ts +0 -7
- package/lib/transform/statistic/SelectX.js +0 -27
- package/lib/transform/statistic/SelectX.js.map +0 -1
- package/lib/transform/statistic/SelectY.d.ts +0 -7
- package/lib/transform/statistic/SelectY.js +0 -27
- package/lib/transform/statistic/SelectY.js.map +0 -1
- package/lib/transform/statistic/dodgeX.d.ts +0 -9
- package/lib/transform/statistic/dodgeX.js +0 -60
- package/lib/transform/statistic/dodgeX.js.map +0 -1
- package/lib/transform/statistic/groupX.d.ts +0 -8
- package/lib/transform/statistic/groupX.js +0 -89
- package/lib/transform/statistic/groupX.js.map +0 -1
- package/lib/transform/statistic/jitter.d.ts +0 -9
- package/lib/transform/statistic/jitter.js +0 -45
- package/lib/transform/statistic/jitter.js.map +0 -1
- package/lib/transform/statistic/jitterY.d.ts +0 -8
- package/lib/transform/statistic/jitterY.js +0 -31
- package/lib/transform/statistic/jitterY.js.map +0 -1
- package/lib/transform/statistic/normalizeY.d.ts +0 -9
- package/lib/transform/statistic/normalizeY.js +0 -74
- package/lib/transform/statistic/normalizeY.js.map +0 -1
- package/lib/transform/statistic/stackEnter.d.ts +0 -13
- package/lib/transform/statistic/stackEnter.js +0 -63
- package/lib/transform/statistic/stackEnter.js.map +0 -1
- package/lib/transform/statistic/stackY.d.ts +0 -9
- package/lib/transform/statistic/stackY.js +0 -59
- package/lib/transform/statistic/stackY.js.map +0 -1
- package/lib/transform/statistic/symmetryY.d.ts +0 -8
- package/lib/transform/statistic/symmetryY.js +0 -65
- package/lib/transform/statistic/symmetryY.js.map +0 -1
- package/lib/transform/statistic/utils.d.ts +0 -9
- package/lib/transform/statistic/utils.js +0 -77
- package/lib/transform/statistic/utils.js.map +0 -1
- package/lib/transform/utils/arc/arc.js.map +0 -1
- package/lib/transform/utils/arc/index.d.ts +0 -2
- package/lib/transform/utils/arc/index.js.map +0 -1
- package/lib/transform/utils/arc/sort.js.map +0 -1
- package/lib/transform/utils/arc/types.js.map +0 -1
- package/lib/transform/utils/d3-cloud/index.js.map +0 -1
- package/lib/transform/utils/d3-sankey/align.js.map +0 -1
- package/lib/transform/utils/d3-sankey/constant.js.map +0 -1
- package/lib/transform/utils/d3-sankey/index.js.map +0 -1
- package/lib/transform/utils/d3-sankey/sankey.js.map +0 -1
- package/lib/transform/utils/flow.js.map +0 -1
- package/lib/transform/utils/memo.js.map +0 -1
- package/src/mark/geometry/edge.ts +0 -40
- package/src/mark/geometry/node.ts +0 -36
- package/src/mark/geometry/schema.ts +0 -105
- package/src/renderer/canvas.ts +0 -27
- package/src/renderer/index.ts +0 -1
- package/src/shape/edge/edge.ts +0 -15
- package/src/shape/node/point.ts +0 -32
- package/src/shape/node/polygon.ts +0 -12
- package/src/shape/schema/box.ts +0 -96
- package/src/spec/statistic.ts +0 -135
- package/src/transform/inference/maybeArrayField.ts +0 -55
- package/src/transform/inference/maybeKey.ts +0 -29
- package/src/transform/inference/maybeSeries.ts +0 -26
- package/src/transform/inference/maybeSize.ts +0 -18
- package/src/transform/inference/maybeStackY.ts +0 -38
- package/src/transform/inference/maybeTitleX.ts +0 -26
- package/src/transform/inference/maybeTooltip.ts +0 -35
- package/src/transform/inference/maybeTooltipPosition.ts +0 -16
- package/src/transform/inference/maybeTooltipY.ts +0 -16
- package/src/transform/inference/maybeZeroX.ts +0 -18
- package/src/transform/inference/maybeZeroY.ts +0 -18
- package/src/transform/inference/maybeZeroY1.ts +0 -18
- package/src/transform/preprocessor/arc.ts +0 -21
- package/src/transform/preprocessor/cluster.ts +0 -56
- package/src/transform/preprocessor/connector.ts +0 -22
- package/src/transform/preprocessor/fetch.ts +0 -32
- package/src/transform/preprocessor/filterBy.ts +0 -24
- package/src/transform/preprocessor/fold.ts +0 -32
- package/src/transform/preprocessor/pick.ts +0 -17
- package/src/transform/preprocessor/rename.ts +0 -29
- package/src/transform/preprocessor/sankey.ts +0 -105
- package/src/transform/preprocessor/sortBy.ts +0 -28
- package/src/transform/preprocessor/subset.ts +0 -40
- package/src/transform/preprocessor/tree.ts +0 -12
- package/src/transform/preprocessor/voronoi.ts +0 -30
- package/src/transform/preprocessor/wordCloud.ts +0 -115
- package/src/transform/statistic/dodgeX.ts +0 -56
- package/src/transform/statistic/groupX.ts +0 -91
- package/src/transform/statistic/jitter.ts +0 -49
- package/src/transform/statistic/jitterY.ts +0 -32
- package/src/transform/statistic/normalizeY.ts +0 -69
- package/src/transform/statistic/select.ts +0 -58
- package/src/transform/statistic/selectX.ts +0 -17
- package/src/transform/statistic/selectY.ts +0 -17
- package/src/transform/statistic/stackEnter.ts +0 -65
- package/src/transform/statistic/stackY.ts +0 -58
- package/src/transform/statistic/symmetryY.ts +0 -59
- package/src/transform/statistic/utils.ts +0 -120
- package/src/transform/utils/arc/index.ts +0 -2
- package/src/transform/utils/memo.ts +0 -79
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transform.js","sourceRoot":"src/","sources":["runtime/transform.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;AACA,0CAAoD;AACpD,4CAAwD;AACxD,uCAAuC;AACvC,iCAAwC;AAIxC,mCAAqC;AAErC,2BAA2B;AAC3B,SAAgB,aAAa,CAC3B,CAAW,EACX,IAAY,EACZ,OAAyB;IAEzB,MAAM,EAAE,KAAK,GAAG,EAAE,EAAE,SAAS,GAAG,EAAE,KAAc,IAAI,EAAb,IAAI,UAAK,IAAI,EAA9C,sBAAuC,CAAO,CAAC;IACrD,OAAO,CAAC,CAAC,kCAAO,IAAI,KAAE,KAAK,EAAE,SAAS,IAAG,CAAC;AAC5C,CAAC;AAPD,sCAOC;AAED,SAAsB,kBAAkB,CACtC,CAAW,EACX,IAAY,EACZ,OAAyB;;QAEzB,MAAM,EAAE,OAAO,EAAE,GAAG,OAAO,CAAC;QAC5B,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,MAAM,CAAC,OAAO,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AAgB,CAAC,IAAiC,EAAE,OAAO;;IAClE,IAAI,OAAO,OAAO,KAAK,UAAU;QAAE,OAAO,WAAW,CAAC;IACtD,IAAI,OAAO,OAAO,KAAK,QAAQ,IAAI,CAAA,MAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAG,CAAC,CAAC,0CAAG,OAAO,CAAC,MAAK,SAAS,EAAE;QACrE,OAAO,OAAO,CAAC;KAChB;IACD,OAAO,UAAU,CAAC;AACpB,CAAC;AAED,SAAS,oBAAoB,CAAC,IAAI;IAChC,IAAI,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAAE,OAAO,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,CAAC;IAChE,MAAM,EAAE,IAAI,GAAG,QAAQ,KAAc,IAAI,EAAb,IAAI,UAAK,IAAI,EAAnC,QAA4B,CAAO,CAAC;IAC1C,uCAAY,IAAI,KAAE,IAAI,IAAG;AAC3B,CAAC"}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
import { Coordinate } from '@antv/coord';
|
|
2
2
|
import { DisplayObject } from '@antv/g';
|
|
3
3
|
import { G2GuideComponentOptions, G2Mark, G2ViewTree } from './options';
|
|
4
|
-
import { Scale } from './component';
|
|
4
|
+
import { LabelLayout, Scale } from './component';
|
|
5
5
|
import { MarkProps } from './mark';
|
|
6
|
-
import { ColumnValue } from './encode';
|
|
7
6
|
export declare type G2Theme = {
|
|
8
7
|
defaultColor?: string;
|
|
9
8
|
defaultCategory10?: string;
|
|
10
9
|
defaultCategory20?: string;
|
|
11
10
|
defaultSize?: number;
|
|
12
11
|
elementActiveStroke?: string;
|
|
12
|
+
labelFill?: string;
|
|
13
13
|
enter?: {
|
|
14
14
|
duration?: number;
|
|
15
15
|
delay?: number;
|
|
@@ -52,6 +52,7 @@ export declare type G2ViewDescriptor = {
|
|
|
52
52
|
layout: Layout;
|
|
53
53
|
key: string;
|
|
54
54
|
frame: boolean;
|
|
55
|
+
labelLayout?: LabelLayout;
|
|
55
56
|
};
|
|
56
57
|
export declare type G2ViewInstance = {
|
|
57
58
|
view: G2ViewDescriptor;
|
|
@@ -88,10 +89,11 @@ export declare type Channel = {
|
|
|
88
89
|
scale?: string;
|
|
89
90
|
scaleName?: string;
|
|
90
91
|
required?: boolean;
|
|
91
|
-
value?:
|
|
92
|
+
value?: Primitive[];
|
|
92
93
|
type?: string;
|
|
93
94
|
independent?: boolean;
|
|
94
95
|
field?: string | string[];
|
|
96
|
+
visual?: boolean;
|
|
95
97
|
};
|
|
96
98
|
export declare type Vector2 = [number, number];
|
|
97
99
|
export declare type BBox = {
|
|
@@ -1,19 +1,18 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DisplayObject, IAnimation as GAnimation } from '@antv/g';
|
|
2
2
|
import { Transformation, Coordinate } from '@antv/coord';
|
|
3
3
|
import { IndexedValue, G2Theme, Vector2, GuideComponentPosition, Layout, G2ViewInstance } from './common';
|
|
4
4
|
import { G2ViewTree } from './options';
|
|
5
5
|
import { EncodeComponent, Encode } from './encode';
|
|
6
6
|
import { MarkComponent, Mark } from './mark';
|
|
7
7
|
import { TransformComponent, Transform } from './transform';
|
|
8
|
-
|
|
9
|
-
export declare type
|
|
10
|
-
export declare type
|
|
8
|
+
import { DataComponent } from './data';
|
|
9
|
+
export declare type G2ComponentNamespaces = 'coordinate' | 'encode' | 'mark' | 'infer' | 'palette' | 'scale' | 'shape' | 'statistic' | 'theme' | 'transform' | 'component' | 'animation' | 'action' | 'interaction' | 'interactor' | 'composition' | 'adjust' | 'data' | 'labelLayout';
|
|
10
|
+
export declare type G2Component = EncodeComponent | InferComponent | StatisticComponent | ScaleComponent | CoordinateComponent | PaletteComponent | MarkComponent | ShapeComponent | ThemeComponent | GuideComponentComponent | AnimationComponent | InteractionComponent | CompositionComponent | AdjustComponent | TransformComponent | DataComponent | LabelLayoutComponent;
|
|
11
|
+
export declare type G2ComponentValue = Transform | Encode | Infer | Statistic | Scale | CoordinateTransform | Palette | Mark | Shape | Theme | GuideComponent | Animation | Interaction | Composition | Adjust;
|
|
11
12
|
export declare type G2BaseComponent<R = any, O = Record<string, unknown> | void, P = Record<string, unknown>> = {
|
|
12
13
|
(options?: O): R;
|
|
13
14
|
props?: P;
|
|
14
15
|
};
|
|
15
|
-
export declare type Renderer = Canvas;
|
|
16
|
-
export declare type RendererComponent<O = Record<string, unknown>> = G2BaseComponent<Renderer, O>;
|
|
17
16
|
export declare type InferredEncode = {
|
|
18
17
|
type?: string;
|
|
19
18
|
[key: string | symbol]: any;
|
|
@@ -71,3 +70,5 @@ export declare type Composition = (children: G2ViewTree) => G2ViewTree[] | (() =
|
|
|
71
70
|
export declare type CompositionComponent<O = Record<string, unknown>> = G2BaseComponent<Composition, O>;
|
|
72
71
|
export declare type Adjust = (points: Vector2[][], domain: number, layout: Layout) => string[];
|
|
73
72
|
export declare type AdjustComponent<O = Record<string, unknown>> = G2BaseComponent<Adjust, O>;
|
|
73
|
+
export declare type LabelLayout = (labels: DisplayObject[]) => DisplayObject[];
|
|
74
|
+
export declare type LabelLayoutComponent<O = Record<string, unknown>> = G2BaseComponent<LabelLayout, O>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export declare type DataOptions = Record<string, any>;
|
|
2
|
+
export declare type DataProps = Record<string, never>;
|
|
3
|
+
export declare type DataComponent<O extends DataOptions = DataOptions> = {
|
|
4
|
+
(options?: O): Data;
|
|
5
|
+
props: DataProps;
|
|
6
|
+
};
|
|
7
|
+
export declare type Data = (data: any) => any | Promise<any>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"data.js","sourceRoot":"src/","sources":["runtime/types/data.ts"],"names":[],"mappings":""}
|
|
@@ -7,7 +7,7 @@ export declare type EncodeComponent<O extends EncodeOptions = EncodeOptions> = {
|
|
|
7
7
|
(options?: O): Encode;
|
|
8
8
|
props: EncodeProps;
|
|
9
9
|
};
|
|
10
|
-
export declare type Encode = (data: TabularData) =>
|
|
10
|
+
export declare type Encode = (data: TabularData) => Primitive[];
|
|
11
11
|
export declare type EncodeSpec = NormalizedEncodeSpec | PrimitiveEncodeSpec;
|
|
12
12
|
export declare type NormalizedEncodeSpec = {
|
|
13
13
|
type?: string;
|
|
@@ -16,6 +16,8 @@ export declare type NormalizedEncodeSpec = {
|
|
|
16
16
|
};
|
|
17
17
|
export declare type FunctionEncodeSpec = (value: TabularData[number], index: number, array: TabularData) => Primitive;
|
|
18
18
|
export declare type PrimitiveEncodeSpec = Primitive | FunctionEncodeSpec;
|
|
19
|
-
export declare type ColumnValue =
|
|
19
|
+
export declare type ColumnValue = {
|
|
20
|
+
type: 'column';
|
|
21
|
+
value: Primitive[];
|
|
20
22
|
field?: string;
|
|
21
23
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Canvas } from '@antv/g';
|
|
2
2
|
import { G2Title, GuideComponentPosition, Layout, Primitive } from './common';
|
|
3
|
-
import { G2BaseComponent, StatisticComponent, ThemeComponent, G2ComponentNamespaces, CoordinateComponent, ScaleComponent, InferComponent, ShapeComponent, PaletteComponent, GuideComponentComponent, AnimationComponent, InteractionComponent, CompositionComponent, AdjustComponent, Scale } from './component';
|
|
3
|
+
import { G2BaseComponent, StatisticComponent, ThemeComponent, G2ComponentNamespaces, CoordinateComponent, ScaleComponent, InferComponent, ShapeComponent, PaletteComponent, GuideComponentComponent, AnimationComponent, InteractionComponent, CompositionComponent, AdjustComponent, Scale, LabelLayoutComponent } from './component';
|
|
4
4
|
import { TransformComponent } from './transform';
|
|
5
5
|
import { EncodeComponent } from './encode';
|
|
6
6
|
import { MarkComponent } from './mark';
|
|
7
|
+
import { DataComponent } from './data';
|
|
7
8
|
export declare type G2ViewTree = {
|
|
8
9
|
width?: number;
|
|
9
10
|
height?: number;
|
|
@@ -40,6 +41,7 @@ export declare type G2View = {
|
|
|
40
41
|
type?: string;
|
|
41
42
|
[key: string]: any;
|
|
42
43
|
};
|
|
44
|
+
labelLayout?: G2LabelLayoutOptions[];
|
|
43
45
|
};
|
|
44
46
|
export declare type G2Mark = {
|
|
45
47
|
key?: string;
|
|
@@ -50,7 +52,6 @@ export declare type G2Mark = {
|
|
|
50
52
|
paddingBottom?: number;
|
|
51
53
|
data?: any;
|
|
52
54
|
transform?: G2TransformOptions[];
|
|
53
|
-
statistic?: G2StatisticOptions[];
|
|
54
55
|
scale?: Record<string, G2ScaleOptions>;
|
|
55
56
|
encode?: Record<string, any | G2EncodeOptions>;
|
|
56
57
|
type?: string | MarkComponent;
|
|
@@ -61,6 +62,7 @@ export declare type G2Mark = {
|
|
|
61
62
|
dataDomain?: number;
|
|
62
63
|
frame?: boolean;
|
|
63
64
|
style?: Record<string, Primitive>;
|
|
65
|
+
labels?: Record<string, any>[];
|
|
64
66
|
};
|
|
65
67
|
export declare type G2MarkChildrenCallback = (visualData: Record<string, any>[], scale: Record<string, Scale>, layout: Layout) => Node[];
|
|
66
68
|
export declare type G2BaseComponentOptions<C = G2BaseComponent, O = {
|
|
@@ -68,7 +70,7 @@ export declare type G2BaseComponentOptions<C = G2BaseComponent, O = {
|
|
|
68
70
|
}> = {
|
|
69
71
|
type?: string | C;
|
|
70
72
|
} & O;
|
|
71
|
-
export declare type G2ComponentOptions = G2TransformOptions | G2StatisticOptions | G2EncodeOptions | G2ThemeOptions | G2MarkOptions | G2CoordinateOptions | G2ScaleOptions | G2InferOptions | G2ShapeOptions | G2PaletteOptions | G2GuideComponentOptions | G2AnimationOptions | G2InteractionOptions | G2CompositionOptions | G2AdjustOptions;
|
|
73
|
+
export declare type G2ComponentOptions = G2TransformOptions | G2StatisticOptions | G2EncodeOptions | G2ThemeOptions | G2MarkOptions | G2CoordinateOptions | G2ScaleOptions | G2InferOptions | G2ShapeOptions | G2PaletteOptions | G2GuideComponentOptions | G2AnimationOptions | G2InteractionOptions | G2CompositionOptions | G2AdjustOptions | G2LabelLayoutOptions;
|
|
72
74
|
export declare type G2TransformOptions = G2BaseComponentOptions<TransformComponent>;
|
|
73
75
|
export declare type G2StatisticOptions = G2BaseComponentOptions<StatisticComponent>;
|
|
74
76
|
export declare type G2EncodeOptions = G2BaseComponentOptions<EncodeComponent>;
|
|
@@ -99,8 +101,10 @@ export declare type G2AnimationOptions = G2BaseComponentOptions<AnimationCompone
|
|
|
99
101
|
export declare type G2InteractionOptions = G2BaseComponentOptions<InteractionComponent>;
|
|
100
102
|
export declare type G2CompositionOptions = G2BaseComponentOptions<CompositionComponent>;
|
|
101
103
|
export declare type G2AdjustOptions = G2BaseComponentOptions<AdjustComponent>;
|
|
104
|
+
export declare type G2LabelLayoutOptions = G2BaseComponentOptions<LabelLayoutComponent>;
|
|
102
105
|
export declare type G2TitleOptions = G2Title & {
|
|
103
106
|
position?: GuideComponentPosition;
|
|
104
107
|
size?: number;
|
|
105
108
|
zIndex?: number;
|
|
106
109
|
};
|
|
110
|
+
export declare type G2DataOptions = G2BaseComponent<DataComponent>;
|
|
@@ -1,23 +1,17 @@
|
|
|
1
|
-
import { ColumnValue,
|
|
1
|
+
import { ColumnValue, NormalizedEncodeSpec } from './encode';
|
|
2
|
+
import { G2Library, G2Mark } from './options';
|
|
2
3
|
export declare type TransformContext = {
|
|
3
|
-
|
|
4
|
-
I?: number[];
|
|
5
|
-
encode?: Record<string, EncodeSpec>;
|
|
6
|
-
columnOf?: ColumnOf;
|
|
7
|
-
transform?: TransformSpec[];
|
|
8
|
-
scale?: Record<string, any>;
|
|
4
|
+
library: G2Library;
|
|
9
5
|
};
|
|
10
6
|
export declare type TransformOptions = Record<string, any>;
|
|
11
|
-
export declare type TransformProps =
|
|
12
|
-
category: 'inference' | 'preprocessor' | 'statistic';
|
|
13
|
-
};
|
|
7
|
+
export declare type TransformProps = Record<string, never>;
|
|
14
8
|
export declare type TransformComponent<O extends TransformOptions = TransformOptions> = {
|
|
15
9
|
(options: O): Transform;
|
|
16
10
|
props?: TransformProps;
|
|
17
11
|
};
|
|
18
|
-
export declare type Transform = (context: TransformContext) =>
|
|
12
|
+
export declare type Transform = (I: number[], mark: G2Mark, context: TransformContext) => [number[], G2Mark] | Promise<[number[], G2Mark]>;
|
|
19
13
|
export declare type TransformSpec = {
|
|
20
14
|
type?: string | TransformComponent;
|
|
21
15
|
[key: string]: any;
|
|
22
16
|
};
|
|
23
|
-
export declare type ColumnOf = (data: any, encode:
|
|
17
|
+
export declare type ColumnOf = (data: any, encode: NormalizedEncodeSpec) => ColumnValue;
|
package/lib/scale/index.d.ts
CHANGED
|
@@ -1,11 +1,22 @@
|
|
|
1
|
-
export { Band
|
|
2
|
-
export { Linear
|
|
3
|
-
export { Ordinal
|
|
4
|
-
export { Identity
|
|
5
|
-
export { Point
|
|
6
|
-
export { Time
|
|
7
|
-
export { Log
|
|
8
|
-
export { Pow
|
|
9
|
-
export { Threshold
|
|
10
|
-
export { Quantile
|
|
11
|
-
export { Quantize
|
|
1
|
+
export { Band } from './band';
|
|
2
|
+
export { Linear } from './linear';
|
|
3
|
+
export { Ordinal } from './ordinal';
|
|
4
|
+
export { Identity } from './identity';
|
|
5
|
+
export { Point } from './point';
|
|
6
|
+
export { Time } from './time';
|
|
7
|
+
export { Log } from './log';
|
|
8
|
+
export { Pow } from './pow';
|
|
9
|
+
export { Threshold } from './threshold';
|
|
10
|
+
export { Quantile } from './quantile';
|
|
11
|
+
export { Quantize } from './quantize';
|
|
12
|
+
export type { BandOptions } from './band';
|
|
13
|
+
export type { LinearOptions } from './linear';
|
|
14
|
+
export type { OrdinalOptions } from './ordinal';
|
|
15
|
+
export type { IdentityOptions } from './identity';
|
|
16
|
+
export type { PointOptions } from './point';
|
|
17
|
+
export type { TimeOptions } from './time';
|
|
18
|
+
export type { LogOptions } from './log';
|
|
19
|
+
export type { PowOptions } from './pow';
|
|
20
|
+
export type { ThresholdOptions } from './threshold';
|
|
21
|
+
export type { QuantileOptions } from './quantile';
|
|
22
|
+
export type { QuantizeOptions } from './quantize';
|
package/lib/scale/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["scale/index.ts"],"names":[],"mappings":";;;AAAA,+
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["scale/index.ts"],"names":[],"mappings":";;;AAAA,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,mCAAkC;AAAzB,gGAAA,MAAM,OAAA;AACf,qCAAoC;AAA3B,kGAAA,OAAO,OAAA;AAChB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,iCAAgC;AAAvB,8FAAA,KAAK,OAAA;AACd,+BAA8B;AAArB,4FAAA,IAAI,OAAA;AACb,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,6BAA4B;AAAnB,0FAAA,GAAG,OAAA;AACZ,yCAAwC;AAA/B,sGAAA,SAAS,OAAA;AAClB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AACjB,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA"}
|
|
@@ -73,7 +73,10 @@ class TextShape extends g_1.CustomElement {
|
|
|
73
73
|
drawBackground() {
|
|
74
74
|
const { background } = this.style;
|
|
75
75
|
if (!background) {
|
|
76
|
-
|
|
76
|
+
if (this.background) {
|
|
77
|
+
this.removeChild(this.background);
|
|
78
|
+
this.background.destroy();
|
|
79
|
+
}
|
|
77
80
|
this.background = undefined;
|
|
78
81
|
return;
|
|
79
82
|
}
|
|
@@ -95,7 +98,10 @@ class TextShape extends g_1.CustomElement {
|
|
|
95
98
|
drawConnector() {
|
|
96
99
|
const { connector } = this.style;
|
|
97
100
|
if (!connector) {
|
|
98
|
-
|
|
101
|
+
if (this.connector) {
|
|
102
|
+
this.removeChild(this.connector);
|
|
103
|
+
this.connector.destroy();
|
|
104
|
+
}
|
|
99
105
|
this.connector = undefined;
|
|
100
106
|
return;
|
|
101
107
|
}
|
|
@@ -116,7 +122,10 @@ class TextShape extends g_1.CustomElement {
|
|
|
116
122
|
drawStartMarker(style) {
|
|
117
123
|
const shape = this.startMarkerPoint;
|
|
118
124
|
if (!style) {
|
|
119
|
-
|
|
125
|
+
if (shape) {
|
|
126
|
+
this.removeChild(shape);
|
|
127
|
+
shape.destroy();
|
|
128
|
+
}
|
|
120
129
|
this.startMarkerPoint = undefined;
|
|
121
130
|
return;
|
|
122
131
|
}
|
|
@@ -128,7 +137,10 @@ class TextShape extends g_1.CustomElement {
|
|
|
128
137
|
drawEndMarker(style) {
|
|
129
138
|
const shape = this.endMarkerPoint;
|
|
130
139
|
if (!style) {
|
|
131
|
-
|
|
140
|
+
if (shape) {
|
|
141
|
+
this.removeChild(shape);
|
|
142
|
+
shape.destroy();
|
|
143
|
+
}
|
|
132
144
|
this.endMarkerPoint = undefined;
|
|
133
145
|
return;
|
|
134
146
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"text.js","sourceRoot":"src/","sources":["shape/annotation/text.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+BASiB;AACjB,mCAAmC;AAEnC,6CAA+C;AAC/C,qDAA+C;AAmB/C,SAAS,gBAAgB,CAAC,KAAmB;IAC3C,MAAM,EACJ,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EACb,GAAG,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,GACd,GAAG,KAAK,CAAC,cAAc,EAAE,CAAC;IAC3B,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,IAAI,CAAC,GAAG,CAAC,CAAC;IACV,IAAI,EAAE,GAAG,CAAC;QAAE,CAAC,GAAG,EAAE,CAAC;IACnB,IAAI,EAAE,GAAG,CAAC;QAAE,CAAC,GAAG,EAAE,CAAC;IACnB,IAAI,EAAE,GAAG,CAAC;QAAE,CAAC,GAAG,EAAE,CAAC;IACnB,IAAI,EAAE,GAAG,CAAC;QAAE,CAAC,GAAG,EAAE,CAAC;IAEnB,OAAO;QACL,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;QACX,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,CAAC;KACZ,CAAC;AACJ,C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G,SAAS,UAAU,CAAC,MAAM,MAAM,CAAC;aACvD,IAAI,CAAC,kBAAU,EAAE,KAAK,CAAC;aACvB,IAAI,EAAE,CAAC;IACZ,CAAC,CAAC;AACJ,CAAC,CAAC;AAvBW,QAAA,cAAc,kBAuBzB;AAEF,sBAAc,CAAC,KAAK,GAAG;IACrB,qBAAqB,EAAE,QAAQ;CAChC,CAAC"}
|
|
File without changes
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __rest = (this && this.__rest) || function (s, e) {
|
|
3
|
+
var t = {};
|
|
4
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
5
|
+
t[p] = s[p];
|
|
6
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
7
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
8
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
9
|
+
t[p[i]] = s[p[i]];
|
|
10
|
+
}
|
|
11
|
+
return t;
|
|
12
|
+
};
|
|
13
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
14
|
+
exports.Box = void 0;
|
|
15
|
+
const g_1 = require("@antv/g");
|
|
16
|
+
const d3_path_1 = require("d3-path");
|
|
17
|
+
const utils_1 = require("../utils");
|
|
18
|
+
const selection_1 = require("../../utils/selection");
|
|
19
|
+
const coordinate_1 = require("../../utils/coordinate");
|
|
20
|
+
const vector_1 = require("../../utils/vector");
|
|
21
|
+
function getPath(points, coordinate) {
|
|
22
|
+
const path = (0, d3_path_1.path)();
|
|
23
|
+
if (!(0, coordinate_1.isPolar)(coordinate)) {
|
|
24
|
+
path.moveTo(...points[0]);
|
|
25
|
+
path.lineTo(...points[1]);
|
|
26
|
+
path.moveTo(...points[2]);
|
|
27
|
+
path.lineTo(...points[3]);
|
|
28
|
+
path.moveTo(...points[4]);
|
|
29
|
+
path.lineTo(...points[5]);
|
|
30
|
+
path.lineTo(...points[6]);
|
|
31
|
+
path.lineTo(...points[7]);
|
|
32
|
+
path.closePath();
|
|
33
|
+
path.moveTo(...points[8]);
|
|
34
|
+
path.lineTo(...points[9]);
|
|
35
|
+
path.moveTo(...points[10]);
|
|
36
|
+
path.lineTo(...points[11]);
|
|
37
|
+
path.moveTo(...points[12]);
|
|
38
|
+
path.lineTo(...points[13]);
|
|
39
|
+
}
|
|
40
|
+
else {
|
|
41
|
+
// In polar coordinate.
|
|
42
|
+
const center = coordinate.getCenter();
|
|
43
|
+
const [x, y] = center;
|
|
44
|
+
const startAngle = (0, vector_1.angle)((0, vector_1.sub)(points[0], center)) - Math.PI / 2;
|
|
45
|
+
const endAngle = (0, vector_1.angle)((0, vector_1.sub)(points[1], center)) - Math.PI / 2;
|
|
46
|
+
const radiusHigh = (0, vector_1.dist)(center, points[2]);
|
|
47
|
+
const radiusQ3 = (0, vector_1.dist)(center, points[3]);
|
|
48
|
+
const radiusMedian = (0, vector_1.dist)(center, points[8]);
|
|
49
|
+
const radiusQ1 = (0, vector_1.dist)(center, points[10]);
|
|
50
|
+
const radiusLow = (0, vector_1.dist)(center, points[11]);
|
|
51
|
+
path.moveTo(...points[0]);
|
|
52
|
+
path.arc(x, y, radiusHigh, startAngle, endAngle);
|
|
53
|
+
path.arc(x, y, radiusHigh, endAngle, startAngle, true);
|
|
54
|
+
path.moveTo(...points[2]);
|
|
55
|
+
path.lineTo(...points[3]);
|
|
56
|
+
path.moveTo(...points[4]);
|
|
57
|
+
path.arc(x, y, radiusQ3, startAngle, endAngle); // 4 -> 5
|
|
58
|
+
path.lineTo(...points[6]); // 5 -> 6
|
|
59
|
+
path.arc(x, y, radiusQ1, endAngle, startAngle, true); // 6 -> 7
|
|
60
|
+
path.closePath();
|
|
61
|
+
path.moveTo(...points[8]);
|
|
62
|
+
path.arc(x, y, radiusMedian, startAngle, endAngle); // 8 -> 9
|
|
63
|
+
path.arc(x, y, radiusMedian, endAngle, startAngle, true); // 9 -> 8
|
|
64
|
+
path.moveTo(...points[10]);
|
|
65
|
+
path.lineTo(...points[11]);
|
|
66
|
+
path.moveTo(...points[12]);
|
|
67
|
+
path.arc(x, y, radiusLow, startAngle, endAngle); // 12 -> 13
|
|
68
|
+
path.arc(x, y, radiusLow, endAngle, startAngle, true); // 13 -> 12
|
|
69
|
+
}
|
|
70
|
+
return path;
|
|
71
|
+
}
|
|
72
|
+
const Box = (options) => {
|
|
73
|
+
const style = __rest(options, []);
|
|
74
|
+
return (points, value, coordinate, theme) => {
|
|
75
|
+
const { defaultColor } = theme;
|
|
76
|
+
const { color = defaultColor, transform } = value;
|
|
77
|
+
const path = getPath(points, coordinate);
|
|
78
|
+
return (0, selection_1.select)(new g_1.Path())
|
|
79
|
+
.style('d', path.toString())
|
|
80
|
+
.style('stroke', color)
|
|
81
|
+
.style('fill', color)
|
|
82
|
+
.style('transform', transform)
|
|
83
|
+
.call(utils_1.applyStyle, style)
|
|
84
|
+
.node();
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
exports.Box = Box;
|
|
88
|
+
exports.Box.props = {
|
|
89
|
+
defaultEnterAnimation: 'fadeIn',
|
|
90
|
+
};
|
|
91
|
+
//# sourceMappingURL=box.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"box.js","sourceRoot":"src/","sources":["shape/box/box.ts"],"names":[],"mappings":";;;;;;;;;;;;;;AAAA,+BAAwC;AACxC,qCAAyC;AAEzC,oCAAsC;AACtC,qDAA+C;AAE/C,uDAAiD;AACjD,+CAAsD;AAItD,SAAS,OAAO,CAAC,MAAiB,EAAE,UAAsB;IACxD,MAAM,IAAI,GAAG,IAAA,cAAM,GAAE,CAAC;IAEtB,IAAI,CAAC,IAAA,oBAAO,EAAC,UAAU,CAAC,EAAE;QACxB,IAAI,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAC1B,IAAI,CAAC,MAAM,CAAC,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AE;QAC1C,MAAM,EAAE,YAAY,EAAE,GAAG,KAAK,CAAC;QAC/B,MAAM,EAAE,KAAK,GAAG,YAAY,EAAE,SAAS,EAAE,GAAG,KAAK,CAAC;QAElD,MAAM,IAAI,GAAG,OAAO,CAAC,MAAM,EAAE,UAAU,CAAC,CAAC;QAEzC,OAAO,IAAA,kBAAM,EAAC,IAAI,QAAK,EAAE,CAAC;aACvB,KAAK,CAAC,GAAG,EAAE,IAAI,CAAC,QAAQ,EAAE,CAAC;aAC3B,KAAK,CAAC,QAAQ,EAAE,KAAK,CAAC;aACtB,KAAK,CAAC,MAAM,EAAE,KAAK,CAAC;aACpB,KAAK,CAAC,WAAW,EAAE,SAAS,CAAC;aAC7B,IAAI,CAAC,kBAAU,EAAE,KAAK,CAAC;aACvB,IAAI,EAAE,CAAC;IACZ,CAAC,CAAC;AACJ,CAAC,CAAC;AAhBW,QAAA,GAAG,OAgBd;AAEF,WAAG,CAAC,KAAK,GAAG;IACV,qBAAqB,EAAE,QAAQ;CAChC,CAAC"}
|
package/lib/shape/index.d.ts
CHANGED
|
@@ -1,48 +1,86 @@
|
|
|
1
|
-
export { Rect
|
|
2
|
-
export { HollowRect
|
|
3
|
-
export { Funnel
|
|
4
|
-
export { Pyramid
|
|
5
|
-
export { Line
|
|
6
|
-
export { Smooth
|
|
7
|
-
export { HV
|
|
8
|
-
export { VH
|
|
9
|
-
export { HVH
|
|
10
|
-
export { Bowtie
|
|
11
|
-
export { Cross
|
|
12
|
-
export { Diamond
|
|
13
|
-
export { Hexagon
|
|
14
|
-
export { HollowBowtie
|
|
15
|
-
export { HollowDiamond
|
|
16
|
-
export { HollowHexagon
|
|
17
|
-
export { HollowPoint
|
|
18
|
-
export { HollowSquare
|
|
19
|
-
export { HollowTriangle
|
|
20
|
-
export { HollowTriangleDown
|
|
21
|
-
export { Hyphen
|
|
22
|
-
export { Line as LinePoint
|
|
23
|
-
export { Plus
|
|
24
|
-
export { Point
|
|
25
|
-
export { Square
|
|
26
|
-
export { Tick
|
|
27
|
-
export { Triangle
|
|
28
|
-
export { TriangleDown
|
|
29
|
-
export { Vector
|
|
30
|
-
export { Text
|
|
31
|
-
export { AnnotationText
|
|
32
|
-
export { AnnotationBadge
|
|
33
|
-
export { Area
|
|
34
|
-
export { SmoothArea
|
|
35
|
-
export { Link
|
|
36
|
-
export {
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
39
|
-
export {
|
|
40
|
-
export { Polygon
|
|
41
|
-
export {
|
|
42
|
-
export {
|
|
43
|
-
export {
|
|
44
|
-
export {
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
48
|
-
export {
|
|
1
|
+
export { Rect } from './interval/rect';
|
|
2
|
+
export { HollowRect } from './interval/hollowRect';
|
|
3
|
+
export { Funnel } from './interval/funnel';
|
|
4
|
+
export { Pyramid } from './interval/pyramid';
|
|
5
|
+
export { Line } from './line/line';
|
|
6
|
+
export { Smooth } from './line/smooth';
|
|
7
|
+
export { HV } from './line/hv';
|
|
8
|
+
export { VH } from './line/vh';
|
|
9
|
+
export { HVH } from './line/hvh';
|
|
10
|
+
export { Bowtie } from './point/bowtie';
|
|
11
|
+
export { Cross } from './point/cross';
|
|
12
|
+
export { Diamond } from './point/diamond';
|
|
13
|
+
export { Hexagon } from './point/hexagon';
|
|
14
|
+
export { HollowBowtie } from './point/hollowBowtie';
|
|
15
|
+
export { HollowDiamond } from './point/hollowDiamond';
|
|
16
|
+
export { HollowHexagon } from './point/hollowHexagon';
|
|
17
|
+
export { HollowPoint } from './point/hollowPoint';
|
|
18
|
+
export { HollowSquare } from './point/hollowSquare';
|
|
19
|
+
export { HollowTriangle } from './point/hollowTriangle';
|
|
20
|
+
export { HollowTriangleDown } from './point/hollowTriangleDown';
|
|
21
|
+
export { Hyphen } from './point/hyphen';
|
|
22
|
+
export { Line as LinePoint } from './point/line';
|
|
23
|
+
export { Plus } from './point/plus';
|
|
24
|
+
export { Point } from './point/point';
|
|
25
|
+
export { Square } from './point/square';
|
|
26
|
+
export { Tick } from './point/tick';
|
|
27
|
+
export { Triangle } from './point/triangle';
|
|
28
|
+
export { TriangleDown } from './point/triangleDown';
|
|
29
|
+
export { Vector } from './vector/vector';
|
|
30
|
+
export { Text } from './text/text';
|
|
31
|
+
export { AnnotationText } from './annotation/text';
|
|
32
|
+
export { AnnotationBadge } from './annotation/badge';
|
|
33
|
+
export { Area } from './area/area';
|
|
34
|
+
export { SmoothArea } from './area/smoothArea';
|
|
35
|
+
export { Link } from './link/link';
|
|
36
|
+
export { SmoothEdge } from './link/smoothEdge';
|
|
37
|
+
export { VHVEdge } from './link/vhv';
|
|
38
|
+
export { Arc } from './link/arc';
|
|
39
|
+
export { Image } from './image/image';
|
|
40
|
+
export { Polygon } from './polygon/polygon';
|
|
41
|
+
export { Ribbon } from './polygon/ribbon';
|
|
42
|
+
export { Box } from './box/box';
|
|
43
|
+
export { AnnotationLine as AnnotationLine } from './annotation/line';
|
|
44
|
+
export { Connector as AnnotationConnector } from './annotation/connector';
|
|
45
|
+
export { Label } from './label/label';
|
|
46
|
+
export type { RectOptions } from './interval/rect';
|
|
47
|
+
export type { HollowRectOptions } from './interval/hollowRect';
|
|
48
|
+
export type { FunnelOptions } from './interval/funnel';
|
|
49
|
+
export type { PyramidOptions } from './interval/pyramid';
|
|
50
|
+
export type { LineOptions } from './line/line';
|
|
51
|
+
export type { SmoothOptions } from './line/smooth';
|
|
52
|
+
export type { HVOptions } from './line/hv';
|
|
53
|
+
export type { VHOptions } from './line/vh';
|
|
54
|
+
export type { HVHOptions } from './line/hvh';
|
|
55
|
+
export type { BowtieOptions } from './point/bowtie';
|
|
56
|
+
export type { CrossOptions } from './point/cross';
|
|
57
|
+
export type { DiamondOptions } from './point/diamond';
|
|
58
|
+
export type { HexagonOptions } from './point/hexagon';
|
|
59
|
+
export type { HollowBowtieOptions } from './point/hollowBowtie';
|
|
60
|
+
export type { HollowDiamondOptions } from './point/hollowDiamond';
|
|
61
|
+
export type { HollowHexagonOptions } from './point/hollowHexagon';
|
|
62
|
+
export type { HollowPointOptions } from './point/hollowPoint';
|
|
63
|
+
export type { HollowSquareOptions } from './point/hollowSquare';
|
|
64
|
+
export type { HollowTriangleOptions } from './point/hollowTriangle';
|
|
65
|
+
export type { HollowTriangleDownOptions } from './point/hollowTriangleDown';
|
|
66
|
+
export type { HyphenOptions } from './point/hyphen';
|
|
67
|
+
export type { LineOptions as LinePointOptions } from './point/line';
|
|
68
|
+
export type { PlusOptions } from './point/plus';
|
|
69
|
+
export type { PointOptions } from './point/point';
|
|
70
|
+
export type { SquareOptions } from './point/square';
|
|
71
|
+
export type { TickOptions } from './point/tick';
|
|
72
|
+
export type { TriangleOptions } from './point/triangle';
|
|
73
|
+
export type { TriangleDownOptions } from './point/triangleDown';
|
|
74
|
+
export type { VectorOptions } from './vector/vector';
|
|
75
|
+
export type { TextOptions } from './text/text';
|
|
76
|
+
export type { AnnotationTextOptions } from './annotation/text';
|
|
77
|
+
export type { AnnotationBadgeOptions } from './annotation/badge';
|
|
78
|
+
export type { AreaOptions } from './area/area';
|
|
79
|
+
export type { SmoothAreaOptions } from './area/smoothArea';
|
|
80
|
+
export type { LinkOptions } from './link/link';
|
|
81
|
+
export type { ImageOptions } from './image/image';
|
|
82
|
+
export type { PolygonOptions } from './polygon/polygon';
|
|
83
|
+
export type { BoxOptions } from './box/box';
|
|
84
|
+
export type { LineOptions as AnnotationLineOptions } from './annotation/line';
|
|
85
|
+
export type { ConnectorOptions as AnnotationConnectorOptions } from './annotation/connector';
|
|
86
|
+
export type { LabelOptions } from './label/label';
|
package/lib/shape/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Label = exports.AnnotationConnector = exports.AnnotationLine = exports.
|
|
3
|
+
exports.Label = exports.AnnotationConnector = exports.AnnotationLine = exports.Box = exports.Ribbon = exports.Polygon = exports.Image = exports.Arc = exports.VHVEdge = exports.SmoothEdge = exports.Link = exports.SmoothArea = exports.Area = exports.AnnotationBadge = exports.AnnotationText = exports.Text = exports.Vector = exports.TriangleDown = exports.Triangle = exports.Tick = exports.Square = exports.Point = exports.Plus = exports.LinePoint = exports.Hyphen = exports.HollowTriangleDown = exports.HollowTriangle = exports.HollowSquare = exports.HollowPoint = exports.HollowHexagon = exports.HollowDiamond = exports.HollowBowtie = exports.Hexagon = exports.Diamond = exports.Cross = exports.Bowtie = exports.HVH = exports.VH = exports.HV = exports.Smooth = exports.Line = exports.Pyramid = exports.Funnel = exports.HollowRect = exports.Rect = void 0;
|
|
4
4
|
var rect_1 = require("./interval/rect");
|
|
5
5
|
Object.defineProperty(exports, "Rect", { enumerable: true, get: function () { return rect_1.Rect; } });
|
|
6
6
|
var hollowRect_1 = require("./interval/hollowRect");
|
|
@@ -71,27 +71,21 @@ var smoothArea_1 = require("./area/smoothArea");
|
|
|
71
71
|
Object.defineProperty(exports, "SmoothArea", { enumerable: true, get: function () { return smoothArea_1.SmoothArea; } });
|
|
72
72
|
var link_1 = require("./link/link");
|
|
73
73
|
Object.defineProperty(exports, "Link", { enumerable: true, get: function () { return link_1.Link; } });
|
|
74
|
+
var smoothEdge_1 = require("./link/smoothEdge");
|
|
75
|
+
Object.defineProperty(exports, "SmoothEdge", { enumerable: true, get: function () { return smoothEdge_1.SmoothEdge; } });
|
|
76
|
+
var vhv_1 = require("./link/vhv");
|
|
77
|
+
Object.defineProperty(exports, "VHVEdge", { enumerable: true, get: function () { return vhv_1.VHVEdge; } });
|
|
78
|
+
var arc_1 = require("./link/arc");
|
|
79
|
+
Object.defineProperty(exports, "Arc", { enumerable: true, get: function () { return arc_1.Arc; } });
|
|
74
80
|
var image_1 = require("./image/image");
|
|
75
81
|
Object.defineProperty(exports, "Image", { enumerable: true, get: function () { return image_1.Image; } });
|
|
76
82
|
var polygon_1 = require("./polygon/polygon");
|
|
77
83
|
Object.defineProperty(exports, "Polygon", { enumerable: true, get: function () { return polygon_1.Polygon; } });
|
|
78
|
-
var
|
|
84
|
+
var ribbon_1 = require("./polygon/ribbon");
|
|
85
|
+
Object.defineProperty(exports, "Ribbon", { enumerable: true, get: function () { return ribbon_1.Ribbon; } });
|
|
86
|
+
var box_1 = require("./box/box");
|
|
79
87
|
Object.defineProperty(exports, "Box", { enumerable: true, get: function () { return box_1.Box; } });
|
|
80
88
|
// For relation diagram (node and edge).
|
|
81
|
-
var point_2 = require("./node/point");
|
|
82
|
-
Object.defineProperty(exports, "PointNode", { enumerable: true, get: function () { return point_2.Point; } });
|
|
83
|
-
var polygon_2 = require("./node/polygon");
|
|
84
|
-
Object.defineProperty(exports, "PolygonNode", { enumerable: true, get: function () { return polygon_2.Polygon; } });
|
|
85
|
-
var edge_1 = require("./edge/edge");
|
|
86
|
-
Object.defineProperty(exports, "Edge", { enumerable: true, get: function () { return edge_1.Edge; } });
|
|
87
|
-
var smoothEdge_1 = require("./edge/smoothEdge");
|
|
88
|
-
Object.defineProperty(exports, "SmoothEdge", { enumerable: true, get: function () { return smoothEdge_1.SmoothEdge; } });
|
|
89
|
-
var vhv_1 = require("./edge/vhv");
|
|
90
|
-
Object.defineProperty(exports, "VHVEdge", { enumerable: true, get: function () { return vhv_1.VHVEdge; } });
|
|
91
|
-
var arc_1 = require("./edge/arc");
|
|
92
|
-
Object.defineProperty(exports, "Arc", { enumerable: true, get: function () { return arc_1.Arc; } });
|
|
93
|
-
var ribbon_1 = require("./edge/ribbon");
|
|
94
|
-
Object.defineProperty(exports, "Ribbon", { enumerable: true, get: function () { return ribbon_1.Ribbon; } });
|
|
95
89
|
var line_3 = require("./annotation/line");
|
|
96
90
|
Object.defineProperty(exports, "AnnotationLine", { enumerable: true, get: function () { return line_3.AnnotationLine; } });
|
|
97
91
|
var connector_1 = require("./annotation/connector");
|