@antv/g6 5.0.0-beta.27 → 5.0.0-beta.28
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/LICENSE +21 -0
- package/dist/g6.min.js +2 -2
- package/esm/constant/shape.d.ts +1 -1
- package/esm/index.d.ts +4 -2
- package/esm/index.js +1 -1
- package/esm/index.js.map +1 -1
- package/esm/item/combo.js +3 -1
- package/esm/item/combo.js.map +1 -1
- package/esm/item/edge.js +7 -2
- package/esm/item/edge.js.map +1 -1
- package/esm/item/item.d.ts +2 -2
- package/esm/item/item.js +13 -6
- package/esm/item/item.js.map +1 -1
- package/esm/item/node.d.ts +1 -0
- package/esm/item/node.js +12 -2
- package/esm/item/node.js.map +1 -1
- package/esm/runtime/controller/data.js +15 -10
- package/esm/runtime/controller/data.js.map +1 -1
- package/esm/runtime/controller/interaction.js +4 -3
- package/esm/runtime/controller/interaction.js.map +1 -1
- package/esm/runtime/controller/item.d.ts +3 -2
- package/esm/runtime/controller/item.js +45 -22
- package/esm/runtime/controller/item.js.map +1 -1
- package/esm/runtime/controller/layout.js +7 -10
- package/esm/runtime/controller/layout.js.map +1 -1
- package/esm/runtime/controller/plugin.js +1 -1
- package/esm/runtime/controller/plugin.js.map +1 -1
- package/esm/runtime/graph.d.ts +19 -6
- package/esm/runtime/graph.js +62 -27
- package/esm/runtime/graph.js.map +1 -1
- package/esm/runtime/hooks.d.ts +2 -2
- package/esm/runtime/hooks.js +2 -2
- package/esm/stdlib/behavior/create-edge.d.ts +1 -1
- package/esm/stdlib/behavior/drag-canvas.d.ts +1 -1
- package/esm/stdlib/behavior/drag-node.d.ts +1 -1
- package/esm/stdlib/behavior/drag-node.js +1 -1
- package/esm/stdlib/behavior/drag-node.js.map +1 -1
- package/esm/stdlib/behavior/hover-activate.d.ts +1 -1
- package/esm/stdlib/behavior/orbit-canvas-3d.d.ts +1 -1
- package/esm/stdlib/behavior/rotate-canvas-3d.d.ts +2 -2
- package/esm/stdlib/behavior/scroll-canvas.js +5 -5
- package/esm/stdlib/behavior/scroll-canvas.js.map +1 -1
- package/esm/stdlib/behavior/track-canvas-3d.d.ts +1 -1
- package/esm/stdlib/behavior/zoom-canvas-3d.d.ts +1 -1
- package/esm/stdlib/behavior/zoom-canvas.d.ts +16 -0
- package/esm/stdlib/behavior/zoom-canvas.js +107 -5
- package/esm/stdlib/behavior/zoom-canvas.js.map +1 -1
- package/esm/stdlib/data/transformV4Data.js +12 -6
- package/esm/stdlib/data/transformV4Data.js.map +1 -1
- package/esm/stdlib/index.d.ts +6 -4
- package/esm/stdlib/index.js +8 -6
- package/esm/stdlib/index.js.map +1 -1
- package/esm/stdlib/item/combo/circle.js +12 -7
- package/esm/stdlib/item/combo/circle.js.map +1 -1
- package/esm/stdlib/item/combo/rect.js +12 -7
- package/esm/stdlib/item/combo/rect.js.map +1 -1
- package/esm/stdlib/item/edge/base.d.ts +22 -5
- package/esm/stdlib/item/edge/base.js +48 -16
- package/esm/stdlib/item/edge/base.js.map +1 -1
- package/esm/stdlib/item/edge/cubic.js +11 -6
- package/esm/stdlib/item/edge/cubic.js.map +1 -1
- package/esm/stdlib/item/edge/line.js +12 -7
- package/esm/stdlib/item/edge/line.js.map +1 -1
- package/esm/stdlib/item/edge/loop.js +6 -1
- package/esm/stdlib/item/edge/loop.js.map +1 -1
- package/esm/stdlib/item/edge/polyline.js +11 -6
- package/esm/stdlib/item/edge/polyline.js.map +1 -1
- package/esm/stdlib/item/edge/quadratic.js +11 -6
- package/esm/stdlib/item/edge/quadratic.js.map +1 -1
- package/esm/stdlib/item/node/base.d.ts +24 -13
- package/esm/stdlib/item/node/base.js +90 -48
- package/esm/stdlib/item/node/base.js.map +1 -1
- package/esm/stdlib/item/node/base3d.d.ts +11 -2
- package/esm/stdlib/item/node/base3d.js +14 -3
- package/esm/stdlib/item/node/base3d.js.map +1 -1
- package/esm/stdlib/item/node/circle.js +13 -7
- package/esm/stdlib/item/node/circle.js.map +1 -1
- package/esm/stdlib/item/node/cube.d.ts +0 -2
- package/esm/stdlib/item/node/cube.js +12 -9
- package/esm/stdlib/item/node/cube.js.map +1 -1
- package/esm/stdlib/item/node/diamond.js +20 -11
- package/esm/stdlib/item/node/diamond.js.map +1 -1
- package/esm/stdlib/item/node/donut.js +18 -8
- package/esm/stdlib/item/node/donut.js.map +1 -1
- package/esm/stdlib/item/node/ellipse.js +11 -6
- package/esm/stdlib/item/node/ellipse.js.map +1 -1
- package/esm/stdlib/item/node/hexagon.js +12 -7
- package/esm/stdlib/item/node/hexagon.js.map +1 -1
- package/esm/stdlib/item/node/image.js +13 -3
- package/esm/stdlib/item/node/image.js.map +1 -1
- package/esm/stdlib/item/node/index.d.ts +1 -0
- package/esm/stdlib/item/node/index.js +1 -0
- package/esm/stdlib/item/node/index.js.map +1 -1
- package/esm/stdlib/item/node/modelRect.d.ts +33 -1
- package/esm/stdlib/item/node/modelRect.js +135 -78
- package/esm/stdlib/item/node/modelRect.js.map +1 -1
- package/esm/stdlib/item/node/plane.d.ts +38 -0
- package/esm/stdlib/item/node/plane.js +62 -0
- package/esm/stdlib/item/node/plane.js.map +1 -0
- package/esm/stdlib/item/node/rect.js +12 -7
- package/esm/stdlib/item/node/rect.js.map +1 -1
- package/esm/stdlib/item/node/sphere.js +12 -7
- package/esm/stdlib/item/node/sphere.js.map +1 -1
- package/esm/stdlib/item/node/star.d.ts +1 -3
- package/esm/stdlib/item/node/star.js +16 -10
- package/esm/stdlib/item/node/star.js.map +1 -1
- package/esm/stdlib/item/node/triangle.js +17 -7
- package/esm/stdlib/item/node/triangle.js.map +1 -1
- package/esm/stdlib/plugin/edgeBundling/index.d.ts +75 -0
- package/esm/stdlib/plugin/edgeBundling/index.js +364 -0
- package/esm/stdlib/plugin/edgeBundling/index.js.map +1 -0
- package/esm/stdlib/plugin/hull/bubbleset.d.ts +1 -1
- package/esm/stdlib/plugin/hull/bubbleset.js +13 -13
- package/esm/stdlib/plugin/hull/bubbleset.js.map +1 -1
- package/esm/stdlib/plugin/hull/index.js +4 -4
- package/esm/stdlib/plugin/hull/util.js +1 -1
- package/esm/stdlib/plugin/hull/util.js.map +1 -1
- package/esm/stdlib/plugin/index.d.ts +1 -0
- package/esm/stdlib/plugin/index.js +1 -0
- package/esm/stdlib/plugin/index.js.map +1 -1
- package/esm/stdlib/plugin/legend/index.d.ts +2 -2
- package/esm/stdlib/plugin/legend/index.js +10 -10
- package/esm/stdlib/plugin/legend/index.js.map +1 -1
- package/esm/stdlib/plugin/lodController/index.js +10 -8
- package/esm/stdlib/plugin/lodController/index.js.map +1 -1
- package/esm/stdlib/plugin/menu/index.js +1 -1
- package/esm/stdlib/plugin/menu/index.js.map +1 -1
- package/esm/stdlib/plugin/snapline/index.d.ts +2 -2
- package/esm/stdlib/plugin/snapline/index.js +2 -2
- package/esm/stdlib/plugin/snapline/index.js.map +1 -1
- package/esm/stdlib/plugin/tooltip/index.d.ts +1 -1
- package/esm/stdlib/plugin/tooltip/index.js +3 -3
- package/esm/stdlib/plugin/tooltip/index.js.map +1 -1
- package/esm/stdlib/plugin/{watermaker → watermarker}/index.d.ts +1 -1
- package/esm/stdlib/plugin/{watermaker → watermarker}/index.js +7 -7
- package/esm/stdlib/plugin/watermarker/index.js.map +1 -0
- package/esm/stdlib/selector/lasso.js +3 -3
- package/esm/stdlib/selector/lasso.js.map +1 -1
- package/esm/stdlib/theme/dark.js +1 -1
- package/esm/stdlib/theme/dark.js.map +1 -1
- package/esm/stdlib/theme/light.js +4 -1
- package/esm/stdlib/theme/light.js.map +1 -1
- package/esm/stdlib/themeSolver/spec.js +3 -3
- package/esm/stdlib/themeSolver/subject.d.ts +1 -1
- package/esm/stdlib/themeSolver/subject.js +1 -1
- package/esm/types/animate.d.ts +1 -1
- package/esm/types/data.d.ts +3 -1
- package/esm/types/graph.d.ts +54 -11
- package/esm/types/hook.d.ts +13 -3
- package/esm/types/index.d.ts +2 -1
- package/esm/types/index.js +1 -0
- package/esm/types/index.js.map +1 -1
- package/esm/types/item.d.ts +8 -10
- package/esm/types/item.js.map +1 -1
- package/esm/types/layout.d.ts +1 -1
- package/esm/types/node.d.ts +1 -31
- package/esm/types/plugin.d.ts +1 -1
- package/esm/types/plugin.js +1 -1
- package/esm/types/spec.d.ts +5 -5
- package/esm/types/theme.d.ts +1 -1
- package/esm/types/view.d.ts +1 -1
- package/esm/util/animate.js +1 -1
- package/esm/util/animate.js.map +1 -1
- package/esm/util/canvas.d.ts +1 -1
- package/esm/util/canvas.js +7 -1
- package/esm/util/canvas.js.map +1 -1
- package/esm/util/data.d.ts +10 -10
- package/esm/util/data.js +10 -9
- package/esm/util/data.js.map +1 -1
- package/esm/util/extend.js +1 -1
- package/esm/util/extend.js.map +1 -1
- package/esm/util/item.js +1 -1
- package/esm/util/item.js.map +1 -1
- package/esm/util/math.d.ts +1 -1
- package/esm/util/math.js +1 -1
- package/esm/util/path.d.ts +1 -1
- package/esm/util/path.js +1 -1
- package/esm/util/polyline.d.ts +2 -2
- package/esm/util/polyline.js +3 -3
- package/esm/util/polyline.js.map +1 -1
- package/esm/util/router.js +7 -7
- package/esm/util/router.js.map +1 -1
- package/esm/util/shape.d.ts +25 -13
- package/esm/util/shape.js +29 -20
- package/esm/util/shape.js.map +1 -1
- package/esm/util/shape3d.d.ts +2 -2
- package/esm/util/shape3d.js +9 -12
- package/esm/util/shape3d.js.map +1 -1
- package/lib/constant/shape.d.ts +1 -1
- package/lib/index.d.ts +4 -2
- package/lib/index.js +1 -1
- package/lib/index.js.map +1 -1
- package/lib/item/combo.js +3 -1
- package/lib/item/combo.js.map +1 -1
- package/lib/item/edge.js +7 -2
- package/lib/item/edge.js.map +1 -1
- package/lib/item/item.d.ts +2 -2
- package/lib/item/item.js +13 -6
- package/lib/item/item.js.map +1 -1
- package/lib/item/node.d.ts +1 -0
- package/lib/item/node.js +12 -2
- package/lib/item/node.js.map +1 -1
- package/lib/runtime/controller/data.js +14 -9
- package/lib/runtime/controller/data.js.map +1 -1
- package/lib/runtime/controller/interaction.js +3 -2
- package/lib/runtime/controller/interaction.js.map +1 -1
- package/lib/runtime/controller/item.d.ts +3 -2
- package/lib/runtime/controller/item.js +44 -21
- package/lib/runtime/controller/item.js.map +1 -1
- package/lib/runtime/controller/layout.js +7 -33
- package/lib/runtime/controller/layout.js.map +1 -1
- package/lib/runtime/controller/plugin.js +1 -1
- package/lib/runtime/controller/plugin.js.map +1 -1
- package/lib/runtime/graph.d.ts +19 -6
- package/lib/runtime/graph.js +62 -27
- package/lib/runtime/graph.js.map +1 -1
- package/lib/runtime/hooks.d.ts +2 -2
- package/lib/runtime/hooks.js +2 -2
- package/lib/stdlib/behavior/create-edge.d.ts +1 -1
- package/lib/stdlib/behavior/drag-canvas.d.ts +1 -1
- package/lib/stdlib/behavior/drag-node.d.ts +1 -1
- package/lib/stdlib/behavior/drag-node.js +1 -1
- package/lib/stdlib/behavior/drag-node.js.map +1 -1
- package/lib/stdlib/behavior/hover-activate.d.ts +1 -1
- package/lib/stdlib/behavior/orbit-canvas-3d.d.ts +1 -1
- package/lib/stdlib/behavior/rotate-canvas-3d.d.ts +2 -2
- package/lib/stdlib/behavior/scroll-canvas.js +5 -5
- package/lib/stdlib/behavior/scroll-canvas.js.map +1 -1
- package/lib/stdlib/behavior/track-canvas-3d.d.ts +1 -1
- package/lib/stdlib/behavior/zoom-canvas-3d.d.ts +1 -1
- package/lib/stdlib/behavior/zoom-canvas.d.ts +16 -0
- package/lib/stdlib/behavior/zoom-canvas.js +106 -4
- package/lib/stdlib/behavior/zoom-canvas.js.map +1 -1
- package/lib/stdlib/data/transformV4Data.js +12 -6
- package/lib/stdlib/data/transformV4Data.js.map +1 -1
- package/lib/stdlib/index.d.ts +6 -4
- package/lib/stdlib/index.js +10 -8
- package/lib/stdlib/index.js.map +1 -1
- package/lib/stdlib/item/combo/circle.js +12 -7
- package/lib/stdlib/item/combo/circle.js.map +1 -1
- package/lib/stdlib/item/combo/rect.js +12 -7
- package/lib/stdlib/item/combo/rect.js.map +1 -1
- package/lib/stdlib/item/edge/base.d.ts +22 -5
- package/lib/stdlib/item/edge/base.js +48 -16
- package/lib/stdlib/item/edge/base.js.map +1 -1
- package/lib/stdlib/item/edge/cubic.js +11 -6
- package/lib/stdlib/item/edge/cubic.js.map +1 -1
- package/lib/stdlib/item/edge/line.js +12 -7
- package/lib/stdlib/item/edge/line.js.map +1 -1
- package/lib/stdlib/item/edge/loop.js +6 -1
- package/lib/stdlib/item/edge/loop.js.map +1 -1
- package/lib/stdlib/item/edge/polyline.js +11 -6
- package/lib/stdlib/item/edge/polyline.js.map +1 -1
- package/lib/stdlib/item/edge/quadratic.js +11 -6
- package/lib/stdlib/item/edge/quadratic.js.map +1 -1
- package/lib/stdlib/item/node/base.d.ts +24 -13
- package/lib/stdlib/item/node/base.js +90 -48
- package/lib/stdlib/item/node/base.js.map +1 -1
- package/lib/stdlib/item/node/base3d.d.ts +11 -2
- package/lib/stdlib/item/node/base3d.js +14 -3
- package/lib/stdlib/item/node/base3d.js.map +1 -1
- package/lib/stdlib/item/node/circle.js +13 -7
- package/lib/stdlib/item/node/circle.js.map +1 -1
- package/lib/stdlib/item/node/cube.d.ts +0 -2
- package/lib/stdlib/item/node/cube.js +12 -9
- package/lib/stdlib/item/node/cube.js.map +1 -1
- package/lib/stdlib/item/node/diamond.js +20 -11
- package/lib/stdlib/item/node/diamond.js.map +1 -1
- package/lib/stdlib/item/node/donut.js +18 -8
- package/lib/stdlib/item/node/donut.js.map +1 -1
- package/lib/stdlib/item/node/ellipse.js +11 -6
- package/lib/stdlib/item/node/ellipse.js.map +1 -1
- package/lib/stdlib/item/node/hexagon.js +12 -7
- package/lib/stdlib/item/node/hexagon.js.map +1 -1
- package/lib/stdlib/item/node/image.js +13 -3
- package/lib/stdlib/item/node/image.js.map +1 -1
- package/lib/stdlib/item/node/index.d.ts +1 -0
- package/lib/stdlib/item/node/index.js +1 -0
- package/lib/stdlib/item/node/index.js.map +1 -1
- package/lib/stdlib/item/node/modelRect.d.ts +33 -1
- package/lib/stdlib/item/node/modelRect.js +135 -78
- package/lib/stdlib/item/node/modelRect.js.map +1 -1
- package/lib/stdlib/item/node/plane.d.ts +38 -0
- package/lib/stdlib/item/node/plane.js +66 -0
- package/lib/stdlib/item/node/plane.js.map +1 -0
- package/lib/stdlib/item/node/rect.js +12 -7
- package/lib/stdlib/item/node/rect.js.map +1 -1
- package/lib/stdlib/item/node/sphere.js +12 -7
- package/lib/stdlib/item/node/sphere.js.map +1 -1
- package/lib/stdlib/item/node/star.d.ts +1 -3
- package/lib/stdlib/item/node/star.js +16 -10
- package/lib/stdlib/item/node/star.js.map +1 -1
- package/lib/stdlib/item/node/triangle.js +17 -7
- package/lib/stdlib/item/node/triangle.js.map +1 -1
- package/lib/stdlib/plugin/edgeBundling/index.d.ts +75 -0
- package/lib/stdlib/plugin/edgeBundling/index.js +368 -0
- package/lib/stdlib/plugin/edgeBundling/index.js.map +1 -0
- package/lib/stdlib/plugin/hull/bubbleset.d.ts +1 -1
- package/lib/stdlib/plugin/hull/bubbleset.js +13 -13
- package/lib/stdlib/plugin/hull/bubbleset.js.map +1 -1
- package/lib/stdlib/plugin/hull/index.js +4 -4
- package/lib/stdlib/plugin/hull/util.js +1 -1
- package/lib/stdlib/plugin/hull/util.js.map +1 -1
- package/lib/stdlib/plugin/index.d.ts +1 -0
- package/lib/stdlib/plugin/index.js +1 -0
- package/lib/stdlib/plugin/index.js.map +1 -1
- package/lib/stdlib/plugin/legend/index.d.ts +2 -2
- package/lib/stdlib/plugin/legend/index.js +10 -10
- package/lib/stdlib/plugin/legend/index.js.map +1 -1
- package/lib/stdlib/plugin/lodController/index.js +10 -8
- package/lib/stdlib/plugin/lodController/index.js.map +1 -1
- package/lib/stdlib/plugin/menu/index.js +1 -1
- package/lib/stdlib/plugin/menu/index.js.map +1 -1
- package/lib/stdlib/plugin/snapline/index.d.ts +2 -2
- package/lib/stdlib/plugin/snapline/index.js +2 -2
- package/lib/stdlib/plugin/snapline/index.js.map +1 -1
- package/lib/stdlib/plugin/tooltip/index.d.ts +1 -1
- package/lib/stdlib/plugin/tooltip/index.js +3 -3
- package/lib/stdlib/plugin/tooltip/index.js.map +1 -1
- package/lib/stdlib/plugin/{watermaker → watermarker}/index.d.ts +1 -1
- package/lib/stdlib/plugin/{watermaker → watermarker}/index.js +7 -7
- package/lib/stdlib/plugin/watermarker/index.js.map +1 -0
- package/lib/stdlib/selector/lasso.js +3 -3
- package/lib/stdlib/selector/lasso.js.map +1 -1
- package/lib/stdlib/theme/dark.js +1 -1
- package/lib/stdlib/theme/dark.js.map +1 -1
- package/lib/stdlib/theme/light.js +4 -1
- package/lib/stdlib/theme/light.js.map +1 -1
- package/lib/stdlib/themeSolver/spec.js +3 -3
- package/lib/stdlib/themeSolver/subject.d.ts +1 -1
- package/lib/stdlib/themeSolver/subject.js +1 -1
- package/lib/types/animate.d.ts +1 -1
- package/lib/types/data.d.ts +3 -1
- package/lib/types/graph.d.ts +54 -11
- package/lib/types/hook.d.ts +13 -3
- package/lib/types/index.d.ts +2 -1
- package/lib/types/index.js +3 -1
- package/lib/types/index.js.map +1 -1
- package/lib/types/item.d.ts +8 -10
- package/lib/types/item.js.map +1 -1
- package/lib/types/layout.d.ts +1 -1
- package/lib/types/node.d.ts +1 -31
- package/lib/types/plugin.d.ts +1 -1
- package/lib/types/plugin.js +1 -1
- package/lib/types/spec.d.ts +5 -5
- package/lib/types/theme.d.ts +1 -1
- package/lib/types/view.d.ts +1 -1
- package/lib/util/animate.js +1 -1
- package/lib/util/animate.js.map +1 -1
- package/lib/util/canvas.d.ts +1 -1
- package/lib/util/canvas.js +7 -1
- package/lib/util/canvas.js.map +1 -1
- package/lib/util/data.d.ts +10 -10
- package/lib/util/data.js +12 -11
- package/lib/util/data.js.map +1 -1
- package/lib/util/extend.js +4 -7
- package/lib/util/extend.js.map +1 -1
- package/lib/util/item.js +1 -1
- package/lib/util/item.js.map +1 -1
- package/lib/util/math.d.ts +1 -1
- package/lib/util/math.js +1 -1
- package/lib/util/path.d.ts +1 -1
- package/lib/util/path.js +1 -1
- package/lib/util/polyline.d.ts +2 -2
- package/lib/util/polyline.js +3 -3
- package/lib/util/polyline.js.map +1 -1
- package/lib/util/router.js +7 -7
- package/lib/util/router.js.map +1 -1
- package/lib/util/shape.d.ts +25 -13
- package/lib/util/shape.js +28 -19
- package/lib/util/shape.js.map +1 -1
- package/lib/util/shape3d.d.ts +2 -2
- package/lib/util/shape3d.js +9 -12
- package/lib/util/shape3d.js.map +1 -1
- package/package.json +37 -53
- package/src/index.ts +1 -1
- package/src/item/combo.ts +2 -1
- package/src/item/edge.ts +9 -2
- package/src/item/item.ts +21 -10
- package/src/item/node.ts +22 -6
- package/src/runtime/controller/data.ts +16 -14
- package/src/runtime/controller/interaction.ts +5 -4
- package/src/runtime/controller/item.ts +78 -36
- package/src/runtime/controller/layout.ts +7 -9
- package/src/runtime/controller/plugin.ts +1 -1
- package/src/runtime/graph.ts +128 -71
- package/src/runtime/hooks.ts +2 -2
- package/src/stdlib/behavior/create-edge.ts +1 -1
- package/src/stdlib/behavior/drag-canvas.ts +1 -1
- package/src/stdlib/behavior/drag-node.ts +1 -1
- package/src/stdlib/behavior/hover-activate.ts +1 -1
- package/src/stdlib/behavior/orbit-canvas-3d.ts +1 -1
- package/src/stdlib/behavior/rotate-canvas-3d.ts +2 -2
- package/src/stdlib/behavior/scroll-canvas.ts +5 -5
- package/src/stdlib/behavior/track-canvas-3d.ts +1 -1
- package/src/stdlib/behavior/zoom-canvas-3d.ts +1 -1
- package/src/stdlib/behavior/zoom-canvas.ts +134 -13
- package/src/stdlib/data/transformV4Data.ts +27 -3
- package/src/stdlib/index.ts +8 -4
- package/src/stdlib/item/combo/circle.ts +26 -11
- package/src/stdlib/item/combo/rect.ts +26 -11
- package/src/stdlib/item/edge/base.ts +45 -24
- package/src/stdlib/item/edge/cubic.ts +26 -4
- package/src/stdlib/item/edge/line.ts +27 -5
- package/src/stdlib/item/edge/loop.ts +6 -1
- package/src/stdlib/item/edge/polyline.ts +26 -4
- package/src/stdlib/item/edge/quadratic.ts +26 -4
- package/src/stdlib/item/node/base.ts +74 -48
- package/src/stdlib/item/node/base3d.ts +19 -3
- package/src/stdlib/item/node/circle.ts +29 -8
- package/src/stdlib/item/node/cube.ts +26 -12
- package/src/stdlib/item/node/diamond.ts +35 -11
- package/src/stdlib/item/node/donut.ts +32 -18
- package/src/stdlib/item/node/ellipse.ts +25 -11
- package/src/stdlib/item/node/hexagon.ts +27 -7
- package/src/stdlib/item/node/image.ts +13 -5
- package/src/stdlib/item/node/index.ts +1 -0
- package/src/stdlib/item/node/modelRect.ts +230 -136
- package/src/stdlib/item/node/plane.ts +121 -0
- package/src/stdlib/item/node/rect.ts +27 -7
- package/src/stdlib/item/node/sphere.ts +26 -10
- package/src/stdlib/item/node/star.ts +32 -11
- package/src/stdlib/item/node/triangle.ts +32 -9
- package/src/stdlib/plugin/edgeBundling/index.ts +529 -0
- package/src/stdlib/plugin/hull/bubbleset.ts +14 -14
- package/src/stdlib/plugin/hull/index.ts +4 -4
- package/src/stdlib/plugin/hull/util.ts +1 -1
- package/src/stdlib/plugin/index.ts +1 -0
- package/src/stdlib/plugin/legend/index.ts +11 -12
- package/src/stdlib/plugin/lodController/index.ts +9 -8
- package/src/stdlib/plugin/menu/index.ts +1 -1
- package/src/stdlib/plugin/snapline/index.ts +3 -3
- package/src/stdlib/plugin/tooltip/index.ts +4 -4
- package/src/stdlib/plugin/{watermaker → watermarker}/index.ts +8 -8
- package/src/stdlib/selector/lasso.ts +3 -3
- package/src/stdlib/theme/dark.ts +0 -1
- package/src/stdlib/theme/light.ts +3 -1
- package/src/stdlib/themeSolver/spec.ts +3 -3
- package/src/stdlib/themeSolver/subject.ts +1 -1
- package/src/types/animate.ts +2 -2
- package/src/types/data.ts +5 -1
- package/src/types/graph.ts +82 -11
- package/src/types/hook.ts +32 -3
- package/src/types/index.ts +2 -1
- package/src/types/item.ts +15 -16
- package/src/types/layout.ts +1 -1
- package/src/types/node.ts +1 -31
- package/src/types/plugin.ts +1 -1
- package/src/types/spec.ts +5 -5
- package/src/types/theme.ts +1 -1
- package/src/types/view.ts +1 -1
- package/src/util/animate.ts +1 -1
- package/src/util/canvas.ts +8 -0
- package/src/util/data.ts +12 -10
- package/src/util/extend.ts +1 -1
- package/src/util/item.ts +1 -1
- package/src/util/math.ts +1 -1
- package/src/util/path.ts +1 -1
- package/src/util/polyline.ts +3 -3
- package/src/util/router.ts +7 -7
- package/src/util/shape.ts +70 -33
- package/src/util/shape3d.ts +16 -10
- package/esm/stdlib/plugin/watermaker/index.js.map +0 -1
- package/lib/stdlib/plugin/watermaker/index.js.map +0 -1
|
@@ -18,7 +18,7 @@ exports.default = (graph, points, itemTypes) => {
|
|
|
18
18
|
const { id } = node;
|
|
19
19
|
if (!graph.getItemVisible(id))
|
|
20
20
|
return; // hidden node is not selectable
|
|
21
|
-
if (
|
|
21
|
+
if (isItemIntersectPolygon(graph, id, lassoContour)) {
|
|
22
22
|
selectedNodeIds.push(id);
|
|
23
23
|
}
|
|
24
24
|
});
|
|
@@ -27,7 +27,7 @@ exports.default = (graph, points, itemTypes) => {
|
|
|
27
27
|
graph.getAllCombosData().forEach((combo) => {
|
|
28
28
|
const { id } = combo;
|
|
29
29
|
if (graph.getItemVisible(id) && // hidden combo is not selectable
|
|
30
|
-
|
|
30
|
+
isItemIntersectPolygon(graph, id, lassoContour)) {
|
|
31
31
|
selectedComboIds.push(id);
|
|
32
32
|
}
|
|
33
33
|
});
|
|
@@ -42,7 +42,7 @@ exports.default = (graph, points, itemTypes) => {
|
|
|
42
42
|
combos: selectedComboIds,
|
|
43
43
|
};
|
|
44
44
|
};
|
|
45
|
-
const
|
|
45
|
+
const isItemIntersectPolygon = (graph, id, polyPoints) => {
|
|
46
46
|
// TODO
|
|
47
47
|
// const shape = item.getKeyShape();
|
|
48
48
|
// if (item.get('type') === 'path') {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lasso.js","sourceRoot":"src/","sources":["stdlib/selector/las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,MAAM,WAAW,GAAG;QAClB,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACpC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACpC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;QACpC,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,SAAS,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KACrC,CAAC;IACF,IAAI;IACJ,OAAO,IAAA,2BAAmB,EAAC,UAAU,EAAE,WAAW,CAAC,CAAC;AACtD,CAAC,CAAC"}
|
package/lib/stdlib/theme/dark.js
CHANGED
|
@@ -45,7 +45,7 @@ exports.DarkTheme = {
|
|
|
45
45
|
zIndex: 1,
|
|
46
46
|
lod: 0,
|
|
47
47
|
},
|
|
48
|
-
iconShape: Object.assign(Object.assign({}, constant_1.DEFAULT_TEXT_STYLE), { fill: '#fff', fontSize: 16, zIndex: 1, lod: -1
|
|
48
|
+
iconShape: Object.assign(Object.assign({}, constant_1.DEFAULT_TEXT_STYLE), { fill: '#fff', fontSize: 16, zIndex: 1, lod: -1 }),
|
|
49
49
|
anchorShapes: {
|
|
50
50
|
lineWidth: 1,
|
|
51
51
|
stroke: nodeStroke,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dark.js","sourceRoot":"src/","sources":["stdlib/theme/dark.ts"],"names":[],"mappings":";;;AAAA,6CAAyE;AAGzE,MAAM,YAAY,GAAG,iBAAiB,CAAC;AACvC,MAAM,SAAS,GAAG,wBAAwB,CAAC;AAE3C,MAAM,SAAS,GAAG,iBAAiB,CAAC;AACpC,MAAM,SAAS,GAAG,oBAAoB,CAAC;AACvC,MAAM,SAAS,GAAG,oBAAoB,CAAC;AACvC,M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,EACzB,OAAO,EAAE,IAAI,GACd;iBACF;aACF;SACF;KACF;IACD,MAAM,EAAE;QACN,eAAe,EAAE,MAAM;KACxB;CACoB,CAAC"}
|
|
@@ -49,7 +49,7 @@ exports.LightTheme = {
|
|
|
49
49
|
zIndex: 1,
|
|
50
50
|
lod: 'auto',
|
|
51
51
|
},
|
|
52
|
-
iconShape: Object.assign(Object.assign({}, constant_1.DEFAULT_TEXT_STYLE), { fill: '#fff', fontSize: 16, zIndex: 1, lod: -1
|
|
52
|
+
iconShape: Object.assign(Object.assign({}, constant_1.DEFAULT_TEXT_STYLE), { fill: '#fff', fontSize: 16, zIndex: 1, lod: -1 }),
|
|
53
53
|
anchorShapes: {
|
|
54
54
|
lineWidth: 1,
|
|
55
55
|
stroke: 'rgba(0, 0, 0, 0.65)',
|
|
@@ -75,6 +75,7 @@ exports.LightTheme = {
|
|
|
75
75
|
},
|
|
76
76
|
labelShape: {
|
|
77
77
|
fontWeight: 700,
|
|
78
|
+
fontSize: 14,
|
|
78
79
|
},
|
|
79
80
|
haloShape: {
|
|
80
81
|
opacity: 0.25,
|
|
@@ -181,6 +182,7 @@ exports.LightTheme = {
|
|
|
181
182
|
},
|
|
182
183
|
labelShape: {
|
|
183
184
|
fontWeight: 700,
|
|
185
|
+
fontSize: 14,
|
|
184
186
|
},
|
|
185
187
|
haloShape: {
|
|
186
188
|
opacity: 0.25,
|
|
@@ -257,6 +259,7 @@ exports.LightTheme = {
|
|
|
257
259
|
},
|
|
258
260
|
labelShape: {
|
|
259
261
|
fontWeight: 700,
|
|
262
|
+
fontSize: 14,
|
|
260
263
|
},
|
|
261
264
|
haloShape: {
|
|
262
265
|
opacity: 0.25,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"light.js","sourceRoot":"src/","sources":["stdlib/theme/light.ts"],"names":[],"mappings":";;;AAAA,6CAAyE;AAGzE,MAAM,YAAY,GAAG,iBAAiB,CAAC;AACvC,MAAM,SAAS,GAAG,kBAAkB,CA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AS,EACf,SAAS,EAAE,CAAC,EACZ,MAAM,EAAE,WAAW;wBACnB,qBAAqB;wBACrB,CAAC,EAAE,EAAE,EACL,KAAK,EAAE,EAAE,EACT,MAAM,EAAE,EAAE,EACV,OAAO,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,GAC1B;oBACD,SAAS,kCACJ,6BAAkB,KACrB,IAAI,EAAE,WAAW,EACjB,QAAQ,EAAE,EAAE,EACZ,MAAM,EAAE,CAAC,EACT,GAAG,EAAE,CAAC,CAAC,EACP,WAAW,EAAE,YAAY,EACzB,OAAO,EAAE,IAAI,GACd;iBACF;aACF;SACF;KACF;IACD,MAAM,EAAE;QACN,eAAe,EAAE,wBAAwB;KAC1C;CACoB,CAAC"}
|
|
@@ -59,11 +59,11 @@ class SpecThemeSolver extends base_1.BaseThemeSolver {
|
|
|
59
59
|
mergedStyles = { others: baseStyles };
|
|
60
60
|
Object.keys(incomingStyles).forEach((dataType) => {
|
|
61
61
|
const mergedStatesStyles = Object.assign({}, baseStyles);
|
|
62
|
-
const
|
|
63
|
-
Object.keys(
|
|
62
|
+
const incomingStyle = incomingStyles[dataType];
|
|
63
|
+
Object.keys(incomingStyle).forEach((stateName) => {
|
|
64
64
|
mergedStatesStyles[stateName] = (0, shape_1.mergeStyles)([
|
|
65
65
|
baseStyles[stateName],
|
|
66
|
-
|
|
66
|
+
incomingStyle[stateName],
|
|
67
67
|
]);
|
|
68
68
|
});
|
|
69
69
|
mergedStyles[dataType] = mergedStatesStyles;
|
|
@@ -32,7 +32,7 @@ export declare class SubjectThemeSolver extends BaseThemeSolver {
|
|
|
32
32
|
private getMergeStylesFromColorSet;
|
|
33
33
|
}
|
|
34
34
|
/**
|
|
35
|
-
* get the mix color of backColor and frontColor with
|
|
35
|
+
* get the mix color of backColor and frontColor with alpha
|
|
36
36
|
* @param backColor background color
|
|
37
37
|
* @param frontColor foreground color
|
|
38
38
|
* @param frontAlpha the opacity of foreground color
|
|
@@ -220,7 +220,7 @@ class SubjectThemeSolver extends base_1.BaseThemeSolver {
|
|
|
220
220
|
}
|
|
221
221
|
exports.SubjectThemeSolver = SubjectThemeSolver;
|
|
222
222
|
/**
|
|
223
|
-
* get the mix color of backColor and frontColor with
|
|
223
|
+
* get the mix color of backColor and frontColor with alpha
|
|
224
224
|
* @param backColor background color
|
|
225
225
|
* @param frontColor foreground color
|
|
226
226
|
* @param frontAlpha the opacity of foreground color
|
package/lib/types/animate.d.ts
CHANGED
|
@@ -16,7 +16,7 @@ export interface AnimateCfg {
|
|
|
16
16
|
*/
|
|
17
17
|
delay?: number;
|
|
18
18
|
/**
|
|
19
|
-
* Iteration number for the animation,
|
|
19
|
+
* Iteration number for the animation, Infinity means repeat.
|
|
20
20
|
* @type {number | typeof Infinity}
|
|
21
21
|
*/
|
|
22
22
|
iterations?: number | typeof Infinity;
|
package/lib/types/data.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { Graph as GraphLib, TreeData as ITreeData } from '@antv/graphlib';
|
|
2
|
+
import { AVAILABLE_DATA_LIFECYCLE } from '../util/data';
|
|
2
3
|
import { ComboUserModel } from './combo';
|
|
3
4
|
import { NodeDisplayModelData, NodeModelData, NodeUserModel, NodeUserModelData } from './node';
|
|
4
5
|
import { EdgeDisplayModelData, EdgeModelData, EdgeUserModel } from './edge';
|
|
@@ -29,4 +30,5 @@ export type DataConfig = GraphData | InlineGraphDataConfig | InlineTreeDataConfi
|
|
|
29
30
|
export type GraphCore = GraphLib<NodeModelData, EdgeModelData>;
|
|
30
31
|
export type DisplayGraphCore = GraphLib<NodeDisplayModelData, EdgeDisplayModelData>;
|
|
31
32
|
export type TransformerFn = (data: GraphData) => GraphData;
|
|
32
|
-
export type DataChangeType = 'replace' | 'mergeReplace' | 'union' | 'remove' | 'update' | 'moveCombo' | 'addCombo';
|
|
33
|
+
export type DataChangeType = 'replace' | 'mergeReplace' | 'union' | 'remove' | 'update' | 'moveCombo' | 'addCombo' | 'updatePosition';
|
|
34
|
+
export type DataLifecycleType = (typeof AVAILABLE_DATA_LIFECYCLE)[number];
|
package/lib/types/graph.d.ts
CHANGED
|
@@ -5,14 +5,14 @@ import { Command } from '../stdlib/plugin/history/command';
|
|
|
5
5
|
import { Hooks } from '../types/hook';
|
|
6
6
|
import { CameraAnimationOptions } from './animate';
|
|
7
7
|
import { BehaviorOptionsOf, BehaviorRegistry } from './behavior';
|
|
8
|
-
import { ComboModel, ComboUserModel } from './combo';
|
|
8
|
+
import { ComboDisplayModel, ComboModel, ComboShapesEncode, ComboUserModel } from './combo';
|
|
9
9
|
import { Padding, Point } from './common';
|
|
10
10
|
import { GraphData } from './data';
|
|
11
|
-
import { EdgeDisplayModel, EdgeModel, EdgeUserModel } from './edge';
|
|
11
|
+
import { EdgeDisplayModel, EdgeModel, EdgeShapesEncode, EdgeUserModel } from './edge';
|
|
12
12
|
import type { StackType } from './history';
|
|
13
13
|
import { ITEM_TYPE, SHAPE_TYPE, ShapeStyle } from './item';
|
|
14
14
|
import { LayoutOptions } from './layout';
|
|
15
|
-
import { NodeModel, NodeUserModel } from './node';
|
|
15
|
+
import { NodeDisplayModel, NodeModel, NodeShapesEncode, NodeUserModel } from './node';
|
|
16
16
|
import { RendererName } from './render';
|
|
17
17
|
import { ComboMapper, EdgeMapper, NodeMapper, Specification } from './spec';
|
|
18
18
|
import { ThemeOptionsOf, ThemeRegistry } from './theme';
|
|
@@ -46,6 +46,19 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
46
46
|
* @param {NodeMapper | EdgeMapper | ComboMapper} mapper - The mapper to be updated.
|
|
47
47
|
* */
|
|
48
48
|
updateMapper: (type: ITEM_TYPE, mapper: NodeMapper | EdgeMapper | ComboMapper) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Updates the state configuration for the specified item type, corresponds to the nodeState, edgeState, or comboState on the graph spec.
|
|
51
|
+
* @param {string} itemType - The type of item (node, edge, or combo).
|
|
52
|
+
* @param {object} stateConfig - The state configuration to update.
|
|
53
|
+
* @param {string} updateType - The type of update ('mergeReplace' or 'replace'). Default is 'mergeReplace'.
|
|
54
|
+
**/
|
|
55
|
+
updateStateConfig: (itemType: ITEM_TYPE, stateConfig: {
|
|
56
|
+
[stateName: string]: ((data: NodeModel) => NodeDisplayModel) | NodeShapesEncode;
|
|
57
|
+
} | {
|
|
58
|
+
[stateName: string]: ((data: EdgeModel) => EdgeDisplayModel) | EdgeShapesEncode;
|
|
59
|
+
} | {
|
|
60
|
+
[stateName: string]: ((data: ComboModel) => ComboDisplayModel) | ComboShapesEncode;
|
|
61
|
+
}, updateType?: 'mergeReplace' | 'replace') => void;
|
|
49
62
|
/**
|
|
50
63
|
* Get the copy of specs(configurations).
|
|
51
64
|
* @returns graph specs
|
|
@@ -104,9 +117,10 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
104
117
|
*/
|
|
105
118
|
getRelatedEdgesData: (nodeId: ID, direction?: 'in' | 'out' | 'both') => EdgeModel[];
|
|
106
119
|
/**
|
|
107
|
-
* Get nearby edges from a start node using
|
|
120
|
+
* Get nearby edges from a start node using quad-tree collision detection.
|
|
108
121
|
* @param nodeId id of the start node
|
|
109
122
|
* @returns nearby edges' data array
|
|
123
|
+
* @group Data
|
|
110
124
|
*/
|
|
111
125
|
getNearEdgesData: (nodeId: ID, shouldBegin?: (edge: EdgeDisplayModel) => boolean) => EdgeModel[];
|
|
112
126
|
/**
|
|
@@ -135,7 +149,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
135
149
|
* Change graph data.
|
|
136
150
|
* @param data new data
|
|
137
151
|
* @param type the way to change data, 'replace' means discard the old data and use the new one; 'mergeReplace' means merge the common part, remove (old - new), add (new - old)
|
|
138
|
-
* @param
|
|
152
|
+
* @param re-layout whether re-layout the nodes after data changing
|
|
139
153
|
* @returns
|
|
140
154
|
* @group Data
|
|
141
155
|
*/
|
|
@@ -143,6 +157,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
143
157
|
/**
|
|
144
158
|
* Clear the graph, means remove all the items on the graph.
|
|
145
159
|
* @returns
|
|
160
|
+
* @group Data
|
|
146
161
|
*/
|
|
147
162
|
clear: () => void;
|
|
148
163
|
/**
|
|
@@ -159,7 +174,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
159
174
|
* Add one or more node/edge/combo data to the graph.
|
|
160
175
|
* @param itemType item type
|
|
161
176
|
* @param model user data
|
|
162
|
-
* @returns
|
|
177
|
+
* @returns whether success
|
|
163
178
|
* @group Data
|
|
164
179
|
*/
|
|
165
180
|
addData: (itemType: ITEM_TYPE, model: NodeUserModel | EdgeUserModel | ComboUserModel | NodeUserModel[] | EdgeUserModel[] | ComboUserModel[]) => NodeModel | EdgeModel | ComboModel | NodeModel[] | EdgeModel[] | ComboModel[];
|
|
@@ -167,7 +182,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
167
182
|
* Remove one or more node/edge/combo data from the graph.
|
|
168
183
|
* @param itemType the type the item(s) to be removed.
|
|
169
184
|
* @param id the id or the ids' array of the items to be removed.
|
|
170
|
-
* @returns
|
|
185
|
+
* @returns whether success
|
|
171
186
|
* @group Data
|
|
172
187
|
*/
|
|
173
188
|
removeData: (itemType: ITEM_TYPE, id: ID | ID[]) => void;
|
|
@@ -207,7 +222,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
207
222
|
* @param dy the distance alone y-axis to move the combo.
|
|
208
223
|
* @param upsertAncestors whether update the ancestors in the combo tree.
|
|
209
224
|
* @param callback callback function after move combo done.
|
|
210
|
-
* @group
|
|
225
|
+
* @group Combo
|
|
211
226
|
*/
|
|
212
227
|
moveCombo: (ids: ID[], dx: number, dy: number, upsertAncestors?: boolean, callback?: (model: NodeModel | EdgeModel | ComboModel, canceled?: boolean) => void) => ComboModel[];
|
|
213
228
|
/**
|
|
@@ -215,6 +230,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
215
230
|
* @param dx x of the relative vector
|
|
216
231
|
* @param dy y of the relative vector
|
|
217
232
|
* @param effectTiming animation configurations
|
|
233
|
+
* @group View
|
|
218
234
|
*/
|
|
219
235
|
translate: (distance: Partial<{
|
|
220
236
|
dx: number;
|
|
@@ -225,11 +241,13 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
225
241
|
* Move the graph and align to a point.
|
|
226
242
|
* @param point position on the canvas to align
|
|
227
243
|
* @param effectTiming animation configurations
|
|
244
|
+
* @group View
|
|
228
245
|
*/
|
|
229
246
|
translateTo: (point: PointLike, effectTiming?: CameraAnimationOptions) => Promise<void>;
|
|
230
247
|
/**
|
|
231
248
|
* Return the current zoom level of camera.
|
|
232
249
|
* @returns current zoom
|
|
250
|
+
* @group View
|
|
233
251
|
*/
|
|
234
252
|
getZoom: () => number;
|
|
235
253
|
/**
|
|
@@ -237,6 +255,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
237
255
|
* @param ratio relative ratio to zoom
|
|
238
256
|
* @param center zoom center
|
|
239
257
|
* @param effectTiming animation configurations
|
|
258
|
+
* @group View
|
|
240
259
|
*/
|
|
241
260
|
zoom: (ratio: number, center?: Point, effectTiming?: CameraAnimationOptions) => Promise<void>;
|
|
242
261
|
/**
|
|
@@ -244,6 +263,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
244
263
|
* @param toRatio specified ratio
|
|
245
264
|
* @param center zoom center
|
|
246
265
|
* @param effectTiming animation configurations
|
|
266
|
+
* @group View
|
|
247
267
|
*/
|
|
248
268
|
zoomTo: (toRatio: number, center?: Point, effectTiming?: CameraAnimationOptions) => Promise<void>;
|
|
249
269
|
/**
|
|
@@ -251,6 +271,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
251
271
|
* @param angle
|
|
252
272
|
* @param center
|
|
253
273
|
* @param effectTiming
|
|
274
|
+
* @group View
|
|
254
275
|
*/
|
|
255
276
|
rotate: (angle: number, center?: Point, effectTiming?: CameraAnimationOptions) => Promise<void>;
|
|
256
277
|
/**
|
|
@@ -258,20 +279,24 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
258
279
|
* @param toAngle
|
|
259
280
|
* @param center
|
|
260
281
|
* @param effectTiming
|
|
282
|
+
* @group View
|
|
261
283
|
*/
|
|
262
284
|
rotateTo: (toAngle: number, center?: Point, effectTiming?: CameraAnimationOptions) => Promise<void>;
|
|
263
285
|
/**
|
|
264
286
|
* Transform the graph with a CSS-Transform-like syntax.
|
|
265
287
|
* @param options
|
|
266
288
|
* @param effectTiming
|
|
289
|
+
* @group View
|
|
267
290
|
*/
|
|
268
291
|
transform: (options: GraphTransformOptions, effectTiming?: CameraAnimationOptions) => Promise<void>;
|
|
269
292
|
/**
|
|
270
293
|
* Stop the current transition of transform immediately.
|
|
294
|
+
* @group View
|
|
271
295
|
*/
|
|
272
296
|
stopTransformTransition: () => void;
|
|
273
297
|
/**
|
|
274
298
|
* Return the center of viewport, e.g. for a 500 * 500 canvas, its center is [250, 250].
|
|
299
|
+
* @group View
|
|
275
300
|
*/
|
|
276
301
|
getViewportCenter: () => PointLike;
|
|
277
302
|
/**
|
|
@@ -417,7 +442,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
417
442
|
/**
|
|
418
443
|
* Get the visibility for a node / edge / combo.
|
|
419
444
|
* @param id the id for the node / edge / combo
|
|
420
|
-
* @returns visibility for the item, false for invisible or
|
|
445
|
+
* @returns visibility for the item, false for invisible or un-existence for the item
|
|
421
446
|
*/
|
|
422
447
|
getItemVisible: (id: ID) => boolean;
|
|
423
448
|
/**
|
|
@@ -428,7 +453,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
428
453
|
getItemVisibleShapeIds: (id: ID) => string[];
|
|
429
454
|
/**
|
|
430
455
|
* Add a new combo to the graph, and update the structure of the existed child in childrenIds to be the children of the new combo.
|
|
431
|
-
* Different from addData with combo type, this API update the succeeds' combo tree
|
|
456
|
+
* Different from addData with combo type, this API update the succeeds' combo tree structures in the same time.
|
|
432
457
|
* @param model combo user data.
|
|
433
458
|
* @param childrenIds the ids of the children nodes / combos to move into the new combo.
|
|
434
459
|
* @returns whether success
|
|
@@ -450,6 +475,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
450
475
|
expandCombo: (comboIds: ID | ID[]) => void;
|
|
451
476
|
/**
|
|
452
477
|
* Layout the graph (with current configurations if cfg is not assigned).
|
|
478
|
+
* @group Layout
|
|
453
479
|
*/
|
|
454
480
|
layout: (options?: LayoutOptions, disableAnimate?: boolean) => Promise<void>;
|
|
455
481
|
stopLayout: () => void;
|
|
@@ -476,6 +502,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
476
502
|
* @param behaviors behavior names or configs
|
|
477
503
|
* @param modes mode names
|
|
478
504
|
* @returns
|
|
505
|
+
* @group Interaction
|
|
479
506
|
*/
|
|
480
507
|
addBehaviors: (behaviors: BehaviorOptionsOf<B> | BehaviorOptionsOf<B>[], modes: string | string[]) => void;
|
|
481
508
|
/**
|
|
@@ -497,7 +524,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
497
524
|
/**
|
|
498
525
|
* Draw or update a G shape or group to the transient canvas.
|
|
499
526
|
* @param type shape type or item type
|
|
500
|
-
* @param id new shape id or updated shape id for a
|
|
527
|
+
* @param id new shape id or updated shape id for a interaction shape, node/edge/combo id for item interaction group drawing
|
|
501
528
|
* @returns upserted shape or group
|
|
502
529
|
* @group Interaction
|
|
503
530
|
*/
|
|
@@ -548,68 +575,82 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
548
575
|
}) => void;
|
|
549
576
|
/**
|
|
550
577
|
* Determine if history (redo/undo) is enabled.
|
|
578
|
+
* @group History
|
|
551
579
|
*/
|
|
552
580
|
isHistoryEnabled: () => void;
|
|
553
581
|
/**
|
|
554
582
|
* Push the operation(s) onto the specified stack
|
|
555
583
|
* @param cmd commands to be pushed
|
|
556
584
|
* @param stackType undo/redo stack
|
|
585
|
+
* @group History
|
|
557
586
|
*/
|
|
558
587
|
pushStack: (cmd: Command[], stackType: StackType) => void;
|
|
559
588
|
/**
|
|
560
589
|
* Pause stacking operation.
|
|
590
|
+
* @group History
|
|
561
591
|
*/
|
|
562
592
|
pauseStack: () => void;
|
|
563
593
|
/**
|
|
564
594
|
* Resume stacking operation.
|
|
595
|
+
* @group History
|
|
565
596
|
*/
|
|
566
597
|
resumeStack: () => void;
|
|
567
598
|
/**
|
|
568
599
|
* Execute a callback without allowing any stacking operations.
|
|
569
600
|
* @param callback
|
|
601
|
+
* @group History
|
|
570
602
|
*/
|
|
571
603
|
executeWithNoStack: (callback: () => void) => void;
|
|
572
604
|
/**
|
|
573
605
|
* Retrieve the current redo stack which consists of operations that could be undone
|
|
606
|
+
* @group History
|
|
574
607
|
*/
|
|
575
608
|
getUndoStack: () => void;
|
|
576
609
|
/**
|
|
577
610
|
* Retrieve the current undo stack which consists of operations that were undone
|
|
611
|
+
* @group History
|
|
578
612
|
*/
|
|
579
613
|
getRedoStack: () => void;
|
|
580
614
|
/**
|
|
581
615
|
* Retrieve the complete history stack
|
|
582
616
|
* @returns
|
|
617
|
+
* @group History
|
|
583
618
|
*/
|
|
584
619
|
getStack: () => void;
|
|
585
620
|
/**
|
|
586
621
|
* Revert the last n operation(s) on the graph.
|
|
587
622
|
* @returns
|
|
623
|
+
* @group History
|
|
588
624
|
*/
|
|
589
625
|
undo: () => void;
|
|
590
626
|
/**
|
|
591
627
|
* Restore the operation that was last n reverted on the graph.
|
|
592
628
|
* @returns
|
|
629
|
+
* @group History
|
|
593
630
|
*/
|
|
594
631
|
redo: () => void;
|
|
595
632
|
/**
|
|
596
633
|
* Indicate whether there are any actions available in the undo stack.
|
|
634
|
+
* @group History
|
|
597
635
|
*/
|
|
598
636
|
canUndo: () => void;
|
|
599
637
|
/**
|
|
600
638
|
* Indicate whether there are any actions available in the redo stack.
|
|
639
|
+
* @group History
|
|
601
640
|
*/
|
|
602
641
|
canRedo: () => void;
|
|
603
642
|
/**
|
|
604
643
|
* Begin a historyBatch operation.
|
|
605
644
|
* Any operations performed between `startHistoryBatch` and `stopHistoryBatch` are grouped together.
|
|
606
645
|
* treated as a single operation when undoing or redoing.
|
|
646
|
+
* @group History
|
|
607
647
|
*/
|
|
608
648
|
startHistoryBatch: () => void;
|
|
609
649
|
/**
|
|
610
650
|
* End a historyBatch operation.
|
|
611
651
|
* Any operations performed between `startHistoryBatch` and `stopHistoryBatch` are grouped together.
|
|
612
652
|
* treated as a single operation when undoing or redoing.
|
|
653
|
+
* @group History
|
|
613
654
|
*/
|
|
614
655
|
stopHistoryBatch: () => void;
|
|
615
656
|
/**
|
|
@@ -617,6 +658,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
617
658
|
* All operations performed inside callback will be treated as a composite operation
|
|
618
659
|
* more convenient way without manually invoking `startHistoryBatch` and `stopHistoryBatch`.
|
|
619
660
|
* @param callback The func containing operations to be batched together.
|
|
661
|
+
* @group History
|
|
620
662
|
*/
|
|
621
663
|
historyBatch: (callback: () => void) => void;
|
|
622
664
|
/**
|
|
@@ -624,6 +666,7 @@ export interface IGraph<B extends BehaviorRegistry = BehaviorRegistry, T extends
|
|
|
624
666
|
* All operations performed inside callback will be treated as a composite operation
|
|
625
667
|
* more convenient way without manually invoking `startHistoryBatch` and `stopHistoryBatch`.
|
|
626
668
|
* @param callback The func containing operations to be batched together.
|
|
669
|
+
* @group History
|
|
627
670
|
*/
|
|
628
671
|
cleanHistory: (stackType?: StackType) => void;
|
|
629
672
|
/**
|
package/lib/types/hook.d.ts
CHANGED
|
@@ -3,13 +3,13 @@ import { GraphChange, ID } from '@antv/graphlib';
|
|
|
3
3
|
import { CameraAnimationOptions } from './animate';
|
|
4
4
|
import { BehaviorOptionsOf } from './behavior';
|
|
5
5
|
import { DataChangeType, DataConfig, GraphCore } from './data';
|
|
6
|
-
import { EdgeModel, EdgeModelData } from './edge';
|
|
6
|
+
import { EdgeDisplayModel, EdgeModel, EdgeModelData, EdgeShapesEncode } from './edge';
|
|
7
7
|
import { ITEM_TYPE, ShapeStyle, SHAPE_TYPE } from './item';
|
|
8
8
|
import { LayoutOptions } from './layout';
|
|
9
|
-
import { NodeModel, NodeModelData } from './node';
|
|
9
|
+
import { NodeDisplayModel, NodeModel, NodeModelData, NodeShapesEncode } from './node';
|
|
10
10
|
import { ThemeSpecification } from './theme';
|
|
11
11
|
import { GraphTransformOptions } from './view';
|
|
12
|
-
import { ComboModel } from './combo';
|
|
12
|
+
import { ComboDisplayModel, ComboModel, ComboShapesEncode } from './combo';
|
|
13
13
|
import { Plugin as PluginBase } from './plugin';
|
|
14
14
|
import { ComboMapper, EdgeMapper, NodeMapper } from './spec';
|
|
15
15
|
export interface IHook<T> {
|
|
@@ -80,6 +80,16 @@ export interface Hooks {
|
|
|
80
80
|
enableStack?: boolean;
|
|
81
81
|
changes?: any;
|
|
82
82
|
}>;
|
|
83
|
+
itemstateconfigchange: IHook<{
|
|
84
|
+
itemType: ITEM_TYPE;
|
|
85
|
+
stateConfig: {
|
|
86
|
+
[stateName: string]: ((data: NodeModel) => NodeDisplayModel) | NodeShapesEncode;
|
|
87
|
+
} | {
|
|
88
|
+
[stateName: string]: ((data: EdgeModel) => EdgeDisplayModel) | EdgeShapesEncode;
|
|
89
|
+
} | {
|
|
90
|
+
[stateName: string]: ((data: ComboModel) => ComboDisplayModel) | ComboShapesEncode;
|
|
91
|
+
};
|
|
92
|
+
}>;
|
|
83
93
|
itemvisibilitychange: IHook<{
|
|
84
94
|
ids: ID[];
|
|
85
95
|
graphCore?: GraphCore;
|
package/lib/types/index.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export type { ID } from '@antv/graphlib';
|
|
2
2
|
export type { IAnimate, IAnimates, AnimateTiming, AnimateCfg } from './animate';
|
|
3
|
-
export
|
|
3
|
+
export { Behavior } from './behavior';
|
|
4
|
+
export type { BehaviorOptionsOf, BehaviorRegistry } from './behavior';
|
|
4
5
|
export type { NodeDisplayModel, NodeModel, NodeUserModel, NodeEncode, NodeShapeStyles, NodeLabelPosition, NodeShapesEncode, NodeModelData, } from './node';
|
|
5
6
|
export type { ComboDisplayModel, ComboLabelPosition, ComboModel, ComboModelData, ComboShapeStyles, ComboShapesEncode, ComboUserModel, } from './combo';
|
|
6
7
|
export type { Point } from './common';
|
package/lib/types/index.js
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.PluginBase = exports.isLayoutWorkerized = exports.isImmediatelyInvokedLayoutOptions = void 0;
|
|
3
|
+
exports.PluginBase = exports.isLayoutWorkerized = exports.isImmediatelyInvokedLayoutOptions = exports.Behavior = void 0;
|
|
4
|
+
var behavior_1 = require("./behavior");
|
|
5
|
+
Object.defineProperty(exports, "Behavior", { enumerable: true, get: function () { return behavior_1.Behavior; } });
|
|
4
6
|
var layout_1 = require("./layout"); // function 不应该放在 types 文件下面
|
|
5
7
|
Object.defineProperty(exports, "isImmediatelyInvokedLayoutOptions", { enumerable: true, get: function () { return layout_1.isImmediatelyInvokedLayoutOptions; } });
|
|
6
8
|
Object.defineProperty(exports, "isLayoutWorkerized", { enumerable: true, get: function () { return layout_1.isLayoutWorkerized; } });
|
package/lib/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["types/index.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"src/","sources":["types/index.ts"],"names":[],"mappings":";;;AAEA,uCAAsC;AAA7B,oGAAA,QAAQ,OAAA;AAyCjB,mCAGkB,CAAC,4BAA4B;AAF7C,2HAAA,iCAAiC,OAAA;AACjC,4GAAA,kBAAkB,OAAA;AAQpB,mCAAgD;AAAvC,oGAAA,MAAM,OAAc"}
|