@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,15 @@
|
|
|
1
|
+
import { Base, Group, Node } from "../core/model/graph";
|
|
2
|
+
import { UICore } from "../ui/core";
|
|
3
|
+
import { BaseDomUiLayoutAdapter } from "./base-dom-ui-layout-adapter";
|
|
4
|
+
/**
|
|
5
|
+
* Implementation of layout adapter that operates on a Surface canvas. Vertices that are a member of a group are
|
|
6
|
+
* filtered, and `getElements` returns the list of all nodes and groups in the model, of course with those that
|
|
7
|
+
* are in a group having been filtered.
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
10
|
+
export declare class CanvasLayoutAdapter extends BaseDomUiLayoutAdapter {
|
|
11
|
+
protected uiCore: UICore<any, any>;
|
|
12
|
+
constructor(uiCore: UICore<any, any>);
|
|
13
|
+
filter(obj: Base): boolean;
|
|
14
|
+
getElements(): Array<Node | Group>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,245 @@
|
|
|
1
|
+
import { EventManager } from "./event-manager";
|
|
2
|
+
import { VisuallyJSDOMElement } from "./element-facade";
|
|
3
|
+
import { BrowserElement } from "./util";
|
|
4
|
+
import { PointXY, Grid, Size } from "../core";
|
|
5
|
+
import { ConstrainFunction } from "../ui";
|
|
6
|
+
export interface DragStartEventParams {
|
|
7
|
+
e: MouseEvent;
|
|
8
|
+
el: VisuallyJSDOMElement;
|
|
9
|
+
pos: PointXY;
|
|
10
|
+
drag: Drag;
|
|
11
|
+
size: Size;
|
|
12
|
+
}
|
|
13
|
+
export interface DragEventParams extends DragStartEventParams {
|
|
14
|
+
originalPos: PointXY;
|
|
15
|
+
viewport: Size;
|
|
16
|
+
}
|
|
17
|
+
export type RevertEventParams = VisuallyJSDOMElement;
|
|
18
|
+
export interface BeforeStartEventParams extends DragStartEventParams {
|
|
19
|
+
}
|
|
20
|
+
export interface DragStopEventParams extends DragEventParams {
|
|
21
|
+
finalPos: PointXY;
|
|
22
|
+
selection: Array<[VisuallyJSDOMElement, PointXY, Drag, Size]>;
|
|
23
|
+
}
|
|
24
|
+
export declare const EVENT_START = "start";
|
|
25
|
+
export declare const EVENT_BEFORE_START = "beforeStart";
|
|
26
|
+
export declare const EVENT_DRAG = "drag";
|
|
27
|
+
export declare const EVENT_DROP = "drop";
|
|
28
|
+
export declare const EVENT_OVER = "over";
|
|
29
|
+
export declare const EVENT_OUT = "out";
|
|
30
|
+
export declare const EVENT_STOP = "stop";
|
|
31
|
+
export type GetPositionFunction = (el: BrowserElement) => PointXY;
|
|
32
|
+
export type SetPositionFunction = (el: BrowserElement, p: PointXY) => void;
|
|
33
|
+
export type SetSizeFunction = (el: BrowserElement, s: Size) => void;
|
|
34
|
+
export type GetSizeFunction = (el: BrowserElement) => Size;
|
|
35
|
+
declare abstract class Base {
|
|
36
|
+
protected el: VisuallyJSDOMElement;
|
|
37
|
+
protected manager: Collicat;
|
|
38
|
+
abstract _class: string;
|
|
39
|
+
uuid: string;
|
|
40
|
+
private enabled;
|
|
41
|
+
scopes: Array<string>;
|
|
42
|
+
/**
|
|
43
|
+
* @internal
|
|
44
|
+
*/
|
|
45
|
+
protected eventManager: EventManager;
|
|
46
|
+
protected constructor(el: VisuallyJSDOMElement, manager: Collicat);
|
|
47
|
+
setEnabled(e: boolean): void;
|
|
48
|
+
isEnabled(): boolean;
|
|
49
|
+
toggleEnabled(): void;
|
|
50
|
+
addScope(scopes: string): void;
|
|
51
|
+
removeScope(scopes: string): void;
|
|
52
|
+
toggleScope(scopes: string): void;
|
|
53
|
+
}
|
|
54
|
+
export type GhostProxyGenerator = (el: Element) => Element;
|
|
55
|
+
/**
|
|
56
|
+
* Dont allow any part of the drag element to be in the negative x or y axis of its parent.
|
|
57
|
+
* @group Nodes and Groups
|
|
58
|
+
* @category @category Constants
|
|
59
|
+
*/
|
|
60
|
+
export declare const CONTAINMENT_NOT_NEGATIVE = "notNegative";
|
|
61
|
+
/**
|
|
62
|
+
* Constrain movement so at least some part of the drag element is within its parent
|
|
63
|
+
* @group Nodes and Groups
|
|
64
|
+
* @category @category Constants
|
|
65
|
+
*/
|
|
66
|
+
export declare const CONTAINMENT_PARENT = "parent";
|
|
67
|
+
/**
|
|
68
|
+
* Constrain movement to the entire drag element is within its parent
|
|
69
|
+
* @group Nodes and Groups
|
|
70
|
+
* @category @category Constants
|
|
71
|
+
*/
|
|
72
|
+
export declare const CONTAINMENT_PARENT_ENCLOSED = "parentEnclosed";
|
|
73
|
+
/**
|
|
74
|
+
* Containment types for draggables
|
|
75
|
+
* @group Nodes and Groups
|
|
76
|
+
* @category @category Constants
|
|
77
|
+
*/
|
|
78
|
+
export type ContainmentType = typeof CONTAINMENT_PARENT | typeof CONTAINMENT_PARENT_ENCLOSED | typeof CONTAINMENT_NOT_NEGATIVE;
|
|
79
|
+
/**
|
|
80
|
+
* From the given containment type (and optional padding), construct a suitable ConstrainFunction.
|
|
81
|
+
* @param containment
|
|
82
|
+
* @param containmentPadding
|
|
83
|
+
* @internal
|
|
84
|
+
*/
|
|
85
|
+
export declare function generateConstrainFunctionFromContainmentType(containment: ContainmentType, containmentPadding?: number): ConstrainFunction<BrowserElement, MouseEvent>;
|
|
86
|
+
export interface DragHandlerOptions {
|
|
87
|
+
selector?: string;
|
|
88
|
+
start?: (p: DragStartEventParams) => any;
|
|
89
|
+
stop?: (p: DragStopEventParams) => any;
|
|
90
|
+
drag?: (p: DragEventParams) => any;
|
|
91
|
+
beforeStart?: (beforeStartParams: BeforeStartEventParams) => void;
|
|
92
|
+
dragInit?: (el: Element, e: MouseEvent) => any;
|
|
93
|
+
dragAbort?: (el: Element) => any;
|
|
94
|
+
ghostProxy?: GhostProxyGenerator | boolean;
|
|
95
|
+
makeGhostProxy?: GhostProxyGenerator;
|
|
96
|
+
useGhostProxy?: (container: any, dragEl: VisuallyJSDOMElement) => boolean;
|
|
97
|
+
ghostProxyParent?: Element;
|
|
98
|
+
constrainFunction?: ConstrainFunction<BrowserElement, MouseEvent> | boolean;
|
|
99
|
+
revertFunction?: RevertFunction;
|
|
100
|
+
filter?: string;
|
|
101
|
+
filterExclude?: boolean;
|
|
102
|
+
snapThreshold?: number;
|
|
103
|
+
grid?: Grid;
|
|
104
|
+
containment?: ContainmentType;
|
|
105
|
+
containmentPadding?: number;
|
|
106
|
+
}
|
|
107
|
+
export interface DragParams extends DragHandlerOptions {
|
|
108
|
+
rightButtonCanDrag?: boolean;
|
|
109
|
+
consumeStartEvent?: boolean;
|
|
110
|
+
/**
|
|
111
|
+
* Whether or not to clone an element that is about to be dragged, rather than dragging the element itself.
|
|
112
|
+
*/
|
|
113
|
+
clone?: boolean;
|
|
114
|
+
/**
|
|
115
|
+
* Optional size to set on cloned elements.
|
|
116
|
+
*/
|
|
117
|
+
cloneSize?: Size;
|
|
118
|
+
scroll?: boolean;
|
|
119
|
+
trackScroll?: boolean;
|
|
120
|
+
canDrag?: Function;
|
|
121
|
+
consumeFilteredEvents?: boolean;
|
|
122
|
+
events?: Record<string, Function>;
|
|
123
|
+
parent?: any;
|
|
124
|
+
ignoreZoom?: boolean;
|
|
125
|
+
scope?: string;
|
|
126
|
+
/**
|
|
127
|
+
* optional function to return what the current scale of any drop target is. When provided, the
|
|
128
|
+
* drag will scale the element to drag by this amount.
|
|
129
|
+
*/
|
|
130
|
+
getTargetScale?: () => number;
|
|
131
|
+
}
|
|
132
|
+
export declare class Drag extends Base {
|
|
133
|
+
_class: string;
|
|
134
|
+
rightButtonCanDrag: boolean;
|
|
135
|
+
consumeStartEvent: boolean;
|
|
136
|
+
clone: boolean;
|
|
137
|
+
scroll: boolean;
|
|
138
|
+
trackScroll: boolean;
|
|
139
|
+
cloneSize: Size;
|
|
140
|
+
private _downAt;
|
|
141
|
+
private _posAtDown;
|
|
142
|
+
private _moving;
|
|
143
|
+
private _lastPosition;
|
|
144
|
+
private _lastScrollValues;
|
|
145
|
+
private _initialScroll;
|
|
146
|
+
_size: Size;
|
|
147
|
+
private _currentParentPosition;
|
|
148
|
+
private _ghostParentPosition;
|
|
149
|
+
private _dragEl;
|
|
150
|
+
private _ghostProxyOffsets;
|
|
151
|
+
private _ghostDx;
|
|
152
|
+
private _ghostDy;
|
|
153
|
+
_isConstrained: boolean;
|
|
154
|
+
_ghostProxyParent: VisuallyJSDOMElement;
|
|
155
|
+
_useGhostProxy: Function;
|
|
156
|
+
_ghostProxyFunction: GhostProxyGenerator;
|
|
157
|
+
_activeSelectorParams: DragParams;
|
|
158
|
+
_availableSelectors: Array<DragParams>;
|
|
159
|
+
_canDrag: Function;
|
|
160
|
+
private readonly _consumeFilteredEvents;
|
|
161
|
+
private readonly _parent;
|
|
162
|
+
private readonly _ignoreZoom;
|
|
163
|
+
private readonly _getTargetScale;
|
|
164
|
+
_filters: Record<string, [Function, boolean]>;
|
|
165
|
+
_constrainRect: Size;
|
|
166
|
+
_elementToDrag: VisuallyJSDOMElement;
|
|
167
|
+
downListener: (e: MouseEvent) => void;
|
|
168
|
+
moveListener: (e: MouseEvent) => void;
|
|
169
|
+
upListener: (e?: MouseEvent) => void;
|
|
170
|
+
scrollTracker: (e: Event) => void;
|
|
171
|
+
listeners: Record<string, Array<Function>>;
|
|
172
|
+
constructor(el: VisuallyJSDOMElement, params: DragParams, manager: Collicat);
|
|
173
|
+
private _trackScroll;
|
|
174
|
+
on(evt: string, fn: Function): void;
|
|
175
|
+
off(evt: string, fn: Function): void;
|
|
176
|
+
private _upListener;
|
|
177
|
+
private _downListener;
|
|
178
|
+
private _moveListener;
|
|
179
|
+
/**
|
|
180
|
+
* Gets the delta between the mouse location of the down event that instigated a drag and the page location
|
|
181
|
+
* of the element that is being dragged. For internal use.
|
|
182
|
+
* @internal
|
|
183
|
+
*/
|
|
184
|
+
getDragDelta(): PointXY;
|
|
185
|
+
private mark;
|
|
186
|
+
private unmark;
|
|
187
|
+
moveBy(dx: number, dy: number, e?: MouseEvent): void;
|
|
188
|
+
abort(): void;
|
|
189
|
+
getDragElement(retrieveOriginalElement?: boolean): VisuallyJSDOMElement;
|
|
190
|
+
stop(e?: MouseEvent, force?: boolean): void;
|
|
191
|
+
private _dispatch;
|
|
192
|
+
private resolveGrid;
|
|
193
|
+
/**
|
|
194
|
+
* Snap the given position to a grid, if the active selector has declared a grid.
|
|
195
|
+
* @param pos
|
|
196
|
+
*/
|
|
197
|
+
private toGrid;
|
|
198
|
+
setUseGhostProxy(val: boolean): void;
|
|
199
|
+
private _doConstrain;
|
|
200
|
+
_testFilter(e: any): boolean;
|
|
201
|
+
addFilter(f: Function | string, _exclude?: boolean): void;
|
|
202
|
+
removeFilter(f: Function | string): void;
|
|
203
|
+
clearAllFilters(): void;
|
|
204
|
+
addSelector(params: DragHandlerOptions, atStart?: boolean): void;
|
|
205
|
+
destroy(): void;
|
|
206
|
+
}
|
|
207
|
+
export type RevertFunction = (dragEl: BrowserElement, pos: PointXY) => boolean;
|
|
208
|
+
export interface CollicatOptions {
|
|
209
|
+
zoom?: number;
|
|
210
|
+
css?: Record<string, string>;
|
|
211
|
+
inputFilterSelector?: string;
|
|
212
|
+
positionGetter: GetPositionFunction;
|
|
213
|
+
getSize: GetSizeFunction;
|
|
214
|
+
positionSetter: SetPositionFunction;
|
|
215
|
+
}
|
|
216
|
+
/**
|
|
217
|
+
* Low level drag manager, manages a set of Drag objects.
|
|
218
|
+
* @internal
|
|
219
|
+
*/
|
|
220
|
+
export declare class Collicat {
|
|
221
|
+
eventManager: EventManager;
|
|
222
|
+
zoom: number;
|
|
223
|
+
css: Record<string, string>;
|
|
224
|
+
inputFilterSelector: string;
|
|
225
|
+
positionGetter: GetPositionFunction;
|
|
226
|
+
getSize: GetSizeFunction;
|
|
227
|
+
positionSetter: SetPositionFunction;
|
|
228
|
+
constructor(options: CollicatOptions);
|
|
229
|
+
getParentConstrainingRectangle(el: BrowserElement): Size;
|
|
230
|
+
private _prepareParams;
|
|
231
|
+
/**
|
|
232
|
+
* Gets the selector identifying which input elements to filter from drag events.
|
|
233
|
+
* @returns Current input filter selector.
|
|
234
|
+
*/
|
|
235
|
+
getInputFilterSelector(): string;
|
|
236
|
+
/**
|
|
237
|
+
* Sets the selector identifying which input elements to filter from drag events.
|
|
238
|
+
* @param selector Input filter selector to set.
|
|
239
|
+
* @returns Current instance; method may be chained.
|
|
240
|
+
*/
|
|
241
|
+
setInputFilterSelector(selector: string): this;
|
|
242
|
+
draggable(el: VisuallyJSDOMElement, params: DragParams): Drag;
|
|
243
|
+
destroyDraggable(el: VisuallyJSDOMElement): void;
|
|
244
|
+
}
|
|
245
|
+
export {};
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
import { BrowserElement } from "../../util";
|
|
2
|
+
import { BrowserUI } from "../../browser-visuallyjs-instance";
|
|
3
|
+
/**
|
|
4
|
+
* @internal
|
|
5
|
+
*/
|
|
6
|
+
export declare const ATTRIBUTE_RESET_SELECTION = "data-reset-selection";
|
|
7
|
+
/**
|
|
8
|
+
* Orientation for controls component: 'row' or 'column'
|
|
9
|
+
* @group Components
|
|
10
|
+
* @category Controls
|
|
11
|
+
* @constant
|
|
12
|
+
*/
|
|
13
|
+
export declare const ATTRIBUTE_CONTROLS_ORIENTATION = "data-vjs-orientation";
|
|
14
|
+
/** @internal */
|
|
15
|
+
export declare const ZOOM_TO_FIT_VIEW_BOX = "0 0 32 30";
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const ZOOM_TO_FIT_PATH = "M3.692 4.63c0-.53.4-.938.939-.938h5.215V0H4.708C2.13 0 0 2.054 0 4.63v5.216h3.692V4.631zM27.354 0h-5.2v3.692h5.17c.53 0 .984.4.984.939v5.215H32V4.631A4.624 4.624 0 0027.354 0zm.954 24.83c0 .532-.4.94-.939.94h-5.215v3.768h5.215c2.577 0 4.631-2.13 4.631-4.707v-5.139h-3.692v5.139zm-23.677.94c-.531 0-.939-.4-.939-.94v-5.138H0v5.139c0 2.577 2.13 4.707 4.708 4.707h5.138V25.77H4.631z";
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const LASSO_VIEW_BOX = "0 0 24 24";
|
|
20
|
+
/** @internal */
|
|
21
|
+
export declare const LASSO_PATH = "M18.2848192,17.5777124 L20.8535534,20.1464466 C21.0488155,20.3417088 21.0488155,20.6582912 20.8535534,20.8535534 C20.6582912,21.0488155 20.3417088,21.0488155 20.1464466,20.8535534 L17.5777124,18.2848192 L15.9160251,20.7773501 C15.6899572,21.116452 15.1749357,21.0571624 15.0318354,20.6755617 L12.0318354,12.6755617 C11.8811067,12.2736185 12.2736185,11.8811067 12.6755617,12.0318354 L20.6755617,15.0318354 C21.0571624,15.1749357 21.116452,15.6899572 20.7773501,15.9160251 L18.2848192,17.5777124 L18.2848192,17.5777124 Z M17.2312404,17.0782479 L19.4104716,15.6254271 L13.3544004,13.3544004 L15.6254271,19.4104716 L17.0782479,17.2312404 C17.0974475,17.2011742 17.1201804,17.1727128 17.1464466,17.1464466 C17.1727128,17.1201804 17.2011742,17.0974475 17.2312404,17.0782479 L17.2312404,17.0782479 Z M5.5,3 C5.77614237,3 6,3.22385763 6,3.5 C6,3.77614237 5.77614237,4 5.5,4 C4.67157288,4 4,4.67157288 4,5.5 C4,5.77614237 3.77614237,6 3.5,6 C3.22385763,6 3,5.77614237 3,5.5 C3,4.11928813 4.11928813,3 5.5,3 Z M8.5,4 C8.22385763,4 8,3.77614237 8,3.5 C8,3.22385763 8.22385763,3 8.5,3 L10.5,3 C10.7761424,3 11,3.22385763 11,3.5 C11,3.77614237 10.7761424,4 10.5,4 L8.5,4 Z M13.5,4 C13.2238576,4 13,3.77614237 13,3.5 C13,3.22385763 13.2238576,3 13.5,3 L15.5,3 C15.7761424,3 16,3.22385763 16,3.5 C16,3.77614237 15.7761424,4 15.5,4 L13.5,4 Z M8.5,21 C8.22385763,21 8,20.7761424 8,20.5 C8,20.2238576 8.22385763,20 8.5,20 L10.5,20 C10.7761424,20 11,20.2238576 11,20.5 C11,20.7761424 10.7761424,21 10.5,21 L8.5,21 Z M3,8.5 C3,8.22385763 3.22385763,8 3.5,8 C3.77614237,8 4,8.22385763 4,8.5 L4,10.5 C4,10.7761424 3.77614237,11 3.5,11 C3.22385763,11 3,10.7761424 3,10.5 L3,8.5 Z M3,13.5 C3,13.2238576 3.22385763,13 3.5,13 C3.77614237,13 4,13.2238576 4,13.5 L4,15.5 C4,15.7761424 3.77614237,16 3.5,16 C3.22385763,16 3,15.7761424 3,15.5 L3,13.5 Z M3,18.5 C3,18.2238576 3.22385763,18 3.5,18 C3.77614237,18 4,18.2238576 4,18.5 C4,19.3284271 4.67157288,20 5.5,20 C5.77614237,20 6,20.2238576 6,20.5 C6,20.7761424 5.77614237,21 5.5,21 C4.11928813,21 3,19.8807119 3,18.5 Z M21,10.5 C21,10.7761424 20.7761424,11 20.5,11 C20.2238576,11 20,10.7761424 20,10.5 L20,8.5 C20,8.22385763 20.2238576,8 20.5,8 C20.7761424,8 21,8.22385763 21,8.5 L21,10.5 Z M21,5.5 C21,5.77614237 20.7761424,6 20.5,6 C20.2238576,6 20,5.77614237 20,5.5 C20,4.67157288 19.3284271,4 18.5,4 C18.2238576,4 18,3.77614237 18,3.5 C18,3.22385763 18.2238576,3 18.5,3 C19.8807119,3 21,4.11928813 21,5.5 Z";
|
|
22
|
+
/** @internal */
|
|
23
|
+
export declare const VERTEX_DRAWING_VIEW_BOX = "0 0 24 24";
|
|
24
|
+
/** @internal */
|
|
25
|
+
export declare const VERTEX_DRAWING_PATH = "M 3.88,20.08 L 3.58,15.46 M 3.58,15.46 L 14.48,0.78 M 14.48,0.78 L 18.25,3.76 M 18.25,3.76 L 7.78,18.2 M 7.7,18.2 L 3.88,20.08 M 3.58,15.46 L 7.76,18.20 M 2,5 V 20.6 M 22,5 V 20.6 M 22,20.6 H 3.94 M 2,5 H 11.2 M 17.6,5 H 22";
|
|
26
|
+
/** @internal */
|
|
27
|
+
export declare const PAN_VIEW_BOX = "0 0 24 24";
|
|
28
|
+
/** @internal */
|
|
29
|
+
export declare const PAN_PATH = "M8 13v-7.5a1.5 1.5 0 0 1 3 0v6.5 M11 5.5v-2a1.5 1.5 0 1 1 3 0v8.5 M14 5.5a1.5 1.5 0 0 1 3 0v6.5 M17 7.5a1.5 1.5 0 0 1 3 0v8.5a6 6 0 0 1 -6 6h-2h.208a6 6 0 0 1 -5.012 -2.7a69.74 69.74 0 0 1 -.196 -.3c-.312 -.479 -1.407 -2.388 -3.286 -5.728a1.5 1.5 0 0 1 .536 -2.022a1.867 1.867 0 0 1 2.28 .28l1.47 1.47";
|
|
30
|
+
/** @internal */
|
|
31
|
+
export declare const RESET_SELECTION_VIEW_BOX = "0 0 24 24";
|
|
32
|
+
/** @internal */
|
|
33
|
+
export declare const RESET_SELECTION_PATH = "M2,5 V2 H5 M9,2 H11 M13,2 H15 M19,2 H22 V5 M22,9 V11 M22,13 V15 M22,19 V22 H19 M15,22 H13 M11,22 H9 M5,22 H2 V19 M2,15 V13 M2,11 V9 M9,9 L15,15 M15,9 L9,15";
|
|
34
|
+
/** @internal */
|
|
35
|
+
export declare const CLEAR_VIEW_BOX = "0 0 24 24";
|
|
36
|
+
/** @internal */
|
|
37
|
+
export declare const CLEAR_PATH = "M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z";
|
|
38
|
+
export declare const ZOOM_IN_OUT_VIEW_BOX = "0 0 32 32";
|
|
39
|
+
export declare const ZOOM_IN_PATH = "M 13 6 L 13 20 M 6 13 L 20 13 M 22,22 L 30,30 M1, 13 a 12,12 0 1,0 24,0 a 12,12 0 1,0 -24,0";
|
|
40
|
+
export declare const ZOOM_OUT_PATH = "M 6 13 L 20 13 M 22,22 L 30,30 M1, 13 a 12,12 0 1,0 24,0 a 12,12 0 1,0 -24,0";
|
|
41
|
+
/**
|
|
42
|
+
* Definition of a button in the controls component.
|
|
43
|
+
* @group Components
|
|
44
|
+
* @category Controls
|
|
45
|
+
*/
|
|
46
|
+
export interface ControlsComponentButton {
|
|
47
|
+
/**
|
|
48
|
+
* Button's id.
|
|
49
|
+
*/
|
|
50
|
+
id: string;
|
|
51
|
+
/**
|
|
52
|
+
* Optional UI mode to set when the button is pressed
|
|
53
|
+
*/
|
|
54
|
+
mode?: string;
|
|
55
|
+
/**
|
|
56
|
+
* css class to set on the button's DOM element
|
|
57
|
+
*/
|
|
58
|
+
class: string;
|
|
59
|
+
/**
|
|
60
|
+
* Set as the button's DOM element's label attribute (a tooltip, effectively)
|
|
61
|
+
*/
|
|
62
|
+
title: string;
|
|
63
|
+
/**
|
|
64
|
+
* Handler for clicks (taps) on this button.
|
|
65
|
+
* @param e
|
|
66
|
+
* @param id
|
|
67
|
+
*/
|
|
68
|
+
handler: (e: Event, id: string) => any;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* A list of buttons for the controls component.
|
|
72
|
+
* @group Components
|
|
73
|
+
* @category Controls
|
|
74
|
+
*/
|
|
75
|
+
export type ControlsComponentButtons = Array<ControlsComponentButton>;
|
|
76
|
+
/**
|
|
77
|
+
* Options for the controls component.
|
|
78
|
+
* @group Components
|
|
79
|
+
* @category Controls
|
|
80
|
+
*/
|
|
81
|
+
export interface ControlsComponentOptions {
|
|
82
|
+
/**
|
|
83
|
+
* Whether or not to show the clear button, defaults to true.
|
|
84
|
+
*/
|
|
85
|
+
clear?: boolean;
|
|
86
|
+
/**
|
|
87
|
+
* Whether or not to show undo/redo buttons, defaults to true
|
|
88
|
+
*/
|
|
89
|
+
undoRedo?: boolean;
|
|
90
|
+
/**
|
|
91
|
+
* Whether or not to show the zoom to extents button, defaults to true
|
|
92
|
+
*/
|
|
93
|
+
zoomToExtents?: boolean;
|
|
94
|
+
/**
|
|
95
|
+
* Whether or not to show zoom in/zoom out buttons. Defaults to false when the UI's zoom method is "wheel", and defaults to true when the UI's zoom method is "click".
|
|
96
|
+
*/
|
|
97
|
+
zoom?: boolean;
|
|
98
|
+
/**
|
|
99
|
+
* Optional message to show the user when prompting them to confirm they want to clear the dataset
|
|
100
|
+
*/
|
|
101
|
+
clearMessage?: string;
|
|
102
|
+
/**
|
|
103
|
+
* Optional extra buttons to add to the controls component.
|
|
104
|
+
*/
|
|
105
|
+
buttons?: ControlsComponentButtons;
|
|
106
|
+
/**
|
|
107
|
+
* Optional orientation for the controls. Defaults to 'row'.
|
|
108
|
+
*/
|
|
109
|
+
orientation?: 'row' | 'column';
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Simple component offering management of pan/zoom, lasso, undo/redo, and a few other features.
|
|
113
|
+
* @group Components
|
|
114
|
+
* @category Controls
|
|
115
|
+
*/
|
|
116
|
+
export declare class ControlsComponent {
|
|
117
|
+
private container;
|
|
118
|
+
private _templateRenderer;
|
|
119
|
+
private _rootElement;
|
|
120
|
+
private readonly _buttons;
|
|
121
|
+
private _ui;
|
|
122
|
+
private readonly _clearMessage;
|
|
123
|
+
private readonly _orientation;
|
|
124
|
+
private readonly _showClearButton;
|
|
125
|
+
private readonly _showUndoRedoButtons;
|
|
126
|
+
private readonly _showZoomToExtentsButton;
|
|
127
|
+
private readonly _showZoomButtons;
|
|
128
|
+
/**
|
|
129
|
+
* Constructor for ControlsComponent.
|
|
130
|
+
* @param container
|
|
131
|
+
* @param ui
|
|
132
|
+
* @param options
|
|
133
|
+
*/
|
|
134
|
+
constructor(container: BrowserElement, ui: BrowserUI, options?: ControlsComponentOptions);
|
|
135
|
+
private _draw;
|
|
136
|
+
private _attachEventListeners;
|
|
137
|
+
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BrowserElement } from "../../util";
|
|
2
|
+
import { UICore } from "../../../ui";
|
|
3
|
+
export interface CopyPasteControlsComponentOptions {
|
|
4
|
+
ui: UICore<BrowserElement>;
|
|
5
|
+
}
|
|
6
|
+
export declare class CopyPasteControlsComponent {
|
|
7
|
+
ui: UICore<BrowserElement>;
|
|
8
|
+
constructor(options: CopyPasteControlsComponentOptions);
|
|
9
|
+
}
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Assigned to the Pan mode button
|
|
3
|
+
* @cssClass
|
|
4
|
+
* @context controls
|
|
5
|
+
*/
|
|
6
|
+
export declare const CLASS_CONTROLS_PAN_MODE = "vjs-pan-mode";
|
|
7
|
+
/**
|
|
8
|
+
* Assigned to the Zoom to fit button
|
|
9
|
+
* @cssClass
|
|
10
|
+
* @context controls
|
|
11
|
+
*/
|
|
12
|
+
export declare const CLASS_CONTROLS_ZOOM_TO_FIT = "vjs-zoom-to-fit";
|
|
13
|
+
/**
|
|
14
|
+
* Assigned to the Zoom in button
|
|
15
|
+
* @cssClass
|
|
16
|
+
* @context controls
|
|
17
|
+
*/
|
|
18
|
+
export declare const CLASS_CONTROLS_ZOOM_IN = "vjs-zoom-in";
|
|
19
|
+
/**
|
|
20
|
+
* Assigned to the Zoom out button
|
|
21
|
+
* @cssClass
|
|
22
|
+
* @context controls
|
|
23
|
+
*/
|
|
24
|
+
export declare const CLASS_CONTROLS_ZOOM_OUT = "vjs-zoom-out";
|
|
25
|
+
/**
|
|
26
|
+
* Assigned to the Select mode button
|
|
27
|
+
* @cssClass
|
|
28
|
+
* @context controls
|
|
29
|
+
*/
|
|
30
|
+
export declare const CLASS_CONTROLS_SELECT_MODE = "vjs-select-mode";
|
|
31
|
+
/**
|
|
32
|
+
* Assigned to the Undo button
|
|
33
|
+
* @cssClass
|
|
34
|
+
* @context controls
|
|
35
|
+
*/
|
|
36
|
+
export declare const CLASS_CONTROLS_UNDO = "vjs-undo";
|
|
37
|
+
/**
|
|
38
|
+
* Assigned to the Redo button
|
|
39
|
+
* @cssClass
|
|
40
|
+
* @context controls
|
|
41
|
+
*/
|
|
42
|
+
export declare const CLASS_CONTROLS_REDO = "vjs-redo";
|
|
43
|
+
/**
|
|
44
|
+
* Assigned to the Clear dataset button
|
|
45
|
+
* @cssClass
|
|
46
|
+
* @context controls
|
|
47
|
+
*/
|
|
48
|
+
export declare const CLASS_CONTROLS_CLEAR = "vjs-clear-dataset";
|
|
49
|
+
/**
|
|
50
|
+
* Assigned to either the pan/select mode button, when that mode is active.
|
|
51
|
+
* @cssClass
|
|
52
|
+
* @context controls
|
|
53
|
+
*/
|
|
54
|
+
export declare const CLASS_SELECTED_MODE = "vjs-selected-mode";
|
|
55
|
+
/**
|
|
56
|
+
* This class is written to the container element for a controls component.
|
|
57
|
+
* @cssClass
|
|
58
|
+
* @context controls
|
|
59
|
+
*/
|
|
60
|
+
export declare const CLASS_CONTROLS = "vjs-controls";
|
|
61
|
+
/**
|
|
62
|
+
* This class is written to the container element for an export controls component.
|
|
63
|
+
* @cssClass
|
|
64
|
+
* @context controls
|
|
65
|
+
*/
|
|
66
|
+
export declare const CLASS_EXPORT_CONTROLS = "vjs-export-controls";
|
|
67
|
+
/**
|
|
68
|
+
* Assigned to the reset selection button
|
|
69
|
+
* @cssClass
|
|
70
|
+
* @context controls
|
|
71
|
+
*/
|
|
72
|
+
export declare const CLASS_CONTROLS_RESET_SELECTION = "vjs-controls-reset-selection";
|
|
73
|
+
/**
|
|
74
|
+
* This class is written to the container element for copy/paste controls component.
|
|
75
|
+
* @group Components
|
|
76
|
+
* @category Copy Paste Controls
|
|
77
|
+
* @internal
|
|
78
|
+
*/
|
|
79
|
+
export declare const CLASS_COPY_PASTE_CONTROLS = "vjs-copy-paste-controls";
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { PointXY } from "../../../core";
|
|
2
|
+
import { BrowserElement } from "../../util";
|
|
3
|
+
import { ImageExportUIOptions, SvgExportUIOptions } from "../../svg-export";
|
|
4
|
+
import { BrowserUI } from "../../browser-visuallyjs-instance";
|
|
5
|
+
/**
|
|
6
|
+
* Options for the SvgExportComponent
|
|
7
|
+
* @group Components
|
|
8
|
+
* @category Export Controls
|
|
9
|
+
*/
|
|
10
|
+
export interface SvgExportComponentOptions {
|
|
11
|
+
/**
|
|
12
|
+
* Whether or not to show a label in front of the buttons. Defaults to true.
|
|
13
|
+
*/
|
|
14
|
+
showLabel?: boolean;
|
|
15
|
+
/**
|
|
16
|
+
* What to show in the label, if visible. Defaults to "Export:".
|
|
17
|
+
*/
|
|
18
|
+
label?: string;
|
|
19
|
+
/**
|
|
20
|
+
* Optional margins to apply to both SVG and image exports. Will not override any margins specified in svgOptions or imageOptions.
|
|
21
|
+
*/
|
|
22
|
+
margins?: PointXY;
|
|
23
|
+
/**
|
|
24
|
+
* Options for SVG exports.
|
|
25
|
+
*/
|
|
26
|
+
svgOptions?: SvgExportUIOptions;
|
|
27
|
+
/**
|
|
28
|
+
* Options for image exports.
|
|
29
|
+
*/
|
|
30
|
+
imageOptions?: ImageExportUIOptions;
|
|
31
|
+
/**
|
|
32
|
+
* Defaults to true.
|
|
33
|
+
*/
|
|
34
|
+
allowSvgExport?: boolean;
|
|
35
|
+
/**
|
|
36
|
+
* Defaults to true.
|
|
37
|
+
*/
|
|
38
|
+
allowPngExport?: boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Defaults to true.
|
|
41
|
+
*/
|
|
42
|
+
allowJpgExport?: boolean;
|
|
43
|
+
}
|
|
44
|
+
/**
|
|
45
|
+
* Simple component offering buttons for export of SVG, PNG or JPG from a UI that has an SVG container
|
|
46
|
+
* @group Components
|
|
47
|
+
* @category Export Controls
|
|
48
|
+
*/
|
|
49
|
+
export declare class SvgExportComponent {
|
|
50
|
+
private ui;
|
|
51
|
+
private _templateRenderer;
|
|
52
|
+
private readonly _rootElement;
|
|
53
|
+
/**
|
|
54
|
+
* Constructor for SvgExportComponent.
|
|
55
|
+
* @param container
|
|
56
|
+
* @param ui
|
|
57
|
+
* @param options
|
|
58
|
+
*/
|
|
59
|
+
constructor(container: BrowserElement, ui: BrowserUI, options?: SvgExportComponentOptions);
|
|
60
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { EdgePropertyMappings } from "../../../ui";
|
|
2
|
+
import { ObjectData } from "../../../core";
|
|
3
|
+
import { BrowserUI } from "../../browser-visuallyjs-instance";
|
|
4
|
+
/**
|
|
5
|
+
* CSS class added to the root element of an edge type picker
|
|
6
|
+
* @group Components
|
|
7
|
+
* @category Edge Type Picker
|
|
8
|
+
*/
|
|
9
|
+
export declare const CLASS_EDGE_TYPE_PICKER = "vjs-edge-type-picker";
|
|
10
|
+
/**
|
|
11
|
+
* CSS class added to the currently selected element in an edge type picker
|
|
12
|
+
* @group Components
|
|
13
|
+
* @category Edge Type Picker
|
|
14
|
+
*/
|
|
15
|
+
export declare const CLASS_EDGE_TYPE_PICKER_SELECTED = "vjs-edge-type-picker-selected";
|
|
16
|
+
/**
|
|
17
|
+
* Helper class that renders a set of edge styles to the DOM and offers a callback method for when one is selected
|
|
18
|
+
* via a mouse click.
|
|
19
|
+
* @group Components
|
|
20
|
+
* @category Edge Type Picker
|
|
21
|
+
*/
|
|
22
|
+
export declare class EdgeTypePicker {
|
|
23
|
+
private ui;
|
|
24
|
+
private _container;
|
|
25
|
+
private _mappings;
|
|
26
|
+
private _currentValue;
|
|
27
|
+
private _onSelect;
|
|
28
|
+
constructor(ui: BrowserUI, _container: HTMLElement, _mappings: EdgePropertyMappings, _currentValue: string, _onSelect: (property: string, value: string) => any);
|
|
29
|
+
private entryMap;
|
|
30
|
+
render(property: string, data: ObjectData): void;
|
|
31
|
+
/**
|
|
32
|
+
* @internal
|
|
33
|
+
* @param property
|
|
34
|
+
* @param value
|
|
35
|
+
*/
|
|
36
|
+
select(property: string, value: string): void;
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './edge-type-picker';
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { VanillaInspector } from "./vanilla-inspector";
|
|
2
|
+
/**
|
|
3
|
+
* Assigned to the root element of a color picker
|
|
4
|
+
* @cssClass
|
|
5
|
+
* @context color-picker
|
|
6
|
+
*/
|
|
7
|
+
export declare const CLASS_COLOR_PICKER = "vjs-color-picker";
|
|
8
|
+
/**
|
|
9
|
+
* Assigned to the element of a color picker that contains swatches
|
|
10
|
+
* @cssClass
|
|
11
|
+
* @context color-picker
|
|
12
|
+
*/
|
|
13
|
+
export declare const CLASS_COLOR_PICKER_SWATCHES = "vjs-color-picker-swatches";
|
|
14
|
+
/**
|
|
15
|
+
* Assigned to each swatch element in a color picker
|
|
16
|
+
* @cssClass
|
|
17
|
+
* @context color-picker
|
|
18
|
+
*/
|
|
19
|
+
export declare const CLASS_COLOR_PICKER_SWATCH = "vjs-color-picker-swatch";
|
|
20
|
+
/**
|
|
21
|
+
* The HTML element identifying the color picker.
|
|
22
|
+
* @group Components
|
|
23
|
+
* @category Inspector
|
|
24
|
+
*/
|
|
25
|
+
export declare const COLOR_PICKER_ELEMENT = "vjs-color";
|
|
26
|
+
/**
|
|
27
|
+
* The attribute used to tell a color picker the max number of colors to show.
|
|
28
|
+
* @group Components
|
|
29
|
+
* @category Inspector
|
|
30
|
+
*/
|
|
31
|
+
export declare const ATTRIBUTE_COLOR_PICKER_MAX_COLORS = "vjs-max-colors";
|
|
32
|
+
export declare function createColorPickerTag(inspector: VanillaInspector, contextVariableName?: string): void;
|