@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,91 @@
|
|
|
1
|
+
import type { FederatedMouseEvent } from '@antv/g';
|
|
2
|
+
import type { ID } from '@antv/graphlib';
|
|
3
|
+
import { isFunction } from '@antv/util';
|
|
4
|
+
import { CommonEvent } from '../constants';
|
|
5
|
+
import type { RuntimeContext } from '../runtime/types';
|
|
6
|
+
import { BehaviorEvent } from '../types';
|
|
7
|
+
import type { BaseBehaviorOptions } from './base-behavior';
|
|
8
|
+
import { BaseBehavior } from './base-behavior';
|
|
9
|
+
|
|
10
|
+
export interface CollapseExpandOptions extends BaseBehaviorOptions {
|
|
11
|
+
/**
|
|
12
|
+
* <zh/> 是否启用动画
|
|
13
|
+
*
|
|
14
|
+
* <en/> Whether to enable animation
|
|
15
|
+
*/
|
|
16
|
+
animation: boolean;
|
|
17
|
+
/**
|
|
18
|
+
* <zh/> 是否启用展开/收起功能
|
|
19
|
+
*
|
|
20
|
+
* <en/> Whether to enable the expand/collapse function
|
|
21
|
+
*/
|
|
22
|
+
enable?: boolean | ((event: BehaviorEvent<FederatedMouseEvent>) => boolean);
|
|
23
|
+
/**
|
|
24
|
+
* <zh/> 完成收起时的回调
|
|
25
|
+
*
|
|
26
|
+
* <en/> Callback when collapse is completed
|
|
27
|
+
*/
|
|
28
|
+
oncollapse?: (id: ID) => void;
|
|
29
|
+
/**
|
|
30
|
+
* <zh/> 完成展开时的回调
|
|
31
|
+
*
|
|
32
|
+
* <en/> Callback when expand is completed
|
|
33
|
+
*/
|
|
34
|
+
onexpand?: (id: ID) => void;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export class CollapseExpand extends BaseBehavior<CollapseExpandOptions> {
|
|
38
|
+
static defaultOptions: Partial<CollapseExpandOptions> = {
|
|
39
|
+
enable: true,
|
|
40
|
+
animation: true,
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
constructor(context: RuntimeContext, options: CollapseExpandOptions) {
|
|
44
|
+
super(context, Object.assign({}, CollapseExpand.defaultOptions, options));
|
|
45
|
+
|
|
46
|
+
this.bindEvents();
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
private bindEvents() {
|
|
50
|
+
const { graph } = this.context;
|
|
51
|
+
this.unbindEvents();
|
|
52
|
+
|
|
53
|
+
graph.on(`combo:${CommonEvent.DBLCLICK}`, this.onCollapseExpand);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
private unbindEvents() {
|
|
57
|
+
const { graph } = this.context;
|
|
58
|
+
graph.off(`combo:${CommonEvent.DBLCLICK}`, this.onCollapseExpand);
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
private onCollapseExpand = async (event: BehaviorEvent<FederatedMouseEvent>) => {
|
|
62
|
+
if (!this.validate(event)) return;
|
|
63
|
+
|
|
64
|
+
const id = event?.target?.id;
|
|
65
|
+
const { model, graph } = this.context;
|
|
66
|
+
const data = model.getComboData([id])[0];
|
|
67
|
+
if (!data) return false;
|
|
68
|
+
|
|
69
|
+
const { oncollapse, onexpand, animation } = this.options;
|
|
70
|
+
const isCollapse = data.style?.collapsed;
|
|
71
|
+
if (isCollapse) {
|
|
72
|
+
await graph.expand(id, animation);
|
|
73
|
+
onexpand?.(id);
|
|
74
|
+
} else {
|
|
75
|
+
await graph.collapse(id, animation);
|
|
76
|
+
oncollapse?.(id);
|
|
77
|
+
}
|
|
78
|
+
};
|
|
79
|
+
|
|
80
|
+
private validate(event: BehaviorEvent<FederatedMouseEvent>): boolean {
|
|
81
|
+
if (this.destroyed) return false;
|
|
82
|
+
const { enable } = this.options;
|
|
83
|
+
if (isFunction(enable)) return enable(event);
|
|
84
|
+
return !!enable;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
public destroy(): void {
|
|
88
|
+
this.unbindEvents();
|
|
89
|
+
super.destroy();
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
import type { Cursor, FederatedMouseEvent } from '@antv/g';
|
|
2
|
+
import { isFunction, isObject } from '@antv/util';
|
|
3
|
+
import { CanvasEvent } from '../constants';
|
|
4
|
+
import { RuntimeContext } from '../runtime/types';
|
|
5
|
+
import type { BehaviorEvent, Point, ViewportAnimationEffectTiming } from '../types';
|
|
6
|
+
import type { ShortcutKey } from '../utils/shortcut';
|
|
7
|
+
import { Shortcut } from '../utils/shortcut';
|
|
8
|
+
import { multiply } from '../utils/vector';
|
|
9
|
+
import type { BaseBehaviorOptions } from './base-behavior';
|
|
10
|
+
import { BaseBehavior } from './base-behavior';
|
|
11
|
+
|
|
12
|
+
export interface DragCanvasOptions extends BaseBehaviorOptions {
|
|
13
|
+
/**
|
|
14
|
+
* <zh/> 是否启用拖拽动画,仅在使用按键移动时有效
|
|
15
|
+
*
|
|
16
|
+
* <en/> Whether to enable the animation of dragging, only valid when using key movement
|
|
17
|
+
*/
|
|
18
|
+
animation?: ViewportAnimationEffectTiming;
|
|
19
|
+
/**
|
|
20
|
+
* <zh/> 是否启用拖拽画布的功能
|
|
21
|
+
*
|
|
22
|
+
* <en/> Whether to enable the function of dragging the canvas
|
|
23
|
+
*/
|
|
24
|
+
enable?: boolean | ((event: BehaviorEvent<FederatedMouseEvent> | BehaviorEvent<KeyboardEvent>) => boolean);
|
|
25
|
+
/**
|
|
26
|
+
* <zh/> 触发拖拽的方式,默认使用指针按下拖拽
|
|
27
|
+
*
|
|
28
|
+
* <en/> The way to trigger dragging, default to dragging with the pointer pressed
|
|
29
|
+
*/
|
|
30
|
+
trigger?: CombinationKey;
|
|
31
|
+
/**
|
|
32
|
+
* <zh/> 触发一次按键移动的距离
|
|
33
|
+
*
|
|
34
|
+
* <en/> The distance of a single key movement
|
|
35
|
+
*/
|
|
36
|
+
sensitivity?: number;
|
|
37
|
+
/**
|
|
38
|
+
* <zh/> 完成拖拽时的回调
|
|
39
|
+
*
|
|
40
|
+
* <en/> Callback when dragging is completed
|
|
41
|
+
*/
|
|
42
|
+
onfinish?: () => void;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
type CombinationKey = {
|
|
46
|
+
up: ShortcutKey;
|
|
47
|
+
down: ShortcutKey;
|
|
48
|
+
left: ShortcutKey;
|
|
49
|
+
right: ShortcutKey;
|
|
50
|
+
};
|
|
51
|
+
|
|
52
|
+
export class DragCanvas extends BaseBehavior<DragCanvasOptions> {
|
|
53
|
+
static defaultOptions: Partial<DragCanvasOptions> = {
|
|
54
|
+
enable: true,
|
|
55
|
+
sensitivity: 10,
|
|
56
|
+
};
|
|
57
|
+
|
|
58
|
+
private shortcut: Shortcut;
|
|
59
|
+
|
|
60
|
+
private defaultCursor: Cursor;
|
|
61
|
+
|
|
62
|
+
constructor(context: RuntimeContext, options: DragCanvasOptions) {
|
|
63
|
+
super(context, Object.assign({}, DragCanvas.defaultOptions, options));
|
|
64
|
+
|
|
65
|
+
this.shortcut = new Shortcut(context.graph);
|
|
66
|
+
|
|
67
|
+
this.bindEvents();
|
|
68
|
+
this.defaultCursor = this.context.canvas.getConfig().cursor || 'default';
|
|
69
|
+
context.canvas.setCursor('grab');
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
private bindEvents() {
|
|
73
|
+
const { trigger } = this.options;
|
|
74
|
+
this.shortcut.unbindAll();
|
|
75
|
+
const { graph } = this.context;
|
|
76
|
+
|
|
77
|
+
if (isObject(trigger)) {
|
|
78
|
+
graph.off(CanvasEvent.DRAG, this.onDrag);
|
|
79
|
+
const { up = [], down = [], left = [], right = [] } = trigger;
|
|
80
|
+
|
|
81
|
+
this.shortcut.bind(up, (event) => this.translate([0, 1], event));
|
|
82
|
+
this.shortcut.bind(down, (event) => this.translate([0, -1], event));
|
|
83
|
+
this.shortcut.bind(left, (event) => this.translate([1, 0], event));
|
|
84
|
+
this.shortcut.bind(right, (event) => this.translate([-1, 0], event));
|
|
85
|
+
} else {
|
|
86
|
+
graph.on(CanvasEvent.DRAG, this.onDrag);
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
private onDrag = (event: BehaviorEvent<FederatedMouseEvent>) => {
|
|
91
|
+
if (event.targetType === 'canvas') {
|
|
92
|
+
this.context.graph.translateBy([event.movement.x, event.movement.y], false);
|
|
93
|
+
}
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
private translate(value: Point, event: BehaviorEvent<FederatedMouseEvent> | BehaviorEvent<KeyboardEvent>) {
|
|
97
|
+
if (!this.validate(event)) return;
|
|
98
|
+
const { sensitivity } = this.options;
|
|
99
|
+
const delta = sensitivity * -1;
|
|
100
|
+
this.context.graph.translateBy(multiply(value, delta), this.options.animation);
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
private validate(event: BehaviorEvent<FederatedMouseEvent> | BehaviorEvent<KeyboardEvent>) {
|
|
104
|
+
if (this.destroyed) return false;
|
|
105
|
+
const { enable } = this.options;
|
|
106
|
+
if (isFunction(enable)) return enable(event);
|
|
107
|
+
return !!enable;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
public destroy(): void {
|
|
111
|
+
this.context.canvas.setCursor(this.defaultCursor);
|
|
112
|
+
super.destroy();
|
|
113
|
+
}
|
|
114
|
+
}
|
|
@@ -0,0 +1,309 @@
|
|
|
1
|
+
import type { BaseStyleProps, FederatedMouseEvent } from '@antv/g';
|
|
2
|
+
import { Rect } from '@antv/g';
|
|
3
|
+
import { ID } from '@antv/graphlib';
|
|
4
|
+
import { isFunction } from '@antv/util';
|
|
5
|
+
import { COMBO_KEY, CommonEvent } from '../constants';
|
|
6
|
+
import { RuntimeContext } from '../runtime/types';
|
|
7
|
+
import type { BehaviorEvent, EdgeDirection, Point, PrefixObject } from '../types';
|
|
8
|
+
import { getBBoxSize, getCombinedBBox } from '../utils/bbox';
|
|
9
|
+
import { idOf } from '../utils/id';
|
|
10
|
+
import { subStyleProps } from '../utils/prefix';
|
|
11
|
+
import { subtract } from '../utils/vector';
|
|
12
|
+
import type { BaseBehaviorOptions } from './base-behavior';
|
|
13
|
+
import { BaseBehavior } from './base-behavior';
|
|
14
|
+
|
|
15
|
+
export interface DragElementOptions extends BaseBehaviorOptions, PrefixObject<BaseStyleProps, 'shadow'> {
|
|
16
|
+
/**
|
|
17
|
+
* <zh/> 是否启用拖拽动画
|
|
18
|
+
*
|
|
19
|
+
* <en/> Whether to enable drag animation
|
|
20
|
+
*/
|
|
21
|
+
animation: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* <zh/> 是否启用拖拽节点的功能
|
|
24
|
+
*
|
|
25
|
+
* <en/> Whether to enable the function of dragging the node
|
|
26
|
+
*/
|
|
27
|
+
enable?: boolean | ((event: BehaviorEvent<FederatedMouseEvent> | BehaviorEvent<KeyboardEvent>) => boolean);
|
|
28
|
+
/**
|
|
29
|
+
* <zh/> 支持拖拽的元素类型
|
|
30
|
+
*
|
|
31
|
+
* <en/> Supported element types for dragging
|
|
32
|
+
*/
|
|
33
|
+
draggableElement: ('node' | 'combo')[];
|
|
34
|
+
/**
|
|
35
|
+
* <zh/> 拖拽操作效果
|
|
36
|
+
* - link: 将拖拽元素置入为目标元素的子元素
|
|
37
|
+
* - move: 移动元素并更新父元素尺寸
|
|
38
|
+
* - none: 仅更新拖拽目标位置,不做任何额外操作
|
|
39
|
+
*
|
|
40
|
+
* <en/> Drag operation effect
|
|
41
|
+
* - link: Place the drag element as a child element of the target element
|
|
42
|
+
* - move: Move the element and update the parent element size
|
|
43
|
+
* - none: Only update the drag target position, no additional operations
|
|
44
|
+
* @description
|
|
45
|
+
* <zh/> combo 元素可作为元素容器置入 node 或 combo 元素
|
|
46
|
+
*
|
|
47
|
+
* <en/> The combo element can be placed as an element container into the node or combo element
|
|
48
|
+
*/
|
|
49
|
+
dropEffect: 'link' | 'move' | 'none';
|
|
50
|
+
/**
|
|
51
|
+
* <zh/> 节点选中的状态,启用多选时会基于该状态查找选中的节点
|
|
52
|
+
*
|
|
53
|
+
* <en/> The state name of the selected node, when multi-selection is enabled, the selected nodes will be found based on this state
|
|
54
|
+
*/
|
|
55
|
+
state?: string;
|
|
56
|
+
/**
|
|
57
|
+
* <zh/> 拖拽时隐藏的边
|
|
58
|
+
* - none: 不隐藏
|
|
59
|
+
* - out: 隐藏以节点为源节点的边
|
|
60
|
+
* - in: 隐藏以节点为目标节点的边
|
|
61
|
+
* - both: 隐藏与节点相关的所有边
|
|
62
|
+
* - all: 隐藏图中所有边
|
|
63
|
+
*
|
|
64
|
+
* <en/> Edges hidden during dragging
|
|
65
|
+
* - none: do not hide
|
|
66
|
+
* - out: hide the edges with the node as the source node
|
|
67
|
+
* - in: hide the edges with the node as the target node
|
|
68
|
+
* - both: hide all edges related to the node
|
|
69
|
+
* - all: hide all edges in the graph
|
|
70
|
+
* @description
|
|
71
|
+
* <zh/> 使用幽灵节点时不会隐藏边
|
|
72
|
+
*
|
|
73
|
+
* <en/> Edges will not be hidden when using the drag shadow
|
|
74
|
+
*/
|
|
75
|
+
hideEdges?: 'none' | 'all' | EdgeDirection;
|
|
76
|
+
/**
|
|
77
|
+
* <zh/> 是否启用幽灵节点,即用一个图形代替节点跟随鼠标移动
|
|
78
|
+
*
|
|
79
|
+
* <en/> Whether to enable the drag shadow, that is, use a shape to replace the node to follow the mouse movement
|
|
80
|
+
*/
|
|
81
|
+
shadow?: boolean;
|
|
82
|
+
/**
|
|
83
|
+
* <zh/> 完成拖拽时的回调
|
|
84
|
+
*
|
|
85
|
+
* <en/> Callback when dragging is completed
|
|
86
|
+
*/
|
|
87
|
+
onfinish?: (ids: ID[]) => void;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
export class DragElement extends BaseBehavior<DragElementOptions> {
|
|
91
|
+
static defaultOptions: Partial<DragElementOptions> = {
|
|
92
|
+
animation: true,
|
|
93
|
+
enable: true,
|
|
94
|
+
draggableElement: ['node', 'combo'],
|
|
95
|
+
dropEffect: 'move',
|
|
96
|
+
state: 'selected',
|
|
97
|
+
hideEdges: 'none',
|
|
98
|
+
shadowZIndex: 100,
|
|
99
|
+
shadowFill: '#F3F9FF',
|
|
100
|
+
shadowFillOpacity: 0.5,
|
|
101
|
+
shadowStroke: '#1890FF',
|
|
102
|
+
shadowStrokeOpacity: 0.9,
|
|
103
|
+
shadowLineDash: [5, 5],
|
|
104
|
+
};
|
|
105
|
+
|
|
106
|
+
private enable: boolean = false;
|
|
107
|
+
|
|
108
|
+
private target: ID[] = [];
|
|
109
|
+
|
|
110
|
+
private shadow?: Rect;
|
|
111
|
+
|
|
112
|
+
private shadowOrigin: Point = [0, 0];
|
|
113
|
+
|
|
114
|
+
private hiddenEdges: ID[] = [];
|
|
115
|
+
|
|
116
|
+
private get animation() {
|
|
117
|
+
if (!this.options.shadow) return false;
|
|
118
|
+
return this.options.animation;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
private get element() {
|
|
122
|
+
return new Set<string>(this.options.draggableElement);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
constructor(context: RuntimeContext, options: DragElementOptions) {
|
|
126
|
+
super(context, Object.assign({}, DragElement.defaultOptions, options));
|
|
127
|
+
this.bindEvents();
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
public update(options: Partial<DragElementOptions>): void {
|
|
131
|
+
super.update(options);
|
|
132
|
+
this.bindEvents();
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
private bindEvents() {
|
|
136
|
+
const { graph } = this.context;
|
|
137
|
+
this.unbindEvents();
|
|
138
|
+
|
|
139
|
+
this.element.forEach((type) => {
|
|
140
|
+
graph.on(`${type}:${CommonEvent.DRAG_START}`, this.onDragStart);
|
|
141
|
+
graph.on(`${type}:${CommonEvent.DRAG}`, this.onDrag);
|
|
142
|
+
graph.on(`${type}:${CommonEvent.DRAG_END}`, this.onDragEnd);
|
|
143
|
+
});
|
|
144
|
+
|
|
145
|
+
if (['link'].includes(this.options.dropEffect)) {
|
|
146
|
+
graph.on(`combo:${CommonEvent.DROP}`, this.onDrop);
|
|
147
|
+
graph.on(`canvas:${CommonEvent.DROP}`, this.onDrop);
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
private getSelectedNodeIDs(currTarget: ID[]) {
|
|
152
|
+
return Array.from(
|
|
153
|
+
new Set(
|
|
154
|
+
this.context.graph
|
|
155
|
+
.getElementDataByState('node', this.options.state)
|
|
156
|
+
.map((node) => node.id)
|
|
157
|
+
.concat(currTarget),
|
|
158
|
+
),
|
|
159
|
+
);
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
private onDragStart = (event: DragEvent) => {
|
|
163
|
+
this.enable = this.validate(event);
|
|
164
|
+
if (!this.enable) return;
|
|
165
|
+
|
|
166
|
+
this.target = this.getSelectedNodeIDs([event.target.id]);
|
|
167
|
+
this.hideEdges();
|
|
168
|
+
this.context.graph.frontElement(this.target);
|
|
169
|
+
if (this.options.shadow) this.createShadow(this.target);
|
|
170
|
+
};
|
|
171
|
+
|
|
172
|
+
private onDrag = (event: DragEvent) => {
|
|
173
|
+
if (!this.enable) return;
|
|
174
|
+
const { dx, dy } = event;
|
|
175
|
+
|
|
176
|
+
if (this.options.shadow) this.moveShadow([dx, dy]);
|
|
177
|
+
else this.moveElement(this.target, [dx, dy]);
|
|
178
|
+
};
|
|
179
|
+
|
|
180
|
+
private onDragEnd = () => {
|
|
181
|
+
this.enable = false;
|
|
182
|
+
if (this.options.shadow) {
|
|
183
|
+
if (!this.shadow) return;
|
|
184
|
+
this.shadow.style.visibility = 'hidden';
|
|
185
|
+
const { x = 0, y = 0 } = this.shadow.attributes;
|
|
186
|
+
const [dx, dy] = subtract([+x, +y], this.shadowOrigin);
|
|
187
|
+
this.moveElement(this.target, [dx, dy]);
|
|
188
|
+
}
|
|
189
|
+
this.showEdges();
|
|
190
|
+
this.options.onfinish?.(this.target);
|
|
191
|
+
this.target = [];
|
|
192
|
+
};
|
|
193
|
+
|
|
194
|
+
private onDrop = async (event: DragEvent) => {
|
|
195
|
+
if (this.options.dropEffect !== 'link') return;
|
|
196
|
+
const { model, element } = this.context;
|
|
197
|
+
const modifiedParentId = event.target.id;
|
|
198
|
+
this.target.forEach((id) => {
|
|
199
|
+
const originalParent = model.getParentData(id, COMBO_KEY);
|
|
200
|
+
// 如果是在原父 combo 内部拖拽,需要刷新 combo 数据
|
|
201
|
+
// If it is a drag and drop within the original parent combo, you need to refresh the combo data
|
|
202
|
+
if (originalParent && idOf(originalParent) === modifiedParentId) {
|
|
203
|
+
model.refreshComboData(modifiedParentId);
|
|
204
|
+
}
|
|
205
|
+
model.setParent(id, modifiedParentId, COMBO_KEY);
|
|
206
|
+
});
|
|
207
|
+
await element?.draw({ animation: true });
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
private validate(event: DragEvent) {
|
|
211
|
+
if (this.destroyed) return false;
|
|
212
|
+
if (!this.element.has(event.targetType)) return false;
|
|
213
|
+
const { enable } = this.options;
|
|
214
|
+
if (isFunction(enable)) return enable(event);
|
|
215
|
+
return !!enable;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
private async moveElement(ids: ID[], offset: Point) {
|
|
219
|
+
const { model, element } = this.context;
|
|
220
|
+
const { dropEffect } = this.options;
|
|
221
|
+
ids.forEach((id) => {
|
|
222
|
+
const elementType = model.getElementType(id);
|
|
223
|
+
if (elementType === 'node') model.translateNodeBy(id, offset);
|
|
224
|
+
else if (elementType === 'combo') model.translateComboBy(id, offset);
|
|
225
|
+
});
|
|
226
|
+
|
|
227
|
+
if (dropEffect === 'move') ids.forEach((id) => model.refreshComboData(id));
|
|
228
|
+
await element!.draw({ animation: this.animation });
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
private moveShadow(offset: Point) {
|
|
232
|
+
if (!this.shadow) return;
|
|
233
|
+
const { x = 0, y = 0 } = this.shadow.attributes;
|
|
234
|
+
const [dx, dy] = offset;
|
|
235
|
+
this.shadow.attr({ x: +x + dx, y: +y + dy });
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
private createShadow(target: ID[]) {
|
|
239
|
+
const shadowStyle = subStyleProps(this.options, 'shadow');
|
|
240
|
+
|
|
241
|
+
const bbox = getCombinedBBox(target.map((id) => this.context.element!.getElement(id)!.getBounds()));
|
|
242
|
+
const [x, y] = bbox.min;
|
|
243
|
+
this.shadowOrigin = [x, y];
|
|
244
|
+
const [width, height] = getBBoxSize(bbox);
|
|
245
|
+
const positionStyle = { width, height, x, y };
|
|
246
|
+
|
|
247
|
+
if (this.shadow) {
|
|
248
|
+
this.shadow.attr({
|
|
249
|
+
...shadowStyle,
|
|
250
|
+
...positionStyle,
|
|
251
|
+
visibility: 'visible',
|
|
252
|
+
});
|
|
253
|
+
} else {
|
|
254
|
+
this.shadow = new Rect({
|
|
255
|
+
style: {
|
|
256
|
+
...shadowStyle,
|
|
257
|
+
...positionStyle,
|
|
258
|
+
pointerEvents: 'none',
|
|
259
|
+
// @ts-expect-error $layer is not in the type definition
|
|
260
|
+
$layer: 'transient',
|
|
261
|
+
},
|
|
262
|
+
});
|
|
263
|
+
this.context.canvas.appendChild(this.shadow);
|
|
264
|
+
}
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
private showEdges() {
|
|
268
|
+
if (this.options.shadow || this.hiddenEdges.length === 0) return;
|
|
269
|
+
this.context.graph.showElement(this.hiddenEdges);
|
|
270
|
+
this.hiddenEdges = [];
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
private hideEdges() {
|
|
274
|
+
const { hideEdges, shadow } = this.options;
|
|
275
|
+
if (hideEdges === 'none' || shadow) return;
|
|
276
|
+
const { graph } = this.context;
|
|
277
|
+
if (hideEdges === 'all') this.hiddenEdges = graph.getEdgeData().map(idOf);
|
|
278
|
+
else {
|
|
279
|
+
this.hiddenEdges = Array.from(
|
|
280
|
+
new Set(this.target.map((id) => graph.getRelatedEdgesData(id, hideEdges).map(idOf)).flat()),
|
|
281
|
+
);
|
|
282
|
+
}
|
|
283
|
+
graph.hideElement(this.hiddenEdges);
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
private unbindEvents() {
|
|
287
|
+
const { graph } = this.context;
|
|
288
|
+
|
|
289
|
+
this.element.forEach((type) => {
|
|
290
|
+
graph.off(`${type}:${CommonEvent.DRAG_START}`, this.onDragStart);
|
|
291
|
+
graph.off(`${type}:${CommonEvent.DRAG}`, this.onDrag);
|
|
292
|
+
graph.off(`${type}:${CommonEvent.DRAG_END}`, this.onDragEnd);
|
|
293
|
+
});
|
|
294
|
+
|
|
295
|
+
graph.off(`combo:${CommonEvent.DROP}`, this.onDrop);
|
|
296
|
+
graph.off(`canvas:${CommonEvent.DROP}`, this.onDrop);
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
public destroy() {
|
|
300
|
+
this.unbindEvents();
|
|
301
|
+
this.shadow?.destroy();
|
|
302
|
+
super.destroy();
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
interface DragEvent extends BehaviorEvent<FederatedMouseEvent> {
|
|
307
|
+
dx: number;
|
|
308
|
+
dy: number;
|
|
309
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export { BaseBehavior } from './base-behavior';
|
|
2
|
+
export { CollapseExpand } from './collapse-expand';
|
|
3
|
+
export { DragCanvas } from './drag-canvas';
|
|
4
|
+
export { DragElement } from './drag-element';
|
|
5
|
+
export { ZoomCanvas } from './zoom-canvas';
|
|
6
|
+
|
|
7
|
+
export type { BaseBehaviorOptions } from './base-behavior';
|
|
8
|
+
export type { CollapseExpandOptions } from './collapse-expand';
|
|
9
|
+
export type { DragCanvasOptions } from './drag-canvas';
|
|
10
|
+
export type { DragElementOptions } from './drag-element';
|
|
11
|
+
export type { ZoomCanvasOptions } from './zoom-canvas';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { BaseBehavior } from './base-behavior';
|
|
2
|
+
import type { DragCanvasOptions } from './drag-canvas';
|
|
3
|
+
import type { ZoomCanvasOptions } from './zoom-canvas';
|
|
4
|
+
|
|
5
|
+
export type BuiltInBehaviorOptions = DragCanvasOptions | ZoomCanvasOptions;
|
|
6
|
+
export type Behavior = BaseBehavior<any>;
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
import type { PointLike } from '@antv/g';
|
|
2
|
+
import { isArray, isFunction, isObject } from '@antv/util';
|
|
3
|
+
import { CanvasEvent } from '../constants';
|
|
4
|
+
import type { RuntimeContext } from '../runtime/types';
|
|
5
|
+
import type { BehaviorEvent, Point, ViewportAnimationEffectTiming } from '../types';
|
|
6
|
+
import { parsePoint } from '../utils/point';
|
|
7
|
+
import type { ShortcutKey } from '../utils/shortcut';
|
|
8
|
+
import { Shortcut } from '../utils/shortcut';
|
|
9
|
+
import type { BaseBehaviorOptions } from './base-behavior';
|
|
10
|
+
import { BaseBehavior } from './base-behavior';
|
|
11
|
+
|
|
12
|
+
export interface ZoomCanvasOptions extends BaseBehaviorOptions {
|
|
13
|
+
/**
|
|
14
|
+
* <zh/> 是否启用缩放动画
|
|
15
|
+
*
|
|
16
|
+
* <en/> Whether to enable the animation of zooming
|
|
17
|
+
*/
|
|
18
|
+
animation?: ViewportAnimationEffectTiming;
|
|
19
|
+
/**
|
|
20
|
+
* <zh/> 是否启用缩放画布的功能
|
|
21
|
+
*
|
|
22
|
+
* <en/> Whether to enable the function of zooming the canvas
|
|
23
|
+
*/
|
|
24
|
+
enable?: boolean | ((event: BehaviorEvent<WheelEvent> | BehaviorEvent<KeyboardEvent>) => boolean);
|
|
25
|
+
/**
|
|
26
|
+
* <zh/> 触发缩放的方式
|
|
27
|
+
*
|
|
28
|
+
* <en/> The way to trigger zoom
|
|
29
|
+
* @description
|
|
30
|
+
* <zh/>
|
|
31
|
+
* - 数组:组合快捷键,默认使用滚轮缩放,['Control'] 表示按住 Control 键滚动鼠标滚轮时触发缩放
|
|
32
|
+
* - 对象:缩放快捷键,例如 { zoomIn: ['Control', '+'], zoomOut: ['Control', '-'], reset: ['Control', '0'] }
|
|
33
|
+
*
|
|
34
|
+
* <en/>
|
|
35
|
+
* - Array: Combination shortcut key, default to zoom in and out with the mouse wheel, ['Control'] means zooming when holding down the Control key and scrolling the mouse wheel
|
|
36
|
+
* - Object: Zoom shortcut key, such as { zoomIn: ['Control', '+'], zoomOut: ['Control', '-'], reset: ['Control', '0'] }
|
|
37
|
+
*/
|
|
38
|
+
trigger?: ShortcutKey | CombinationKey;
|
|
39
|
+
/**
|
|
40
|
+
* <zh/> 缩放灵敏度
|
|
41
|
+
*
|
|
42
|
+
* <en/> Zoom sensitivity
|
|
43
|
+
*/
|
|
44
|
+
sensitivity?: number;
|
|
45
|
+
/**
|
|
46
|
+
* <zh/> 完成缩放时的回调
|
|
47
|
+
*
|
|
48
|
+
* <en/> Callback when zooming is completed
|
|
49
|
+
*/
|
|
50
|
+
onfinish?: () => void;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
type CombinationKey = {
|
|
54
|
+
zoomIn: ShortcutKey;
|
|
55
|
+
zoomOut: ShortcutKey;
|
|
56
|
+
reset: ShortcutKey;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
export class ZoomCanvas extends BaseBehavior<ZoomCanvasOptions> {
|
|
60
|
+
static defaultOptions: Partial<ZoomCanvasOptions> = {
|
|
61
|
+
animation: { duration: 200 },
|
|
62
|
+
enable: true,
|
|
63
|
+
sensitivity: 1,
|
|
64
|
+
trigger: [],
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
private shortcut: Shortcut;
|
|
68
|
+
|
|
69
|
+
constructor(context: RuntimeContext, options: ZoomCanvasOptions) {
|
|
70
|
+
super(context, Object.assign({}, ZoomCanvas.defaultOptions, options));
|
|
71
|
+
|
|
72
|
+
this.shortcut = new Shortcut(context.graph);
|
|
73
|
+
|
|
74
|
+
this.bindEvents();
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
public update(options: Partial<ZoomCanvasOptions>): void {
|
|
78
|
+
super.update(options);
|
|
79
|
+
this.bindEvents();
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
private bindEvents() {
|
|
83
|
+
const { trigger } = this.options;
|
|
84
|
+
this.shortcut.unbindAll();
|
|
85
|
+
|
|
86
|
+
if (isArray(trigger)) {
|
|
87
|
+
this.preventDefault(CanvasEvent.WHEEL);
|
|
88
|
+
this.shortcut.bind([...trigger, CanvasEvent.WHEEL], (event) => {
|
|
89
|
+
const { deltaX, deltaY } = event;
|
|
90
|
+
this.zoom(-(deltaY ?? deltaX), event);
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
if (isObject(trigger)) {
|
|
95
|
+
const { zoomIn = [], zoomOut = [], reset = [] } = trigger as CombinationKey;
|
|
96
|
+
this.shortcut.bind(zoomIn, (event) => this.zoom(1, event));
|
|
97
|
+
this.shortcut.bind(zoomOut, (event) => this.zoom(-1, event));
|
|
98
|
+
this.shortcut.bind(reset, this.onReset);
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* <zh/> 缩放画布
|
|
104
|
+
*
|
|
105
|
+
* <en/> Zoom canvas
|
|
106
|
+
* @param value - <zh/> 缩放值, > 0 放大, < 0 缩小 | <en/> Zoom value, > 0 zoom in, < 0 zoom out
|
|
107
|
+
* @param event - <zh/> 事件对象 | <en/> Event object
|
|
108
|
+
*/
|
|
109
|
+
private zoom = async (value: number, event: BehaviorEvent<WheelEvent> | BehaviorEvent<KeyboardEvent>) => {
|
|
110
|
+
if (!this.validate(event)) return;
|
|
111
|
+
const { graph } = this.context;
|
|
112
|
+
|
|
113
|
+
let origin: Point | undefined;
|
|
114
|
+
if ('viewport' in event) {
|
|
115
|
+
origin = parsePoint(event.viewport as PointLike);
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
const { sensitivity, onfinish } = this.options;
|
|
119
|
+
const diff = (value * sensitivity) / 10;
|
|
120
|
+
const zoom = graph.getZoom();
|
|
121
|
+
await graph.zoomTo(zoom + diff, this.options.animation, origin);
|
|
122
|
+
|
|
123
|
+
onfinish?.();
|
|
124
|
+
};
|
|
125
|
+
|
|
126
|
+
private onReset = async () => {
|
|
127
|
+
await this.context.graph.zoomTo(1, this.options.animation);
|
|
128
|
+
};
|
|
129
|
+
|
|
130
|
+
private validate(event: BehaviorEvent<WheelEvent> | BehaviorEvent<KeyboardEvent>) {
|
|
131
|
+
if (this.destroyed) return false;
|
|
132
|
+
const { enable } = this.options;
|
|
133
|
+
if (isFunction(enable)) return enable(event);
|
|
134
|
+
return !!enable;
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
private preventDefault(eventName: string) {
|
|
138
|
+
const listener = (e: Event) => e.preventDefault();
|
|
139
|
+
const container = this.context.canvas.getContainer();
|
|
140
|
+
if (!container) return;
|
|
141
|
+
container.addEventListener(eventName, listener);
|
|
142
|
+
}
|
|
143
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export const DEFAULT_ANIMATION_OPTIONS: KeyframeAnimationOptions = {
|
|
2
|
+
duration: 500,
|
|
3
|
+
};
|
|
4
|
+
|
|
5
|
+
export const DEFAULT_ELEMENTS_ANIMATION_OPTIONS: KeyframeAnimationOptions = {
|
|
6
|
+
duration: 1000,
|
|
7
|
+
easing: 'cubic-bezier(0.250, 0.460, 0.450, 0.940)',
|
|
8
|
+
iterations: 1,
|
|
9
|
+
fill: 'both',
|
|
10
|
+
};
|