@antv/g2 5.0.0-alpha.1 → 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/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/index.d.ts +14 -7
- package/esm/animation/index.js.map +1 -1
- package/esm/animation/scaleInX.js +3 -0
- package/esm/animation/scaleInX.js.map +1 -1
- package/esm/animation/scaleInY.js +3 -0
- package/esm/animation/scaleInY.js.map +1 -1
- package/esm/api/chart.d.ts +4 -0
- package/esm/api/chart.js +20 -3
- package/esm/api/chart.js.map +1 -1
- 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/index.d.ts +16 -8
- package/esm/composition/index.js.map +1 -1
- package/esm/composition/rect.js +1 -1
- package/esm/composition/rect.js.map +1 -1
- package/esm/coordinate/index.d.ts +24 -12
- package/esm/coordinate/index.js.map +1 -1
- package/esm/data/arc.d.ts +7 -0
- package/esm/data/arc.js +10 -18
- package/esm/data/arc.js.map +1 -1
- package/esm/data/cluster.d.ts +8 -0
- package/esm/data/cluster.js +36 -46
- package/esm/data/cluster.js.map +1 -1
- 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.js +7 -6
- package/esm/data/fetch.js.map +1 -1
- package/esm/data/filterBy.js +6 -2
- package/esm/data/filterBy.js.map +1 -1
- package/esm/data/index.d.ts +28 -9
- package/esm/data/index.js +6 -1
- package/esm/data/index.js.map +1 -1
- 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/sankey.d.ts +8 -0
- package/esm/data/sankey.js +76 -95
- package/esm/data/sankey.js.map +1 -1
- package/esm/data/sortBy.js +14 -4
- package/esm/data/sortBy.js.map +1 -1
- package/esm/data/tree.d.ts +4 -0
- package/esm/data/tree.js +6 -9
- package/esm/data/tree.js.map +1 -1
- package/esm/data/utils/arc/index.d.ts +1 -1
- 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/data/voronoi.d.ts +1 -0
- package/esm/data/voronoi.js +1 -22
- package/esm/data/voronoi.js.map +1 -1
- package/esm/data/wordCloud.d.ts +1 -0
- package/esm/data/wordCloud.js +1 -93
- package/esm/data/wordCloud.js.map +1 -1
- package/esm/encode/index.d.ts +8 -4
- package/esm/encode/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/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/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/{schema.d.ts → box.d.ts} +4 -4
- package/esm/mark/geometry/{schema.js → box.js} +4 -4
- 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/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 +8 -3
- package/esm/runtime/component.js.map +1 -1
- package/esm/runtime/mark.js +4 -3
- package/esm/runtime/mark.js.map +1 -1
- package/esm/runtime/plot.js +47 -28
- package/esm/runtime/plot.js.map +1 -1
- package/esm/runtime/render.js +15 -6
- package/esm/runtime/render.js.map +1 -1
- package/esm/runtime/scale.js +1 -1
- package/esm/runtime/scale.js.map +1 -1
- package/esm/runtime/types/component.d.ts +4 -6
- package/esm/runtime/types/options.d.ts +1 -0
- 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/{schema → box}/box.js +2 -2
- 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/label/label.js +62 -38
- 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/{edge → link}/arc.js.map +1 -1
- package/esm/shape/{edge → link}/smoothEdge.d.ts +0 -0
- package/esm/shape/{edge → link}/smoothEdge.js +0 -0
- package/esm/shape/{edge → link}/smoothEdge.js.map +1 -1
- package/esm/shape/{edge → link}/vhv.d.ts +0 -0
- package/esm/shape/{edge → link}/vhv.js +0 -0
- package/esm/shape/{edge → link}/vhv.js.map +1 -1
- 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/spec/data.d.ts +145 -8
- package/esm/spec/geometry.d.ts +5 -3
- package/esm/spec/transform.d.ts +18 -8
- package/esm/spec/transform.js +0 -133
- package/esm/spec/transform.js.map +1 -1
- package/esm/stdlib/index.js +13 -17
- package/esm/stdlib/index.js.map +1 -1
- package/esm/transform/dodgeX.js +7 -3
- package/esm/transform/dodgeX.js.map +1 -1
- 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.js +17 -19
- package/esm/transform/groupX.js.map +1 -1
- package/esm/transform/index.d.ts +46 -21
- package/esm/transform/index.js +3 -1
- package/esm/transform/index.js.map +1 -1
- package/esm/transform/normalizeY.js +1 -2
- package/esm/transform/normalizeY.js.map +1 -1
- 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/stackY.d.ts +1 -1
- package/esm/transform/stackY.js +26 -9
- package/esm/transform/stackY.js.map +1 -1
- package/esm/utils/coordinate.d.ts +1 -0
- package/esm/utils/coordinate.js +3 -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/index.d.ts +14 -7
- package/lib/animation/index.js.map +1 -1
- package/lib/animation/scaleInX.js +3 -0
- package/lib/animation/scaleInX.js.map +1 -1
- package/lib/animation/scaleInY.js +3 -0
- package/lib/animation/scaleInY.js.map +1 -1
- package/lib/api/chart.d.ts +4 -0
- package/lib/api/chart.js +20 -3
- package/lib/api/chart.js.map +1 -1
- 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/index.d.ts +16 -8
- package/lib/composition/index.js.map +1 -1
- package/lib/composition/rect.js +1 -1
- package/lib/composition/rect.js.map +1 -1
- package/lib/coordinate/index.d.ts +24 -12
- package/lib/coordinate/index.js.map +1 -1
- package/lib/data/arc.d.ts +7 -0
- package/lib/data/arc.js +14 -18
- package/lib/data/arc.js.map +1 -1
- package/lib/data/cluster.d.ts +8 -0
- package/lib/data/cluster.js +41 -46
- package/lib/data/cluster.js.map +1 -1
- 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.js +6 -5
- package/lib/data/fetch.js.map +1 -1
- package/lib/data/filterBy.js +6 -2
- package/lib/data/filterBy.js.map +1 -1
- package/lib/data/index.d.ts +28 -9
- package/lib/data/index.js +13 -3
- package/lib/data/index.js.map +1 -1
- 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/sankey.d.ts +8 -0
- package/lib/data/sankey.js +80 -95
- package/lib/data/sankey.js.map +1 -1
- package/lib/data/sortBy.js +14 -4
- package/lib/data/sortBy.js.map +1 -1
- package/lib/data/tree.d.ts +4 -0
- package/lib/data/tree.js +10 -9
- package/lib/data/tree.js.map +1 -1
- package/lib/data/utils/arc/index.d.ts +1 -1
- 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/data/voronoi.d.ts +1 -0
- package/lib/data/voronoi.js +2 -22
- package/lib/data/voronoi.js.map +1 -1
- package/lib/data/wordCloud.d.ts +1 -0
- package/lib/data/wordCloud.js +2 -93
- package/lib/data/wordCloud.js.map +1 -1
- package/lib/encode/index.d.ts +8 -4
- package/lib/encode/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/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/mark/annotation/index.d.ts +14 -7
- package/lib/mark/annotation/index.js.map +1 -1
- package/lib/mark/geometry/{schema.d.ts → box.d.ts} +4 -4
- package/lib/mark/geometry/{schema.js → box.js} +6 -6
- 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/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 +8 -3
- package/lib/runtime/component.js.map +1 -1
- package/lib/runtime/mark.js +4 -3
- package/lib/runtime/mark.js.map +1 -1
- package/lib/runtime/plot.js +47 -28
- package/lib/runtime/plot.js.map +1 -1
- package/lib/runtime/render.js +15 -6
- package/lib/runtime/render.js.map +1 -1
- package/lib/runtime/scale.js +1 -1
- package/lib/runtime/scale.js.map +1 -1
- package/lib/runtime/types/component.d.ts +4 -6
- package/lib/runtime/types/options.d.ts +1 -0
- 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/{schema → box}/box.js +2 -2
- 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/label/label.js +61 -37
- 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/{edge → link}/arc.js.map +1 -1
- package/lib/shape/{edge → link}/smoothEdge.d.ts +0 -0
- package/lib/shape/{edge → link}/smoothEdge.js +0 -0
- package/lib/shape/{edge → link}/smoothEdge.js.map +1 -1
- package/lib/shape/{edge → link}/vhv.d.ts +0 -0
- package/lib/shape/{edge → link}/vhv.js +0 -0
- package/lib/shape/{edge → link}/vhv.js.map +1 -1
- 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/spec/data.d.ts +145 -8
- package/lib/spec/geometry.d.ts +5 -3
- package/lib/spec/transform.d.ts +18 -8
- package/lib/spec/transform.js +0 -133
- package/lib/spec/transform.js.map +1 -1
- package/lib/stdlib/index.js +9 -13
- package/lib/stdlib/index.js.map +1 -1
- package/lib/transform/dodgeX.js +7 -3
- package/lib/transform/dodgeX.js.map +1 -1
- 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.js +16 -18
- package/lib/transform/groupX.js.map +1 -1
- package/lib/transform/index.d.ts +46 -21
- package/lib/transform/index.js +5 -1
- package/lib/transform/index.js.map +1 -1
- package/lib/transform/normalizeY.js +0 -1
- package/lib/transform/normalizeY.js.map +1 -1
- 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/stackY.d.ts +1 -1
- package/lib/transform/stackY.js +26 -9
- package/lib/transform/stackY.js.map +1 -1
- package/lib/utils/coordinate.d.ts +1 -0
- package/lib/utils/coordinate.js +5 -1
- package/lib/utils/coordinate.js.map +1 -1
- package/package.json +19 -4
- package/src/.DS_Store +0 -0
- package/src/adjust/index.ts +2 -1
- package/src/animation/index.ts +15 -7
- package/src/animation/morphing.ts +1 -1
- package/src/animation/scaleInX.ts +3 -0
- package/src/animation/scaleInY.ts +3 -0
- package/src/api/chart.ts +40 -3
- 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/index.ts +17 -8
- package/src/composition/rect.ts +1 -1
- package/src/coordinate/index.ts +25 -12
- package/src/data/arc.ts +13 -18
- package/src/data/cluster.ts +53 -56
- package/src/data/custom.ts +15 -0
- package/src/data/fetch.ts +12 -7
- package/src/data/filterBy.ts +11 -2
- package/src/data/index.ts +29 -9
- package/src/data/map.ts +15 -0
- package/src/data/sankey.ts +92 -95
- package/src/data/sortBy.ts +18 -8
- package/src/data/tree.ts +9 -9
- package/src/data/utils/arc/index.ts +1 -1
- package/src/data/utils/fields.ts +17 -0
- package/src/data/voronoi.ts +2 -0
- package/src/data/wordCloud.ts +2 -0
- package/src/encode/index.ts +9 -4
- package/src/interaction/action/index.ts +43 -45
- package/src/interaction/index.ts +17 -1
- package/src/interaction/interactor/index.ts +5 -2
- package/src/interaction/types.ts +1 -1
- package/src/mark/annotation/index.ts +15 -25
- package/src/mark/geometry/{schema.ts → box.ts} +5 -5
- 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/palette/index.ts +5 -2
- package/src/runtime/component.ts +10 -3
- package/src/runtime/mark.ts +4 -3
- package/src/runtime/plot.ts +66 -41
- package/src/runtime/render.ts +16 -10
- package/src/runtime/scale.ts +1 -1
- package/src/runtime/types/component.ts +1 -10
- package/src/runtime/types/options.ts +1 -0
- package/src/scale/index.ts +23 -11
- package/src/shape/annotation/text.ts +16 -4
- package/src/shape/{schema → box}/box.ts +2 -2
- package/src/shape/index.ts +92 -60
- package/src/shape/label/label.ts +81 -47
- 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/spec/data.ts +157 -8
- package/src/spec/geometry.ts +5 -3
- package/src/spec/transform.ts +37 -154
- package/src/stdlib/index.ts +18 -20
- package/src/transform/dodgeX.ts +5 -4
- package/src/transform/flexX.ts +38 -0
- package/src/transform/groupX.ts +25 -8
- package/src/transform/index.ts +47 -24
- package/src/transform/normalizeY.ts +0 -1
- package/src/transform/sortX.ts +48 -0
- package/src/transform/stackY.ts +34 -9
- package/src/utils/coordinate.ts +4 -0
- package/esm/data/connector.d.ts +0 -7
- package/esm/data/connector.js +0 -9
- package/esm/data/connector.js.map +0 -1
- 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.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/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/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.map +0 -1
- package/lib/data/connector.d.ts +0 -7
- package/lib/data/connector.js +0 -13
- package/lib/data/connector.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.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/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/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.map +0 -1
- package/src/data/connector.ts +0 -14
- package/src/mark/geometry/edge.ts +0 -40
- package/src/mark/geometry/node.ts +0 -36
- 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
|
@@ -18,6 +18,9 @@ export const Point: MC<PointOptions> = () => {
|
|
|
18
18
|
return (index, scale, value, coordinate) => {
|
|
19
19
|
const { x: X, y: Y, size: S, dx: DX, dy: DY } = value;
|
|
20
20
|
const [width, height] = coordinate.getSize();
|
|
21
|
+
const { x, y } = scale;
|
|
22
|
+
const xoffset = (x?.getBandWidth?.() || 0) / 2;
|
|
23
|
+
const yoffset = (y?.getBandWidth?.() || 0) / 2;
|
|
21
24
|
const P = Array.from(index, (i) => {
|
|
22
25
|
const dx = +(DX?.[i] || 0);
|
|
23
26
|
const dy = +(DY?.[i] || 0);
|
|
@@ -26,8 +29,8 @@ export const Point: MC<PointOptions> = () => {
|
|
|
26
29
|
const r = +S[i];
|
|
27
30
|
const a = r / width;
|
|
28
31
|
const b = r / height;
|
|
29
|
-
const p1 = [cx - a, cy - b];
|
|
30
|
-
const p2 = [cx + a, cy + b];
|
|
32
|
+
const p1 = [cx - a + xoffset, cy - b + yoffset];
|
|
33
|
+
const p2 = [cx + a + xoffset, cy + b + yoffset];
|
|
31
34
|
return [coordinate.map(p1), coordinate.map(p2)] as Vector2[];
|
|
32
35
|
});
|
|
33
36
|
return [index, P];
|
package/src/palette/index.ts
CHANGED
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
export { Category10
|
|
2
|
-
export { Category20
|
|
1
|
+
export { Category10 } from './category10';
|
|
2
|
+
export { Category20 } from './category20';
|
|
3
|
+
|
|
4
|
+
export type { Category10Options } from './category10';
|
|
5
|
+
export type { Category20Options } from './category20';
|
package/src/runtime/component.ts
CHANGED
|
@@ -35,7 +35,6 @@ export function inferComponent(
|
|
|
35
35
|
const {
|
|
36
36
|
component: partialComponents = [],
|
|
37
37
|
coordinate = [],
|
|
38
|
-
adjust,
|
|
39
38
|
title,
|
|
40
39
|
theme,
|
|
41
40
|
} = partialOptions;
|
|
@@ -74,7 +73,7 @@ export function inferComponent(
|
|
|
74
73
|
if (type !== null) {
|
|
75
74
|
const { props } = createGuideComponent(type);
|
|
76
75
|
const { defaultPosition, defaultSize, defaultOrder } = props;
|
|
77
|
-
const { guide: partialGuide, name } = scale;
|
|
76
|
+
const { guide: partialGuide, name, formatter } = scale;
|
|
78
77
|
const {
|
|
79
78
|
position = inferComponentPosition(
|
|
80
79
|
name,
|
|
@@ -86,7 +85,15 @@ export function inferComponent(
|
|
|
86
85
|
size = defaultSize,
|
|
87
86
|
order = defaultOrder,
|
|
88
87
|
} = partialGuide;
|
|
89
|
-
components.push({
|
|
88
|
+
components.push({
|
|
89
|
+
...partialGuide,
|
|
90
|
+
position,
|
|
91
|
+
order,
|
|
92
|
+
size,
|
|
93
|
+
type,
|
|
94
|
+
scale,
|
|
95
|
+
formatter,
|
|
96
|
+
});
|
|
90
97
|
}
|
|
91
98
|
}
|
|
92
99
|
|
package/src/runtime/mark.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { group } from 'd3-array';
|
|
2
2
|
import { defined } from '../utils/helper';
|
|
3
|
+
import { unique } from '../utils/array';
|
|
3
4
|
import { useLibrary } from './library';
|
|
4
5
|
import { Channel, G2MarkState, G2Theme } from './types/common';
|
|
5
6
|
import {
|
|
@@ -167,12 +168,12 @@ function createChannel(
|
|
|
167
168
|
function mergeChannel(channels: Channel[]): Channel {
|
|
168
169
|
const target: Channel = {};
|
|
169
170
|
for (const source of channels) {
|
|
170
|
-
const { value: targetValue = []
|
|
171
|
-
const { value: sourceValue = []
|
|
171
|
+
const { value: targetValue = [] } = target;
|
|
172
|
+
const { value: sourceValue = [] } = source;
|
|
172
173
|
Object.assign(target, source);
|
|
173
174
|
target.value = [...targetValue, ...sourceValue];
|
|
174
|
-
target.field = sourceField == null ? targetField : sourceField;
|
|
175
175
|
}
|
|
176
|
+
target.field = unique(channels.flatMap((d) => d.field).filter(defined));
|
|
176
177
|
return target;
|
|
177
178
|
}
|
|
178
179
|
|
package/src/runtime/plot.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import { DisplayObject,
|
|
1
|
+
import { DisplayObject, IAnimation as GAnimation } from '@antv/g';
|
|
2
2
|
import { upperFirst } from '@antv/util';
|
|
3
|
+
import { format } from 'd3-format';
|
|
3
4
|
import { mapObject } from '../utils/array';
|
|
4
5
|
import {
|
|
5
6
|
copyAttributes,
|
|
@@ -44,8 +45,12 @@ import {
|
|
|
44
45
|
LabelLayout,
|
|
45
46
|
} from './types/component';
|
|
46
47
|
import { MarkComponent, Mark, MarkChannel } from './types/mark';
|
|
47
|
-
import {
|
|
48
|
-
|
|
48
|
+
import {
|
|
49
|
+
G2ViewDescriptor,
|
|
50
|
+
G2MarkState,
|
|
51
|
+
G2ViewInstance,
|
|
52
|
+
Primitive,
|
|
53
|
+
} from './types/common';
|
|
49
54
|
import { useLibrary } from './library';
|
|
50
55
|
import { initializeMark } from './mark';
|
|
51
56
|
import { inferComponent, renderComponent } from './component';
|
|
@@ -556,28 +561,32 @@ function plotLabel(
|
|
|
556
561
|
library: G2Library,
|
|
557
562
|
) {
|
|
558
563
|
const { markState, labelLayout } = view;
|
|
559
|
-
const labels = [];
|
|
560
564
|
for (const [mark, state] of markState.entries()) {
|
|
561
|
-
const { key } = mark;
|
|
562
|
-
const mainLayer = selection.select(`#${key}`);
|
|
565
|
+
const { labels = [], key } = mark;
|
|
563
566
|
const shapeFunction = createLabelShapeFunction(mark, state, view, library);
|
|
567
|
+
const mainLayer = selection.select(`#${key}`);
|
|
564
568
|
mainLayer.selectAll('.element').each(function (data, index) {
|
|
565
|
-
if (
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
569
|
+
if (labels.length === 0) return;
|
|
570
|
+
select(this)
|
|
571
|
+
.selectAll('.label')
|
|
572
|
+
.data(labels, (d) => d.text)
|
|
573
|
+
.join(
|
|
574
|
+
(enter) =>
|
|
575
|
+
enter
|
|
576
|
+
.append((options) => shapeFunction(data, index, options, this))
|
|
577
|
+
.attr('class', 'label'),
|
|
578
|
+
(update) =>
|
|
579
|
+
update.each(function (options) {
|
|
580
|
+
// @todo Handle Label with different type.
|
|
581
|
+
const node = shapeFunction(data, index, options, this);
|
|
582
|
+
copyAttributes(this, node);
|
|
583
|
+
}),
|
|
584
|
+
(exit) => exit.remove(),
|
|
585
|
+
);
|
|
577
586
|
});
|
|
578
587
|
}
|
|
579
|
-
|
|
580
|
-
if (labelLayout) labelLayout(
|
|
588
|
+
const plottedLabels = selection.selectAll('.label').nodes();
|
|
589
|
+
if (labelLayout) labelLayout(plottedLabels);
|
|
581
590
|
}
|
|
582
591
|
|
|
583
592
|
function createLabelShapeFunction(
|
|
@@ -588,9 +597,39 @@ function createLabelShapeFunction(
|
|
|
588
597
|
): (
|
|
589
598
|
data: Record<string, any>,
|
|
590
599
|
index: number,
|
|
591
|
-
|
|
600
|
+
options: Record<string, any>,
|
|
601
|
+
element: DisplayObject,
|
|
592
602
|
) => DisplayObject {
|
|
593
|
-
|
|
603
|
+
const [useShape] = useLibrary<G2ShapeOptions, ShapeComponent, Shape>(
|
|
604
|
+
'shape',
|
|
605
|
+
library,
|
|
606
|
+
);
|
|
607
|
+
const { data: abstractData } = mark;
|
|
608
|
+
const { index: I, data: visualData, defaultLabelShape } = state;
|
|
609
|
+
const point2d = visualData.map((d) => d.points);
|
|
610
|
+
const { theme, coordinate } = view;
|
|
611
|
+
return (data, index, options, element) => {
|
|
612
|
+
const i = I[index];
|
|
613
|
+
const datum = abstractData[i];
|
|
614
|
+
const { formatter = (d) => `${d}`, ...abstractOptions } = options;
|
|
615
|
+
const visualOptions = mapObject(abstractOptions, (d) => valueOf(datum, d));
|
|
616
|
+
const { shape = defaultLabelShape, text, ...style } = visualOptions;
|
|
617
|
+
const f = typeof formatter === 'string' ? format(formatter) : formatter;
|
|
618
|
+
const value = { ...style, element, text: f(text) };
|
|
619
|
+
const shapeFunction = useShape({ type: shape, ...style });
|
|
620
|
+
const { points } = data;
|
|
621
|
+
return shapeFunction(points, value, coordinate, theme, point2d);
|
|
622
|
+
};
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
function valueOf(
|
|
626
|
+
data: Record<string, any>,
|
|
627
|
+
value: Primitive | ((d: any) => any),
|
|
628
|
+
) {
|
|
629
|
+
if (typeof value === 'function') return value(data);
|
|
630
|
+
if (typeof value !== 'string') return value;
|
|
631
|
+
if (data[value] !== undefined) return data[value];
|
|
632
|
+
return value;
|
|
594
633
|
}
|
|
595
634
|
|
|
596
635
|
function selectFacetElements(
|
|
@@ -630,16 +669,6 @@ function createMarkShapeFunction(
|
|
|
630
669
|
state: G2MarkState,
|
|
631
670
|
view: G2ViewDescriptor,
|
|
632
671
|
library: G2Library,
|
|
633
|
-
): (data: Record<string, any>, index: number) => DisplayObject {
|
|
634
|
-
return createShapeFunction('shape', mark, state, view, library);
|
|
635
|
-
}
|
|
636
|
-
|
|
637
|
-
function createShapeFunction(
|
|
638
|
-
type: 'shape' | 'labelShape',
|
|
639
|
-
mark: G2Mark,
|
|
640
|
-
state: G2MarkState,
|
|
641
|
-
view: G2ViewDescriptor,
|
|
642
|
-
library: G2Library,
|
|
643
672
|
): (
|
|
644
673
|
data: Record<string, any>,
|
|
645
674
|
index: number,
|
|
@@ -649,18 +678,14 @@ function createShapeFunction(
|
|
|
649
678
|
'shape',
|
|
650
679
|
library,
|
|
651
680
|
);
|
|
652
|
-
const
|
|
653
|
-
const defaultKey:
|
|
654
|
-
| 'defaultShape'
|
|
655
|
-
| 'defaultLabelShape' = `default${upperType}`;
|
|
656
|
-
const { [defaultKey]: defaultShape, data } = state;
|
|
681
|
+
const { defaultShape, data } = state;
|
|
657
682
|
const point2d = data.map((d) => d.points);
|
|
658
683
|
const { theme, coordinate } = view;
|
|
659
684
|
const { style } = mark;
|
|
660
|
-
return (data, index
|
|
661
|
-
const {
|
|
662
|
-
const value = { ...v, index
|
|
663
|
-
const normalizedShape = normalizeOptions(shape
|
|
685
|
+
return (data, index) => {
|
|
686
|
+
const { shape = defaultShape, points, ...v } = data;
|
|
687
|
+
const value = { ...v, index };
|
|
688
|
+
const normalizedShape = normalizeOptions(shape);
|
|
664
689
|
const shapeFunction = useShape({ ...normalizedShape, ...style });
|
|
665
690
|
return shapeFunction(points, value, coordinate, theme, point2d);
|
|
666
691
|
};
|
package/src/runtime/render.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Canvas as GCanvas } from '@antv/g';
|
|
2
|
+
import { Renderer as CanvasRenderer } from '@antv/g-canvas';
|
|
3
|
+
import { Plugin as DragAndDropPlugin } from '@antv/g-plugin-dragndrop';
|
|
2
4
|
import { deepMix } from '@antv/util';
|
|
3
5
|
import { createLibrary } from '../stdlib';
|
|
4
|
-
import { Canvas } from '../renderer';
|
|
5
6
|
import { select } from '../utils/selection';
|
|
6
7
|
import { G2Context, G2ViewTree } from './types/options';
|
|
7
8
|
import { plot } from './plot';
|
|
@@ -43,6 +44,18 @@ function inferKeys<T extends G2ViewTree = G2ViewTree>(options: T): T {
|
|
|
43
44
|
return root;
|
|
44
45
|
}
|
|
45
46
|
|
|
47
|
+
function Canvas(width: number, height: number): GCanvas {
|
|
48
|
+
const renderer = new CanvasRenderer();
|
|
49
|
+
// DragAndDropPlugin is for interaction.
|
|
50
|
+
renderer.registerPlugin(new DragAndDropPlugin());
|
|
51
|
+
return new GCanvas({
|
|
52
|
+
width,
|
|
53
|
+
height,
|
|
54
|
+
container: document.createElement('div'),
|
|
55
|
+
renderer: renderer,
|
|
56
|
+
});
|
|
57
|
+
}
|
|
58
|
+
|
|
46
59
|
export function render<T extends G2ViewTree = G2ViewTree>(
|
|
47
60
|
options: T,
|
|
48
61
|
context: G2Context = {},
|
|
@@ -51,14 +64,7 @@ export function render<T extends G2ViewTree = G2ViewTree>(
|
|
|
51
64
|
// Initialize the context if it is not provided.
|
|
52
65
|
const { width = 640, height = 480 } = options;
|
|
53
66
|
const keyed = inferKeys(options);
|
|
54
|
-
const {
|
|
55
|
-
canvas = Canvas({
|
|
56
|
-
width,
|
|
57
|
-
height,
|
|
58
|
-
container: document.createElement('div'),
|
|
59
|
-
}),
|
|
60
|
-
library = createLibrary(),
|
|
61
|
-
} = context;
|
|
67
|
+
const { canvas = Canvas(width, height), library = createLibrary() } = context;
|
|
62
68
|
context.canvas = canvas;
|
|
63
69
|
context.library = library;
|
|
64
70
|
|
package/src/runtime/scale.ts
CHANGED
|
@@ -256,7 +256,7 @@ function inferOptionsC(
|
|
|
256
256
|
if (options.padding !== undefined) return options;
|
|
257
257
|
const padding = inferPadding(type, name, coordinate);
|
|
258
258
|
const { paddingInner = padding, paddingOuter = padding } = options;
|
|
259
|
-
return { ...options, paddingInner, paddingOuter };
|
|
259
|
+
return { ...options, paddingInner, paddingOuter, unknown: NaN };
|
|
260
260
|
}
|
|
261
261
|
|
|
262
262
|
function inferPadding(
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Canvas, DisplayObject,
|
|
1
|
+
import { Canvas, DisplayObject, IAnimation as GAnimation } from '@antv/g';
|
|
2
2
|
import { Transformation, Coordinate } from '@antv/coord';
|
|
3
3
|
import {
|
|
4
4
|
IndexedValue,
|
|
@@ -15,7 +15,6 @@ import { TransformComponent, Transform } from './transform';
|
|
|
15
15
|
import { Data, DataComponent } from './data';
|
|
16
16
|
|
|
17
17
|
export type G2ComponentNamespaces =
|
|
18
|
-
| 'renderer'
|
|
19
18
|
| 'coordinate'
|
|
20
19
|
| 'encode'
|
|
21
20
|
| 'mark'
|
|
@@ -37,7 +36,6 @@ export type G2ComponentNamespaces =
|
|
|
37
36
|
| 'labelLayout';
|
|
38
37
|
|
|
39
38
|
export type G2Component =
|
|
40
|
-
| RendererComponent
|
|
41
39
|
| EncodeComponent
|
|
42
40
|
| InferComponent
|
|
43
41
|
| StatisticComponent
|
|
@@ -57,7 +55,6 @@ export type G2Component =
|
|
|
57
55
|
| LabelLayoutComponent;
|
|
58
56
|
|
|
59
57
|
export type G2ComponentValue =
|
|
60
|
-
| Renderer
|
|
61
58
|
| Transform
|
|
62
59
|
| Encode
|
|
63
60
|
| Infer
|
|
@@ -83,12 +80,6 @@ export type G2BaseComponent<
|
|
|
83
80
|
props?: P;
|
|
84
81
|
};
|
|
85
82
|
|
|
86
|
-
export type Renderer = Canvas;
|
|
87
|
-
export type RendererComponent<O = Record<string, unknown>> = G2BaseComponent<
|
|
88
|
-
Renderer,
|
|
89
|
-
O
|
|
90
|
-
>;
|
|
91
|
-
|
|
92
83
|
export type InferredEncode = {
|
|
93
84
|
type?: string;
|
|
94
85
|
[key: string | symbol]: any;
|
package/src/scale/index.ts
CHANGED
|
@@ -1,11 +1,23 @@
|
|
|
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
|
+
|
|
13
|
+
export type { BandOptions } from './band';
|
|
14
|
+
export type { LinearOptions } from './linear';
|
|
15
|
+
export type { OrdinalOptions } from './ordinal';
|
|
16
|
+
export type { IdentityOptions } from './identity';
|
|
17
|
+
export type { PointOptions } from './point';
|
|
18
|
+
export type { TimeOptions } from './time';
|
|
19
|
+
export type { LogOptions } from './log';
|
|
20
|
+
export type { PowOptions } from './pow';
|
|
21
|
+
export type { ThresholdOptions } from './threshold';
|
|
22
|
+
export type { QuantileOptions } from './quantile';
|
|
23
|
+
export type { QuantizeOptions } from './quantize';
|
|
@@ -111,7 +111,10 @@ class TextShape extends CustomElement<TextShapeStyleProps> {
|
|
|
111
111
|
private drawBackground() {
|
|
112
112
|
const { background } = this.style;
|
|
113
113
|
if (!background) {
|
|
114
|
-
|
|
114
|
+
if (this.background) {
|
|
115
|
+
this.removeChild(this.background);
|
|
116
|
+
this.background.destroy();
|
|
117
|
+
}
|
|
115
118
|
this.background = undefined;
|
|
116
119
|
return;
|
|
117
120
|
}
|
|
@@ -138,7 +141,10 @@ class TextShape extends CustomElement<TextShapeStyleProps> {
|
|
|
138
141
|
private drawConnector() {
|
|
139
142
|
const { connector } = this.style;
|
|
140
143
|
if (!connector) {
|
|
141
|
-
|
|
144
|
+
if (this.connector) {
|
|
145
|
+
this.removeChild(this.connector);
|
|
146
|
+
this.connector.destroy();
|
|
147
|
+
}
|
|
142
148
|
this.connector = undefined;
|
|
143
149
|
return;
|
|
144
150
|
}
|
|
@@ -163,7 +169,10 @@ class TextShape extends CustomElement<TextShapeStyleProps> {
|
|
|
163
169
|
private drawStartMarker(style?: MarkerStyleProps) {
|
|
164
170
|
const shape = this.startMarkerPoint;
|
|
165
171
|
if (!style) {
|
|
166
|
-
|
|
172
|
+
if (shape) {
|
|
173
|
+
this.removeChild(shape);
|
|
174
|
+
shape.destroy();
|
|
175
|
+
}
|
|
167
176
|
this.startMarkerPoint = undefined;
|
|
168
177
|
return;
|
|
169
178
|
}
|
|
@@ -178,7 +187,10 @@ class TextShape extends CustomElement<TextShapeStyleProps> {
|
|
|
178
187
|
private drawEndMarker(style?: MarkerStyleProps) {
|
|
179
188
|
const shape = this.endMarkerPoint;
|
|
180
189
|
if (!style) {
|
|
181
|
-
|
|
190
|
+
if (shape) {
|
|
191
|
+
this.removeChild(shape);
|
|
192
|
+
shape.destroy();
|
|
193
|
+
}
|
|
182
194
|
this.endMarkerPoint = undefined;
|
|
183
195
|
return;
|
|
184
196
|
}
|
|
@@ -37,8 +37,8 @@ function getPath(points: Vector2[], coordinate: Coordinate) {
|
|
|
37
37
|
// In polar coordinate.
|
|
38
38
|
const center = coordinate.getCenter();
|
|
39
39
|
const [x, y] = center;
|
|
40
|
-
const startAngle = angle(sub(points[0], center));
|
|
41
|
-
const endAngle = angle(sub(points[1], center));
|
|
40
|
+
const startAngle = angle(sub(points[0], center)) - Math.PI / 2;
|
|
41
|
+
const endAngle = angle(sub(points[1], center)) - Math.PI / 2;
|
|
42
42
|
|
|
43
43
|
const radiusHigh = dist(center, points[2]);
|
|
44
44
|
const radiusQ3 = dist(center, points[3]);
|
package/src/shape/index.ts
CHANGED
|
@@ -1,66 +1,98 @@
|
|
|
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
|
|
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
10
|
|
|
11
|
-
export { Bowtie
|
|
12
|
-
export { Cross
|
|
13
|
-
export { Diamond
|
|
14
|
-
export { Hexagon
|
|
15
|
-
export { HollowBowtie
|
|
16
|
-
export { HollowDiamond
|
|
17
|
-
export { HollowHexagon
|
|
18
|
-
export { HollowPoint
|
|
19
|
-
export { HollowSquare
|
|
20
|
-
export { HollowTriangle
|
|
21
|
-
export {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
} from './point/
|
|
25
|
-
export {
|
|
26
|
-
export {
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
} from './point/
|
|
30
|
-
export { Plus, PlusOptions } from './point/plus';
|
|
31
|
-
export { Point, PointOptions } from './point/point';
|
|
32
|
-
export { Square, SquareOptions } from './point/square';
|
|
33
|
-
export { Tick, TickOptions } from './point/tick';
|
|
34
|
-
export { Triangle, TriangleOptions } from './point/triangle';
|
|
35
|
-
export { TriangleDown, TriangleDownOptions } from './point/triangleDown';
|
|
11
|
+
export { Bowtie } from './point/bowtie';
|
|
12
|
+
export { Cross } from './point/cross';
|
|
13
|
+
export { Diamond } from './point/diamond';
|
|
14
|
+
export { Hexagon } from './point/hexagon';
|
|
15
|
+
export { HollowBowtie } from './point/hollowBowtie';
|
|
16
|
+
export { HollowDiamond } from './point/hollowDiamond';
|
|
17
|
+
export { HollowHexagon } from './point/hollowHexagon';
|
|
18
|
+
export { HollowPoint } from './point/hollowPoint';
|
|
19
|
+
export { HollowSquare } from './point/hollowSquare';
|
|
20
|
+
export { HollowTriangle } from './point/hollowTriangle';
|
|
21
|
+
export { HollowTriangleDown } from './point/hollowTriangleDown';
|
|
22
|
+
export { Hyphen } from './point/hyphen';
|
|
23
|
+
export { Line as LinePoint } from './point/line';
|
|
24
|
+
export { Plus } from './point/plus';
|
|
25
|
+
export { Point } from './point/point';
|
|
26
|
+
export { Square } from './point/square';
|
|
27
|
+
export { Tick } from './point/tick';
|
|
28
|
+
export { Triangle } from './point/triangle';
|
|
29
|
+
export { TriangleDown } from './point/triangleDown';
|
|
36
30
|
|
|
37
|
-
export { Vector
|
|
31
|
+
export { Vector } from './vector/vector';
|
|
38
32
|
|
|
39
|
-
export { Text
|
|
40
|
-
export { AnnotationText
|
|
41
|
-
export { AnnotationBadge
|
|
42
|
-
export { Area
|
|
43
|
-
export { SmoothArea
|
|
44
|
-
export { Link
|
|
45
|
-
export {
|
|
46
|
-
export {
|
|
47
|
-
export {
|
|
33
|
+
export { Text } from './text/text';
|
|
34
|
+
export { AnnotationText } from './annotation/text';
|
|
35
|
+
export { AnnotationBadge } from './annotation/badge';
|
|
36
|
+
export { Area } from './area/area';
|
|
37
|
+
export { SmoothArea } from './area/smoothArea';
|
|
38
|
+
export { Link } from './link/link';
|
|
39
|
+
export { SmoothEdge } from './link/smoothEdge';
|
|
40
|
+
export { VHVEdge } from './link/vhv';
|
|
41
|
+
export { Arc } from './link/arc';
|
|
42
|
+
export { Image } from './image/image';
|
|
43
|
+
export { Polygon } from './polygon/polygon';
|
|
44
|
+
export { Ribbon } from './polygon/ribbon';
|
|
45
|
+
export { Box } from './box/box';
|
|
48
46
|
// For relation diagram (node and edge).
|
|
49
|
-
export { Point as PointNode } from './node/point';
|
|
50
|
-
export { Polygon as PolygonNode } from './node/polygon';
|
|
51
|
-
export { Edge, EdgeOptions } from './edge/edge';
|
|
52
|
-
export { SmoothEdge, SmoothEdgeOptions } from './edge/smoothEdge';
|
|
53
|
-
export { VHVEdge, VHVEdgeOptions } from './edge/vhv';
|
|
54
|
-
export { Arc, ArcOptions } from './edge/arc';
|
|
55
|
-
export { Ribbon, RibbonOptions } from './edge/ribbon';
|
|
56
47
|
|
|
57
|
-
export {
|
|
58
|
-
|
|
59
|
-
LineOptions as AnnotationLineOptions,
|
|
60
|
-
} from './annotation/line';
|
|
61
|
-
export {
|
|
62
|
-
Connector as AnnotationConnector,
|
|
63
|
-
ConnectorOptions as AnnotationConnectorOptions,
|
|
64
|
-
} from './annotation/connector';
|
|
48
|
+
export { AnnotationLine as AnnotationLine } from './annotation/line';
|
|
49
|
+
export { Connector as AnnotationConnector } from './annotation/connector';
|
|
65
50
|
|
|
66
|
-
export { Label
|
|
51
|
+
export { Label } from './label/label';
|
|
52
|
+
|
|
53
|
+
export type { RectOptions } from './interval/rect';
|
|
54
|
+
export type { HollowRectOptions } from './interval/hollowRect';
|
|
55
|
+
export type { FunnelOptions } from './interval/funnel';
|
|
56
|
+
export type { PyramidOptions } from './interval/pyramid';
|
|
57
|
+
export type { LineOptions } from './line/line';
|
|
58
|
+
export type { SmoothOptions } from './line/smooth';
|
|
59
|
+
export type { HVOptions } from './line/hv';
|
|
60
|
+
export type { VHOptions } from './line/vh';
|
|
61
|
+
export type { HVHOptions } from './line/hvh';
|
|
62
|
+
|
|
63
|
+
export type { BowtieOptions } from './point/bowtie';
|
|
64
|
+
export type { CrossOptions } from './point/cross';
|
|
65
|
+
export type { DiamondOptions } from './point/diamond';
|
|
66
|
+
export type { HexagonOptions } from './point/hexagon';
|
|
67
|
+
export type { HollowBowtieOptions } from './point/hollowBowtie';
|
|
68
|
+
export type { HollowDiamondOptions } from './point/hollowDiamond';
|
|
69
|
+
export type { HollowHexagonOptions } from './point/hollowHexagon';
|
|
70
|
+
export type { HollowPointOptions } from './point/hollowPoint';
|
|
71
|
+
export type { HollowSquareOptions } from './point/hollowSquare';
|
|
72
|
+
export type { HollowTriangleOptions } from './point/hollowTriangle';
|
|
73
|
+
export type { HollowTriangleDownOptions } from './point/hollowTriangleDown';
|
|
74
|
+
export type { HyphenOptions } from './point/hyphen';
|
|
75
|
+
export type { LineOptions as LinePointOptions } from './point/line';
|
|
76
|
+
export type { PlusOptions } from './point/plus';
|
|
77
|
+
export type { PointOptions } from './point/point';
|
|
78
|
+
export type { SquareOptions } from './point/square';
|
|
79
|
+
export type { TickOptions } from './point/tick';
|
|
80
|
+
export type { TriangleOptions } from './point/triangle';
|
|
81
|
+
export type { TriangleDownOptions } from './point/triangleDown';
|
|
82
|
+
|
|
83
|
+
export type { VectorOptions } from './vector/vector';
|
|
84
|
+
|
|
85
|
+
export type { TextOptions } from './text/text';
|
|
86
|
+
export type { AnnotationTextOptions } from './annotation/text';
|
|
87
|
+
export type { AnnotationBadgeOptions } from './annotation/badge';
|
|
88
|
+
export type { AreaOptions } from './area/area';
|
|
89
|
+
export type { SmoothAreaOptions } from './area/smoothArea';
|
|
90
|
+
export type { LinkOptions } from './link/link';
|
|
91
|
+
export type { ImageOptions } from './image/image';
|
|
92
|
+
export type { PolygonOptions } from './polygon/polygon';
|
|
93
|
+
export type { BoxOptions } from './box/box';
|
|
94
|
+
|
|
95
|
+
export type { LineOptions as AnnotationLineOptions } from './annotation/line';
|
|
96
|
+
export type { ConnectorOptions as AnnotationConnectorOptions } from './annotation/connector';
|
|
97
|
+
|
|
98
|
+
export type { LabelOptions } from './label/label';
|