@eclipse-glsp/client 1.1.0-next.698b9de.254 → 1.1.0-next.69a77b0.259
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/lib/base/action-dispatcher.d.ts.map +1 -1
- package/lib/base/action-dispatcher.js +5 -3
- package/lib/base/action-dispatcher.js.map +1 -1
- package/lib/base/actions/focus-change-action.js +1 -1
- package/lib/base/actions/focus-change-action.js.map +1 -1
- package/lib/base/auto-complete/auto-complete-actions.js +1 -1
- package/lib/base/auto-complete/auto-complete-actions.js.map +1 -1
- package/lib/base/auto-complete/validation-decorator.js +1 -1
- package/lib/base/auto-complete/validation-decorator.js.map +1 -1
- package/lib/base/command-stack.d.ts +17 -2
- package/lib/base/command-stack.d.ts.map +1 -1
- package/lib/base/command-stack.js +43 -3
- package/lib/base/command-stack.js.map +1 -1
- package/lib/base/di.config.d.ts.map +1 -1
- package/lib/base/di.config.js +21 -3
- package/lib/base/di.config.js.map +1 -1
- package/lib/base/drag-aware-mouse-listener.d.ts +2 -2
- package/lib/base/drag-aware-mouse-listener.d.ts.map +1 -1
- package/lib/base/drag-aware-mouse-listener.js.map +1 -1
- package/lib/base/editor-context-service.d.ts +10 -7
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +27 -10
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/{features/tool-feedback → base/feedback}/css-feedback.d.ts +1 -1
- package/lib/base/feedback/css-feedback.d.ts.map +1 -0
- package/lib/{features/tool-feedback → base/feedback}/css-feedback.js +5 -6
- package/lib/base/feedback/css-feedback.js.map +1 -0
- package/lib/{features/tool-feedback → base/feedback}/feedback-action-dispatcher.d.ts +11 -9
- package/lib/base/feedback/feedback-action-dispatcher.d.ts.map +1 -0
- package/lib/{features/tool-feedback → base/feedback}/feedback-action-dispatcher.js +26 -20
- package/lib/base/feedback/feedback-action-dispatcher.js.map +1 -0
- package/lib/{features/tool-feedback/model.d.ts → base/feedback/feedback-command.d.ts} +1 -1
- package/lib/base/feedback/feedback-command.d.ts.map +1 -0
- package/lib/{features/tool-feedback/model.js → base/feedback/feedback-command.js} +1 -1
- package/lib/base/feedback/feedback-command.js.map +1 -0
- package/lib/base/{model → feedback}/update-model-command.d.ts +3 -15
- package/lib/base/feedback/update-model-command.d.ts.map +1 -0
- package/lib/base/{model → feedback}/update-model-command.js +3 -27
- package/lib/base/feedback/update-model-command.js.map +1 -0
- package/lib/base/focus-tracker.js +2 -3
- package/lib/base/focus-tracker.js.map +1 -1
- package/lib/base/model/model-registry.js +2 -3
- package/lib/base/model/model-registry.js.map +1 -1
- package/lib/base/model-initialization-constraint.js +4 -6
- package/lib/base/model-initialization-constraint.js.map +1 -1
- package/lib/base/ranked.d.ts +34 -0
- package/lib/base/ranked.d.ts.map +1 -0
- package/lib/base/ranked.js +38 -0
- package/lib/base/ranked.js.map +1 -0
- package/lib/base/selection-clearing-mouse-listener.js +2 -3
- package/lib/base/selection-clearing-mouse-listener.js.map +1 -1
- package/lib/{features/select → base}/selection-service.d.ts +34 -13
- package/lib/base/selection-service.d.ts.map +1 -0
- package/lib/{features/select → base}/selection-service.js +73 -29
- package/lib/base/selection-service.js.map +1 -0
- package/lib/base/selection-service.spec.d.ts +2 -0
- package/lib/base/selection-service.spec.d.ts.map +1 -0
- package/lib/base/selection-service.spec.js +281 -0
- package/lib/base/selection-service.spec.js.map +1 -0
- package/lib/base/tool-manager/glsp-tool-manager.d.ts +3 -3
- package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.js +5 -6
- package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -1
- package/lib/base/view/key-tool.d.ts +5 -0
- package/lib/base/view/key-tool.d.ts.map +1 -0
- package/lib/base/view/key-tool.js +36 -0
- package/lib/base/view/key-tool.js.map +1 -0
- package/lib/base/view/mouse-tool.d.ts +19 -0
- package/lib/base/view/mouse-tool.d.ts.map +1 -0
- package/lib/{features/mouse-tool → base/view}/mouse-tool.js +14 -11
- package/lib/base/view/mouse-tool.js.map +1 -0
- package/lib/base/view/view-registry.js +2 -3
- package/lib/base/view/view-registry.js.map +1 -1
- package/lib/{base/container-modules.d.ts → container-modules.d.ts} +2 -2
- package/lib/container-modules.d.ts.map +1 -0
- package/lib/{base/container-modules.js → container-modules.js} +49 -41
- package/lib/container-modules.js.map +1 -0
- package/lib/features/accessibility/move-zoom/move-handler.js +6 -8
- package/lib/features/accessibility/move-zoom/move-handler.js.map +1 -1
- package/lib/features/accessibility/move-zoom/zoom-handler.js +6 -8
- package/lib/features/accessibility/move-zoom/zoom-handler.js.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.js +4 -5
- package/lib/features/accessibility/resize-key-tool/resize-key-handler.js.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.js +6 -8
- package/lib/features/accessibility/resize-key-tool/resize-key-tool.js.map +1 -1
- package/lib/features/accessibility/search/search-palette.js +3 -4
- package/lib/features/accessibility/search/search-palette.js.map +1 -1
- package/lib/features/accessibility/search/search-tool.js +2 -3
- package/lib/features/accessibility/search/search-tool.js.map +1 -1
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.js +2 -3
- package/lib/features/accessibility/view-key-tools/deselect-key-tool.js.map +1 -1
- package/lib/features/accessibility/view-key-tools/movement-key-tool.d.ts +1 -1
- 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 +5 -6
- package/lib/features/accessibility/view-key-tools/movement-key-tool.js.map +1 -1
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts +1 -1
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.d.ts.map +1 -1
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.js +5 -6
- package/lib/features/accessibility/view-key-tools/zoom-key-tool.js.map +1 -1
- package/lib/features/autocomplete-palette/base-autocomplete-palette.js +1 -1
- package/lib/features/autocomplete-palette/base-autocomplete-palette.js.map +1 -1
- package/lib/features/bounds/freeform-layout.js +2 -3
- package/lib/features/bounds/freeform-layout.js.map +1 -1
- package/lib/features/bounds/freeform-layout.spec.d.ts +3 -0
- package/lib/features/bounds/freeform-layout.spec.d.ts.map +1 -0
- package/lib/features/bounds/freeform-layout.spec.js +201 -0
- package/lib/features/bounds/freeform-layout.spec.js.map +1 -0
- package/lib/features/bounds/glsp-hidden-bounds-updater.js +2 -3
- package/lib/features/bounds/glsp-hidden-bounds-updater.js.map +1 -1
- package/lib/features/bounds/hbox-layout.js +2 -3
- package/lib/features/bounds/hbox-layout.js.map +1 -1
- package/lib/features/bounds/hbox-layout.spec.d.ts +3 -0
- package/lib/features/bounds/hbox-layout.spec.d.ts.map +1 -0
- package/lib/features/bounds/hbox-layout.spec.js +160 -0
- package/lib/features/bounds/hbox-layout.spec.js.map +1 -0
- package/lib/features/bounds/layouter-test-util.spec.d.ts +32 -0
- package/lib/features/bounds/layouter-test-util.spec.d.ts.map +1 -0
- package/lib/features/bounds/layouter-test-util.spec.js +96 -0
- package/lib/features/bounds/layouter-test-util.spec.js.map +1 -0
- package/lib/features/bounds/layouter.js +2 -3
- package/lib/features/bounds/layouter.js.map +1 -1
- package/lib/features/bounds/vbox-layout.js +2 -3
- package/lib/features/bounds/vbox-layout.js.map +1 -1
- package/lib/features/bounds/vbox-layout.spec.d.ts +3 -0
- package/lib/features/bounds/vbox-layout.spec.d.ts.map +1 -0
- package/lib/features/bounds/vbox-layout.spec.js +160 -0
- package/lib/features/bounds/vbox-layout.spec.js.map +1 -0
- package/lib/features/change-bounds/model.js +2 -2
- package/lib/features/change-bounds/model.js.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts +1 -1
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -1
- package/lib/features/change-bounds/movement-restrictor.js +3 -4
- package/lib/features/change-bounds/movement-restrictor.js.map +1 -1
- package/lib/features/change-bounds/snap.js +2 -3
- package/lib/features/change-bounds/snap.js.map +1 -1
- package/lib/features/{rank/model.d.ts → change-bounds/snap.spec.d.ts} +3 -8
- package/lib/features/change-bounds/snap.spec.d.ts.map +1 -0
- package/lib/features/change-bounds/snap.spec.js +82 -0
- package/lib/features/change-bounds/snap.spec.js.map +1 -0
- package/lib/features/command-palette/command-palette-tool.js +2 -3
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/server-command-palette-provider.js +3 -4
- package/lib/features/command-palette/server-command-palette-provider.js.map +1 -1
- package/lib/features/context-menu/delete-element-context-menu.js +2 -3
- package/lib/features/context-menu/delete-element-context-menu.js.map +1 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts +1 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts.map +1 -1
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js +4 -5
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js.map +1 -1
- package/lib/features/context-menu/server-context-menu-provider.js +3 -4
- package/lib/features/context-menu/server-context-menu-provider.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-context-menu.js +6 -8
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.js +4 -6
- package/lib/features/copy-paste/copy-paste-handler.js.map +1 -1
- package/lib/features/decoration/decoration-placer.js +2 -3
- package/lib/features/decoration/decoration-placer.js.map +1 -1
- package/lib/features/edit-label/edit-label-tool.d.ts +0 -3
- package/lib/features/edit-label/edit-label-tool.d.ts.map +1 -1
- package/lib/features/edit-label/edit-label-tool.js +3 -11
- package/lib/features/edit-label/edit-label-tool.js.map +1 -1
- package/lib/features/edit-label/edit-label-validator.js +5 -7
- package/lib/features/edit-label/edit-label-validator.js.map +1 -1
- package/lib/features/export/glsp-svg-exporter.js +2 -3
- package/lib/features/export/glsp-svg-exporter.js.map +1 -1
- package/lib/features/hints/type-hints.d.ts +2 -2
- package/lib/features/hints/type-hints.d.ts.map +1 -1
- package/lib/features/hints/type-hints.js +9 -11
- package/lib/features/hints/type-hints.js.map +1 -1
- package/lib/features/hover/hover.d.ts.map +1 -1
- package/lib/features/hover/hover.js +3 -4
- package/lib/features/hover/hover.js.map +1 -1
- package/lib/features/layout/di.config.js +1 -1
- package/lib/features/layout/di.config.js.map +1 -1
- package/lib/features/layout/layout-elements-action.d.ts +1 -1
- package/lib/features/layout/layout-elements-action.d.ts.map +1 -1
- package/lib/features/layout/layout-elements-action.js +14 -17
- package/lib/features/layout/layout-elements-action.js.map +1 -1
- package/lib/features/layout/layout-elements-action.spec.d.ts +3 -0
- package/lib/features/layout/layout-elements-action.spec.d.ts.map +1 -0
- package/lib/features/layout/layout-elements-action.spec.js +321 -0
- package/lib/features/layout/layout-elements-action.spec.js.map +1 -0
- package/lib/features/navigation/navigation-action-handler.js +5 -6
- package/lib/features/navigation/navigation-action-handler.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.js +2 -3
- package/lib/features/navigation/navigation-target-resolver.js.map +1 -1
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts +3 -0
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +1 -0
- package/lib/features/navigation/navigation-target-resolver.spec.js +53 -0
- package/lib/features/navigation/navigation-target-resolver.spec.js.map +1 -0
- package/lib/features/routing/di.config.d.ts +22 -0
- package/lib/features/routing/di.config.d.ts.map +1 -0
- package/lib/features/routing/di.config.js +57 -0
- package/lib/features/routing/di.config.js.map +1 -0
- package/lib/features/routing/glsp-manhattan-edge-router.d.ts.map +1 -0
- package/lib/features/routing/glsp-manhattan-edge-router.js.map +1 -0
- package/lib/features/select/di.config.d.ts.map +1 -1
- package/lib/features/select/di.config.js +3 -5
- package/lib/features/select/di.config.js.map +1 -1
- package/lib/features/select/select-feedback-command.d.ts +12 -0
- package/lib/features/select/select-feedback-command.d.ts.map +1 -0
- package/lib/features/select/{select-feedback-action.js → select-feedback-command.js} +6 -30
- package/lib/features/select/select-feedback-command.js.map +1 -0
- package/lib/features/select/select-mouse-listener.d.ts +1 -1
- package/lib/features/select/select-mouse-listener.d.ts.map +1 -1
- package/lib/features/select/select-mouse-listener.js +2 -2
- package/lib/features/select/select-mouse-listener.js.map +1 -1
- package/lib/features/source-model-watcher/source-model-changed-action-handler.js +5 -7
- package/lib/features/source-model-watcher/source-model-changed-action-handler.js.map +1 -1
- package/lib/features/svg-metadata/metadata-placer.js +2 -3
- package/lib/features/svg-metadata/metadata-placer.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +4 -4
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +12 -13
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/base-glsp-creation-tool.d.ts +10 -0
- package/lib/features/tools/base-glsp-creation-tool.d.ts.map +1 -0
- package/lib/features/tools/base-glsp-creation-tool.js +45 -0
- package/lib/features/tools/base-glsp-creation-tool.js.map +1 -0
- package/lib/features/tools/base-glsp-tool.d.ts +26 -8
- package/lib/features/tools/base-glsp-tool.d.ts.map +1 -1
- package/lib/features/tools/base-glsp-tool.js +34 -11
- package/lib/features/tools/base-glsp-tool.js.map +1 -1
- package/lib/features/{tool-feedback → tools/change-bounds}/change-bounds-tool-feedback.d.ts +12 -5
- package/lib/features/tools/change-bounds/change-bounds-tool-feedback.d.ts.map +1 -0
- package/lib/features/{tool-feedback → tools/change-bounds}/change-bounds-tool-feedback.js +45 -27
- package/lib/features/tools/change-bounds/change-bounds-tool-feedback.js.map +1 -0
- package/lib/features/tools/{change-bounds-tool.d.ts → change-bounds/change-bounds-tool.d.ts} +13 -14
- package/lib/features/tools/change-bounds/change-bounds-tool.d.ts.map +1 -0
- package/lib/features/tools/{change-bounds-tool.js → change-bounds/change-bounds-tool.js} +50 -35
- package/lib/features/tools/change-bounds/change-bounds-tool.js.map +1 -0
- package/lib/features/tools/change-bounds/di.config.d.ts +19 -0
- package/lib/features/tools/change-bounds/di.config.d.ts.map +1 -0
- package/lib/features/tools/change-bounds/di.config.js +32 -0
- package/lib/features/tools/change-bounds/di.config.js.map +1 -0
- package/lib/features/tools/change-bounds/view.d.ts +9 -0
- package/lib/features/tools/change-bounds/view.d.ts.map +1 -0
- package/lib/features/{tool-feedback → tools/change-bounds}/view.js +5 -21
- package/lib/features/tools/change-bounds/view.js.map +1 -0
- package/lib/features/tools/{delete-tool.d.ts → deletion/delete-tool.d.ts} +4 -9
- package/lib/features/tools/deletion/delete-tool.d.ts.map +1 -0
- package/lib/features/tools/{delete-tool.js → deletion/delete-tool.js} +13 -29
- package/lib/features/tools/deletion/delete-tool.js.map +1 -0
- package/lib/features/{tool-feedback → tools/deletion}/di.config.d.ts +2 -2
- package/lib/features/tools/deletion/di.config.d.ts.map +1 -0
- package/lib/features/{mouse-tool → tools/deletion}/di.config.js +7 -7
- package/lib/features/tools/deletion/di.config.js.map +1 -0
- package/lib/features/{tool-feedback/creation-tool-feedback.d.ts → tools/edge-creation/dangling-edge-feedback.d.ts} +5 -10
- package/lib/features/tools/edge-creation/dangling-edge-feedback.d.ts.map +1 -0
- package/lib/features/{tool-feedback/creation-tool-feedback.js → tools/edge-creation/dangling-edge-feedback.js} +25 -87
- package/lib/features/tools/edge-creation/dangling-edge-feedback.js.map +1 -0
- package/lib/features/tools/edge-creation/di.config.d.ts +19 -0
- package/lib/features/tools/edge-creation/di.config.d.ts.map +1 -0
- package/lib/features/tools/edge-creation/di.config.js +29 -0
- package/lib/features/tools/edge-creation/di.config.js.map +1 -0
- package/lib/features/tools/edge-creation/edge-creation-tool-feedback.d.ts +26 -0
- package/lib/features/tools/edge-creation/edge-creation-tool-feedback.d.ts.map +1 -0
- package/lib/features/tools/edge-creation/edge-creation-tool-feedback.js +74 -0
- package/lib/features/tools/edge-creation/edge-creation-tool-feedback.js.map +1 -0
- package/lib/features/tools/{edge-creation-tool.d.ts → edge-creation/edge-creation-tool.d.ts} +6 -11
- package/lib/features/tools/edge-creation/edge-creation-tool.d.ts.map +1 -0
- package/lib/features/tools/{edge-creation-tool.js → edge-creation/edge-creation-tool.js} +29 -40
- package/lib/features/tools/edge-creation/edge-creation-tool.js.map +1 -0
- package/lib/features/tools/edge-creation/view.d.ts +10 -0
- package/lib/features/tools/edge-creation/view.d.ts.map +1 -0
- package/lib/features/tools/edge-creation/view.js +43 -0
- package/lib/features/tools/edge-creation/view.js.map +1 -0
- package/lib/features/{mouse-tool → tools/edge-edit}/di.config.d.ts +2 -2
- package/lib/features/tools/edge-edit/di.config.d.ts.map +1 -0
- package/lib/features/tools/edge-edit/di.config.js +35 -0
- package/lib/features/tools/edge-edit/di.config.js.map +1 -0
- package/lib/features/{tool-feedback → tools/edge-edit}/edge-edit-tool-feedback.d.ts +14 -8
- package/lib/features/tools/edge-edit/edge-edit-tool-feedback.d.ts.map +1 -0
- package/lib/features/{tool-feedback → tools/edge-edit}/edge-edit-tool-feedback.js +42 -37
- package/lib/features/tools/edge-edit/edge-edit-tool-feedback.js.map +1 -0
- package/lib/features/tools/{edge-edit-tool.d.ts → edge-edit/edge-edit-tool.d.ts} +7 -9
- package/lib/features/tools/edge-edit/edge-edit-tool.d.ts.map +1 -0
- package/lib/features/tools/{edge-edit-tool.js → edge-edit/edge-edit-tool.js} +28 -33
- package/lib/features/tools/edge-edit/edge-edit-tool.js.map +1 -0
- package/lib/features/tools/enable-default-tools-on-focus-loss.d.ts +21 -0
- package/lib/features/tools/enable-default-tools-on-focus-loss.d.ts.map +1 -1
- package/lib/features/tools/enable-default-tools-on-focus-loss.js +9 -3
- package/lib/features/tools/enable-default-tools-on-focus-loss.js.map +1 -1
- package/lib/features/tools/marquee-selection/di.config.d.ts +19 -0
- package/lib/features/tools/marquee-selection/di.config.d.ts.map +1 -0
- package/lib/features/tools/marquee-selection/di.config.js +34 -0
- package/lib/features/tools/marquee-selection/di.config.js.map +1 -0
- package/lib/features/tools/{marquee-behavior.d.ts → marquee-selection/marquee-behavior.d.ts} +10 -10
- package/lib/features/tools/marquee-selection/marquee-behavior.d.ts.map +1 -0
- package/lib/features/tools/{marquee-behavior.js → marquee-selection/marquee-behavior.js} +2 -2
- package/lib/features/tools/marquee-selection/marquee-behavior.js.map +1 -0
- package/lib/features/tools/marquee-selection/marquee-behavior.spec.d.ts +17 -0
- package/lib/features/tools/marquee-selection/marquee-behavior.spec.d.ts.map +1 -0
- package/lib/features/tools/marquee-selection/marquee-behavior.spec.js +165 -0
- package/lib/features/tools/marquee-selection/marquee-behavior.spec.js.map +1 -0
- package/lib/features/tools/{marquee-mouse-tool.d.ts → marquee-selection/marquee-mouse-tool.d.ts} +4 -6
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.d.ts.map +1 -0
- package/lib/features/tools/{marquee-mouse-tool.js → marquee-selection/marquee-mouse-tool.js} +12 -22
- package/lib/features/tools/marquee-selection/marquee-mouse-tool.js.map +1 -0
- package/lib/features/{tool-feedback → tools/marquee-selection}/marquee-tool-feedback.d.ts +2 -2
- package/lib/features/tools/marquee-selection/marquee-tool-feedback.d.ts.map +1 -0
- package/lib/features/{tool-feedback → tools/marquee-selection}/marquee-tool-feedback.js +8 -10
- package/lib/features/tools/marquee-selection/marquee-tool-feedback.js.map +1 -0
- package/lib/features/tools/marquee-selection/marquee-tool.d.ts +12 -0
- package/lib/features/tools/marquee-selection/marquee-tool.d.ts.map +1 -0
- package/lib/features/tools/{marquee-tool.js → marquee-selection/marquee-tool.js} +8 -20
- package/lib/features/tools/marquee-selection/marquee-tool.js.map +1 -0
- package/lib/features/tools/{model.d.ts → marquee-selection/model.d.ts} +1 -1
- package/lib/features/tools/marquee-selection/model.d.ts.map +1 -0
- package/lib/features/tools/{model.js → marquee-selection/model.js} +2 -2
- package/lib/features/tools/marquee-selection/model.js.map +1 -0
- package/lib/features/tools/{view.d.ts → marquee-selection/view.d.ts} +1 -1
- package/lib/features/tools/marquee-selection/view.d.ts.map +1 -0
- package/lib/features/tools/{view.js → marquee-selection/view.js} +3 -4
- package/lib/features/tools/marquee-selection/view.js.map +1 -0
- package/lib/features/tools/node-creation/di.config.d.ts +19 -0
- package/lib/features/tools/node-creation/di.config.d.ts.map +1 -0
- package/lib/features/{rank/model.js → tools/node-creation/di.config.js} +12 -13
- package/lib/features/tools/node-creation/di.config.js.map +1 -0
- package/lib/features/tools/{node-creation-tool.d.ts → node-creation/node-creation-tool.d.ts} +7 -10
- package/lib/features/tools/node-creation/node-creation-tool.d.ts.map +1 -0
- package/lib/features/tools/{node-creation-tool.js → node-creation/node-creation-tool.js} +17 -30
- package/lib/features/tools/node-creation/node-creation-tool.js.map +1 -0
- package/lib/features/validation/marker-navigator.d.ts +4 -3
- package/lib/features/validation/marker-navigator.d.ts.map +1 -1
- package/lib/features/validation/marker-navigator.js +16 -20
- package/lib/features/validation/marker-navigator.js.map +1 -1
- package/lib/features/validation/marker-navigator.spec.d.ts +3 -0
- package/lib/features/validation/marker-navigator.spec.d.ts.map +1 -0
- package/lib/features/validation/marker-navigator.spec.js +182 -0
- package/lib/features/validation/marker-navigator.spec.js.map +1 -0
- package/lib/features/validation/validate.d.ts +2 -2
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +12 -17
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/features/viewport/glsp-scroll-mouse-listener.js +3 -4
- package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -1
- package/lib/glsp-sprotty/index.d.ts +1 -1
- package/lib/glsp-sprotty/index.d.ts.map +1 -1
- package/lib/glsp-sprotty/index.js +26 -25
- package/lib/glsp-sprotty/index.js.map +1 -1
- package/lib/glsp-sprotty/types.d.ts +4 -8
- package/lib/glsp-sprotty/types.d.ts.map +1 -1
- package/lib/glsp-sprotty/types.js +1 -1
- package/lib/glsp-sprotty/types.js.map +1 -1
- package/lib/index.d.ts +36 -27
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +58 -46
- package/lib/index.js.map +1 -1
- package/lib/lib/model.js +1 -1
- package/lib/lib/model.js.map +1 -1
- package/lib/model-source/glsp-diagram-server.d.ts.map +1 -1
- package/lib/model-source/glsp-diagram-server.js +5 -3
- package/lib/model-source/glsp-diagram-server.js.map +1 -1
- package/lib/utils/argument-utils.js +3 -3
- package/lib/utils/argument-utils.js.map +1 -1
- package/lib/utils/marker.js +1 -1
- package/lib/utils/marker.js.map +1 -1
- package/lib/utils/smodel-util.spec.d.ts +2 -0
- package/lib/utils/smodel-util.spec.d.ts.map +1 -0
- package/lib/utils/smodel-util.spec.js +184 -0
- package/lib/utils/smodel-util.spec.js.map +1 -0
- package/lib/utils/viewpoint-util.d.ts +20 -1
- package/lib/utils/viewpoint-util.d.ts.map +1 -1
- package/lib/utils/viewpoint-util.js +30 -1
- package/lib/utils/viewpoint-util.js.map +1 -1
- package/lib/views/compartments.js +2 -3
- package/lib/views/compartments.js.map +1 -1
- package/lib/views/glsp-edge-view.js +2 -3
- package/lib/views/glsp-edge-view.js.map +1 -1
- package/lib/views/glsp-projection-view.js +2 -3
- package/lib/views/glsp-projection-view.js.map +1 -1
- package/lib/views/issue-marker-view.js +2 -3
- package/lib/views/issue-marker-view.js.map +1 -1
- package/lib/views/rounded-corner-view.js +2 -3
- package/lib/views/rounded-corner-view.js.map +1 -1
- package/package.json +3 -3
- package/src/base/action-dispatcher.ts +3 -1
- package/src/base/command-stack.ts +55 -3
- package/src/base/di.config.ts +34 -9
- package/src/base/drag-aware-mouse-listener.ts +2 -2
- package/src/base/editor-context-service.ts +28 -13
- package/src/{features/tool-feedback → base/feedback}/css-feedback.ts +1 -1
- package/src/{features/tool-feedback → base/feedback}/feedback-action-dispatcher.ts +31 -23
- package/src/base/{model → feedback}/update-model-command.ts +3 -29
- package/src/base/ranked.ts +42 -0
- package/src/{features/select → base}/selection-service.spec.ts +51 -121
- package/src/{features/select → base}/selection-service.ts +82 -31
- package/src/base/tool-manager/glsp-tool-manager.ts +4 -4
- package/src/{features/rank/model.ts → base/view/key-tool.ts} +9 -13
- package/src/{features/mouse-tool → base/view}/mouse-tool.ts +14 -15
- package/src/{base/container-modules.ts → container-modules.ts} +33 -26
- package/src/features/accessibility/resize-key-tool/resize-key-tool.ts +2 -2
- package/src/features/accessibility/search/search-palette.ts +1 -1
- package/src/features/accessibility/view-key-tools/movement-key-tool.ts +2 -2
- package/src/features/accessibility/view-key-tools/zoom-key-tool.ts +3 -3
- package/src/features/bounds/layouter-test-util.spec.ts +1 -1
- package/src/features/change-bounds/movement-restrictor.ts +1 -1
- package/src/features/context-menu/selection-service-aware-context-menu-mouse-listener.ts +2 -2
- package/src/features/copy-paste/copy-paste-context-menu.ts +1 -1
- package/src/features/edit-label/edit-label-tool.ts +4 -12
- package/src/features/hints/type-hints.ts +2 -2
- package/src/features/hover/hover.ts +2 -1
- package/src/features/layout/di.config.ts +1 -1
- package/src/features/layout/layout-elements-action.spec.ts +1 -3
- package/src/features/layout/layout-elements-action.ts +2 -2
- package/src/features/navigation/navigation-action-handler.ts +1 -1
- package/src/features/routing/di.config.ts +82 -0
- package/src/features/select/di.config.ts +2 -4
- package/src/features/select/{select-feedback-action.ts → select-feedback-command.ts} +2 -38
- package/src/features/select/select-mouse-listener.ts +2 -2
- package/src/features/source-model-watcher/source-model-changed-action-handler.ts +1 -1
- package/src/features/tool-palette/tool-palette.ts +12 -12
- package/src/features/tools/base-glsp-creation-tool.ts +40 -0
- package/src/features/tools/base-glsp-tool.ts +32 -10
- package/src/features/{tool-feedback → tools/change-bounds}/change-bounds-tool-feedback.ts +52 -21
- package/src/features/tools/{change-bounds-tool.ts → change-bounds/change-bounds-tool.ts} +64 -35
- package/src/features/tools/change-bounds/di.config.ts +31 -0
- package/src/features/{tool-feedback → tools/change-bounds}/view.tsx +2 -14
- package/src/features/tools/{delete-tool.ts → deletion/delete-tool.ts} +8 -18
- package/src/features/{mouse-tool → tools/deletion}/di.config.ts +7 -7
- package/src/features/{tool-feedback/creation-tool-feedback.ts → tools/edge-creation/dangling-edge-feedback.ts} +18 -88
- package/src/features/tools/edge-creation/di.config.ts +28 -0
- package/src/features/tools/edge-creation/edge-creation-tool-feedback.ts +89 -0
- package/src/features/tools/{edge-creation-tool.ts → edge-creation/edge-creation-tool.ts} +26 -43
- package/src/features/tools/edge-creation/view.tsx +33 -0
- package/src/features/tools/edge-edit/di.config.ts +41 -0
- package/src/features/{tool-feedback → tools/edge-edit}/edge-edit-tool-feedback.ts +27 -15
- package/src/features/tools/{edge-edit-tool.ts → edge-edit/edge-edit-tool.ts} +29 -27
- package/src/features/tools/enable-default-tools-on-focus-loss.ts +11 -2
- package/src/features/tools/marquee-selection/di.config.ts +35 -0
- package/src/features/tools/{marquee-behavior.ts → marquee-selection/marquee-behavior.ts} +9 -9
- package/src/features/tools/{marquee-mouse-tool.ts → marquee-selection/marquee-mouse-tool.ts} +11 -17
- package/src/features/{tool-feedback → tools/marquee-selection}/marquee-tool-feedback.ts +1 -1
- package/src/features/tools/{marquee-tool.ts → marquee-selection/marquee-tool.ts} +5 -11
- package/{lib/features/tools/di.config.d.ts → src/features/tools/node-creation/di.config.ts} +10 -12
- package/src/features/tools/{node-creation-tool.ts → node-creation/node-creation-tool.ts} +14 -31
- package/src/features/validation/marker-navigator.ts +5 -5
- package/src/features/validation/validate.ts +2 -2
- package/src/features/viewport/glsp-scroll-mouse-listener.ts +1 -1
- package/src/glsp-sprotty/index.ts +1 -1
- package/src/glsp-sprotty/types.ts +2 -4
- package/src/index.ts +63 -49
- package/src/model-source/glsp-diagram-server.ts +7 -1
- package/src/utils/smodel-util.spec.ts +3 -3
- package/src/utils/viewpoint-util.ts +32 -0
- package/lib/base/container-modules.d.ts.map +0 -1
- package/lib/base/container-modules.js.map +0 -1
- package/lib/base/model/update-model-command.d.ts.map +0 -1
- package/lib/base/model/update-model-command.js.map +0 -1
- package/lib/features/mouse-tool/di.config.d.ts.map +0 -1
- package/lib/features/mouse-tool/di.config.js.map +0 -1
- package/lib/features/mouse-tool/mouse-tool.d.ts +0 -22
- package/lib/features/mouse-tool/mouse-tool.d.ts.map +0 -1
- package/lib/features/mouse-tool/mouse-tool.js.map +0 -1
- package/lib/features/rank/model.d.ts.map +0 -1
- package/lib/features/rank/model.js.map +0 -1
- package/lib/features/select/select-feedback-action.d.ts +0 -25
- package/lib/features/select/select-feedback-action.d.ts.map +0 -1
- package/lib/features/select/select-feedback-action.js.map +0 -1
- package/lib/features/select/selection-service.d.ts.map +0 -1
- package/lib/features/select/selection-service.js.map +0 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +0 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +0 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +0 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js.map +0 -1
- package/lib/features/tool-feedback/css-feedback.d.ts.map +0 -1
- package/lib/features/tool-feedback/css-feedback.js.map +0 -1
- package/lib/features/tool-feedback/di.config.d.ts.map +0 -1
- package/lib/features/tool-feedback/di.config.js +0 -53
- package/lib/features/tool-feedback/di.config.js.map +0 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts.map +0 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js.map +0 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts.map +0 -1
- package/lib/features/tool-feedback/feedback-action-dispatcher.js.map +0 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts.map +0 -1
- package/lib/features/tool-feedback/marquee-tool-feedback.js.map +0 -1
- package/lib/features/tool-feedback/model.d.ts.map +0 -1
- package/lib/features/tool-feedback/model.js.map +0 -1
- package/lib/features/tool-feedback/view.d.ts +0 -16
- package/lib/features/tool-feedback/view.d.ts.map +0 -1
- package/lib/features/tool-feedback/view.js.map +0 -1
- package/lib/features/tools/change-bounds-tool.d.ts.map +0 -1
- package/lib/features/tools/change-bounds-tool.js.map +0 -1
- package/lib/features/tools/delete-tool.d.ts.map +0 -1
- package/lib/features/tools/delete-tool.js.map +0 -1
- package/lib/features/tools/di.config.d.ts.map +0 -1
- package/lib/features/tools/di.config.js +0 -66
- package/lib/features/tools/di.config.js.map +0 -1
- package/lib/features/tools/edge-creation-tool.d.ts.map +0 -1
- package/lib/features/tools/edge-creation-tool.js.map +0 -1
- package/lib/features/tools/edge-edit-tool.d.ts.map +0 -1
- package/lib/features/tools/edge-edit-tool.js.map +0 -1
- package/lib/features/tools/glsp-manhattan-edge-router.d.ts.map +0 -1
- package/lib/features/tools/glsp-manhattan-edge-router.js.map +0 -1
- package/lib/features/tools/marquee-behavior.d.ts.map +0 -1
- package/lib/features/tools/marquee-behavior.js.map +0 -1
- package/lib/features/tools/marquee-mouse-tool.d.ts.map +0 -1
- package/lib/features/tools/marquee-mouse-tool.js.map +0 -1
- package/lib/features/tools/marquee-tool.d.ts +0 -14
- package/lib/features/tools/marquee-tool.d.ts.map +0 -1
- package/lib/features/tools/marquee-tool.js.map +0 -1
- package/lib/features/tools/model.d.ts.map +0 -1
- package/lib/features/tools/model.js.map +0 -1
- package/lib/features/tools/node-creation-tool.d.ts.map +0 -1
- package/lib/features/tools/node-creation-tool.js.map +0 -1
- package/lib/features/tools/view.d.ts.map +0 -1
- package/lib/features/tools/view.js.map +0 -1
- package/src/features/tool-feedback/di.config.ts +0 -65
- package/src/features/tools/di.config.ts +0 -77
- /package/lib/features/{tools → routing}/glsp-manhattan-edge-router.d.ts +0 -0
- /package/lib/features/{tools → routing}/glsp-manhattan-edge-router.js +0 -0
- /package/src/{features/tool-feedback/model.ts → base/feedback/feedback-command.ts} +0 -0
- /package/src/features/{tools → routing}/glsp-manhattan-edge-router.ts +0 -0
- /package/src/features/tools/{marquee-behavior.spec.ts → marquee-selection/marquee-behavior.spec.ts} +0 -0
- /package/src/features/tools/{model.ts → marquee-selection/model.ts} +0 -0
- /package/src/features/tools/{view.tsx → marquee-selection/view.tsx} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-target-resolver.spec.d.ts","sourceRoot":"","sources":["../../../src/features/navigation/navigation-target-resolver.spec.ts"],"names":[],"mappings":"AAgBA,OAAO,OAAO,CAAC;AACf,OAAO,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/********************************************************************************
|
|
4
|
+
* Copyright (c) 2020-2023 EclipseSource and others.
|
|
5
|
+
*
|
|
6
|
+
* This program and the accompanying materials are made available under the
|
|
7
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
8
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
9
|
+
*
|
|
10
|
+
* This Source Code may also be made available under the following Secondary
|
|
11
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
12
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
13
|
+
* with the GNU Classpath Exception which is available at
|
|
14
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
15
|
+
*
|
|
16
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
17
|
+
********************************************************************************/
|
|
18
|
+
const chai_1 = require("chai");
|
|
19
|
+
require("mocha");
|
|
20
|
+
require("reflect-metadata");
|
|
21
|
+
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
22
|
+
describe('NavigationTarget', () => {
|
|
23
|
+
it('should be able to set and get element IDs', () => {
|
|
24
|
+
const navigationTarget = { uri: 'uri' };
|
|
25
|
+
_glsp_sprotty_1.NavigationTarget.setElementIds(navigationTarget, 'id1', 'id2');
|
|
26
|
+
(0, chai_1.expect)(_glsp_sprotty_1.NavigationTarget.getElementIds(navigationTarget)).to.be.eql(['id1', 'id2']);
|
|
27
|
+
});
|
|
28
|
+
it('should be able to set and get textual positions', () => {
|
|
29
|
+
const navigationTarget = { uri: 'uri' };
|
|
30
|
+
_glsp_sprotty_1.NavigationTarget.setTextPosition(navigationTarget, { line: 1, character: 2 });
|
|
31
|
+
(0, chai_1.expect)(_glsp_sprotty_1.NavigationTarget.getTextPosition(navigationTarget)).to.be.eql({ line: 1, character: 2 });
|
|
32
|
+
});
|
|
33
|
+
it('should be able to set and get custom query arguments', () => {
|
|
34
|
+
const navigationTarget = { uri: 'uri' };
|
|
35
|
+
_glsp_sprotty_1.NavigationTarget.addArgument(navigationTarget, 'name', 'test');
|
|
36
|
+
(0, chai_1.expect)(navigationTarget.args.name).to.be.eql('test');
|
|
37
|
+
});
|
|
38
|
+
it('should specify whether it has arguments', () => {
|
|
39
|
+
let navigationTarget = { uri: 'uri' };
|
|
40
|
+
(0, chai_1.expect)(_glsp_sprotty_1.NavigationTarget.hasArguments(navigationTarget)).to.be.false;
|
|
41
|
+
_glsp_sprotty_1.NavigationTarget.addArgument(navigationTarget, 'name', 'test');
|
|
42
|
+
(0, chai_1.expect)(_glsp_sprotty_1.NavigationTarget.hasArguments(navigationTarget)).to.be.true;
|
|
43
|
+
navigationTarget = { uri: 'uri' };
|
|
44
|
+
(0, chai_1.expect)(_glsp_sprotty_1.NavigationTarget.hasArguments(navigationTarget)).to.be.false;
|
|
45
|
+
_glsp_sprotty_1.NavigationTarget.setElementIds(navigationTarget, 'id1', 'id2');
|
|
46
|
+
(0, chai_1.expect)(_glsp_sprotty_1.NavigationTarget.hasArguments(navigationTarget)).to.be.true;
|
|
47
|
+
navigationTarget = { uri: 'uri' };
|
|
48
|
+
(0, chai_1.expect)(_glsp_sprotty_1.NavigationTarget.hasArguments(navigationTarget)).to.be.false;
|
|
49
|
+
_glsp_sprotty_1.NavigationTarget.setTextPosition(navigationTarget, { line: 1, character: 2 });
|
|
50
|
+
(0, chai_1.expect)(_glsp_sprotty_1.NavigationTarget.hasArguments(navigationTarget)).to.be.true;
|
|
51
|
+
});
|
|
52
|
+
});
|
|
53
|
+
//# sourceMappingURL=navigation-target-resolver.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"navigation-target-resolver.sp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C,CAAC,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC;IACvE,CAAC,CAAC,CAAC;AACP,CAAC,CAAC,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2019-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
|
+
import { ContainerModule } from 'inversify';
|
|
17
|
+
/**
|
|
18
|
+
* Customization of the routing module for GLSP.
|
|
19
|
+
*/
|
|
20
|
+
declare const glspRoutingModule: ContainerModule;
|
|
21
|
+
export default glspRoutingModule;
|
|
22
|
+
//# sourceMappingURL=di.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/routing/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAuB5C;;GAEG;AACH,QAAA,MAAM,iBAAiB,iBAsCrB,CAAC;AAEH,eAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/********************************************************************************
|
|
4
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
5
|
+
*
|
|
6
|
+
* This program and the accompanying materials are made available under the
|
|
7
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
8
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
9
|
+
*
|
|
10
|
+
* This Source Code may also be made available under the following Secondary
|
|
11
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
12
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
13
|
+
* with the GNU Classpath Exception which is available at
|
|
14
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
15
|
+
*
|
|
16
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
17
|
+
********************************************************************************/
|
|
18
|
+
const inversify_1 = require("inversify");
|
|
19
|
+
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
20
|
+
const glsp_manhattan_edge_router_1 = require("./glsp-manhattan-edge-router");
|
|
21
|
+
/**
|
|
22
|
+
* Customization of the routing module for GLSP.
|
|
23
|
+
*/
|
|
24
|
+
const glspRoutingModule = new inversify_1.ContainerModule((bind, _unbind, isBound, rebind) => {
|
|
25
|
+
const context = { bind, isBound, rebind };
|
|
26
|
+
bind(_glsp_sprotty_1.EdgeRouterRegistry).toSelf().inSingletonScope();
|
|
27
|
+
bind(_glsp_sprotty_1.AnchorComputerRegistry).toSelf().inSingletonScope();
|
|
28
|
+
bind(glsp_manhattan_edge_router_1.GLSPManhattanEdgeRouter).toSelf().inSingletonScope();
|
|
29
|
+
bind(_glsp_sprotty_1.ManhattanEdgeRouter).toService(glsp_manhattan_edge_router_1.GLSPManhattanEdgeRouter);
|
|
30
|
+
bind(_glsp_sprotty_1.TYPES.IEdgeRouter).toService(_glsp_sprotty_1.ManhattanEdgeRouter);
|
|
31
|
+
bind(_glsp_sprotty_1.ManhattanEllipticAnchor).toSelf().inSingletonScope();
|
|
32
|
+
bind(_glsp_sprotty_1.TYPES.IAnchorComputer).toService(_glsp_sprotty_1.ManhattanEllipticAnchor);
|
|
33
|
+
bind(_glsp_sprotty_1.ManhattanRectangularAnchor).toSelf().inSingletonScope();
|
|
34
|
+
bind(_glsp_sprotty_1.TYPES.IAnchorComputer).toService(_glsp_sprotty_1.ManhattanRectangularAnchor);
|
|
35
|
+
bind(_glsp_sprotty_1.ManhattanDiamondAnchor).toSelf().inSingletonScope();
|
|
36
|
+
bind(_glsp_sprotty_1.TYPES.IAnchorComputer).toService(_glsp_sprotty_1.ManhattanDiamondAnchor);
|
|
37
|
+
bind(_glsp_sprotty_1.PolylineEdgeRouter).toSelf().inSingletonScope();
|
|
38
|
+
bind(_glsp_sprotty_1.TYPES.IEdgeRouter).toService(_glsp_sprotty_1.PolylineEdgeRouter);
|
|
39
|
+
bind(_glsp_sprotty_1.EllipseAnchor).toSelf().inSingletonScope();
|
|
40
|
+
bind(_glsp_sprotty_1.TYPES.IAnchorComputer).toService(_glsp_sprotty_1.EllipseAnchor);
|
|
41
|
+
bind(_glsp_sprotty_1.RectangleAnchor).toSelf().inSingletonScope();
|
|
42
|
+
bind(_glsp_sprotty_1.TYPES.IAnchorComputer).toService(_glsp_sprotty_1.RectangleAnchor);
|
|
43
|
+
bind(_glsp_sprotty_1.DiamondAnchor).toSelf().inSingletonScope();
|
|
44
|
+
bind(_glsp_sprotty_1.TYPES.IAnchorComputer).toService(_glsp_sprotty_1.DiamondAnchor);
|
|
45
|
+
bind(_glsp_sprotty_1.BezierEdgeRouter).toSelf().inSingletonScope();
|
|
46
|
+
bind(_glsp_sprotty_1.TYPES.IEdgeRouter).toService(_glsp_sprotty_1.BezierEdgeRouter);
|
|
47
|
+
bind(_glsp_sprotty_1.BezierEllipseAnchor).toSelf().inSingletonScope();
|
|
48
|
+
bind(_glsp_sprotty_1.TYPES.IAnchorComputer).toService(_glsp_sprotty_1.BezierEllipseAnchor);
|
|
49
|
+
bind(_glsp_sprotty_1.BezierRectangleAnchor).toSelf().inSingletonScope();
|
|
50
|
+
bind(_glsp_sprotty_1.TYPES.IAnchorComputer).toService(_glsp_sprotty_1.BezierRectangleAnchor);
|
|
51
|
+
bind(_glsp_sprotty_1.BezierDiamondAnchor).toSelf().inSingletonScope();
|
|
52
|
+
bind(_glsp_sprotty_1.TYPES.IAnchorComputer).toService(_glsp_sprotty_1.BezierDiamondAnchor);
|
|
53
|
+
(0, _glsp_sprotty_1.configureCommand)({ bind, isBound }, _glsp_sprotty_1.AddRemoveBezierSegmentCommand);
|
|
54
|
+
(0, _glsp_sprotty_1.bindOrRebind)(context, _glsp_sprotty_1.ManhattanEdgeRouter).toService(glsp_manhattan_edge_router_1.GLSPManhattanEdgeRouter);
|
|
55
|
+
});
|
|
56
|
+
exports.default = glspRoutingModule;
|
|
57
|
+
//# sourceMappingURL=di.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/routing/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,iDAmBuB;AACvB,6EAAuE;AAEvE;;GAEG;AACH,MAAM,iBAAiB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAC7E,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,CAAC;IAE1C,IAAI,CAAC,kCAAkB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAErD,IAAI,CAAC,sCAAsB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAEzD,IAAI,CAAC,oDAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1D,IAAI,CAAC,mCAAmB,CAAC,CAAC,SAAS,CAAC,oDAAuB,CAAC,CAAC;IAC7D,IAAI,CAAC,qBAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,mCA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C,WAAW,CAAC,CAAC,SAAS,CAAC,gCAAgB,CAAC,CAAC;IACpD,IAAI,CAAC,mCAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACtD,IAAI,CAAC,qBAAK,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,mCAAmB,CAAC,CAAC;IAC3D,IAAI,CAAC,qCAAqB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACxD,IAAI,CAAC,qBAAK,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,qCAAqB,CAAC,CAAC;IAC7D,IAAI,CAAC,mCAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACtD,IAAI,CAAC,qBAAK,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,mCAAmB,CAAC,CAAC;IAE3D,IAAA,gCAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,6CAA6B,CAAC,CAAC;IAEnE,IAAA,4BAAY,EAAC,OAAO,EAAE,mCAAmB,CAAC,CAAC,SAAS,CAAC,oDAAuB,CAAC,CAAC;AAClF,CAAC,CAAC,CAAC;AAEH,kBAAe,iBAAiB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glsp-manhattan-edge-router.d.ts","sourceRoot":"","sources":["../../../src/features/routing/glsp-manhattan-edge-router.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,gBAAgB,EAAgB,MAAM,eAAe,CAAC;AAExG,qBAAa,uBAAwB,SAAQ,mBAAmB;cACzC,qBAAqB,CAAC,IAAI,EAAE,gBAAgB,EAAE,KAAK,EAAE,kBAAkB,EAAE,GAAG,IAAI;CAuCtG"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glsp-manhattan-edge-router.js","sourceRoot":"","sources":["../../../src/features/routing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features/select/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,QAAA,MAAM,gBAAgB,
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/select/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,QAAA,MAAM,gBAAgB,iBAMpB,CAAC;AAEH,eAAe,gBAAgB,CAAC"}
|
|
@@ -17,17 +17,15 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
17
17
|
********************************************************************************/
|
|
18
18
|
const inversify_1 = require("inversify");
|
|
19
19
|
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
20
|
-
const
|
|
20
|
+
const selection_service_1 = require("../../base/selection-service");
|
|
21
|
+
const select_feedback_command_1 = require("./select-feedback-command");
|
|
21
22
|
const select_mouse_listener_1 = require("./select-mouse-listener");
|
|
22
|
-
const selection_service_1 = require("./selection-service");
|
|
23
23
|
const glspSelectModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
24
24
|
const context = { bind, isBound };
|
|
25
|
-
(0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.SelectionService, selection_service_1.SelectionService);
|
|
26
25
|
(0, _glsp_sprotty_1.configureCommand)(context, selection_service_1.SelectCommand);
|
|
27
26
|
(0, _glsp_sprotty_1.configureCommand)(context, selection_service_1.SelectAllCommand);
|
|
28
|
-
(0, _glsp_sprotty_1.configureCommand)(context,
|
|
27
|
+
(0, _glsp_sprotty_1.configureCommand)(context, select_feedback_command_1.SelectFeedbackCommand);
|
|
29
28
|
(0, _glsp_sprotty_1.bindAsService)(context, _glsp_sprotty_1.TYPES.MouseListener, select_mouse_listener_1.RankedSelectMouseListener);
|
|
30
|
-
bind(_glsp_sprotty_1.TYPES.SModelRootListener).toService(selection_service_1.SelectionService);
|
|
31
29
|
});
|
|
32
30
|
exports.default = glspSelectModule;
|
|
33
31
|
//# sourceMappingURL=di.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/select/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,iDAAuE;AACvE,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/select/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,iDAAuE;AACvE,oEAA+E;AAC/E,uEAAkE;AAClE,mEAAoE;AAEpE,MAAM,gBAAgB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACpE,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAClC,IAAA,gCAAgB,EAAC,OAAO,EAAE,iCAAa,CAAC,CAAC;IACzC,IAAA,gCAAgB,EAAC,OAAO,EAAE,oCAAgB,CAAC,CAAC;IAC5C,IAAA,gCAAgB,EAAC,OAAO,EAAE,+CAAqB,CAAC,CAAC;IACjD,IAAA,6BAAa,EAAC,OAAO,EAAE,qBAAK,CAAC,aAAa,EAAE,iDAAyB,CAAC,CAAC;AAC3E,CAAC,CAAC,CAAC;AAEH,kBAAe,gBAAgB,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Command, CommandExecutionContext, SModelRoot } from '../../glsp-sprotty/index';
|
|
2
|
+
import { SelectFeedbackAction } from '../../base/selection-service';
|
|
3
|
+
export declare class SelectFeedbackCommand extends Command {
|
|
4
|
+
action: SelectFeedbackAction;
|
|
5
|
+
static readonly KIND = "selectFeedback";
|
|
6
|
+
private sprottySelectCommand;
|
|
7
|
+
constructor(action: SelectFeedbackAction);
|
|
8
|
+
execute(context: CommandExecutionContext): SModelRoot;
|
|
9
|
+
undo(context: CommandExecutionContext): SModelRoot;
|
|
10
|
+
redo(context: CommandExecutionContext): SModelRoot;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=select-feedback-command.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-feedback-command.d.ts","sourceRoot":"","sources":["../../../src/features/select/select-feedback-command.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,OAAO,EAAE,uBAAuB,EAAE,UAAU,EAA6C,MAAM,eAAe,CAAC;AACxH,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AAEpE,qBACa,qBAAsB,SAAQ,OAAO;IAIL,MAAM,EAAE,oBAAoB;IAHrE,MAAM,CAAC,QAAQ,CAAC,IAAI,oBAA6B;IACjD,OAAO,CAAC,oBAAoB,CAAuB;gBAEV,MAAM,EAAE,oBAAoB;IAKrE,OAAO,CAAC,OAAO,EAAE,uBAAuB,GAAG,UAAU;IAIrD,IAAI,CAAC,OAAO,EAAE,uBAAuB,GAAG,UAAU;IAIlD,IAAI,CAAC,OAAO,EAAE,uBAAuB,GAAG,UAAU;CAGrD"}
|
|
@@ -12,7 +12,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
12
12
|
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
13
|
};
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
exports.SelectFeedbackCommand =
|
|
15
|
+
exports.SelectFeedbackCommand = void 0;
|
|
16
16
|
/********************************************************************************
|
|
17
17
|
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
18
18
|
*
|
|
@@ -30,31 +30,8 @@ exports.SelectFeedbackCommand = exports.SelectFeedbackAction = void 0;
|
|
|
30
30
|
********************************************************************************/
|
|
31
31
|
const inversify_1 = require("inversify");
|
|
32
32
|
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
SelectFeedbackAction.KIND = 'selectFeedback';
|
|
36
|
-
function is(object) {
|
|
37
|
-
return _glsp_sprotty_1.Action.hasKind(object, SelectFeedbackAction.KIND) && (0, _glsp_sprotty_1.hasArrayProp)(object, 'selectedElementsIDs') && (0, _glsp_sprotty_1.hasArrayProp)(object, 'deselectedElementsIDs');
|
|
38
|
-
}
|
|
39
|
-
SelectFeedbackAction.is = is;
|
|
40
|
-
function create(options) {
|
|
41
|
-
return Object.assign(Object.assign({}, _glsp_sprotty_1.SelectAction.create(options)), { kind: SelectFeedbackAction.KIND });
|
|
42
|
-
}
|
|
43
|
-
SelectFeedbackAction.create = create;
|
|
44
|
-
function addSelection(selectedElementsIDs) {
|
|
45
|
-
return Object.assign(Object.assign({}, _glsp_sprotty_1.SelectAction.addSelection(selectedElementsIDs)), { kind: SelectFeedbackAction.KIND });
|
|
46
|
-
}
|
|
47
|
-
SelectFeedbackAction.addSelection = addSelection;
|
|
48
|
-
function removeSelection(deselectedElementsIDs) {
|
|
49
|
-
return Object.assign(Object.assign({}, _glsp_sprotty_1.SelectAction.removeSelection(deselectedElementsIDs)), { kind: SelectFeedbackAction.KIND });
|
|
50
|
-
}
|
|
51
|
-
SelectFeedbackAction.removeSelection = removeSelection;
|
|
52
|
-
function setSelection(selectedElementsIDs) {
|
|
53
|
-
return Object.assign(Object.assign({}, _glsp_sprotty_1.SelectAction.setSelection(selectedElementsIDs)), { kind: SelectFeedbackAction.KIND });
|
|
54
|
-
}
|
|
55
|
-
SelectFeedbackAction.setSelection = setSelection;
|
|
56
|
-
})(SelectFeedbackAction = exports.SelectFeedbackAction || (exports.SelectFeedbackAction = {}));
|
|
57
|
-
let SelectFeedbackCommand = class SelectFeedbackCommand extends _glsp_sprotty_1.Command {
|
|
33
|
+
const selection_service_1 = require("../../base/selection-service");
|
|
34
|
+
let SelectFeedbackCommand = exports.SelectFeedbackCommand = class SelectFeedbackCommand extends _glsp_sprotty_1.Command {
|
|
58
35
|
constructor(action) {
|
|
59
36
|
super();
|
|
60
37
|
this.action = action;
|
|
@@ -70,11 +47,10 @@ let SelectFeedbackCommand = class SelectFeedbackCommand extends _glsp_sprotty_1.
|
|
|
70
47
|
return this.sprottySelectCommand.redo(context);
|
|
71
48
|
}
|
|
72
49
|
};
|
|
73
|
-
SelectFeedbackCommand.KIND = SelectFeedbackAction.KIND;
|
|
74
|
-
SelectFeedbackCommand = __decorate([
|
|
50
|
+
SelectFeedbackCommand.KIND = selection_service_1.SelectFeedbackAction.KIND;
|
|
51
|
+
exports.SelectFeedbackCommand = SelectFeedbackCommand = __decorate([
|
|
75
52
|
(0, inversify_1.injectable)(),
|
|
76
53
|
__param(0, (0, inversify_1.inject)(_glsp_sprotty_1.TYPES.Action)),
|
|
77
54
|
__metadata("design:paramtypes", [Object])
|
|
78
55
|
], SelectFeedbackCommand);
|
|
79
|
-
|
|
80
|
-
//# sourceMappingURL=select-feedback-action.js.map
|
|
56
|
+
//# sourceMappingURL=select-feedback-command.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"select-feedback-command.js","sourceRoot":"","sources":["../../../src/features/select/select-feedback-command.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA+C;AAC/C,iDAAwH;AACxH,oEAAoE;AAG7D,IAAM,qBAAqB,mCAA3B,MAAM,qBAAsB,SAAQ,uBAAO;IAI9C,YAAyC,MAA4B;QACjE,KAAK,EAAE,CAAC;QAD6B,WAAM,GAAN,MAAM,CAAsB;QAEjE,IAAI,CAAC,oBAAoB,GAAG,IAAI,oCAAoB,iCAAM,MAAM,KAAE,IAAI,EAAE,4BAAY,CAAC,IAAI,IAAG,CAAC;IACjG,CAAC;IAED,OAAO,CAAC,OAAgC;QACpC,OAAO,IAAI,CAAC,oBAAoB,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;IACtD,CAAC;IAED,IAAI,CAAC,OAAgC;QACjC,OAAO,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;IAED,IAAI,CAAC,OAAgC;QACjC,OAAO,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IACnD,CAAC;;AAlBe,0BAAI,GAAG,wCAAoB,CAAC,IAAI,AAA5B,CAA6B;gCADxC,qBAAqB;IADjC,IAAA,sBAAU,GAAE;IAKI,WAAA,IAAA,kBAAM,EAAC,qBAAK,CAAC,MAAM,CAAC,CAAA;;GAJxB,qBAAqB,CAoBjC"}
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { Action, SModelElement, SelectMouseListener } from '../../glsp-sprotty/index';
|
|
17
|
-
import { Ranked } from '
|
|
17
|
+
import { Ranked } from '../../base/ranked';
|
|
18
18
|
/**
|
|
19
19
|
* Ranked select mouse listener that is executed before default mouse listeners when using the RankedMouseTool.
|
|
20
20
|
* This ensures that default mouse listeners are working on a model that has selection changes already applied.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-mouse-listener.d.ts","sourceRoot":"","sources":["../../../src/features/select/select-mouse-listener.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,MAAM,EAGN,aAAa,EAKb,mBAAmB,EAMtB,MAAM,eAAe,CAAC;AACvB,OAAO,
|
|
1
|
+
{"version":3,"file":"select-mouse-listener.d.ts","sourceRoot":"","sources":["../../../src/features/select/select-mouse-listener.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EACH,MAAM,EAGN,aAAa,EAKb,mBAAmB,EAMtB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,MAAM,EAAE,MAAM,mBAAmB,CAAC;AAE3C;;;GAGG;AACH,qBAAa,yBAA0B,SAAQ,mBAAoB,YAAW,MAAM;IAChF,IAAI,EAAE,MAAM,CAA2B;IAE9B,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,CAAC,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC,EAAE;CAiE7F"}
|
|
@@ -17,7 +17,7 @@ exports.RankedSelectMouseListener = void 0;
|
|
|
17
17
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
18
|
********************************************************************************/
|
|
19
19
|
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
20
|
-
const
|
|
20
|
+
const ranked_1 = require("../../base/ranked");
|
|
21
21
|
/**
|
|
22
22
|
* Ranked select mouse listener that is executed before default mouse listeners when using the RankedMouseTool.
|
|
23
23
|
* This ensures that default mouse listeners are working on a model that has selection changes already applied.
|
|
@@ -25,7 +25,7 @@ const model_1 = require("../rank/model");
|
|
|
25
25
|
class RankedSelectMouseListener extends _glsp_sprotty_1.SelectMouseListener {
|
|
26
26
|
constructor() {
|
|
27
27
|
super(...arguments);
|
|
28
|
-
this.rank =
|
|
28
|
+
this.rank = ranked_1.Ranked.DEFAULT_RANK - 1; /* we want to be executed before all default mouse listeners */
|
|
29
29
|
}
|
|
30
30
|
mouseDown(target, event) {
|
|
31
31
|
const result = [];
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"select-mouse-listener.js","sourceRoot":"","sources":["../../../src/features/select/select-mouse-listener.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAeuB;AACvB,
|
|
1
|
+
{"version":3,"file":"select-mouse-listener.js","sourceRoot":"","sources":["../../../src/features/select/select-mouse-listener.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAeuB;AACvB,8CAA2C;AAE3C;;;GAGG;AACH,MAAa,yBAA0B,SAAQ,mCAAmB;IAAlE;;QACI,SAAI,GAAW,eAAM,C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C7F;iBACJ;qBAAM;oBACH,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;iBAC3B;aACJ;iBAAM;gBACH,MAAM,CAAC,IAAI,CAAC,4BAAY,CAAC,MAAM,CAAC,EAAE,qBAAqB,EAAE,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;gBACrF,MAAM,gBAAgB,GAAG,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,YAAY,gCAAgB,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;gBAC5F,IAAI,gBAAgB,CAAC,MAAM,GAAG,CAAC,EAAE;oBAC7B,MAAM,CAAC,IAAI,CAAC,oCAAoB,CAAC,MAAM,CAAC,EAAE,oBAAoB,EAAE,gBAAgB,EAAE,CAAC,CAAC,CAAC;iBACxF;aACJ;SACJ;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AApED,8DAoEC"}
|
|
@@ -33,13 +33,12 @@ const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
|
33
33
|
* This allows external applications to react specifically to this event, e.g. by bringing up the diagram,
|
|
34
34
|
* check their dirty state, show a dialog, etc.
|
|
35
35
|
*/
|
|
36
|
-
let ExternalSourceModelChangedHandler = class ExternalSourceModelChangedHandler {
|
|
36
|
+
let ExternalSourceModelChangedHandler = exports.ExternalSourceModelChangedHandler = class ExternalSourceModelChangedHandler {
|
|
37
37
|
};
|
|
38
|
-
ExternalSourceModelChangedHandler = __decorate([
|
|
38
|
+
exports.ExternalSourceModelChangedHandler = ExternalSourceModelChangedHandler = __decorate([
|
|
39
39
|
(0, inversify_1.injectable)()
|
|
40
40
|
], ExternalSourceModelChangedHandler);
|
|
41
|
-
exports.
|
|
42
|
-
let SourceModelChangedActionHandler = class SourceModelChangedActionHandler {
|
|
41
|
+
let SourceModelChangedActionHandler = exports.SourceModelChangedActionHandler = class SourceModelChangedActionHandler {
|
|
43
42
|
handle(action) {
|
|
44
43
|
if (_glsp_sprotty_1.SourceModelChangedAction.is(action)) {
|
|
45
44
|
if (this.externalModelSourceChangedHandler) {
|
|
@@ -57,7 +56,7 @@ let SourceModelChangedActionHandler = class SourceModelChangedActionHandler {
|
|
|
57
56
|
const severity = 'WARNING';
|
|
58
57
|
this.dispatcher.dispatchAll([
|
|
59
58
|
_glsp_sprotty_1.ServerStatusAction.create(message, { severity, timeout }),
|
|
60
|
-
_glsp_sprotty_1.ServerMessageAction.create(message, { severity
|
|
59
|
+
_glsp_sprotty_1.ServerMessageAction.create(message, { severity })
|
|
61
60
|
]);
|
|
62
61
|
}
|
|
63
62
|
};
|
|
@@ -74,8 +73,7 @@ __decorate([
|
|
|
74
73
|
(0, inversify_1.optional)(),
|
|
75
74
|
__metadata("design:type", ExternalSourceModelChangedHandler)
|
|
76
75
|
], SourceModelChangedActionHandler.prototype, "externalModelSourceChangedHandler", void 0);
|
|
77
|
-
SourceModelChangedActionHandler = __decorate([
|
|
76
|
+
exports.SourceModelChangedActionHandler = SourceModelChangedActionHandler = __decorate([
|
|
78
77
|
(0, inversify_1.injectable)()
|
|
79
78
|
], SourceModelChangedActionHandler);
|
|
80
|
-
exports.SourceModelChangedActionHandler = SourceModelChangedActionHandler;
|
|
81
79
|
//# sourceMappingURL=source-model-changed-action-handler.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"source-model-changed-action-handler.js","sourceRoot":"","sources":["../../../src/features/source-model-watcher/source-model-changed-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAyD;AACzD,iDASuB;AAEvB;;;;;GAKG;
|
|
1
|
+
{"version":3,"file":"source-model-changed-action-handler.js","sourceRoot":"","sources":["../../../src/features/source-model-watcher/source-model-changed-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;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,GAAE;8BACmC,iCAAiC;0FAAC;0CATvE,+BAA+B;IAD3C,IAAA,sBAAU,GAAE;GACA,+BAA+B,CAgC3C"}
|
|
@@ -27,7 +27,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
27
27
|
exports.MetadataPlacer = void 0;
|
|
28
28
|
const inversify_1 = require("inversify");
|
|
29
29
|
const _glsp_sprotty_1 = require("../../glsp-sprotty/index");
|
|
30
|
-
let MetadataPlacer = class MetadataPlacer {
|
|
30
|
+
let MetadataPlacer = exports.MetadataPlacer = class MetadataPlacer {
|
|
31
31
|
decorate(vnode, element) {
|
|
32
32
|
if (element instanceof _glsp_sprotty_1.SModelRoot) {
|
|
33
33
|
(0, _glsp_sprotty_1.setAttr)(vnode, 'data-svg-metadata-api', true);
|
|
@@ -54,8 +54,7 @@ __decorate([
|
|
|
54
54
|
(0, inversify_1.inject)(_glsp_sprotty_1.TYPES.DOMHelper),
|
|
55
55
|
__metadata("design:type", _glsp_sprotty_1.DOMHelper)
|
|
56
56
|
], MetadataPlacer.prototype, "domHelper", void 0);
|
|
57
|
-
MetadataPlacer = __decorate([
|
|
57
|
+
exports.MetadataPlacer = MetadataPlacer = __decorate([
|
|
58
58
|
(0, inversify_1.injectable)()
|
|
59
59
|
], MetadataPlacer);
|
|
60
|
-
exports.MetadataPlacer = MetadataPlacer;
|
|
61
60
|
//# sourceMappingURL=metadata-placer.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"metadata-placer.js","sourceRoot":"","sources":["../../../src/features/svg-metadata/metadata-placer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,yCAA+C;AAE/C,iDAAgI;
|
|
1
|
+
{"version":3,"file":"metadata-placer.js","sourceRoot":"","sources":["../../../src/features/svg-metadata/metadata-placer.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAElF,yCAA+C;AAE/C,iDAAgI;AAGzH,IAAM,cAAc,4BAApB,MAAM,cAAc;IAGvB,QAAQ,CAAC,KAAY,EAAE,OAAsB;QACzC,IAAI,OAAO,YAAY,0BAAU,EAAE;YAC/B,IAAA,uBAAO,EAAC,KAAK,EAAE,uBAAuB,EAAE,IAAI,CAAC,CAAC;SACjD;QAED,IAAA,uBAAO,EAAC,KAAK,EAAE,wBAAwB,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QAEvD,IAAI,OAAO,YAAY,6BAAa,EAAE;YAClC,IAAA,uBAAO,EAAC,KAAK,EAAE,6BAA6B,EAAE,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;SAC1G;QACD,IAAI,OAAO,YAAY,qBAAK,EAAE;YAC1B,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE;gBAC9B,IAAA,uBAAO,EAAC,KAAK,EAAE,kCAAkC,EAAE,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;aAC/G;YACD,IAAI,OAAO,CAAC,MAAM,KAAK,SAAS,EAAE;gBAC9B,IAAA,uBAAO,EAAC,KAAK,EAAE,kCAAkC,EAAE,IAAI,CAAC,SAAS,CAAC,wBAAwB,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC;aAC/G;SACJ;QACD,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,UAAU;QACN,QAAQ;IACZ,CAAC;CACJ,CAAA;AA1BsC;IAAlC,IAAA,kBAAM,EAAC,qBAAK,CAAC,SAAS,CAAC;8BAAsB,yBAAS;iDAAC;yBAD/C,cAAc;IAD1B,IAAA,sBAAU,GAAE;GACA,cAAc,CA2B1B"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AbstractUIExtension, Action, IActionHandler, ICommand, IToolManager, PaletteItem, SModelRoot, SetContextActions } from '../../glsp-sprotty/index';
|
|
2
2
|
import { GLSPActionDispatcher } from '../../base/action-dispatcher';
|
|
3
|
-
import {
|
|
3
|
+
import { EditorContextService, IEditModeListener } from '../../base/editor-context-service';
|
|
4
4
|
import { FocusTracker } from '../../base/focus-tracker';
|
|
5
5
|
export interface EnableToolPaletteAction extends Action {
|
|
6
6
|
kind: typeof EnableToolPaletteAction.KIND;
|
|
@@ -10,7 +10,7 @@ export declare namespace EnableToolPaletteAction {
|
|
|
10
10
|
function is(object: any): object is EnableToolPaletteAction;
|
|
11
11
|
function create(): EnableToolPaletteAction;
|
|
12
12
|
}
|
|
13
|
-
export declare class ToolPalette extends AbstractUIExtension implements IActionHandler,
|
|
13
|
+
export declare class ToolPalette extends AbstractUIExtension implements IActionHandler, IEditModeListener {
|
|
14
14
|
static readonly ID = "tool-palette";
|
|
15
15
|
protected readonly actionDispatcher: GLSPActionDispatcher;
|
|
16
16
|
protected readonly toolManager: IToolManager;
|
|
@@ -19,7 +19,7 @@ export declare class ToolPalette extends AbstractUIExtension implements IActionH
|
|
|
19
19
|
protected paletteItems: PaletteItem[];
|
|
20
20
|
protected paletteItemsCopy: PaletteItem[];
|
|
21
21
|
protected bodyDiv?: HTMLElement;
|
|
22
|
-
protected
|
|
22
|
+
protected lastActiveButton?: HTMLElement;
|
|
23
23
|
protected defaultToolsButton: HTMLElement;
|
|
24
24
|
protected searchField: HTMLInputElement;
|
|
25
25
|
modelRootId: string;
|
|
@@ -47,7 +47,7 @@ export declare class ToolPalette extends AbstractUIExtension implements IActionH
|
|
|
47
47
|
protected onClickStaticToolButton(button: HTMLElement, toolId?: string): (_ev: MouseEvent) => void;
|
|
48
48
|
changeActiveButton(button?: HTMLElement): void;
|
|
49
49
|
handle(action: Action): ICommand | Action | void;
|
|
50
|
-
editModeChanged(
|
|
50
|
+
editModeChanged(_newValue: string, _oldValue: string): void;
|
|
51
51
|
protected clearOnEscape(event: KeyboardEvent): void;
|
|
52
52
|
protected clearToolOnEscape(event: KeyboardEvent): void;
|
|
53
53
|
protected handleSetContextActions(action: SetContextActions): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-palette.d.ts","sourceRoot":"","sources":["../../../src/features/tool-palette/tool-palette.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,mBAAmB,EACnB,MAAM,EAGN,cAAc,EACd,QAAQ,EACR,YAAY,EAEZ,WAAW,EAGX,UAAU,EACV,iBAAiB,EAKpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"tool-palette.d.ts","sourceRoot":"","sources":["../../../src/features/tool-palette/tool-palette.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,mBAAmB,EACnB,MAAM,EAGN,cAAc,EACd,QAAQ,EACR,YAAY,EAEZ,WAAW,EAGX,UAAU,EACV,iBAAiB,EAKpB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,oBAAoB,EAAE,MAAM,8BAA8B,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,mCAAmC,CAAC;AAC5F,OAAO,EAAE,YAAY,EAAE,MAAM,0BAA0B,CAAC;AAUxD,MAAM,WAAW,uBAAwB,SAAQ,MAAM;IACnD,IAAI,EAAE,OAAO,uBAAuB,CAAC,IAAI,CAAC;CAC7C;AAED,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,IAAI,sBAAsB,CAAC;IAExC,SAAgB,EAAE,CAAC,MAAM,EAAE,GAAG,GAAG,MAAM,IAAI,uBAAuB,CAEjE;IAED,SAAgB,MAAM,IAAI,uBAAuB,CAEhD;CACJ;AACD,qBACa,WAAY,SAAQ,mBAAoB,YAAW,cAAc,EAAE,iBAAiB;IAC7F,MAAM,CAAC,QAAQ,CAAC,EAAE,kBAAkB;IAEH,SAAS,CAAC,QAAQ,CAAC,gBAAgB,EAAE,oBAAoB,CAAC;IAC/D,SAAS,CAAC,QAAQ,CAAC,WAAW,EAAE,YAAY,C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dispatcher");
|
|
32
32
|
const editor_context_service_1 = require("../../base/editor-context-service");
|
|
33
33
|
const focus_tracker_1 = require("../../base/focus-tracker");
|
|
34
|
-
const delete_tool_1 = require("../tools/delete-tool");
|
|
35
|
-
const marquee_mouse_tool_1 = require("../tools/marquee-mouse-tool");
|
|
34
|
+
const delete_tool_1 = require("../tools/deletion/delete-tool");
|
|
35
|
+
const marquee_mouse_tool_1 = require("../tools/marquee-selection/marquee-mouse-tool");
|
|
36
36
|
const CLICKED_CSS_CLASS = 'clicked';
|
|
37
37
|
const SEARCH_ICON_ID = 'search';
|
|
38
38
|
const PALETTE_ICON_ID = 'symbol-color';
|
|
@@ -49,8 +49,8 @@ var EnableToolPaletteAction;
|
|
|
49
49
|
return { kind: EnableToolPaletteAction.KIND };
|
|
50
50
|
}
|
|
51
51
|
EnableToolPaletteAction.create = create;
|
|
52
|
-
})(EnableToolPaletteAction
|
|
53
|
-
let ToolPalette = ToolPalette_1 = class ToolPalette extends _glsp_sprotty_1.AbstractUIExtension {
|
|
52
|
+
})(EnableToolPaletteAction || (exports.EnableToolPaletteAction = EnableToolPaletteAction = {}));
|
|
53
|
+
let ToolPalette = exports.ToolPalette = ToolPalette_1 = class ToolPalette extends _glsp_sprotty_1.AbstractUIExtension {
|
|
54
54
|
constructor() {
|
|
55
55
|
super(...arguments);
|
|
56
56
|
this.paletteItemsCopy = [];
|
|
@@ -62,7 +62,7 @@ let ToolPalette = ToolPalette_1 = class ToolPalette extends _glsp_sprotty_1.Abst
|
|
|
62
62
|
return ToolPalette_1.ID;
|
|
63
63
|
}
|
|
64
64
|
postConstruct() {
|
|
65
|
-
this.editorContext.
|
|
65
|
+
this.editorContext.onEditModeChanged(change => this.editModeChanged(change.newValue, change.oldValue));
|
|
66
66
|
}
|
|
67
67
|
initialize() {
|
|
68
68
|
if (!this.paletteItems) {
|
|
@@ -73,7 +73,7 @@ let ToolPalette = ToolPalette_1 = class ToolPalette extends _glsp_sprotty_1.Abst
|
|
|
73
73
|
initializeContents(_containerElement) {
|
|
74
74
|
this.createHeader();
|
|
75
75
|
this.createBody();
|
|
76
|
-
this.
|
|
76
|
+
this.lastActiveButton = this.defaultToolsButton;
|
|
77
77
|
}
|
|
78
78
|
onBeforeShow(_containerElement, root) {
|
|
79
79
|
this.modelRootId = root.id;
|
|
@@ -261,16 +261,16 @@ let ToolPalette = ToolPalette_1 = class ToolPalette extends _glsp_sprotty_1.Abst
|
|
|
261
261
|
};
|
|
262
262
|
}
|
|
263
263
|
changeActiveButton(button) {
|
|
264
|
-
if (this.
|
|
265
|
-
this.
|
|
264
|
+
if (this.lastActiveButton) {
|
|
265
|
+
this.lastActiveButton.classList.remove(CLICKED_CSS_CLASS);
|
|
266
266
|
}
|
|
267
267
|
if (button) {
|
|
268
268
|
button.classList.add(CLICKED_CSS_CLASS);
|
|
269
|
-
this.
|
|
269
|
+
this.lastActiveButton = button;
|
|
270
270
|
}
|
|
271
271
|
else if (this.defaultToolsButton) {
|
|
272
272
|
this.defaultToolsButton.classList.add(CLICKED_CSS_CLASS);
|
|
273
|
-
this.
|
|
273
|
+
this.lastActiveButton = this.defaultToolsButton;
|
|
274
274
|
}
|
|
275
275
|
}
|
|
276
276
|
handle(action) {
|
|
@@ -296,7 +296,7 @@ let ToolPalette = ToolPalette_1 = class ToolPalette extends _glsp_sprotty_1.Abst
|
|
|
296
296
|
}
|
|
297
297
|
}
|
|
298
298
|
}
|
|
299
|
-
editModeChanged(
|
|
299
|
+
editModeChanged(_newValue, _oldValue) {
|
|
300
300
|
this.actionDispatcher.dispatch(_glsp_sprotty_1.SetUIExtensionVisibilityAction.create({ extensionId: ToolPalette_1.ID, visible: !this.editorContext.isReadonly }));
|
|
301
301
|
}
|
|
302
302
|
clearOnEscape(event) {
|
|
@@ -365,10 +365,9 @@ __decorate([
|
|
|
365
365
|
__metadata("design:paramtypes", []),
|
|
366
366
|
__metadata("design:returntype", void 0)
|
|
367
367
|
], ToolPalette.prototype, "postConstruct", null);
|
|
368
|
-
ToolPalette = ToolPalette_1 = __decorate([
|
|
368
|
+
exports.ToolPalette = ToolPalette = ToolPalette_1 = __decorate([
|
|
369
369
|
(0, inversify_1.injectable)()
|
|
370
370
|
], ToolPalette);
|
|
371
|
-
exports.ToolPalette = ToolPalette;
|
|
372
371
|
function compare(a, b) {
|
|
373
372
|
const sortStringBased = a.sortString.localeCompare(b.sortString);
|
|
374
373
|
if (sortStringBased !== 0) {
|