@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
|
@@ -44,8 +44,12 @@ export class RectNode extends BaseNode {
|
|
|
44
44
|
(this.mergedStyles.keyShape.y as number) -
|
|
45
45
|
this.mergedStyles.keyShape.height / 2,
|
|
46
46
|
},
|
|
47
|
-
|
|
48
|
-
|
|
47
|
+
{
|
|
48
|
+
model,
|
|
49
|
+
shapeMap,
|
|
50
|
+
diffData,
|
|
51
|
+
diffState,
|
|
52
|
+
},
|
|
49
53
|
);
|
|
50
54
|
}
|
|
51
55
|
|
|
@@ -75,16 +79,26 @@ export class RectNode extends BaseNode {
|
|
|
75
79
|
let shapes: NodeShapeMap = { keyShape: undefined };
|
|
76
80
|
|
|
77
81
|
// keyShape
|
|
78
|
-
shapes.keyShape = this.drawKeyShape(model, shapeMap, diffData);
|
|
82
|
+
shapes.keyShape = this.drawKeyShape(model, shapeMap, diffData, diffState);
|
|
79
83
|
|
|
80
84
|
// labelShape
|
|
81
85
|
if (data.labelShape) {
|
|
82
|
-
shapes.labelShape = this.drawLabelShape(
|
|
86
|
+
shapes.labelShape = this.drawLabelShape(
|
|
87
|
+
model,
|
|
88
|
+
shapeMap,
|
|
89
|
+
diffData,
|
|
90
|
+
diffState,
|
|
91
|
+
);
|
|
83
92
|
}
|
|
84
93
|
|
|
85
94
|
// haloShape
|
|
86
95
|
if (data.haloShape && this.drawHaloShape) {
|
|
87
|
-
shapes.haloShape = this.drawHaloShape(
|
|
96
|
+
shapes.haloShape = this.drawHaloShape(
|
|
97
|
+
model,
|
|
98
|
+
shapeMap,
|
|
99
|
+
diffData,
|
|
100
|
+
diffState,
|
|
101
|
+
);
|
|
88
102
|
}
|
|
89
103
|
|
|
90
104
|
// labelBackgroundShape
|
|
@@ -93,6 +107,7 @@ export class RectNode extends BaseNode {
|
|
|
93
107
|
model,
|
|
94
108
|
shapeMap,
|
|
95
109
|
diffData,
|
|
110
|
+
diffState,
|
|
96
111
|
);
|
|
97
112
|
}
|
|
98
113
|
|
|
@@ -112,7 +127,12 @@ export class RectNode extends BaseNode {
|
|
|
112
127
|
|
|
113
128
|
// iconShape
|
|
114
129
|
if (data.iconShape) {
|
|
115
|
-
shapes.iconShape = this.drawIconShape(
|
|
130
|
+
shapes.iconShape = this.drawIconShape(
|
|
131
|
+
model,
|
|
132
|
+
shapeMap,
|
|
133
|
+
diffData,
|
|
134
|
+
diffState,
|
|
135
|
+
);
|
|
116
136
|
}
|
|
117
137
|
|
|
118
138
|
// badgeShape
|
|
@@ -133,7 +153,7 @@ export class RectNode extends BaseNode {
|
|
|
133
153
|
if (data.otherShapes && this.drawOtherShapes) {
|
|
134
154
|
shapes = {
|
|
135
155
|
...shapes,
|
|
136
|
-
...this.drawOtherShapes(model, shapeMap, diffData),
|
|
156
|
+
...this.drawOtherShapes(model, shapeMap, diffData, diffState),
|
|
137
157
|
};
|
|
138
158
|
}
|
|
139
159
|
return shapes;
|
|
@@ -33,16 +33,26 @@ export class SphereNode extends BaseNode3D {
|
|
|
33
33
|
let shapes: NodeShapeMap = { keyShape: undefined };
|
|
34
34
|
|
|
35
35
|
// keyShape
|
|
36
|
-
shapes.keyShape = this.drawKeyShape(model, shapeMap, diffData);
|
|
36
|
+
shapes.keyShape = this.drawKeyShape(model, shapeMap, diffData, diffState);
|
|
37
37
|
|
|
38
38
|
// haloShape
|
|
39
39
|
if (data.haloShape && this.drawHaloShape) {
|
|
40
|
-
shapes.haloShape = this.drawHaloShape(
|
|
40
|
+
shapes.haloShape = this.drawHaloShape(
|
|
41
|
+
model,
|
|
42
|
+
shapeMap,
|
|
43
|
+
diffData,
|
|
44
|
+
diffState,
|
|
45
|
+
);
|
|
41
46
|
}
|
|
42
47
|
|
|
43
48
|
// labelShape
|
|
44
49
|
if (data.labelShape) {
|
|
45
|
-
shapes.labelShape = this.drawLabelShape(
|
|
50
|
+
shapes.labelShape = this.drawLabelShape(
|
|
51
|
+
model,
|
|
52
|
+
shapeMap,
|
|
53
|
+
diffData,
|
|
54
|
+
diffState,
|
|
55
|
+
);
|
|
46
56
|
}
|
|
47
57
|
|
|
48
58
|
// labelBackgroundShape
|
|
@@ -51,12 +61,18 @@ export class SphereNode extends BaseNode3D {
|
|
|
51
61
|
model,
|
|
52
62
|
shapeMap,
|
|
53
63
|
diffData,
|
|
64
|
+
diffState,
|
|
54
65
|
);
|
|
55
66
|
}
|
|
56
67
|
|
|
57
68
|
// iconShape
|
|
58
69
|
if (data.iconShape) {
|
|
59
|
-
shapes.iconShape = this.drawIconShape(
|
|
70
|
+
shapes.iconShape = this.drawIconShape(
|
|
71
|
+
model,
|
|
72
|
+
shapeMap,
|
|
73
|
+
diffData,
|
|
74
|
+
diffState,
|
|
75
|
+
);
|
|
60
76
|
}
|
|
61
77
|
|
|
62
78
|
// badgeShape
|
|
@@ -77,7 +93,7 @@ export class SphereNode extends BaseNode3D {
|
|
|
77
93
|
if (data.otherShapes && this.drawOtherShapes) {
|
|
78
94
|
shapes = {
|
|
79
95
|
...shapes,
|
|
80
|
-
...this.drawOtherShapes(model, shapeMap, diffData),
|
|
96
|
+
...this.drawOtherShapes(model, shapeMap, diffData, diffState),
|
|
81
97
|
};
|
|
82
98
|
}
|
|
83
99
|
return shapes;
|
|
@@ -89,11 +105,11 @@ export class SphereNode extends BaseNode3D {
|
|
|
89
105
|
diffData?: { previous: NodeModelData; current: NodeModelData },
|
|
90
106
|
diffState?: { previous: State[]; current: State[] },
|
|
91
107
|
): DisplayObject {
|
|
92
|
-
return this.upsertShape(
|
|
93
|
-
|
|
94
|
-
'keyShape',
|
|
95
|
-
this.mergedStyles.keyShape,
|
|
108
|
+
return this.upsertShape('sphere', 'keyShape', this.mergedStyles.keyShape, {
|
|
109
|
+
model,
|
|
96
110
|
shapeMap,
|
|
97
|
-
|
|
111
|
+
diffData,
|
|
112
|
+
diffState,
|
|
113
|
+
});
|
|
98
114
|
}
|
|
99
115
|
}
|
|
@@ -10,11 +10,9 @@ import {
|
|
|
10
10
|
import { BaseNode } from './base';
|
|
11
11
|
|
|
12
12
|
export class StarNode extends BaseNode {
|
|
13
|
-
private defaultOuterR = 20;
|
|
14
13
|
override defaultStyles = {
|
|
15
14
|
keyShape: {
|
|
16
|
-
outerR:
|
|
17
|
-
innerR: (this.defaultOuterR * 3) / 8,
|
|
15
|
+
outerR: 20,
|
|
18
16
|
x: 0,
|
|
19
17
|
y: 0,
|
|
20
18
|
},
|
|
@@ -35,16 +33,26 @@ export class StarNode extends BaseNode {
|
|
|
35
33
|
let shapes: NodeShapeMap = { keyShape: undefined };
|
|
36
34
|
|
|
37
35
|
// keyShape
|
|
38
|
-
shapes.keyShape = this.drawKeyShape(model, shapeMap, diffData);
|
|
36
|
+
shapes.keyShape = this.drawKeyShape(model, shapeMap, diffData, diffState);
|
|
39
37
|
|
|
40
38
|
// haloShape
|
|
41
39
|
if (data.haloShape && this.drawHaloShape) {
|
|
42
|
-
shapes.haloShape = this.drawHaloShape(
|
|
40
|
+
shapes.haloShape = this.drawHaloShape(
|
|
41
|
+
model,
|
|
42
|
+
shapeMap,
|
|
43
|
+
diffData,
|
|
44
|
+
diffState,
|
|
45
|
+
);
|
|
43
46
|
}
|
|
44
47
|
|
|
45
48
|
// labelShape
|
|
46
49
|
if (data.labelShape) {
|
|
47
|
-
shapes.labelShape = this.drawLabelShape(
|
|
50
|
+
shapes.labelShape = this.drawLabelShape(
|
|
51
|
+
model,
|
|
52
|
+
shapeMap,
|
|
53
|
+
diffData,
|
|
54
|
+
diffState,
|
|
55
|
+
);
|
|
48
56
|
}
|
|
49
57
|
|
|
50
58
|
// labelBackgroundShape
|
|
@@ -53,6 +61,7 @@ export class StarNode extends BaseNode {
|
|
|
53
61
|
model,
|
|
54
62
|
shapeMap,
|
|
55
63
|
diffData,
|
|
64
|
+
diffState,
|
|
56
65
|
);
|
|
57
66
|
}
|
|
58
67
|
|
|
@@ -72,7 +81,12 @@ export class StarNode extends BaseNode {
|
|
|
72
81
|
|
|
73
82
|
// iconShape
|
|
74
83
|
if (data.iconShape) {
|
|
75
|
-
shapes.iconShape = this.drawIconShape(
|
|
84
|
+
shapes.iconShape = this.drawIconShape(
|
|
85
|
+
model,
|
|
86
|
+
shapeMap,
|
|
87
|
+
diffData,
|
|
88
|
+
diffState,
|
|
89
|
+
);
|
|
76
90
|
}
|
|
77
91
|
|
|
78
92
|
// badgeShape
|
|
@@ -93,7 +107,7 @@ export class StarNode extends BaseNode {
|
|
|
93
107
|
if (data.otherShapes && this.drawOtherShapes) {
|
|
94
108
|
shapes = {
|
|
95
109
|
...shapes,
|
|
96
|
-
...this.drawOtherShapes(model, shapeMap, diffData),
|
|
110
|
+
...this.drawOtherShapes(model, shapeMap, diffData, diffState),
|
|
97
111
|
};
|
|
98
112
|
}
|
|
99
113
|
return shapes;
|
|
@@ -115,12 +129,19 @@ export class StarNode extends BaseNode {
|
|
|
115
129
|
...keyShapeStyle,
|
|
116
130
|
path,
|
|
117
131
|
},
|
|
118
|
-
|
|
119
|
-
|
|
132
|
+
{
|
|
133
|
+
model,
|
|
134
|
+
shapeMap,
|
|
135
|
+
diffData,
|
|
136
|
+
diffState,
|
|
137
|
+
},
|
|
120
138
|
);
|
|
121
139
|
}
|
|
122
140
|
|
|
123
|
-
public getStarPath(outerR: number, innerR
|
|
141
|
+
public getStarPath(outerR: number, innerR?: number) {
|
|
142
|
+
if (!innerR) {
|
|
143
|
+
innerR = (outerR * 3) / 8;
|
|
144
|
+
}
|
|
124
145
|
return [
|
|
125
146
|
['M', 0, -outerR],
|
|
126
147
|
[
|
|
@@ -40,16 +40,26 @@ export class TriangleNode extends BaseNode {
|
|
|
40
40
|
let shapes: NodeShapeMap = { keyShape: undefined };
|
|
41
41
|
|
|
42
42
|
// keyShape
|
|
43
|
-
shapes.keyShape = this.drawKeyShape(model, shapeMap, diffData);
|
|
43
|
+
shapes.keyShape = this.drawKeyShape(model, shapeMap, diffData, diffState);
|
|
44
44
|
|
|
45
45
|
// haloShape
|
|
46
46
|
if (data.haloShape && this.drawHaloShape) {
|
|
47
|
-
shapes.haloShape = this.drawHaloShape(
|
|
47
|
+
shapes.haloShape = this.drawHaloShape(
|
|
48
|
+
model,
|
|
49
|
+
shapeMap,
|
|
50
|
+
diffData,
|
|
51
|
+
diffState,
|
|
52
|
+
);
|
|
48
53
|
}
|
|
49
54
|
|
|
50
55
|
// labelShape
|
|
51
56
|
if (data.labelShape) {
|
|
52
|
-
shapes.labelShape = this.drawLabelShape(
|
|
57
|
+
shapes.labelShape = this.drawLabelShape(
|
|
58
|
+
model,
|
|
59
|
+
shapeMap,
|
|
60
|
+
diffData,
|
|
61
|
+
diffState,
|
|
62
|
+
);
|
|
53
63
|
}
|
|
54
64
|
|
|
55
65
|
// labelBackgroundShape
|
|
@@ -77,7 +87,12 @@ export class TriangleNode extends BaseNode {
|
|
|
77
87
|
|
|
78
88
|
// iconShape
|
|
79
89
|
if (data.iconShape) {
|
|
80
|
-
shapes.iconShape = this.drawIconShape(
|
|
90
|
+
shapes.iconShape = this.drawIconShape(
|
|
91
|
+
model,
|
|
92
|
+
shapeMap,
|
|
93
|
+
diffData,
|
|
94
|
+
diffState,
|
|
95
|
+
);
|
|
81
96
|
}
|
|
82
97
|
|
|
83
98
|
// badgeShape
|
|
@@ -98,7 +113,7 @@ export class TriangleNode extends BaseNode {
|
|
|
98
113
|
if (data.otherShapes && this.drawOtherShapes) {
|
|
99
114
|
shapes = {
|
|
100
115
|
...shapes,
|
|
101
|
-
...this.drawOtherShapes(model, shapeMap, diffData),
|
|
116
|
+
...this.drawOtherShapes(model, shapeMap, diffData, diffState),
|
|
102
117
|
};
|
|
103
118
|
}
|
|
104
119
|
return shapes;
|
|
@@ -118,8 +133,12 @@ export class TriangleNode extends BaseNode {
|
|
|
118
133
|
...this.mergedStyles.keyShape,
|
|
119
134
|
path: this.getTrianglePath(keyShapeStyle.r, keyShapeStyle.direction),
|
|
120
135
|
},
|
|
121
|
-
|
|
122
|
-
|
|
136
|
+
{
|
|
137
|
+
model,
|
|
138
|
+
shapeMap,
|
|
139
|
+
diffData,
|
|
140
|
+
diffState,
|
|
141
|
+
},
|
|
123
142
|
);
|
|
124
143
|
}
|
|
125
144
|
private getTrianglePath(
|
|
@@ -218,8 +237,12 @@ export class TriangleNode extends BaseNode {
|
|
|
218
237
|
iconShapeType,
|
|
219
238
|
'iconShape',
|
|
220
239
|
shapeStyle as GShapeStyle,
|
|
221
|
-
|
|
222
|
-
|
|
240
|
+
{
|
|
241
|
+
model,
|
|
242
|
+
shapeMap,
|
|
243
|
+
diffData,
|
|
244
|
+
diffState,
|
|
245
|
+
},
|
|
223
246
|
);
|
|
224
247
|
}
|
|
225
248
|
|