@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,149 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assigned to the SVG element that is the parent of the path element used to draw an edge. A common setup using this class is to assign it a z-index which is lower than the z-index set for `.vjs-node` and `.vjs-group`.
|
|
3
|
+
* @group Edges
|
|
4
|
+
* @category CSS Classes
|
|
5
|
+
* @cssClass
|
|
6
|
+
* @context edges
|
|
7
|
+
*/
|
|
8
|
+
export declare const CLASS_CONNECTOR = "vjs-connector";
|
|
9
|
+
/**
|
|
10
|
+
* Assigned to the SVG path element used to draw an edge. You can use this, for instance, for setting a `stroke-width` or `stroke`, but note that styling edges with CSS is not compatible with generating output via an SVG/PNG/JPG exporter.
|
|
11
|
+
* @group Edges
|
|
12
|
+
* @category CSS Classes
|
|
13
|
+
* @cssClass
|
|
14
|
+
* @context edges
|
|
15
|
+
*/
|
|
16
|
+
export declare const CLASS_CONNECTOR_PATH = "vjs-connector-path";
|
|
17
|
+
/**
|
|
18
|
+
* Assigned to the SVG path element used to draw an edge's outline.
|
|
19
|
+
* @group Edges
|
|
20
|
+
* @category CSS Classes
|
|
21
|
+
* @cssClass
|
|
22
|
+
* @context edges
|
|
23
|
+
*/
|
|
24
|
+
export declare const CLASS_CONNECTOR_OUTLINE = "vjs-connector-outline";
|
|
25
|
+
/**
|
|
26
|
+
* Assigned to the connector for a new edge that is being dragged.
|
|
27
|
+
* @group Edges
|
|
28
|
+
* @category CSS Classes
|
|
29
|
+
* @cssClass
|
|
30
|
+
* @context edges
|
|
31
|
+
*/
|
|
32
|
+
export declare const CLASS_CONNECTOR_TRANSIENT = "vjs-connector-transient";
|
|
33
|
+
/**
|
|
34
|
+
* Assigned to node/group/port element when the vertex it represents has one or more edges attached.
|
|
35
|
+
* @group Nodes and Groups
|
|
36
|
+
* @category CSS Classes
|
|
37
|
+
* @cssClass
|
|
38
|
+
* @context nodes,groups
|
|
39
|
+
*/
|
|
40
|
+
export declare const CLASS_CONNECTED = "vjs-connected";
|
|
41
|
+
/**
|
|
42
|
+
* Assigned to a group element when the group is collapsed.
|
|
43
|
+
* @group Nodes and Groups
|
|
44
|
+
* @category CSS Classes
|
|
45
|
+
* @cssClass
|
|
46
|
+
* @context surface,paper,groups
|
|
47
|
+
*/
|
|
48
|
+
export declare const CLASS_GROUP_COLLAPSED = "vjs-group-collapsed";
|
|
49
|
+
/**
|
|
50
|
+
* Assigned to a group element when the group is not collapsed.
|
|
51
|
+
* @group Nodes and Groups
|
|
52
|
+
* @category CSS Classes
|
|
53
|
+
* @cssClass
|
|
54
|
+
* @context surface,paper,groups
|
|
55
|
+
*/
|
|
56
|
+
export declare const CLASS_GROUP_EXPANDED = "vjs-group-expanded";
|
|
57
|
+
/**
|
|
58
|
+
* You can put this class on an element inside a group template, and VisuallyJs will listen for tap events on it, toggling the group's collapsed state in response
|
|
59
|
+
* @group Nodes and Groups
|
|
60
|
+
* @category CSS Classes
|
|
61
|
+
* @cssClass
|
|
62
|
+
* @context surface,paper,groups
|
|
63
|
+
*/
|
|
64
|
+
export declare const CLASS_TOGGLE_GROUP_COLLAPSE = "vjs-toggle-group-collapse";
|
|
65
|
+
/**
|
|
66
|
+
* Assigned to all overlay elements
|
|
67
|
+
* @group Edges
|
|
68
|
+
* @category CSS Classes
|
|
69
|
+
* @cssClass
|
|
70
|
+
* @context overlays
|
|
71
|
+
*/
|
|
72
|
+
export declare const CLASS_OVERLAY = "vjs-overlay";
|
|
73
|
+
/**
|
|
74
|
+
* Assigned to an overlay this is currently hidden
|
|
75
|
+
* @group Edges
|
|
76
|
+
* @category CSS Classes
|
|
77
|
+
* @cssClass
|
|
78
|
+
* @context overlays
|
|
79
|
+
*/
|
|
80
|
+
export declare const CLASS_OVERLAY_HIDE = "vjs-overlay-hide";
|
|
81
|
+
/**
|
|
82
|
+
* Assigned to all label overlay elements
|
|
83
|
+
* @group Edges
|
|
84
|
+
* @category CSS Classes
|
|
85
|
+
* @cssClass
|
|
86
|
+
* @context overlays
|
|
87
|
+
*/
|
|
88
|
+
export declare const CLASS_LABEL_OVERLAY = "vjs-label-overlay";
|
|
89
|
+
/**
|
|
90
|
+
* Assigned by the UI to an element that represents a node.
|
|
91
|
+
* @group Nodes and Groups
|
|
92
|
+
* @category CSS Classes
|
|
93
|
+
* @cssClass
|
|
94
|
+
* @context vertices
|
|
95
|
+
*/
|
|
96
|
+
export declare const CLASS_NODE = "vjs-node";
|
|
97
|
+
/**
|
|
98
|
+
* Assigned by the UI to an element that represents a port.
|
|
99
|
+
* @group Nodes and Groups
|
|
100
|
+
* @category CSS Classes
|
|
101
|
+
* @cssClass
|
|
102
|
+
* @context vertices
|
|
103
|
+
*/
|
|
104
|
+
export declare const CLASS_PORT = "vjs-port";
|
|
105
|
+
/**
|
|
106
|
+
* Assigned by the UI to an element that represents a group.
|
|
107
|
+
* @group Nodes and Groups
|
|
108
|
+
* @category CSS Classes
|
|
109
|
+
* @cssClass
|
|
110
|
+
* @context vertices, groups
|
|
111
|
+
*/
|
|
112
|
+
export declare const CLASS_GROUP = "vjs-group";
|
|
113
|
+
/**
|
|
114
|
+
* Assigned by the UI to an element that represents a dummy vertex (such as is used for a edge with source and/or target that is not attached to a vertex)
|
|
115
|
+
* @group Nodes and Groups
|
|
116
|
+
* @category CSS Classes
|
|
117
|
+
* @cssClass
|
|
118
|
+
* @context nodes-and-groups
|
|
119
|
+
*/
|
|
120
|
+
export declare const CLASS_DUMMY_VERTEX = "vjs-dummy-vertex";
|
|
121
|
+
/**
|
|
122
|
+
* Assigned by the UI to an element representing an edge in the model's current selection.
|
|
123
|
+
* @group Edges
|
|
124
|
+
* @category CSS Classes
|
|
125
|
+
* @cssClass
|
|
126
|
+
* @context edges
|
|
127
|
+
*/
|
|
128
|
+
export declare const CLASS_UI_SELECTED_CONNECTION = "vjs-selected-connection";
|
|
129
|
+
/**
|
|
130
|
+
* Assigned by the UI to an element representing a vertex in the model's current selection.
|
|
131
|
+
* @group Nodes and Groups
|
|
132
|
+
* @category CSS Classes
|
|
133
|
+
* @cssClass
|
|
134
|
+
* @context nodes-and-groups
|
|
135
|
+
*/
|
|
136
|
+
export declare const CLASS_UI_SELECTED_ELEMENT = "vjs-selected-element";
|
|
137
|
+
/**
|
|
138
|
+
* Assigned to the optional delete button overlay that the edge path editor can add
|
|
139
|
+
* @group Edges
|
|
140
|
+
* @category CSS Classes
|
|
141
|
+
* @cssClass
|
|
142
|
+
* @context edges
|
|
143
|
+
*/
|
|
144
|
+
export declare const CLASS_EDGE_DELETE_BUTTON = "vjs-edge-delete";
|
|
145
|
+
/**
|
|
146
|
+
* Written by the UI when an edge def requests a deleteButton.
|
|
147
|
+
* @internal
|
|
148
|
+
*/
|
|
149
|
+
export declare const CLASS_EDGE_DELETE_BUTTON_INTERNAL = "vjs-edge-delete-i";
|
|
@@ -0,0 +1,242 @@
|
|
|
1
|
+
import { AnchorSpec, OverlaySpec, PaintStyle, ConnectorSpec } from "../common";
|
|
2
|
+
import { ConnectionEstablishedParams } from "./callbacks";
|
|
3
|
+
import { ViewSpec } from "./view";
|
|
4
|
+
import { Base, Size, LayoutSpec, Group, ObjectData } from "../../core";
|
|
5
|
+
import { GridOptions } from "./grid-profile";
|
|
6
|
+
import { MagnetizeOptions } from "./magnetize-profile";
|
|
7
|
+
import { UIPluginSpec } from "../plugins";
|
|
8
|
+
/**
|
|
9
|
+
* Default key used to instruct VisuallyJs whether or not nested groups are allowed. Defaults to true.
|
|
10
|
+
* @group Nodes and Groups
|
|
11
|
+
* @category Constants
|
|
12
|
+
*/
|
|
13
|
+
export declare const DEFAULT_KEY_ALLOW_NESTED_GROUPS = "allowNestedGroups";
|
|
14
|
+
/**
|
|
15
|
+
* Default key used to define the default anchor to use on the source and target of connections. You can use the name of an anchor here as a string,
|
|
16
|
+
* or an entry from {@link AnchorLocations}, or an {@link AnchorSpec}.
|
|
17
|
+
* @group Edges
|
|
18
|
+
* @category Constants
|
|
19
|
+
*/
|
|
20
|
+
export declare const DEFAULT_KEY_ANCHOR = "anchor";
|
|
21
|
+
/**
|
|
22
|
+
* Default key used to define the default anchors to use for the source and target of connections. The value you provide for this key should be an array
|
|
23
|
+
* containing the source anchor at index 0 and the target anchor at index 1.
|
|
24
|
+
* @group Edges
|
|
25
|
+
* @category Constants
|
|
26
|
+
*/
|
|
27
|
+
export declare const DEFAULT_KEY_ANCHORS = "anchors";
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const DEFAULT_KEY_ASTAR_GRID_CELL_SIZE = "astarGridCellSize";
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const DEFAULT_KEY_ASTAR_VERTEX_BORDER = "astarVertexBorder";
|
|
32
|
+
/** @internal */
|
|
33
|
+
export declare const DEFAULT_KEY_ASTAR_VERTEX_BUFFER = "astarVertexBuffer";
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const DEFAULT_KEY_OVERLAYS = "overlays";
|
|
36
|
+
/**
|
|
37
|
+
* Default key used to instruct the UI whether or not connections should be detachable via mouse/touch events. Defaults to true.
|
|
38
|
+
* @group Edges
|
|
39
|
+
* @category Constants
|
|
40
|
+
*/
|
|
41
|
+
export declare const DEFAULT_KEY_EDGES_DETACHABLE = "edgesDetachable";
|
|
42
|
+
/**
|
|
43
|
+
* Default key used to define the default connector to use to represent edges. This may be the name of a connector, or a spec in
|
|
44
|
+
* {@link ConnectorSpec} format.
|
|
45
|
+
* @group Edges
|
|
46
|
+
* @category Constants
|
|
47
|
+
*/
|
|
48
|
+
export declare const DEFAULT_KEY_CONNECTOR = "connector";
|
|
49
|
+
export declare const DEFAULT_KEY_CSS_CLASS = "cssClass";
|
|
50
|
+
export declare const DEFAULT_KEY_EDGE_RELOCATE_HANDLE_SIZE = "edgeRelocateHandleSize";
|
|
51
|
+
export declare const DEFAULT_KEY_ENSURE_ANCHORS_IN_WHITESPACE = "ensureAnchorsInWhitespace";
|
|
52
|
+
/**
|
|
53
|
+
* When `useModelForSizes` is set on a Surface, this key can be used to define the default size for groups.
|
|
54
|
+
* @group Nodes and Groups
|
|
55
|
+
* @category Constants
|
|
56
|
+
*/
|
|
57
|
+
export declare const DEFAULT_KEY_GROUP_SIZE = "groupSize";
|
|
58
|
+
export declare const DEFAULT_KEY_HOVER_CLASS = "hoverClass";
|
|
59
|
+
export declare const DEFAULT_KEY_HOVER_PAINT_STYLE = "hoverPaintStyle";
|
|
60
|
+
export declare const DEFAULT_KEY_MAX_CONNECTIONS = "maxConnections";
|
|
61
|
+
/**
|
|
62
|
+
* When `useModelForSizes` is set on a Surface, this key can be used to define the default size for nodes.
|
|
63
|
+
* @group Nodes and Groups
|
|
64
|
+
* @category Constants
|
|
65
|
+
*/
|
|
66
|
+
export declare const DEFAULT_KEY_NODE_SIZE = "nodeSize";
|
|
67
|
+
export declare const DEFAULT_KEY_PAINT_STYLE = "paintStyle";
|
|
68
|
+
/**
|
|
69
|
+
* Default key used to instruct the UI to reattach edges that a user has detached via mouse/touch and dropped in whitespace.
|
|
70
|
+
* @group Edges
|
|
71
|
+
* @category Constants
|
|
72
|
+
*/
|
|
73
|
+
export declare const DEFAULT_KEY_REATTACH_EDGES = "reattachEdges";
|
|
74
|
+
/**
|
|
75
|
+
* Default key used to define the default scope to use for edges. Scope is used when dragging new edges as a means of determining what can be connected to what. You can override scope in individual port/node definitions.
|
|
76
|
+
* @group Edges
|
|
77
|
+
* @category Constants
|
|
78
|
+
*/
|
|
79
|
+
export declare const DEFAULT_KEY_SCOPE = "scope";
|
|
80
|
+
export interface UIEdgeOptions {
|
|
81
|
+
/**
|
|
82
|
+
* Defaults to true. Instructs the Surface to automatically extract `color`, `lineWidth`, `outlineWidth`, `outlineColor`, and `dashArray` values from the backing data for edges, and to use these to set the appearance of a connection for that edge.
|
|
83
|
+
*/
|
|
84
|
+
simpleEdgeStyles?: boolean;
|
|
85
|
+
/**
|
|
86
|
+
* Defaults to false. When true, dragging either the source or target of some edge that has edits will cause those edits to be discarded. When false - the default value - Visually JS attempts to retain as many of the edits as possible while still catering for the fact that the source or target has moved.
|
|
87
|
+
*/
|
|
88
|
+
discardEditsOnDrag?: boolean;
|
|
89
|
+
/**
|
|
90
|
+
* If true, edges will attempt to avoid vertices.
|
|
91
|
+
*/
|
|
92
|
+
avoidVertices?: boolean;
|
|
93
|
+
/**
|
|
94
|
+
* Size of each cell in the grid that the AStar routine uses to calculate paths that avoid vertices. This defaults to 10 pixels and is not something you'll really need to change. If you do change it, keep in mind that a) a smaller grid size increases the runtime of the routine, and b) a large grid size will render the UI unusable.
|
|
95
|
+
*/
|
|
96
|
+
astarGridCellSize?: number;
|
|
97
|
+
/**
|
|
98
|
+
* Number of cells to pad each vertex with that act as its border: edges will be routed around the border wherever possible. Defaults to 2
|
|
99
|
+
*
|
|
100
|
+
*/
|
|
101
|
+
astarVertexBorder?: number;
|
|
102
|
+
/**
|
|
103
|
+
* Number of cells to pad each vertex with that act as its buffer: edges will be routed around the buffer wherever possible. Defaults to 2 - but note this value is added the vertex border, whose default is 2, so the computed default is 4 grid cells.
|
|
104
|
+
*
|
|
105
|
+
*/
|
|
106
|
+
astarVertexBuffer?: number;
|
|
107
|
+
/**
|
|
108
|
+
* Whether or not to allow edges whose source and/or target is not connected to a vertex but is anchored to some point on the canvas. If you need more fine-grained control (such as some edge types should support this and others should not), use the `allowUnattached` flag of an edge type. Defaults to false.
|
|
109
|
+
*/
|
|
110
|
+
allowUnattached?: boolean;
|
|
111
|
+
/**
|
|
112
|
+
* Whether or not edges should be detachable via pointer/touch events by default. The default value for this is true. This behaviour can be overridden by individual edge type definitions.
|
|
113
|
+
*/
|
|
114
|
+
detachable?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Whether or not edges that have been detached from their source or target via pointer/touch events should be reattached if they are dropped into whitespace. The default value for this is false: edges dropped in whitespace are discarded. This behaviour can be overridden in individual edge type definitions.
|
|
117
|
+
*/
|
|
118
|
+
reattach?: boolean;
|
|
119
|
+
/**
|
|
120
|
+
* Default connector to use for edges. This will be used in the event that VisuallyJs does not find a connector spec for a given edge in its type definition.
|
|
121
|
+
*/
|
|
122
|
+
connector?: ConnectorSpec;
|
|
123
|
+
/**
|
|
124
|
+
* Default anchor to use for both source and target of edges.
|
|
125
|
+
*/
|
|
126
|
+
anchor?: AnchorSpec;
|
|
127
|
+
/**
|
|
128
|
+
* Anchors to use as source, target of edges. This will take precedence over `anchor`.
|
|
129
|
+
*/
|
|
130
|
+
anchors?: [AnchorSpec, AnchorSpec];
|
|
131
|
+
/**
|
|
132
|
+
* Default overlays to draw on each edge.
|
|
133
|
+
*/
|
|
134
|
+
overlays?: Array<OverlaySpec>;
|
|
135
|
+
/**
|
|
136
|
+
* Shorthand for adding an overlay at location 0, with direction set to -1.
|
|
137
|
+
*/
|
|
138
|
+
sourceMarker?: OverlaySpec;
|
|
139
|
+
/**
|
|
140
|
+
* Shorthand for adding an overlay at location 1
|
|
141
|
+
*/
|
|
142
|
+
targetMarker?: OverlaySpec;
|
|
143
|
+
/**
|
|
144
|
+
* Defaults to true. Paints an outline path behind the path drawn for an edge, which makes it easier for users to interact with the element on the canvas. The default width of the outline is specified by the `outlineWidth` setting.
|
|
145
|
+
*/
|
|
146
|
+
paintOutline?: boolean;
|
|
147
|
+
/**
|
|
148
|
+
* Default width to paint the outline path behind edge paths. Defaults to 20 pixels. Can be overridden on a per-edge basis via the `outlineWidth` setting.
|
|
149
|
+
*/
|
|
150
|
+
outlineWidth?: number;
|
|
151
|
+
/**
|
|
152
|
+
* The default color to paint a connector's outline path. Defaults to `"transparent"`. Can be overridden on a per-edge basis via the `outlineColor` setting.
|
|
153
|
+
*/
|
|
154
|
+
outlineColor?: string;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Base options for a renderer.
|
|
158
|
+
* @group Components
|
|
159
|
+
*/
|
|
160
|
+
export interface UICoreOptions<E, O extends UICoreDefaults<E>> {
|
|
161
|
+
id?: string;
|
|
162
|
+
/**
|
|
163
|
+
* Optional list of plugins to attach to the UI.
|
|
164
|
+
*/
|
|
165
|
+
plugins?: Array<UIPluginSpec<any>>;
|
|
166
|
+
/**
|
|
167
|
+
* Optional default settings
|
|
168
|
+
*/
|
|
169
|
+
defaults?: O;
|
|
170
|
+
view?: ViewSpec<E>;
|
|
171
|
+
connectionEstablished?: (payload: ConnectionEstablishedParams) => void;
|
|
172
|
+
grid?: GridOptions;
|
|
173
|
+
logicalPorts?: boolean;
|
|
174
|
+
objectFilter?: (b: Base) => boolean;
|
|
175
|
+
magnetizer?: MagnetizeOptions;
|
|
176
|
+
layout?: LayoutSpec;
|
|
177
|
+
refreshLayoutOnEdgeConnect?: boolean;
|
|
178
|
+
/**
|
|
179
|
+
* Default options for edges - these will apply to all edge types in the UI.
|
|
180
|
+
*/
|
|
181
|
+
edges?: UIEdgeOptions;
|
|
182
|
+
/**
|
|
183
|
+
* Defaults to false. When true, newly created nodes are sized according to values in their backing data, using the modelWidthAttribute and modelHeightAttribute as keys. NOTE: when this flag is set, VisuallyJs will write the size onto each element as it is created. Depending on your app, you may not need it to do this - if you know your node sizes are set via css, for instance, or you know the template rendering your vertices writes out the size in an element's style or an SVG element's width/height. If that is the case, you can set {@link writeSizeToElements} to be false, and you'll get a performance boost.
|
|
184
|
+
*/
|
|
185
|
+
useModelForSizes?: boolean;
|
|
186
|
+
/**
|
|
187
|
+
* When {@link useModelForSizes} is true, VisuallyJs will write out the model size onto each element rendered. But if you know your node sizes are set via css, or you know the template rendering your vertices writes out the size in an element's style or an SVG element's width/height, you can instruct VisuallyJs not to bother writing out the size to the element itself, by setting this flag to true (the default is false). This can provide a performance boost.
|
|
188
|
+
*/
|
|
189
|
+
writeSizeToElements?: boolean;
|
|
190
|
+
/**
|
|
191
|
+
* Defaults to true - we get positions for elements from our layout. In some use cases you may wish to use element positions retrieved from the DOM.
|
|
192
|
+
*/
|
|
193
|
+
useModelForPositions?: boolean;
|
|
194
|
+
/**
|
|
195
|
+
* If true, zoom the display so that the dataset is entirely visible after initialisation.
|
|
196
|
+
*/
|
|
197
|
+
zoomToFit?: boolean;
|
|
198
|
+
/**
|
|
199
|
+
* If true, zoom the display so that the dataset is entirely visible after initialisation, but only adjust the zoom level if the dataset is not already visible at the default zoom level.
|
|
200
|
+
*/
|
|
201
|
+
zoomToFitIfNecessary?: boolean;
|
|
202
|
+
/**
|
|
203
|
+
* Optional function to determine the size of a collapsed group. This is given precedence over any default
|
|
204
|
+
* or per-type specification for a collapsed group's size.
|
|
205
|
+
* @param group - The group that is being collapsed.
|
|
206
|
+
* @returns The size for the collapsed group.
|
|
207
|
+
*/
|
|
208
|
+
getCollapsedGroupSize?: (group: Group, currentSize: Size) => Size;
|
|
209
|
+
canCollapseGroup?: (group: Group, currentSize: Size) => boolean | ObjectData;
|
|
210
|
+
canExpandGroup?: (group: Group, currentSize: Size) => boolean | ObjectData;
|
|
211
|
+
/**
|
|
212
|
+
* Optional default size for a collapsed group. Defaults to 200x150.
|
|
213
|
+
*/
|
|
214
|
+
defaultCollapsedGroupSize?: Size;
|
|
215
|
+
}
|
|
216
|
+
/** @internal */
|
|
217
|
+
export declare const DEFAULT_ZOOM_RANGE: [number, number];
|
|
218
|
+
/**
|
|
219
|
+
* Defaults for a UI instance.
|
|
220
|
+
* @group Components
|
|
221
|
+
* @category Defaults
|
|
222
|
+
*/
|
|
223
|
+
export interface UICoreDefaults<E> {
|
|
224
|
+
/**
|
|
225
|
+
* Default style to use to paint edges.
|
|
226
|
+
*/
|
|
227
|
+
paintStyle?: PaintStyle;
|
|
228
|
+
/**
|
|
229
|
+
* Default style to use to paint edges when mouse is hovering over them.
|
|
230
|
+
*/
|
|
231
|
+
hoverPaintStyle?: PaintStyle;
|
|
232
|
+
scope?: string;
|
|
233
|
+
maxConnections?: number;
|
|
234
|
+
hoverClass?: string;
|
|
235
|
+
allowNestedGroups?: boolean;
|
|
236
|
+
nodeSize?: Size;
|
|
237
|
+
groupSize?: Size;
|
|
238
|
+
/**
|
|
239
|
+
* Width/height of the SVG element with which a user can drag to relocate the source or target of some edge. Defaults to 20.
|
|
240
|
+
*/
|
|
241
|
+
edgeRelocateHandleSize?: number;
|
|
242
|
+
}
|