@antv/g6 5.0.0-beta.3 → 5.0.0-beta.31
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 +2 -2
- package/dist/lib/animations/executor.d.ts +12 -0
- package/dist/lib/animations/index.d.ts +18 -0
- package/dist/lib/animations/types.d.ts +56 -0
- package/dist/lib/behaviors/base-behavior.d.ts +5 -0
- package/dist/lib/behaviors/collapse-expand.d.ts +41 -0
- package/dist/lib/behaviors/drag-canvas.d.ts +56 -0
- package/dist/lib/behaviors/drag-element.d.ts +100 -0
- package/dist/lib/behaviors/focus-element.d.ts +29 -0
- package/dist/lib/behaviors/hover-element.d.ts +61 -0
- package/dist/lib/behaviors/index.d.ts +14 -0
- package/dist/lib/behaviors/types.d.ts +5 -0
- package/dist/lib/behaviors/zoom-canvas.d.ts +70 -0
- package/dist/lib/constants/animation.d.ts +2 -0
- package/dist/lib/constants/change.d.ts +15 -0
- package/dist/lib/constants/element.d.ts +6 -0
- package/dist/lib/constants/events/animation.d.ts +7 -0
- package/dist/lib/constants/events/canvas.d.ts +38 -0
- package/dist/lib/constants/events/combo.d.ts +2 -0
- package/dist/lib/constants/events/common.d.ts +42 -0
- package/dist/lib/constants/events/container.d.ts +6 -0
- package/dist/lib/constants/events/edge.d.ts +30 -0
- package/dist/lib/constants/events/graph.d.ts +60 -0
- package/dist/lib/constants/events/index.d.ts +8 -0
- package/dist/lib/constants/events/node.d.ts +36 -0
- package/dist/lib/constants/graphlib.d.ts +2 -0
- package/dist/lib/constants/index.d.ts +4 -0
- package/dist/lib/elements/combos/base-combo.d.ts +47 -0
- package/dist/lib/elements/combos/circle.d.ts +18 -0
- package/dist/lib/elements/combos/index.d.ts +6 -0
- package/dist/lib/elements/combos/rect.d.ts +15 -0
- package/dist/lib/elements/edges/base-edge.d.ts +58 -0
- package/dist/lib/elements/edges/cubic-horizontal.d.ts +21 -0
- package/dist/lib/elements/edges/cubic-vertical.d.ts +21 -0
- package/dist/lib/elements/edges/cubic.d.ts +30 -0
- package/dist/lib/elements/edges/index.d.ts +14 -0
- package/dist/lib/elements/edges/line.d.ts +15 -0
- package/dist/lib/elements/edges/polyline.d.ts +42 -0
- package/dist/lib/elements/edges/quadratic.d.ts +29 -0
- package/dist/lib/elements/index.d.ts +3 -0
- package/dist/lib/elements/nodes/base-node.d.ts +107 -0
- package/dist/lib/elements/nodes/circle.d.ts +20 -0
- package/dist/lib/elements/nodes/diamond.d.ts +15 -0
- package/dist/lib/elements/nodes/ellipse.d.ts +17 -0
- package/dist/lib/elements/nodes/hexagon.d.ts +21 -0
- package/dist/lib/elements/nodes/image.d.ts +20 -0
- package/dist/lib/elements/nodes/index.d.ts +18 -0
- package/dist/lib/elements/nodes/polygon.d.ts +17 -0
- package/dist/lib/elements/nodes/rect.d.ts +19 -0
- package/dist/lib/elements/nodes/star.d.ts +24 -0
- package/dist/lib/elements/nodes/triangle.d.ts +24 -0
- package/dist/lib/elements/shapes/badge.d.ts +14 -0
- package/dist/lib/elements/shapes/base-shape.d.ts +58 -0
- package/dist/lib/elements/shapes/icon.d.ts +13 -0
- package/dist/lib/elements/shapes/index.d.ts +13 -0
- package/dist/lib/elements/shapes/label.d.ts +22 -0
- package/dist/lib/exports.d.ts +32 -0
- package/dist/lib/index.d.ts +3 -0
- package/dist/lib/layouts/index.d.ts +3 -0
- package/dist/lib/layouts/types.d.ts +77 -0
- package/dist/lib/palettes/index.d.ts +9 -0
- package/dist/lib/palettes/types.d.ts +5 -0
- package/dist/lib/plugins/base-plugin.d.ts +5 -0
- package/dist/lib/plugins/contextmenu.d.ts +88 -0
- package/dist/lib/plugins/grid-line.d.ts +30 -0
- package/dist/lib/plugins/index.d.ts +12 -0
- package/dist/lib/plugins/toolbar/index.d.ts +62 -0
- package/dist/lib/plugins/toolbar/util.d.ts +34 -0
- package/dist/lib/plugins/tooltip.d.ts +39 -0
- package/dist/lib/plugins/types.d.ts +4 -0
- package/dist/lib/plugins/watermark.d.ts +51 -0
- package/dist/lib/preset.d.ts +1 -0
- package/dist/lib/registry/build-in.d.ts +6 -0
- package/dist/lib/registry/extension/index.d.ts +33 -0
- package/dist/lib/registry/extension/types.d.ts +38 -0
- package/dist/lib/registry/index.d.ts +57 -0
- package/dist/lib/registry/types.d.ts +41 -0
- package/dist/lib/runtime/behavior.d.ts +15 -0
- package/dist/lib/runtime/canvas.d.ts +49 -0
- package/dist/lib/runtime/data.d.ts +187 -0
- package/dist/lib/runtime/element.d.ts +138 -0
- package/dist/lib/runtime/graph.d.ts +441 -0
- package/dist/lib/runtime/index.d.ts +6 -0
- package/dist/lib/runtime/layout.d.ts +49 -0
- package/dist/lib/runtime/plugin.d.ts +9 -0
- package/dist/lib/runtime/types.d.ts +69 -0
- package/dist/lib/runtime/viewport.d.ts +59 -0
- package/dist/lib/spec/behavior.d.ts +12 -0
- package/dist/lib/spec/canvas.d.ts +42 -0
- package/dist/lib/spec/data.d.ts +44 -0
- package/dist/lib/spec/element/animation.d.ts +12 -0
- package/dist/lib/spec/element/base.d.ts +6 -0
- package/dist/lib/spec/element/combo.d.ts +48 -0
- package/dist/lib/spec/element/edge.d.ts +46 -0
- package/dist/lib/spec/element/node.d.ts +48 -0
- package/dist/lib/spec/element/palette.d.ts +53 -0
- package/dist/lib/spec/index.d.ts +11 -0
- package/dist/lib/spec/layout.d.ts +4 -0
- package/dist/lib/spec/plugin.d.ts +12 -0
- package/dist/lib/spec/spec.d.ts +76 -0
- package/dist/lib/spec/theme.d.ts +10 -0
- package/dist/lib/spec/viewport.d.ts +86 -0
- package/dist/lib/themes/base.d.ts +27 -0
- package/dist/lib/themes/dark.d.ts +2 -0
- package/dist/lib/themes/index.d.ts +2 -0
- package/dist/lib/themes/light.d.ts +2 -0
- package/dist/lib/themes/types.d.ts +10 -0
- package/dist/lib/types/anchor.d.ts +3 -0
- package/dist/lib/types/animation.d.ts +6 -0
- package/dist/lib/types/behavior.d.ts +5 -0
- package/dist/lib/types/callable.d.ts +30 -0
- package/dist/lib/types/canvas.d.ts +1 -0
- package/dist/lib/types/change.d.ts +51 -0
- package/dist/lib/types/data.d.ts +44 -0
- package/dist/lib/types/edge.d.ts +34 -0
- package/dist/lib/types/element.d.ts +149 -0
- package/dist/lib/types/enum.d.ts +1 -0
- package/dist/lib/types/event.d.ts +8 -0
- package/dist/lib/types/graphlib.d.ts +16 -0
- package/dist/lib/types/index.d.ts +24 -0
- package/dist/lib/types/node.d.ts +16 -0
- package/dist/lib/types/padding.d.ts +2 -0
- package/dist/lib/types/placement.d.ts +5 -0
- package/dist/lib/types/plugin.d.ts +5 -0
- package/dist/lib/types/point.d.ts +2 -0
- package/dist/lib/types/position.d.ts +2 -0
- package/dist/lib/types/prefix.d.ts +7 -0
- package/dist/lib/types/size.d.ts +3 -0
- package/dist/lib/types/state.d.ts +1 -0
- package/dist/lib/types/style.d.ts +11 -0
- package/dist/lib/types/tree.d.ts +5 -0
- package/dist/lib/types/vector.d.ts +2 -0
- package/dist/lib/types/viewport.d.ts +38 -0
- package/dist/lib/utils/anchor.d.ts +9 -0
- package/dist/lib/utils/animation.d.ts +73 -0
- package/dist/lib/utils/array.d.ts +9 -0
- package/dist/lib/utils/bbox.d.ts +109 -0
- package/dist/lib/utils/cache.d.ts +36 -0
- package/dist/lib/utils/change.d.ts +9 -0
- package/dist/lib/utils/combo.d.ts +33 -0
- package/dist/lib/utils/contextmenu.d.ts +26 -0
- package/dist/lib/utils/data.d.ts +34 -0
- package/dist/lib/utils/diff.d.ts +15 -0
- package/dist/lib/utils/dom.d.ts +23 -0
- package/dist/lib/utils/edge.d.ts +158 -0
- package/dist/lib/utils/element.d.ts +208 -0
- package/dist/lib/utils/event/events.d.ts +31 -0
- package/dist/lib/utils/event/index.d.ts +29 -0
- package/dist/lib/utils/extension.d.ts +10 -0
- package/dist/lib/utils/graphlib.d.ts +14 -0
- package/dist/lib/utils/id.d.ts +26 -0
- package/dist/lib/utils/is.d.ts +34 -0
- package/dist/lib/utils/layout.d.ts +25 -0
- package/dist/lib/utils/math.d.ts +10 -0
- package/dist/lib/utils/padding.d.ts +9 -0
- package/dist/lib/utils/palette.d.ts +33 -0
- package/dist/lib/utils/placement.d.ts +9 -0
- package/dist/lib/utils/point.d.ts +129 -0
- package/dist/lib/utils/position.d.ts +37 -0
- package/dist/lib/utils/prefix.d.ts +66 -0
- package/dist/lib/utils/relation.d.ts +34 -0
- package/dist/lib/utils/router/orth.d.ts +103 -0
- package/dist/lib/utils/shape.d.ts +9 -0
- package/dist/lib/utils/shortcut.d.ts +20 -0
- package/dist/lib/utils/size.d.ts +7 -0
- package/dist/lib/utils/style.d.ts +20 -0
- package/dist/lib/utils/symbol.d.ts +30 -0
- package/dist/lib/utils/text.d.ts +26 -0
- package/dist/lib/utils/traverse.d.ts +23 -0
- package/dist/lib/utils/tree.d.ts +17 -0
- package/dist/lib/utils/vector.d.ts +142 -0
- package/dist/lib/utils/visibility.d.ts +13 -0
- package/dist/lib/utils/watermark.d.ts +18 -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 +100 -0
- package/esm/behaviors/drag-element.js +202 -0
- package/esm/behaviors/drag-element.js.map +1 -0
- package/esm/behaviors/focus-element.d.ts +29 -0
- package/esm/behaviors/focus-element.js +57 -0
- package/esm/behaviors/focus-element.js.map +1 -0
- package/esm/behaviors/hover-element.d.ts +61 -0
- package/esm/behaviors/hover-element.js +85 -0
- package/esm/behaviors/hover-element.js.map +1 -0
- package/esm/behaviors/index.d.ts +14 -0
- package/esm/behaviors/index.js +8 -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 +70 -0
- package/esm/behaviors/zoom-canvas.js +81 -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 +6 -0
- package/esm/constants/element.js +7 -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/hexagon.d.ts +21 -0
- package/esm/elements/nodes/hexagon.js +20 -0
- package/esm/elements/nodes/hexagon.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 +18 -0
- package/esm/elements/nodes/index.js +10 -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 +58 -0
- package/esm/elements/shapes/base-shape.js +115 -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.js +15 -0
- package/esm/elements/types.js.map +1 -0
- package/esm/exports.d.ts +32 -0
- package/esm/exports.js +25 -0
- package/esm/exports.js.map +1 -0
- package/esm/index.d.ts +3 -248
- package/esm/index.js +3 -18
- 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 +77 -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 +2 -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/contextmenu.d.ts +88 -0
- package/esm/plugins/contextmenu.js +122 -0
- package/esm/plugins/contextmenu.js.map +1 -0
- package/esm/plugins/grid-line.d.ts +30 -0
- package/esm/plugins/grid-line.js +59 -0
- package/esm/plugins/grid-line.js.map +1 -0
- package/esm/plugins/index.d.ts +12 -0
- package/esm/plugins/index.js +7 -0
- package/esm/plugins/index.js.map +1 -0
- package/esm/plugins/toolbar/index.d.ts +62 -0
- package/esm/plugins/toolbar/index.js +68 -0
- package/esm/plugins/toolbar/index.js.map +1 -0
- package/esm/plugins/toolbar/util.d.ts +34 -0
- package/esm/plugins/toolbar/util.js +88 -0
- package/esm/plugins/toolbar/util.js.map +1 -0
- package/esm/plugins/tooltip.d.ts +39 -0
- package/esm/plugins/tooltip.js +232 -0
- package/esm/plugins/tooltip.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/plugins/watermark.d.ts +51 -0
- package/esm/plugins/watermark.js +53 -0
- package/esm/plugins/watermark.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 +85 -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 +84 -0
- package/esm/registry/extension/index.js.map +1 -0
- package/esm/registry/extension/types.d.ts +38 -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 +15 -0
- package/esm/runtime/behavior.js +106 -0
- package/esm/runtime/behavior.js.map +1 -0
- package/esm/runtime/canvas.d.ts +49 -0
- package/esm/runtime/canvas.js +197 -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 +586 -0
- package/esm/runtime/element.js.map +1 -0
- package/esm/runtime/graph.d.ts +364 -564
- package/esm/runtime/graph.js +609 -1548
- 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 +333 -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 +12 -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 +12 -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 +204 -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 -27
- 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 +7 -38
- 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 -16
- package/esm/types/index.js +1 -1
- package/esm/types/index.js.map +1 -1
- package/esm/types/node.d.ts +15 -214
- 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/plugin.d.ts +5 -44
- package/esm/types/plugin.js +1 -52
- package/esm/types/plugin.js.map +1 -1
- 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/contextmenu.d.ts +26 -0
- package/esm/utils/contextmenu.js +45 -0
- package/esm/utils/contextmenu.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 +23 -0
- package/esm/utils/dom.js +79 -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 +208 -0
- package/esm/utils/element.js +431 -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 +26 -0
- package/esm/utils/id.js +37 -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/relation.d.ts +34 -0
- package/esm/utils/relation.js +72 -0
- package/esm/utils/relation.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 +23 -0
- package/esm/utils/traverse.js +44 -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/esm/utils/watermark.d.ts +18 -0
- package/esm/utils/watermark.js +73 -0
- package/esm/utils/watermark.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 +100 -0
- package/lib/behaviors/drag-element.js +206 -0
- package/lib/behaviors/drag-element.js.map +1 -0
- package/lib/behaviors/focus-element.d.ts +29 -0
- package/lib/behaviors/focus-element.js +61 -0
- package/lib/behaviors/focus-element.js.map +1 -0
- package/lib/behaviors/hover-element.d.ts +61 -0
- package/lib/behaviors/hover-element.js +89 -0
- package/lib/behaviors/hover-element.js.map +1 -0
- package/lib/behaviors/index.d.ts +14 -0
- package/lib/behaviors/index.js +18 -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 +70 -0
- package/lib/behaviors/zoom-canvas.js +85 -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 +6 -0
- package/lib/constants/element.js +10 -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/hexagon.d.ts +21 -0
- package/lib/elements/nodes/hexagon.js +24 -0
- package/lib/elements/nodes/hexagon.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 +18 -0
- package/lib/elements/nodes/index.js +22 -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 +58 -0
- package/lib/elements/shapes/base-shape.js +119 -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.js +15 -0
- package/lib/elements/types.js.map +1 -0
- package/lib/exports.d.ts +32 -0
- package/lib/exports.js +46 -0
- package/lib/exports.js.map +1 -0
- package/lib/index.d.ts +3 -248
- package/lib/index.js +4 -27
- package/lib/index.js.map +1 -1
- package/lib/layouts/index.d.ts +3 -0
- package/lib/layouts/index.js +23 -0
- package/lib/layouts/index.js.map +1 -0
- package/lib/layouts/types.d.ts +77 -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 +3 -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/contextmenu.d.ts +88 -0
- package/lib/plugins/contextmenu.js +126 -0
- package/lib/plugins/contextmenu.js.map +1 -0
- package/lib/plugins/grid-line.d.ts +30 -0
- package/lib/plugins/grid-line.js +63 -0
- package/lib/plugins/grid-line.js.map +1 -0
- package/lib/plugins/index.d.ts +12 -0
- package/lib/plugins/index.js +16 -0
- package/lib/plugins/index.js.map +1 -0
- package/lib/plugins/toolbar/index.d.ts +62 -0
- package/lib/plugins/toolbar/index.js +72 -0
- package/lib/plugins/toolbar/index.js.map +1 -0
- package/lib/plugins/toolbar/util.d.ts +34 -0
- package/lib/plugins/toolbar/util.js +92 -0
- package/lib/plugins/toolbar/util.js.map +1 -0
- package/lib/plugins/tooltip.d.ts +39 -0
- package/lib/plugins/tooltip.js +236 -0
- package/lib/plugins/tooltip.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/plugins/watermark.d.ts +51 -0
- package/lib/plugins/watermark.js +57 -0
- package/lib/plugins/watermark.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 +88 -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 +89 -0
- package/lib/registry/extension/index.js.map +1 -0
- package/lib/registry/extension/types.d.ts +38 -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 +15 -0
- package/lib/runtime/behavior.js +110 -0
- package/lib/runtime/behavior.js.map +1 -0
- package/lib/runtime/canvas.d.ts +49 -0
- package/lib/runtime/canvas.js +201 -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 +590 -0
- package/lib/runtime/element.js.map +1 -0
- package/lib/runtime/graph.d.ts +364 -564
- package/lib/runtime/graph.js +609 -1547
- 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 +337 -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 +12 -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 +12 -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 +208 -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 -27
- 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 +7 -38
- 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 -16
- package/lib/types/index.js +0 -4
- package/lib/types/index.js.map +1 -1
- package/lib/types/node.d.ts +15 -214
- 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/plugin.d.ts +5 -44
- package/lib/types/plugin.js +0 -54
- package/lib/types/plugin.js.map +1 -1
- 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/contextmenu.d.ts +26 -0
- package/lib/utils/contextmenu.js +49 -0
- package/lib/utils/contextmenu.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 +23 -0
- package/lib/utils/dom.js +85 -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 +208 -0
- package/lib/utils/element.js +457 -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 +26 -0
- package/lib/utils/id.js +43 -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/relation.d.ts +34 -0
- package/lib/utils/relation.js +77 -0
- package/lib/utils/relation.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 +23 -0
- package/lib/utils/traverse.js +49 -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/lib/utils/watermark.d.ts +18 -0
- package/lib/utils/watermark.js +78 -0
- package/lib/utils/watermark.js.map +1 -0
- package/package.json +47 -94
- 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 +301 -0
- package/src/behaviors/focus-element.ts +89 -0
- package/src/behaviors/hover-element.ts +147 -0
- package/src/behaviors/index.ts +15 -0
- package/src/behaviors/types.ts +6 -0
- package/src/behaviors/zoom-canvas.ts +148 -0
- package/src/constants/animation.ts +10 -0
- package/src/constants/change.ts +16 -0
- package/src/constants/element.ts +7 -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/hexagon.ts +37 -0
- package/src/elements/nodes/image.ts +68 -0
- package/src/elements/nodes/index.ts +19 -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 +157 -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 +53 -0
- package/src/index.ts +3 -23
- package/src/layouts/hierarchy.d.ts +10 -0
- package/src/layouts/index.ts +16 -0
- package/src/layouts/types.ts +119 -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/contextmenu.ts +198 -0
- package/src/plugins/grid-line.ts +91 -0
- package/src/plugins/index.ts +13 -0
- package/src/plugins/toolbar/index.ts +125 -0
- package/src/plugins/toolbar/util.ts +117 -0
- package/src/plugins/tooltip.ts +268 -0
- package/src/plugins/types.ts +5 -0
- package/src/plugins/watermark.ts +98 -0
- package/src/preset.ts +9 -0
- package/src/registry/build-in.ts +121 -0
- package/src/registry/extension/index.ts +112 -0
- package/src/registry/extension/types.ts +45 -0
- package/src/registry/index.ts +103 -0
- package/src/registry/types.ts +31 -0
- package/src/runtime/behavior.ts +122 -0
- package/src/runtime/canvas.ts +271 -0
- package/src/runtime/data.ts +766 -0
- package/src/runtime/element.ts +771 -0
- package/src/runtime/graph.ts +767 -1957
- package/src/runtime/index.ts +7 -0
- package/src/runtime/layout.ts +406 -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 +15 -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 +15 -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 +243 -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 -56
- 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 +7 -44
- package/src/types/graphlib.ts +28 -0
- package/src/types/index.ts +24 -54
- package/src/types/node.ts +14 -238
- package/src/types/padding.ts +3 -0
- package/src/types/placement.ts +17 -0
- package/src/types/plugin.ts +5 -82
- 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/contextmenu.ts +62 -0
- package/src/utils/data.ts +64 -0
- package/src/utils/diff.ts +43 -0
- package/src/utils/dom.ts +102 -0
- package/src/utils/edge.ts +548 -0
- package/src/utils/element.ts +479 -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 +40 -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/relation.ts +84 -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 +59 -0
- package/src/utils/tree.ts +47 -0
- package/src/utils/vector.ts +201 -0
- package/src/utils/visibility.ts +31 -0
- package/src/utils/watermark.ts +93 -0
- 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 +0 -3
- 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 -21
- package/esm/constant/shape.js +0 -27
- package/esm/constant/shape.js.map +0 -1
- package/esm/item/combo.d.ts +0 -81
- package/esm/item/combo.js +0 -188
- package/esm/item/combo.js.map +0 -1
- package/esm/item/edge.d.ts +0 -57
- package/esm/item/edge.js +0 -142
- package/esm/item/edge.js.map +0 -1
- package/esm/item/item.d.ts +0 -191
- package/esm/item/item.js +0 -701
- package/esm/item/item.js.map +0 -1
- package/esm/item/node.d.ts +0 -63
- package/esm/item/node.js +0 -190
- package/esm/item/node.js.map +0 -1
- package/esm/runtime/controller/data.d.ts +0 -89
- package/esm/runtime/controller/data.js +0 -878
- package/esm/runtime/controller/data.js.map +0 -1
- package/esm/runtime/controller/extension.d.ts +0 -9
- package/esm/runtime/controller/extension.js +0 -11
- package/esm/runtime/controller/extension.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 -274
- package/esm/runtime/controller/interaction.js.map +0 -1
- package/esm/runtime/controller/item.d.ts +0 -143
- package/esm/runtime/controller/item.js +0 -1141
- package/esm/runtime/controller/item.js.map +0 -1
- package/esm/runtime/controller/layout.d.ts +0 -33
- package/esm/runtime/controller/layout.js +0 -300
- package/esm/runtime/controller/layout.js.map +0 -1
- package/esm/runtime/controller/plugin.d.ts +0 -45
- package/esm/runtime/controller/plugin.js +0 -173
- 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 -102
- 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 -109
- package/esm/stdlib/behavior/brush-select.js +0 -268
- 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 -157
- 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/drag-canvas.d.ts +0 -81
- package/esm/stdlib/behavior/drag-canvas.js +0 -250
- 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 -380
- package/esm/stdlib/behavior/drag-combo.js.map +0 -1
- package/esm/stdlib/behavior/drag-node.d.ts +0 -100
- package/esm/stdlib/behavior/drag-node.js +0 -439
- 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 -16
- package/esm/stdlib/behavior/index.js +0 -17
- 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 -79
- 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/shortcuts-call.d.ts +0 -38
- package/esm/stdlib/behavior/shortcuts-call.js +0 -80
- 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 -98
- package/esm/stdlib/behavior/zoom-canvas-3d.js.map +0 -1
- package/esm/stdlib/behavior/zoom-canvas.d.ts +0 -68
- package/esm/stdlib/behavior/zoom-canvas.js +0 -169
- package/esm/stdlib/behavior/zoom-canvas.js.map +0 -1
- package/esm/stdlib/data/index.d.ts +0 -3
- package/esm/stdlib/data/index.js +0 -4
- package/esm/stdlib/data/index.js.map +0 -1
- package/esm/stdlib/data/mapNodeSize.d.ts +0 -12
- package/esm/stdlib/data/mapNodeSize.js +0 -43
- package/esm/stdlib/data/mapNodeSize.js.map +0 -1
- package/esm/stdlib/data/transformV4Data.d.ts +0 -9
- package/esm/stdlib/data/transformV4Data.js +0 -142
- package/esm/stdlib/data/transformV4Data.js.map +0 -1
- package/esm/stdlib/data/validateData.d.ts +0 -9
- package/esm/stdlib/data/validateData.js +0 -103
- package/esm/stdlib/data/validateData.js.map +0 -1
- package/esm/stdlib/index.d.ts +0 -149
- package/esm/stdlib/index.js +0 -204
- 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 -56
- 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 -65
- package/esm/stdlib/item/combo/rect.js.map +0 -1
- package/esm/stdlib/item/edge/base.d.ts +0 -210
- package/esm/stdlib/item/edge/base.js +0 -444
- 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 -116
- 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 -63
- 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 -115
- 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 -92
- 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 -78
- package/esm/stdlib/item/edge/quadratic.js.map +0 -1
- package/esm/stdlib/item/node/base.d.ts +0 -256
- package/esm/stdlib/item/node/base.js +0 -603
- package/esm/stdlib/item/node/base.js.map +0 -1
- package/esm/stdlib/item/node/base3d.d.ts +0 -96
- package/esm/stdlib/item/node/base3d.js +0 -129
- 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 -56
- package/esm/stdlib/item/node/circle.js.map +0 -1
- package/esm/stdlib/item/node/diamond.d.ts +0 -32
- package/esm/stdlib/item/node/diamond.js +0 -79
- 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 -207
- 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 -71
- 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 -105
- package/esm/stdlib/item/node/hexagon.js.map +0 -1
- package/esm/stdlib/item/node/index.d.ts +0 -10
- package/esm/stdlib/item/node/index.js +0 -11
- package/esm/stdlib/item/node/index.js.map +0 -1
- package/esm/stdlib/item/node/modelRect.d.ts +0 -61
- package/esm/stdlib/item/node/modelRect.js +0 -186
- package/esm/stdlib/item/node/modelRect.js.map +0 -1
- package/esm/stdlib/item/node/rect.d.ts +0 -32
- package/esm/stdlib/item/node/rect.js +0 -75
- 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 -52
- package/esm/stdlib/item/node/sphere.js.map +0 -1
- package/esm/stdlib/item/node/star.d.ts +0 -34
- package/esm/stdlib/item/node/star.js +0 -115
- 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 -177
- package/esm/stdlib/item/node/triangle.js.map +0 -1
- package/esm/stdlib/plugin/fisheye/index.d.ts +0 -130
- package/esm/stdlib/plugin/fisheye/index.js +0 -488
- 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 -81
- 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 -63
- 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 -382
- 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 -401
- package/esm/stdlib/plugin/hull/util.js.map +0 -1
- package/esm/stdlib/plugin/index.d.ts +0 -9
- package/esm/stdlib/plugin/index.js +0 -10
- package/esm/stdlib/plugin/index.js.map +0 -1
- package/esm/stdlib/plugin/legend/index.d.ts +0 -163
- package/esm/stdlib/plugin/legend/index.js +0 -594
- package/esm/stdlib/plugin/legend/index.js.map +0 -1
- package/esm/stdlib/plugin/menu/index.d.ts +0 -55
- package/esm/stdlib/plugin/menu/index.js +0 -237
- package/esm/stdlib/plugin/menu/index.js.map +0 -1
- package/esm/stdlib/plugin/minimap/index.d.ts +0 -114
- package/esm/stdlib/plugin/minimap/index.js +0 -576
- package/esm/stdlib/plugin/minimap/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 -215
- 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 -378
- package/esm/stdlib/plugin/tooltip/index.js.map +0 -1
- package/esm/stdlib/plugin/types.d.ts +0 -9
- package/esm/stdlib/plugin/types.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 -292
- 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 -66
- 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 -594
- 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 -124
- package/esm/types/hook.js +0 -2
- package/esm/types/hook.js.map +0 -1
- package/esm/types/item.d.ts +0 -235
- package/esm/types/item.js +0 -16
- package/esm/types/item.js.map +0 -1
- package/esm/types/layout.d.ts +0 -72
- 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/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 -82
- 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 -23
- package/esm/types/view.js +0 -2
- package/esm/types/view.js.map +0 -1
- package/esm/util/animate.d.ts +0 -106
- package/esm/util/animate.js +0 -391
- package/esm/util/animate.js.map +0 -1
- package/esm/util/array.d.ts +0 -28
- package/esm/util/array.js +0 -70
- 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 -106
- package/esm/util/bbox.js +0 -255
- 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 -66
- package/esm/util/canvas.js.map +0 -1
- package/esm/util/data.d.ts +0 -96
- package/esm/util/data.js +0 -262
- package/esm/util/data.js.map +0 -1
- package/esm/util/event.d.ts +0 -40
- package/esm/util/event.js +0 -96
- package/esm/util/event.js.map +0 -1
- package/esm/util/extend.d.ts +0 -27
- package/esm/util/extend.js +0 -22
- 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 -52
- package/esm/util/index.js +0 -24
- package/esm/util/index.js.map +0 -1
- package/esm/util/item.d.ts +0 -15
- package/esm/util/item.js +0 -67
- package/esm/util/item.js.map +0 -1
- package/esm/util/layout.d.ts +0 -40
- package/esm/util/layout.js +0 -160
- package/esm/util/layout.js.map +0 -1
- package/esm/util/loop.d.ts +0 -37
- package/esm/util/loop.js +0 -104
- 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/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 -11
- package/esm/util/path.js +0 -44
- package/esm/util/path.js.map +0 -1
- package/esm/util/point.d.ts +0 -83
- package/esm/util/point.js +0 -185
- package/esm/util/point.js.map +0 -1
- package/esm/util/polyline.d.ts +0 -113
- package/esm/util/polyline.js +0 -505
- package/esm/util/polyline.js.map +0 -1
- package/esm/util/router.d.ts +0 -32
- package/esm/util/router.js +0 -383
- package/esm/util/router.js.map +0 -1
- package/esm/util/shape.d.ts +0 -140
- package/esm/util/shape.js +0 -620
- package/esm/util/shape.js.map +0 -1
- package/esm/util/shape3d.d.ts +0 -23
- package/esm/util/shape3d.js +0 -153
- package/esm/util/shape3d.js.map +0 -1
- package/esm/util/text.d.ts +0 -18
- package/esm/util/text.js +0 -36
- 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/zoom.d.ts +0 -17
- package/esm/util/zoom.js +0 -40
- 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 -11
- 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 +0 -3
- 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 -21
- package/lib/constant/shape.js +0 -30
- package/lib/constant/shape.js.map +0 -1
- package/lib/item/combo.d.ts +0 -81
- package/lib/item/combo.js +0 -194
- package/lib/item/combo.js.map +0 -1
- package/lib/item/edge.d.ts +0 -57
- package/lib/item/edge.js +0 -148
- package/lib/item/edge.js.map +0 -1
- package/lib/item/item.d.ts +0 -191
- package/lib/item/item.js +0 -704
- package/lib/item/item.js.map +0 -1
- package/lib/item/node.d.ts +0 -63
- package/lib/item/node.js +0 -196
- package/lib/item/node.js.map +0 -1
- package/lib/runtime/controller/data.d.ts +0 -89
- package/lib/runtime/controller/data.js +0 -882
- package/lib/runtime/controller/data.js.map +0 -1
- package/lib/runtime/controller/extension.d.ts +0 -9
- package/lib/runtime/controller/extension.js +0 -15
- package/lib/runtime/controller/extension.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 -278
- package/lib/runtime/controller/interaction.js.map +0 -1
- package/lib/runtime/controller/item.d.ts +0 -143
- package/lib/runtime/controller/item.js +0 -1148
- package/lib/runtime/controller/item.js.map +0 -1
- package/lib/runtime/controller/layout.d.ts +0 -33
- package/lib/runtime/controller/layout.js +0 -327
- package/lib/runtime/controller/layout.js.map +0 -1
- package/lib/runtime/controller/plugin.d.ts +0 -45
- package/lib/runtime/controller/plugin.js +0 -180
- 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 -106
- 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 -109
- package/lib/stdlib/behavior/brush-select.js +0 -272
- 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 -161
- 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/drag-canvas.d.ts +0 -81
- package/lib/stdlib/behavior/drag-canvas.js +0 -254
- 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 -384
- package/lib/stdlib/behavior/drag-combo.js.map +0 -1
- package/lib/stdlib/behavior/drag-node.d.ts +0 -100
- package/lib/stdlib/behavior/drag-node.js +0 -443
- 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 -16
- package/lib/stdlib/behavior/index.js +0 -33
- 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 -83
- 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/shortcuts-call.d.ts +0 -38
- package/lib/stdlib/behavior/shortcuts-call.js +0 -84
- 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 -102
- package/lib/stdlib/behavior/zoom-canvas-3d.js.map +0 -1
- package/lib/stdlib/behavior/zoom-canvas.d.ts +0 -68
- package/lib/stdlib/behavior/zoom-canvas.js +0 -173
- package/lib/stdlib/behavior/zoom-canvas.js.map +0 -1
- package/lib/stdlib/data/index.d.ts +0 -3
- package/lib/stdlib/data/index.js +0 -20
- package/lib/stdlib/data/index.js.map +0 -1
- package/lib/stdlib/data/mapNodeSize.d.ts +0 -12
- package/lib/stdlib/data/mapNodeSize.js +0 -47
- package/lib/stdlib/data/mapNodeSize.js.map +0 -1
- package/lib/stdlib/data/transformV4Data.d.ts +0 -9
- package/lib/stdlib/data/transformV4Data.js +0 -146
- package/lib/stdlib/data/transformV4Data.js.map +0 -1
- package/lib/stdlib/data/validateData.d.ts +0 -9
- package/lib/stdlib/data/validateData.js +0 -107
- package/lib/stdlib/data/validateData.js.map +0 -1
- package/lib/stdlib/index.d.ts +0 -149
- package/lib/stdlib/index.js +0 -236
- 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 -60
- 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 -69
- package/lib/stdlib/item/combo/rect.js.map +0 -1
- package/lib/stdlib/item/edge/base.d.ts +0 -210
- package/lib/stdlib/item/edge/base.js +0 -448
- 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 -120
- 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 -67
- 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 -119
- 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 -96
- 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 -82
- package/lib/stdlib/item/edge/quadratic.js.map +0 -1
- package/lib/stdlib/item/node/base.d.ts +0 -256
- package/lib/stdlib/item/node/base.js +0 -607
- package/lib/stdlib/item/node/base.js.map +0 -1
- package/lib/stdlib/item/node/base3d.d.ts +0 -96
- package/lib/stdlib/item/node/base3d.js +0 -133
- 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 -60
- package/lib/stdlib/item/node/circle.js.map +0 -1
- package/lib/stdlib/item/node/diamond.d.ts +0 -32
- package/lib/stdlib/item/node/diamond.js +0 -83
- 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 -211
- 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 -75
- 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 -109
- package/lib/stdlib/item/node/hexagon.js.map +0 -1
- package/lib/stdlib/item/node/index.d.ts +0 -10
- package/lib/stdlib/item/node/index.js +0 -27
- package/lib/stdlib/item/node/index.js.map +0 -1
- package/lib/stdlib/item/node/modelRect.d.ts +0 -61
- package/lib/stdlib/item/node/modelRect.js +0 -190
- package/lib/stdlib/item/node/modelRect.js.map +0 -1
- package/lib/stdlib/item/node/rect.d.ts +0 -32
- package/lib/stdlib/item/node/rect.js +0 -79
- 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 -56
- package/lib/stdlib/item/node/sphere.js.map +0 -1
- package/lib/stdlib/item/node/star.d.ts +0 -34
- package/lib/stdlib/item/node/star.js +0 -119
- 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 -181
- package/lib/stdlib/item/node/triangle.js.map +0 -1
- package/lib/stdlib/plugin/fisheye/index.d.ts +0 -130
- package/lib/stdlib/plugin/fisheye/index.js +0 -492
- 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 -85
- 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 -67
- 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 -385
- 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 -419
- package/lib/stdlib/plugin/hull/util.js.map +0 -1
- package/lib/stdlib/plugin/index.d.ts +0 -9
- package/lib/stdlib/plugin/index.js +0 -26
- package/lib/stdlib/plugin/index.js.map +0 -1
- package/lib/stdlib/plugin/legend/index.d.ts +0 -163
- package/lib/stdlib/plugin/legend/index.js +0 -598
- package/lib/stdlib/plugin/legend/index.js.map +0 -1
- package/lib/stdlib/plugin/menu/index.d.ts +0 -55
- package/lib/stdlib/plugin/menu/index.js +0 -244
- package/lib/stdlib/plugin/menu/index.js.map +0 -1
- package/lib/stdlib/plugin/minimap/index.d.ts +0 -114
- package/lib/stdlib/plugin/minimap/index.js +0 -580
- package/lib/stdlib/plugin/minimap/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 -222
- 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 -385
- package/lib/stdlib/plugin/tooltip/index.js.map +0 -1
- package/lib/stdlib/plugin/types.d.ts +0 -9
- package/lib/stdlib/plugin/types.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 -295
- 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 -70
- 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 -594
- 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 -124
- package/lib/types/hook.js +0 -3
- package/lib/types/hook.js.map +0 -1
- package/lib/types/item.d.ts +0 -235
- package/lib/types/item.js +0 -19
- package/lib/types/item.js.map +0 -1
- package/lib/types/layout.d.ts +0 -72
- 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/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 -82
- 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 -23
- package/lib/types/view.js +0 -3
- package/lib/types/view.js.map +0 -1
- package/lib/util/animate.d.ts +0 -106
- package/lib/util/animate.js +0 -400
- package/lib/util/animate.js.map +0 -1
- package/lib/util/array.d.ts +0 -28
- package/lib/util/array.js +0 -79
- 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 -106
- package/lib/util/bbox.js +0 -273
- 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 -71
- package/lib/util/canvas.js.map +0 -1
- package/lib/util/data.d.ts +0 -96
- package/lib/util/data.js +0 -276
- package/lib/util/data.js.map +0 -1
- package/lib/util/event.d.ts +0 -40
- package/lib/util/event.js +0 -102
- package/lib/util/event.js.map +0 -1
- package/lib/util/extend.d.ts +0 -27
- package/lib/util/extend.js +0 -29
- 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 -52
- package/lib/util/index.js +0 -26
- package/lib/util/index.js.map +0 -1
- package/lib/util/item.d.ts +0 -15
- package/lib/util/item.js +0 -72
- package/lib/util/item.js.map +0 -1
- package/lib/util/layout.d.ts +0 -40
- package/lib/util/layout.js +0 -172
- package/lib/util/layout.js.map +0 -1
- package/lib/util/loop.d.ts +0 -37
- package/lib/util/loop.js +0 -111
- 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/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 -11
- package/lib/util/path.js +0 -49
- package/lib/util/path.js.map +0 -1
- package/lib/util/point.d.ts +0 -83
- package/lib/util/point.js +0 -197
- package/lib/util/point.js.map +0 -1
- package/lib/util/polyline.d.ts +0 -113
- package/lib/util/polyline.js +0 -524
- package/lib/util/polyline.js.map +0 -1
- package/lib/util/router.d.ts +0 -32
- package/lib/util/router.js +0 -387
- package/lib/util/router.js.map +0 -1
- package/lib/util/shape.d.ts +0 -140
- package/lib/util/shape.js +0 -638
- package/lib/util/shape.js.map +0 -1
- package/lib/util/shape3d.d.ts +0 -23
- package/lib/util/shape3d.js +0 -159
- package/lib/util/shape3d.js.map +0 -1
- package/lib/util/text.d.ts +0 -18
- package/lib/util/text.js +0 -41
- 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/zoom.d.ts +0 -17
- package/lib/util/zoom.js +0 -45
- package/lib/util/zoom.js.map +0 -1
- package/src/api-doc/behaviors.ts +0 -2
- package/src/api-doc/graph.ts +0 -4
- 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 -2
- 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 -310
- package/src/item/edge.ts +0 -227
- package/src/item/item.ts +0 -906
- package/src/item/node.ts +0 -343
- package/src/runtime/controller/data.ts +0 -1049
- package/src/runtime/controller/extension.ts +0 -14
- package/src/runtime/controller/index.ts +0 -7
- package/src/runtime/controller/interaction.ts +0 -367
- package/src/runtime/controller/item.ts +0 -1611
- package/src/runtime/controller/layout.ts +0 -403
- package/src/runtime/controller/plugin.ts +0 -220
- package/src/runtime/controller/theme.ts +0 -73
- package/src/runtime/controller/viewport.ts +0 -131
- package/src/runtime/hooks.ts +0 -64
- package/src/stdlib/behavior/activate-relations.ts +0 -142
- package/src/stdlib/behavior/brush-select.ts +0 -385
- package/src/stdlib/behavior/click-select.ts +0 -216
- package/src/stdlib/behavior/collapse-expand-combo.ts +0 -57
- package/src/stdlib/behavior/collapse-expand-tree.ts +0 -106
- package/src/stdlib/behavior/drag-canvas.ts +0 -335
- package/src/stdlib/behavior/drag-combo.ts +0 -589
- package/src/stdlib/behavior/drag-node.ts +0 -676
- package/src/stdlib/behavior/hover-activate.ts +0 -102
- package/src/stdlib/behavior/index.ts +0 -16
- package/src/stdlib/behavior/lasso-select.ts +0 -98
- package/src/stdlib/behavior/orbit-canvas-3d.ts +0 -102
- package/src/stdlib/behavior/rotate-canvas-3d.ts +0 -170
- package/src/stdlib/behavior/shortcuts-call.ts +0 -120
- 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 -168
- package/src/stdlib/behavior/zoom-canvas.ts +0 -259
- package/src/stdlib/data/index.ts +0 -3
- package/src/stdlib/data/mapNodeSize.ts +0 -67
- package/src/stdlib/data/transformV4Data.ts +0 -207
- package/src/stdlib/data/validateData.ts +0 -151
- package/src/stdlib/index.ts +0 -284
- package/src/stdlib/item/combo/circle.ts +0 -113
- package/src/stdlib/item/combo/index.ts +0 -2
- package/src/stdlib/item/combo/rect.ts +0 -123
- package/src/stdlib/item/edge/base.ts +0 -731
- package/src/stdlib/item/edge/cubic-horizontal.ts +0 -86
- package/src/stdlib/item/edge/cubic-vertical.ts +0 -85
- package/src/stdlib/item/edge/cubic.ts +0 -198
- package/src/stdlib/item/edge/index.ts +0 -7
- package/src/stdlib/item/edge/line.ts +0 -103
- package/src/stdlib/item/edge/loop.ts +0 -162
- package/src/stdlib/item/edge/polyline.ts +0 -163
- package/src/stdlib/item/edge/quadratic.ts +0 -133
- package/src/stdlib/item/node/base.ts +0 -1001
- package/src/stdlib/item/node/base3d.ts +0 -210
- package/src/stdlib/item/node/circle.ts +0 -113
- package/src/stdlib/item/node/diamond.ts +0 -144
- package/src/stdlib/item/node/donut.ts +0 -368
- package/src/stdlib/item/node/ellipse.ts +0 -128
- package/src/stdlib/item/node/hexagon.ts +0 -172
- package/src/stdlib/item/node/index.ts +0 -10
- package/src/stdlib/item/node/modelRect.ts +0 -405
- package/src/stdlib/item/node/rect.ts +0 -141
- package/src/stdlib/item/node/sphere.ts +0 -99
- package/src/stdlib/item/node/star.ts +0 -181
- package/src/stdlib/item/node/triangle.ts +0 -265
- package/src/stdlib/plugin/fisheye/index.ts +0 -607
- 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 -96
- 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 -501
- 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 -511
- package/src/stdlib/plugin/index.ts +0 -9
- package/src/stdlib/plugin/legend/index.ts +0 -795
- package/src/stdlib/plugin/menu/index.ts +0 -275
- package/src/stdlib/plugin/minimap/index.ts +0 -698
- package/src/stdlib/plugin/timebar/index.ts +0 -473
- package/src/stdlib/plugin/toolbar/index.ts +0 -257
- package/src/stdlib/plugin/tooltip/index.ts +0 -444
- package/src/stdlib/plugin/types.ts +0 -9
- package/src/stdlib/selector/lasso.ts +0 -75
- package/src/stdlib/selector/rect.ts +0 -78
- package/src/stdlib/theme/dark.ts +0 -354
- 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 -107
- 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 -780
- package/src/types/history.ts +0 -30
- package/src/types/hook.ts +0 -128
- package/src/types/item.ts +0 -338
- package/src/types/layout.ts +0 -142
- package/src/types/loop.ts +0 -23
- package/src/types/render.ts +0 -1
- package/src/types/spec.ts +0 -133
- package/src/types/stdlib.ts +0 -25
- package/src/types/theme.ts +0 -171
- package/src/types/view.ts +0 -31
- package/src/util/animate.ts +0 -477
- package/src/util/array.ts +0 -68
- package/src/util/arrow.ts +0 -62
- package/src/util/bbox.ts +0 -298
- package/src/util/behavior.ts +0 -14
- package/src/util/canvas.ts +0 -87
- package/src/util/data.ts +0 -307
- package/src/util/event.ts +0 -147
- package/src/util/extend.ts +0 -48
- package/src/util/extension.ts +0 -29
- package/src/util/index.ts +0 -34
- package/src/util/item.ts +0 -136
- package/src/util/layout.ts +0 -165
- package/src/util/loop.ts +0 -145
- package/src/util/mapper.ts +0 -62
- package/src/util/math.ts +0 -33
- package/src/util/mock.ts +0 -72
- package/src/util/path.ts +0 -52
- package/src/util/point.ts +0 -226
- package/src/util/polyline.ts +0 -676
- package/src/util/router.ts +0 -561
- package/src/util/shape.ts +0 -765
- package/src/util/shape3d.ts +0 -203
- package/src/util/text.ts +0 -49
- package/src/util/type.ts +0 -11
- package/src/util/zoom.ts +0 -43
- /package/esm/{stdlib/behavior → animations}/types.js +0 -0
- /package/esm/{stdlib/plugin/hull → behaviors}/types.js +0 -0
- /package/esm/{api-doc → elements}/types.d.ts +0 -0
- /package/esm/{stdlib/plugin → layouts}/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/{stdlib/behavior → animations}/types.js +0 -0
- /package/lib/{stdlib/plugin/hull → behaviors}/types.js +0 -0
- /package/lib/{api-doc → elements}/types.d.ts +0 -0
- /package/lib/{stdlib/plugin → layouts}/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,125 @@
|
|
|
1
|
+
import type { RuntimeContext } from '../../runtime/types';
|
|
2
|
+
import { createPluginContainer, insertDOM } from '../../utils/dom';
|
|
3
|
+
import type { BasePluginOptions } from '../base-plugin';
|
|
4
|
+
import { BasePlugin } from '../base-plugin';
|
|
5
|
+
import type { Position, ToolbarItem } from './util';
|
|
6
|
+
import { BUILD_IN_SVG_ICON, TOOLBAR_CSS, parsePositionToStyle } from './util';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* <zh/> Toolbar 工具栏的配置项。
|
|
10
|
+
* <en/> The configuration item of the Toolbar toolbar.
|
|
11
|
+
*/
|
|
12
|
+
export type ToolbarOptions = BasePluginOptions & {
|
|
13
|
+
/**
|
|
14
|
+
* <zh/> 给工具栏的 DOM 追加的 classname,便于自定义样式。默认是包含 `g6-toolbar`。
|
|
15
|
+
* <en/> The classname appended to the menu DOM for custom styles. The default is `g6-toolbar`.
|
|
16
|
+
*/
|
|
17
|
+
className?: string;
|
|
18
|
+
/**
|
|
19
|
+
* <zh/> Toolbar 的位置,相对于画布,默认为 `top-left`,最终会影响 DOM 的 style 样式。
|
|
20
|
+
* <en/> The position of the Toolbar relative to the canvas, default is `top-left`, which will ultimately affect the style of the DOM.
|
|
21
|
+
*/
|
|
22
|
+
position?: Position;
|
|
23
|
+
/**
|
|
24
|
+
* <zh/> 工具栏显式的 style 样式,可以用来设置它相对于画布的位置、背景容器样式等。
|
|
25
|
+
* <en/> The style style of the Toolbar, which can be used to set its position relative to the canvas.
|
|
26
|
+
*/
|
|
27
|
+
style?: Partial<CSSStyleDeclaration>;
|
|
28
|
+
/**
|
|
29
|
+
* <zh/> 当工具栏被点击后,触发的回调方法。
|
|
30
|
+
* <en/> The callback method triggered when the toolbar item is clicked.
|
|
31
|
+
*/
|
|
32
|
+
onClick?: (value: string, target: Element) => void;
|
|
33
|
+
/**
|
|
34
|
+
* <zh/> 返回工具栏的项目列表,支持 `Promise` 类型的返回值。
|
|
35
|
+
* <en/> Return the list of toolbar items, support return a `Promise` as items.
|
|
36
|
+
*/
|
|
37
|
+
getItems: () => ToolbarItem[] | Promise<ToolbarItem[]>;
|
|
38
|
+
/**
|
|
39
|
+
* <zh/> 插件是否可用,默认 `true`。
|
|
40
|
+
* <en/> Whether the plugin is available, default is `true`.
|
|
41
|
+
*/
|
|
42
|
+
enable?: boolean;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* <zh/> 工具栏,支持配置工具栏项目,以及点击之后的回调方法。
|
|
47
|
+
* <en/> Toolbar, support configuration of toolbar items, and callback methods after clicking.
|
|
48
|
+
*/
|
|
49
|
+
export class Toolbar extends BasePlugin<ToolbarOptions> {
|
|
50
|
+
static defaultOptions: Partial<ToolbarOptions> = {
|
|
51
|
+
position: 'top-left',
|
|
52
|
+
enable: true,
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
private $element: HTMLElement = createPluginContainer('toolbar', false);
|
|
56
|
+
|
|
57
|
+
constructor(context: RuntimeContext, options: ToolbarOptions) {
|
|
58
|
+
super(context, Object.assign({}, Toolbar.defaultOptions, options));
|
|
59
|
+
|
|
60
|
+
const $container = this.context.canvas.getContainer();
|
|
61
|
+
this.$element.style.display = 'flex';
|
|
62
|
+
$container!.appendChild(this.$element);
|
|
63
|
+
|
|
64
|
+
// 设置样式
|
|
65
|
+
insertDOM('g6-toolbar-css', 'style', {}, TOOLBAR_CSS, document.head);
|
|
66
|
+
insertDOM('g6-toolbar-svgicon', 'div', { display: 'none' }, BUILD_IN_SVG_ICON);
|
|
67
|
+
|
|
68
|
+
this.$element.addEventListener('click', this.onToolbarItemClick);
|
|
69
|
+
|
|
70
|
+
this.update(options);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
/**
|
|
74
|
+
* <zh/> 更新工具栏的配置项。
|
|
75
|
+
* <en/> Update the configuration of the toolbar.
|
|
76
|
+
* @param options - 配置项
|
|
77
|
+
*/
|
|
78
|
+
public async update(options: Partial<ToolbarOptions>) {
|
|
79
|
+
super.update(options);
|
|
80
|
+
|
|
81
|
+
const { className, position, style } = this.options;
|
|
82
|
+
|
|
83
|
+
this.$element.className = `g6-toolbar ${className || ''}`;
|
|
84
|
+
|
|
85
|
+
// 设置容器的样式,主要是位置,背景之类的
|
|
86
|
+
Object.assign(this.$element.style, style, parsePositionToStyle(position));
|
|
87
|
+
|
|
88
|
+
this.$element.innerHTML = await this.getDOMContent();
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
/**
|
|
92
|
+
* <zh/> 销毁工具栏。
|
|
93
|
+
* <en/> Destroy the toolbar.
|
|
94
|
+
*/
|
|
95
|
+
public destroy(): void {
|
|
96
|
+
this.$element.removeEventListener('click', this.onToolbarItemClick);
|
|
97
|
+
this.$element.remove();
|
|
98
|
+
|
|
99
|
+
super.destroy();
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
private async getDOMContent() {
|
|
103
|
+
const items = await this.options.getItems();
|
|
104
|
+
return items
|
|
105
|
+
.map(
|
|
106
|
+
(item) => `
|
|
107
|
+
<div class="g6-toolbar-item" value="${item.value}">
|
|
108
|
+
<svg aria-hidden="true" focusable="false">
|
|
109
|
+
<use xlink:href="#${item.id}"></use>
|
|
110
|
+
</svg>
|
|
111
|
+
</div>`,
|
|
112
|
+
)
|
|
113
|
+
.join('');
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
private onToolbarItemClick = (e: MouseEvent) => {
|
|
117
|
+
const { onClick } = this.options;
|
|
118
|
+
if (e.target instanceof Element) {
|
|
119
|
+
if (e.target.className.includes('g6-toolbar-item')) {
|
|
120
|
+
const v = e.target.getAttribute('value') as string;
|
|
121
|
+
onClick?.(v, e.target);
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
};
|
|
125
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import { CornerPlacement } from '../../types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* <zh/> 工具栏显示项目。
|
|
5
|
+
* <en/> The item of the toolbar.
|
|
6
|
+
*/
|
|
7
|
+
export type ToolbarItem = {
|
|
8
|
+
/**
|
|
9
|
+
* <zh/> 可以使用 id 来配置内置的工具栏项,可以是 'zoom-in'、'zoom-out'、'auto-fit'、'reset' 等值,也可以配合三方的 iconfont 使用,原理是通过 id 来匹配内置的 svg symbol。See: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol。
|
|
10
|
+
* <en/> You can use id to configure the built-in toolbar items, which can be values such as 'zoom-in', 'zoom-out', 'auto-fit', 'reset', etc. One of the two configurations with `marker`. The principle is to match the built-in svg symbol through id. See: https://developer.mozilla.org/en-US/docs/Web/SVG/Element/symbol.
|
|
11
|
+
*/
|
|
12
|
+
readonly id: 'zoom-in' | 'zoom-out' | 'redo' | 'undo' | 'edit' | 'delete' | 'auto-fit' | 'export' | 'reset' | string;
|
|
13
|
+
/**
|
|
14
|
+
* <zh/> 工具栏项对应的值,在 onClick 中作为回调参数。
|
|
15
|
+
* <en/> The value corresponding to the toolbar item, used as a callback parameter in `onClick`.
|
|
16
|
+
*/
|
|
17
|
+
readonly value: string;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* <zh/> Toolbar 的位置,相对于画布,默认为 `top-left`,最终会影响 DOM 的 style 样式。
|
|
22
|
+
* <en/> The position of the Toolbar relative to the canvas, default is `top-left`, which will ultimately affect the style of the DOM.
|
|
23
|
+
*/
|
|
24
|
+
export type Position = CornerPlacement;
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* <zh/> 解析 toolbar 的 position 为位置样式。
|
|
28
|
+
* <en/> Parse the position of the toolbar into position style.
|
|
29
|
+
* @param position - position
|
|
30
|
+
* @returns style
|
|
31
|
+
*/
|
|
32
|
+
export function parsePositionToStyle(position: Position): Partial<CSSStyleDeclaration> {
|
|
33
|
+
const style: Partial<CSSStyleDeclaration> = {
|
|
34
|
+
top: 'unset',
|
|
35
|
+
right: 'unset',
|
|
36
|
+
bottom: 'unset',
|
|
37
|
+
left: 'unset',
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
const directions = position.split('-') as ('top' | 'right' | 'bottom' | 'left')[];
|
|
41
|
+
directions.forEach((d) => {
|
|
42
|
+
style[d] = '8px';
|
|
43
|
+
});
|
|
44
|
+
|
|
45
|
+
style.flexDirection = position.startsWith('top') || position.startsWith('bottom') ? 'row' : 'column';
|
|
46
|
+
|
|
47
|
+
return style;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* 内置默认的 toolbar 的 CSS 样式。
|
|
52
|
+
*/
|
|
53
|
+
export const TOOLBAR_CSS = `
|
|
54
|
+
.g6-toolbar {
|
|
55
|
+
position: absolute;
|
|
56
|
+
z-index: 100;
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: row;
|
|
59
|
+
align-items: center;
|
|
60
|
+
justify-content: center;
|
|
61
|
+
border-radius: 4px;
|
|
62
|
+
box-shadow: 0px 0px 8px rgba(0, 0, 0, 0.1);
|
|
63
|
+
opacity: 0.65;
|
|
64
|
+
}
|
|
65
|
+
.g6-toolbar .g6-toolbar-item {
|
|
66
|
+
display: inline-block;
|
|
67
|
+
width: 16px;
|
|
68
|
+
height: 16px;
|
|
69
|
+
padding: 4px;
|
|
70
|
+
cursor: pointer;
|
|
71
|
+
box-sizing: content-box;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
.g6-toolbar .g6-toolbar-item:hover {
|
|
75
|
+
background-color: #f0f0f0;
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
.g6-toolbar .g6-toolbar-item svg {
|
|
79
|
+
display: inline-block;
|
|
80
|
+
width: 100%;
|
|
81
|
+
height: 100%;
|
|
82
|
+
pointer-events: none;
|
|
83
|
+
}
|
|
84
|
+
`;
|
|
85
|
+
|
|
86
|
+
export const BUILD_IN_SVG_ICON = `
|
|
87
|
+
<svg>
|
|
88
|
+
<symbol id="zoom-in" viewBox="64 64 896 896">
|
|
89
|
+
<path d="M637 443H519V309c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v134H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h118v134c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V519h118c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path>
|
|
90
|
+
</symbol>
|
|
91
|
+
<symbol id="zoom-out" viewBox="64 64 896 896">
|
|
92
|
+
<path d="M637 443H325c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h312c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zm284 424L775 721c122.1-148.9 113.6-369.5-26-509-148-148.1-388.4-148.1-537 0-148.1 148.6-148.1 389 0 537 139.5 139.6 360.1 148.1 509 26l146 146c3.2 2.8 8.3 2.8 11 0l43-43c2.8-2.7 2.8-7.8 0-11zM696 696c-118.8 118.7-311.2 118.7-430 0-118.7-118.8-118.7-311.2 0-430 118.8-118.7 311.2-118.7 430 0 118.7 118.8 118.7 311.2 0 430z"></path>
|
|
93
|
+
</symbol>
|
|
94
|
+
<symbol id="edit" viewBox="64 64 896 896">
|
|
95
|
+
<path d="M257.7 752c2 0 4-.2 6-.5L431.9 722c2-.4 3.9-1.3 5.3-2.8l423.9-423.9a9.96 9.96 0 000-14.1L694.9 114.9c-1.9-1.9-4.4-2.9-7.1-2.9s-5.2 1-7.1 2.9L256.8 538.8c-1.5 1.5-2.4 3.3-2.8 5.3l-29.5 168.2a33.5 33.5 0 009.4 29.8c6.6 6.4 14.9 9.9 23.8 9.9zm67.4-174.4L687.8 215l73.3 73.3-362.7 362.6-88.9 15.7 15.6-89zM880 836H144c-17.7 0-32 14.3-32 32v36c0 4.4 3.6 8 8 8h784c4.4 0 8-3.6 8-8v-36c0-17.7-14.3-32-32-32z"></path>
|
|
96
|
+
</symbol>
|
|
97
|
+
<symbol id="delete" viewBox="64 64 896 896">
|
|
98
|
+
<path d="M360 184h-8c4.4 0 8-3.6 8-8v8h304v-8c0 4.4 3.6 8 8 8h-8v72h72v-80c0-35.3-28.7-64-64-64H352c-35.3 0-64 28.7-64 64v80h72v-72zm504 72H160c-17.7 0-32 14.3-32 32v32c0 4.4 3.6 8 8 8h60.4l24.7 523c1.6 34.1 29.8 61 63.9 61h454c34.2 0 62.3-26.8 63.9-61l24.7-523H888c4.4 0 8-3.6 8-8v-32c0-17.7-14.3-32-32-32zM731.3 840H292.7l-24.2-512h487l-24.2 512z"></path>
|
|
99
|
+
</symbol>
|
|
100
|
+
<symbol id="redo" viewBox="64 64 896 896">
|
|
101
|
+
<path d="M758.2 839.1C851.8 765.9 912 651.9 912 523.9 912 303 733.5 124.3 512.6 124 291.4 123.7 112 302.8 112 523.9c0 125.2 57.5 236.9 147.6 310.2 3.5 2.8 8.6 2.2 11.4-1.3l39.4-50.5c2.7-3.4 2.1-8.3-1.2-11.1-8.1-6.6-15.9-13.7-23.4-21.2a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-9.3 9.3-19.1 18-29.3 26L668.2 724a8 8 0 00-14.1 3l-39.6 162.2c-1.2 5 2.6 9.9 7.7 9.9l167 .8c6.7 0 10.5-7.7 6.3-12.9l-37.3-47.9z"></path>
|
|
102
|
+
</symbol>
|
|
103
|
+
<symbol id="undo" viewBox="64 64 896 896">
|
|
104
|
+
<path d="M511.4 124C290.5 124.3 112 303 112 523.9c0 128 60.2 242 153.8 315.2l-37.5 48c-4.1 5.3-.3 13 6.3 12.9l167-.8c5.2 0 9-4.9 7.7-9.9L369.8 727a8 8 0 00-14.1-3L315 776.1c-10.2-8-20-16.7-29.3-26a318.64 318.64 0 01-68.6-101.7C200.4 609 192 567.1 192 523.9s8.4-85.1 25.1-124.5c16.1-38.1 39.2-72.3 68.6-101.7 29.4-29.4 63.6-52.5 101.7-68.6C426.9 212.4 468.8 204 512 204s85.1 8.4 124.5 25.1c38.1 16.1 72.3 39.2 101.7 68.6 29.4 29.4 52.5 63.6 68.6 101.7 16.7 39.4 25.1 81.3 25.1 124.5s-8.4 85.1-25.1 124.5a318.64 318.64 0 01-68.6 101.7c-7.5 7.5-15.3 14.5-23.4 21.2a7.93 7.93 0 00-1.2 11.1l39.4 50.5c2.8 3.5 7.9 4.1 11.4 1.3C854.5 760.8 912 649.1 912 523.9c0-221.1-179.4-400.2-400.6-399.9z"></path>
|
|
105
|
+
</symbol>
|
|
106
|
+
<symbol id="export" viewBox="64 64 896 896">
|
|
107
|
+
<path d="M880 912H144c-17.7 0-32-14.3-32-32V144c0-17.7 14.3-32 32-32h360c4.4 0 8 3.6 8 8v56c0 4.4-3.6 8-8 8H184v656h656V520c0-4.4 3.6-8 8-8h56c4.4 0 8 3.6 8 8v360c0 17.7-14.3 32-32 32zM770.87 199.13l-52.2-52.2a8.01 8.01 0 014.7-13.6l179.4-21c5.1-.6 9.5 3.7 8.9 8.9l-21 179.4c-.8 6.6-8.9 9.4-13.6 4.7l-52.4-52.4-256.2 256.2a8.03 8.03 0 01-11.3 0l-42.4-42.4a8.03 8.03 0 010-11.3l256.1-256.3z"></path>
|
|
108
|
+
</symbol>
|
|
109
|
+
<symbol id="auto-fit" viewBox="64 64 896 896">
|
|
110
|
+
<path d="M952 474H829.8C812.5 327.6 696.4 211.5 550 194.2V72c0-4.4-3.6-8-8-8h-60c-4.4 0-8 3.6-8 8v122.2C327.6 211.5 211.5 327.6 194.2 474H72c-4.4 0-8 3.6-8 8v60c0 4.4 3.6 8 8 8h122.2C211.5 696.4 327.6 812.5 474 829.8V952c0 4.4 3.6 8 8 8h60c4.4 0 8-3.6 8-8V829.8C696.4 812.5 812.5 696.4 829.8 550H952c4.4 0 8-3.6 8-8v-60c0-4.4-3.6-8-8-8zM512 756c-134.8 0-244-109.2-244-244s109.2-244 244-244 244 109.2 244 244-109.2 244-244 244z"></path>
|
|
111
|
+
<path d="M512 392c-32.1 0-62.1 12.4-84.8 35.2-22.7 22.7-35.2 52.7-35.2 84.8s12.5 62.1 35.2 84.8C449.9 619.4 480 632 512 632s62.1-12.5 84.8-35.2C619.4 574.1 632 544 632 512s-12.5-62.1-35.2-84.8A118.57 118.57 0 00512 392z"></path>
|
|
112
|
+
</symbol>
|
|
113
|
+
<symbol id="reset" viewBox="64 64 896 896">
|
|
114
|
+
<path d="M909.1 209.3l-56.4 44.1C775.8 155.1 656.2 92 521.9 92 290 92 102.3 279.5 102 511.5 101.7 743.7 289.8 932 521.9 932c181.3 0 335.8-115 394.6-276.1 1.5-4.2-.7-8.9-4.9-10.3l-56.7-19.5a8 8 0 00-10.1 4.8c-1.8 5-3.8 10-5.9 14.9-17.3 41-42.1 77.8-73.7 109.4A344.77 344.77 0 01655.9 829c-42.3 17.9-87.4 27-133.8 27-46.5 0-91.5-9.1-133.8-27A341.5 341.5 0 01279 755.2a342.16 342.16 0 01-73.7-109.4c-17.9-42.4-27-87.4-27-133.9s9.1-91.5 27-133.9c17.3-41 42.1-77.8 73.7-109.4 31.6-31.6 68.4-56.4 109.3-73.8 42.3-17.9 87.4-27 133.8-27 46.5 0 91.5 9.1 133.8 27a341.5 341.5 0 01109.3 73.8c9.9 9.9 19.2 20.4 27.8 31.4l-60.2 47a8 8 0 003 14.1l175.6 43c5 1.2 9.9-2.6 9.9-7.7l.8-180.9c-.1-6.6-7.8-10.3-13-6.2z"></path>
|
|
115
|
+
</symbol>
|
|
116
|
+
</svg>
|
|
117
|
+
`;
|
|
@@ -0,0 +1,268 @@
|
|
|
1
|
+
import type { TooltipStyleProps } from '@antv/component';
|
|
2
|
+
import { Tooltip as TooltipComponent } from '@antv/component';
|
|
3
|
+
import { get } from '@antv/util';
|
|
4
|
+
import type { RuntimeContext } from '../runtime/types';
|
|
5
|
+
import type { ElementDatum, ElementEvent, ElementType } from '../types';
|
|
6
|
+
import type { BasePluginOptions } from './base-plugin';
|
|
7
|
+
import { BasePlugin } from './base-plugin';
|
|
8
|
+
|
|
9
|
+
export interface TooltipOptions
|
|
10
|
+
extends BasePluginOptions,
|
|
11
|
+
Pick<TooltipStyleProps, 'position' | 'offset' | 'enterable' | 'style' | 'container'> {
|
|
12
|
+
/** <zh/> 触发方式 | <en/> Event type that triggers display of tooltip */
|
|
13
|
+
trigger?: 'hover' | 'click';
|
|
14
|
+
/** <zh/> 自定义内容 | <en/> Function for getting tooltip content */
|
|
15
|
+
getContent?: (evt: ElementEvent, items: ElementDatum[]) => HTMLElement | string;
|
|
16
|
+
/** <zh/> 是否启用 | <en/> Is enable */
|
|
17
|
+
enable?: boolean | ((evt: ElementEvent) => boolean);
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export class Tooltip extends BasePlugin<TooltipOptions> {
|
|
21
|
+
static defaultOptions: Partial<TooltipOptions> = {
|
|
22
|
+
trigger: 'hover',
|
|
23
|
+
position: 'top-right',
|
|
24
|
+
enterable: false,
|
|
25
|
+
enable: true,
|
|
26
|
+
style: {
|
|
27
|
+
'.tooltip': {
|
|
28
|
+
visibility: 'hidden',
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
};
|
|
32
|
+
private currentTarget: string | null = null;
|
|
33
|
+
private tooltipElement: TooltipComponent | null = null;
|
|
34
|
+
private container: HTMLElement | null = null;
|
|
35
|
+
|
|
36
|
+
constructor(context: RuntimeContext, options: TooltipOptions) {
|
|
37
|
+
super(context, Object.assign({}, Tooltip.defaultOptions, options));
|
|
38
|
+
this.render();
|
|
39
|
+
this.bindEvents();
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
public getEvents(): { [key: string]: Function } {
|
|
43
|
+
if (this.options.trigger === 'click') {
|
|
44
|
+
return {
|
|
45
|
+
'node:click': this.onClick,
|
|
46
|
+
'edge:click': this.onClick,
|
|
47
|
+
'combo:click': this.onClick,
|
|
48
|
+
'canvas:click': this.onPointerLeave,
|
|
49
|
+
afterremoveitem: this.onPointerLeave,
|
|
50
|
+
contextmenu: this.onPointerLeave,
|
|
51
|
+
drag: this.onPointerLeave,
|
|
52
|
+
};
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
return {
|
|
56
|
+
'node:pointerenter': this.onPointerEnter,
|
|
57
|
+
'node:pointermove': this.onPointerMove,
|
|
58
|
+
'canvas:pointermove': this.onCanvasMove,
|
|
59
|
+
'edge:pointerenter': this.onPointerEnter,
|
|
60
|
+
'edge:pointermove': this.onPointerMove,
|
|
61
|
+
'combo:pointerenter': this.onPointerEnter,
|
|
62
|
+
'combo:pointermove': this.onPointerMove,
|
|
63
|
+
contextmenu: this.onPointerLeave,
|
|
64
|
+
'node:drag': this.onPointerLeave,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
public update(options: Partial<TooltipOptions>) {
|
|
69
|
+
this.unbindEvents();
|
|
70
|
+
super.update(options);
|
|
71
|
+
if (this.tooltipElement) {
|
|
72
|
+
this.container?.removeChild(this.tooltipElement.HTMLTooltipElement);
|
|
73
|
+
}
|
|
74
|
+
this.tooltipElement = this.initTooltip();
|
|
75
|
+
this.bindEvents();
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
private render() {
|
|
79
|
+
const { canvas } = this.context;
|
|
80
|
+
const $container = canvas.getContainer();
|
|
81
|
+
if (!$container) return;
|
|
82
|
+
this.container = $container;
|
|
83
|
+
this.tooltipElement = this.initTooltip();
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
private unbindEvents() {
|
|
87
|
+
const { graph } = this.context;
|
|
88
|
+
/** The previous event binding needs to be removed when updating the trigger. */
|
|
89
|
+
const events = this.getEvents();
|
|
90
|
+
Object.keys(events).forEach((eventName) => {
|
|
91
|
+
graph.off(eventName, events[eventName]);
|
|
92
|
+
});
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
private bindEvents() {
|
|
96
|
+
const { graph } = this.context;
|
|
97
|
+
const events = this.getEvents();
|
|
98
|
+
Object.keys(events).forEach((eventName) => {
|
|
99
|
+
graph.on(eventName, events[eventName]);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
private isEnable = (e: ElementEvent) => {
|
|
104
|
+
const { enable } = this.options;
|
|
105
|
+
if (typeof enable === 'function') {
|
|
106
|
+
return enable(e);
|
|
107
|
+
}
|
|
108
|
+
return enable;
|
|
109
|
+
};
|
|
110
|
+
|
|
111
|
+
public onClick = (e: ElementEvent) => {
|
|
112
|
+
const {
|
|
113
|
+
target: { id },
|
|
114
|
+
} = e;
|
|
115
|
+
// click the same item twice, tooltip will be hidden
|
|
116
|
+
if (this.currentTarget === id) {
|
|
117
|
+
this.currentTarget = null;
|
|
118
|
+
this.hideTooltip(e);
|
|
119
|
+
} else {
|
|
120
|
+
this.currentTarget = id;
|
|
121
|
+
this.showTooltip(e);
|
|
122
|
+
}
|
|
123
|
+
};
|
|
124
|
+
|
|
125
|
+
public onPointerMove = (e: ElementEvent) => {
|
|
126
|
+
const { target } = e;
|
|
127
|
+
if (!this.currentTarget || target.id === this.currentTarget) {
|
|
128
|
+
return;
|
|
129
|
+
}
|
|
130
|
+
this.showTooltip(e);
|
|
131
|
+
};
|
|
132
|
+
|
|
133
|
+
public onPointerLeave = (e: ElementEvent) => {
|
|
134
|
+
this.hideTooltip(e);
|
|
135
|
+
this.currentTarget = null;
|
|
136
|
+
};
|
|
137
|
+
|
|
138
|
+
public onCanvasMove = (e: ElementEvent) => {
|
|
139
|
+
this.hideTooltip(e);
|
|
140
|
+
this.currentTarget = null;
|
|
141
|
+
};
|
|
142
|
+
|
|
143
|
+
private onPointerEnter = (e: ElementEvent) => {
|
|
144
|
+
this.showTooltip(e);
|
|
145
|
+
};
|
|
146
|
+
|
|
147
|
+
public showTooltipById = (id: string, elementType: ElementType = 'node') => {
|
|
148
|
+
const e = {
|
|
149
|
+
targetType: elementType,
|
|
150
|
+
target: { id },
|
|
151
|
+
} as ElementEvent;
|
|
152
|
+
this.showTooltip(e);
|
|
153
|
+
};
|
|
154
|
+
|
|
155
|
+
private getItems = (id: string, targetType: ElementType) => {
|
|
156
|
+
const { model } = this.context;
|
|
157
|
+
switch (targetType) {
|
|
158
|
+
case 'node':
|
|
159
|
+
return model.getNodeData([id]);
|
|
160
|
+
case 'edge':
|
|
161
|
+
return model.getEdgeData([id]);
|
|
162
|
+
case 'combo':
|
|
163
|
+
return model.getComboData([id]);
|
|
164
|
+
default:
|
|
165
|
+
return [];
|
|
166
|
+
}
|
|
167
|
+
};
|
|
168
|
+
|
|
169
|
+
public showTooltip = (e: ElementEvent) => {
|
|
170
|
+
const {
|
|
171
|
+
targetType,
|
|
172
|
+
client,
|
|
173
|
+
target: { id, attributes = { color: '#1883FF' } },
|
|
174
|
+
} = e;
|
|
175
|
+
if (!this.tooltipElement || !this.isEnable(e)) return;
|
|
176
|
+
const { getContent } = this.options;
|
|
177
|
+
const { color, stroke } = attributes;
|
|
178
|
+
this.currentTarget = id;
|
|
179
|
+
const items: ElementDatum[] = this.getItems(id, targetType);
|
|
180
|
+
let x;
|
|
181
|
+
let y;
|
|
182
|
+
if (client) {
|
|
183
|
+
x = client.x;
|
|
184
|
+
y = client.y;
|
|
185
|
+
} else {
|
|
186
|
+
const style = get(items, '0.style', { x: 0, y: 0 });
|
|
187
|
+
x = style.x;
|
|
188
|
+
y = style.y;
|
|
189
|
+
}
|
|
190
|
+
let tooltipContent: { [key: string]: unknown } = {};
|
|
191
|
+
if (getContent) {
|
|
192
|
+
tooltipContent.content = getContent(e, items);
|
|
193
|
+
} else {
|
|
194
|
+
tooltipContent = {
|
|
195
|
+
title: targetType,
|
|
196
|
+
data: items.map((item) => {
|
|
197
|
+
return {
|
|
198
|
+
name: 'ID',
|
|
199
|
+
value: item.id || `${item.source} -> ${item.target}`,
|
|
200
|
+
color: color || stroke,
|
|
201
|
+
};
|
|
202
|
+
}),
|
|
203
|
+
};
|
|
204
|
+
}
|
|
205
|
+
this.tooltipElement.update({
|
|
206
|
+
x,
|
|
207
|
+
y,
|
|
208
|
+
style: {
|
|
209
|
+
'.tooltip': {
|
|
210
|
+
visibility: 'visible',
|
|
211
|
+
},
|
|
212
|
+
},
|
|
213
|
+
...tooltipContent,
|
|
214
|
+
});
|
|
215
|
+
};
|
|
216
|
+
|
|
217
|
+
public hideTooltip = (e?: ElementEvent) => {
|
|
218
|
+
// if e is undefined, hide the tooltip, external call
|
|
219
|
+
if (!e) {
|
|
220
|
+
this.tooltipElement?.hide();
|
|
221
|
+
return;
|
|
222
|
+
}
|
|
223
|
+
if (!this.tooltipElement || !this.isEnable(e)) return;
|
|
224
|
+
const {
|
|
225
|
+
client: { x, y },
|
|
226
|
+
} = e;
|
|
227
|
+
this.tooltipElement.hide(x, y);
|
|
228
|
+
};
|
|
229
|
+
|
|
230
|
+
private initTooltip = () => {
|
|
231
|
+
const { canvas } = this.context;
|
|
232
|
+
const { center } = canvas.getBounds();
|
|
233
|
+
const $container = canvas.getContainer() as HTMLElement;
|
|
234
|
+
const { top, left } = $container.getBoundingClientRect();
|
|
235
|
+
const { style, position, enterable, container = { x: -left, y: -top } } = this.options;
|
|
236
|
+
const [x, y] = center;
|
|
237
|
+
const [width, height] = canvas.getSize();
|
|
238
|
+
const tooltipElement = new TooltipComponent({
|
|
239
|
+
className: 'tooltip',
|
|
240
|
+
style: {
|
|
241
|
+
x,
|
|
242
|
+
y,
|
|
243
|
+
container,
|
|
244
|
+
bounding: {
|
|
245
|
+
x: 0,
|
|
246
|
+
y: 0,
|
|
247
|
+
width,
|
|
248
|
+
height,
|
|
249
|
+
},
|
|
250
|
+
position,
|
|
251
|
+
enterable,
|
|
252
|
+
title: '',
|
|
253
|
+
offset: [10, 10],
|
|
254
|
+
style,
|
|
255
|
+
},
|
|
256
|
+
});
|
|
257
|
+
this.container?.appendChild(tooltipElement.HTMLTooltipElement);
|
|
258
|
+
return tooltipElement;
|
|
259
|
+
};
|
|
260
|
+
|
|
261
|
+
public destroy(): void {
|
|
262
|
+
this.unbindEvents();
|
|
263
|
+
if (this.tooltipElement) {
|
|
264
|
+
this.container?.removeChild(this.tooltipElement.HTMLTooltipElement);
|
|
265
|
+
}
|
|
266
|
+
super.destroy();
|
|
267
|
+
}
|
|
268
|
+
}
|
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
import type { RuntimeContext } from '../runtime/types';
|
|
2
|
+
import { createPluginContainer } from '../utils/dom';
|
|
3
|
+
import { getImageWatermark, getTextWateramrk } from '../utils/watermark';
|
|
4
|
+
import type { BasePluginOptions } from './base-plugin';
|
|
5
|
+
import { BasePlugin } from './base-plugin';
|
|
6
|
+
|
|
7
|
+
export type WatermarkOptions = BasePluginOptions & {
|
|
8
|
+
/** 单独一个水印的大小,这个水印最终会用来填充整个大小,所以 repeat 后的间距大小,通过这个 width height 设置 */
|
|
9
|
+
width?: number;
|
|
10
|
+
height?: number;
|
|
11
|
+
/** 透明度 */
|
|
12
|
+
opacity?: number;
|
|
13
|
+
/** 旋转角度 */
|
|
14
|
+
rotate?: number;
|
|
15
|
+
/** 图片地址,如果有值,则使用,否则使用文本 */
|
|
16
|
+
imageURL?: string;
|
|
17
|
+
/** 水印文本 */
|
|
18
|
+
text?: string;
|
|
19
|
+
/** 文本水印的文本样式 */
|
|
20
|
+
textFill: string;
|
|
21
|
+
textFontSize: number;
|
|
22
|
+
textFontFamily: string;
|
|
23
|
+
textFontWeight: string;
|
|
24
|
+
textFontVariant: string;
|
|
25
|
+
textAlign: CanvasTextAlign;
|
|
26
|
+
textBaseline: CanvasTextBaseline;
|
|
27
|
+
/** 背景的 CSS 样式 */
|
|
28
|
+
backgroundAttachment: string;
|
|
29
|
+
backgroundBlendMode: string;
|
|
30
|
+
backgroundClip: string;
|
|
31
|
+
backgroundColor: string;
|
|
32
|
+
backgroundImage: string;
|
|
33
|
+
backgroundOrigin: string;
|
|
34
|
+
backgroundPosition: string;
|
|
35
|
+
backgroundPositionX: string;
|
|
36
|
+
backgroundPositionY: string;
|
|
37
|
+
backgroundRepeat: string;
|
|
38
|
+
backgroundSize: string;
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* <zh/> 支持使用文本和图片作为水印,实现原理是在 Graph 容器的 div 上加上 background-image 属性,然后就可以通过 css 来控制水印的位置和样式。
|
|
43
|
+
* 对于文本,会使用隐藏 canvas 转成图片的方式来实现。
|
|
44
|
+
* <en/> Support using text and images as watermarks.
|
|
45
|
+
* The principle is to add the background-image property to the div of the Graph container,
|
|
46
|
+
* and then you can control the position and style of the watermark through css. For text,
|
|
47
|
+
* it will be converted to an image using a hidden canvas.
|
|
48
|
+
*/
|
|
49
|
+
export class Watermark extends BasePlugin<WatermarkOptions> {
|
|
50
|
+
static defaultOptions: Partial<WatermarkOptions> = {
|
|
51
|
+
width: 200,
|
|
52
|
+
height: 100,
|
|
53
|
+
opacity: 0.2,
|
|
54
|
+
rotate: Math.PI / 12,
|
|
55
|
+
textFill: '#000',
|
|
56
|
+
textFontSize: 16,
|
|
57
|
+
textAlign: 'center',
|
|
58
|
+
textBaseline: 'middle',
|
|
59
|
+
backgroundRepeat: 'repeat',
|
|
60
|
+
};
|
|
61
|
+
|
|
62
|
+
private $element: HTMLElement = createPluginContainer('watermark');
|
|
63
|
+
|
|
64
|
+
constructor(context: RuntimeContext, options: WatermarkOptions) {
|
|
65
|
+
super(context, Object.assign({}, Watermark.defaultOptions, options));
|
|
66
|
+
|
|
67
|
+
const $container = this.context.canvas.getContainer();
|
|
68
|
+
$container!.appendChild(this.$element);
|
|
69
|
+
|
|
70
|
+
this.update(options);
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
public async update(options: Partial<WatermarkOptions>) {
|
|
74
|
+
super.update(options);
|
|
75
|
+
|
|
76
|
+
const { width, height, text, imageURL, ...rest } = this.options;
|
|
77
|
+
|
|
78
|
+
// Set the background style.
|
|
79
|
+
Object.keys(rest).forEach((key) => {
|
|
80
|
+
if (key.startsWith('background')) {
|
|
81
|
+
// @ts-expect-error ignore
|
|
82
|
+
this.$element.style[key] = options[key];
|
|
83
|
+
}
|
|
84
|
+
});
|
|
85
|
+
|
|
86
|
+
// Set the background image.
|
|
87
|
+
const base64 = imageURL
|
|
88
|
+
? await getImageWatermark(width, height, imageURL, rest)
|
|
89
|
+
: await getTextWateramrk(width, height, text, rest);
|
|
90
|
+
this.$element.style.backgroundImage = `url(${base64})`;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
public destroy(): void {
|
|
94
|
+
super.destroy();
|
|
95
|
+
// Remove the background dom.
|
|
96
|
+
this.$element.remove();
|
|
97
|
+
}
|
|
98
|
+
}
|