@eclipse-glsp/client 2.1.0-next.301 → 2.1.0-next.303
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/glsp-sprotty.css +1 -0
- package/css/helper-lines.css +33 -0
- package/lib/base/auto-complete/index.d.ts +21 -0
- package/lib/base/auto-complete/index.d.ts.map +1 -0
- package/lib/base/auto-complete/index.js +37 -0
- package/lib/base/auto-complete/index.js.map +1 -0
- package/lib/base/feedback/index.d.ts +20 -0
- package/lib/base/feedback/index.d.ts.map +1 -0
- package/lib/base/feedback/index.js +36 -0
- package/lib/base/feedback/index.js.map +1 -0
- package/lib/base/focus/index.d.ts +18 -0
- package/lib/base/focus/index.d.ts.map +1 -0
- package/lib/base/focus/index.js +34 -0
- package/lib/base/focus/index.js.map +1 -0
- package/lib/base/index.d.ts +32 -0
- package/lib/base/index.d.ts.map +1 -0
- package/lib/base/index.js +48 -0
- package/lib/base/index.js.map +1 -0
- package/lib/base/model/index.d.ts +20 -0
- package/lib/base/model/index.d.ts.map +1 -0
- package/lib/base/model/index.js +36 -0
- package/lib/base/model/index.js.map +1 -0
- package/lib/base/tool-manager/index.d.ts +18 -0
- package/lib/base/tool-manager/index.d.ts.map +1 -0
- package/lib/base/tool-manager/index.js +34 -0
- package/lib/base/tool-manager/index.js.map +1 -0
- package/lib/base/view/index.d.ts +19 -0
- package/lib/base/view/index.d.ts.map +1 -0
- package/lib/base/view/index.js +35 -0
- package/lib/base/view/index.js.map +1 -0
- package/lib/default-modules.js +4 -4
- package/lib/default-modules.js.map +1 -1
- package/lib/features/accessibility/edge-autocomplete/index.d.ts +20 -0
- package/lib/features/accessibility/edge-autocomplete/index.d.ts.map +1 -0
- package/lib/features/accessibility/edge-autocomplete/index.js +36 -0
- package/lib/features/accessibility/edge-autocomplete/index.js.map +1 -0
- package/lib/features/accessibility/element-navigation/index.d.ts +22 -0
- package/lib/features/accessibility/element-navigation/index.d.ts.map +1 -0
- package/lib/features/accessibility/element-navigation/index.js +38 -0
- package/lib/features/accessibility/element-navigation/index.js.map +1 -0
- package/lib/features/accessibility/focus-tracker/index.d.ts +18 -0
- package/lib/features/accessibility/focus-tracker/index.d.ts.map +1 -0
- package/lib/features/accessibility/focus-tracker/index.js +34 -0
- package/lib/features/accessibility/focus-tracker/index.js.map +1 -0
- package/lib/features/accessibility/index.d.ts +31 -0
- package/lib/features/accessibility/index.d.ts.map +1 -0
- package/lib/features/accessibility/index.js +47 -0
- package/lib/features/accessibility/index.js.map +1 -0
- package/lib/features/accessibility/key-shortcut/index.d.ts +19 -0
- package/lib/features/accessibility/key-shortcut/index.d.ts.map +1 -0
- package/lib/features/accessibility/key-shortcut/index.js +35 -0
- package/lib/features/accessibility/key-shortcut/index.js.map +1 -0
- package/lib/features/accessibility/keyboard-grid/index.d.ts +21 -0
- package/lib/features/accessibility/keyboard-grid/index.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-grid/index.js +37 -0
- package/lib/features/accessibility/keyboard-grid/index.js.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/index.d.ts +22 -0
- package/lib/features/accessibility/keyboard-pointer/index.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-pointer/index.js +38 -0
- package/lib/features/accessibility/keyboard-pointer/index.js.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/index.d.ts +18 -0
- package/lib/features/accessibility/keyboard-tool-palette/index.d.ts.map +1 -0
- package/lib/features/accessibility/keyboard-tool-palette/index.js +34 -0
- package/lib/features/accessibility/keyboard-tool-palette/index.js.map +1 -0
- package/lib/features/accessibility/move-zoom/index.d.ts +19 -0
- package/lib/features/accessibility/move-zoom/index.d.ts.map +1 -0
- package/lib/features/accessibility/move-zoom/index.js +35 -0
- package/lib/features/accessibility/move-zoom/index.js.map +1 -0
- package/lib/features/accessibility/resize-key-tool/index.d.ts +19 -0
- package/lib/features/accessibility/resize-key-tool/index.d.ts.map +1 -0
- package/lib/features/accessibility/resize-key-tool/index.js +35 -0
- package/lib/features/accessibility/resize-key-tool/index.js.map +1 -0
- package/lib/features/accessibility/search/index.d.ts +19 -0
- package/lib/features/accessibility/search/index.d.ts.map +1 -0
- package/lib/features/accessibility/search/index.js +35 -0
- package/lib/features/accessibility/search/index.js.map +1 -0
- package/lib/features/accessibility/toast/index.d.ts +19 -0
- package/lib/features/accessibility/toast/index.d.ts.map +1 -0
- package/lib/features/accessibility/toast/index.js +35 -0
- package/lib/features/accessibility/toast/index.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/index.d.ts +20 -0
- package/lib/features/accessibility/view-key-tools/index.d.ts.map +1 -0
- package/lib/features/accessibility/view-key-tools/index.js +36 -0
- package/lib/features/accessibility/view-key-tools/index.js.map +1 -0
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts +6 -3
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js +12 -17
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js.map +1 -1
- package/lib/features/bounds/bounds-module.d.ts.map +1 -1
- package/lib/features/bounds/bounds-module.js +3 -1
- package/lib/features/bounds/bounds-module.js.map +1 -1
- package/lib/features/bounds/index.d.ts +24 -0
- package/lib/features/bounds/index.d.ts.map +1 -0
- package/lib/features/bounds/index.js +40 -0
- package/lib/features/bounds/index.js.map +1 -0
- package/lib/features/bounds/local-bounds.d.ts +2 -1
- package/lib/features/bounds/local-bounds.d.ts.map +1 -1
- package/lib/features/bounds/local-bounds.js +7 -0
- package/lib/features/bounds/local-bounds.js.map +1 -1
- package/lib/features/bounds/set-bounds-feedback-command.d.ts +1 -1
- package/lib/features/bounds/set-bounds-feedback-command.d.ts.map +1 -1
- package/lib/features/bounds/set-bounds-feedback-command.js +7 -7
- package/lib/features/bounds/set-bounds-feedback-command.js.map +1 -1
- package/lib/features/change-bounds/index.d.ts +21 -0
- package/lib/features/change-bounds/index.d.ts.map +1 -0
- package/lib/features/change-bounds/index.js +37 -0
- package/lib/features/change-bounds/index.js.map +1 -0
- package/lib/features/change-bounds/model.d.ts +4 -0
- package/lib/features/change-bounds/model.d.ts.map +1 -1
- package/lib/features/change-bounds/model.js +14 -2
- package/lib/features/change-bounds/model.js.map +1 -1
- package/lib/features/change-bounds/point-position-updater.d.ts +63 -0
- package/lib/features/change-bounds/point-position-updater.d.ts.map +1 -0
- package/lib/features/change-bounds/point-position-updater.js +87 -0
- package/lib/features/change-bounds/point-position-updater.js.map +1 -0
- package/lib/features/change-bounds/position-snapper.d.ts +28 -0
- package/lib/features/change-bounds/position-snapper.d.ts.map +1 -0
- package/lib/features/change-bounds/position-snapper.js +88 -0
- package/lib/features/change-bounds/position-snapper.js.map +1 -0
- package/lib/features/change-bounds/snap.d.ts +19 -42
- package/lib/features/change-bounds/snap.d.ts.map +1 -1
- package/lib/features/change-bounds/snap.js +9 -92
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/change-bounds/snap.spec.js +6 -5
- package/lib/features/change-bounds/snap.spec.js.map +1 -1
- package/lib/features/command-palette/index.d.ts +19 -0
- package/lib/features/command-palette/index.d.ts.map +1 -0
- package/lib/features/command-palette/index.js +35 -0
- package/lib/features/command-palette/index.js.map +1 -0
- package/lib/features/context-menu/index.d.ts +20 -0
- package/lib/features/context-menu/index.d.ts.map +1 -0
- package/lib/features/context-menu/index.js +36 -0
- package/lib/features/context-menu/index.js.map +1 -0
- package/lib/features/copy-paste/index.d.ts +20 -0
- package/lib/features/copy-paste/index.d.ts.map +1 -0
- package/lib/features/copy-paste/index.js +36 -0
- package/lib/features/copy-paste/index.js.map +1 -0
- package/lib/features/decoration/index.d.ts +18 -0
- package/lib/features/decoration/index.d.ts.map +1 -0
- package/lib/features/decoration/index.js +34 -0
- package/lib/features/decoration/index.js.map +1 -0
- package/lib/features/element-template/index.d.ts +20 -0
- package/lib/features/element-template/index.d.ts.map +1 -0
- package/lib/features/element-template/index.js +36 -0
- package/lib/features/element-template/index.js.map +1 -0
- package/lib/features/element-template/mouse-tracking-element-position-listener.d.ts +6 -3
- package/lib/features/element-template/mouse-tracking-element-position-listener.d.ts.map +1 -1
- package/lib/features/element-template/mouse-tracking-element-position-listener.js +23 -18
- package/lib/features/element-template/mouse-tracking-element-position-listener.js.map +1 -1
- package/lib/features/export/index.d.ts +19 -0
- package/lib/features/export/index.d.ts.map +1 -0
- package/lib/features/export/index.js +35 -0
- package/lib/features/export/index.js.map +1 -0
- package/lib/features/helper-lines/helper-line-feedback.d.ts +64 -0
- package/lib/features/helper-lines/helper-line-feedback.d.ts.map +1 -0
- package/lib/features/helper-lines/helper-line-feedback.js +218 -0
- package/lib/features/helper-lines/helper-line-feedback.js.map +1 -0
- package/lib/features/helper-lines/helper-line-manager-default.d.ts +46 -0
- package/lib/features/helper-lines/helper-line-manager-default.d.ts.map +1 -0
- package/lib/features/helper-lines/helper-line-manager-default.js +122 -0
- package/lib/features/helper-lines/helper-line-manager-default.js.map +1 -0
- package/lib/features/helper-lines/helper-line-manager.d.ts +21 -0
- package/lib/features/helper-lines/helper-line-manager.d.ts.map +1 -0
- package/lib/features/helper-lines/helper-line-manager.js +3 -0
- package/lib/features/helper-lines/helper-line-manager.js.map +1 -0
- package/lib/features/helper-lines/helper-line-module.d.ts +18 -0
- package/lib/features/helper-lines/helper-line-module.d.ts.map +1 -0
- package/lib/features/helper-lines/helper-line-module.js +39 -0
- package/lib/features/helper-lines/helper-line-module.js.map +1 -0
- package/lib/features/helper-lines/index.d.ts +22 -0
- package/lib/features/helper-lines/index.d.ts.map +1 -0
- package/lib/features/helper-lines/index.js +38 -0
- package/lib/features/helper-lines/index.js.map +1 -0
- package/lib/features/helper-lines/model.d.ts +62 -0
- package/lib/features/helper-lines/model.d.ts.map +1 -0
- package/lib/features/helper-lines/model.js +123 -0
- package/lib/features/helper-lines/model.js.map +1 -0
- package/lib/features/helper-lines/view.d.ts +25 -0
- package/lib/features/helper-lines/view.d.ts.map +1 -0
- package/lib/features/helper-lines/view.js +52 -0
- package/lib/features/helper-lines/view.js.map +1 -0
- package/lib/features/hints/index.d.ts +19 -0
- package/lib/features/hints/index.d.ts.map +1 -0
- package/lib/features/hints/index.js +35 -0
- package/lib/features/hints/index.js.map +1 -0
- package/lib/features/hover/index.d.ts +18 -0
- package/lib/features/hover/index.d.ts.map +1 -0
- package/lib/features/hover/index.js +34 -0
- package/lib/features/hover/index.js.map +1 -0
- package/lib/features/index.d.ts +43 -0
- package/lib/features/index.d.ts.map +1 -0
- package/lib/features/index.js +59 -0
- package/lib/features/index.js.map +1 -0
- package/lib/features/label-edit/index.d.ts +19 -0
- package/lib/features/label-edit/index.d.ts.map +1 -0
- package/lib/features/label-edit/index.js +35 -0
- package/lib/features/label-edit/index.js.map +1 -0
- package/lib/features/layout/index.d.ts +18 -0
- package/lib/features/layout/index.d.ts.map +1 -0
- package/lib/features/layout/index.js +34 -0
- package/lib/features/layout/index.js.map +1 -0
- package/lib/features/navigation/index.d.ts +19 -0
- package/lib/features/navigation/index.d.ts.map +1 -0
- package/lib/features/navigation/index.js +35 -0
- package/lib/features/navigation/index.js.map +1 -0
- package/lib/features/reconnect/index.d.ts +17 -0
- package/lib/features/reconnect/index.d.ts.map +1 -0
- package/lib/features/reconnect/index.js +33 -0
- package/lib/features/reconnect/index.js.map +1 -0
- package/lib/features/routing/index.d.ts +18 -0
- package/lib/features/routing/index.d.ts.map +1 -0
- package/lib/features/routing/index.js +34 -0
- package/lib/features/routing/index.js.map +1 -0
- package/lib/features/save/index.d.ts +18 -0
- package/lib/features/save/index.d.ts.map +1 -0
- package/lib/features/save/index.js +34 -0
- package/lib/features/save/index.js.map +1 -0
- package/lib/features/select/index.d.ts +19 -0
- package/lib/features/select/index.d.ts.map +1 -0
- package/lib/features/select/index.js +35 -0
- package/lib/features/select/index.js.map +1 -0
- package/lib/features/source-model-watcher/index.d.ts +18 -0
- package/lib/features/source-model-watcher/index.d.ts.map +1 -0
- package/lib/features/source-model-watcher/index.js +34 -0
- package/lib/features/source-model-watcher/index.js.map +1 -0
- package/lib/features/source-model-watcher/{source-model-wacher-module.d.ts → source-model-watcher-module.d.ts} +1 -1
- package/lib/features/source-model-watcher/source-model-watcher-module.d.ts.map +1 -0
- package/lib/features/source-model-watcher/{source-model-wacher-module.js → source-model-watcher-module.js} +1 -1
- package/lib/features/source-model-watcher/source-model-watcher-module.js.map +1 -0
- package/lib/features/status/index.d.ts +18 -0
- package/lib/features/status/index.d.ts.map +1 -0
- package/lib/features/status/index.js +34 -0
- package/lib/features/status/index.js.map +1 -0
- package/lib/features/svg-metadata/index.d.ts +18 -0
- package/lib/features/svg-metadata/index.d.ts.map +1 -0
- package/lib/features/svg-metadata/index.js +34 -0
- package/lib/features/svg-metadata/index.js.map +1 -0
- package/lib/features/tool-palette/index.d.ts +18 -0
- package/lib/features/tool-palette/index.d.ts.map +1 -0
- package/lib/features/tool-palette/index.js +34 -0
- package/lib/features/tool-palette/index.js.map +1 -0
- package/lib/features/tools/change-bounds/change-bounds-tool-feedback.d.ts +28 -12
- package/lib/features/tools/change-bounds/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool-feedback.js +91 -51
- package/lib/features/tools/change-bounds/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tools/change-bounds/{change-boounds-tool-module.d.ts → change-bounds-tool-module.d.ts} +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool-module.d.ts.map +1 -0
- package/lib/features/tools/change-bounds/{change-boounds-tool-module.js → change-bounds-tool-module.js} +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool-module.js.map +1 -0
- package/lib/features/tools/change-bounds/change-bounds-tool.d.ts +4 -4
- package/lib/features/tools/change-bounds/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds/change-bounds-tool.js +11 -13
- package/lib/features/tools/change-bounds/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/change-bounds/index.d.ts +20 -0
- package/lib/features/tools/change-bounds/index.d.ts.map +1 -0
- package/lib/features/tools/change-bounds/index.js +36 -0
- package/lib/features/tools/change-bounds/index.js.map +1 -0
- package/lib/features/tools/deletion/index.d.ts +18 -0
- package/lib/features/tools/deletion/index.d.ts.map +1 -0
- package/lib/features/tools/deletion/index.js +34 -0
- package/lib/features/tools/deletion/index.js.map +1 -0
- package/lib/features/tools/edge-creation/index.d.ts +21 -0
- package/lib/features/tools/edge-creation/index.d.ts.map +1 -0
- package/lib/features/tools/edge-creation/index.js +37 -0
- package/lib/features/tools/edge-creation/index.js.map +1 -0
- package/lib/features/tools/edge-edit/edge-edit-tool-feedback.d.ts +20 -6
- package/lib/features/tools/edge-edit/edge-edit-tool-feedback.d.ts.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-tool-feedback.js +10 -14
- package/lib/features/tools/edge-edit/edge-edit-tool-feedback.js.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-tool.d.ts +18 -2
- package/lib/features/tools/edge-edit/edge-edit-tool.d.ts.map +1 -1
- package/lib/features/tools/edge-edit/edge-edit-tool.js +6 -6
- package/lib/features/tools/edge-edit/edge-edit-tool.js.map +1 -1
- package/lib/features/tools/edge-edit/index.d.ts +19 -0
- package/lib/features/tools/edge-edit/index.d.ts.map +1 -0
- package/lib/features/tools/edge-edit/index.js +35 -0
- package/lib/features/tools/edge-edit/index.js.map +1 -0
- package/lib/features/tools/index.d.ts +24 -0
- package/lib/features/tools/index.d.ts.map +1 -0
- package/lib/features/tools/index.js +40 -0
- package/lib/features/tools/index.js.map +1 -0
- package/lib/features/tools/marquee-selection/index.d.ts +23 -0
- package/lib/features/tools/marquee-selection/index.d.ts.map +1 -0
- package/lib/features/tools/marquee-selection/index.js +39 -0
- package/lib/features/tools/marquee-selection/index.js.map +1 -0
- package/lib/features/tools/marquee-selection/marquee-tool.d.ts +20 -1
- package/lib/features/tools/marquee-selection/marquee-tool.d.ts.map +1 -1
- package/lib/features/tools/marquee-selection/marquee-tool.js +19 -7
- package/lib/features/tools/marquee-selection/marquee-tool.js.map +1 -1
- package/lib/features/tools/node-creation/index.d.ts +18 -0
- package/lib/features/tools/node-creation/index.d.ts.map +1 -0
- package/lib/features/tools/node-creation/index.js +34 -0
- package/lib/features/tools/node-creation/index.js.map +1 -0
- package/lib/features/tools/node-creation/node-creation-tool.d.ts +3 -2
- package/lib/features/tools/node-creation/node-creation-tool.d.ts.map +1 -1
- package/lib/features/tools/node-creation/node-creation-tool.js +11 -15
- package/lib/features/tools/node-creation/node-creation-tool.js.map +1 -1
- package/lib/features/undo-redo/index.d.ts +18 -0
- package/lib/features/undo-redo/index.d.ts.map +1 -0
- package/lib/features/undo-redo/index.js +34 -0
- package/lib/features/undo-redo/index.js.map +1 -0
- package/lib/features/validation/index.d.ts +20 -0
- package/lib/features/validation/index.d.ts.map +1 -0
- package/lib/features/validation/index.js +36 -0
- package/lib/features/validation/index.js.map +1 -0
- package/lib/features/viewport/index.d.ts +20 -0
- package/lib/features/viewport/index.d.ts.map +1 -0
- package/lib/features/viewport/index.js +36 -0
- package/lib/features/viewport/index.js.map +1 -0
- package/lib/index.d.ts +5 -139
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +19 -157
- package/lib/index.js.map +1 -1
- package/lib/re-exports.d.ts +17 -0
- package/lib/re-exports.d.ts.map +1 -0
- package/lib/re-exports.js +33 -0
- package/lib/re-exports.js.map +1 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/utils/geometry-util.d.ts +38 -0
- package/lib/utils/geometry-util.d.ts.map +1 -0
- package/lib/utils/geometry-util.js +103 -0
- package/lib/utils/geometry-util.js.map +1 -0
- package/lib/utils/gmodel-util.d.ts +3 -1
- package/lib/utils/gmodel-util.d.ts.map +1 -1
- package/lib/utils/gmodel-util.js +27 -1
- package/lib/utils/gmodel-util.js.map +1 -1
- package/lib/utils/html-utils.d.ts +1 -15
- package/lib/utils/html-utils.d.ts.map +1 -1
- package/lib/utils/html-utils.js +6 -1
- package/lib/utils/html-utils.js.map +1 -1
- package/lib/utils/index.d.ts +23 -0
- package/lib/utils/index.d.ts.map +1 -0
- package/lib/utils/index.js +39 -0
- package/lib/utils/index.js.map +1 -0
- package/lib/utils/viewpoint-util.d.ts +1 -0
- package/lib/utils/viewpoint-util.d.ts.map +1 -1
- package/lib/utils/viewpoint-util.js +8 -1
- package/lib/utils/viewpoint-util.js.map +1 -1
- package/lib/views/index.d.ts +2 -2
- package/lib/views/index.d.ts.map +1 -1
- package/lib/views/index.js +2 -2
- package/lib/views/index.js.map +1 -1
- package/package.json +3 -3
- package/src/base/auto-complete/index.ts +20 -0
- package/src/base/feedback/index.ts +19 -0
- package/src/base/focus/index.ts +17 -0
- package/src/base/index.ts +31 -0
- package/src/base/model/index.ts +19 -0
- package/src/base/tool-manager/index.ts +17 -0
- package/src/base/view/index.ts +18 -0
- package/src/default-modules.ts +2 -2
- package/src/features/accessibility/edge-autocomplete/index.ts +19 -0
- package/src/features/accessibility/element-navigation/index.ts +21 -0
- package/src/features/accessibility/focus-tracker/index.ts +17 -0
- package/src/features/accessibility/index.ts +30 -0
- package/src/features/accessibility/key-shortcut/index.ts +18 -0
- package/src/features/accessibility/keyboard-grid/index.ts +20 -0
- package/src/features/accessibility/keyboard-pointer/index.ts +21 -0
- package/src/features/accessibility/keyboard-tool-palette/index.ts +17 -0
- package/src/features/accessibility/move-zoom/index.ts +18 -0
- package/src/features/accessibility/resize-key-tool/index.ts +18 -0
- package/src/features/accessibility/search/index.ts +18 -0
- package/src/features/accessibility/toast/index.ts +18 -0
- package/src/features/accessibility/view-key-tools/index.ts +19 -0
- package/src/features/accessibility/view-key-tools/movement-key-tool.ts +15 -19
- package/src/features/bounds/bounds-module.ts +5 -2
- package/src/features/bounds/index.ts +23 -0
- package/src/features/bounds/local-bounds.ts +7 -1
- package/src/features/bounds/set-bounds-feedback-command.ts +1 -1
- package/src/features/change-bounds/index.ts +20 -0
- package/src/features/change-bounds/model.ts +18 -2
- package/src/features/change-bounds/point-position-updater.ts +120 -0
- package/src/features/change-bounds/position-snapper.ts +69 -0
- package/src/features/change-bounds/snap.spec.ts +3 -2
- package/src/features/change-bounds/snap.ts +8 -82
- package/src/features/command-palette/index.ts +18 -0
- package/src/features/context-menu/index.ts +19 -0
- package/src/features/copy-paste/index.ts +19 -0
- package/src/features/decoration/index.ts +17 -0
- package/src/features/element-template/index.ts +19 -0
- package/src/features/element-template/mouse-tracking-element-position-listener.ts +29 -22
- package/src/features/export/index.ts +18 -0
- package/src/features/helper-lines/helper-line-feedback.ts +269 -0
- package/src/features/helper-lines/helper-line-manager-default.ts +114 -0
- package/src/features/helper-lines/helper-line-manager.ts +21 -0
- package/src/features/helper-lines/helper-line-module.ts +47 -0
- package/src/features/helper-lines/index.ts +21 -0
- package/src/features/helper-lines/model.ts +140 -0
- package/src/features/helper-lines/view.tsx +60 -0
- package/src/features/hints/index.ts +18 -0
- package/src/features/hover/index.ts +17 -0
- package/src/features/index.ts +42 -0
- package/src/features/label-edit/index.ts +18 -0
- package/src/features/layout/index.ts +17 -0
- package/src/features/navigation/index.ts +18 -0
- package/src/features/reconnect/index.ts +16 -0
- package/src/features/routing/index.ts +17 -0
- package/src/features/save/index.ts +17 -0
- package/src/features/select/index.ts +18 -0
- package/src/features/source-model-watcher/index.ts +17 -0
- package/src/features/status/index.ts +17 -0
- package/src/features/svg-metadata/index.ts +17 -0
- package/src/features/tool-palette/index.ts +17 -0
- package/src/features/tools/change-bounds/change-bounds-tool-feedback.ts +99 -69
- package/src/features/tools/change-bounds/change-bounds-tool.ts +12 -11
- package/src/features/tools/change-bounds/index.ts +19 -0
- package/src/features/tools/deletion/index.ts +17 -0
- package/src/features/tools/edge-creation/index.ts +20 -0
- package/src/features/tools/edge-edit/edge-edit-tool-feedback.ts +20 -21
- package/src/features/tools/edge-edit/edge-edit-tool.ts +5 -6
- package/src/features/tools/edge-edit/index.ts +18 -0
- package/src/features/tools/index.ts +23 -0
- package/src/features/tools/marquee-selection/index.ts +22 -0
- package/src/features/tools/marquee-selection/marquee-tool.ts +14 -4
- package/src/features/tools/node-creation/index.ts +17 -0
- package/src/features/tools/node-creation/node-creation-tool.ts +9 -13
- package/src/features/undo-redo/index.ts +17 -0
- package/src/features/validation/index.ts +19 -0
- package/src/features/viewport/index.ts +19 -0
- package/src/index.ts +5 -147
- package/src/re-exports.ts +16 -0
- package/src/utils/geometry-util.ts +101 -0
- package/src/utils/gmodel-util.ts +41 -10
- package/src/utils/html-utils.ts +6 -0
- package/src/utils/index.ts +22 -0
- package/src/utils/viewpoint-util.ts +8 -0
- package/src/views/index.ts +2 -2
- package/lib/features/source-model-watcher/source-model-wacher-module.d.ts.map +0 -1
- package/lib/features/source-model-watcher/source-model-wacher-module.js.map +0 -1
- package/lib/features/tools/change-bounds/change-boounds-tool-module.d.ts.map +0 -1
- package/lib/features/tools/change-bounds/change-boounds-tool-module.js.map +0 -1
- /package/src/features/source-model-watcher/{source-model-wacher-module.ts → source-model-watcher-module.ts} +0 -0
- /package/src/features/tools/change-bounds/{change-boounds-tool-module.ts → change-bounds-tool-module.ts} +0 -0
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './change-bounds-tool-feedback';
|
|
17
|
+
export * from './change-bounds-tool-module';
|
|
18
|
+
export * from './change-bounds-tool';
|
|
19
|
+
export * from './view';
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './delete-tool';
|
|
17
|
+
export * from './deletion-tool-module';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './dangling-edge-feedback';
|
|
17
|
+
export * from './edege-creation-module';
|
|
18
|
+
export * from './edge-creation-tool-feedback';
|
|
19
|
+
export * from './edge-creation-tool';
|
|
20
|
+
export * from './view';
|
|
@@ -13,8 +13,6 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { inject, injectable } from 'inversify';
|
|
17
|
-
import { VNode } from 'snabbdom';
|
|
18
16
|
import {
|
|
19
17
|
Action,
|
|
20
18
|
AnchorComputerRegistry,
|
|
@@ -24,14 +22,13 @@ import {
|
|
|
24
22
|
Disposable,
|
|
25
23
|
EdgeRouterRegistry,
|
|
26
24
|
ElementMove,
|
|
27
|
-
|
|
25
|
+
GConnectableElement,
|
|
26
|
+
GModelElement,
|
|
27
|
+
GRoutingHandle,
|
|
28
28
|
MouseListener,
|
|
29
29
|
MoveAction,
|
|
30
30
|
Point,
|
|
31
31
|
PolylineEdgeRouter,
|
|
32
|
-
GConnectableElement,
|
|
33
|
-
GModelElement,
|
|
34
|
-
GRoutingHandle,
|
|
35
32
|
SwitchEditModeAction,
|
|
36
33
|
SwitchEditModeCommand,
|
|
37
34
|
TYPES,
|
|
@@ -42,14 +39,17 @@ import {
|
|
|
42
39
|
isConnectable,
|
|
43
40
|
isSelected
|
|
44
41
|
} from '@eclipse-glsp/sprotty';
|
|
42
|
+
import { inject, injectable } from 'inversify';
|
|
45
43
|
import { IFeedbackActionDispatcher } from '../../../base/feedback/feedback-action-dispatcher';
|
|
46
44
|
import { FeedbackCommand } from '../../../base/feedback/feedback-command';
|
|
47
45
|
import { forEachElement, isRoutable, isRoutingHandle } from '../../../utils/gmodel-util';
|
|
48
46
|
import { getAbsolutePosition, toAbsoluteBounds } from '../../../utils/viewpoint-util';
|
|
49
|
-
import {
|
|
47
|
+
import { PositionSnapper } from '../../change-bounds/position-snapper';
|
|
48
|
+
import { useSnap } from '../../change-bounds/snap';
|
|
50
49
|
import { addReconnectHandles, removeReconnectHandles } from '../../reconnect/model';
|
|
51
50
|
import { FeedbackEdgeEnd, feedbackEdgeEndId, feedbackEdgeId } from '../edge-creation/dangling-edge-feedback';
|
|
52
51
|
import { FeedbackEdgeEndMovingMouseListener } from '../edge-creation/edge-creation-tool-feedback';
|
|
52
|
+
import { PointPositionUpdater } from '../../change-bounds/point-position-updater';
|
|
53
53
|
|
|
54
54
|
/**
|
|
55
55
|
* RECONNECT HANDLES FEEDBACK
|
|
@@ -198,7 +198,10 @@ export class FeedbackEdgeTargetMovingMouseListener extends FeedbackEdgeEndMoving
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
export class FeedbackEdgeSourceMovingMouseListener extends MouseListener implements Disposable {
|
|
201
|
-
constructor(
|
|
201
|
+
constructor(
|
|
202
|
+
protected anchorRegistry: AnchorComputerRegistry,
|
|
203
|
+
protected feedbackDispatcher: IFeedbackActionDispatcher
|
|
204
|
+
) {
|
|
202
205
|
super();
|
|
203
206
|
}
|
|
204
207
|
|
|
@@ -254,9 +257,12 @@ export class FeedbackEdgeSourceMovingMouseListener extends MouseListener impleme
|
|
|
254
257
|
export class FeedbackEdgeRouteMovingMouseListener extends MouseListener {
|
|
255
258
|
protected pointPositionUpdater: PointPositionUpdater;
|
|
256
259
|
|
|
257
|
-
constructor(
|
|
260
|
+
constructor(
|
|
261
|
+
protected positionSnapper: PositionSnapper,
|
|
262
|
+
protected edgeRouterRegistry?: EdgeRouterRegistry
|
|
263
|
+
) {
|
|
258
264
|
super();
|
|
259
|
-
this.pointPositionUpdater = new PointPositionUpdater(
|
|
265
|
+
this.pointPositionUpdater = new PointPositionUpdater(positionSnapper);
|
|
260
266
|
}
|
|
261
267
|
|
|
262
268
|
override mouseDown(target: GModelElement, event: MouseEvent): Action[] {
|
|
@@ -265,7 +271,7 @@ export class FeedbackEdgeRouteMovingMouseListener extends MouseListener {
|
|
|
265
271
|
const routingHandle = findParentByFeature(target, isRoutingHandle);
|
|
266
272
|
if (routingHandle !== undefined) {
|
|
267
273
|
result.push(SwitchRoutingModeAction.create({ elementsToActivate: [target.id] }));
|
|
268
|
-
this.pointPositionUpdater.updateLastDragPosition(
|
|
274
|
+
this.pointPositionUpdater.updateLastDragPosition(event);
|
|
269
275
|
} else {
|
|
270
276
|
this.pointPositionUpdater.resetPosition();
|
|
271
277
|
}
|
|
@@ -278,9 +284,9 @@ export class FeedbackEdgeRouteMovingMouseListener extends MouseListener {
|
|
|
278
284
|
if (event.buttons === 0) {
|
|
279
285
|
return this.mouseUp(target, event);
|
|
280
286
|
}
|
|
281
|
-
const positionUpdate = this.pointPositionUpdater.updatePosition(target,
|
|
287
|
+
const positionUpdate = this.pointPositionUpdater.updatePosition(target, event);
|
|
282
288
|
if (positionUpdate) {
|
|
283
|
-
const moveActions = this.handleMoveOnClient(target, positionUpdate,
|
|
289
|
+
const moveActions = this.handleMoveOnClient(target, positionUpdate, useSnap(event));
|
|
284
290
|
result.push(...moveActions);
|
|
285
291
|
}
|
|
286
292
|
return result;
|
|
@@ -322,10 +328,7 @@ export class FeedbackEdgeRouteMovingMouseListener extends MouseListener {
|
|
|
322
328
|
}
|
|
323
329
|
|
|
324
330
|
protected getSnappedHandlePosition(element: GRoutingHandle, point: Point, isSnap: boolean): Point {
|
|
325
|
-
|
|
326
|
-
return this.snapper.snap(point, element);
|
|
327
|
-
}
|
|
328
|
-
return point;
|
|
331
|
+
return this.positionSnapper?.snapPosition(point, element, isSnap);
|
|
329
332
|
}
|
|
330
333
|
|
|
331
334
|
protected getHandlePosition(handle: GRoutingHandle): Point | undefined {
|
|
@@ -345,10 +348,6 @@ export class FeedbackEdgeRouteMovingMouseListener extends MouseListener {
|
|
|
345
348
|
this.pointPositionUpdater.resetPosition();
|
|
346
349
|
return [];
|
|
347
350
|
}
|
|
348
|
-
|
|
349
|
-
override decorate(vnode: VNode, _element: GModelElement): VNode {
|
|
350
|
-
return vnode;
|
|
351
|
-
}
|
|
352
351
|
}
|
|
353
352
|
|
|
354
353
|
/**
|
|
@@ -13,7 +13,6 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { inject, injectable, optional } from 'inversify';
|
|
17
16
|
import {
|
|
18
17
|
Action,
|
|
19
18
|
AnchorComputerRegistry,
|
|
@@ -21,22 +20,22 @@ import {
|
|
|
21
20
|
Connectable,
|
|
22
21
|
Disposable,
|
|
23
22
|
EdgeRouterRegistry,
|
|
24
|
-
ISnapper,
|
|
25
|
-
ReconnectEdgeOperation,
|
|
26
23
|
GModelElement,
|
|
27
24
|
GModelRoot,
|
|
28
25
|
GRoutableElement,
|
|
29
26
|
GRoutingHandle,
|
|
30
|
-
|
|
27
|
+
ReconnectEdgeOperation,
|
|
31
28
|
canEditRouting,
|
|
32
29
|
findParentByFeature,
|
|
33
30
|
isConnectable,
|
|
34
31
|
isSelected
|
|
35
32
|
} from '@eclipse-glsp/sprotty';
|
|
33
|
+
import { inject, injectable, optional } from 'inversify';
|
|
36
34
|
import { DragAwareMouseListener } from '../../../base/drag-aware-mouse-listener';
|
|
37
35
|
import { CursorCSS, cursorFeedbackAction } from '../../../base/feedback/css-feedback';
|
|
38
36
|
import { ISelectionListener, SelectionService } from '../../../base/selection-service';
|
|
39
37
|
import { calcElementAndRoutingPoints, isRoutable, isRoutingHandle } from '../../../utils/gmodel-util';
|
|
38
|
+
import { PositionSnapper } from '../../change-bounds/position-snapper';
|
|
40
39
|
import { GReconnectHandle, isReconnectHandle, isReconnectable, isSourceRoutingHandle, isTargetRoutingHandle } from '../../reconnect/model';
|
|
41
40
|
import { BaseEditTool } from '../base-tools';
|
|
42
41
|
import { DrawFeedbackEdgeAction, RemoveFeedbackEdgeAction, feedbackEdgeId } from '../edge-creation/dangling-edge-feedback';
|
|
@@ -57,7 +56,7 @@ export class EdgeEditTool extends BaseEditTool {
|
|
|
57
56
|
@inject(SelectionService) protected selectionService: SelectionService;
|
|
58
57
|
@inject(AnchorComputerRegistry) protected anchorRegistry: AnchorComputerRegistry;
|
|
59
58
|
@inject(EdgeRouterRegistry) @optional() readonly edgeRouterRegistry?: EdgeRouterRegistry;
|
|
60
|
-
@inject(
|
|
59
|
+
@inject(PositionSnapper) readonly positionSnapper: PositionSnapper;
|
|
61
60
|
|
|
62
61
|
protected feedbackEdgeSourceMovingListener: FeedbackEdgeSourceMovingMouseListener;
|
|
63
62
|
protected feedbackEdgeTargetMovingListener: FeedbackEdgeTargetMovingMouseListener;
|
|
@@ -74,7 +73,7 @@ export class EdgeEditTool extends BaseEditTool {
|
|
|
74
73
|
// install feedback move mouse listener for client-side move updates
|
|
75
74
|
this.feedbackEdgeSourceMovingListener = new FeedbackEdgeSourceMovingMouseListener(this.anchorRegistry, this.feedbackDispatcher);
|
|
76
75
|
this.feedbackEdgeTargetMovingListener = new FeedbackEdgeTargetMovingMouseListener(this.anchorRegistry, this.feedbackDispatcher);
|
|
77
|
-
this.feedbackMovingListener = new FeedbackEdgeRouteMovingMouseListener(this.
|
|
76
|
+
this.feedbackMovingListener = new FeedbackEdgeRouteMovingMouseListener(this.positionSnapper, this.edgeRouterRegistry);
|
|
78
77
|
|
|
79
78
|
this.toDisposeOnDisable.push(
|
|
80
79
|
Disposable.create(() => this.edgeEditListener.reset()),
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './edge-edit-module';
|
|
17
|
+
export * from './edge-edit-tool-feedback';
|
|
18
|
+
export * from './edge-edit-tool';
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './base-tools';
|
|
17
|
+
export * from './change-bounds';
|
|
18
|
+
export * from './deletion';
|
|
19
|
+
export * from './edge-creation';
|
|
20
|
+
export * from './edge-edit';
|
|
21
|
+
export * from './marquee-selection';
|
|
22
|
+
export * from './node-creation';
|
|
23
|
+
export * from './tool-focus-loss-module';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './marquee-behavior';
|
|
17
|
+
export * from './marquee-mouse-tool';
|
|
18
|
+
export * from './marquee-selection-module';
|
|
19
|
+
export * from './marquee-tool-feedback';
|
|
20
|
+
export * from './marquee-tool';
|
|
21
|
+
export * from './model';
|
|
22
|
+
export * from './view';
|
|
@@ -13,8 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import {
|
|
17
|
-
import {
|
|
16
|
+
import { Action, GModelElement, KeyListener } from '@eclipse-glsp/sprotty';
|
|
17
|
+
import { inject, injectable } from 'inversify';
|
|
18
|
+
import { SelectionService } from '../../../base/selection-service';
|
|
18
19
|
import { EnableToolsAction } from '../../../base/tool-manager/tool';
|
|
19
20
|
import { BaseEditTool } from '../base-tools';
|
|
20
21
|
import { MarqueeMouseTool } from './marquee-mouse-tool';
|
|
@@ -23,21 +24,30 @@ import { MarqueeMouseTool } from './marquee-mouse-tool';
|
|
|
23
24
|
export class MarqueeTool extends BaseEditTool {
|
|
24
25
|
static ID = 'glsp.marquee-tool';
|
|
25
26
|
|
|
26
|
-
protected
|
|
27
|
+
@inject(SelectionService) protected selectionService: SelectionService;
|
|
28
|
+
|
|
29
|
+
protected marqueeKeyListener: MarqueeKeyListener;
|
|
27
30
|
|
|
28
31
|
get id(): string {
|
|
29
32
|
return MarqueeTool.ID;
|
|
30
33
|
}
|
|
31
34
|
|
|
32
35
|
enable(): void {
|
|
36
|
+
if (!this.marqueeKeyListener) {
|
|
37
|
+
this.marqueeKeyListener = new MarqueeKeyListener(this.selectionService);
|
|
38
|
+
}
|
|
33
39
|
this.toDisposeOnDisable.push(this.keyTool.registerListener(this.marqueeKeyListener));
|
|
34
40
|
}
|
|
35
41
|
}
|
|
36
42
|
|
|
37
43
|
@injectable()
|
|
38
44
|
export class MarqueeKeyListener extends KeyListener {
|
|
45
|
+
constructor(protected selectionService: SelectionService) {
|
|
46
|
+
super();
|
|
47
|
+
}
|
|
48
|
+
|
|
39
49
|
override keyDown(_element: GModelElement, event: KeyboardEvent): Action[] {
|
|
40
|
-
if (event.shiftKey) {
|
|
50
|
+
if (event.shiftKey && !this.selectionService.hasSelectedElements()) {
|
|
41
51
|
return [EnableToolsAction.create([MarqueeMouseTool.ID])];
|
|
42
52
|
}
|
|
43
53
|
return [];
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './node-creation-module';
|
|
17
|
+
export * from './node-creation-tool';
|
|
@@ -18,7 +18,6 @@ import {
|
|
|
18
18
|
CreateNodeOperation,
|
|
19
19
|
GModelElement,
|
|
20
20
|
GNode,
|
|
21
|
-
ISnapper,
|
|
22
21
|
Point,
|
|
23
22
|
TYPES,
|
|
24
23
|
TriggerNodeCreationAction,
|
|
@@ -32,9 +31,9 @@ import { CSS_GHOST_ELEMENT, CSS_HIDDEN, CursorCSS, cursorFeedbackAction } from '
|
|
|
32
31
|
import { EnableDefaultToolsAction } from '../../../base/tool-manager/tool';
|
|
33
32
|
import { getAbsolutePosition } from '../../../utils/viewpoint-util';
|
|
34
33
|
import { IMovementRestrictor } from '../../change-bounds/movement-restrictor';
|
|
34
|
+
import { PositionSnapper } from '../../change-bounds/position-snapper';
|
|
35
35
|
import { AddTemplateElementsAction, getTemplateElementId } from '../../element-template/add-template-element';
|
|
36
36
|
import { MouseTrackingElementPositionListener, PositioningTool } from '../../element-template/mouse-tracking-element-position-listener';
|
|
37
|
-
import { RemoveTemplateElementsAction } from '../../element-template/remove-template-element';
|
|
38
37
|
import { Containable, isContainable } from '../../hints/model';
|
|
39
38
|
import { BaseCreationTool } from '../base-tools';
|
|
40
39
|
|
|
@@ -44,8 +43,8 @@ export class NodeCreationTool extends BaseCreationTool<TriggerNodeCreationAction
|
|
|
44
43
|
|
|
45
44
|
protected isTriggerAction = TriggerNodeCreationAction.is;
|
|
46
45
|
|
|
47
|
-
@inject(TYPES.ISnapper) @optional() readonly snapper?: ISnapper;
|
|
48
46
|
@inject(TYPES.IMovementRestrictor) @optional() readonly movementRestrictor?: IMovementRestrictor;
|
|
47
|
+
@inject(PositionSnapper) readonly positionSnapper: PositionSnapper;
|
|
49
48
|
|
|
50
49
|
get id(): string {
|
|
51
50
|
return NodeCreationTool.ID;
|
|
@@ -59,8 +58,7 @@ export class NodeCreationTool extends BaseCreationTool<TriggerNodeCreationAction
|
|
|
59
58
|
this.toDisposeOnDisable.push(
|
|
60
59
|
this.registerFeedback(
|
|
61
60
|
[AddTemplateElementsAction.create({ templates: [ghostElement.template], addClasses: [CSS_HIDDEN, CSS_GHOST_ELEMENT] })],
|
|
62
|
-
ghostElement
|
|
63
|
-
[RemoveTemplateElementsAction.create({ templates: [ghostElement.template] })]
|
|
61
|
+
ghostElement
|
|
64
62
|
),
|
|
65
63
|
this.mouseTool.registerListener(trackingListener)
|
|
66
64
|
);
|
|
@@ -119,14 +117,12 @@ export class NodeCreationToolMouseListener extends DragAwareMouseListener {
|
|
|
119
117
|
return trackedPosition;
|
|
120
118
|
}
|
|
121
119
|
}
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
}
|
|
129
|
-
return location;
|
|
120
|
+
const location = getAbsolutePosition(target, event);
|
|
121
|
+
|
|
122
|
+
// Create a 0-bounds proxy element for snapping
|
|
123
|
+
const elementProxy = new GNode();
|
|
124
|
+
elementProxy.size = { width: 0, height: 0 };
|
|
125
|
+
return this.tool.positionSnapper.snapPosition(location, elementProxy);
|
|
130
126
|
}
|
|
131
127
|
|
|
132
128
|
override mouseOver(target: GModelElement, event: MouseEvent): Action[] {
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './undo-redo-key-listener';
|
|
17
|
+
export * from './undo-redo-module';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './issue-marker';
|
|
17
|
+
export * from './marker-navigator';
|
|
18
|
+
export * from './validate';
|
|
19
|
+
export * from './validation-modules';
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './glsp-scroll-mouse-listener';
|
|
17
|
+
export * from './reposition';
|
|
18
|
+
export * from './viewport-handler';
|
|
19
|
+
export * from './viewport-modules';
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -13,153 +13,11 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
|
|
17
|
-
export * from '@eclipse-glsp/sprotty';
|
|
18
|
-
|
|
19
|
-
// ------------------ Base ------------------
|
|
20
|
-
export * from './base/action-dispatcher';
|
|
21
|
-
export * from './base/action-handler-registry';
|
|
22
|
-
export * from './base/args-feature';
|
|
23
|
-
export * from './base/auto-complete/auto-complete-actions';
|
|
24
|
-
export * from './base/auto-complete/auto-complete-widget';
|
|
25
|
-
export * from './base/auto-complete/validation-decorator';
|
|
26
|
-
export * from './base/command-stack';
|
|
27
|
-
export * from './base/drag-aware-mouse-listener';
|
|
28
|
-
export * from './base/editor-context-service';
|
|
29
|
-
export * from './base/feedback/feedback-action-dispatcher';
|
|
30
|
-
export * from './base/feedback/feedback-command';
|
|
31
|
-
export * from './base/feedback/update-model-command';
|
|
32
|
-
export * from './base/focus/focus-state-change-action';
|
|
33
|
-
export * from './base/focus/focus-tracker';
|
|
34
|
-
export * from './base/model/diagram-loader';
|
|
35
|
-
export * from './base/model/glsp-model-source';
|
|
36
|
-
export * from './base/model/model-initialization-constraint';
|
|
37
|
-
export * from './base/model/model-registry';
|
|
38
|
-
export * from './base/ranked';
|
|
39
|
-
export * from './base/selection-clearing-mouse-listener';
|
|
40
|
-
export * from './base/selection-service';
|
|
41
|
-
export * from './base/tool-manager/tool';
|
|
42
|
-
export * from './base/tool-manager/tool-manager';
|
|
43
|
-
export * from './base/view/mouse-tool';
|
|
44
|
-
export * from './base/view/view-registry';
|
|
45
|
-
|
|
46
|
-
// ------------------ Features ------------------
|
|
47
|
-
export * from './base/feedback/css-feedback';
|
|
48
|
-
export * from './base/view/mouse-tool';
|
|
49
|
-
export * from './features/accessibility/element-navigation/diagram-navigation-tool';
|
|
50
|
-
export * from './features/accessibility/focus-tracker/focus-tracker-tool';
|
|
51
|
-
export * from './features/accessibility/key-shortcut/accessible-key-shortcut-tool';
|
|
52
|
-
export * from './features/accessibility/resize-key-tool/resize-key-tool';
|
|
53
|
-
export * from './features/accessibility/toast/toast-tool';
|
|
54
|
-
export * from './features/accessibility/view-key-tools/deselect-key-tool';
|
|
55
|
-
export * from './features/accessibility/view-key-tools/movement-key-tool';
|
|
56
|
-
export * from './features/accessibility/view-key-tools/zoom-key-tool';
|
|
57
|
-
export * from './features/bounds/freeform-layout';
|
|
58
|
-
export * from './features/bounds/glsp-hidden-bounds-updater';
|
|
59
|
-
export * from './features/bounds/hbox-layout';
|
|
60
|
-
export * from './features/bounds/layouter';
|
|
61
|
-
export * from './features/bounds/vbox-layout';
|
|
62
|
-
export * from './features/change-bounds/model';
|
|
63
|
-
export * from './features/change-bounds/movement-restrictor';
|
|
64
|
-
export * from './features/change-bounds/snap';
|
|
65
|
-
export * from './features/command-palette/command-palette-tool';
|
|
66
|
-
export * from './features/command-palette/server-command-palette-provider';
|
|
67
|
-
export * from './features/context-menu/delete-element-context-menu';
|
|
68
|
-
export * from './features/context-menu/glsp-context-menu-mouse-listener';
|
|
69
|
-
export * from './features/context-menu/server-context-menu-provider';
|
|
70
|
-
export * from './features/copy-paste/copy-paste-context-menu';
|
|
71
|
-
export * from './features/copy-paste/copy-paste-handler';
|
|
72
|
-
export * from './features/decoration/decoration-placer';
|
|
73
|
-
export * from './features/element-template/add-template-element';
|
|
74
|
-
export * from './features/element-template/mouse-tracking-element-position-listener';
|
|
75
|
-
export * from './features/element-template/remove-template-element';
|
|
76
|
-
export * from './features/export/glsp-svg-exporter';
|
|
77
|
-
export * from './features/hints/model';
|
|
78
|
-
export * from './features/hints/type-hint-provider';
|
|
79
|
-
export * from './features/hover/hover';
|
|
80
|
-
export * from './features/label-edit/edit-label-tool';
|
|
81
|
-
export * from './features/label-edit/edit-label-validator';
|
|
82
|
-
export * from './features/layout/layout-elements-action';
|
|
83
|
-
export * from './features/navigation/navigation-action-handler';
|
|
84
|
-
export * from './features/navigation/navigation-target-resolver';
|
|
85
|
-
export * from './features/reconnect/model';
|
|
86
|
-
export * from './features/routing/glsp-manhattan-edge-router';
|
|
87
|
-
export * from './features/save/save-keylistener';
|
|
88
|
-
export * from './features/select/select-feedback-command';
|
|
89
|
-
export * from './features/select/select-mouse-listener';
|
|
90
|
-
export * from './features/source-model-watcher/source-model-changed-action-handler';
|
|
91
|
-
export * from './features/status/status-overlay';
|
|
92
|
-
export * from './features/svg-metadata/metadata-placer';
|
|
93
|
-
export * from './features/tool-palette/tool-palette';
|
|
94
|
-
export * from './features/tools/base-tools';
|
|
95
|
-
export * from './features/tools/change-bounds/change-bounds-tool';
|
|
96
|
-
export * from './features/tools/change-bounds/change-bounds-tool-feedback';
|
|
97
|
-
export * from './features/tools/change-bounds/view';
|
|
98
|
-
export * from './features/tools/deletion/delete-tool';
|
|
99
|
-
export * from './features/tools/edge-creation/edge-creation-tool';
|
|
100
|
-
export * from './features/tools/edge-creation/edge-creation-tool-feedback';
|
|
101
|
-
export * from './features/tools/edge-creation/view';
|
|
102
|
-
export * from './features/tools/edge-edit/edge-edit-tool';
|
|
103
|
-
export * from './features/tools/edge-edit/edge-edit-tool-feedback';
|
|
104
|
-
export * from './features/tools/marquee-selection/marquee-behavior';
|
|
105
|
-
export * from './features/tools/marquee-selection/marquee-mouse-tool';
|
|
106
|
-
export * from './features/tools/marquee-selection/marquee-tool';
|
|
107
|
-
export * from './features/tools/marquee-selection/marquee-tool-feedback';
|
|
108
|
-
export * from './features/tools/marquee-selection/model';
|
|
109
|
-
export * from './features/tools/marquee-selection/view';
|
|
110
|
-
export * from './features/tools/node-creation/node-creation-tool';
|
|
111
|
-
export * from './features/undo-redo/undo-redo-key-listener';
|
|
112
|
-
export * from './features/validation/issue-marker';
|
|
113
|
-
export * from './features/validation/marker-navigator';
|
|
114
|
-
export * from './features/validation/validate';
|
|
115
|
-
export * from './features/viewport/glsp-scroll-mouse-listener';
|
|
116
|
-
|
|
117
|
-
// ------------------ Misc ------------------
|
|
16
|
+
export * from './base';
|
|
118
17
|
export * from './default-modules';
|
|
18
|
+
export * from './features';
|
|
119
19
|
export * from './model';
|
|
20
|
+
export * from './re-exports';
|
|
120
21
|
export * from './standalone-modules';
|
|
121
|
-
export * from './utils
|
|
122
|
-
export * from './utils/gmodel-util';
|
|
123
|
-
export * from './utils/html-utils';
|
|
124
|
-
export * from './utils/layout-utils';
|
|
125
|
-
export * from './utils/marker';
|
|
126
|
-
export * from './utils/viewpoint-util';
|
|
22
|
+
export * from './utils';
|
|
127
23
|
export * from './views';
|
|
128
|
-
// ------------------ DI Modules ------------------
|
|
129
|
-
export * from './base/default.module';
|
|
130
|
-
export * from './features/accessibility/accessibility-module';
|
|
131
|
-
export * from './features/accessibility/element-navigation/element-navigation-module';
|
|
132
|
-
export * from './features/accessibility/focus-tracker/focus-tracker-module';
|
|
133
|
-
export * from './features/accessibility/move-zoom/move-zoom-module';
|
|
134
|
-
export * from './features/accessibility/resize-key-tool/resize-key-module';
|
|
135
|
-
export * from './features/accessibility/search/search-palette-module';
|
|
136
|
-
export * from './features/accessibility/toast/toast-module';
|
|
137
|
-
export * from './features/accessibility/view-key-tools/view-key-tools-module';
|
|
138
|
-
export * from './features/command-palette/command-palette-module';
|
|
139
|
-
export * from './features/context-menu/context-menu-module';
|
|
140
|
-
export * from './features/copy-paste/copy-paste-modules';
|
|
141
|
-
export * from './features/decoration/decoration-module';
|
|
142
|
-
export * from './features/element-template/element-template-module';
|
|
143
|
-
export * from './features/export/export-modules';
|
|
144
|
-
export * from './features/hints/type-hints-module';
|
|
145
|
-
export * from './features/hover/hover-module';
|
|
146
|
-
export * from './features/label-edit/label-edit-module';
|
|
147
|
-
export * from './features/layout/layout-module';
|
|
148
|
-
export * from './features/navigation/navigation-module';
|
|
149
|
-
export * from './features/routing/routing-module';
|
|
150
|
-
export * from './features/save/save-module';
|
|
151
|
-
export * from './features/select/select-module';
|
|
152
|
-
export * from './features/source-model-watcher/source-model-wacher-module';
|
|
153
|
-
export * from './features/status/status-module';
|
|
154
|
-
export * from './features/svg-metadata/svg-metadata-module';
|
|
155
|
-
export * from './features/tool-palette/tool-palette-module';
|
|
156
|
-
export * from './features/tools/change-bounds/change-boounds-tool-module';
|
|
157
|
-
export * from './features/tools/deletion/deletion-tool-module';
|
|
158
|
-
export * from './features/tools/edge-creation/edege-creation-module';
|
|
159
|
-
export * from './features/tools/edge-edit/edge-edit-module';
|
|
160
|
-
export * from './features/tools/marquee-selection/marquee-selection-module';
|
|
161
|
-
export * from './features/tools/node-creation/node-creation-module';
|
|
162
|
-
export * from './features/tools/tool-focus-loss-module';
|
|
163
|
-
export * from './features/undo-redo/undo-redo-module';
|
|
164
|
-
export * from './features/validation/validation-modules';
|
|
165
|
-
export * from './features/viewport/viewport-modules';
|