@visuallyjs/browser-ui 1.0.0
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/css/visuallyjs-theme.css +148 -0
- package/css/visuallyjs.css +1879 -0
- package/js/visuallyjs.browser-ui.cjs.js +143 -0
- package/js/visuallyjs.browser-ui.esm.js +143 -0
- package/package.json +16 -0
- package/types/browser-ui/base-dom-ui-layout-adapter.d.ts +14 -0
- package/types/browser-ui/browser-ui.d.ts +95 -0
- package/types/browser-ui/browser-util.d.ts +233 -0
- package/types/browser-ui/browser-visuallyjs-instance.d.ts +881 -0
- package/types/browser-ui/canvas-layout-adapter.d.ts +15 -0
- package/types/browser-ui/collicat.d.ts +245 -0
- package/types/browser-ui/components/controls/controls-component.d.ts +137 -0
- package/types/browser-ui/components/controls/copy-paste-controls-component.d.ts +9 -0
- package/types/browser-ui/components/controls/css-classes.d.ts +79 -0
- package/types/browser-ui/components/controls/index.d.ts +4 -0
- package/types/browser-ui/components/controls/svg-export-component.d.ts +60 -0
- package/types/browser-ui/components/edge-type-picker/edge-type-picker.d.ts +37 -0
- package/types/browser-ui/components/edge-type-picker/index.d.ts +1 -0
- package/types/browser-ui/components/index.d.ts +4 -0
- package/types/browser-ui/components/inspector/color-picker-tag.d.ts +32 -0
- package/types/browser-ui/components/inspector/definitions.d.ts +114 -0
- package/types/browser-ui/components/inspector/edge-type-tag.d.ts +15 -0
- package/types/browser-ui/components/inspector/index.d.ts +6 -0
- package/types/browser-ui/components/inspector/inspector.d.ts +138 -0
- package/types/browser-ui/components/inspector/shape-type-inspector.d.ts +43 -0
- package/types/browser-ui/components/inspector/vanilla-inspector.d.ts +39 -0
- package/types/browser-ui/components/palette/index.d.ts +2 -0
- package/types/browser-ui/components/palette/palette-content-generator.d.ts +14 -0
- package/types/browser-ui/components/palette/palette-options.d.ts +159 -0
- package/types/browser-ui/components/palette/palette.d.ts +126 -0
- package/types/browser-ui/connector-editor.d.ts +65 -0
- package/types/browser-ui/connector-editors/anchors.d.ts +31 -0
- package/types/browser-ui/connector-editors/css-constants.d.ts +33 -0
- package/types/browser-ui/connector-editors/definitions.d.ts +74 -0
- package/types/browser-ui/connector-editors/editor-base.d.ts +177 -0
- package/types/browser-ui/connector-editors/index.d.ts +52 -0
- package/types/browser-ui/connector-editors/util.d.ts +33 -0
- package/types/browser-ui/connector-editors-bezier/bezier-editor.d.ts +82 -0
- package/types/browser-ui/connector-editors-bezier/css-constants.d.ts +42 -0
- package/types/browser-ui/connector-editors-bezier/index.d.ts +9 -0
- package/types/browser-ui/connector-editors-orthogonal/css-constants.d.ts +28 -0
- package/types/browser-ui/connector-editors-orthogonal/index.d.ts +9 -0
- package/types/browser-ui/connector-editors-orthogonal/orthogonal-editor.d.ts +86 -0
- package/types/browser-ui/connector-editors-straight/auto-split-mode.d.ts +24 -0
- package/types/browser-ui/connector-editors-straight/click-split-mode.d.ts +20 -0
- package/types/browser-ui/connector-editors-straight/css-constants.d.ts +30 -0
- package/types/browser-ui/connector-editors-straight/definitions.d.ts +69 -0
- package/types/browser-ui/connector-editors-straight/index.d.ts +11 -0
- package/types/browser-ui/connector-editors-straight/straight-editor.d.ts +42 -0
- package/types/browser-ui/constants.d.ts +79 -0
- package/types/browser-ui/copy-paste/clipboard.d.ts +34 -0
- package/types/browser-ui/copy-paste/index.d.ts +2 -0
- package/types/browser-ui/copy-paste/transformer.d.ts +14 -0
- package/types/browser-ui/css-constants.d.ts +436 -0
- package/types/browser-ui/d.d.ts +2 -0
- package/types/browser-ui/definitions.d.ts +442 -0
- package/types/browser-ui/dialogs/binder.d.ts +49 -0
- package/types/browser-ui/dialogs/constants.d.ts +51 -0
- package/types/browser-ui/dialogs/dialogs.d.ts +30 -0
- package/types/browser-ui/dialogs/index.d.ts +3 -0
- package/types/browser-ui/drag-manager-2.d.ts +54 -0
- package/types/browser-ui/edge-handler-base.d.ts +168 -0
- package/types/browser-ui/edge-input-handler.d.ts +116 -0
- package/types/browser-ui/edge-mappings/flowchart-basic.d.ts +22 -0
- package/types/browser-ui/edge-mappings/index.d.ts +1 -0
- package/types/browser-ui/edge-relocate-handler.d.ts +51 -0
- package/types/browser-ui/element-drag-handler-2.d.ts +254 -0
- package/types/browser-ui/element-dragger.d.ts +45 -0
- package/types/browser-ui/element-facade.d.ts +11 -0
- package/types/browser-ui/event-manager.d.ts +50 -0
- package/types/browser-ui/fixed-layer.d.ts +107 -0
- package/types/browser-ui/group-layout-adapter.d.ts +19 -0
- package/types/browser-ui/html-element-overlay.d.ts +32 -0
- package/types/browser-ui/icons/definitions.d.ts +59 -0
- package/types/browser-ui/icons/icon-renderer.d.ts +43 -0
- package/types/browser-ui/icons/index.d.ts +2 -0
- package/types/browser-ui/index.d.ts +48 -0
- package/types/browser-ui/pan-zoom-options.d.ts +262 -0
- package/types/browser-ui/pan-zoom.d.ts +674 -0
- package/types/browser-ui/paper-renderer/definitions.d.ts +83 -0
- package/types/browser-ui/paper-renderer/index.d.ts +2 -0
- package/types/browser-ui/paper-renderer/paper.d.ts +50 -0
- package/types/browser-ui/pinch-listener.d.ts +33 -0
- package/types/browser-ui/plugins/background/available-backgrounds.d.ts +12 -0
- package/types/browser-ui/plugins/background/background-options.d.ts +62 -0
- package/types/browser-ui/plugins/background/background-plugin.d.ts +62 -0
- package/types/browser-ui/plugins/background/generated-grid-background.d.ts +230 -0
- package/types/browser-ui/plugins/background/index.d.ts +6 -0
- package/types/browser-ui/plugins/background/simple-background.d.ts +33 -0
- package/types/browser-ui/plugins/background/tiled-background.d.ts +118 -0
- package/types/browser-ui/plugins/browser-ui-plugin.d.ts +90 -0
- package/types/browser-ui/plugins/edge-routing/index.d.ts +66 -0
- package/types/browser-ui/plugins/index.d.ts +5 -0
- package/types/browser-ui/plugins/selected-edge-highlight/index.d.ts +1 -0
- package/types/browser-ui/plugins/selected-edge-highlight/selected-edge-highlight-plugin.d.ts +36 -0
- package/types/browser-ui/plugins/ui-states/index.d.ts +2 -0
- package/types/browser-ui/plugins/ui-states/ui-state.d.ts +14 -0
- package/types/browser-ui/plugins/ui-states/ui-states-plugin.d.ts +69 -0
- package/types/browser-ui/positioning-and-sizing-utils.d.ts +103 -0
- package/types/browser-ui/shape-library/index.d.ts +4 -0
- package/types/browser-ui/shape-library/shape-library-definitions.d.ts +243 -0
- package/types/browser-ui/shape-library/shape-library.d.ts +266 -0
- package/types/browser-ui/shape-library/shapes-basic.d.ts +7 -0
- package/types/browser-ui/shape-library/shapes-flowchart.d.ts +7 -0
- package/types/browser-ui/storage.d.ts +8 -0
- package/types/browser-ui/surface-renderer/anim/anim.d.ts +64 -0
- package/types/browser-ui/surface-renderer/anim/constants.d.ts +74 -0
- package/types/browser-ui/surface-renderer/anim/definitions.d.ts +134 -0
- package/types/browser-ui/surface-renderer/anim/index.d.ts +4 -0
- package/types/browser-ui/surface-renderer/anim/path-transport.d.ts +23 -0
- package/types/browser-ui/surface-renderer/css-classes.d.ts +64 -0
- package/types/browser-ui/surface-renderer/decorators.d.ts +162 -0
- package/types/browser-ui/surface-renderer/definitions.d.ts +83 -0
- package/types/browser-ui/surface-renderer/diagrams/constants.d.ts +28 -0
- package/types/browser-ui/surface-renderer/diagrams/definitions.d.ts +528 -0
- package/types/browser-ui/surface-renderer/diagrams/diagram-cell.d.ts +123 -0
- package/types/browser-ui/surface-renderer/diagrams/diagram-link.d.ts +116 -0
- package/types/browser-ui/surface-renderer/diagrams/diagram-palette.d.ts +11 -0
- package/types/browser-ui/surface-renderer/diagrams/diagram-tools.d.ts +112 -0
- package/types/browser-ui/surface-renderer/diagrams/diagram.d.ts +221 -0
- package/types/browser-ui/surface-renderer/diagrams/index.d.ts +25 -0
- package/types/browser-ui/surface-renderer/diagrams/mediator.d.ts +59 -0
- package/types/browser-ui/surface-renderer/diagrams/util.d.ts +15 -0
- package/types/browser-ui/surface-renderer/elastic-group-manager.d.ts +102 -0
- package/types/browser-ui/surface-renderer/index.d.ts +34 -0
- package/types/browser-ui/surface-renderer/params.d.ts +175 -0
- package/types/browser-ui/surface-renderer/plugins/controls/controls-plugin.d.ts +26 -0
- package/types/browser-ui/surface-renderer/plugins/controls/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/drag-groups/drag-groups-plugin.d.ts +78 -0
- package/types/browser-ui/surface-renderer/plugins/drag-groups/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/export-controls/export-controls-plugin.d.ts +25 -0
- package/types/browser-ui/surface-renderer/plugins/export-controls/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/index.d.ts +10 -0
- package/types/browser-ui/surface-renderer/plugins/lasso/index.d.ts +2 -0
- package/types/browser-ui/surface-renderer/plugins/lasso/lasso-plugin.d.ts +78 -0
- package/types/browser-ui/surface-renderer/plugins/lasso/lasso.d.ts +74 -0
- package/types/browser-ui/surface-renderer/plugins/miniview/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/miniview/miniview-plugin.d.ts +235 -0
- package/types/browser-ui/surface-renderer/plugins/palette/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/palette/palette-plugin.d.ts +17 -0
- package/types/browser-ui/surface-renderer/plugins/pan-buttons/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/pan-buttons/pan-buttons-plugin.d.ts +55 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/border-drag-handlers.d.ts +3 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/definitions.d.ts +411 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/drag-handlers.d.ts +3 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/handle-gen.d.ts +15 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/index.d.ts +4 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/resizing-tools-plugin.d.ts +185 -0
- package/types/browser-ui/surface-renderer/plugins/resizing-tools/util.d.ts +16 -0
- package/types/browser-ui/surface-renderer/plugins/snaplines/index.d.ts +1 -0
- package/types/browser-ui/surface-renderer/plugins/snaplines/snaplines-plugin.d.ts +128 -0
- package/types/browser-ui/surface-renderer/plugins/vertex-drawing/definitions.d.ts +90 -0
- package/types/browser-ui/surface-renderer/plugins/vertex-drawing/index.d.ts +2 -0
- package/types/browser-ui/surface-renderer/plugins/vertex-drawing/vertex-drawing-plugin.d.ts +64 -0
- package/types/browser-ui/surface-renderer/shape-palette-options.d.ts +127 -0
- package/types/browser-ui/surface-renderer/shape-palette.d.ts +55 -0
- package/types/browser-ui/surface-renderer/surface-decorator.d.ts +35 -0
- package/types/browser-ui/surface-renderer/surface-events.d.ts +9 -0
- package/types/browser-ui/surface-renderer/surface-render-options.d.ts +125 -0
- package/types/browser-ui/surface-renderer/surface.d.ts +665 -0
- package/types/browser-ui/svg-component.d.ts +6 -0
- package/types/browser-ui/svg-element-connector.d.ts +16 -0
- package/types/browser-ui/svg-element-overlay.d.ts +55 -0
- package/types/browser-ui/svg-export/definitions.d.ts +153 -0
- package/types/browser-ui/svg-export/image-export-ui.d.ts +20 -0
- package/types/browser-ui/svg-export/image-exporter.d.ts +15 -0
- package/types/browser-ui/svg-export/index.d.ts +6 -0
- package/types/browser-ui/svg-export/svg-export-ui.d.ts +11 -0
- package/types/browser-ui/svg-export/svg-exporter.d.ts +8 -0
- package/types/browser-ui/svg-export/util.d.ts +23 -0
- package/types/browser-ui/svg-util.d.ts +27 -0
- package/types/browser-ui/templating/browser-ui-recado.d.ts +48 -0
- package/types/browser-ui/templating/custom-tag-definition.d.ts +32 -0
- package/types/browser-ui/templating/index.d.ts +11 -0
- package/types/browser-ui/templating/recado-template-renderer.d.ts +69 -0
- package/types/browser-ui/ui-path.d.ts +57 -0
- package/types/browser-ui/util.d.ts +4 -0
- package/types/browser-ui/wheel-listener.d.ts +2 -0
- package/types/charts/area/area-chart.d.ts +85 -0
- package/types/charts/area/index.d.ts +1 -0
- package/types/charts/bar-and-column/bar-chart.d.ts +34 -0
- package/types/charts/bar-and-column/bar-plot.d.ts +90 -0
- package/types/charts/bar-and-column/column-chart.d.ts +35 -0
- package/types/charts/bar-and-column/index.d.ts +3 -0
- package/types/charts/base-chart.d.ts +395 -0
- package/types/charts/base-xy-chart.d.ts +224 -0
- package/types/charts/bubble/bubble-chart.d.ts +30 -0
- package/types/charts/bubble/definitions.d.ts +32 -0
- package/types/charts/bubble/index.d.ts +2 -0
- package/types/charts/category-value-chart.d.ts +146 -0
- package/types/charts/chart-exporter.d.ts +38 -0
- package/types/charts/chart-zoom-controls.d.ts +23 -0
- package/types/charts/constants.d.ts +16 -0
- package/types/charts/css-classes.d.ts +312 -0
- package/types/charts/datasource.d.ts +61 -0
- package/types/charts/definitions.d.ts +261 -0
- package/types/charts/domain_scale_utilities.d.ts +72 -0
- package/types/charts/dual-value-chart.d.ts +60 -0
- package/types/charts/gauge/definitions.d.ts +108 -0
- package/types/charts/gauge/gauge-chart.d.ts +91 -0
- package/types/charts/gauge/index.d.ts +2 -0
- package/types/charts/index.d.ts +25 -0
- package/types/charts/legend.d.ts +120 -0
- package/types/charts/line/index.d.ts +1 -0
- package/types/charts/line/line-chart.d.ts +79 -0
- package/types/charts/markers.d.ts +13 -0
- package/types/charts/pie/index.d.ts +1 -0
- package/types/charts/pie/pie-chart.d.ts +146 -0
- package/types/charts/plot.d.ts +75 -0
- package/types/charts/sankey/index.d.ts +1 -0
- package/types/charts/sankey/preprocessor.d.ts +37 -0
- package/types/charts/sankey/sankey.d.ts +208 -0
- package/types/charts/scatter/definitions.d.ts +6 -0
- package/types/charts/scatter/index.d.ts +2 -0
- package/types/charts/scatter/scatter-chart.d.ts +16 -0
- package/types/charts/series/array-based-series.d.ts +95 -0
- package/types/charts/series/collation-series.d.ts +24 -0
- package/types/charts/series/definitions.d.ts +52 -0
- package/types/charts/series/dual-value-chart-series.d.ts +26 -0
- package/types/charts/series/index.d.ts +7 -0
- package/types/charts/series/record-based-series.d.ts +58 -0
- package/types/charts/series/series.d.ts +66 -0
- package/types/charts/series/summing-collation-series.d.ts +31 -0
- package/types/charts/series/summing-series.d.ts +19 -0
- package/types/charts/series-based-chart.d.ts +59 -0
- package/types/charts/tooltip.d.ts +167 -0
- package/types/charts/util.d.ts +149 -0
- package/types/core/astar/astar-path-finder.d.ts +37 -0
- package/types/core/astar/astar-util.d.ts +100 -0
- package/types/core/astar/candidate-finder.d.ts +16 -0
- package/types/core/astar/candidate-sorter.d.ts +10 -0
- package/types/core/astar/definitions.d.ts +185 -0
- package/types/core/astar/index.d.ts +3 -0
- package/types/core/astar/path-to-segments.d.ts +45 -0
- package/types/core/autosaver.d.ts +67 -0
- package/types/core/color-generator.d.ts +66 -0
- package/types/core/constants.d.ts +181 -0
- package/types/core/csv-loader.d.ts +84 -0
- package/types/core/datamodel/data-model.d.ts +23 -0
- package/types/core/datamodel/vertex-definition.d.ts +40 -0
- package/types/core/datasource.d.ts +87 -0
- package/types/core/event-constants.d.ts +308 -0
- package/types/core/event-generator.d.ts +102 -0
- package/types/core/filterable-dataset.d.ts +38 -0
- package/types/core/geom.d.ts +278 -0
- package/types/core/index.d.ts +39 -0
- package/types/core/io.d.ts +106 -0
- package/types/core/layout/absolute-layout.d.ts +91 -0
- package/types/core/layout/abstract-layout-adapter.d.ts +17 -0
- package/types/core/layout/abstract-layout.d.ts +192 -0
- package/types/core/layout/circular/circular-layout.d.ts +31 -0
- package/types/core/layout/circular/index.d.ts +1 -0
- package/types/core/layout/empty-layout.d.ts +17 -0
- package/types/core/layout/force-directed/force-directed-layout.d.ts +148 -0
- package/types/core/layout/force-directed/index.d.ts +1 -0
- package/types/core/layout/grid/definitions.d.ts +81 -0
- package/types/core/layout/grid/grid-layout.d.ts +60 -0
- package/types/core/layout/grid/index.d.ts +2 -0
- package/types/core/layout/hierarchical/abstract-hierarchical-layout.d.ts +90 -0
- package/types/core/layout/hierarchical/balloon-layout.d.ts +62 -0
- package/types/core/layout/hierarchical/definitions.d.ts +45 -0
- package/types/core/layout/hierarchical/hierarchical-layout.d.ts +102 -0
- package/types/core/layout/hierarchical/index.d.ts +5 -0
- package/types/core/layout/hierarchical/parent-relative-placement.d.ts +96 -0
- package/types/core/layout/hierarchy/assign-layers-stage.d.ts +26 -0
- package/types/core/layout/hierarchy/crossing-stage.d.ts +78 -0
- package/types/core/layout/hierarchy/definitions.d.ts +261 -0
- package/types/core/layout/hierarchy/edge-routing.d.ts +25 -0
- package/types/core/layout/hierarchy/hierarchy-layout-stage.d.ts +9 -0
- package/types/core/layout/hierarchy/hierarchy-layout.d.ts +87 -0
- package/types/core/layout/hierarchy/index.d.ts +11 -0
- package/types/core/layout/hierarchy/model.d.ts +167 -0
- package/types/core/layout/hierarchy/parent-relative-placement.d.ts +69 -0
- package/types/core/layout/hierarchy/placement-stage.d.ts +82 -0
- package/types/core/layout/hierarchy/util.d.ts +13 -0
- package/types/core/layout/hierarchy/vertex-set.d.ts +45 -0
- package/types/core/layout/index.d.ts +10 -0
- package/types/core/layout/layouts.d.ts +10 -0
- package/types/core/magnetizer.d.ts +232 -0
- package/types/core/model/anchor.d.ts +38 -0
- package/types/core/model/cluster.d.ts +19 -0
- package/types/core/model/defs.d.ts +8 -0
- package/types/core/model/djikstra.d.ts +26 -0
- package/types/core/model/floyd-warshall.d.ts +15 -0
- package/types/core/model/graph.d.ts +1166 -0
- package/types/core/model/path.d.ts +227 -0
- package/types/core/params.d.ts +476 -0
- package/types/core/renderer.d.ts +74 -0
- package/types/core/router/common.d.ts +104 -0
- package/types/core/router/direct-router.d.ts +12 -0
- package/types/core/router/index.d.ts +3 -0
- package/types/core/router/orthogonal-router.d.ts +46 -0
- package/types/core/rtree/definitions.d.ts +24 -0
- package/types/core/rtree/hilbert.d.ts +9 -0
- package/types/core/rtree/index.d.ts +4 -0
- package/types/core/rtree/rtree.d.ts +102 -0
- package/types/core/rtree/util.d.ts +55 -0
- package/types/core/search/index.d.ts +1 -0
- package/types/core/search/visuallyjs-search.d.ts +167 -0
- package/types/core/selection.d.ts +394 -0
- package/types/core/templates/abstract-entry.d.ts +19 -0
- package/types/core/templates/comment-entry.d.ts +11 -0
- package/types/core/templates/core.d.ts +162 -0
- package/types/core/templates/custom-tag.d.ts +74 -0
- package/types/core/templates/defs.d.ts +123 -0
- package/types/core/templates/each-entry.d.ts +23 -0
- package/types/core/templates/element-entry.d.ts +18 -0
- package/types/core/templates/elements.d.ts +14 -0
- package/types/core/templates/executions.d.ts +100 -0
- package/types/core/templates/expressions.d.ts +47 -0
- package/types/core/templates/fake-dom.d.ts +42 -0
- package/types/core/templates/headless.d.ts +15 -0
- package/types/core/templates/if-entry.d.ts +25 -0
- package/types/core/templates/index.d.ts +14 -0
- package/types/core/templates/parser.d.ts +84 -0
- package/types/core/templates/text-entry.d.ts +17 -0
- package/types/core/templates/tmpl-entry.d.ts +13 -0
- package/types/core/toolkit.d.ts +1314 -0
- package/types/core/undo-redo/compound-action.d.ts +19 -0
- package/types/core/undo-redo/edge-action.d.ts +62 -0
- package/types/core/undo-redo/group-action.d.ts +60 -0
- package/types/core/undo-redo/move-action.d.ts +18 -0
- package/types/core/undo-redo/node-group-action.d.ts +62 -0
- package/types/core/undo-redo/port-action.d.ts +29 -0
- package/types/core/undo-redo/renderer-vertex-removed-action.d.ts +17 -0
- package/types/core/undo-redo/set-type-action.d.ts +14 -0
- package/types/core/undo-redo/undo-redo.d.ts +203 -0
- package/types/core/undo-redo/update-action.d.ts +20 -0
- package/types/core/undo-redo/vertex-update-action.d.ts +12 -0
- package/types/core/util.d.ts +661 -0
- package/types/index.d.ts +16 -0
- package/types/l.d.ts +2 -0
- package/types/test-support/index.d.ts +1 -0
- package/types/test-support/test-support.d.ts +833 -0
- package/types/ui/common/abstract-segment.d.ts +88 -0
- package/types/ui/common/anchor.d.ts +280 -0
- package/types/ui/common/connector.d.ts +106 -0
- package/types/ui/common/index.d.ts +5 -0
- package/types/ui/common/overlay.d.ts +117 -0
- package/types/ui/common/paint-style.d.ts +33 -0
- package/types/ui/connector-bezier/abstract-bezier-connector.d.ts +68 -0
- package/types/ui/connector-bezier/bezier-connector.d.ts +34 -0
- package/types/ui/connector-bezier/bezier-segment.d.ts +31 -0
- package/types/ui/connector-bezier/bezier.d.ts +129 -0
- package/types/ui/connector-bezier/index.d.ts +6 -0
- package/types/ui/connector-bezier/operations.d.ts +18 -0
- package/types/ui/connector-bezier/quadratic-bezier-connector.d.ts +35 -0
- package/types/ui/connector-orthogonal/default-orthogonal-path-compute.d.ts +11 -0
- package/types/ui/connector-orthogonal/definitions.d.ts +120 -0
- package/types/ui/connector-orthogonal/index.d.ts +7 -0
- package/types/ui/connector-orthogonal/modern-source-target-relocator.d.ts +37 -0
- package/types/ui/connector-orthogonal/operations.d.ts +49 -0
- package/types/ui/connector-orthogonal/stub-calculators.d.ts +12 -0
- package/types/ui/connector-orthogonal/utils.d.ts +134 -0
- package/types/ui/connector-orthogonal/vertex-avoidance.d.ts +29 -0
- package/types/ui/connector-straight/index.d.ts +2 -0
- package/types/ui/connector-straight/operations.d.ts +55 -0
- package/types/ui/connector-straight/straight-connector.d.ts +121 -0
- package/types/ui/copy-paste/clipboard.d.ts +45 -0
- package/types/ui/copy-paste/copy-data.d.ts +93 -0
- package/types/ui/copy-paste/index.d.ts +2 -0
- package/types/ui/core/callbacks.d.ts +48 -0
- package/types/ui/core/component/component.d.ts +115 -0
- package/types/ui/core/connector/abstract-connector.d.ts +66 -0
- package/types/ui/core/connector/arc-segment.d.ts +39 -0
- package/types/ui/core/connector/connection-impl.d.ts +81 -0
- package/types/ui/core/connector/connections.d.ts +113 -0
- package/types/ui/core/connector/connectors.d.ts +205 -0
- package/types/ui/core/connector/operations.d.ts +0 -0
- package/types/ui/core/connector/segments.d.ts +24 -0
- package/types/ui/core/connector/straight-segment.d.ts +32 -0
- package/types/ui/core/constants.d.ts +181 -0
- package/types/ui/core/context.d.ts +26 -0
- package/types/ui/core/core-events.d.ts +7 -0
- package/types/ui/core/core.d.ts +1734 -0
- package/types/ui/core/css-constants.d.ts +149 -0
- package/types/ui/core/defaults.d.ts +242 -0
- package/types/ui/core/definitions.d.ts +540 -0
- package/types/ui/core/event-constants.d.ts +510 -0
- package/types/ui/core/factory/anchor-record-factory.d.ts +17 -0
- package/types/ui/core/factory/continuous-anchors.d.ts +27 -0
- package/types/ui/core/factory/overlay-factory.d.ts +8 -0
- package/types/ui/core/grid-profile.d.ts +28 -0
- package/types/ui/core/group-collapse-expand.d.ts +23 -0
- package/types/ui/core/group-sizer.d.ts +9 -0
- package/types/ui/core/index.d.ts +45 -0
- package/types/ui/core/magnetize-profile.d.ts +82 -0
- package/types/ui/core/overlay/arrow-overlay.d.ts +34 -0
- package/types/ui/core/overlay/custom-overlay.d.ts +38 -0
- package/types/ui/core/overlay/diamond-overlay.d.ts +14 -0
- package/types/ui/core/overlay/dot-overlay.d.ts +54 -0
- package/types/ui/core/overlay/ellipse-overlay.d.ts +60 -0
- package/types/ui/core/overlay/label-overlay.d.ts +37 -0
- package/types/ui/core/overlay/overlay.d.ts +131 -0
- package/types/ui/core/overlay/plain-arrow-overlay.d.ts +15 -0
- package/types/ui/core/overlay/rectangle-overlay.d.ts +66 -0
- package/types/ui/core/params.d.ts +223 -0
- package/types/ui/core/router/astar-path-finder.d.ts +29 -0
- package/types/ui/core/router/base-router.d.ts +100 -0
- package/types/ui/core/router/default-router.d.ts +38 -0
- package/types/ui/core/router/index.d.ts +5 -0
- package/types/ui/core/router/router-utils.d.ts +118 -0
- package/types/ui/core/router/router.d.ts +30 -0
- package/types/ui/core/type-descriptors.d.ts +83 -0
- package/types/ui/core/ui-model.d.ts +65 -0
- package/types/ui/core/view/common-options.d.ts +15 -0
- package/types/ui/core/view/edge-options.d.ts +126 -0
- package/types/ui/core/view/events.d.ts +159 -0
- package/types/ui/core/view/group-options.d.ts +75 -0
- package/types/ui/core/view/index.d.ts +35 -0
- package/types/ui/core/view/node-options.d.ts +20 -0
- package/types/ui/core/view/node-or-port-options.d.ts +28 -0
- package/types/ui/core/view/port-options.d.ts +51 -0
- package/types/ui/core/view/vertex-options.d.ts +28 -0
- package/types/ui/core/viewport.d.ts +297 -0
- package/types/ui/index.d.ts +9 -0
- package/types/ui/plugins/definitions.d.ts +118 -0
- package/types/ui/plugins/index.d.ts +2 -0
- package/types/ui/plugins/plugins.d.ts +7 -0
- package/types/ui/property-mappings/definitions.d.ts +28 -0
- package/types/ui/property-mappings/index.d.ts +2 -0
- package/types/ui/property-mappings/property-mapper.d.ts +16 -0
- package/types/ui/util/index.d.ts +3 -0
- package/types/ui/util/property-tracker.d.ts +8 -0
- package/types/ui/util/svg-constants.d.ts +111 -0
- package/types/ui/util/util.d.ts +69 -0
- package/types/version.d.ts +1 -0
|
@@ -0,0 +1,510 @@
|
|
|
1
|
+
export declare const EVENT_INTERNAL_CONNECTION = "internal.connection";
|
|
2
|
+
/**
|
|
3
|
+
* Fired by an UI when its updateContext method has been invoked. The callback gets a JS object with key and value for the update.
|
|
4
|
+
* @group Events
|
|
5
|
+
* @constant
|
|
6
|
+
*/
|
|
7
|
+
export declare const EVENT_CONTEXT_UPDATE = "context:update";
|
|
8
|
+
/**
|
|
9
|
+
* Fired by the model when a group is collapsed
|
|
10
|
+
* @group Events
|
|
11
|
+
* @category Model
|
|
12
|
+
* @constant
|
|
13
|
+
*/
|
|
14
|
+
export declare const EVENT_GROUP_COLLAPSE = "group:collapse";
|
|
15
|
+
/**
|
|
16
|
+
* Fired by the model when a group is expanded
|
|
17
|
+
* @group Events
|
|
18
|
+
* @category Model
|
|
19
|
+
* @constant
|
|
20
|
+
*/
|
|
21
|
+
export declare const EVENT_GROUP_EXPAND = "group:expand";
|
|
22
|
+
/**
|
|
23
|
+
* Fired when the zoom changes in the UI
|
|
24
|
+
* @event
|
|
25
|
+
* @category UI Events
|
|
26
|
+
* @payload PanZoomEventPayload
|
|
27
|
+
* @constant
|
|
28
|
+
* @context canvas
|
|
29
|
+
*/
|
|
30
|
+
export declare const EVENT_ZOOM = "zoom";
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
*/
|
|
34
|
+
export declare const EVENT_RENDER_START = "render:start";
|
|
35
|
+
/**
|
|
36
|
+
* @internal
|
|
37
|
+
*/
|
|
38
|
+
export declare const EVENT_RENDER_END = "render:end";
|
|
39
|
+
/**
|
|
40
|
+
* Fired after the UI runs an adhoc layout.
|
|
41
|
+
* @group Events
|
|
42
|
+
* @category UI
|
|
43
|
+
* @constant
|
|
44
|
+
* @event
|
|
45
|
+
* @context layout
|
|
46
|
+
*/
|
|
47
|
+
export declare const EVENT_ADHOC_LAYOUT = "adhocLayout";
|
|
48
|
+
/**
|
|
49
|
+
* Fired after the UI runs a layout refresh.
|
|
50
|
+
* @group Events
|
|
51
|
+
* @category UI
|
|
52
|
+
* @constant
|
|
53
|
+
* @event
|
|
54
|
+
* @context layout
|
|
55
|
+
*/
|
|
56
|
+
export declare const EVENT_AFTER_LAYOUT_REFRESH = "afterLayoutRefresh";
|
|
57
|
+
/**
|
|
58
|
+
* Fired after a group's layout is re-run.
|
|
59
|
+
* @group Events
|
|
60
|
+
* @category UI
|
|
61
|
+
* @constant
|
|
62
|
+
* @event
|
|
63
|
+
* @context layout
|
|
64
|
+
*/
|
|
65
|
+
export declare const EVENT_GROUP_RELAYOUT = "group:relayout";
|
|
66
|
+
/**
|
|
67
|
+
* Fired after a group has been rendered
|
|
68
|
+
* @group Events
|
|
69
|
+
* @category UI Events
|
|
70
|
+
* @constant
|
|
71
|
+
* @event
|
|
72
|
+
* @context rendering
|
|
73
|
+
*/
|
|
74
|
+
export declare const EVENT_GROUP_RENDERED = "group:render";
|
|
75
|
+
/**
|
|
76
|
+
* @internal
|
|
77
|
+
*/
|
|
78
|
+
export declare const EVENT_INTERNAL_VERTEX_UPDATED = "internal.vertex:updated";
|
|
79
|
+
/**
|
|
80
|
+
* Fired after a node has been rendered
|
|
81
|
+
* @group Events
|
|
82
|
+
* @category UI Events
|
|
83
|
+
* @constant
|
|
84
|
+
* @event
|
|
85
|
+
* @context rendering
|
|
86
|
+
*/
|
|
87
|
+
export declare const EVENT_NODE_RENDERED = "node:render";
|
|
88
|
+
/**
|
|
89
|
+
* Fired when the visibility of a vertex changes. used internally.
|
|
90
|
+
* @internal
|
|
91
|
+
*/
|
|
92
|
+
export declare const EVENT_NODE_VISIBILITY = "node:visibility";
|
|
93
|
+
/**
|
|
94
|
+
* Fired by the UI when a new plugin has been added
|
|
95
|
+
* @group Events
|
|
96
|
+
* @category UI
|
|
97
|
+
* @internal
|
|
98
|
+
*/
|
|
99
|
+
export declare const EVENT_PLUGIN_ADDED = "plugin:added";
|
|
100
|
+
/**
|
|
101
|
+
* Fired by the UI when a plugin has been removed
|
|
102
|
+
* @group Events
|
|
103
|
+
* @category UI
|
|
104
|
+
* @internal
|
|
105
|
+
*/
|
|
106
|
+
export declare const EVENT_PLUGIN_REMOVED = "plugin:removed";
|
|
107
|
+
/**
|
|
108
|
+
* Fired by the UI when the layout has been re-run
|
|
109
|
+
* @group Events
|
|
110
|
+
* @category UI
|
|
111
|
+
* @constant
|
|
112
|
+
* @event
|
|
113
|
+
* @context layout
|
|
114
|
+
*/
|
|
115
|
+
export declare const EVENT_RELAYOUT = "relayout";
|
|
116
|
+
/**
|
|
117
|
+
* @internal
|
|
118
|
+
*/
|
|
119
|
+
export declare const EVENT_OBJECT_REPAINTED = "objectRepainted";
|
|
120
|
+
/**
|
|
121
|
+
* A click event.
|
|
122
|
+
* @group Events
|
|
123
|
+
* @category UI
|
|
124
|
+
* @constant
|
|
125
|
+
* @event
|
|
126
|
+
* @context pointer-events
|
|
127
|
+
*/
|
|
128
|
+
export declare const EVENT_CLICK = "click";
|
|
129
|
+
/**
|
|
130
|
+
* A context menu (right click) event.
|
|
131
|
+
* @group Events
|
|
132
|
+
* @category UI
|
|
133
|
+
* @constant
|
|
134
|
+
* @event
|
|
135
|
+
* @context pointer-events
|
|
136
|
+
*/
|
|
137
|
+
export declare const EVENT_CONTEXTMENU = "contextmenu";
|
|
138
|
+
/**
|
|
139
|
+
* A double click event.
|
|
140
|
+
* @group Events
|
|
141
|
+
* @category UI
|
|
142
|
+
* @constant
|
|
143
|
+
* @event
|
|
144
|
+
* @context pointer-events
|
|
145
|
+
*/
|
|
146
|
+
export declare const EVENT_DBLCLICK = "dblclick";
|
|
147
|
+
/**
|
|
148
|
+
* A double tap event. See discussion of {@link EVENT_TAP}.
|
|
149
|
+
* @group Events
|
|
150
|
+
* @category UI
|
|
151
|
+
* @constant
|
|
152
|
+
* @event
|
|
153
|
+
* @context pointer-events
|
|
154
|
+
*/
|
|
155
|
+
export declare const EVENT_DBLTAP = "dbltap";
|
|
156
|
+
/**
|
|
157
|
+
* A focus event.
|
|
158
|
+
* @group Events
|
|
159
|
+
* @category UI
|
|
160
|
+
* @constant
|
|
161
|
+
* @event
|
|
162
|
+
* @context pointer-events
|
|
163
|
+
*/
|
|
164
|
+
export declare const EVENT_FOCUS = "focus";
|
|
165
|
+
/**
|
|
166
|
+
* A mousedown event.
|
|
167
|
+
* @group Events
|
|
168
|
+
* @category UI
|
|
169
|
+
* @constant
|
|
170
|
+
* @event
|
|
171
|
+
* @context pointer-events
|
|
172
|
+
*/
|
|
173
|
+
export declare const EVENT_MOUSEDOWN = "mousedown";
|
|
174
|
+
/**
|
|
175
|
+
* A mouseenter event
|
|
176
|
+
* @group Events
|
|
177
|
+
* @category UI
|
|
178
|
+
* @constant
|
|
179
|
+
* @event
|
|
180
|
+
* @context pointer-events
|
|
181
|
+
*/
|
|
182
|
+
export declare const EVENT_MOUSEENTER = "mouseenter";
|
|
183
|
+
/**
|
|
184
|
+
* A mouseexit event.
|
|
185
|
+
* @group Events
|
|
186
|
+
* @category UI
|
|
187
|
+
* @constant
|
|
188
|
+
* @event
|
|
189
|
+
* @context pointer-events
|
|
190
|
+
*/
|
|
191
|
+
export declare const EVENT_MOUSEEXIT = "mouseexit";
|
|
192
|
+
/**
|
|
193
|
+
* A mousemove event
|
|
194
|
+
* @group Events
|
|
195
|
+
* @category UI
|
|
196
|
+
* @constant
|
|
197
|
+
* @event
|
|
198
|
+
* @context pointer-events
|
|
199
|
+
*/
|
|
200
|
+
export declare const EVENT_MOUSEMOVE = "mousemove";
|
|
201
|
+
/**
|
|
202
|
+
* A mouseleave event
|
|
203
|
+
* @group Events
|
|
204
|
+
* @category UI
|
|
205
|
+
* @constant
|
|
206
|
+
* @event
|
|
207
|
+
* @context pointer-events
|
|
208
|
+
*/
|
|
209
|
+
export declare const EVENT_MOUSELEAVE = "mouseleave";
|
|
210
|
+
/**
|
|
211
|
+
* A mouseup event
|
|
212
|
+
* @group Events
|
|
213
|
+
* @category UI
|
|
214
|
+
* @constant
|
|
215
|
+
* @event
|
|
216
|
+
* @context pointer-events
|
|
217
|
+
*/
|
|
218
|
+
export declare const EVENT_MOUSEUP = "mouseup";
|
|
219
|
+
/**
|
|
220
|
+
* A mouseout event
|
|
221
|
+
* @group Events
|
|
222
|
+
* @category UI
|
|
223
|
+
* @constant
|
|
224
|
+
* @event
|
|
225
|
+
* @context pointer-events
|
|
226
|
+
*/
|
|
227
|
+
export declare const EVENT_MOUSEOUT = "mouseout";
|
|
228
|
+
/**
|
|
229
|
+
* A mouseover event
|
|
230
|
+
* @group Events
|
|
231
|
+
* @category UI
|
|
232
|
+
* @constant
|
|
233
|
+
* @event
|
|
234
|
+
* @context pointer-events
|
|
235
|
+
*/
|
|
236
|
+
export declare const EVENT_MOUSEOVER = "mouseover";
|
|
237
|
+
/**
|
|
238
|
+
* A tap event is a synthesized event in which VisuallyJs captures a mousedown/touchstart followed by, within some time period, a mouseup/touchend. If the event target's position has not changed between the two events, a tap event is fired. It is generally preferable to bind to this event rather than EVENT_CLICK, because a browser will fire a click event even if the event target has changed position between mousedown and mouseup. So you can get spurious click events reported while dragging elements, for example.
|
|
239
|
+
* @group Events
|
|
240
|
+
* @category UI
|
|
241
|
+
* @constant
|
|
242
|
+
* @event
|
|
243
|
+
* @context pointer-events
|
|
244
|
+
*/
|
|
245
|
+
export declare const EVENT_TAP = "tap";
|
|
246
|
+
/**
|
|
247
|
+
* A touch start event
|
|
248
|
+
* @group Events
|
|
249
|
+
* @category UI
|
|
250
|
+
* @constant
|
|
251
|
+
* @internal
|
|
252
|
+
*/
|
|
253
|
+
export declare const EVENT_TOUCHSTART = "touchstart";
|
|
254
|
+
/**
|
|
255
|
+
* A touch end event
|
|
256
|
+
* @group Events
|
|
257
|
+
* @category UI
|
|
258
|
+
* @constant
|
|
259
|
+
* @internal
|
|
260
|
+
*/
|
|
261
|
+
export declare const EVENT_TOUCHEND = "touchend";
|
|
262
|
+
/**
|
|
263
|
+
* @group Events
|
|
264
|
+
* @category UI
|
|
265
|
+
* @internal
|
|
266
|
+
*/
|
|
267
|
+
export declare const EVENT_TOUCHMOVE = "touchmove";
|
|
268
|
+
/**
|
|
269
|
+
* A click event on a vertex
|
|
270
|
+
* @group Events
|
|
271
|
+
* @category UI
|
|
272
|
+
* @constant
|
|
273
|
+
* @event
|
|
274
|
+
* @context model-pointer-events
|
|
275
|
+
*/
|
|
276
|
+
export declare const EVENT_VERTEX_CLICK = "vertex:click";
|
|
277
|
+
/**
|
|
278
|
+
* A double click event on a vertex
|
|
279
|
+
* @group Events
|
|
280
|
+
* @category UI
|
|
281
|
+
* @constant
|
|
282
|
+
* @event
|
|
283
|
+
* @context model-pointer-events
|
|
284
|
+
*/
|
|
285
|
+
export declare const EVENT_VERTEX_DBLCLICK = "vertex:dblclick";
|
|
286
|
+
/**
|
|
287
|
+
* A double tap event on a vertex
|
|
288
|
+
* @group Events
|
|
289
|
+
* @category UI
|
|
290
|
+
* @constant
|
|
291
|
+
* @event
|
|
292
|
+
* @context model-pointer-events
|
|
293
|
+
*/
|
|
294
|
+
export declare const EVENT_VERTEX_DBLTAP = "vertex:dbltap";
|
|
295
|
+
/**
|
|
296
|
+
* A mouseout event on a vertex
|
|
297
|
+
* @group Events
|
|
298
|
+
* @category UI
|
|
299
|
+
* @constant
|
|
300
|
+
* @event
|
|
301
|
+
* @context model-pointer-events
|
|
302
|
+
*/
|
|
303
|
+
export declare const EVENT_VERTEX_MOUSEOUT = "vertex:mouseout";
|
|
304
|
+
/**
|
|
305
|
+
* A mouseover event on a vertex
|
|
306
|
+
* @group Events
|
|
307
|
+
* @category UI
|
|
308
|
+
* @constant
|
|
309
|
+
* @event
|
|
310
|
+
* @context model-pointer-events
|
|
311
|
+
*/
|
|
312
|
+
export declare const EVENT_VERTEX_MOUSEOVER = "vertex:mouseover";
|
|
313
|
+
/**
|
|
314
|
+
* A mousemove event on a vertex
|
|
315
|
+
* @group Events
|
|
316
|
+
* @category UI
|
|
317
|
+
* @constant
|
|
318
|
+
* @event
|
|
319
|
+
* @context model-pointer-events
|
|
320
|
+
*/
|
|
321
|
+
export declare const EVENT_VERTEX_MOUSEMOVE = "vertex:mousemove";
|
|
322
|
+
/**
|
|
323
|
+
* A mouseup event on a vertex
|
|
324
|
+
* @group Events
|
|
325
|
+
* @category UI
|
|
326
|
+
* @constant
|
|
327
|
+
* @event
|
|
328
|
+
* @context model-pointer-events
|
|
329
|
+
*/
|
|
330
|
+
export declare const EVENT_VERTEX_MOUSEUP = "vertex:mouseup";
|
|
331
|
+
/**
|
|
332
|
+
* A mousedown event on a vertex
|
|
333
|
+
* @group Events
|
|
334
|
+
* @category UI Events
|
|
335
|
+
* @constant
|
|
336
|
+
* @event
|
|
337
|
+
* @context model-pointer-events
|
|
338
|
+
*/
|
|
339
|
+
export declare const EVENT_VERTEX_MOUSEDOWN = "vertex:mousedown";
|
|
340
|
+
/**
|
|
341
|
+
* A context menu (right click) event on a vertex
|
|
342
|
+
* @group Events
|
|
343
|
+
* @category UI Events
|
|
344
|
+
* @constant
|
|
345
|
+
* @event
|
|
346
|
+
* @context model-pointer-events
|
|
347
|
+
*/
|
|
348
|
+
export declare const EVENT_VERTEX_CONTEXTMENU = "vertex:contextmenu";
|
|
349
|
+
/**
|
|
350
|
+
* A tap event on a vertex
|
|
351
|
+
* @group Events
|
|
352
|
+
* @category UI Events
|
|
353
|
+
* @constant
|
|
354
|
+
* @event
|
|
355
|
+
* @context model-pointer-events
|
|
356
|
+
*/
|
|
357
|
+
export declare const EVENT_VERTEX_TAP = "vertex:tap";
|
|
358
|
+
/**
|
|
359
|
+
* A click event on an edge
|
|
360
|
+
* @group Events
|
|
361
|
+
* @category UI Events
|
|
362
|
+
* @constant
|
|
363
|
+
* @event
|
|
364
|
+
* @context model-pointer-events
|
|
365
|
+
*/
|
|
366
|
+
export declare const EVENT_EDGE_CLICK = "edge:click";
|
|
367
|
+
/**
|
|
368
|
+
* A double click event on an edge
|
|
369
|
+
* @group Events
|
|
370
|
+
* @category UI Events
|
|
371
|
+
* @constant
|
|
372
|
+
* @event
|
|
373
|
+
* @context model-pointer-events
|
|
374
|
+
*/
|
|
375
|
+
export declare const EVENT_EDGE_DBLCLICK = "edge:dblclick";
|
|
376
|
+
/**
|
|
377
|
+
* A double tap event on an edge
|
|
378
|
+
* @group Events
|
|
379
|
+
* @category UI Events
|
|
380
|
+
* @constant
|
|
381
|
+
* @event
|
|
382
|
+
* @context model-pointer-events
|
|
383
|
+
*/
|
|
384
|
+
export declare const EVENT_EDGE_DBLTAP = "edge:dbltap";
|
|
385
|
+
/**
|
|
386
|
+
* A mouseout event on an edge
|
|
387
|
+
* @group Events
|
|
388
|
+
* @category UI Events
|
|
389
|
+
* @constant
|
|
390
|
+
* @event
|
|
391
|
+
* @context model-pointer-events
|
|
392
|
+
*/
|
|
393
|
+
export declare const EVENT_EDGE_MOUSEOUT = "edge:mouseout";
|
|
394
|
+
/**
|
|
395
|
+
* A mouseover event on an edge
|
|
396
|
+
* @group Events
|
|
397
|
+
* @category UI Events
|
|
398
|
+
* @constant
|
|
399
|
+
* @event
|
|
400
|
+
* @context model-pointer-events
|
|
401
|
+
*/
|
|
402
|
+
export declare const EVENT_EDGE_MOUSEOVER = "edge:mouseover";
|
|
403
|
+
/**
|
|
404
|
+
* A mouseup event on an edge
|
|
405
|
+
* @group Events
|
|
406
|
+
* @category UI Events
|
|
407
|
+
* @constant
|
|
408
|
+
* @event
|
|
409
|
+
* @context model-pointer-events
|
|
410
|
+
*/
|
|
411
|
+
export declare const EVENT_EDGE_MOUSEUP = "edge:mouseup";
|
|
412
|
+
/**
|
|
413
|
+
* A mousedown event on an edge
|
|
414
|
+
* @group Events
|
|
415
|
+
* @category UI Events
|
|
416
|
+
* @constant
|
|
417
|
+
* @event
|
|
418
|
+
* @context model-pointer-events
|
|
419
|
+
*/
|
|
420
|
+
export declare const EVENT_EDGE_MOUSEDOWN = "edge:mousedown";
|
|
421
|
+
/**
|
|
422
|
+
* A context menu (right click) event on an edge
|
|
423
|
+
* @group Events
|
|
424
|
+
* @category UI Events
|
|
425
|
+
* @constant
|
|
426
|
+
* @event
|
|
427
|
+
* @context model-pointer-events
|
|
428
|
+
*/
|
|
429
|
+
export declare const EVENT_EDGE_CONTEXTMENU = "edge:contextmenu";
|
|
430
|
+
/**
|
|
431
|
+
* A tap event on an edge
|
|
432
|
+
* @group Events
|
|
433
|
+
* @category UI Events
|
|
434
|
+
* @constant
|
|
435
|
+
* @event
|
|
436
|
+
* @context model-pointer-events
|
|
437
|
+
*/
|
|
438
|
+
export declare const EVENT_EDGE_TAP = "edge:tap";
|
|
439
|
+
/**
|
|
440
|
+
* Fired when the user clicks/taps on the whitespace of a canvas.
|
|
441
|
+
* @group Events
|
|
442
|
+
* @category UI Events
|
|
443
|
+
* @constant
|
|
444
|
+
* @event
|
|
445
|
+
* @context model-pointer-events
|
|
446
|
+
*/
|
|
447
|
+
export declare const EVENT_CANVAS_CLICK = "canvasClick";
|
|
448
|
+
/**
|
|
449
|
+
* Fired when the user double clicks/double taps on the whitespace of a canvas.
|
|
450
|
+
* @group Events
|
|
451
|
+
* @category UI Events
|
|
452
|
+
* @constant
|
|
453
|
+
* @event
|
|
454
|
+
* @context model-pointer-events
|
|
455
|
+
*/
|
|
456
|
+
export declare const EVENT_CANVAS_DBLCLICK = "canvasDblClick";
|
|
457
|
+
/**
|
|
458
|
+
* Fired under certain specific conditions when an edge is being relocated.
|
|
459
|
+
* @group Events
|
|
460
|
+
* @category UI Events
|
|
461
|
+
* @constant
|
|
462
|
+
* @internal
|
|
463
|
+
*/
|
|
464
|
+
export declare const EVENT_EDGE_REDRAW = "edge:redraw";
|
|
465
|
+
/**
|
|
466
|
+
* Fired at the end of a lasso operation.
|
|
467
|
+
* @group Events
|
|
468
|
+
* @category UI Events
|
|
469
|
+
* @constant
|
|
470
|
+
* @event
|
|
471
|
+
* @context lasso
|
|
472
|
+
*/
|
|
473
|
+
export declare const EVENT_LASSO_END = "lasso:end";
|
|
474
|
+
/**
|
|
475
|
+
* Fired when a surface pans. This event is fired continuously as the surface is panning.
|
|
476
|
+
* @payload PanZoomEventPayload
|
|
477
|
+
* @constant
|
|
478
|
+
* @event
|
|
479
|
+
* @context canvas
|
|
480
|
+
*/
|
|
481
|
+
export declare const EVENT_PAN = "pan";
|
|
482
|
+
/**
|
|
483
|
+
* @internal
|
|
484
|
+
*/
|
|
485
|
+
export declare const EVENT_SURFACE_MODE_CHANGED = "modeChanged";
|
|
486
|
+
/**
|
|
487
|
+
* @internal
|
|
488
|
+
*/
|
|
489
|
+
export declare const ALL_GROUPS_RELAYOUT = "allGroupsRelayout";
|
|
490
|
+
/**
|
|
491
|
+
* @internal
|
|
492
|
+
*/
|
|
493
|
+
export declare const GROUP_RELAYOUT_ADHOC = "groupRelayoutAdhoc";
|
|
494
|
+
/**
|
|
495
|
+
* @internal
|
|
496
|
+
*/
|
|
497
|
+
export declare const GROUP_RELAYOUT_MEMBER_REMOVED = "groupMemberRemoved";
|
|
498
|
+
/**
|
|
499
|
+
* @internal
|
|
500
|
+
*/
|
|
501
|
+
export declare const GROUP_RELAYOUT_NEW_VERTEX_ADDED = "newVertexAddedToGroup";
|
|
502
|
+
/**
|
|
503
|
+
* @internal
|
|
504
|
+
*/
|
|
505
|
+
export declare const GROUP_RELAYOUT_EXISTING_VERTEX_ADDED = "existingVertexAddedToGroup";
|
|
506
|
+
/**
|
|
507
|
+
* Reasons for a group layout being run.
|
|
508
|
+
* @internal
|
|
509
|
+
*/
|
|
510
|
+
export type GroupRelayoutReason = typeof GROUP_RELAYOUT_MEMBER_REMOVED | typeof GROUP_RELAYOUT_NEW_VERTEX_ADDED | typeof GROUP_RELAYOUT_EXISTING_VERTEX_ADDED | typeof GROUP_RELAYOUT_ADHOC | typeof ALL_GROUPS_RELAYOUT;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { AnchorRecord, AnchorSpec, LightweightAnchor } from "../../common";
|
|
2
|
+
import { PointXY } from "../../../core";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
* @param type
|
|
6
|
+
* @param locations
|
|
7
|
+
* @param params
|
|
8
|
+
* @private
|
|
9
|
+
*/
|
|
10
|
+
export declare function _createAnchor(type: string, locations: Array<AnchorRecord>, params: Record<string, any>, fixedLocation: AnchorRecord): LightweightAnchor;
|
|
11
|
+
export declare function makeLightweightAnchorFromArraySpec(specs: Array<AnchorSpec>, selectedAnchor?: number, currentPosition?: PointXY): LightweightAnchor;
|
|
12
|
+
/**
|
|
13
|
+
* @internal
|
|
14
|
+
* @param spec
|
|
15
|
+
* @param fixedLocation
|
|
16
|
+
*/
|
|
17
|
+
export declare function makeLightweightAnchorFromSpec(spec: AnchorSpec | Array<AnchorSpec> | LightweightAnchor, fixedLocation?: AnchorRecord): LightweightAnchor;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { Face, LightweightContinuousAnchor } from "../../common";
|
|
2
|
+
/**
|
|
3
|
+
*
|
|
4
|
+
* @param a
|
|
5
|
+
* @internal
|
|
6
|
+
*/
|
|
7
|
+
export declare function getDefaultFace(a: LightweightContinuousAnchor): Face;
|
|
8
|
+
/**
|
|
9
|
+
* @internal
|
|
10
|
+
* @param a
|
|
11
|
+
* @param face
|
|
12
|
+
* @private
|
|
13
|
+
*/
|
|
14
|
+
export declare function _isFaceAvailable(a: LightweightContinuousAnchor, face: Face): boolean;
|
|
15
|
+
/**
|
|
16
|
+
* Determines whether the given face is supported on the given anchor at some
|
|
17
|
+
* point in time.
|
|
18
|
+
* @internal
|
|
19
|
+
* @param a
|
|
20
|
+
* @param face
|
|
21
|
+
* @param occupiedCheck
|
|
22
|
+
*/
|
|
23
|
+
export declare function isEdgeSupported(a: LightweightContinuousAnchor, face: Face, occupiedCheck: (edge: string) => boolean): boolean;
|
|
24
|
+
export declare function _createContinuousAnchor(type: string, faces: Array<Face>, params: Record<string, any>): LightweightContinuousAnchor;
|
|
25
|
+
export declare const namedContinuousValues: Record<string, {
|
|
26
|
+
faces: Array<string>;
|
|
27
|
+
}>;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { Overlay } from '../overlay/overlay';
|
|
2
|
+
import { Connection } from "../connector/connection-impl";
|
|
3
|
+
import { UICore } from "../core";
|
|
4
|
+
import { Constructable } from "../../../core";
|
|
5
|
+
export declare const OverlayFactory: {
|
|
6
|
+
get: <E>(instance: UICore<E, any>, name: string, component: Connection<E>, params: any) => Overlay<E>;
|
|
7
|
+
register: (name: string, overlay: Constructable<Overlay<any>>) => void;
|
|
8
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { Grid } from "../../core/util";
|
|
2
|
+
/**
|
|
3
|
+
* Options for a grid in the UI
|
|
4
|
+
*/
|
|
5
|
+
export interface GridOptions {
|
|
6
|
+
/**
|
|
7
|
+
* Width/height of the grid cells
|
|
8
|
+
*/
|
|
9
|
+
size?: Grid;
|
|
10
|
+
/**
|
|
11
|
+
* Whether or not to snap elements to the grid when dragging. Defaults to false.
|
|
12
|
+
*/
|
|
13
|
+
snap?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* Whether or not to ensure calculated group sizes (from auto sized groups) are a multiple of the grid size in each axis. Defaults to false.
|
|
16
|
+
*/
|
|
17
|
+
fitGroupsToGrid?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* models the behaviour of the grid.
|
|
21
|
+
* @internal
|
|
22
|
+
*/
|
|
23
|
+
export declare class GridProfile {
|
|
24
|
+
grid: Grid;
|
|
25
|
+
snap: boolean;
|
|
26
|
+
fitGroupsToGrid: boolean;
|
|
27
|
+
constructor(opts: GridOptions);
|
|
28
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Edge, ProxyLocation, ObjectAnchorSpec } from "../../core";
|
|
2
|
+
import { UICore } from "./core";
|
|
3
|
+
import { LightweightAnchor } from "../common";
|
|
4
|
+
import { CoreUIEvent } from "./core-events";
|
|
5
|
+
import { ViewportElement } from "./viewport";
|
|
6
|
+
/**
|
|
7
|
+
* @internal
|
|
8
|
+
* @param instance
|
|
9
|
+
* @param e
|
|
10
|
+
* @param index
|
|
11
|
+
* @param newAnchorSpec
|
|
12
|
+
* @private
|
|
13
|
+
*/
|
|
14
|
+
export declare function $__unproxyEdge<EL, EVT = CoreUIEvent>(instance: UICore<EL, EVT>, e: Edge, index: ProxyLocation, newAnchorSpec?: ObjectAnchorSpec): ViewportElement<EL> | null;
|
|
15
|
+
/**
|
|
16
|
+
* Proxy the given edge such that its source/target is on the given element. This is used when collapsing
|
|
17
|
+
* groups and also when relocating edges
|
|
18
|
+
* @internal
|
|
19
|
+
* @param instance
|
|
20
|
+
* @param e
|
|
21
|
+
* @param index
|
|
22
|
+
*/
|
|
23
|
+
export declare function $__proxyEdge<EL, EVT = CoreUIEvent>(instance: UICore<EL, EVT>, e: Edge, index: ProxyLocation, managedElement: ViewportElement<EL>, anchor?: LightweightAnchor): void;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { GridProfile } from "./grid-profile";
|
|
2
|
+
import { Extents, Size } from "../../core/util";
|
|
3
|
+
import { GroupMapping } from "./view";
|
|
4
|
+
export declare function computeGroupSize<EL>(extents: Extents, groupDef: GroupMapping<EL>, allowOriginShift: boolean, shrink: boolean, grow: boolean, gridProfile: GridProfile, minSize?: Size): {
|
|
5
|
+
width: number;
|
|
6
|
+
height: number;
|
|
7
|
+
layoutShiftX: number;
|
|
8
|
+
layoutShiftY: number;
|
|
9
|
+
};
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* This package is the core of the VisuallyJs UI.
|
|
3
|
+
*
|
|
4
|
+
* @packageDocumentation
|
|
5
|
+
*/
|
|
6
|
+
export * from './context';
|
|
7
|
+
export * from './definitions';
|
|
8
|
+
export * from "./constants";
|
|
9
|
+
export * from "./css-constants";
|
|
10
|
+
export * from "./event-constants";
|
|
11
|
+
export * from './params';
|
|
12
|
+
export * from "./callbacks";
|
|
13
|
+
export * from "./type-descriptors";
|
|
14
|
+
export * from './view';
|
|
15
|
+
export * from './ui-model';
|
|
16
|
+
export * from './core-events';
|
|
17
|
+
export * from "./core";
|
|
18
|
+
export * from "./defaults";
|
|
19
|
+
export * from './viewport';
|
|
20
|
+
export * from "./group-sizer";
|
|
21
|
+
export * from "./group-collapse-expand";
|
|
22
|
+
export * from "./component/component";
|
|
23
|
+
export * from "./connector/segments";
|
|
24
|
+
export * from "./connector/abstract-connector";
|
|
25
|
+
export * from "./connector/arc-segment";
|
|
26
|
+
export * from "./connector/connection-impl";
|
|
27
|
+
export * from "./connector/connectors";
|
|
28
|
+
export * from "./connector/connections";
|
|
29
|
+
export * from "./connector/straight-segment";
|
|
30
|
+
export * from './grid-profile';
|
|
31
|
+
export * from './magnetize-profile';
|
|
32
|
+
export * from "./overlay/overlay";
|
|
33
|
+
export * from "./overlay/label-overlay";
|
|
34
|
+
export * from "./overlay/arrow-overlay";
|
|
35
|
+
export * from "./overlay/plain-arrow-overlay";
|
|
36
|
+
export * from "./overlay/diamond-overlay";
|
|
37
|
+
export * from "./overlay/custom-overlay";
|
|
38
|
+
export * from "./overlay/dot-overlay";
|
|
39
|
+
export * from "./overlay/rectangle-overlay";
|
|
40
|
+
export * from "./overlay/ellipse-overlay";
|
|
41
|
+
export * from "./factory/overlay-factory";
|
|
42
|
+
export * from './router/router';
|
|
43
|
+
export * from "./factory/continuous-anchors";
|
|
44
|
+
export * from "./factory/anchor-record-factory";
|
|
45
|
+
export * from './router';
|