@antv/g6 5.0.0-beta.28 → 5.0.0-beta.29
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/g6.min.js +3 -2
- package/dist/lib/__tests__/demo/animation/animation-breathe.d.ts +2 -0
- package/dist/lib/__tests__/demo/animation/animation-fade-in.d.ts +2 -0
- package/dist/lib/__tests__/demo/animation/animation-translate.d.ts +2 -0
- package/dist/lib/__tests__/demo/animation/animation-wave.d.ts +2 -0
- package/dist/lib/__tests__/demo/animation/animation-zoom-in.d.ts +2 -0
- package/dist/lib/__tests__/demo/animation/controller-element-position.d.ts +2 -0
- package/dist/lib/__tests__/demo/animation/controller-element-state.d.ts +2 -0
- package/dist/lib/__tests__/demo/animation/controller-element.d.ts +2 -0
- package/dist/lib/__tests__/demo/animation/edge-cubic.d.ts +2 -0
- package/dist/lib/__tests__/demo/animation/edge-line.d.ts +2 -0
- package/dist/lib/__tests__/demo/animation/edge-quadratic.d.ts +2 -0
- package/dist/lib/__tests__/demo/animation/index.d.ts +12 -0
- package/dist/lib/__tests__/demo/animation/shape-label.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/behavior-drag-canvas.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/behavior-drag-element.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/behavior-zoom-canvas.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/combo-expand-collapse.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/combo.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/common-graph.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/edge-polyline.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/element-change-type.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/element-port.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/element-position-combo.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/element-position.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/element-state.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/element-visibility.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/element-z-index.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/graph-event.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/index.d.ts +47 -0
- package/dist/lib/__tests__/demo/case/layout-circular-basic.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-circular-configuration-translate.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-circular-degree.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-circular-division.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-circular-spiral.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-combo-combined.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-compact-box-basic.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-compact-box-left-align.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-compact-box-top-to-bottom.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-concentric.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-dagre-flow-combo.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-dagre-flow.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-dendrogram-basic.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-dendrogram-tb.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-force.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-fruchterman-basic.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-fruchterman-cluster.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-fruchterman-fix.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-grid.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-mds.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-mindmap-h-custom-side.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-mindmap-h-left.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-mindmap-h-right.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-mindmap-h.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-radial-basic.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-radial-configuration-translate.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-radial-prevent-overlap-unstrict.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-radial-prevent-overlap.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/layout-radial-sort.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/plugin-grid-line.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/theme.d.ts +2 -0
- package/dist/lib/__tests__/demo/case/viewport-fit.d.ts +2 -0
- package/dist/lib/__tests__/demo/index.d.ts +3 -0
- package/dist/lib/__tests__/demo/static/common.d.ts +45 -0
- package/dist/lib/__tests__/demo/static/controller-element-position.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-element-visibility.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-element-z-index.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-element.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-circular.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-compact-box.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-d3-force.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-dagre.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-dendrogram.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-force.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-forceatlas2-wasm.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-fruchterman-gpu.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-fruchterman-wasm.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-grid.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-indented.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-mindmap.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-layout-radial.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/controller-viewport.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/edge-arrow.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/edge-cubic-horizontal.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/edge-cubic-vertical.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/edge-cubic.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/edge-custom-arrow.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/edge-line.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/edge-loop-curve.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/edge-loop-polyline.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/edge-polyline.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/edge-port.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/edge-quadratic.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/element-label-background.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/element-label-oversized.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/graph-element.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/index.d.ts +9 -0
- package/dist/lib/__tests__/demo/static/layered-canvas.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/node-circle.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/node-diamond.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/node-ellipse.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/node-image.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/node-rect.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/node-star.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/node-triangle.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/shape-badge.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/shape-icon.d.ts +2 -0
- package/dist/lib/__tests__/demo/static/shape-label.d.ts +2 -0
- package/dist/lib/__tests__/demo/types.d.ts +33 -0
- package/dist/lib/__tests__/main.d.ts +1 -0
- package/dist/lib/__tests__/setup.d.ts +3 -0
- package/dist/lib/__tests__/unit/behaviors/behavior-collapse-expand.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/behaviors/behavior-drag-canvas.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/behaviors/behavior-drag-element-combo.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/behaviors/behavior-drag-element.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/behaviors/behavior-zoom-canvas.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/elements/change-type.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/elements/combo.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/elements/edge-polyline.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/elements/port.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/elements/position-combo.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/elements/position.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/elements/state.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/elements/visibility.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/elements/z-index.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/layouts/circular.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/layouts/combo-layout.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/layouts/compact-box.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/layouts/dagre-flow.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/layouts/dendrogram.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/layouts/fruchterman.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/layouts/grid.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/layouts/layout-concentric.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/layouts/mds.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/layouts/mindmap.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/layouts/radial-layout.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/plugins/plugin-grid-line.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/registry.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/runtime/canvas.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/runtime/data.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/runtime/element/visibility.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/runtime/element/z-index.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/runtime/element.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/runtime/graph/auto-resize.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/runtime/graph/graph.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/runtime/viewport.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/spec/behavior.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/spec/canvas.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/spec/data.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/spec/element/combo.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/spec/element/edge.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/spec/element/node.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/spec/index.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/spec/layout.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/spec/plugin.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/spec/theme.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/spec/viewport.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/anchor.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/animation.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/array.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/bbox.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/cache.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/change.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/combo.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/data.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/diff.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/dom.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/edge.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/element.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/event.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/extension.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/graphlib.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/id.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/is.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/layout.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/math.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/padding.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/palette.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/placement.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/point.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/position.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/prefix.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/random.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/router.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/shape.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/shortcut.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/size.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/style.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/symbol.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/text.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/traverse.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/tree.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/vector.spec.d.ts +1 -0
- package/dist/lib/__tests__/unit/utils/visibility.spec.d.ts +1 -0
- package/dist/lib/__tests__/utils/create.d.ts +15 -0
- package/dist/lib/__tests__/utils/dir.d.ts +9 -0
- package/dist/lib/__tests__/utils/get-cases.d.ts +2 -0
- package/dist/lib/__tests__/utils/index.d.ts +4 -0
- package/dist/lib/__tests__/utils/offscreen-canvas-context.d.ts +21 -0
- package/dist/lib/__tests__/utils/random.d.ts +5 -0
- package/dist/lib/__tests__/utils/sleep.d.ts +1 -0
- package/dist/lib/__tests__/utils/to-be-close-to.d.ts +10 -0
- package/dist/lib/__tests__/utils/to-match-svg-snapshot.d.ts +14 -0
- package/dist/lib/__tests__/utils/use-snapshot-matchers.d.ts +9 -0
- package/dist/lib/src/animations/executor.d.ts +12 -0
- package/dist/lib/src/animations/index.d.ts +18 -0
- package/dist/lib/src/animations/types.d.ts +56 -0
- package/dist/lib/src/behaviors/base-behavior.d.ts +5 -0
- package/dist/lib/src/behaviors/collapse-expand.d.ts +41 -0
- package/dist/lib/src/behaviors/drag-canvas.d.ts +56 -0
- package/dist/lib/src/behaviors/drag-element.d.ts +106 -0
- package/dist/lib/src/behaviors/index.d.ts +10 -0
- package/dist/lib/src/behaviors/types.d.ts +5 -0
- package/dist/lib/src/behaviors/zoom-canvas.d.ts +69 -0
- package/dist/lib/src/constants/animation.d.ts +2 -0
- package/dist/lib/src/constants/change.d.ts +15 -0
- package/dist/lib/src/constants/element.d.ts +5 -0
- package/dist/lib/src/constants/events/animation.d.ts +7 -0
- package/dist/lib/src/constants/events/canvas.d.ts +38 -0
- package/dist/lib/src/constants/events/combo.d.ts +2 -0
- package/dist/lib/src/constants/events/common.d.ts +42 -0
- package/dist/lib/src/constants/events/container.d.ts +6 -0
- package/dist/lib/src/constants/events/edge.d.ts +30 -0
- package/dist/lib/src/constants/events/graph.d.ts +60 -0
- package/dist/lib/src/constants/events/index.d.ts +8 -0
- package/dist/lib/src/constants/events/node.d.ts +36 -0
- package/dist/lib/src/constants/graphlib.d.ts +2 -0
- package/dist/lib/src/constants/index.d.ts +4 -0
- package/dist/lib/src/elements/combos/base-combo.d.ts +47 -0
- package/dist/lib/src/elements/combos/circle.d.ts +18 -0
- package/dist/lib/src/elements/combos/index.d.ts +6 -0
- package/dist/lib/src/elements/combos/rect.d.ts +15 -0
- package/dist/lib/src/elements/edges/base-edge.d.ts +58 -0
- package/dist/lib/src/elements/edges/cubic-horizontal.d.ts +21 -0
- package/dist/lib/src/elements/edges/cubic-vertical.d.ts +21 -0
- package/dist/lib/src/elements/edges/cubic.d.ts +30 -0
- package/dist/lib/src/elements/edges/index.d.ts +14 -0
- package/dist/lib/src/elements/edges/line.d.ts +15 -0
- package/dist/lib/src/elements/edges/polyline.d.ts +42 -0
- package/dist/lib/src/elements/edges/quadratic.d.ts +29 -0
- package/dist/lib/src/elements/index.d.ts +3 -0
- package/dist/lib/src/elements/nodes/base-node.d.ts +107 -0
- package/dist/lib/src/elements/nodes/circle.d.ts +20 -0
- package/dist/lib/src/elements/nodes/diamond.d.ts +15 -0
- package/dist/lib/src/elements/nodes/ellipse.d.ts +17 -0
- package/dist/lib/src/elements/nodes/image.d.ts +20 -0
- package/dist/lib/src/elements/nodes/index.d.ts +16 -0
- package/dist/lib/src/elements/nodes/polygon.d.ts +17 -0
- package/dist/lib/src/elements/nodes/rect.d.ts +19 -0
- package/dist/lib/src/elements/nodes/star.d.ts +24 -0
- package/dist/lib/src/elements/nodes/triangle.d.ts +24 -0
- package/dist/lib/src/elements/shapes/badge.d.ts +14 -0
- package/dist/lib/src/elements/shapes/base-shape.d.ts +57 -0
- package/dist/lib/src/elements/shapes/icon.d.ts +13 -0
- package/dist/lib/src/elements/shapes/index.d.ts +13 -0
- package/dist/lib/src/elements/shapes/label.d.ts +22 -0
- package/dist/lib/src/exports.d.ts +24 -0
- package/dist/lib/src/index.d.ts +3 -0
- package/dist/lib/src/layouts/index.d.ts +3 -0
- package/dist/lib/src/layouts/types.d.ts +71 -0
- package/dist/lib/src/palettes/index.d.ts +9 -0
- package/dist/lib/src/palettes/types.d.ts +5 -0
- package/dist/lib/src/plugins/base-plugin.d.ts +5 -0
- package/dist/lib/src/plugins/grid-line.d.ts +31 -0
- package/dist/lib/src/plugins/index.d.ts +4 -0
- package/dist/lib/src/plugins/types.d.ts +4 -0
- package/dist/lib/src/preset.d.ts +1 -0
- package/dist/lib/src/registry/build-in.d.ts +6 -0
- package/dist/lib/src/registry/extension/index.d.ts +33 -0
- package/dist/lib/src/registry/extension/types.d.ts +36 -0
- package/dist/lib/src/registry/index.d.ts +57 -0
- package/dist/lib/src/registry/types.d.ts +41 -0
- package/dist/lib/src/runtime/behavior.d.ts +14 -0
- package/dist/lib/src/runtime/canvas.d.ts +49 -0
- package/dist/lib/src/runtime/data.d.ts +187 -0
- package/dist/lib/src/runtime/element.d.ts +138 -0
- package/dist/lib/src/runtime/graph.d.ts +401 -0
- package/dist/lib/src/runtime/index.d.ts +6 -0
- package/dist/lib/src/runtime/layout.d.ts +49 -0
- package/dist/lib/src/runtime/plugin.d.ts +9 -0
- package/dist/lib/src/runtime/types.d.ts +69 -0
- package/dist/lib/src/runtime/viewport.d.ts +59 -0
- package/dist/lib/src/spec/behavior.d.ts +4 -0
- package/dist/lib/src/spec/canvas.d.ts +42 -0
- package/dist/lib/src/spec/data.d.ts +44 -0
- package/dist/lib/src/spec/element/animation.d.ts +12 -0
- package/dist/lib/src/spec/element/base.d.ts +6 -0
- package/dist/lib/src/spec/element/combo.d.ts +48 -0
- package/dist/lib/src/spec/element/edge.d.ts +46 -0
- package/dist/lib/src/spec/element/node.d.ts +48 -0
- package/dist/lib/src/spec/element/palette.d.ts +53 -0
- package/dist/lib/src/spec/index.d.ts +11 -0
- package/dist/lib/src/spec/layout.d.ts +4 -0
- package/dist/lib/src/spec/plugin.d.ts +4 -0
- package/dist/lib/src/spec/spec.d.ts +76 -0
- package/dist/lib/src/spec/theme.d.ts +10 -0
- package/dist/lib/src/spec/viewport.d.ts +86 -0
- package/dist/lib/src/themes/base.d.ts +27 -0
- package/dist/lib/src/themes/dark.d.ts +2 -0
- package/dist/lib/src/themes/index.d.ts +2 -0
- package/dist/lib/src/themes/light.d.ts +2 -0
- package/dist/lib/src/themes/types.d.ts +10 -0
- package/dist/lib/src/types/anchor.d.ts +3 -0
- package/dist/lib/src/types/animation.d.ts +6 -0
- package/dist/lib/src/types/behavior.d.ts +5 -0
- package/dist/lib/src/types/callable.d.ts +30 -0
- package/dist/lib/src/types/canvas.d.ts +1 -0
- package/dist/lib/src/types/change.d.ts +51 -0
- package/dist/lib/src/types/data.d.ts +44 -0
- package/dist/lib/src/types/edge.d.ts +34 -0
- package/dist/lib/src/types/element.d.ts +149 -0
- package/dist/lib/src/types/enum.d.ts +1 -0
- package/dist/lib/src/types/event.d.ts +4 -0
- package/dist/lib/src/types/graphlib.d.ts +16 -0
- package/dist/lib/src/types/index.d.ts +24 -0
- package/dist/lib/src/types/node.d.ts +16 -0
- package/dist/lib/src/types/padding.d.ts +2 -0
- package/dist/lib/src/types/placement.d.ts +5 -0
- package/dist/lib/src/types/point.d.ts +2 -0
- package/dist/lib/src/types/position.d.ts +2 -0
- package/dist/lib/src/types/prefix.d.ts +7 -0
- package/dist/lib/src/types/size.d.ts +3 -0
- package/dist/lib/src/types/state.d.ts +1 -0
- package/dist/lib/src/types/style.d.ts +11 -0
- package/dist/lib/src/types/tree.d.ts +5 -0
- package/dist/lib/src/types/vector.d.ts +2 -0
- package/dist/lib/src/types/viewport.d.ts +38 -0
- package/dist/lib/src/utils/anchor.d.ts +9 -0
- package/dist/lib/src/utils/animation.d.ts +73 -0
- package/dist/lib/src/utils/array.d.ts +9 -0
- package/dist/lib/src/utils/bbox.d.ts +109 -0
- package/dist/lib/src/utils/cache.d.ts +36 -0
- package/dist/lib/src/utils/change.d.ts +9 -0
- package/dist/lib/src/utils/combo.d.ts +33 -0
- package/dist/lib/src/utils/data.d.ts +34 -0
- package/dist/lib/src/utils/diff.d.ts +15 -0
- package/dist/lib/src/utils/dom.d.ts +6 -0
- package/dist/lib/src/utils/edge.d.ts +158 -0
- package/dist/lib/src/utils/element.d.ts +202 -0
- package/dist/lib/src/utils/event/events.d.ts +31 -0
- package/dist/lib/src/utils/event/index.d.ts +29 -0
- package/dist/lib/src/utils/extension.d.ts +10 -0
- package/dist/lib/src/utils/graphlib.d.ts +14 -0
- package/dist/lib/src/utils/id.d.ts +18 -0
- package/dist/lib/src/utils/is.d.ts +34 -0
- package/dist/lib/src/utils/layout.d.ts +25 -0
- package/dist/lib/src/utils/math.d.ts +10 -0
- package/dist/lib/src/utils/padding.d.ts +9 -0
- package/dist/lib/src/utils/palette.d.ts +33 -0
- package/dist/lib/src/utils/placement.d.ts +9 -0
- package/dist/lib/src/utils/point.d.ts +129 -0
- package/dist/lib/src/utils/position.d.ts +37 -0
- package/dist/lib/src/utils/prefix.d.ts +66 -0
- package/dist/lib/src/utils/router/orth.d.ts +103 -0
- package/dist/lib/src/utils/shape.d.ts +9 -0
- package/dist/lib/src/utils/shortcut.d.ts +20 -0
- package/dist/lib/src/utils/size.d.ts +7 -0
- package/dist/lib/src/utils/style.d.ts +20 -0
- package/dist/lib/src/utils/symbol.d.ts +30 -0
- package/dist/lib/src/utils/text.d.ts +26 -0
- package/dist/lib/src/utils/traverse.d.ts +14 -0
- package/dist/lib/src/utils/tree.d.ts +17 -0
- package/dist/lib/src/utils/vector.d.ts +142 -0
- package/dist/lib/src/utils/visibility.d.ts +13 -0
- package/esm/animations/executor.d.ts +12 -0
- package/esm/animations/executor.js +75 -0
- package/esm/animations/executor.js.map +1 -0
- package/esm/animations/index.d.ts +18 -0
- package/esm/animations/index.js +17 -0
- package/esm/animations/index.js.map +1 -0
- package/esm/animations/types.d.ts +56 -0
- package/esm/animations/types.js.map +1 -0
- package/esm/behaviors/base-behavior.d.ts +5 -0
- package/esm/behaviors/base-behavior.js +4 -0
- package/esm/behaviors/base-behavior.js.map +1 -0
- package/esm/behaviors/collapse-expand.d.ts +41 -0
- package/esm/behaviors/collapse-expand.js +54 -0
- package/esm/behaviors/collapse-expand.js.map +1 -0
- package/esm/behaviors/drag-canvas.d.ts +56 -0
- package/esm/behaviors/drag-canvas.js +61 -0
- package/esm/behaviors/drag-canvas.js.map +1 -0
- package/esm/behaviors/drag-element.d.ts +106 -0
- package/esm/behaviors/drag-element.js +205 -0
- package/esm/behaviors/drag-element.js.map +1 -0
- package/esm/behaviors/index.d.ts +10 -0
- package/esm/behaviors/index.js +6 -0
- package/esm/behaviors/index.js.map +1 -0
- package/esm/behaviors/types.d.ts +5 -0
- package/esm/behaviors/types.js.map +1 -0
- package/esm/behaviors/zoom-canvas.d.ts +69 -0
- package/esm/behaviors/zoom-canvas.js +80 -0
- package/esm/behaviors/zoom-canvas.js.map +1 -0
- package/esm/constants/animation.d.ts +2 -0
- package/esm/constants/animation.js +10 -0
- package/esm/constants/animation.js.map +1 -0
- package/esm/constants/change.d.ts +15 -0
- package/esm/constants/change.js +17 -0
- package/esm/constants/change.js.map +1 -0
- package/esm/constants/element.d.ts +5 -0
- package/esm/constants/element.js +6 -0
- package/esm/constants/element.js.map +1 -0
- package/esm/constants/events/animation.d.ts +7 -0
- package/esm/constants/events/animation.js +10 -0
- package/esm/constants/events/animation.js.map +1 -0
- package/esm/constants/events/canvas.d.ts +38 -0
- package/esm/constants/events/canvas.js +40 -0
- package/esm/constants/events/canvas.js.map +1 -0
- package/esm/constants/events/combo.d.ts +2 -0
- package/esm/constants/events/combo.js +3 -0
- package/esm/constants/events/combo.js.map +1 -0
- package/esm/constants/events/common.d.ts +42 -0
- package/esm/constants/events/common.js +44 -0
- package/esm/constants/events/common.js.map +1 -0
- package/esm/constants/events/container.d.ts +6 -0
- package/esm/constants/events/container.js +8 -0
- package/esm/constants/events/container.js.map +1 -0
- package/esm/constants/events/edge.d.ts +30 -0
- package/esm/constants/events/edge.js +32 -0
- package/esm/constants/events/edge.js.map +1 -0
- package/esm/constants/events/graph.d.ts +60 -0
- package/esm/constants/events/graph.js +64 -0
- package/esm/constants/events/graph.js.map +1 -0
- package/esm/constants/events/index.d.ts +8 -0
- package/esm/constants/events/index.js +9 -0
- package/esm/constants/events/index.js.map +1 -0
- package/esm/constants/events/node.d.ts +36 -0
- package/esm/constants/events/node.js +38 -0
- package/esm/constants/events/node.js.map +1 -0
- package/esm/constants/graphlib.d.ts +2 -0
- package/esm/constants/graphlib.js +3 -0
- package/esm/constants/graphlib.js.map +1 -0
- package/esm/constants/index.d.ts +4 -0
- package/esm/constants/index.js +5 -0
- package/esm/constants/index.js.map +1 -0
- package/esm/elements/combos/base-combo.d.ts +47 -0
- package/esm/elements/combos/base-combo.js +132 -0
- package/esm/elements/combos/base-combo.js.map +1 -0
- package/esm/elements/combos/circle.d.ts +18 -0
- package/esm/elements/combos/circle.js +46 -0
- package/esm/elements/combos/circle.js.map +1 -0
- package/esm/elements/combos/index.d.ts +6 -0
- package/esm/elements/combos/index.js +4 -0
- package/esm/elements/combos/index.js.map +1 -0
- package/esm/elements/combos/rect.d.ts +15 -0
- package/esm/elements/combos/rect.js +27 -0
- package/esm/elements/combos/rect.js.map +1 -0
- package/esm/elements/edges/base-edge.d.ts +58 -0
- package/esm/elements/edges/base-edge.js +166 -0
- package/esm/elements/edges/base-edge.js.map +1 -0
- package/esm/elements/edges/cubic-horizontal.d.ts +21 -0
- package/esm/elements/edges/cubic-horizontal.js +19 -0
- package/esm/elements/edges/cubic-horizontal.js.map +1 -0
- package/esm/elements/edges/cubic-vertical.d.ts +21 -0
- package/esm/elements/edges/cubic-vertical.js +19 -0
- package/esm/elements/edges/cubic-vertical.js.map +1 -0
- package/esm/elements/edges/cubic.d.ts +30 -0
- package/esm/elements/edges/cubic.js +27 -0
- package/esm/elements/edges/cubic.js.map +1 -0
- package/esm/elements/edges/index.d.ts +14 -0
- package/esm/elements/edges/index.js +8 -0
- package/esm/elements/edges/index.js.map +1 -0
- package/esm/elements/edges/line.d.ts +15 -0
- package/esm/elements/edges/line.js +19 -0
- package/esm/elements/edges/line.js.map +1 -0
- package/esm/elements/edges/polyline.d.ts +42 -0
- package/esm/elements/edges/polyline.js +58 -0
- package/esm/elements/edges/polyline.js.map +1 -0
- package/esm/elements/edges/quadratic.d.ts +29 -0
- package/esm/elements/edges/quadratic.js +19 -0
- package/esm/elements/edges/quadratic.js.map +1 -0
- package/esm/elements/index.d.ts +3 -0
- package/esm/elements/index.js +4 -0
- package/esm/elements/index.js.map +1 -0
- package/esm/elements/nodes/base-node.d.ts +107 -0
- package/esm/elements/nodes/base-node.js +208 -0
- package/esm/elements/nodes/base-node.js.map +1 -0
- package/esm/elements/nodes/circle.d.ts +20 -0
- package/esm/elements/nodes/circle.js +34 -0
- package/esm/elements/nodes/circle.js.map +1 -0
- package/esm/elements/nodes/diamond.d.ts +15 -0
- package/esm/elements/nodes/diamond.js +21 -0
- package/esm/elements/nodes/diamond.js.map +1 -0
- package/esm/elements/nodes/ellipse.d.ts +17 -0
- package/esm/elements/nodes/ellipse.js +36 -0
- package/esm/elements/nodes/ellipse.js.map +1 -0
- package/esm/elements/nodes/image.d.ts +20 -0
- package/esm/elements/nodes/image.js +52 -0
- package/esm/elements/nodes/image.js.map +1 -0
- package/esm/elements/nodes/index.d.ts +16 -0
- package/esm/elements/nodes/index.js +9 -0
- package/esm/elements/nodes/index.js.map +1 -0
- package/esm/elements/nodes/polygon.d.ts +17 -0
- package/esm/elements/nodes/polygon.js +24 -0
- package/esm/elements/nodes/polygon.js.map +1 -0
- package/esm/elements/nodes/rect.d.ts +19 -0
- package/esm/elements/nodes/rect.js +39 -0
- package/esm/elements/nodes/rect.js.map +1 -0
- package/esm/elements/nodes/star.d.ts +24 -0
- package/esm/elements/nodes/star.js +29 -0
- package/esm/elements/nodes/star.js.map +1 -0
- package/esm/elements/nodes/triangle.d.ts +24 -0
- package/esm/elements/nodes/triangle.js +47 -0
- package/esm/elements/nodes/triangle.js.map +1 -0
- package/esm/elements/shapes/badge.d.ts +14 -0
- package/esm/elements/shapes/badge.js +25 -0
- package/esm/elements/shapes/badge.js.map +1 -0
- package/esm/elements/shapes/base-shape.d.ts +57 -0
- package/esm/elements/shapes/base-shape.js +110 -0
- package/esm/elements/shapes/base-shape.js.map +1 -0
- package/esm/elements/shapes/icon.d.ts +13 -0
- package/esm/elements/shapes/icon.js +31 -0
- package/esm/elements/shapes/icon.js.map +1 -0
- package/esm/elements/shapes/index.d.ts +13 -0
- package/esm/elements/shapes/index.js +10 -0
- package/esm/elements/shapes/index.js.map +1 -0
- package/esm/elements/shapes/label.d.ts +22 -0
- package/esm/elements/shapes/label.js +60 -0
- package/esm/elements/shapes/label.js.map +1 -0
- package/esm/elements/types.d.ts +0 -0
- package/esm/elements/types.js +15 -0
- package/esm/elements/types.js.map +1 -0
- package/esm/exports.d.ts +24 -0
- package/esm/exports.js +20 -0
- package/esm/exports.js.map +1 -0
- package/esm/index.d.ts +3 -220
- package/esm/index.js +3 -17
- package/esm/index.js.map +1 -1
- package/esm/layouts/index.d.ts +3 -0
- package/esm/layouts/index.js +3 -0
- package/esm/layouts/index.js.map +1 -0
- package/esm/layouts/types.d.ts +71 -0
- package/esm/layouts/types.js.map +1 -0
- package/esm/palettes/index.d.ts +9 -0
- package/esm/palettes/index.js +52 -0
- package/esm/palettes/index.js.map +1 -0
- package/esm/palettes/types.d.ts +5 -0
- package/esm/palettes/types.js.map +1 -0
- package/esm/plugins/base-plugin.d.ts +5 -0
- package/esm/plugins/base-plugin.js +4 -0
- package/esm/plugins/base-plugin.js.map +1 -0
- package/esm/plugins/grid-line.d.ts +31 -0
- package/esm/plugins/grid-line.js +67 -0
- package/esm/plugins/grid-line.js.map +1 -0
- package/esm/plugins/index.d.ts +4 -0
- package/esm/plugins/index.js +3 -0
- package/esm/plugins/index.js.map +1 -0
- package/esm/plugins/types.d.ts +4 -0
- package/esm/plugins/types.js +2 -0
- package/esm/plugins/types.js.map +1 -0
- package/esm/preset.d.ts +1 -0
- package/esm/preset.js +8 -0
- package/esm/preset.js.map +1 -0
- package/esm/registry/build-in.d.ts +6 -0
- package/esm/registry/build-in.js +77 -0
- package/esm/registry/build-in.js.map +1 -0
- package/esm/registry/extension/index.d.ts +33 -0
- package/esm/registry/extension/index.js +86 -0
- package/esm/registry/extension/index.js.map +1 -0
- package/esm/registry/extension/types.d.ts +36 -0
- package/esm/registry/extension/types.js +2 -0
- package/esm/registry/extension/types.js.map +1 -0
- package/esm/registry/index.d.ts +57 -0
- package/esm/registry/index.js +94 -0
- package/esm/registry/index.js.map +1 -0
- package/esm/registry/types.d.ts +41 -0
- package/esm/registry/types.js +2 -0
- package/esm/registry/types.js.map +1 -0
- package/esm/runtime/behavior.d.ts +14 -0
- package/esm/runtime/behavior.js +96 -0
- package/esm/runtime/behavior.js.map +1 -0
- package/esm/runtime/canvas.d.ts +49 -0
- package/esm/runtime/canvas.js +192 -0
- package/esm/runtime/canvas.js.map +1 -0
- package/esm/runtime/data.d.ts +187 -0
- package/esm/runtime/data.js +671 -0
- package/esm/runtime/data.js.map +1 -0
- package/esm/runtime/element.d.ts +138 -0
- package/esm/runtime/element.js +581 -0
- package/esm/runtime/element.js.map +1 -0
- package/esm/runtime/graph.d.ts +334 -705
- package/esm/runtime/graph.js +561 -2134
- package/esm/runtime/graph.js.map +1 -1
- package/esm/runtime/index.d.ts +6 -0
- package/esm/runtime/index.js +7 -0
- package/esm/runtime/index.js.map +1 -0
- package/esm/runtime/layout.d.ts +49 -0
- package/esm/runtime/layout.js +323 -0
- package/esm/runtime/layout.js.map +1 -0
- package/esm/runtime/plugin.d.ts +9 -0
- package/esm/runtime/plugin.js +12 -0
- package/esm/runtime/plugin.js.map +1 -0
- package/esm/runtime/types.d.ts +69 -0
- package/esm/runtime/types.js +2 -0
- package/esm/runtime/types.js.map +1 -0
- package/esm/runtime/viewport.d.ts +59 -0
- package/esm/runtime/viewport.js +241 -0
- package/esm/runtime/viewport.js.map +1 -0
- package/esm/spec/behavior.d.ts +4 -0
- package/esm/spec/behavior.js +2 -0
- package/esm/spec/behavior.js.map +1 -0
- package/esm/spec/canvas.d.ts +42 -0
- package/esm/spec/canvas.js +2 -0
- package/esm/spec/canvas.js.map +1 -0
- package/esm/spec/data.d.ts +44 -0
- package/esm/spec/data.js +2 -0
- package/esm/spec/data.js.map +1 -0
- package/esm/spec/element/animation.d.ts +12 -0
- package/esm/spec/element/animation.js +2 -0
- package/esm/spec/element/animation.js.map +1 -0
- package/esm/spec/element/base.d.ts +6 -0
- package/esm/spec/element/base.js +2 -0
- package/esm/spec/element/base.js.map +1 -0
- package/esm/spec/element/combo.d.ts +48 -0
- package/esm/spec/element/combo.js.map +1 -0
- package/esm/spec/element/edge.d.ts +46 -0
- package/esm/spec/element/edge.js +2 -0
- package/esm/spec/element/edge.js.map +1 -0
- package/esm/spec/element/node.d.ts +48 -0
- package/esm/spec/element/node.js +2 -0
- package/esm/spec/element/node.js.map +1 -0
- package/esm/spec/element/palette.d.ts +53 -0
- package/esm/spec/element/palette.js +2 -0
- package/esm/spec/element/palette.js.map +1 -0
- package/esm/spec/index.d.ts +11 -0
- package/esm/spec/index.js +2 -0
- package/esm/spec/index.js.map +1 -0
- package/esm/spec/layout.d.ts +4 -0
- package/esm/spec/layout.js.map +1 -0
- package/esm/spec/plugin.d.ts +4 -0
- package/esm/spec/plugin.js +2 -0
- package/esm/spec/plugin.js.map +1 -0
- package/esm/spec/spec.d.ts +76 -0
- package/esm/spec/spec.js.map +1 -0
- package/esm/spec/theme.d.ts +10 -0
- package/esm/spec/theme.js +2 -0
- package/esm/spec/theme.js.map +1 -0
- package/esm/spec/viewport.d.ts +86 -0
- package/esm/spec/viewport.js +2 -0
- package/esm/spec/viewport.js.map +1 -0
- package/esm/themes/base.d.ts +27 -0
- package/esm/themes/base.js +197 -0
- package/esm/themes/base.js.map +1 -0
- package/esm/themes/dark.d.ts +2 -0
- package/esm/themes/dark.js +16 -0
- package/esm/themes/dark.js.map +1 -0
- package/esm/themes/index.d.ts +2 -0
- package/esm/themes/index.js +3 -0
- package/esm/themes/index.js.map +1 -0
- package/esm/themes/light.d.ts +2 -0
- package/esm/themes/light.js +16 -0
- package/esm/themes/light.js.map +1 -0
- package/esm/themes/types.d.ts +10 -0
- package/esm/themes/types.js +2 -0
- package/esm/themes/types.js.map +1 -0
- package/esm/types/anchor.d.ts +3 -0
- package/esm/types/anchor.js +2 -0
- package/esm/types/anchor.js.map +1 -0
- package/esm/types/animation.d.ts +6 -0
- package/esm/types/animation.js +2 -0
- package/esm/types/animation.js.map +1 -0
- package/esm/types/behavior.d.ts +5 -45
- package/esm/types/behavior.js +1 -13
- package/esm/types/behavior.js.map +1 -1
- package/esm/types/callable.d.ts +30 -0
- package/esm/types/callable.js +2 -0
- package/esm/types/callable.js.map +1 -0
- package/esm/types/canvas.d.ts +1 -0
- package/esm/types/canvas.js +2 -0
- package/esm/types/canvas.js.map +1 -0
- package/esm/types/change.d.ts +51 -0
- package/esm/types/change.js +2 -0
- package/esm/types/change.js.map +1 -0
- package/esm/types/data.d.ts +44 -34
- package/esm/types/edge.d.ts +24 -104
- package/esm/types/element.d.ts +149 -0
- package/esm/types/element.js +2 -0
- package/esm/types/element.js.map +1 -0
- package/esm/types/enum.d.ts +1 -0
- package/esm/types/enum.js +2 -0
- package/esm/types/enum.js.map +1 -0
- package/esm/types/event.d.ts +4 -39
- package/esm/types/event.js +1 -30
- package/esm/types/event.js.map +1 -1
- package/esm/types/graphlib.d.ts +16 -0
- package/esm/types/graphlib.js +2 -0
- package/esm/types/graphlib.js.map +1 -0
- package/esm/types/index.d.ts +24 -18
- package/esm/types/index.js +1 -3
- package/esm/types/index.js.map +1 -1
- package/esm/types/node.d.ts +15 -185
- package/esm/types/padding.d.ts +2 -0
- package/esm/types/padding.js +2 -0
- package/esm/types/padding.js.map +1 -0
- package/esm/types/placement.d.ts +5 -0
- package/esm/types/placement.js +2 -0
- package/esm/types/placement.js.map +1 -0
- package/esm/types/point.d.ts +2 -0
- package/esm/types/point.js +2 -0
- package/esm/types/point.js.map +1 -0
- package/esm/types/position.d.ts +2 -0
- package/esm/types/position.js +2 -0
- package/esm/types/position.js.map +1 -0
- package/esm/types/prefix.d.ts +7 -0
- package/esm/types/prefix.js +2 -0
- package/esm/types/prefix.js.map +1 -0
- package/esm/types/size.d.ts +3 -0
- package/esm/types/size.js +2 -0
- package/esm/types/size.js.map +1 -0
- package/esm/types/state.d.ts +1 -0
- package/esm/types/state.js +2 -0
- package/esm/types/state.js.map +1 -0
- package/esm/types/style.d.ts +11 -0
- package/esm/types/style.js +2 -0
- package/esm/types/style.js.map +1 -0
- package/esm/types/tree.d.ts +5 -0
- package/esm/types/tree.js +2 -0
- package/esm/types/tree.js.map +1 -0
- package/esm/types/vector.d.ts +2 -0
- package/esm/types/vector.js +2 -0
- package/esm/types/vector.js.map +1 -0
- package/esm/types/viewport.d.ts +38 -0
- package/esm/types/viewport.js +2 -0
- package/esm/types/viewport.js.map +1 -0
- package/esm/utils/anchor.d.ts +9 -0
- package/esm/utils/anchor.js +16 -0
- package/esm/utils/anchor.js.map +1 -0
- package/esm/utils/animation.d.ts +73 -0
- package/esm/utils/animation.js +208 -0
- package/esm/utils/animation.js.map +1 -0
- package/esm/utils/array.d.ts +9 -0
- package/esm/utils/array.js +16 -0
- package/esm/utils/array.js.map +1 -0
- package/esm/utils/bbox.d.ts +109 -0
- package/esm/utils/bbox.js +206 -0
- package/esm/utils/bbox.js.map +1 -0
- package/esm/utils/cache.d.ts +36 -0
- package/esm/utils/cache.js +53 -0
- package/esm/utils/cache.js.map +1 -0
- package/esm/utils/change.d.ts +9 -0
- package/esm/utils/change.js +56 -0
- package/esm/utils/change.js.map +1 -0
- package/esm/utils/combo.d.ts +33 -0
- package/esm/utils/combo.js +111 -0
- package/esm/utils/combo.js.map +1 -0
- package/esm/utils/data.d.ts +34 -0
- package/esm/utils/data.js +59 -0
- package/esm/utils/data.js.map +1 -0
- package/esm/utils/diff.d.ts +15 -0
- package/esm/utils/diff.js +40 -0
- package/esm/utils/diff.js.map +1 -0
- package/esm/utils/dom.d.ts +6 -0
- package/esm/utils/dom.js +36 -0
- package/esm/utils/dom.js.map +1 -0
- package/esm/utils/edge.d.ts +158 -0
- package/esm/utils/edge.js +464 -0
- package/esm/utils/edge.js.map +1 -0
- package/esm/utils/element.d.ts +202 -0
- package/esm/utils/element.js +416 -0
- package/esm/utils/element.js.map +1 -0
- package/esm/utils/event/events.d.ts +31 -0
- package/esm/utils/event/events.js +46 -0
- package/esm/utils/event/events.js.map +1 -0
- package/esm/utils/event/index.d.ts +29 -0
- package/esm/utils/event/index.js +45 -0
- package/esm/utils/event/index.js.map +1 -0
- package/esm/utils/extension.d.ts +10 -0
- package/esm/utils/extension.js +25 -0
- package/esm/utils/extension.js.map +1 -0
- package/esm/utils/graphlib.d.ts +14 -0
- package/esm/utils/graphlib.js +44 -0
- package/esm/utils/graphlib.js.map +1 -0
- package/esm/utils/id.d.ts +18 -0
- package/esm/utils/id.js +27 -0
- package/esm/utils/id.js.map +1 -0
- package/esm/utils/is.d.ts +34 -0
- package/esm/utils/is.js +48 -0
- package/esm/utils/is.js.map +1 -0
- package/esm/utils/layout.d.ts +25 -0
- package/esm/utils/layout.js +38 -0
- package/esm/utils/layout.js.map +1 -0
- package/esm/utils/math.d.ts +10 -0
- package/esm/utils/math.js +13 -0
- package/esm/utils/math.js.map +1 -0
- package/esm/utils/padding.d.ts +9 -0
- package/esm/utils/padding.js +15 -0
- package/esm/utils/padding.js.map +1 -0
- package/esm/utils/palette.d.ts +33 -0
- package/esm/utils/palette.js +103 -0
- package/esm/utils/palette.js.map +1 -0
- package/esm/utils/placement.d.ts +9 -0
- package/esm/utils/placement.js +18 -0
- package/esm/utils/placement.js.map +1 -0
- package/esm/utils/point.d.ts +129 -0
- package/esm/utils/point.js +216 -0
- package/esm/utils/point.js.map +1 -0
- package/esm/utils/position.d.ts +37 -0
- package/esm/utils/position.js +51 -0
- package/esm/utils/position.js.map +1 -0
- package/esm/utils/prefix.d.ts +66 -0
- package/esm/utils/prefix.js +117 -0
- package/esm/utils/prefix.js.map +1 -0
- package/esm/utils/router/orth.d.ts +103 -0
- package/esm/utils/router/orth.js +280 -0
- package/esm/utils/router/orth.js.map +1 -0
- package/esm/utils/shape.d.ts +9 -0
- package/esm/utils/shape.js +22 -0
- package/esm/utils/shape.js.map +1 -0
- package/esm/utils/shortcut.d.ts +20 -0
- package/esm/utils/shortcut.js +56 -0
- package/esm/utils/shortcut.js.map +1 -0
- package/esm/utils/size.d.ts +7 -0
- package/esm/utils/size.js +13 -0
- package/esm/utils/size.js.map +1 -0
- package/esm/utils/style.d.ts +20 -0
- package/esm/utils/style.js +31 -0
- package/esm/utils/style.js.map +1 -0
- package/esm/utils/symbol.d.ts +30 -0
- package/esm/utils/symbol.js +61 -0
- package/esm/utils/symbol.js.map +1 -0
- package/esm/utils/text.d.ts +26 -0
- package/esm/utils/text.js +44 -0
- package/esm/utils/text.js.map +1 -0
- package/esm/utils/traverse.d.ts +14 -0
- package/esm/utils/traverse.js +23 -0
- package/esm/utils/traverse.js.map +1 -0
- package/esm/utils/tree.d.ts +17 -0
- package/esm/utils/tree.js +28 -0
- package/esm/utils/tree.js.map +1 -0
- package/esm/utils/vector.d.ts +142 -0
- package/esm/utils/vector.js +184 -0
- package/esm/utils/vector.js.map +1 -0
- package/esm/utils/visibility.d.ts +13 -0
- package/esm/utils/visibility.js +28 -0
- package/esm/utils/visibility.js.map +1 -0
- package/lib/animations/executor.d.ts +12 -0
- package/lib/animations/executor.js +79 -0
- package/lib/animations/executor.js.map +1 -0
- package/lib/animations/index.d.ts +18 -0
- package/lib/animations/index.js +21 -0
- package/lib/animations/index.js.map +1 -0
- package/lib/animations/types.d.ts +56 -0
- package/lib/animations/types.js.map +1 -0
- package/lib/behaviors/base-behavior.d.ts +5 -0
- package/lib/behaviors/base-behavior.js +8 -0
- package/lib/behaviors/base-behavior.js.map +1 -0
- package/lib/behaviors/collapse-expand.d.ts +41 -0
- package/lib/behaviors/collapse-expand.js +58 -0
- package/lib/behaviors/collapse-expand.js.map +1 -0
- package/lib/behaviors/drag-canvas.d.ts +56 -0
- package/lib/behaviors/drag-canvas.js +65 -0
- package/lib/behaviors/drag-canvas.js.map +1 -0
- package/lib/behaviors/drag-element.d.ts +106 -0
- package/lib/behaviors/drag-element.js +209 -0
- package/lib/behaviors/drag-element.js.map +1 -0
- package/lib/behaviors/index.d.ts +10 -0
- package/lib/behaviors/index.js +14 -0
- package/lib/behaviors/index.js.map +1 -0
- package/lib/behaviors/types.d.ts +5 -0
- package/lib/behaviors/types.js.map +1 -0
- package/lib/behaviors/zoom-canvas.d.ts +69 -0
- package/lib/behaviors/zoom-canvas.js +84 -0
- package/lib/behaviors/zoom-canvas.js.map +1 -0
- package/lib/constants/animation.d.ts +2 -0
- package/lib/constants/animation.js +13 -0
- package/lib/constants/animation.js.map +1 -0
- package/lib/constants/change.d.ts +15 -0
- package/lib/constants/change.js +20 -0
- package/lib/constants/change.js.map +1 -0
- package/lib/constants/element.d.ts +5 -0
- package/lib/constants/element.js +9 -0
- package/lib/constants/element.js.map +1 -0
- package/lib/constants/events/animation.d.ts +7 -0
- package/lib/constants/events/animation.js +13 -0
- package/lib/constants/events/animation.js.map +1 -0
- package/lib/constants/events/canvas.d.ts +38 -0
- package/lib/constants/events/canvas.js +43 -0
- package/lib/constants/events/canvas.js.map +1 -0
- package/lib/constants/events/combo.d.ts +2 -0
- package/lib/constants/events/combo.js +6 -0
- package/lib/constants/events/combo.js.map +1 -0
- package/lib/constants/events/common.d.ts +42 -0
- package/lib/constants/events/common.js +47 -0
- package/lib/constants/events/common.js.map +1 -0
- package/lib/constants/events/container.d.ts +6 -0
- package/lib/constants/events/container.js +11 -0
- package/lib/constants/events/container.js.map +1 -0
- package/lib/constants/events/edge.d.ts +30 -0
- package/lib/constants/events/edge.js +35 -0
- package/lib/constants/events/edge.js.map +1 -0
- package/lib/constants/events/graph.d.ts +60 -0
- package/lib/constants/events/graph.js +67 -0
- package/lib/constants/events/graph.js.map +1 -0
- package/lib/constants/events/index.d.ts +8 -0
- package/lib/constants/events/index.js +20 -0
- package/lib/constants/events/index.js.map +1 -0
- package/lib/constants/events/node.d.ts +36 -0
- package/lib/constants/events/node.js +41 -0
- package/lib/constants/events/node.js.map +1 -0
- package/lib/constants/graphlib.d.ts +2 -0
- package/lib/constants/graphlib.js +6 -0
- package/lib/constants/graphlib.js.map +1 -0
- package/lib/constants/index.d.ts +4 -0
- package/lib/constants/index.js +21 -0
- package/lib/constants/index.js.map +1 -0
- package/lib/elements/combos/base-combo.d.ts +47 -0
- package/lib/elements/combos/base-combo.js +136 -0
- package/lib/elements/combos/base-combo.js.map +1 -0
- package/lib/elements/combos/circle.d.ts +18 -0
- package/lib/elements/combos/circle.js +50 -0
- package/lib/elements/combos/circle.js.map +1 -0
- package/lib/elements/combos/index.d.ts +6 -0
- package/lib/elements/combos/index.js +10 -0
- package/lib/elements/combos/index.js.map +1 -0
- package/lib/elements/combos/rect.d.ts +15 -0
- package/lib/elements/combos/rect.js +31 -0
- package/lib/elements/combos/rect.js.map +1 -0
- package/lib/elements/edges/base-edge.d.ts +58 -0
- package/lib/elements/edges/base-edge.js +193 -0
- package/lib/elements/edges/base-edge.js.map +1 -0
- package/lib/elements/edges/cubic-horizontal.d.ts +21 -0
- package/lib/elements/edges/cubic-horizontal.js +23 -0
- package/lib/elements/edges/cubic-horizontal.js.map +1 -0
- package/lib/elements/edges/cubic-vertical.d.ts +21 -0
- package/lib/elements/edges/cubic-vertical.js +23 -0
- package/lib/elements/edges/cubic-vertical.js.map +1 -0
- package/lib/elements/edges/cubic.d.ts +30 -0
- package/lib/elements/edges/cubic.js +31 -0
- package/lib/elements/edges/cubic.js.map +1 -0
- package/lib/elements/edges/index.d.ts +14 -0
- package/lib/elements/edges/index.js +18 -0
- package/lib/elements/edges/index.js.map +1 -0
- package/lib/elements/edges/line.d.ts +15 -0
- package/lib/elements/edges/line.js +23 -0
- package/lib/elements/edges/line.js.map +1 -0
- package/lib/elements/edges/polyline.d.ts +42 -0
- package/lib/elements/edges/polyline.js +62 -0
- package/lib/elements/edges/polyline.js.map +1 -0
- package/lib/elements/edges/quadratic.d.ts +29 -0
- package/lib/elements/edges/quadratic.js +23 -0
- package/lib/elements/edges/quadratic.js.map +1 -0
- package/lib/elements/index.d.ts +3 -0
- package/lib/elements/index.js +20 -0
- package/lib/elements/index.js.map +1 -0
- package/lib/elements/nodes/base-node.d.ts +107 -0
- package/lib/elements/nodes/base-node.js +212 -0
- package/lib/elements/nodes/base-node.js.map +1 -0
- package/lib/elements/nodes/circle.d.ts +20 -0
- package/lib/elements/nodes/circle.js +38 -0
- package/lib/elements/nodes/circle.js.map +1 -0
- package/lib/elements/nodes/diamond.d.ts +15 -0
- package/lib/elements/nodes/diamond.js +25 -0
- package/lib/elements/nodes/diamond.js.map +1 -0
- package/lib/elements/nodes/ellipse.d.ts +17 -0
- package/lib/elements/nodes/ellipse.js +40 -0
- package/lib/elements/nodes/ellipse.js.map +1 -0
- package/lib/elements/nodes/image.d.ts +20 -0
- package/lib/elements/nodes/image.js +56 -0
- package/lib/elements/nodes/image.js.map +1 -0
- package/lib/elements/nodes/index.d.ts +16 -0
- package/lib/elements/nodes/index.js +20 -0
- package/lib/elements/nodes/index.js.map +1 -0
- package/lib/elements/nodes/polygon.d.ts +17 -0
- package/lib/elements/nodes/polygon.js +28 -0
- package/lib/elements/nodes/polygon.js.map +1 -0
- package/lib/elements/nodes/rect.d.ts +19 -0
- package/lib/elements/nodes/rect.js +43 -0
- package/lib/elements/nodes/rect.js.map +1 -0
- package/lib/elements/nodes/star.d.ts +24 -0
- package/lib/elements/nodes/star.js +33 -0
- package/lib/elements/nodes/star.js.map +1 -0
- package/lib/elements/nodes/triangle.d.ts +24 -0
- package/lib/elements/nodes/triangle.js +51 -0
- package/lib/elements/nodes/triangle.js.map +1 -0
- package/lib/elements/shapes/badge.d.ts +14 -0
- package/lib/elements/shapes/badge.js +29 -0
- package/lib/elements/shapes/badge.js.map +1 -0
- package/lib/elements/shapes/base-shape.d.ts +57 -0
- package/lib/elements/shapes/base-shape.js +114 -0
- package/lib/elements/shapes/base-shape.js.map +1 -0
- package/lib/elements/shapes/icon.d.ts +13 -0
- package/lib/elements/shapes/icon.js +35 -0
- package/lib/elements/shapes/icon.js.map +1 -0
- package/lib/elements/shapes/index.d.ts +13 -0
- package/lib/elements/shapes/index.js +17 -0
- package/lib/elements/shapes/index.js.map +1 -0
- package/lib/elements/shapes/label.d.ts +22 -0
- package/lib/elements/shapes/label.js +64 -0
- package/lib/elements/shapes/label.js.map +1 -0
- package/lib/elements/types.d.ts +0 -0
- package/lib/elements/types.js +15 -0
- package/lib/elements/types.js.map +1 -0
- package/lib/exports.d.ts +24 -0
- package/lib/exports.js +39 -0
- package/lib/exports.js.map +1 -0
- package/lib/index.d.ts +3 -220
- package/lib/index.js +4 -35
- package/lib/index.js.map +1 -1
- package/lib/layouts/index.d.ts +3 -0
- package/lib/layouts/index.js +22 -0
- package/lib/layouts/index.js.map +1 -0
- package/lib/layouts/types.d.ts +71 -0
- package/lib/layouts/types.js.map +1 -0
- package/lib/palettes/index.d.ts +9 -0
- package/lib/palettes/index.js +55 -0
- package/lib/palettes/index.js.map +1 -0
- package/lib/palettes/types.d.ts +5 -0
- package/lib/palettes/types.js.map +1 -0
- package/lib/plugins/base-plugin.d.ts +5 -0
- package/lib/plugins/base-plugin.js +8 -0
- package/lib/plugins/base-plugin.js.map +1 -0
- package/lib/plugins/grid-line.d.ts +31 -0
- package/lib/plugins/grid-line.js +71 -0
- package/lib/plugins/grid-line.js.map +1 -0
- package/lib/plugins/index.d.ts +4 -0
- package/lib/plugins/index.js +8 -0
- package/lib/plugins/index.js.map +1 -0
- package/lib/plugins/types.d.ts +4 -0
- package/lib/plugins/types.js +3 -0
- package/lib/plugins/types.js.map +1 -0
- package/lib/preset.d.ts +1 -0
- package/lib/preset.js +10 -0
- package/lib/preset.js.map +1 -0
- package/lib/registry/build-in.d.ts +6 -0
- package/lib/registry/build-in.js +80 -0
- package/lib/registry/build-in.js.map +1 -0
- package/lib/registry/extension/index.d.ts +33 -0
- package/lib/registry/extension/index.js +91 -0
- package/lib/registry/extension/index.js.map +1 -0
- package/lib/registry/extension/types.d.ts +36 -0
- package/lib/registry/extension/types.js +3 -0
- package/lib/registry/extension/types.js.map +1 -0
- package/lib/registry/index.d.ts +57 -0
- package/lib/registry/index.js +101 -0
- package/lib/registry/index.js.map +1 -0
- package/lib/registry/types.d.ts +41 -0
- package/lib/registry/types.js +3 -0
- package/lib/registry/types.js.map +1 -0
- package/lib/runtime/behavior.d.ts +14 -0
- package/lib/runtime/behavior.js +100 -0
- package/lib/runtime/behavior.js.map +1 -0
- package/lib/runtime/canvas.d.ts +49 -0
- package/lib/runtime/canvas.js +196 -0
- package/lib/runtime/canvas.js.map +1 -0
- package/lib/runtime/data.d.ts +187 -0
- package/lib/runtime/data.js +675 -0
- package/lib/runtime/data.js.map +1 -0
- package/lib/runtime/element.d.ts +138 -0
- package/lib/runtime/element.js +585 -0
- package/lib/runtime/element.js.map +1 -0
- package/lib/runtime/graph.d.ts +334 -705
- package/lib/runtime/graph.js +560 -2133
- package/lib/runtime/graph.js.map +1 -1
- package/lib/runtime/index.d.ts +6 -0
- package/lib/runtime/index.js +8 -0
- package/lib/runtime/index.js.map +1 -0
- package/lib/runtime/layout.d.ts +49 -0
- package/lib/runtime/layout.js +327 -0
- package/lib/runtime/layout.js.map +1 -0
- package/lib/runtime/plugin.d.ts +9 -0
- package/lib/runtime/plugin.js +16 -0
- package/lib/runtime/plugin.js.map +1 -0
- package/lib/runtime/types.d.ts +69 -0
- package/lib/runtime/types.js +3 -0
- package/lib/runtime/types.js.map +1 -0
- package/lib/runtime/viewport.d.ts +59 -0
- package/lib/runtime/viewport.js +245 -0
- package/lib/runtime/viewport.js.map +1 -0
- package/lib/spec/behavior.d.ts +4 -0
- package/lib/spec/behavior.js +3 -0
- package/lib/spec/behavior.js.map +1 -0
- package/lib/spec/canvas.d.ts +42 -0
- package/lib/spec/canvas.js +3 -0
- package/lib/spec/canvas.js.map +1 -0
- package/lib/spec/data.d.ts +44 -0
- package/lib/spec/data.js +3 -0
- package/lib/spec/data.js.map +1 -0
- package/lib/spec/element/animation.d.ts +12 -0
- package/lib/spec/element/animation.js +3 -0
- package/lib/spec/element/animation.js.map +1 -0
- package/lib/spec/element/base.d.ts +6 -0
- package/lib/spec/element/base.js +3 -0
- package/lib/spec/element/base.js.map +1 -0
- package/lib/spec/element/combo.d.ts +48 -0
- package/lib/spec/element/combo.js.map +1 -0
- package/lib/spec/element/edge.d.ts +46 -0
- package/lib/spec/element/edge.js +3 -0
- package/lib/spec/element/edge.js.map +1 -0
- package/lib/spec/element/node.d.ts +48 -0
- package/lib/spec/element/node.js +3 -0
- package/lib/spec/element/node.js.map +1 -0
- package/lib/spec/element/palette.d.ts +53 -0
- package/lib/spec/element/palette.js +3 -0
- package/lib/spec/element/palette.js.map +1 -0
- package/lib/spec/index.d.ts +11 -0
- package/lib/spec/index.js +3 -0
- package/lib/spec/index.js.map +1 -0
- package/lib/spec/layout.d.ts +4 -0
- package/lib/spec/layout.js.map +1 -0
- package/lib/spec/plugin.d.ts +4 -0
- package/lib/spec/plugin.js +3 -0
- package/lib/spec/plugin.js.map +1 -0
- package/lib/spec/spec.d.ts +76 -0
- package/lib/spec/spec.js.map +1 -0
- package/lib/spec/theme.d.ts +10 -0
- package/lib/spec/theme.js +3 -0
- package/lib/spec/theme.js.map +1 -0
- package/lib/spec/viewport.d.ts +86 -0
- package/lib/spec/viewport.js +3 -0
- package/lib/spec/viewport.js.map +1 -0
- package/lib/themes/base.d.ts +27 -0
- package/lib/themes/base.js +201 -0
- package/lib/themes/base.js.map +1 -0
- package/lib/themes/dark.d.ts +2 -0
- package/lib/themes/dark.js +19 -0
- package/lib/themes/dark.js.map +1 -0
- package/lib/themes/index.d.ts +2 -0
- package/lib/themes/index.js +8 -0
- package/lib/themes/index.js.map +1 -0
- package/lib/themes/light.d.ts +2 -0
- package/lib/themes/light.js +19 -0
- package/lib/themes/light.js.map +1 -0
- package/lib/themes/types.d.ts +10 -0
- package/lib/themes/types.js +3 -0
- package/lib/themes/types.js.map +1 -0
- package/lib/types/anchor.d.ts +3 -0
- package/lib/types/anchor.js +3 -0
- package/lib/types/anchor.js.map +1 -0
- package/lib/types/animation.d.ts +6 -0
- package/lib/types/animation.js +3 -0
- package/lib/types/animation.js.map +1 -0
- package/lib/types/behavior.d.ts +5 -45
- package/lib/types/behavior.js +0 -15
- package/lib/types/behavior.js.map +1 -1
- package/lib/types/callable.d.ts +30 -0
- package/lib/types/callable.js +3 -0
- package/lib/types/callable.js.map +1 -0
- package/lib/types/canvas.d.ts +1 -0
- package/lib/types/canvas.js +3 -0
- package/lib/types/canvas.js.map +1 -0
- package/lib/types/change.d.ts +51 -0
- package/lib/types/change.js +3 -0
- package/lib/types/change.js.map +1 -0
- package/lib/types/data.d.ts +44 -34
- package/lib/types/edge.d.ts +24 -104
- package/lib/types/element.d.ts +149 -0
- package/lib/types/element.js +3 -0
- package/lib/types/element.js.map +1 -0
- package/lib/types/enum.d.ts +1 -0
- package/lib/types/enum.js +3 -0
- package/lib/types/enum.js.map +1 -0
- package/lib/types/event.d.ts +4 -39
- package/lib/types/event.js +0 -31
- package/lib/types/event.js.map +1 -1
- package/lib/types/graphlib.d.ts +16 -0
- package/lib/types/graphlib.js +3 -0
- package/lib/types/graphlib.js.map +1 -0
- package/lib/types/index.d.ts +24 -18
- package/lib/types/index.js +0 -8
- package/lib/types/index.js.map +1 -1
- package/lib/types/node.d.ts +15 -185
- package/lib/types/padding.d.ts +2 -0
- package/lib/types/padding.js +3 -0
- package/lib/types/padding.js.map +1 -0
- package/lib/types/placement.d.ts +5 -0
- package/lib/types/placement.js +3 -0
- package/lib/types/placement.js.map +1 -0
- package/lib/types/point.d.ts +2 -0
- package/lib/types/point.js +3 -0
- package/lib/types/point.js.map +1 -0
- package/lib/types/position.d.ts +2 -0
- package/lib/types/position.js +3 -0
- package/lib/types/position.js.map +1 -0
- package/lib/types/prefix.d.ts +7 -0
- package/lib/types/prefix.js +3 -0
- package/lib/types/prefix.js.map +1 -0
- package/lib/types/size.d.ts +3 -0
- package/lib/types/size.js +3 -0
- package/lib/types/size.js.map +1 -0
- package/lib/types/state.d.ts +1 -0
- package/lib/types/state.js +3 -0
- package/lib/types/state.js.map +1 -0
- package/lib/types/style.d.ts +11 -0
- package/lib/types/style.js +3 -0
- package/lib/types/style.js.map +1 -0
- package/lib/types/tree.d.ts +5 -0
- package/lib/types/tree.js +3 -0
- package/lib/types/tree.js.map +1 -0
- package/lib/types/vector.d.ts +2 -0
- package/lib/types/vector.js +3 -0
- package/lib/types/vector.js.map +1 -0
- package/lib/types/viewport.d.ts +38 -0
- package/lib/types/viewport.js +3 -0
- package/lib/types/viewport.js.map +1 -0
- package/lib/utils/anchor.d.ts +9 -0
- package/lib/utils/anchor.js +20 -0
- package/lib/utils/anchor.js.map +1 -0
- package/lib/utils/animation.d.ts +73 -0
- package/lib/utils/animation.js +218 -0
- package/lib/utils/animation.js.map +1 -0
- package/lib/utils/array.d.ts +9 -0
- package/lib/utils/array.js +20 -0
- package/lib/utils/array.js.map +1 -0
- package/lib/utils/bbox.d.ts +109 -0
- package/lib/utils/bbox.js +222 -0
- package/lib/utils/bbox.js.map +1 -0
- package/lib/utils/cache.d.ts +36 -0
- package/lib/utils/cache.js +60 -0
- package/lib/utils/cache.js.map +1 -0
- package/lib/utils/change.d.ts +9 -0
- package/lib/utils/change.js +60 -0
- package/lib/utils/change.js.map +1 -0
- package/lib/utils/combo.d.ts +33 -0
- package/lib/utils/combo.js +117 -0
- package/lib/utils/combo.js.map +1 -0
- package/lib/utils/data.d.ts +34 -0
- package/lib/utils/data.js +65 -0
- package/lib/utils/data.js.map +1 -0
- package/lib/utils/diff.d.ts +15 -0
- package/lib/utils/diff.js +44 -0
- package/lib/utils/diff.js.map +1 -0
- package/lib/utils/dom.d.ts +6 -0
- package/lib/utils/dom.js +40 -0
- package/lib/utils/dom.js.map +1 -0
- package/lib/utils/edge.d.ts +158 -0
- package/lib/utils/edge.js +481 -0
- package/lib/utils/edge.js.map +1 -0
- package/lib/utils/element.d.ts +202 -0
- package/lib/utils/element.js +441 -0
- package/lib/utils/element.js.map +1 -0
- package/lib/utils/event/events.d.ts +31 -0
- package/lib/utils/event/events.js +55 -0
- package/lib/utils/event/events.js.map +1 -0
- package/lib/utils/event/index.d.ts +29 -0
- package/lib/utils/event/index.js +64 -0
- package/lib/utils/event/index.js.map +1 -0
- package/lib/utils/extension.d.ts +10 -0
- package/lib/utils/extension.js +29 -0
- package/lib/utils/extension.js.map +1 -0
- package/lib/utils/graphlib.d.ts +14 -0
- package/lib/utils/graphlib.js +50 -0
- package/lib/utils/graphlib.js.map +1 -0
- package/lib/utils/id.d.ts +18 -0
- package/lib/utils/id.js +32 -0
- package/lib/utils/id.js.map +1 -0
- package/lib/utils/is.d.ts +34 -0
- package/lib/utils/is.js +55 -0
- package/lib/utils/is.js.map +1 -0
- package/lib/utils/layout.d.ts +25 -0
- package/lib/utils/layout.js +44 -0
- package/lib/utils/layout.js.map +1 -0
- package/lib/utils/math.d.ts +10 -0
- package/lib/utils/math.js +17 -0
- package/lib/utils/math.js.map +1 -0
- package/lib/utils/padding.d.ts +9 -0
- package/lib/utils/padding.js +19 -0
- package/lib/utils/padding.js.map +1 -0
- package/lib/utils/palette.d.ts +33 -0
- package/lib/utils/palette.js +109 -0
- package/lib/utils/palette.js.map +1 -0
- package/lib/utils/placement.d.ts +9 -0
- package/lib/utils/placement.js +22 -0
- package/lib/utils/placement.js.map +1 -0
- package/lib/utils/point.d.ts +129 -0
- package/lib/utils/point.js +233 -0
- package/lib/utils/point.js.map +1 -0
- package/lib/utils/position.d.ts +37 -0
- package/lib/utils/position.js +58 -0
- package/lib/utils/position.js.map +1 -0
- package/lib/utils/prefix.d.ts +66 -0
- package/lib/utils/prefix.js +127 -0
- package/lib/utils/prefix.js.map +1 -0
- package/lib/utils/router/orth.d.ts +103 -0
- package/lib/utils/router/orth.js +292 -0
- package/lib/utils/router/orth.js.map +1 -0
- package/lib/utils/shape.d.ts +9 -0
- package/lib/utils/shape.js +26 -0
- package/lib/utils/shape.js.map +1 -0
- package/lib/utils/shortcut.d.ts +20 -0
- package/lib/utils/shortcut.js +60 -0
- package/lib/utils/shortcut.js.map +1 -0
- package/lib/utils/size.d.ts +7 -0
- package/lib/utils/size.js +17 -0
- package/lib/utils/size.js.map +1 -0
- package/lib/utils/style.d.ts +20 -0
- package/lib/utils/style.js +36 -0
- package/lib/utils/style.js.map +1 -0
- package/lib/utils/symbol.d.ts +30 -0
- package/lib/utils/symbol.js +71 -0
- package/lib/utils/symbol.js.map +1 -0
- package/lib/utils/text.d.ts +26 -0
- package/lib/utils/text.js +50 -0
- package/lib/utils/text.js.map +1 -0
- package/lib/utils/traverse.d.ts +14 -0
- package/lib/utils/traverse.js +27 -0
- package/lib/utils/traverse.js.map +1 -0
- package/lib/utils/tree.d.ts +17 -0
- package/lib/utils/tree.js +32 -0
- package/lib/utils/tree.js.map +1 -0
- package/lib/utils/vector.d.ts +142 -0
- package/lib/utils/vector.js +203 -0
- package/lib/utils/vector.js.map +1 -0
- package/lib/utils/visibility.d.ts +13 -0
- package/lib/utils/visibility.js +32 -0
- package/lib/utils/visibility.js.map +1 -0
- package/package.json +57 -89
- package/src/animations/executor.ts +95 -0
- package/src/animations/index.ts +19 -0
- package/src/animations/types.ts +68 -0
- package/src/behaviors/base-behavior.ts +6 -0
- package/src/behaviors/collapse-expand.ts +91 -0
- package/src/behaviors/drag-canvas.ts +114 -0
- package/src/behaviors/drag-element.ts +309 -0
- package/src/behaviors/index.ts +11 -0
- package/src/behaviors/types.ts +6 -0
- package/src/behaviors/zoom-canvas.ts +143 -0
- package/src/constants/animation.ts +10 -0
- package/src/constants/change.ts +16 -0
- package/src/constants/element.ts +5 -0
- package/src/constants/events/animation.ts +8 -0
- package/src/constants/events/canvas.ts +38 -0
- package/src/constants/events/combo.ts +3 -0
- package/src/constants/events/common.ts +42 -0
- package/src/constants/events/container.ts +6 -0
- package/src/constants/events/edge.ts +30 -0
- package/src/constants/events/graph.ts +62 -0
- package/src/constants/events/index.ts +8 -0
- package/src/constants/events/node.ts +36 -0
- package/src/constants/graphlib.ts +3 -0
- package/src/constants/index.ts +4 -0
- package/src/elements/combos/base-combo.ts +186 -0
- package/src/elements/combos/circle.ts +66 -0
- package/src/elements/combos/index.ts +7 -0
- package/src/elements/combos/rect.ts +38 -0
- package/src/elements/edges/base-edge.ts +277 -0
- package/src/elements/edges/cubic-horizontal.ts +42 -0
- package/src/elements/edges/cubic-vertical.ts +42 -0
- package/src/elements/edges/cubic.ts +68 -0
- package/src/elements/edges/index.ts +15 -0
- package/src/elements/edges/line.ts +28 -0
- package/src/elements/edges/polyline.ts +118 -0
- package/src/elements/edges/quadratic.ts +46 -0
- package/src/elements/index.ts +3 -0
- package/src/elements/nodes/base-node.ts +338 -0
- package/src/elements/nodes/circle.ts +47 -0
- package/src/elements/nodes/diamond.ts +30 -0
- package/src/elements/nodes/ellipse.ts +50 -0
- package/src/elements/nodes/image.ts +68 -0
- package/src/elements/nodes/index.ts +17 -0
- package/src/elements/nodes/polygon.ts +36 -0
- package/src/elements/nodes/rect.ts +51 -0
- package/src/elements/nodes/star.ts +49 -0
- package/src/elements/nodes/triangle.ts +69 -0
- package/src/elements/shapes/badge.ts +35 -0
- package/src/elements/shapes/base-shape.ts +151 -0
- package/src/elements/shapes/icon.ts +41 -0
- package/src/elements/shapes/index.ts +15 -0
- package/src/elements/shapes/label.ts +86 -0
- package/src/elements/types.ts +21 -0
- package/src/exports.ts +45 -0
- package/src/index.ts +3 -22
- package/src/layouts/hierarchy.d.ts +10 -0
- package/src/layouts/index.ts +15 -0
- package/src/layouts/types.ts +107 -0
- package/src/palettes/index.ts +54 -0
- package/src/palettes/types.ts +9 -0
- package/src/plugins/base-plugin.ts +6 -0
- package/src/plugins/grid-line.ts +98 -0
- package/src/plugins/index.ts +5 -0
- package/src/plugins/types.ts +5 -0
- package/src/preset.ts +9 -0
- package/src/registry/build-in.ts +111 -0
- package/src/registry/extension/index.ts +114 -0
- package/src/registry/extension/types.ts +43 -0
- package/src/registry/index.ts +103 -0
- package/src/registry/types.ts +31 -0
- package/src/runtime/behavior.ts +111 -0
- package/src/runtime/canvas.ts +266 -0
- package/src/runtime/data.ts +766 -0
- package/src/runtime/element.ts +766 -0
- package/src/runtime/graph.ts +703 -2790
- package/src/runtime/index.ts +7 -0
- package/src/runtime/layout.ts +396 -0
- package/src/runtime/plugin.ts +17 -0
- package/src/runtime/types.ts +70 -0
- package/src/runtime/viewport.ts +283 -0
- package/src/spec/behavior.ts +6 -0
- package/src/spec/canvas.ts +43 -0
- package/src/spec/data.ts +48 -0
- package/src/spec/element/animation.ts +16 -0
- package/src/spec/element/base.ts +6 -0
- package/src/spec/element/combo.ts +51 -0
- package/src/spec/element/edge.ts +49 -0
- package/src/spec/element/node.ts +51 -0
- package/src/spec/element/palette.ts +57 -0
- package/src/spec/index.ts +11 -0
- package/src/spec/layout.ts +7 -0
- package/src/spec/plugin.ts +6 -0
- package/src/spec/spec.ts +78 -0
- package/src/spec/theme.ts +11 -0
- package/src/spec/viewport.ts +85 -0
- package/src/themes/base.ts +236 -0
- package/src/themes/dark.ts +18 -0
- package/src/themes/index.ts +2 -0
- package/src/themes/light.ts +18 -0
- package/src/themes/types.ts +12 -0
- package/src/types/anchor.ts +5 -0
- package/src/types/animation.ts +9 -0
- package/src/types/behavior.ts +5 -47
- package/src/types/callable.ts +33 -0
- package/src/types/canvas.ts +1 -0
- package/src/types/change.ts +64 -0
- package/src/types/data.ts +53 -66
- package/src/types/edge.ts +27 -131
- package/src/types/element.ts +163 -0
- package/src/types/enum.ts +1 -0
- package/src/types/event.ts +4 -46
- package/src/types/graphlib.ts +28 -0
- package/src/types/index.ts +24 -56
- package/src/types/node.ts +14 -209
- package/src/types/padding.ts +3 -0
- package/src/types/placement.ts +17 -0
- package/src/types/point.ts +3 -0
- package/src/types/position.ts +3 -0
- package/src/types/prefix.ts +9 -0
- package/src/types/size.ts +5 -0
- package/src/types/state.ts +1 -0
- package/src/types/style.ts +12 -0
- package/src/types/tree.ts +5 -0
- package/src/types/vector.ts +3 -0
- package/src/types/viewport.ts +43 -0
- package/src/utils/anchor.ts +19 -0
- package/src/utils/animation.ts +236 -0
- package/src/utils/array.ts +15 -0
- package/src/utils/bbox.ts +229 -0
- package/src/utils/cache.ts +58 -0
- package/src/utils/change.ts +56 -0
- package/src/utils/combo.ts +133 -0
- package/src/utils/data.ts +64 -0
- package/src/utils/diff.ts +43 -0
- package/src/utils/dom.ts +44 -0
- package/src/utils/edge.ts +548 -0
- package/src/utils/element.ts +463 -0
- package/src/utils/event/events.ts +70 -0
- package/src/utils/event/index.ts +50 -0
- package/src/utils/extension.ts +26 -0
- package/src/utils/graphlib.ts +54 -0
- package/src/utils/id.ts +29 -0
- package/src/utils/is.ts +53 -0
- package/src/utils/layout.ts +39 -0
- package/src/utils/math.ts +12 -0
- package/src/utils/padding.ts +16 -0
- package/src/utils/palette.ts +118 -0
- package/src/utils/placement.ts +19 -0
- package/src/utils/point.ts +238 -0
- package/src/utils/position.ts +56 -0
- package/src/utils/prefix.ts +126 -0
- package/src/utils/router/orth.ts +323 -0
- package/src/utils/shape.ts +26 -0
- package/src/utils/shortcut.ts +77 -0
- package/src/utils/size.ts +13 -0
- package/src/utils/style.ts +38 -0
- package/src/utils/symbol.ts +72 -0
- package/src/utils/text.ts +51 -0
- package/src/utils/traverse.ts +33 -0
- package/src/utils/tree.ts +47 -0
- package/src/utils/vector.ts +201 -0
- package/src/utils/visibility.ts +31 -0
- package/LICENSE +0 -21
- package/esm/api-doc/behaviors.d.ts +0 -2
- package/esm/api-doc/behaviors.js +0 -2
- package/esm/api-doc/behaviors.js.map +0 -1
- package/esm/api-doc/graph.d.ts +0 -4
- package/esm/api-doc/graph.js +0 -4
- package/esm/api-doc/graph.js.map +0 -1
- package/esm/api-doc/item.d.ts +0 -11
- package/esm/api-doc/item.js +0 -5
- package/esm/api-doc/item.js.map +0 -1
- package/esm/api-doc/layout.d.ts +0 -1
- package/esm/api-doc/layout.js.map +0 -1
- package/esm/api-doc/plugins.d.ts +0 -1
- package/esm/api-doc/plugins.js +0 -2
- package/esm/api-doc/plugins.js.map +0 -1
- package/esm/api-doc/types.js.map +0 -1
- package/esm/api-doc/util.d.ts +0 -3
- package/esm/api-doc/util.js +0 -4
- package/esm/api-doc/util.js.map +0 -1
- package/esm/constant/index.d.ts +0 -1
- package/esm/constant/index.js +0 -2
- package/esm/constant/index.js.map +0 -1
- package/esm/constant/shape.d.ts +0 -23
- package/esm/constant/shape.js +0 -27
- package/esm/constant/shape.js.map +0 -1
- package/esm/item/combo.d.ts +0 -83
- package/esm/item/combo.js +0 -202
- package/esm/item/combo.js.map +0 -1
- package/esm/item/edge.d.ts +0 -82
- package/esm/item/edge.js +0 -287
- package/esm/item/edge.js.map +0 -1
- package/esm/item/item.d.ts +0 -202
- package/esm/item/item.js +0 -785
- package/esm/item/item.js.map +0 -1
- package/esm/item/node.d.ts +0 -64
- package/esm/item/node.js +0 -296
- package/esm/item/node.js.map +0 -1
- package/esm/runtime/controller/data.d.ts +0 -107
- package/esm/runtime/controller/data.js +0 -788
- package/esm/runtime/controller/data.js.map +0 -1
- package/esm/runtime/controller/index.d.ts +0 -7
- package/esm/runtime/controller/index.js +0 -8
- package/esm/runtime/controller/index.js.map +0 -1
- package/esm/runtime/controller/interaction.d.ts +0 -52
- package/esm/runtime/controller/interaction.js +0 -280
- package/esm/runtime/controller/interaction.js.map +0 -1
- package/esm/runtime/controller/item.d.ts +0 -156
- package/esm/runtime/controller/item.js +0 -1446
- package/esm/runtime/controller/item.js.map +0 -1
- package/esm/runtime/controller/layout.d.ts +0 -37
- package/esm/runtime/controller/layout.js +0 -422
- package/esm/runtime/controller/layout.js.map +0 -1
- package/esm/runtime/controller/plugin.d.ts +0 -48
- package/esm/runtime/controller/plugin.js +0 -219
- package/esm/runtime/controller/plugin.js.map +0 -1
- package/esm/runtime/controller/theme.d.ts +0 -29
- package/esm/runtime/controller/theme.js +0 -58
- package/esm/runtime/controller/theme.js.map +0 -1
- package/esm/runtime/controller/viewport.d.ts +0 -11
- package/esm/runtime/controller/viewport.js +0 -125
- package/esm/runtime/controller/viewport.js.map +0 -1
- package/esm/runtime/hooks.d.ts +0 -33
- package/esm/runtime/hooks.js +0 -74
- package/esm/runtime/hooks.js.map +0 -1
- package/esm/stdlib/behavior/activate-relations.d.ts +0 -61
- package/esm/stdlib/behavior/activate-relations.js +0 -85
- package/esm/stdlib/behavior/activate-relations.js.map +0 -1
- package/esm/stdlib/behavior/brush-select.d.ts +0 -115
- package/esm/stdlib/behavior/brush-select.js +0 -266
- package/esm/stdlib/behavior/brush-select.js.map +0 -1
- package/esm/stdlib/behavior/click-select.d.ts +0 -73
- package/esm/stdlib/behavior/click-select.js +0 -165
- package/esm/stdlib/behavior/click-select.js.map +0 -1
- package/esm/stdlib/behavior/collapse-expand-combo.d.ts +0 -28
- package/esm/stdlib/behavior/collapse-expand-combo.js +0 -35
- package/esm/stdlib/behavior/collapse-expand-combo.js.map +0 -1
- package/esm/stdlib/behavior/collapse-expand-tree.d.ts +0 -44
- package/esm/stdlib/behavior/collapse-expand-tree.js +0 -69
- package/esm/stdlib/behavior/collapse-expand-tree.js.map +0 -1
- package/esm/stdlib/behavior/create-edge.d.ts +0 -57
- package/esm/stdlib/behavior/create-edge.js +0 -215
- package/esm/stdlib/behavior/create-edge.js.map +0 -1
- package/esm/stdlib/behavior/drag-canvas.d.ts +0 -83
- package/esm/stdlib/behavior/drag-canvas.js +0 -298
- package/esm/stdlib/behavior/drag-canvas.js.map +0 -1
- package/esm/stdlib/behavior/drag-combo.d.ts +0 -111
- package/esm/stdlib/behavior/drag-combo.js +0 -391
- package/esm/stdlib/behavior/drag-combo.js.map +0 -1
- package/esm/stdlib/behavior/drag-node.d.ts +0 -104
- package/esm/stdlib/behavior/drag-node.js +0 -550
- package/esm/stdlib/behavior/drag-node.js.map +0 -1
- package/esm/stdlib/behavior/hover-activate.d.ts +0 -42
- package/esm/stdlib/behavior/hover-activate.js +0 -64
- package/esm/stdlib/behavior/hover-activate.js.map +0 -1
- package/esm/stdlib/behavior/index.d.ts +0 -18
- package/esm/stdlib/behavior/index.js +0 -19
- package/esm/stdlib/behavior/index.js.map +0 -1
- package/esm/stdlib/behavior/lasso-select.d.ts +0 -31
- package/esm/stdlib/behavior/lasso-select.js +0 -78
- package/esm/stdlib/behavior/lasso-select.js.map +0 -1
- package/esm/stdlib/behavior/orbit-canvas-3d.d.ts +0 -36
- package/esm/stdlib/behavior/orbit-canvas-3d.js +0 -62
- package/esm/stdlib/behavior/orbit-canvas-3d.js.map +0 -1
- package/esm/stdlib/behavior/rotate-canvas-3d.d.ts +0 -60
- package/esm/stdlib/behavior/rotate-canvas-3d.js +0 -123
- package/esm/stdlib/behavior/rotate-canvas-3d.js.map +0 -1
- package/esm/stdlib/behavior/scroll-canvas.d.ts +0 -67
- package/esm/stdlib/behavior/scroll-canvas.js +0 -266
- package/esm/stdlib/behavior/scroll-canvas.js.map +0 -1
- package/esm/stdlib/behavior/shortcuts-call.d.ts +0 -38
- package/esm/stdlib/behavior/shortcuts-call.js +0 -87
- package/esm/stdlib/behavior/shortcuts-call.js.map +0 -1
- package/esm/stdlib/behavior/track-canvas-3d.d.ts +0 -36
- package/esm/stdlib/behavior/track-canvas-3d.js +0 -62
- package/esm/stdlib/behavior/track-canvas-3d.js.map +0 -1
- package/esm/stdlib/behavior/types.d.ts +0 -13
- package/esm/stdlib/behavior/types.js.map +0 -1
- package/esm/stdlib/behavior/zoom-canvas-3d.d.ts +0 -58
- package/esm/stdlib/behavior/zoom-canvas-3d.js +0 -101
- package/esm/stdlib/behavior/zoom-canvas-3d.js.map +0 -1
- package/esm/stdlib/behavior/zoom-canvas.d.ts +0 -86
- package/esm/stdlib/behavior/zoom-canvas.js +0 -315
- package/esm/stdlib/behavior/zoom-canvas.js.map +0 -1
- package/esm/stdlib/data/index.d.ts +0 -4
- package/esm/stdlib/data/index.js +0 -5
- package/esm/stdlib/data/index.js.map +0 -1
- package/esm/stdlib/data/mapNodeSize.d.ts +0 -11
- package/esm/stdlib/data/mapNodeSize.js +0 -53
- package/esm/stdlib/data/mapNodeSize.js.map +0 -1
- package/esm/stdlib/data/processParallelEdges.d.ts +0 -21
- package/esm/stdlib/data/processParallelEdges.js +0 -127
- package/esm/stdlib/data/processParallelEdges.js.map +0 -1
- package/esm/stdlib/data/transformV4Data.d.ts +0 -8
- package/esm/stdlib/data/transformV4Data.js +0 -156
- package/esm/stdlib/data/transformV4Data.js.map +0 -1
- package/esm/stdlib/data/validateData.d.ts +0 -8
- package/esm/stdlib/data/validateData.js +0 -112
- package/esm/stdlib/data/validateData.js.map +0 -1
- package/esm/stdlib/index.d.ts +0 -172
- package/esm/stdlib/index.js +0 -221
- package/esm/stdlib/index.js.map +0 -1
- package/esm/stdlib/item/combo/circle.d.ts +0 -29
- package/esm/stdlib/item/combo/circle.js +0 -61
- package/esm/stdlib/item/combo/circle.js.map +0 -1
- package/esm/stdlib/item/combo/index.d.ts +0 -2
- package/esm/stdlib/item/combo/index.js +0 -3
- package/esm/stdlib/item/combo/index.js.map +0 -1
- package/esm/stdlib/item/combo/rect.d.ts +0 -31
- package/esm/stdlib/item/combo/rect.js +0 -70
- package/esm/stdlib/item/combo/rect.js.map +0 -1
- package/esm/stdlib/item/edge/base.d.ts +0 -216
- package/esm/stdlib/item/edge/base.js +0 -384
- package/esm/stdlib/item/edge/base.js.map +0 -1
- package/esm/stdlib/item/edge/cubic-horizontal.d.ts +0 -36
- package/esm/stdlib/item/edge/cubic-horizontal.js +0 -56
- package/esm/stdlib/item/edge/cubic-horizontal.js.map +0 -1
- package/esm/stdlib/item/edge/cubic-vertical.d.ts +0 -36
- package/esm/stdlib/item/edge/cubic-vertical.js +0 -56
- package/esm/stdlib/item/edge/cubic-vertical.js.map +0 -1
- package/esm/stdlib/item/edge/cubic.d.ts +0 -59
- package/esm/stdlib/item/edge/cubic.js +0 -121
- package/esm/stdlib/item/edge/cubic.js.map +0 -1
- package/esm/stdlib/item/edge/index.d.ts +0 -7
- package/esm/stdlib/item/edge/index.js +0 -8
- package/esm/stdlib/item/edge/index.js.map +0 -1
- package/esm/stdlib/item/edge/line.d.ts +0 -33
- package/esm/stdlib/item/edge/line.js +0 -68
- package/esm/stdlib/item/edge/line.js.map +0 -1
- package/esm/stdlib/item/edge/loop.d.ts +0 -32
- package/esm/stdlib/item/edge/loop.js +0 -120
- package/esm/stdlib/item/edge/loop.js.map +0 -1
- package/esm/stdlib/item/edge/polyline.d.ts +0 -45
- package/esm/stdlib/item/edge/polyline.js +0 -97
- package/esm/stdlib/item/edge/polyline.js.map +0 -1
- package/esm/stdlib/item/edge/quadratic.d.ts +0 -40
- package/esm/stdlib/item/edge/quadratic.js +0 -83
- package/esm/stdlib/item/edge/quadratic.js.map +0 -1
- package/esm/stdlib/item/node/base.d.ts +0 -246
- package/esm/stdlib/item/node/base.js +0 -475
- package/esm/stdlib/item/node/base.js.map +0 -1
- package/esm/stdlib/item/node/base3d.d.ts +0 -106
- package/esm/stdlib/item/node/base3d.js +0 -141
- package/esm/stdlib/item/node/base3d.js.map +0 -1
- package/esm/stdlib/item/node/circle.d.ts +0 -30
- package/esm/stdlib/item/node/circle.js +0 -62
- package/esm/stdlib/item/node/circle.js.map +0 -1
- package/esm/stdlib/item/node/cube.d.ts +0 -33
- package/esm/stdlib/item/node/cube.js +0 -57
- package/esm/stdlib/item/node/cube.js.map +0 -1
- package/esm/stdlib/item/node/diamond.d.ts +0 -32
- package/esm/stdlib/item/node/diamond.js +0 -88
- package/esm/stdlib/item/node/diamond.js.map +0 -1
- package/esm/stdlib/item/node/donut.d.ts +0 -70
- package/esm/stdlib/item/node/donut.js +0 -217
- package/esm/stdlib/item/node/donut.js.map +0 -1
- package/esm/stdlib/item/node/ellipse.d.ts +0 -32
- package/esm/stdlib/item/node/ellipse.js +0 -76
- package/esm/stdlib/item/node/ellipse.js.map +0 -1
- package/esm/stdlib/item/node/hexagon.d.ts +0 -33
- package/esm/stdlib/item/node/hexagon.js +0 -114
- package/esm/stdlib/item/node/hexagon.js.map +0 -1
- package/esm/stdlib/item/node/image.d.ts +0 -40
- package/esm/stdlib/item/node/image.js +0 -120
- package/esm/stdlib/item/node/image.js.map +0 -1
- package/esm/stdlib/item/node/index.d.ts +0 -15
- package/esm/stdlib/item/node/index.js +0 -16
- package/esm/stdlib/item/node/index.js.map +0 -1
- package/esm/stdlib/item/node/modelRect.d.ts +0 -93
- package/esm/stdlib/item/node/modelRect.js +0 -243
- package/esm/stdlib/item/node/modelRect.js.map +0 -1
- package/esm/stdlib/item/node/plane.d.ts +0 -38
- package/esm/stdlib/item/node/plane.js +0 -62
- package/esm/stdlib/item/node/plane.js.map +0 -1
- package/esm/stdlib/item/node/rect.d.ts +0 -32
- package/esm/stdlib/item/node/rect.js +0 -80
- package/esm/stdlib/item/node/rect.js.map +0 -1
- package/esm/stdlib/item/node/sphere.d.ts +0 -33
- package/esm/stdlib/item/node/sphere.js +0 -57
- package/esm/stdlib/item/node/sphere.js.map +0 -1
- package/esm/stdlib/item/node/star.d.ts +0 -32
- package/esm/stdlib/item/node/star.js +0 -121
- package/esm/stdlib/item/node/star.js.map +0 -1
- package/esm/stdlib/item/node/triangle.d.ts +0 -44
- package/esm/stdlib/item/node/triangle.js +0 -187
- package/esm/stdlib/item/node/triangle.js.map +0 -1
- package/esm/stdlib/plugin/edgeBundling/index.d.ts +0 -75
- package/esm/stdlib/plugin/edgeBundling/index.js +0 -364
- package/esm/stdlib/plugin/edgeBundling/index.js.map +0 -1
- package/esm/stdlib/plugin/edgeFilterLens/index.d.ts +0 -66
- package/esm/stdlib/plugin/edgeFilterLens/index.js +0 -309
- package/esm/stdlib/plugin/edgeFilterLens/index.js.map +0 -1
- package/esm/stdlib/plugin/fisheye/index.d.ts +0 -130
- package/esm/stdlib/plugin/fisheye/index.js +0 -489
- package/esm/stdlib/plugin/fisheye/index.js.map +0 -1
- package/esm/stdlib/plugin/grid/index.d.ts +0 -36
- package/esm/stdlib/plugin/grid/index.js +0 -80
- package/esm/stdlib/plugin/grid/index.js.map +0 -1
- package/esm/stdlib/plugin/history/combo-command.d.ts +0 -9
- package/esm/stdlib/plugin/history/combo-command.js +0 -21
- package/esm/stdlib/plugin/history/combo-command.js.map +0 -1
- package/esm/stdlib/plugin/history/command.d.ts +0 -18
- package/esm/stdlib/plugin/history/command.js +0 -51
- package/esm/stdlib/plugin/history/command.js.map +0 -1
- package/esm/stdlib/plugin/history/index.d.ts +0 -112
- package/esm/stdlib/plugin/history/index.js +0 -275
- package/esm/stdlib/plugin/history/index.js.map +0 -1
- package/esm/stdlib/plugin/history/item-data-command.d.ts +0 -14
- package/esm/stdlib/plugin/history/item-data-command.js +0 -72
- package/esm/stdlib/plugin/history/item-data-command.js.map +0 -1
- package/esm/stdlib/plugin/history/layer-updated-command.d.ts +0 -9
- package/esm/stdlib/plugin/history/layer-updated-command.js +0 -21
- package/esm/stdlib/plugin/history/layer-updated-command.js.map +0 -1
- package/esm/stdlib/plugin/history/state-updated-command.d.ts +0 -9
- package/esm/stdlib/plugin/history/state-updated-command.js +0 -20
- package/esm/stdlib/plugin/history/state-updated-command.js.map +0 -1
- package/esm/stdlib/plugin/history/visibility-updated-command.d.ts +0 -10
- package/esm/stdlib/plugin/history/visibility-updated-command.js +0 -23
- package/esm/stdlib/plugin/history/visibility-updated-command.js.map +0 -1
- package/esm/stdlib/plugin/hull/bubbleset.d.ts +0 -9
- package/esm/stdlib/plugin/hull/bubbleset.js +0 -592
- package/esm/stdlib/plugin/hull/bubbleset.js.map +0 -1
- package/esm/stdlib/plugin/hull/convexHull.d.ts +0 -14
- package/esm/stdlib/plugin/hull/convexHull.js +0 -56
- package/esm/stdlib/plugin/hull/convexHull.js.map +0 -1
- package/esm/stdlib/plugin/hull/hullComponent.d.ts +0 -87
- package/esm/stdlib/plugin/hull/hullComponent.js +0 -378
- package/esm/stdlib/plugin/hull/hullComponent.js.map +0 -1
- package/esm/stdlib/plugin/hull/index.d.ts +0 -59
- package/esm/stdlib/plugin/hull/index.js +0 -161
- package/esm/stdlib/plugin/hull/index.js.map +0 -1
- package/esm/stdlib/plugin/hull/types.d.ts +0 -15
- package/esm/stdlib/plugin/hull/types.js.map +0 -1
- package/esm/stdlib/plugin/hull/util.d.ts +0 -77
- package/esm/stdlib/plugin/hull/util.js +0 -405
- package/esm/stdlib/plugin/hull/util.js.map +0 -1
- package/esm/stdlib/plugin/index.d.ts +0 -13
- package/esm/stdlib/plugin/index.js +0 -14
- package/esm/stdlib/plugin/index.js.map +0 -1
- package/esm/stdlib/plugin/legend/index.d.ts +0 -164
- package/esm/stdlib/plugin/legend/index.js +0 -596
- package/esm/stdlib/plugin/legend/index.js.map +0 -1
- package/esm/stdlib/plugin/lodController/index.d.ts +0 -73
- package/esm/stdlib/plugin/lodController/index.js +0 -558
- package/esm/stdlib/plugin/lodController/index.js.map +0 -1
- package/esm/stdlib/plugin/menu/index.d.ts +0 -55
- package/esm/stdlib/plugin/menu/index.js +0 -238
- package/esm/stdlib/plugin/menu/index.js.map +0 -1
- package/esm/stdlib/plugin/minimap/index.d.ts +0 -118
- package/esm/stdlib/plugin/minimap/index.js +0 -681
- package/esm/stdlib/plugin/minimap/index.js.map +0 -1
- package/esm/stdlib/plugin/snapline/index.d.ts +0 -167
- package/esm/stdlib/plugin/snapline/index.js +0 -1063
- package/esm/stdlib/plugin/snapline/index.js.map +0 -1
- package/esm/stdlib/plugin/timebar/index.d.ts +0 -98
- package/esm/stdlib/plugin/timebar/index.js +0 -303
- package/esm/stdlib/plugin/timebar/index.js.map +0 -1
- package/esm/stdlib/plugin/toolbar/index.d.ts +0 -59
- package/esm/stdlib/plugin/toolbar/index.js +0 -213
- package/esm/stdlib/plugin/toolbar/index.js.map +0 -1
- package/esm/stdlib/plugin/tooltip/index.d.ts +0 -96
- package/esm/stdlib/plugin/tooltip/index.js +0 -377
- package/esm/stdlib/plugin/tooltip/index.js.map +0 -1
- package/esm/stdlib/plugin/types.d.ts +0 -11
- package/esm/stdlib/plugin/types.js.map +0 -1
- package/esm/stdlib/plugin/watermarker/index.d.ts +0 -78
- package/esm/stdlib/plugin/watermarker/index.js +0 -243
- package/esm/stdlib/plugin/watermarker/index.js.map +0 -1
- package/esm/stdlib/selector/lasso.d.ts +0 -15
- package/esm/stdlib/selector/lasso.js +0 -61
- package/esm/stdlib/selector/lasso.js.map +0 -1
- package/esm/stdlib/selector/rect.d.ts +0 -16
- package/esm/stdlib/selector/rect.js +0 -54
- package/esm/stdlib/selector/rect.js.map +0 -1
- package/esm/stdlib/theme/dark.d.ts +0 -2
- package/esm/stdlib/theme/dark.js +0 -329
- package/esm/stdlib/theme/dark.js.map +0 -1
- package/esm/stdlib/theme/index.d.ts +0 -2
- package/esm/stdlib/theme/index.js +0 -3
- package/esm/stdlib/theme/index.js.map +0 -1
- package/esm/stdlib/theme/light.d.ts +0 -2
- package/esm/stdlib/theme/light.js +0 -330
- package/esm/stdlib/theme/light.js.map +0 -1
- package/esm/stdlib/themeSolver/base.d.ts +0 -15
- package/esm/stdlib/themeSolver/base.js +0 -11
- package/esm/stdlib/themeSolver/base.js.map +0 -1
- package/esm/stdlib/themeSolver/index.d.ts +0 -3
- package/esm/stdlib/themeSolver/index.js +0 -4
- package/esm/stdlib/themeSolver/index.js.map +0 -1
- package/esm/stdlib/themeSolver/spec.d.ts +0 -35
- package/esm/stdlib/themeSolver/spec.js +0 -81
- package/esm/stdlib/themeSolver/spec.js.map +0 -1
- package/esm/stdlib/themeSolver/subject.d.ts +0 -41
- package/esm/stdlib/themeSolver/subject.js +0 -396
- package/esm/stdlib/themeSolver/subject.js.map +0 -1
- package/esm/types/animate.d.ts +0 -59
- package/esm/types/animate.js +0 -2
- package/esm/types/animate.js.map +0 -1
- package/esm/types/combo.d.ts +0 -135
- package/esm/types/combo.js.map +0 -1
- package/esm/types/common.d.ts +0 -17
- package/esm/types/common.js +0 -2
- package/esm/types/common.js.map +0 -1
- package/esm/types/graph.d.ts +0 -688
- package/esm/types/graph.js +0 -2
- package/esm/types/graph.js.map +0 -1
- package/esm/types/history.d.ts +0 -28
- package/esm/types/history.js +0 -6
- package/esm/types/history.js.map +0 -1
- package/esm/types/hook.d.ts +0 -159
- package/esm/types/hook.js +0 -2
- package/esm/types/hook.js.map +0 -1
- package/esm/types/item.d.ts +0 -233
- package/esm/types/item.js +0 -16
- package/esm/types/item.js.map +0 -1
- package/esm/types/layout.d.ts +0 -77
- package/esm/types/layout.js +0 -20
- package/esm/types/layout.js.map +0 -1
- package/esm/types/loop.d.ts +0 -21
- package/esm/types/loop.js +0 -12
- package/esm/types/loop.js.map +0 -1
- package/esm/types/plugin.d.ts +0 -45
- package/esm/types/plugin.js +0 -54
- package/esm/types/plugin.js.map +0 -1
- package/esm/types/render.d.ts +0 -1
- package/esm/types/render.js +0 -2
- package/esm/types/render.js.map +0 -1
- package/esm/types/spec.d.ts +0 -100
- package/esm/types/spec.js.map +0 -1
- package/esm/types/stdlib.d.ts +0 -13
- package/esm/types/stdlib.js +0 -2
- package/esm/types/stdlib.js.map +0 -1
- package/esm/types/theme.d.ts +0 -168
- package/esm/types/theme.js +0 -14
- package/esm/types/theme.js.map +0 -1
- package/esm/types/view.d.ts +0 -33
- package/esm/types/view.js +0 -2
- package/esm/types/view.js.map +0 -1
- package/esm/util/animate.d.ts +0 -111
- package/esm/util/animate.js +0 -436
- package/esm/util/animate.js.map +0 -1
- package/esm/util/array.d.ts +0 -29
- package/esm/util/array.js +0 -73
- package/esm/util/array.js.map +0 -1
- package/esm/util/arrow.d.ts +0 -17
- package/esm/util/arrow.js +0 -56
- package/esm/util/arrow.js.map +0 -1
- package/esm/util/bbox.d.ts +0 -127
- package/esm/util/bbox.js +0 -299
- package/esm/util/bbox.js.map +0 -1
- package/esm/util/behavior.d.ts +0 -2
- package/esm/util/behavior.js +0 -12
- package/esm/util/behavior.js.map +0 -1
- package/esm/util/canvas.d.ts +0 -19
- package/esm/util/canvas.js +0 -72
- package/esm/util/canvas.js.map +0 -1
- package/esm/util/data.d.ts +0 -112
- package/esm/util/data.js +0 -311
- package/esm/util/data.js.map +0 -1
- package/esm/util/dom.d.ts +0 -15
- package/esm/util/dom.js +0 -29
- package/esm/util/dom.js.map +0 -1
- package/esm/util/event.d.ts +0 -42
- package/esm/util/event.js +0 -103
- package/esm/util/event.js.map +0 -1
- package/esm/util/extend.d.ts +0 -27
- package/esm/util/extend.js +0 -21
- package/esm/util/extend.js.map +0 -1
- package/esm/util/extension.d.ts +0 -10
- package/esm/util/extension.js +0 -24
- package/esm/util/extension.js.map +0 -1
- package/esm/util/index.d.ts +0 -7
- package/esm/util/index.js +0 -8
- package/esm/util/index.js.map +0 -1
- package/esm/util/item.d.ts +0 -30
- package/esm/util/item.js +0 -90
- package/esm/util/item.js.map +0 -1
- package/esm/util/layout.d.ts +0 -51
- package/esm/util/layout.js +0 -205
- package/esm/util/layout.js.map +0 -1
- package/esm/util/loop.d.ts +0 -38
- package/esm/util/loop.js +0 -118
- package/esm/util/loop.js.map +0 -1
- package/esm/util/mapper.d.ts +0 -17
- package/esm/util/mapper.js +0 -55
- package/esm/util/mapper.js.map +0 -1
- package/esm/util/math.d.ts +0 -23
- package/esm/util/math.js +0 -23
- package/esm/util/math.js.map +0 -1
- package/esm/util/matrix.d.ts +0 -6
- package/esm/util/matrix.js +0 -48
- package/esm/util/matrix.js.map +0 -1
- package/esm/util/mock.d.ts +0 -30
- package/esm/util/mock.js +0 -69
- package/esm/util/mock.js.map +0 -1
- package/esm/util/path.d.ts +0 -16
- package/esm/util/path.js +0 -115
- package/esm/util/path.js.map +0 -1
- package/esm/util/point.d.ts +0 -83
- package/esm/util/point.js +0 -192
- package/esm/util/point.js.map +0 -1
- package/esm/util/polyline.d.ts +0 -124
- package/esm/util/polyline.js +0 -511
- package/esm/util/polyline.js.map +0 -1
- package/esm/util/router.d.ts +0 -32
- package/esm/util/router.js +0 -384
- package/esm/util/router.js.map +0 -1
- package/esm/util/shape.d.ts +0 -154
- package/esm/util/shape.js +0 -642
- package/esm/util/shape.js.map +0 -1
- package/esm/util/shape3d.d.ts +0 -23
- package/esm/util/shape3d.js +0 -149
- package/esm/util/shape3d.js.map +0 -1
- package/esm/util/text.d.ts +0 -18
- package/esm/util/text.js +0 -37
- package/esm/util/text.js.map +0 -1
- package/esm/util/type.d.ts +0 -8
- package/esm/util/type.js +0 -8
- package/esm/util/type.js.map +0 -1
- package/esm/util/warn.d.ts +0 -14
- package/esm/util/warn.js +0 -4
- package/esm/util/warn.js.map +0 -1
- package/esm/util/zoom.d.ts +0 -14
- package/esm/util/zoom.js +0 -35
- package/esm/util/zoom.js.map +0 -1
- package/lib/api-doc/behaviors.d.ts +0 -2
- package/lib/api-doc/behaviors.js +0 -18
- package/lib/api-doc/behaviors.js.map +0 -1
- package/lib/api-doc/graph.d.ts +0 -4
- package/lib/api-doc/graph.js +0 -31
- package/lib/api-doc/graph.js.map +0 -1
- package/lib/api-doc/item.d.ts +0 -11
- package/lib/api-doc/item.js +0 -25
- package/lib/api-doc/item.js.map +0 -1
- package/lib/api-doc/layout.d.ts +0 -1
- package/lib/api-doc/layout.js.map +0 -1
- package/lib/api-doc/plugins.d.ts +0 -1
- package/lib/api-doc/plugins.js +0 -18
- package/lib/api-doc/plugins.js.map +0 -1
- package/lib/api-doc/types.js.map +0 -1
- package/lib/api-doc/util.d.ts +0 -3
- package/lib/api-doc/util.js +0 -10
- package/lib/api-doc/util.js.map +0 -1
- package/lib/constant/index.d.ts +0 -1
- package/lib/constant/index.js +0 -18
- package/lib/constant/index.js.map +0 -1
- package/lib/constant/shape.d.ts +0 -23
- package/lib/constant/shape.js +0 -30
- package/lib/constant/shape.js.map +0 -1
- package/lib/item/combo.d.ts +0 -83
- package/lib/item/combo.js +0 -208
- package/lib/item/combo.js.map +0 -1
- package/lib/item/edge.d.ts +0 -82
- package/lib/item/edge.js +0 -293
- package/lib/item/edge.js.map +0 -1
- package/lib/item/item.d.ts +0 -202
- package/lib/item/item.js +0 -788
- package/lib/item/item.js.map +0 -1
- package/lib/item/node.d.ts +0 -64
- package/lib/item/node.js +0 -302
- package/lib/item/node.js.map +0 -1
- package/lib/runtime/controller/data.d.ts +0 -107
- package/lib/runtime/controller/data.js +0 -792
- package/lib/runtime/controller/data.js.map +0 -1
- package/lib/runtime/controller/index.d.ts +0 -7
- package/lib/runtime/controller/index.js +0 -24
- package/lib/runtime/controller/index.js.map +0 -1
- package/lib/runtime/controller/interaction.d.ts +0 -52
- package/lib/runtime/controller/interaction.js +0 -284
- package/lib/runtime/controller/interaction.js.map +0 -1
- package/lib/runtime/controller/item.d.ts +0 -156
- package/lib/runtime/controller/item.js +0 -1453
- package/lib/runtime/controller/item.js.map +0 -1
- package/lib/runtime/controller/layout.d.ts +0 -37
- package/lib/runtime/controller/layout.js +0 -426
- package/lib/runtime/controller/layout.js.map +0 -1
- package/lib/runtime/controller/plugin.d.ts +0 -48
- package/lib/runtime/controller/plugin.js +0 -226
- package/lib/runtime/controller/plugin.js.map +0 -1
- package/lib/runtime/controller/theme.d.ts +0 -29
- package/lib/runtime/controller/theme.js +0 -65
- package/lib/runtime/controller/theme.js.map +0 -1
- package/lib/runtime/controller/viewport.d.ts +0 -11
- package/lib/runtime/controller/viewport.js +0 -129
- package/lib/runtime/controller/viewport.js.map +0 -1
- package/lib/runtime/hooks.d.ts +0 -33
- package/lib/runtime/hooks.js +0 -77
- package/lib/runtime/hooks.js.map +0 -1
- package/lib/stdlib/behavior/activate-relations.d.ts +0 -61
- package/lib/stdlib/behavior/activate-relations.js +0 -89
- package/lib/stdlib/behavior/activate-relations.js.map +0 -1
- package/lib/stdlib/behavior/brush-select.d.ts +0 -115
- package/lib/stdlib/behavior/brush-select.js +0 -273
- package/lib/stdlib/behavior/brush-select.js.map +0 -1
- package/lib/stdlib/behavior/click-select.d.ts +0 -73
- package/lib/stdlib/behavior/click-select.js +0 -169
- package/lib/stdlib/behavior/click-select.js.map +0 -1
- package/lib/stdlib/behavior/collapse-expand-combo.d.ts +0 -28
- package/lib/stdlib/behavior/collapse-expand-combo.js +0 -39
- package/lib/stdlib/behavior/collapse-expand-combo.js.map +0 -1
- package/lib/stdlib/behavior/collapse-expand-tree.d.ts +0 -44
- package/lib/stdlib/behavior/collapse-expand-tree.js +0 -73
- package/lib/stdlib/behavior/collapse-expand-tree.js.map +0 -1
- package/lib/stdlib/behavior/create-edge.d.ts +0 -57
- package/lib/stdlib/behavior/create-edge.js +0 -219
- package/lib/stdlib/behavior/create-edge.js.map +0 -1
- package/lib/stdlib/behavior/drag-canvas.d.ts +0 -83
- package/lib/stdlib/behavior/drag-canvas.js +0 -302
- package/lib/stdlib/behavior/drag-canvas.js.map +0 -1
- package/lib/stdlib/behavior/drag-combo.d.ts +0 -111
- package/lib/stdlib/behavior/drag-combo.js +0 -395
- package/lib/stdlib/behavior/drag-combo.js.map +0 -1
- package/lib/stdlib/behavior/drag-node.d.ts +0 -104
- package/lib/stdlib/behavior/drag-node.js +0 -554
- package/lib/stdlib/behavior/drag-node.js.map +0 -1
- package/lib/stdlib/behavior/hover-activate.d.ts +0 -42
- package/lib/stdlib/behavior/hover-activate.js +0 -68
- package/lib/stdlib/behavior/hover-activate.js.map +0 -1
- package/lib/stdlib/behavior/index.d.ts +0 -18
- package/lib/stdlib/behavior/index.js +0 -35
- package/lib/stdlib/behavior/index.js.map +0 -1
- package/lib/stdlib/behavior/lasso-select.d.ts +0 -31
- package/lib/stdlib/behavior/lasso-select.js +0 -85
- package/lib/stdlib/behavior/lasso-select.js.map +0 -1
- package/lib/stdlib/behavior/orbit-canvas-3d.d.ts +0 -36
- package/lib/stdlib/behavior/orbit-canvas-3d.js +0 -66
- package/lib/stdlib/behavior/orbit-canvas-3d.js.map +0 -1
- package/lib/stdlib/behavior/rotate-canvas-3d.d.ts +0 -60
- package/lib/stdlib/behavior/rotate-canvas-3d.js +0 -127
- package/lib/stdlib/behavior/rotate-canvas-3d.js.map +0 -1
- package/lib/stdlib/behavior/scroll-canvas.d.ts +0 -67
- package/lib/stdlib/behavior/scroll-canvas.js +0 -270
- package/lib/stdlib/behavior/scroll-canvas.js.map +0 -1
- package/lib/stdlib/behavior/shortcuts-call.d.ts +0 -38
- package/lib/stdlib/behavior/shortcuts-call.js +0 -91
- package/lib/stdlib/behavior/shortcuts-call.js.map +0 -1
- package/lib/stdlib/behavior/track-canvas-3d.d.ts +0 -36
- package/lib/stdlib/behavior/track-canvas-3d.js +0 -66
- package/lib/stdlib/behavior/track-canvas-3d.js.map +0 -1
- package/lib/stdlib/behavior/types.d.ts +0 -13
- package/lib/stdlib/behavior/types.js.map +0 -1
- package/lib/stdlib/behavior/zoom-canvas-3d.d.ts +0 -58
- package/lib/stdlib/behavior/zoom-canvas-3d.js +0 -105
- package/lib/stdlib/behavior/zoom-canvas-3d.js.map +0 -1
- package/lib/stdlib/behavior/zoom-canvas.d.ts +0 -86
- package/lib/stdlib/behavior/zoom-canvas.js +0 -319
- package/lib/stdlib/behavior/zoom-canvas.js.map +0 -1
- package/lib/stdlib/data/index.d.ts +0 -4
- package/lib/stdlib/data/index.js +0 -21
- package/lib/stdlib/data/index.js.map +0 -1
- package/lib/stdlib/data/mapNodeSize.d.ts +0 -11
- package/lib/stdlib/data/mapNodeSize.js +0 -57
- package/lib/stdlib/data/mapNodeSize.js.map +0 -1
- package/lib/stdlib/data/processParallelEdges.d.ts +0 -21
- package/lib/stdlib/data/processParallelEdges.js +0 -131
- package/lib/stdlib/data/processParallelEdges.js.map +0 -1
- package/lib/stdlib/data/transformV4Data.d.ts +0 -8
- package/lib/stdlib/data/transformV4Data.js +0 -160
- package/lib/stdlib/data/transformV4Data.js.map +0 -1
- package/lib/stdlib/data/validateData.d.ts +0 -8
- package/lib/stdlib/data/validateData.js +0 -116
- package/lib/stdlib/data/validateData.js.map +0 -1
- package/lib/stdlib/index.d.ts +0 -172
- package/lib/stdlib/index.js +0 -253
- package/lib/stdlib/index.js.map +0 -1
- package/lib/stdlib/item/combo/circle.d.ts +0 -29
- package/lib/stdlib/item/combo/circle.js +0 -65
- package/lib/stdlib/item/combo/circle.js.map +0 -1
- package/lib/stdlib/item/combo/index.d.ts +0 -2
- package/lib/stdlib/item/combo/index.js +0 -19
- package/lib/stdlib/item/combo/index.js.map +0 -1
- package/lib/stdlib/item/combo/rect.d.ts +0 -31
- package/lib/stdlib/item/combo/rect.js +0 -74
- package/lib/stdlib/item/combo/rect.js.map +0 -1
- package/lib/stdlib/item/edge/base.d.ts +0 -216
- package/lib/stdlib/item/edge/base.js +0 -388
- package/lib/stdlib/item/edge/base.js.map +0 -1
- package/lib/stdlib/item/edge/cubic-horizontal.d.ts +0 -36
- package/lib/stdlib/item/edge/cubic-horizontal.js +0 -60
- package/lib/stdlib/item/edge/cubic-horizontal.js.map +0 -1
- package/lib/stdlib/item/edge/cubic-vertical.d.ts +0 -36
- package/lib/stdlib/item/edge/cubic-vertical.js +0 -60
- package/lib/stdlib/item/edge/cubic-vertical.js.map +0 -1
- package/lib/stdlib/item/edge/cubic.d.ts +0 -59
- package/lib/stdlib/item/edge/cubic.js +0 -125
- package/lib/stdlib/item/edge/cubic.js.map +0 -1
- package/lib/stdlib/item/edge/index.d.ts +0 -7
- package/lib/stdlib/item/edge/index.js +0 -24
- package/lib/stdlib/item/edge/index.js.map +0 -1
- package/lib/stdlib/item/edge/line.d.ts +0 -33
- package/lib/stdlib/item/edge/line.js +0 -72
- package/lib/stdlib/item/edge/line.js.map +0 -1
- package/lib/stdlib/item/edge/loop.d.ts +0 -32
- package/lib/stdlib/item/edge/loop.js +0 -124
- package/lib/stdlib/item/edge/loop.js.map +0 -1
- package/lib/stdlib/item/edge/polyline.d.ts +0 -45
- package/lib/stdlib/item/edge/polyline.js +0 -101
- package/lib/stdlib/item/edge/polyline.js.map +0 -1
- package/lib/stdlib/item/edge/quadratic.d.ts +0 -40
- package/lib/stdlib/item/edge/quadratic.js +0 -87
- package/lib/stdlib/item/edge/quadratic.js.map +0 -1
- package/lib/stdlib/item/node/base.d.ts +0 -246
- package/lib/stdlib/item/node/base.js +0 -479
- package/lib/stdlib/item/node/base.js.map +0 -1
- package/lib/stdlib/item/node/base3d.d.ts +0 -106
- package/lib/stdlib/item/node/base3d.js +0 -145
- package/lib/stdlib/item/node/base3d.js.map +0 -1
- package/lib/stdlib/item/node/circle.d.ts +0 -30
- package/lib/stdlib/item/node/circle.js +0 -66
- package/lib/stdlib/item/node/circle.js.map +0 -1
- package/lib/stdlib/item/node/cube.d.ts +0 -33
- package/lib/stdlib/item/node/cube.js +0 -61
- package/lib/stdlib/item/node/cube.js.map +0 -1
- package/lib/stdlib/item/node/diamond.d.ts +0 -32
- package/lib/stdlib/item/node/diamond.js +0 -92
- package/lib/stdlib/item/node/diamond.js.map +0 -1
- package/lib/stdlib/item/node/donut.d.ts +0 -70
- package/lib/stdlib/item/node/donut.js +0 -221
- package/lib/stdlib/item/node/donut.js.map +0 -1
- package/lib/stdlib/item/node/ellipse.d.ts +0 -32
- package/lib/stdlib/item/node/ellipse.js +0 -80
- package/lib/stdlib/item/node/ellipse.js.map +0 -1
- package/lib/stdlib/item/node/hexagon.d.ts +0 -33
- package/lib/stdlib/item/node/hexagon.js +0 -118
- package/lib/stdlib/item/node/hexagon.js.map +0 -1
- package/lib/stdlib/item/node/image.d.ts +0 -40
- package/lib/stdlib/item/node/image.js +0 -124
- package/lib/stdlib/item/node/image.js.map +0 -1
- package/lib/stdlib/item/node/index.d.ts +0 -15
- package/lib/stdlib/item/node/index.js +0 -32
- package/lib/stdlib/item/node/index.js.map +0 -1
- package/lib/stdlib/item/node/modelRect.d.ts +0 -93
- package/lib/stdlib/item/node/modelRect.js +0 -247
- package/lib/stdlib/item/node/modelRect.js.map +0 -1
- package/lib/stdlib/item/node/plane.d.ts +0 -38
- package/lib/stdlib/item/node/plane.js +0 -66
- package/lib/stdlib/item/node/plane.js.map +0 -1
- package/lib/stdlib/item/node/rect.d.ts +0 -32
- package/lib/stdlib/item/node/rect.js +0 -84
- package/lib/stdlib/item/node/rect.js.map +0 -1
- package/lib/stdlib/item/node/sphere.d.ts +0 -33
- package/lib/stdlib/item/node/sphere.js +0 -61
- package/lib/stdlib/item/node/sphere.js.map +0 -1
- package/lib/stdlib/item/node/star.d.ts +0 -32
- package/lib/stdlib/item/node/star.js +0 -125
- package/lib/stdlib/item/node/star.js.map +0 -1
- package/lib/stdlib/item/node/triangle.d.ts +0 -44
- package/lib/stdlib/item/node/triangle.js +0 -191
- package/lib/stdlib/item/node/triangle.js.map +0 -1
- package/lib/stdlib/plugin/edgeBundling/index.d.ts +0 -75
- package/lib/stdlib/plugin/edgeBundling/index.js +0 -368
- package/lib/stdlib/plugin/edgeBundling/index.js.map +0 -1
- package/lib/stdlib/plugin/edgeFilterLens/index.d.ts +0 -66
- package/lib/stdlib/plugin/edgeFilterLens/index.js +0 -313
- package/lib/stdlib/plugin/edgeFilterLens/index.js.map +0 -1
- package/lib/stdlib/plugin/fisheye/index.d.ts +0 -130
- package/lib/stdlib/plugin/fisheye/index.js +0 -493
- package/lib/stdlib/plugin/fisheye/index.js.map +0 -1
- package/lib/stdlib/plugin/grid/index.d.ts +0 -36
- package/lib/stdlib/plugin/grid/index.js +0 -84
- package/lib/stdlib/plugin/grid/index.js.map +0 -1
- package/lib/stdlib/plugin/history/combo-command.d.ts +0 -9
- package/lib/stdlib/plugin/history/combo-command.js +0 -25
- package/lib/stdlib/plugin/history/combo-command.js.map +0 -1
- package/lib/stdlib/plugin/history/command.d.ts +0 -18
- package/lib/stdlib/plugin/history/command.js +0 -54
- package/lib/stdlib/plugin/history/command.js.map +0 -1
- package/lib/stdlib/plugin/history/index.d.ts +0 -112
- package/lib/stdlib/plugin/history/index.js +0 -283
- package/lib/stdlib/plugin/history/index.js.map +0 -1
- package/lib/stdlib/plugin/history/item-data-command.d.ts +0 -14
- package/lib/stdlib/plugin/history/item-data-command.js +0 -76
- package/lib/stdlib/plugin/history/item-data-command.js.map +0 -1
- package/lib/stdlib/plugin/history/layer-updated-command.d.ts +0 -9
- package/lib/stdlib/plugin/history/layer-updated-command.js +0 -25
- package/lib/stdlib/plugin/history/layer-updated-command.js.map +0 -1
- package/lib/stdlib/plugin/history/state-updated-command.d.ts +0 -9
- package/lib/stdlib/plugin/history/state-updated-command.js +0 -24
- package/lib/stdlib/plugin/history/state-updated-command.js.map +0 -1
- package/lib/stdlib/plugin/history/visibility-updated-command.d.ts +0 -10
- package/lib/stdlib/plugin/history/visibility-updated-command.js +0 -27
- package/lib/stdlib/plugin/history/visibility-updated-command.js.map +0 -1
- package/lib/stdlib/plugin/hull/bubbleset.d.ts +0 -9
- package/lib/stdlib/plugin/hull/bubbleset.js +0 -596
- package/lib/stdlib/plugin/hull/bubbleset.js.map +0 -1
- package/lib/stdlib/plugin/hull/convexHull.d.ts +0 -14
- package/lib/stdlib/plugin/hull/convexHull.js +0 -61
- package/lib/stdlib/plugin/hull/convexHull.js.map +0 -1
- package/lib/stdlib/plugin/hull/hullComponent.d.ts +0 -87
- package/lib/stdlib/plugin/hull/hullComponent.js +0 -381
- package/lib/stdlib/plugin/hull/hullComponent.js.map +0 -1
- package/lib/stdlib/plugin/hull/index.d.ts +0 -59
- package/lib/stdlib/plugin/hull/index.js +0 -167
- package/lib/stdlib/plugin/hull/index.js.map +0 -1
- package/lib/stdlib/plugin/hull/types.d.ts +0 -15
- package/lib/stdlib/plugin/hull/types.js.map +0 -1
- package/lib/stdlib/plugin/hull/util.d.ts +0 -77
- package/lib/stdlib/plugin/hull/util.js +0 -423
- package/lib/stdlib/plugin/hull/util.js.map +0 -1
- package/lib/stdlib/plugin/index.d.ts +0 -13
- package/lib/stdlib/plugin/index.js +0 -30
- package/lib/stdlib/plugin/index.js.map +0 -1
- package/lib/stdlib/plugin/legend/index.d.ts +0 -164
- package/lib/stdlib/plugin/legend/index.js +0 -600
- package/lib/stdlib/plugin/legend/index.js.map +0 -1
- package/lib/stdlib/plugin/lodController/index.d.ts +0 -73
- package/lib/stdlib/plugin/lodController/index.js +0 -562
- package/lib/stdlib/plugin/lodController/index.js.map +0 -1
- package/lib/stdlib/plugin/menu/index.d.ts +0 -55
- package/lib/stdlib/plugin/menu/index.js +0 -245
- package/lib/stdlib/plugin/menu/index.js.map +0 -1
- package/lib/stdlib/plugin/minimap/index.d.ts +0 -118
- package/lib/stdlib/plugin/minimap/index.js +0 -685
- package/lib/stdlib/plugin/minimap/index.js.map +0 -1
- package/lib/stdlib/plugin/snapline/index.d.ts +0 -167
- package/lib/stdlib/plugin/snapline/index.js +0 -1067
- package/lib/stdlib/plugin/snapline/index.js.map +0 -1
- package/lib/stdlib/plugin/timebar/index.d.ts +0 -98
- package/lib/stdlib/plugin/timebar/index.js +0 -307
- package/lib/stdlib/plugin/timebar/index.js.map +0 -1
- package/lib/stdlib/plugin/toolbar/index.d.ts +0 -59
- package/lib/stdlib/plugin/toolbar/index.js +0 -220
- package/lib/stdlib/plugin/toolbar/index.js.map +0 -1
- package/lib/stdlib/plugin/tooltip/index.d.ts +0 -96
- package/lib/stdlib/plugin/tooltip/index.js +0 -384
- package/lib/stdlib/plugin/tooltip/index.js.map +0 -1
- package/lib/stdlib/plugin/types.d.ts +0 -11
- package/lib/stdlib/plugin/types.js.map +0 -1
- package/lib/stdlib/plugin/watermarker/index.d.ts +0 -78
- package/lib/stdlib/plugin/watermarker/index.js +0 -247
- package/lib/stdlib/plugin/watermarker/index.js.map +0 -1
- package/lib/stdlib/selector/lasso.d.ts +0 -15
- package/lib/stdlib/selector/lasso.js +0 -63
- package/lib/stdlib/selector/lasso.js.map +0 -1
- package/lib/stdlib/selector/rect.d.ts +0 -16
- package/lib/stdlib/selector/rect.js +0 -56
- package/lib/stdlib/selector/rect.js.map +0 -1
- package/lib/stdlib/theme/dark.d.ts +0 -2
- package/lib/stdlib/theme/dark.js +0 -332
- package/lib/stdlib/theme/dark.js.map +0 -1
- package/lib/stdlib/theme/index.d.ts +0 -2
- package/lib/stdlib/theme/index.js +0 -19
- package/lib/stdlib/theme/index.js.map +0 -1
- package/lib/stdlib/theme/light.d.ts +0 -2
- package/lib/stdlib/theme/light.js +0 -333
- package/lib/stdlib/theme/light.js.map +0 -1
- package/lib/stdlib/themeSolver/base.d.ts +0 -15
- package/lib/stdlib/themeSolver/base.js +0 -15
- package/lib/stdlib/themeSolver/base.js.map +0 -1
- package/lib/stdlib/themeSolver/index.d.ts +0 -3
- package/lib/stdlib/themeSolver/index.js +0 -20
- package/lib/stdlib/themeSolver/index.js.map +0 -1
- package/lib/stdlib/themeSolver/spec.d.ts +0 -35
- package/lib/stdlib/themeSolver/spec.js +0 -85
- package/lib/stdlib/themeSolver/spec.js.map +0 -1
- package/lib/stdlib/themeSolver/subject.d.ts +0 -41
- package/lib/stdlib/themeSolver/subject.js +0 -404
- package/lib/stdlib/themeSolver/subject.js.map +0 -1
- package/lib/types/animate.d.ts +0 -59
- package/lib/types/animate.js +0 -3
- package/lib/types/animate.js.map +0 -1
- package/lib/types/combo.d.ts +0 -135
- package/lib/types/combo.js.map +0 -1
- package/lib/types/common.d.ts +0 -17
- package/lib/types/common.js +0 -3
- package/lib/types/common.js.map +0 -1
- package/lib/types/graph.d.ts +0 -688
- package/lib/types/graph.js +0 -3
- package/lib/types/graph.js.map +0 -1
- package/lib/types/history.d.ts +0 -28
- package/lib/types/history.js +0 -9
- package/lib/types/history.js.map +0 -1
- package/lib/types/hook.d.ts +0 -159
- package/lib/types/hook.js +0 -3
- package/lib/types/hook.js.map +0 -1
- package/lib/types/item.d.ts +0 -233
- package/lib/types/item.js +0 -19
- package/lib/types/item.js.map +0 -1
- package/lib/types/layout.d.ts +0 -77
- package/lib/types/layout.js +0 -25
- package/lib/types/layout.js.map +0 -1
- package/lib/types/loop.d.ts +0 -21
- package/lib/types/loop.js +0 -15
- package/lib/types/loop.js.map +0 -1
- package/lib/types/plugin.d.ts +0 -45
- package/lib/types/plugin.js +0 -58
- package/lib/types/plugin.js.map +0 -1
- package/lib/types/render.d.ts +0 -1
- package/lib/types/render.js +0 -3
- package/lib/types/render.js.map +0 -1
- package/lib/types/spec.d.ts +0 -100
- package/lib/types/spec.js.map +0 -1
- package/lib/types/stdlib.d.ts +0 -13
- package/lib/types/stdlib.js +0 -3
- package/lib/types/stdlib.js.map +0 -1
- package/lib/types/theme.d.ts +0 -168
- package/lib/types/theme.js +0 -18
- package/lib/types/theme.js.map +0 -1
- package/lib/types/view.d.ts +0 -33
- package/lib/types/view.js +0 -3
- package/lib/types/view.js.map +0 -1
- package/lib/util/animate.d.ts +0 -111
- package/lib/util/animate.js +0 -445
- package/lib/util/animate.js.map +0 -1
- package/lib/util/array.d.ts +0 -29
- package/lib/util/array.js +0 -83
- package/lib/util/array.js.map +0 -1
- package/lib/util/arrow.d.ts +0 -17
- package/lib/util/arrow.js +0 -60
- package/lib/util/arrow.js.map +0 -1
- package/lib/util/bbox.d.ts +0 -127
- package/lib/util/bbox.js +0 -320
- package/lib/util/bbox.js.map +0 -1
- package/lib/util/behavior.d.ts +0 -2
- package/lib/util/behavior.js +0 -16
- package/lib/util/behavior.js.map +0 -1
- package/lib/util/canvas.d.ts +0 -19
- package/lib/util/canvas.js +0 -77
- package/lib/util/canvas.js.map +0 -1
- package/lib/util/data.d.ts +0 -112
- package/lib/util/data.js +0 -327
- package/lib/util/data.js.map +0 -1
- package/lib/util/dom.d.ts +0 -15
- package/lib/util/dom.js +0 -34
- package/lib/util/dom.js.map +0 -1
- package/lib/util/event.d.ts +0 -42
- package/lib/util/event.js +0 -109
- package/lib/util/event.js.map +0 -1
- package/lib/util/extend.d.ts +0 -27
- package/lib/util/extend.js +0 -25
- package/lib/util/extend.js.map +0 -1
- package/lib/util/extension.d.ts +0 -10
- package/lib/util/extension.js +0 -29
- package/lib/util/extension.js.map +0 -1
- package/lib/util/index.d.ts +0 -7
- package/lib/util/index.js +0 -26
- package/lib/util/index.js.map +0 -1
- package/lib/util/item.d.ts +0 -30
- package/lib/util/item.js +0 -96
- package/lib/util/item.js.map +0 -1
- package/lib/util/layout.d.ts +0 -51
- package/lib/util/layout.js +0 -218
- package/lib/util/layout.js.map +0 -1
- package/lib/util/loop.d.ts +0 -38
- package/lib/util/loop.js +0 -125
- package/lib/util/loop.js.map +0 -1
- package/lib/util/mapper.d.ts +0 -17
- package/lib/util/mapper.js +0 -58
- package/lib/util/mapper.js.map +0 -1
- package/lib/util/math.d.ts +0 -23
- package/lib/util/math.js +0 -29
- package/lib/util/math.js.map +0 -1
- package/lib/util/matrix.d.ts +0 -6
- package/lib/util/matrix.js +0 -52
- package/lib/util/matrix.js.map +0 -1
- package/lib/util/mock.d.ts +0 -30
- package/lib/util/mock.js +0 -73
- package/lib/util/mock.js.map +0 -1
- package/lib/util/path.d.ts +0 -16
- package/lib/util/path.js +0 -120
- package/lib/util/path.js.map +0 -1
- package/lib/util/point.d.ts +0 -83
- package/lib/util/point.js +0 -204
- package/lib/util/point.js.map +0 -1
- package/lib/util/polyline.d.ts +0 -124
- package/lib/util/polyline.js +0 -532
- package/lib/util/polyline.js.map +0 -1
- package/lib/util/router.d.ts +0 -32
- package/lib/util/router.js +0 -388
- package/lib/util/router.js.map +0 -1
- package/lib/util/shape.d.ts +0 -154
- package/lib/util/shape.js +0 -660
- package/lib/util/shape.js.map +0 -1
- package/lib/util/shape3d.d.ts +0 -23
- package/lib/util/shape3d.js +0 -155
- package/lib/util/shape3d.js.map +0 -1
- package/lib/util/text.d.ts +0 -18
- package/lib/util/text.js +0 -42
- package/lib/util/text.js.map +0 -1
- package/lib/util/type.d.ts +0 -8
- package/lib/util/type.js +0 -13
- package/lib/util/type.js.map +0 -1
- package/lib/util/warn.d.ts +0 -14
- package/lib/util/warn.js +0 -8
- package/lib/util/warn.js.map +0 -1
- package/lib/util/zoom.d.ts +0 -14
- package/lib/util/zoom.js +0 -40
- package/lib/util/zoom.js.map +0 -1
- package/src/api-doc/behaviors.ts +0 -2
- package/src/api-doc/graph.ts +0 -5
- package/src/api-doc/item.ts +0 -45
- package/src/api-doc/layout.ts +0 -13
- package/src/api-doc/plugins.ts +0 -1
- package/src/api-doc/types.ts +0 -3
- package/src/api-doc/util.ts +0 -3
- package/src/constant/index.ts +0 -1
- package/src/constant/shape.ts +0 -37
- package/src/item/combo.ts +0 -321
- package/src/item/edge.ts +0 -422
- package/src/item/item.ts +0 -1022
- package/src/item/node.ts +0 -442
- package/src/runtime/controller/data.ts +0 -993
- package/src/runtime/controller/index.ts +0 -7
- package/src/runtime/controller/interaction.ts +0 -374
- package/src/runtime/controller/item.ts +0 -2024
- package/src/runtime/controller/layout.ts +0 -589
- package/src/runtime/controller/plugin.ts +0 -284
- package/src/runtime/controller/theme.ts +0 -73
- package/src/runtime/controller/viewport.ts +0 -161
- package/src/runtime/hooks.ts +0 -64
- package/src/stdlib/behavior/activate-relations.ts +0 -142
- package/src/stdlib/behavior/brush-select.ts +0 -386
- package/src/stdlib/behavior/click-select.ts +0 -223
- package/src/stdlib/behavior/collapse-expand-combo.ts +0 -57
- package/src/stdlib/behavior/collapse-expand-tree.ts +0 -106
- package/src/stdlib/behavior/create-edge.ts +0 -305
- package/src/stdlib/behavior/drag-canvas.ts +0 -410
- package/src/stdlib/behavior/drag-combo.ts +0 -589
- package/src/stdlib/behavior/drag-node.ts +0 -800
- package/src/stdlib/behavior/hover-activate.ts +0 -102
- package/src/stdlib/behavior/index.ts +0 -18
- package/src/stdlib/behavior/lasso-select.ts +0 -100
- package/src/stdlib/behavior/orbit-canvas-3d.ts +0 -102
- package/src/stdlib/behavior/rotate-canvas-3d.ts +0 -170
- package/src/stdlib/behavior/scroll-canvas.ts +0 -348
- package/src/stdlib/behavior/shortcuts-call.ts +0 -129
- package/src/stdlib/behavior/track-canvas-3d.ts +0 -102
- package/src/stdlib/behavior/types.ts +0 -15
- package/src/stdlib/behavior/zoom-canvas-3d.ts +0 -171
- package/src/stdlib/behavior/zoom-canvas.ts +0 -451
- package/src/stdlib/data/index.ts +0 -4
- package/src/stdlib/data/mapNodeSize.ts +0 -86
- package/src/stdlib/data/processParallelEdges.ts +0 -203
- package/src/stdlib/data/transformV4Data.ts +0 -244
- package/src/stdlib/data/validateData.ts +0 -165
- package/src/stdlib/index.ts +0 -313
- package/src/stdlib/item/combo/circle.ts +0 -128
- package/src/stdlib/item/combo/index.ts +0 -2
- package/src/stdlib/item/combo/rect.ts +0 -138
- package/src/stdlib/item/edge/base.ts +0 -619
- package/src/stdlib/item/edge/cubic-horizontal.ts +0 -85
- package/src/stdlib/item/edge/cubic-vertical.ts +0 -84
- package/src/stdlib/item/edge/cubic.ts +0 -220
- package/src/stdlib/item/edge/index.ts +0 -7
- package/src/stdlib/item/edge/line.ts +0 -125
- package/src/stdlib/item/edge/loop.ts +0 -167
- package/src/stdlib/item/edge/polyline.ts +0 -185
- package/src/stdlib/item/edge/quadratic.ts +0 -155
- package/src/stdlib/item/node/base.ts +0 -805
- package/src/stdlib/item/node/base3d.ts +0 -227
- package/src/stdlib/item/node/circle.ts +0 -134
- package/src/stdlib/item/node/cube.ts +0 -116
- package/src/stdlib/item/node/diamond.ts +0 -168
- package/src/stdlib/item/node/donut.ts +0 -382
- package/src/stdlib/item/node/ellipse.ts +0 -142
- package/src/stdlib/item/node/hexagon.ts +0 -196
- package/src/stdlib/item/node/image.ts +0 -198
- package/src/stdlib/item/node/index.ts +0 -15
- package/src/stdlib/item/node/modelRect.ts +0 -499
- package/src/stdlib/item/node/plane.ts +0 -121
- package/src/stdlib/item/node/rect.ts +0 -161
- package/src/stdlib/item/node/sphere.ts +0 -115
- package/src/stdlib/item/node/star.ts +0 -202
- package/src/stdlib/item/node/triangle.ts +0 -288
- package/src/stdlib/plugin/edgeBundling/index.ts +0 -529
- package/src/stdlib/plugin/edgeFilterLens/index.ts +0 -387
- package/src/stdlib/plugin/fisheye/index.ts +0 -608
- package/src/stdlib/plugin/grid/index.ts +0 -125
- package/src/stdlib/plugin/history/combo-command.ts +0 -28
- package/src/stdlib/plugin/history/command.ts +0 -81
- package/src/stdlib/plugin/history/index.ts +0 -347
- package/src/stdlib/plugin/history/item-data-command.ts +0 -114
- package/src/stdlib/plugin/history/layer-updated-command.ts +0 -28
- package/src/stdlib/plugin/history/state-updated-command.ts +0 -36
- package/src/stdlib/plugin/history/visibility-updated-command.ts +0 -41
- package/src/stdlib/plugin/hull/bubbleset.ts +0 -828
- package/src/stdlib/plugin/hull/convexHull.ts +0 -68
- package/src/stdlib/plugin/hull/hullComponent.ts +0 -503
- package/src/stdlib/plugin/hull/index.ts +0 -234
- package/src/stdlib/plugin/hull/types.ts +0 -15
- package/src/stdlib/plugin/hull/util.ts +0 -515
- package/src/stdlib/plugin/index.ts +0 -13
- package/src/stdlib/plugin/legend/index.ts +0 -796
- package/src/stdlib/plugin/lodController/index.ts +0 -603
- package/src/stdlib/plugin/menu/index.ts +0 -275
- package/src/stdlib/plugin/minimap/index.ts +0 -806
- package/src/stdlib/plugin/snapline/index.ts +0 -1297
- package/src/stdlib/plugin/timebar/index.ts +0 -473
- package/src/stdlib/plugin/toolbar/index.ts +0 -255
- package/src/stdlib/plugin/tooltip/index.ts +0 -444
- package/src/stdlib/plugin/types.ts +0 -11
- package/src/stdlib/plugin/watermarker/index.ts +0 -302
- package/src/stdlib/selector/lasso.ts +0 -75
- package/src/stdlib/selector/rect.ts +0 -78
- package/src/stdlib/theme/dark.ts +0 -415
- package/src/stdlib/theme/index.ts +0 -2
- package/src/stdlib/theme/light.ts +0 -413
- package/src/stdlib/themeSolver/base.ts +0 -22
- package/src/stdlib/themeSolver/index.ts +0 -3
- package/src/stdlib/themeSolver/spec.ts +0 -123
- package/src/stdlib/themeSolver/subject.ts +0 -499
- package/src/types/animate.ts +0 -71
- package/src/types/combo.ts +0 -177
- package/src/types/common.ts +0 -21
- package/src/types/graph.ts +0 -906
- package/src/types/history.ts +0 -30
- package/src/types/hook.ts +0 -182
- package/src/types/item.ts +0 -342
- package/src/types/layout.ts +0 -147
- package/src/types/loop.ts +0 -23
- package/src/types/plugin.ts +0 -85
- package/src/types/render.ts +0 -1
- package/src/types/spec.ts +0 -154
- package/src/types/stdlib.ts +0 -25
- package/src/types/theme.ts +0 -171
- package/src/types/view.ts +0 -41
- package/src/util/animate.ts +0 -543
- package/src/util/array.ts +0 -80
- package/src/util/arrow.ts +0 -62
- package/src/util/bbox.ts +0 -359
- package/src/util/behavior.ts +0 -14
- package/src/util/canvas.ts +0 -95
- package/src/util/data.ts +0 -362
- package/src/util/dom.ts +0 -33
- package/src/util/event.ts +0 -160
- package/src/util/extend.ts +0 -47
- package/src/util/extension.ts +0 -29
- package/src/util/index.ts +0 -17
- package/src/util/item.ts +0 -187
- package/src/util/layout.ts +0 -211
- package/src/util/loop.ts +0 -160
- package/src/util/mapper.ts +0 -62
- package/src/util/math.ts +0 -33
- package/src/util/matrix.ts +0 -66
- package/src/util/mock.ts +0 -72
- package/src/util/path.ts +0 -122
- package/src/util/point.ts +0 -231
- package/src/util/polyline.ts +0 -684
- package/src/util/router.ts +0 -563
- package/src/util/shape.ts +0 -825
- package/src/util/shape3d.ts +0 -209
- package/src/util/text.ts +0 -51
- package/src/util/type.ts +0 -11
- package/src/util/warn.ts +0 -20
- package/src/util/zoom.ts +0 -37
- /package/{esm/api-doc/types.d.ts → dist/lib/__tests__/integration/animation.spec.d.ts} +0 -0
- /package/{lib/api-doc/types.d.ts → dist/lib/__tests__/integration/static.spec.d.ts} +0 -0
- /package/esm/{api-doc → animations}/types.js +0 -0
- /package/esm/{stdlib/behavior → behaviors}/types.js +0 -0
- /package/esm/{stdlib/plugin/hull → layouts}/types.js +0 -0
- /package/esm/{stdlib/plugin → palettes}/types.js +0 -0
- /package/esm/{types → spec/element}/combo.js +0 -0
- /package/esm/{api-doc → spec}/layout.js +0 -0
- /package/esm/{types → spec}/spec.js +0 -0
- /package/lib/{api-doc → animations}/types.js +0 -0
- /package/lib/{stdlib/behavior → behaviors}/types.js +0 -0
- /package/lib/{stdlib/plugin/hull → layouts}/types.js +0 -0
- /package/lib/{stdlib/plugin → palettes}/types.js +0 -0
- /package/lib/{types → spec/element}/combo.js +0 -0
- /package/lib/{api-doc → spec}/layout.js +0 -0
- /package/lib/{types → spec}/spec.js +0 -0
|
@@ -0,0 +1,766 @@
|
|
|
1
|
+
import { Graph as GraphLib, ID } from '@antv/graphlib';
|
|
2
|
+
import { isEqual, isUndefined } from '@antv/util';
|
|
3
|
+
import { COMBO_KEY, ChangeTypeEnum, TREE_KEY } from '../constants';
|
|
4
|
+
import type { ComboData, EdgeData, GraphData, NodeData } from '../spec';
|
|
5
|
+
import type {
|
|
6
|
+
DataAdded,
|
|
7
|
+
DataChange,
|
|
8
|
+
DataID,
|
|
9
|
+
DataRemoved,
|
|
10
|
+
DataUpdated,
|
|
11
|
+
ElementDatum,
|
|
12
|
+
NodeLikeData,
|
|
13
|
+
PartialEdgeData,
|
|
14
|
+
PartialGraphData,
|
|
15
|
+
PartialNodeLikeData,
|
|
16
|
+
Position,
|
|
17
|
+
State,
|
|
18
|
+
} from '../types';
|
|
19
|
+
import type { EdgeDirection } from '../types/edge';
|
|
20
|
+
import type { ElementType } from '../types/element';
|
|
21
|
+
import type { Point } from '../types/point';
|
|
22
|
+
import { cloneElementData, mergeElementsData } from '../utils/data';
|
|
23
|
+
import { arrayDiff } from '../utils/diff';
|
|
24
|
+
import { toG6Data, toGraphlibData } from '../utils/graphlib';
|
|
25
|
+
import { idOf, parentIdOf } from '../utils/id';
|
|
26
|
+
import { positionOf } from '../utils/position';
|
|
27
|
+
import { zIndexOf } from '../utils/style';
|
|
28
|
+
import { dfs } from '../utils/traverse';
|
|
29
|
+
import { add } from '../utils/vector';
|
|
30
|
+
|
|
31
|
+
export class DataController {
|
|
32
|
+
public model: GraphLib<NodeLikeData, EdgeData>;
|
|
33
|
+
|
|
34
|
+
/**
|
|
35
|
+
* <zh/> 最近一次删除的 combo 的 id
|
|
36
|
+
*
|
|
37
|
+
* <en/> The ids of the last deleted combos
|
|
38
|
+
* @description
|
|
39
|
+
* <zh/> 当删除 combo 后,会将其 id 从 comboIds 中移除,此时根据 Graphlib 的 changes 事件获取到的 NodeRemoved 无法区分是 combo 还是 node。
|
|
40
|
+
* 因此需要记录最近一次删除的 combo 的 id,并用于 isCombo 的判断
|
|
41
|
+
*
|
|
42
|
+
* <en/> When the combo is deleted, its id will be removed from comboIds. At this time, the NodeRemoved obtained according to the changes event of Graphlib cannot distinguish whether it is a combo or a node.
|
|
43
|
+
* Therefore, it is necessary to record the id of the last deleted combo and use it to judge isCombo
|
|
44
|
+
*/
|
|
45
|
+
protected latestRemovedComboIds = new Set<ID>();
|
|
46
|
+
|
|
47
|
+
protected comboIds = new Set<ID>();
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* <zh/> 获取详细数据变更
|
|
51
|
+
*
|
|
52
|
+
* <en/> Get detailed data changes
|
|
53
|
+
*/
|
|
54
|
+
private changes: DataChange[] = [];
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
* <zh/> 批处理计数器
|
|
58
|
+
*
|
|
59
|
+
* <en/> Batch processing counter
|
|
60
|
+
*/
|
|
61
|
+
private batchCount = 0;
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* <zh/> 是否处于无痕模式
|
|
65
|
+
*
|
|
66
|
+
* <en/> Whether it is in traceless mode
|
|
67
|
+
*/
|
|
68
|
+
private isTraceless = false;
|
|
69
|
+
|
|
70
|
+
constructor() {
|
|
71
|
+
this.model = new GraphLib();
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
private pushChange(change: DataChange) {
|
|
75
|
+
if (this.isTraceless) return;
|
|
76
|
+
const { type } = change;
|
|
77
|
+
|
|
78
|
+
if (
|
|
79
|
+
type === ChangeTypeEnum.NodeUpdated ||
|
|
80
|
+
type === ChangeTypeEnum.EdgeUpdated ||
|
|
81
|
+
type === ChangeTypeEnum.ComboUpdated
|
|
82
|
+
) {
|
|
83
|
+
const { value, original } = change;
|
|
84
|
+
this.changes.push({ value: cloneElementData(value), original: cloneElementData(original), type } as DataUpdated);
|
|
85
|
+
} else {
|
|
86
|
+
this.changes.push({ value: cloneElementData(change.value), type } as DataAdded | DataRemoved);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* <zh/> [警告] 此 API 仅供 Element Controller 调用
|
|
92
|
+
*
|
|
93
|
+
* <en/> [WARNING] This API is only for Element Controller
|
|
94
|
+
* @returns <zh/> 数据变更 | <en/> data changes
|
|
95
|
+
*/
|
|
96
|
+
public getChanges(): DataChange[] {
|
|
97
|
+
const changes = this.changes;
|
|
98
|
+
this.changes = [];
|
|
99
|
+
return changes;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
public batch(callback: () => void) {
|
|
103
|
+
this.batchCount++;
|
|
104
|
+
this.model.batch(callback);
|
|
105
|
+
this.batchCount--;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
/**
|
|
109
|
+
* <zh/> 执行操作而不会留下记录
|
|
110
|
+
*
|
|
111
|
+
* <en/> Perform operations without leaving records
|
|
112
|
+
* @param callback - <zh/> 回调函数 | <en/> callback function
|
|
113
|
+
* @description
|
|
114
|
+
* <zh/> 通常用于运行时调整元素并同步数据,避免触发数据变更导致重绘
|
|
115
|
+
*
|
|
116
|
+
* <en/> Usually used to adjust elements at runtime and synchronize data to avoid triggering data changes and causing redraws
|
|
117
|
+
*/
|
|
118
|
+
public silence(callback: () => void) {
|
|
119
|
+
this.isTraceless = true;
|
|
120
|
+
callback();
|
|
121
|
+
this.isTraceless = false;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
public isCombo(id: ID) {
|
|
125
|
+
return this.comboIds.has(id) || this.latestRemovedComboIds.has(id);
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
public getData() {
|
|
129
|
+
return {
|
|
130
|
+
nodes: this.getNodeData(),
|
|
131
|
+
edges: this.getEdgeData(),
|
|
132
|
+
combos: this.getComboData(),
|
|
133
|
+
};
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
public getNodeData(ids?: ID[]) {
|
|
137
|
+
return this.model.getAllNodes().reduce((acc, node) => {
|
|
138
|
+
const data = toG6Data(node);
|
|
139
|
+
if (this.isCombo(idOf(data))) return acc;
|
|
140
|
+
if (ids === undefined) acc.push(data);
|
|
141
|
+
else ids.includes(idOf(data)) && acc.push(data);
|
|
142
|
+
return acc;
|
|
143
|
+
}, [] as NodeData[]);
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
public getEdgeData(ids?: ID[]) {
|
|
147
|
+
return this.model.getAllEdges().reduce((acc, edge) => {
|
|
148
|
+
const data = toG6Data(edge);
|
|
149
|
+
if (ids === undefined) acc.push(data);
|
|
150
|
+
else ids.includes(idOf(data)) && acc.push(data);
|
|
151
|
+
return acc;
|
|
152
|
+
}, [] as EdgeData[]);
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
public getComboData(ids?: ID[]) {
|
|
156
|
+
return this.model.getAllNodes().reduce((acc, combo) => {
|
|
157
|
+
const data = toG6Data(combo);
|
|
158
|
+
if (!this.isCombo(idOf(data))) return acc;
|
|
159
|
+
|
|
160
|
+
if (ids === undefined) acc.push(data);
|
|
161
|
+
else ids.includes(idOf(data)) && acc.push(data);
|
|
162
|
+
return acc;
|
|
163
|
+
}, [] as ComboData[]);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
public getAncestorsData(id: ID, hierarchy: HierarchyKey): NodeLikeData[] {
|
|
167
|
+
const { model } = this;
|
|
168
|
+
if (!model.hasNode(id) || !model.hasTreeStructure(hierarchy)) return [];
|
|
169
|
+
return model.getAncestors(id, hierarchy).map(toG6Data);
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
public getDescendantsData(id: ID): NodeLikeData[] {
|
|
173
|
+
const root = this.getElementsData([id])[0] as NodeLikeData;
|
|
174
|
+
const data: NodeLikeData[] = [];
|
|
175
|
+
dfs(
|
|
176
|
+
root,
|
|
177
|
+
(node) => {
|
|
178
|
+
if (node !== root) data.push(node);
|
|
179
|
+
},
|
|
180
|
+
(node) => this.getChildrenData(idOf(node)),
|
|
181
|
+
'TB',
|
|
182
|
+
);
|
|
183
|
+
return data;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
public getParentData(
|
|
187
|
+
id: ID,
|
|
188
|
+
hierarchy: HierarchyKey | undefined = this.inferStructureKey(id),
|
|
189
|
+
): NodeLikeData | undefined {
|
|
190
|
+
const { model } = this;
|
|
191
|
+
if (!hierarchy) {
|
|
192
|
+
console.error('The hierarchy structure key is not specified');
|
|
193
|
+
return undefined;
|
|
194
|
+
}
|
|
195
|
+
if (!model.hasNode(id) || !model.hasTreeStructure(hierarchy)) return undefined;
|
|
196
|
+
const parent = model.getParent(id, hierarchy);
|
|
197
|
+
return parent ? toG6Data(parent) : undefined;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
public getChildrenData(id: ID): NodeLikeData[] {
|
|
201
|
+
const structureKey = this.getElementType(id) === 'node' ? TREE_KEY : COMBO_KEY;
|
|
202
|
+
const { model } = this;
|
|
203
|
+
if (!model.hasNode(id) || !model.hasTreeStructure(structureKey)) return [];
|
|
204
|
+
return model.getChildren(id, structureKey).map(toG6Data);
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
private inferStructureKey(id: ID) {
|
|
208
|
+
if (this.isCombo(id)) return COMBO_KEY;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* <zh/> 获取指定类型元素的数据
|
|
213
|
+
*
|
|
214
|
+
* <en/> Get the data of the specified type of element
|
|
215
|
+
* @param elementType - <zh/> 元素类型 | <en/> element type
|
|
216
|
+
* @returns <zh/> 元素数据 | <en/> element data
|
|
217
|
+
*/
|
|
218
|
+
public getElementData(elementType: ElementType) {
|
|
219
|
+
if (elementType === 'node') return this.getNodeData();
|
|
220
|
+
if (elementType === 'edge') return this.getEdgeData();
|
|
221
|
+
if (elementType === 'combo') return this.getComboData();
|
|
222
|
+
return [];
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
/**
|
|
226
|
+
* <zh/> 根据 ID 获取元素的数据,不用关心元素的类型
|
|
227
|
+
*
|
|
228
|
+
* <en/> Get the data of the element by ID, no need to care about the type of the element
|
|
229
|
+
* @param ids - <zh/> 元素 ID 数组 | <en/> element ID array
|
|
230
|
+
* @returns <zh/> 元素数据 | <en/> data of the element
|
|
231
|
+
*/
|
|
232
|
+
public getElementsData(ids: ID[]): ElementDatum[] {
|
|
233
|
+
return ids.map((id) => {
|
|
234
|
+
const type = this.getElementType(id);
|
|
235
|
+
if (type === 'node') return this.getNodeData([id])[0];
|
|
236
|
+
else if (type === 'edge') return this.getEdgeData([id])[0];
|
|
237
|
+
return this.getComboData([id])[0];
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
|
|
241
|
+
/**
|
|
242
|
+
* <zh/> 获取所有节点和 combo 的数据
|
|
243
|
+
*
|
|
244
|
+
* <en/> Get all node and combo data
|
|
245
|
+
* @param ids - <zh/> 节点和 combo ID 数组 | <en/> node and combo ID array
|
|
246
|
+
* @returns <zh/> 节点和 combo 的数据 | <en/> node and combo data
|
|
247
|
+
*/
|
|
248
|
+
public getNodeLikeData(ids?: ID[]) {
|
|
249
|
+
return this.model.getAllNodes().reduce((acc, node) => {
|
|
250
|
+
const data = toG6Data(node);
|
|
251
|
+
if (ids) ids.includes(idOf(data)) && acc.push(data);
|
|
252
|
+
else acc.push(data);
|
|
253
|
+
return acc;
|
|
254
|
+
}, [] as NodeLikeData[]);
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
public getElementDataByState(elementType: ElementType, state: string) {
|
|
258
|
+
const elementData = this.getElementData(elementType);
|
|
259
|
+
return elementData.filter((datum) => datum.style?.states?.includes(state));
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
public getElementState(id: ID): State[] {
|
|
263
|
+
return this.getElementsData([id])?.[0]?.style?.states || [];
|
|
264
|
+
}
|
|
265
|
+
|
|
266
|
+
public hasNode(id: ID) {
|
|
267
|
+
return this.model.hasNode(id) && !this.isCombo(id);
|
|
268
|
+
}
|
|
269
|
+
|
|
270
|
+
public hasEdge(id: ID) {
|
|
271
|
+
return this.model.hasEdge(id);
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
public hasCombo(id: ID) {
|
|
275
|
+
return this.model.hasNode(id) && this.isCombo(id);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
public getRelatedEdgesData(id: ID, direction: EdgeDirection = 'both') {
|
|
279
|
+
return this.model.getRelatedEdges(id, direction).map(toG6Data) as EdgeData[];
|
|
280
|
+
}
|
|
281
|
+
|
|
282
|
+
public getNeighborNodesData(id: ID) {
|
|
283
|
+
return this.model.getNeighbors(id).map(toG6Data);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
public setData(data: GraphData) {
|
|
287
|
+
const { nodes: modifiedNodes = [], edges: modifiedEdges = [], combos: modifiedCombos = [] } = data;
|
|
288
|
+
const { nodes: originalNodes = [], edges: originalEdges = [], combos: originalCombos = [] } = this.getData();
|
|
289
|
+
|
|
290
|
+
const nodeDiff = arrayDiff(originalNodes, modifiedNodes, (node) => idOf(node));
|
|
291
|
+
const edgeDiff = arrayDiff(originalEdges, modifiedEdges, (edge) => idOf(edge));
|
|
292
|
+
const comboDiff = arrayDiff(originalCombos, modifiedCombos, (combo) => idOf(combo));
|
|
293
|
+
|
|
294
|
+
this.batch(() => {
|
|
295
|
+
this.addData({
|
|
296
|
+
nodes: nodeDiff.enter,
|
|
297
|
+
edges: edgeDiff.enter,
|
|
298
|
+
combos: comboDiff.enter,
|
|
299
|
+
});
|
|
300
|
+
|
|
301
|
+
this.updateData({
|
|
302
|
+
nodes: nodeDiff.update,
|
|
303
|
+
edges: edgeDiff.update,
|
|
304
|
+
combos: comboDiff.update,
|
|
305
|
+
});
|
|
306
|
+
|
|
307
|
+
this.removeData({
|
|
308
|
+
nodes: nodeDiff.exit.map(idOf),
|
|
309
|
+
edges: edgeDiff.exit.map(idOf),
|
|
310
|
+
combos: comboDiff.exit.map(idOf),
|
|
311
|
+
});
|
|
312
|
+
});
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
public addData(data: GraphData) {
|
|
316
|
+
const { nodes, edges, combos } = data;
|
|
317
|
+
this.batch(() => {
|
|
318
|
+
// add combo first
|
|
319
|
+
this.addComboData(combos);
|
|
320
|
+
this.addNodeData(nodes);
|
|
321
|
+
this.addEdgeData(edges);
|
|
322
|
+
});
|
|
323
|
+
}
|
|
324
|
+
|
|
325
|
+
public addNodeData(nodes: NodeData[] = []) {
|
|
326
|
+
if (!nodes.length) return;
|
|
327
|
+
this.model.addNodes(
|
|
328
|
+
nodes.map((node) => {
|
|
329
|
+
this.pushChange({ value: node, type: ChangeTypeEnum.NodeAdded });
|
|
330
|
+
return toGraphlibData(node);
|
|
331
|
+
}),
|
|
332
|
+
);
|
|
333
|
+
this.updateNodeLikeHierarchy(nodes);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
public addEdgeData(edges: EdgeData[] = []) {
|
|
337
|
+
if (!edges.length) return;
|
|
338
|
+
this.model.addEdges(
|
|
339
|
+
edges.map((edge) => {
|
|
340
|
+
this.pushChange({ value: edge, type: ChangeTypeEnum.EdgeAdded });
|
|
341
|
+
return toGraphlibData(edge);
|
|
342
|
+
}),
|
|
343
|
+
);
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
public addComboData(combos: ComboData[] = []) {
|
|
347
|
+
if (!combos.length) return;
|
|
348
|
+
const { model } = this;
|
|
349
|
+
|
|
350
|
+
if (!model.hasTreeStructure(COMBO_KEY)) {
|
|
351
|
+
model.attachTreeStructure(COMBO_KEY);
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
model.addNodes(
|
|
355
|
+
combos.map((combo) => {
|
|
356
|
+
this.comboIds.add(idOf(combo));
|
|
357
|
+
this.pushChange({ value: combo, type: ChangeTypeEnum.ComboAdded });
|
|
358
|
+
return toGraphlibData(combo);
|
|
359
|
+
}),
|
|
360
|
+
);
|
|
361
|
+
|
|
362
|
+
this.updateNodeLikeHierarchy(combos);
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
protected updateNodeLikeHierarchy(data: NodeLikeData[]) {
|
|
366
|
+
if (!this.enableUpdateNodeLikeHierarchy) return;
|
|
367
|
+
const { model } = this;
|
|
368
|
+
|
|
369
|
+
data.forEach((datum) => {
|
|
370
|
+
const id = idOf(datum);
|
|
371
|
+
|
|
372
|
+
model.attachTreeStructure(COMBO_KEY);
|
|
373
|
+
this.setParent(id, parentIdOf(datum), COMBO_KEY);
|
|
374
|
+
|
|
375
|
+
const children = datum?.style?.children;
|
|
376
|
+
if (children !== undefined) {
|
|
377
|
+
model.attachTreeStructure(TREE_KEY);
|
|
378
|
+
children.forEach((child) => {
|
|
379
|
+
this.setParent(child, id, TREE_KEY);
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
|
|
385
|
+
private enableUpdateNodeLikeHierarchy = true;
|
|
386
|
+
|
|
387
|
+
/**
|
|
388
|
+
* <zh/> 执行变更时不要更新节点层次结构
|
|
389
|
+
*
|
|
390
|
+
* <en/> Do not update the node hierarchy when executing changes
|
|
391
|
+
* @param callback - <zh/> 变更函数 | <en/> change function
|
|
392
|
+
*/
|
|
393
|
+
public preventUpdateNodeLikeHierarchy(callback: () => void) {
|
|
394
|
+
this.enableUpdateNodeLikeHierarchy = false;
|
|
395
|
+
callback();
|
|
396
|
+
this.enableUpdateNodeLikeHierarchy = true;
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
public updateData(data: PartialGraphData) {
|
|
400
|
+
const { nodes, edges, combos } = data;
|
|
401
|
+
this.batch(() => {
|
|
402
|
+
this.updateNodeData(nodes);
|
|
403
|
+
this.updateComboData(combos);
|
|
404
|
+
this.updateEdgeData(edges);
|
|
405
|
+
});
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
public updateNodeData(nodes: PartialNodeLikeData<NodeData>[] = []) {
|
|
409
|
+
if (!nodes.length) return;
|
|
410
|
+
const { model } = this;
|
|
411
|
+
this.batch(() => {
|
|
412
|
+
const modifiedNodes: NodeData[] = [];
|
|
413
|
+
nodes.forEach((modifiedNode) => {
|
|
414
|
+
const id = idOf(modifiedNode);
|
|
415
|
+
const originalNode = toG6Data(model.getNode(id));
|
|
416
|
+
if (isEqual(originalNode, modifiedNode)) return;
|
|
417
|
+
|
|
418
|
+
const value = mergeElementsData(originalNode, modifiedNode);
|
|
419
|
+
this.pushChange({ value, original: originalNode, type: ChangeTypeEnum.NodeUpdated });
|
|
420
|
+
model.mergeNodeData(id, value);
|
|
421
|
+
modifiedNodes.push(value);
|
|
422
|
+
});
|
|
423
|
+
|
|
424
|
+
this.updateNodeLikeHierarchy(modifiedNodes);
|
|
425
|
+
});
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
public syncNodeDatum(datum: PartialNodeLikeData<NodeData>) {
|
|
429
|
+
const { model } = this;
|
|
430
|
+
|
|
431
|
+
const id = idOf(datum);
|
|
432
|
+
const original = toG6Data(model.getNode(id));
|
|
433
|
+
const value = mergeElementsData(original, datum);
|
|
434
|
+
model.mergeNodeData(id, value);
|
|
435
|
+
}
|
|
436
|
+
|
|
437
|
+
public updateEdgeData(edges: PartialEdgeData<EdgeData>[] = []) {
|
|
438
|
+
if (!edges.length) return;
|
|
439
|
+
const { model } = this;
|
|
440
|
+
this.batch(() => {
|
|
441
|
+
edges.forEach((modifiedEdge) => {
|
|
442
|
+
const id = idOf(modifiedEdge);
|
|
443
|
+
const originalEdge = toG6Data(model.getEdge(id));
|
|
444
|
+
if (isEqual(originalEdge, modifiedEdge)) return;
|
|
445
|
+
|
|
446
|
+
if (modifiedEdge.source && originalEdge.source !== modifiedEdge.source) {
|
|
447
|
+
model.updateEdgeSource(id, modifiedEdge.source);
|
|
448
|
+
}
|
|
449
|
+
if (modifiedEdge.target && originalEdge.target !== modifiedEdge.target) {
|
|
450
|
+
model.updateEdgeTarget(id, modifiedEdge.target);
|
|
451
|
+
}
|
|
452
|
+
const updatedData = mergeElementsData(originalEdge, modifiedEdge);
|
|
453
|
+
model.mergeEdgeData(id, updatedData);
|
|
454
|
+
this.pushChange({ value: updatedData, original: originalEdge, type: ChangeTypeEnum.EdgeUpdated });
|
|
455
|
+
});
|
|
456
|
+
});
|
|
457
|
+
}
|
|
458
|
+
|
|
459
|
+
public updateComboData(combos: PartialNodeLikeData<ComboData>[] = []) {
|
|
460
|
+
if (!combos.length) return;
|
|
461
|
+
const { model } = this;
|
|
462
|
+
model.batch(() => {
|
|
463
|
+
const modifiedCombos: ComboData[] = [];
|
|
464
|
+
combos.forEach((modifiedCombo) => {
|
|
465
|
+
const id = idOf(modifiedCombo);
|
|
466
|
+
const originalCombo = toG6Data(model.getNode(id));
|
|
467
|
+
if (isEqual(originalCombo, modifiedCombo)) return;
|
|
468
|
+
|
|
469
|
+
const value = mergeElementsData(originalCombo, modifiedCombo);
|
|
470
|
+
this.pushChange({ value, original: originalCombo, type: ChangeTypeEnum.ComboUpdated });
|
|
471
|
+
model.mergeNodeData(id, value);
|
|
472
|
+
modifiedCombos.push(value);
|
|
473
|
+
});
|
|
474
|
+
|
|
475
|
+
this.updateNodeLikeHierarchy(modifiedCombos);
|
|
476
|
+
});
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
/**
|
|
480
|
+
* <zh/> 设置节点的父节点
|
|
481
|
+
*
|
|
482
|
+
* <en/> Set the parent node of the node
|
|
483
|
+
* @param id - <zh/> 节点 ID | <en/> node ID
|
|
484
|
+
* @param parentId - <zh/> 父节点 ID | <en/> parent node ID
|
|
485
|
+
* @param hierarchy - <zh/> 层次结构类型 | <en/> hierarchy type
|
|
486
|
+
* @param update - <zh/> 添加新/旧父节点数据更新记录 | <en/> add new/old parent node data update record
|
|
487
|
+
*/
|
|
488
|
+
public setParent(id: ID, parentId: ID | undefined, hierarchy: HierarchyKey, update: boolean = true) {
|
|
489
|
+
if (id === parentId) return;
|
|
490
|
+
const originalParentId = parentIdOf(this.getNodeLikeData([id])[0]);
|
|
491
|
+
|
|
492
|
+
// Sync data
|
|
493
|
+
if (originalParentId !== parentId) {
|
|
494
|
+
const modifiedDatum = { id, style: { parentId } };
|
|
495
|
+
if (this.isCombo(id)) this.syncComboDatum(modifiedDatum);
|
|
496
|
+
else this.syncNodeDatum(modifiedDatum);
|
|
497
|
+
}
|
|
498
|
+
|
|
499
|
+
this.model.setParent(id, parentId, hierarchy);
|
|
500
|
+
|
|
501
|
+
if (update) {
|
|
502
|
+
new Set([originalParentId, parentId]).forEach((pId) => {
|
|
503
|
+
if (pId !== undefined) this.refreshComboData(pId);
|
|
504
|
+
});
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
|
|
508
|
+
/**
|
|
509
|
+
* <zh/> 刷新 combo 数据
|
|
510
|
+
*
|
|
511
|
+
* <en/> Refresh combo data
|
|
512
|
+
* @param id - <zh/> combo ID | <en/> combo ID
|
|
513
|
+
* @description
|
|
514
|
+
* <zh/> 不会更改数据,但会触发数据变更事件
|
|
515
|
+
*
|
|
516
|
+
* <en/> Will not change the data, but will trigger data change events
|
|
517
|
+
*/
|
|
518
|
+
public refreshComboData(id: ID) {
|
|
519
|
+
const combo = this.getComboData([id])[0];
|
|
520
|
+
const ancestors = this.getAncestorsData(id, COMBO_KEY);
|
|
521
|
+
|
|
522
|
+
if (combo) this.pushChange({ value: combo, original: combo, type: ChangeTypeEnum.ComboUpdated });
|
|
523
|
+
|
|
524
|
+
ancestors.forEach((value) => {
|
|
525
|
+
this.pushChange({ value: value, original: value, type: ChangeTypeEnum.ComboUpdated });
|
|
526
|
+
});
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
/**
|
|
530
|
+
* <zh/> 将 combo 数据同步到 model 中
|
|
531
|
+
*
|
|
532
|
+
* <en/> Synchronize combo data to the model
|
|
533
|
+
* @param datum - <zh/> combo 数据 | <en/> combo data
|
|
534
|
+
*/
|
|
535
|
+
public syncComboDatum(datum: PartialNodeLikeData<ComboData>) {
|
|
536
|
+
const { model } = this;
|
|
537
|
+
|
|
538
|
+
const id = idOf(datum);
|
|
539
|
+
const original = toG6Data(model.getNode(id));
|
|
540
|
+
const value = mergeElementsData(original, datum);
|
|
541
|
+
model.mergeNodeData(id, value);
|
|
542
|
+
}
|
|
543
|
+
|
|
544
|
+
public getElementPosition(id: ID): Position {
|
|
545
|
+
const datum = this.getElementsData([id])[0] as NodeLikeData;
|
|
546
|
+
return positionOf(datum);
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
public translateNodeBy(id: ID, offset: Position) {
|
|
550
|
+
const curr = this.getElementPosition(id);
|
|
551
|
+
const position = add(curr, [...offset, 0].slice(0, 3) as Point);
|
|
552
|
+
this.translateNodeTo(id, position);
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
public translateNodeTo(id: ID, position: Position) {
|
|
556
|
+
const [x = 0, y = 0, z = 0] = position;
|
|
557
|
+
this.preventUpdateNodeLikeHierarchy(() => {
|
|
558
|
+
this.updateNodeData([{ id, style: { x, y, z } }]);
|
|
559
|
+
});
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
public translateComboBy(id: ID, offset: Position) {
|
|
563
|
+
const [dx = 0, dy = 0, dz = 0] = offset;
|
|
564
|
+
if ([dx, dy, dz].some(isNaN) || [dx, dy, dz].every((o) => o === 0)) return;
|
|
565
|
+
const combo = this.getComboData([id])[0];
|
|
566
|
+
if (!combo) return;
|
|
567
|
+
dfs(
|
|
568
|
+
combo,
|
|
569
|
+
(succeed) => {
|
|
570
|
+
const succeedID = idOf(succeed);
|
|
571
|
+
const [x, y, z] = positionOf(succeed);
|
|
572
|
+
const value = mergeElementsData(succeed, {
|
|
573
|
+
style: { x: x + dx, y: y + dy, z: z + dz },
|
|
574
|
+
});
|
|
575
|
+
this.pushChange({
|
|
576
|
+
value,
|
|
577
|
+
original: succeed,
|
|
578
|
+
type: this.isCombo(succeedID) ? ChangeTypeEnum.ComboUpdated : ChangeTypeEnum.NodeUpdated,
|
|
579
|
+
});
|
|
580
|
+
this.model.mergeNodeData(succeedID, value);
|
|
581
|
+
},
|
|
582
|
+
(node) => this.getChildrenData(idOf(node)),
|
|
583
|
+
'BT',
|
|
584
|
+
);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
public translateComboTo(id: ID, position: Position) {
|
|
588
|
+
if (position.some(isNaN)) return;
|
|
589
|
+
const [tx = 0, ty = 0, tz = 0] = position;
|
|
590
|
+
const combo = this.getComboData([id])?.[0];
|
|
591
|
+
if (!combo) return;
|
|
592
|
+
|
|
593
|
+
const [comboX, comboY, comboZ] = positionOf(combo);
|
|
594
|
+
const dx = tx - comboX;
|
|
595
|
+
const dy = ty - comboY;
|
|
596
|
+
const dz = tz - comboZ;
|
|
597
|
+
|
|
598
|
+
dfs(
|
|
599
|
+
combo,
|
|
600
|
+
(succeed) => {
|
|
601
|
+
const succeedId = idOf(succeed);
|
|
602
|
+
const [x, y, z] = positionOf(succeed);
|
|
603
|
+
const value = mergeElementsData(succeed, {
|
|
604
|
+
style: { x: x + dx, y: y + dy, z: z + dz },
|
|
605
|
+
});
|
|
606
|
+
this.pushChange({
|
|
607
|
+
value,
|
|
608
|
+
original: succeed,
|
|
609
|
+
type: this.isCombo(succeedId) ? ChangeTypeEnum.ComboUpdated : ChangeTypeEnum.NodeUpdated,
|
|
610
|
+
});
|
|
611
|
+
this.model.mergeNodeData(succeedId, value);
|
|
612
|
+
},
|
|
613
|
+
(node) => this.getChildrenData(idOf(node)),
|
|
614
|
+
'BT',
|
|
615
|
+
);
|
|
616
|
+
}
|
|
617
|
+
|
|
618
|
+
public removeData(data: DataID) {
|
|
619
|
+
const { nodes, edges, combos } = data;
|
|
620
|
+
this.batch(() => {
|
|
621
|
+
// remove edges first
|
|
622
|
+
this.removeEdgeData(edges);
|
|
623
|
+
this.removeNodeData(nodes);
|
|
624
|
+
this.removeComboData(combos);
|
|
625
|
+
|
|
626
|
+
this.latestRemovedComboIds = new Set(combos);
|
|
627
|
+
});
|
|
628
|
+
}
|
|
629
|
+
|
|
630
|
+
public removeNodeData(ids: ID[] = []) {
|
|
631
|
+
if (!ids.length) return;
|
|
632
|
+
this.batch(() => {
|
|
633
|
+
ids.forEach((id) => {
|
|
634
|
+
// 移除关联边、子节点
|
|
635
|
+
// remove related edges and child nodes
|
|
636
|
+
this.removeEdgeData(this.getRelatedEdgesData(id).map(idOf));
|
|
637
|
+
// TODO 树图情况下移除子节点
|
|
638
|
+
|
|
639
|
+
this.pushChange({ value: this.getNodeData([id])[0], type: ChangeTypeEnum.NodeRemoved });
|
|
640
|
+
this.removeNodeLikeHierarchy(id);
|
|
641
|
+
});
|
|
642
|
+
this.model.removeNodes(ids);
|
|
643
|
+
});
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
public removeEdgeData(ids: ID[] = []) {
|
|
647
|
+
if (!ids.length) return;
|
|
648
|
+
ids.forEach((id) => this.pushChange({ value: this.getEdgeData([id])[0], type: ChangeTypeEnum.EdgeRemoved }));
|
|
649
|
+
this.model.removeEdges(ids);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
public removeComboData(ids: ID[] = []) {
|
|
653
|
+
if (!ids.length) return;
|
|
654
|
+
this.batch(() => {
|
|
655
|
+
ids.forEach((id) => {
|
|
656
|
+
this.pushChange({ value: this.getComboData([id])[0], type: ChangeTypeEnum.ComboRemoved });
|
|
657
|
+
this.removeNodeLikeHierarchy(id);
|
|
658
|
+
this.comboIds.delete(id);
|
|
659
|
+
});
|
|
660
|
+
this.model.removeNodes(ids);
|
|
661
|
+
});
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
/**
|
|
665
|
+
* <zh/> 移除节点层次结构,将其子节点移动到父节点的 children 列表中
|
|
666
|
+
*
|
|
667
|
+
* <en/> Remove the node hierarchy and move its child nodes to the parent node's children list
|
|
668
|
+
* @param id - <zh/> 待处理的节点 | <en/> node to be processed
|
|
669
|
+
*/
|
|
670
|
+
protected removeNodeLikeHierarchy(id: ID) {
|
|
671
|
+
if (this.model.hasTreeStructure(COMBO_KEY)) {
|
|
672
|
+
const grandParentId = parentIdOf(this.getNodeLikeData([id])[0]);
|
|
673
|
+
|
|
674
|
+
// 从父节点的 children 列表中移除
|
|
675
|
+
// remove from its parent's children list
|
|
676
|
+
// 调用 graphlib.setParent,不需要更新数据
|
|
677
|
+
this.setParent(id, undefined, COMBO_KEY, false);
|
|
678
|
+
// 将子节点移动到父节点的 children 列表中
|
|
679
|
+
// move the children to the grandparent's children list
|
|
680
|
+
|
|
681
|
+
this.model.getChildren(id, COMBO_KEY).forEach((child) => {
|
|
682
|
+
const childData = toG6Data(child);
|
|
683
|
+
const childId = idOf(childData);
|
|
684
|
+
this.setParent(idOf(childData), grandParentId, COMBO_KEY, false);
|
|
685
|
+
const value = mergeElementsData(childData, {
|
|
686
|
+
id: idOf(childData),
|
|
687
|
+
style: { parentId: grandParentId },
|
|
688
|
+
});
|
|
689
|
+
this.pushChange({
|
|
690
|
+
value,
|
|
691
|
+
original: childData,
|
|
692
|
+
type: this.isCombo(childId) ? ChangeTypeEnum.ComboUpdated : ChangeTypeEnum.NodeUpdated,
|
|
693
|
+
});
|
|
694
|
+
this.model.mergeNodeData(idOf(childData), value);
|
|
695
|
+
});
|
|
696
|
+
|
|
697
|
+
if (!isUndefined(grandParentId)) this.refreshComboData(grandParentId);
|
|
698
|
+
}
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
/**
|
|
702
|
+
* <zh/> 获取元素的类型
|
|
703
|
+
*
|
|
704
|
+
* <en/> Get the type of the element
|
|
705
|
+
* @param id - <zh/> 元素 ID | <en/> ID of the element
|
|
706
|
+
* @returns <zh/> 元素类型 | <en/> type of the element
|
|
707
|
+
*/
|
|
708
|
+
public getElementType(id: ID): ElementType {
|
|
709
|
+
if (this.model.hasNode(id)) {
|
|
710
|
+
if (this.isCombo(id)) return 'combo';
|
|
711
|
+
return 'node';
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
if (this.model.hasEdge(id)) return 'edge';
|
|
715
|
+
|
|
716
|
+
throw new Error(`Unknown element type of id: ${id}`);
|
|
717
|
+
}
|
|
718
|
+
|
|
719
|
+
/**
|
|
720
|
+
* <zh/> 计算元素置顶后的 zIndex
|
|
721
|
+
*
|
|
722
|
+
* <en/> Calculate the zIndex after the element is placed on top
|
|
723
|
+
* @param id - <zh/> 元素 ID | <en/> ID of the element
|
|
724
|
+
* @returns <zh/> zIndex | <en/> zIndex
|
|
725
|
+
*/
|
|
726
|
+
public getFrontZIndex(id: ID) {
|
|
727
|
+
const elementType = this.getElementType(id);
|
|
728
|
+
let elementsToCompare: NodeLikeData[] = [];
|
|
729
|
+
|
|
730
|
+
if (elementType === 'combo') {
|
|
731
|
+
const ancestors = [id, ...this.getAncestorsData(id, COMBO_KEY).map(idOf)];
|
|
732
|
+
// 过滤掉以下 combo 不参与 zIndex 计算
|
|
733
|
+
// - 未展开的 combo
|
|
734
|
+
// - 当前 combo 及其祖先和后代
|
|
735
|
+
// The following combos do not participate in zIndex calculation
|
|
736
|
+
// - collapsed combo
|
|
737
|
+
// - current combo and its ancestors and descendants
|
|
738
|
+
elementsToCompare = this.getComboData().filter((combo) => {
|
|
739
|
+
const comboId = idOf(combo);
|
|
740
|
+
const comboAncestors = this.getAncestorsData(comboId, COMBO_KEY);
|
|
741
|
+
const comboAncestorIds = comboAncestors.map(idOf);
|
|
742
|
+
return (
|
|
743
|
+
!comboAncestors.some((combo) => !!combo.style?.collapsed) &&
|
|
744
|
+
!ancestors.includes(comboId) &&
|
|
745
|
+
!comboAncestorIds.includes(comboId)
|
|
746
|
+
);
|
|
747
|
+
});
|
|
748
|
+
} else elementsToCompare = this.getNodeData().filter((node) => idOf(node) !== id);
|
|
749
|
+
|
|
750
|
+
return Math.max(0, ...elementsToCompare.map(zIndexOf)) + 1;
|
|
751
|
+
}
|
|
752
|
+
|
|
753
|
+
public destroy() {
|
|
754
|
+
const { model } = this;
|
|
755
|
+
const nodes = model.getAllNodes();
|
|
756
|
+
const edges = model.getAllEdges();
|
|
757
|
+
|
|
758
|
+
model.removeEdges(edges.map((edge) => edge.id));
|
|
759
|
+
model.removeNodes(nodes.map((node) => node.id));
|
|
760
|
+
|
|
761
|
+
// @ts-expect-error force delete
|
|
762
|
+
delete this.context;
|
|
763
|
+
}
|
|
764
|
+
}
|
|
765
|
+
|
|
766
|
+
export type HierarchyKey = typeof TREE_KEY | typeof COMBO_KEY;
|