@eclipse-glsp/client 0.9.0-next.c5944e10
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/LICENSE +277 -0
- package/README.md +12 -0
- package/css/command-palette.css +58 -0
- package/css/decoration.css +37 -0
- package/css/glsp-sprotty.css +106 -0
- package/css/tool-palette.css +138 -0
- package/lib/base/action-dispatcher.d.ts +25 -0
- package/lib/base/action-dispatcher.d.ts.map +1 -0
- package/lib/base/action-dispatcher.js +110 -0
- package/lib/base/action-dispatcher.js.map +1 -0
- package/lib/base/actions/context-actions.d.ts +36 -0
- package/lib/base/actions/context-actions.d.ts.map +1 -0
- package/lib/base/actions/context-actions.js +45 -0
- package/lib/base/actions/context-actions.js.map +1 -0
- package/lib/base/actions/edit-mode-action.d.ts +13 -0
- package/lib/base/actions/edit-mode-action.d.ts.map +1 -0
- package/lib/base/actions/edit-mode-action.js +52 -0
- package/lib/base/actions/edit-mode-action.js.map +1 -0
- package/lib/base/actions/edit-validation-actions.d.ts +78 -0
- package/lib/base/actions/edit-validation-actions.d.ts.map +1 -0
- package/lib/base/actions/edit-validation-actions.js +77 -0
- package/lib/base/actions/edit-validation-actions.js.map +1 -0
- package/lib/base/actions/focus-change-action.d.ts +24 -0
- package/lib/base/actions/focus-change-action.d.ts.map +1 -0
- package/lib/base/actions/focus-change-action.js +16 -0
- package/lib/base/actions/focus-change-action.js.map +1 -0
- package/lib/base/args.d.ts +24 -0
- package/lib/base/args.d.ts.map +1 -0
- package/lib/base/args.js +8 -0
- package/lib/base/args.js.map +1 -0
- package/lib/base/auto-complete/auto-complete-actions.d.ts +21 -0
- package/lib/base/auto-complete/auto-complete-actions.d.ts.map +1 -0
- package/lib/base/auto-complete/auto-complete-actions.js +8 -0
- package/lib/base/auto-complete/auto-complete-actions.js.map +1 -0
- package/lib/base/auto-complete/auto-complete-widget.d.ts +88 -0
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -0
- package/lib/base/auto-complete/auto-complete-widget.js +233 -0
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -0
- package/lib/base/auto-complete/validation-decorator.d.ts +47 -0
- package/lib/base/auto-complete/validation-decorator.d.ts.map +1 -0
- package/lib/base/auto-complete/validation-decorator.js +113 -0
- package/lib/base/auto-complete/validation-decorator.js.map +1 -0
- package/lib/base/command-stack.d.ts +7 -0
- package/lib/base/command-stack.d.ts.map +1 -0
- package/lib/base/command-stack.js +49 -0
- package/lib/base/command-stack.js.map +1 -0
- package/lib/base/di.config.d.ts +28 -0
- package/lib/base/di.config.d.ts.map +1 -0
- package/lib/base/di.config.js +81 -0
- package/lib/base/di.config.js.map +1 -0
- package/lib/base/drag-aware-mouse-listener.d.ts +36 -0
- package/lib/base/drag-aware-mouse-listener.d.ts.map +1 -0
- package/lib/base/drag-aware-mouse-listener.js +66 -0
- package/lib/base/drag-aware-mouse-listener.js.map +1 -0
- package/lib/base/editor-context.d.ts +46 -0
- package/lib/base/editor-context.d.ts.map +1 -0
- package/lib/base/editor-context.js +110 -0
- package/lib/base/editor-context.js.map +1 -0
- package/lib/base/focus-tracker.d.ts +9 -0
- package/lib/base/focus-tracker.d.ts.map +1 -0
- package/lib/base/focus-tracker.js +65 -0
- package/lib/base/focus-tracker.js.map +1 -0
- package/lib/base/model/model-registry.d.ts +5 -0
- package/lib/base/model/model-registry.d.ts.map +1 -0
- package/lib/base/model/model-registry.js +43 -0
- package/lib/base/model/model-registry.js.map +1 -0
- package/lib/base/model/update-model-command.d.ts +26 -0
- package/lib/base/model/update-model-command.d.ts.map +1 -0
- package/lib/base/model/update-model-command.js +132 -0
- package/lib/base/model/update-model-command.js.map +1 -0
- package/lib/base/model-initialization-constraint.d.ts +39 -0
- package/lib/base/model-initialization-constraint.d.ts.map +1 -0
- package/lib/base/model-initialization-constraint.js +106 -0
- package/lib/base/model-initialization-constraint.js.map +1 -0
- package/lib/base/operations/operation.d.ts +135 -0
- package/lib/base/operations/operation.d.ts.map +1 -0
- package/lib/base/operations/operation.js +182 -0
- package/lib/base/operations/operation.js.map +1 -0
- package/lib/base/selection-clearing-mouse-listener.d.ts +17 -0
- package/lib/base/selection-clearing-mouse-listener.d.ts.map +1 -0
- package/lib/base/selection-clearing-mouse-listener.js +55 -0
- package/lib/base/selection-clearing-mouse-listener.js.map +1 -0
- package/lib/base/source-uri-aware.d.ts +20 -0
- package/lib/base/source-uri-aware.d.ts.map +1 -0
- package/lib/base/source-uri-aware.js +26 -0
- package/lib/base/source-uri-aware.js.map +1 -0
- package/lib/base/tool-manager/glsp-tool-manager.d.ts +22 -0
- package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +1 -0
- package/lib/base/tool-manager/glsp-tool-manager.js +110 -0
- package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -0
- package/lib/base/types.d.ts +38 -0
- package/lib/base/types.d.ts.map +1 -0
- package/lib/base/types.js +41 -0
- package/lib/base/types.js.map +1 -0
- package/lib/base/view/view-registry.d.ts +5 -0
- package/lib/base/view/view-registry.d.ts.map +1 -0
- package/lib/base/view/view-registry.js +43 -0
- package/lib/base/view/view-registry.js.map +1 -0
- package/lib/features/change-bounds/model.d.ts +38 -0
- package/lib/features/change-bounds/model.d.ts.map +1 -0
- package/lib/features/change-bounds/model.js +61 -0
- package/lib/features/change-bounds/model.js.map +1 -0
- package/lib/features/change-bounds/movement-restrictor.d.ts +14 -0
- package/lib/features/change-bounds/movement-restrictor.d.ts.map +1 -0
- package/lib/features/change-bounds/movement-restrictor.js +90 -0
- package/lib/features/change-bounds/movement-restrictor.js.map +1 -0
- package/lib/features/change-bounds/snap.d.ts +7 -0
- package/lib/features/change-bounds/snap.d.ts.map +1 -0
- package/lib/features/change-bounds/snap.js +44 -0
- package/lib/features/change-bounds/snap.js.map +1 -0
- package/lib/features/command-palette/command-palette-tool.d.ts +12 -0
- package/lib/features/command-palette/command-palette-tool.d.ts.map +1 -0
- package/lib/features/command-palette/command-palette-tool.js +63 -0
- package/lib/features/command-palette/command-palette-tool.js.map +1 -0
- package/lib/features/command-palette/di.config.d.ts +20 -0
- package/lib/features/command-palette/di.config.d.ts.map +1 -0
- package/lib/features/command-palette/di.config.js +33 -0
- package/lib/features/command-palette/di.config.js.map +1 -0
- package/lib/features/command-palette/server-command-palette-provider.d.ts +15 -0
- package/lib/features/command-palette/server-command-palette-provider.d.ts.map +1 -0
- package/lib/features/command-palette/server-command-palette-provider.js +66 -0
- package/lib/features/command-palette/server-command-palette-provider.js.map +1 -0
- package/lib/features/context-menu/delete-element-context-menu.d.ts +8 -0
- package/lib/features/context-menu/delete-element-context-menu.d.ts.map +1 -0
- package/lib/features/context-menu/delete-element-context-menu.js +55 -0
- package/lib/features/context-menu/delete-element-context-menu.js.map +1 -0
- package/lib/features/context-menu/di.config.d.ts +19 -0
- package/lib/features/context-menu/di.config.d.ts.map +1 -0
- package/lib/features/context-menu/di.config.js +36 -0
- package/lib/features/context-menu/di.config.js.map +1 -0
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts +9 -0
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.d.ts.map +1 -0
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js +65 -0
- package/lib/features/context-menu/selection-service-aware-context-menu-mouse-listener.js.map +1 -0
- package/lib/features/context-menu/server-context-menu-provider.d.ts +13 -0
- package/lib/features/context-menu/server-context-menu-provider.d.ts.map +1 -0
- package/lib/features/context-menu/server-context-menu-provider.js +63 -0
- package/lib/features/context-menu/server-context-menu-provider.js.map +1 -0
- package/lib/features/copy-paste/copy-paste-actions.d.ts +50 -0
- package/lib/features/copy-paste/copy-paste-actions.d.ts.map +1 -0
- package/lib/features/copy-paste/copy-paste-actions.js +58 -0
- package/lib/features/copy-paste/copy-paste-actions.js.map +1 -0
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts +32 -0
- package/lib/features/copy-paste/copy-paste-context-menu.d.ts.map +1 -0
- package/lib/features/copy-paste/copy-paste-context-menu.js +151 -0
- package/lib/features/copy-paste/copy-paste-context-menu.js.map +1 -0
- package/lib/features/copy-paste/copy-paste-handler.d.ts +50 -0
- package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -0
- package/lib/features/copy-paste/copy-paste-handler.js +149 -0
- package/lib/features/copy-paste/copy-paste-handler.js.map +1 -0
- package/lib/features/copy-paste/di.config.d.ts +24 -0
- package/lib/features/copy-paste/di.config.d.ts.map +1 -0
- package/lib/features/copy-paste/di.config.js +40 -0
- package/lib/features/copy-paste/di.config.js.map +1 -0
- package/lib/features/decoration/decoration-placer.d.ts +6 -0
- package/lib/features/decoration/decoration-placer.d.ts.map +1 -0
- package/lib/features/decoration/decoration-placer.js +47 -0
- package/lib/features/decoration/decoration-placer.js.map +1 -0
- package/lib/features/decoration/di.config.d.ts +20 -0
- package/lib/features/decoration/di.config.d.ts.map +1 -0
- package/lib/features/decoration/di.config.js +27 -0
- package/lib/features/decoration/di.config.js.map +1 -0
- package/lib/features/edit-label/di.config.d.ts +19 -0
- package/lib/features/edit-label/di.config.d.ts.map +1 -0
- package/lib/features/edit-label/di.config.js +30 -0
- package/lib/features/edit-label/di.config.js.map +1 -0
- package/lib/features/edit-label/edit-label-tool.d.ts +13 -0
- package/lib/features/edit-label/edit-label-tool.d.ts.map +1 -0
- package/lib/features/edit-label/edit-label-tool.js +55 -0
- package/lib/features/edit-label/edit-label-tool.js.map +1 -0
- package/lib/features/edit-label/edit-label-validator.d.ts +20 -0
- package/lib/features/edit-label/edit-label-validator.d.ts.map +1 -0
- package/lib/features/edit-label/edit-label-validator.js +111 -0
- package/lib/features/edit-label/edit-label-validator.js.map +1 -0
- package/lib/features/hints/di.config.d.ts +19 -0
- package/lib/features/hints/di.config.d.ts.map +1 -0
- package/lib/features/hints/di.config.js +30 -0
- package/lib/features/hints/di.config.js.map +1 -0
- package/lib/features/hints/model.d.ts +26 -0
- package/lib/features/hints/model.d.ts.map +1 -0
- package/lib/features/hints/model.js +14 -0
- package/lib/features/hints/model.js.map +1 -0
- package/lib/features/hints/request-type-hints-action.d.ts +32 -0
- package/lib/features/hints/request-type-hints-action.d.ts.map +1 -0
- package/lib/features/hints/request-type-hints-action.js +26 -0
- package/lib/features/hints/request-type-hints-action.js.map +1 -0
- package/lib/features/hints/type-hints.d.ts +75 -0
- package/lib/features/hints/type-hints.d.ts.map +1 -0
- package/lib/features/hints/type-hints.js +199 -0
- package/lib/features/hints/type-hints.js.map +1 -0
- package/lib/features/hover/di.config.d.ts +19 -0
- package/lib/features/hover/di.config.d.ts.map +1 -0
- package/lib/features/hover/di.config.js +46 -0
- package/lib/features/hover/di.config.js.map +1 -0
- package/lib/features/hover/hover.d.ts +11 -0
- package/lib/features/hover/hover.d.ts.map +1 -0
- package/lib/features/hover/hover.js +88 -0
- package/lib/features/hover/hover.js.map +1 -0
- package/lib/features/layout/di.config.d.ts +19 -0
- package/lib/features/layout/di.config.d.ts.map +1 -0
- package/lib/features/layout/di.config.js +26 -0
- package/lib/features/layout/di.config.js.map +1 -0
- package/lib/features/layout/layout-commands.d.ts +137 -0
- package/lib/features/layout/layout-commands.d.ts.map +1 -0
- package/lib/features/layout/layout-commands.js +411 -0
- package/lib/features/layout/layout-commands.js.map +1 -0
- package/lib/features/layout/layout-commands.spec.d.ts +18 -0
- package/lib/features/layout/layout-commands.spec.d.ts.map +1 -0
- package/lib/features/layout/layout-commands.spec.js +297 -0
- package/lib/features/layout/layout-commands.spec.js.map +1 -0
- package/lib/features/model-source-watcher/di.config.d.ts +19 -0
- package/lib/features/model-source-watcher/di.config.d.ts.map +1 -0
- package/lib/features/model-source-watcher/di.config.js +26 -0
- package/lib/features/model-source-watcher/di.config.js.map +1 -0
- package/lib/features/model-source-watcher/model-source-changed-action-handler.d.ts +23 -0
- package/lib/features/model-source-watcher/model-source-changed-action-handler.d.ts.map +1 -0
- package/lib/features/model-source-watcher/model-source-changed-action-handler.js +83 -0
- package/lib/features/model-source-watcher/model-source-changed-action-handler.js.map +1 -0
- package/lib/features/model-source-watcher/model-source-changed-action.d.ts +24 -0
- package/lib/features/model-source-watcher/model-source-changed-action.d.ts.map +1 -0
- package/lib/features/model-source-watcher/model-source-changed-action.js +16 -0
- package/lib/features/model-source-watcher/model-source-changed-action.js.map +1 -0
- package/lib/features/mouse-tool/di.config.d.ts +19 -0
- package/lib/features/mouse-tool/di.config.d.ts.map +1 -0
- package/lib/features/mouse-tool/di.config.js +28 -0
- package/lib/features/mouse-tool/di.config.js.map +1 -0
- package/lib/features/mouse-tool/mouse-tool.d.ts +19 -0
- package/lib/features/mouse-tool/mouse-tool.d.ts.map +1 -0
- package/lib/features/mouse-tool/mouse-tool.js +140 -0
- package/lib/features/mouse-tool/mouse-tool.js.map +1 -0
- package/lib/features/navigation/di.config.d.ts +18 -0
- package/lib/features/navigation/di.config.d.ts.map +1 -0
- package/lib/features/navigation/di.config.js +31 -0
- package/lib/features/navigation/di.config.js.map +1 -0
- package/lib/features/navigation/navigation-action-handler.d.ts +117 -0
- package/lib/features/navigation/navigation-action-handler.d.ts.map +1 -0
- package/lib/features/navigation/navigation-action-handler.js +293 -0
- package/lib/features/navigation/navigation-action-handler.js.map +1 -0
- package/lib/features/navigation/navigation-target-resolver.d.ts +55 -0
- package/lib/features/navigation/navigation-target-resolver.d.ts.map +1 -0
- package/lib/features/navigation/navigation-target-resolver.js +157 -0
- package/lib/features/navigation/navigation-target-resolver.js.map +1 -0
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts +18 -0
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +1 -0
- package/lib/features/navigation/navigation-target-resolver.spec.js +54 -0
- package/lib/features/navigation/navigation-target-resolver.spec.js.map +1 -0
- package/lib/features/rank/model.d.ts +22 -0
- package/lib/features/rank/model.d.ts.map +1 -0
- package/lib/features/rank/model.js +28 -0
- package/lib/features/rank/model.js.map +1 -0
- package/lib/features/reconnect/model.d.ts +30 -0
- package/lib/features/reconnect/model.d.ts.map +1 -0
- package/lib/features/reconnect/model.js +66 -0
- package/lib/features/reconnect/model.js.map +1 -0
- package/lib/features/save/di.config.d.ts +23 -0
- package/lib/features/save/di.config.d.ts.map +1 -0
- package/lib/features/save/di.config.js +29 -0
- package/lib/features/save/di.config.js.map +1 -0
- package/lib/features/save/model.d.ts +22 -0
- package/lib/features/save/model.d.ts.map +1 -0
- package/lib/features/save/model.js +9 -0
- package/lib/features/save/model.js.map +1 -0
- package/lib/features/save/save.d.ts +27 -0
- package/lib/features/save/save.d.ts.map +1 -0
- package/lib/features/save/save.js +42 -0
- package/lib/features/save/save.js.map +1 -0
- package/lib/features/select/di.config.d.ts +19 -0
- package/lib/features/select/di.config.d.ts.map +1 -0
- package/lib/features/select/di.config.js +35 -0
- package/lib/features/select/di.config.js.map +1 -0
- package/lib/features/select/select-feedback-action.d.ts +34 -0
- package/lib/features/select/select-feedback-action.d.ts.map +1 -0
- package/lib/features/select/select-feedback-action.js +97 -0
- package/lib/features/select/select-feedback-action.js.map +1 -0
- package/lib/features/select/select-mouse-listener.d.ts +25 -0
- package/lib/features/select/select-mouse-listener.d.ts.map +1 -0
- package/lib/features/select/select-mouse-listener.js +32 -0
- package/lib/features/select/select-mouse-listener.js.map +1 -0
- package/lib/features/select/selection-service.d.ts +52 -0
- package/lib/features/select/selection-service.d.ts.map +1 -0
- package/lib/features/select/selection-service.js +226 -0
- package/lib/features/select/selection-service.js.map +1 -0
- package/lib/features/select/selection-service.spec.d.ts +2 -0
- package/lib/features/select/selection-service.spec.d.ts.map +1 -0
- package/lib/features/select/selection-service.spec.js +360 -0
- package/lib/features/select/selection-service.spec.js.map +1 -0
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +47 -0
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -0
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +236 -0
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -0
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts +43 -0
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts.map +1 -0
- package/lib/features/tool-feedback/creation-tool-feedback.js +181 -0
- package/lib/features/tool-feedback/creation-tool-feedback.js.map +1 -0
- package/lib/features/tool-feedback/css-feedback.d.ts +32 -0
- package/lib/features/tool-feedback/css-feedback.d.ts.map +1 -0
- package/lib/features/tool-feedback/css-feedback.js +111 -0
- package/lib/features/tool-feedback/css-feedback.js.map +1 -0
- package/lib/features/tool-feedback/di.config.d.ts +19 -0
- package/lib/features/tool-feedback/di.config.d.ts.map +1 -0
- package/lib/features/tool-feedback/di.config.js +53 -0
- package/lib/features/tool-feedback/di.config.js.map +1 -0
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +82 -0
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts.map +1 -0
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +315 -0
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js.map +1 -0
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts +50 -0
- package/lib/features/tool-feedback/feedback-action-dispatcher.d.ts.map +1 -0
- package/lib/features/tool-feedback/feedback-action-dispatcher.js +75 -0
- package/lib/features/tool-feedback/feedback-action-dispatcher.js.map +1 -0
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts +32 -0
- package/lib/features/tool-feedback/marquee-tool-feedback.d.ts.map +1 -0
- package/lib/features/tool-feedback/marquee-tool-feedback.js +111 -0
- package/lib/features/tool-feedback/marquee-tool-feedback.js.map +1 -0
- package/lib/features/tool-feedback/model.d.ts +23 -0
- package/lib/features/tool-feedback/model.d.ts.map +1 -0
- package/lib/features/tool-feedback/model.js +34 -0
- package/lib/features/tool-feedback/model.js.map +1 -0
- package/lib/features/tool-feedback/view.d.ts +16 -0
- package/lib/features/tool-feedback/view.d.ts.map +1 -0
- package/lib/features/tool-feedback/view.js +81 -0
- package/lib/features/tool-feedback/view.js.map +1 -0
- package/lib/features/tool-palette/di.config.d.ts +20 -0
- package/lib/features/tool-palette/di.config.d.ts.map +1 -0
- package/lib/features/tool-palette/di.config.js +29 -0
- package/lib/features/tool-palette/di.config.js.map +1 -0
- package/lib/features/tool-palette/palette-item.d.ts +27 -0
- package/lib/features/tool-palette/palette-item.d.ts.map +1 -0
- package/lib/features/tool-palette/palette-item.js +37 -0
- package/lib/features/tool-palette/palette-item.js.map +1 -0
- package/lib/features/tool-palette/tool-palette.d.ts +56 -0
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -0
- package/lib/features/tool-palette/tool-palette.js +401 -0
- package/lib/features/tool-palette/tool-palette.js.map +1 -0
- package/lib/features/tools/base-glsp-tool.d.ts +20 -0
- package/lib/features/tools/base-glsp-tool.d.ts.map +1 -0
- package/lib/features/tools/base-glsp-tool.js +70 -0
- package/lib/features/tools/base-glsp-tool.js.map +1 -0
- package/lib/features/tools/change-bounds-tool.d.ts +71 -0
- package/lib/features/tools/change-bounds-tool.d.ts.map +1 -0
- package/lib/features/tools/change-bounds-tool.js +371 -0
- package/lib/features/tools/change-bounds-tool.js.map +1 -0
- package/lib/features/tools/delete-tool.d.ts +36 -0
- package/lib/features/tools/delete-tool.d.ts.map +1 -0
- package/lib/features/tools/delete-tool.js +129 -0
- package/lib/features/tools/delete-tool.js.map +1 -0
- package/lib/features/tools/di.config.d.ts +23 -0
- package/lib/features/tools/di.config.d.ts.map +1 -0
- package/lib/features/tools/di.config.js +55 -0
- package/lib/features/tools/di.config.js.map +1 -0
- package/lib/features/tools/edge-creation-tool.d.ts +37 -0
- package/lib/features/tools/edge-creation-tool.d.ts.map +1 -0
- package/lib/features/tools/edge-creation-tool.js +158 -0
- package/lib/features/tools/edge-creation-tool.js.map +1 -0
- package/lib/features/tools/edge-edit-tool.d.ts +50 -0
- package/lib/features/tools/edge-edit-tool.d.ts.map +1 -0
- package/lib/features/tools/edge-edit-tool.js +281 -0
- package/lib/features/tools/edge-edit-tool.js.map +1 -0
- package/lib/features/tools/marquee-mouse-tool.d.ts +37 -0
- package/lib/features/tools/marquee-mouse-tool.d.ts.map +1 -0
- package/lib/features/tools/marquee-mouse-tool.js +226 -0
- package/lib/features/tools/marquee-mouse-tool.js.map +1 -0
- package/lib/features/tools/marquee-tool.d.ts +14 -0
- package/lib/features/tools/marquee-tool.d.ts.map +1 -0
- package/lib/features/tools/marquee-tool.js +69 -0
- package/lib/features/tools/marquee-tool.js.map +1 -0
- package/lib/features/tools/model.d.ts +22 -0
- package/lib/features/tools/model.d.ts.map +1 -0
- package/lib/features/tools/model.js +24 -0
- package/lib/features/tools/model.js.map +1 -0
- package/lib/features/tools/node-creation-tool.d.ts +26 -0
- package/lib/features/tools/node-creation-tool.d.ts.map +1 -0
- package/lib/features/tools/node-creation-tool.js +117 -0
- package/lib/features/tools/node-creation-tool.js.map +1 -0
- package/lib/features/tools/view.d.ts +7 -0
- package/lib/features/tools/view.d.ts.map +1 -0
- package/lib/features/tools/view.js +40 -0
- package/lib/features/tools/view.js.map +1 -0
- package/lib/features/undo-redo/model.d.ts +27 -0
- package/lib/features/undo-redo/model.d.ts.map +1 -0
- package/lib/features/undo-redo/model.js +18 -0
- package/lib/features/undo-redo/model.js.map +1 -0
- package/lib/features/validation/di.config.d.ts +25 -0
- package/lib/features/validation/di.config.d.ts.map +1 -0
- package/lib/features/validation/di.config.js +44 -0
- package/lib/features/validation/di.config.js.map +1 -0
- package/lib/features/validation/issue-marker.d.ts +43 -0
- package/lib/features/validation/issue-marker.d.ts.map +1 -0
- package/lib/features/validation/issue-marker.js +89 -0
- package/lib/features/validation/issue-marker.js.map +1 -0
- package/lib/features/validation/marker-navigator.d.ts +55 -0
- package/lib/features/validation/marker-navigator.d.ts.map +1 -0
- package/lib/features/validation/marker-navigator.js +247 -0
- package/lib/features/validation/marker-navigator.js.map +1 -0
- package/lib/features/validation/marker-navigator.spec.d.ts +18 -0
- package/lib/features/validation/marker-navigator.spec.d.ts.map +1 -0
- package/lib/features/validation/marker-navigator.spec.js +177 -0
- package/lib/features/validation/marker-navigator.spec.js.map +1 -0
- package/lib/features/validation/validate.d.ts +111 -0
- package/lib/features/validation/validate.d.ts.map +1 -0
- package/lib/features/validation/validate.js +290 -0
- package/lib/features/validation/validate.js.map +1 -0
- package/lib/features/viewport/di.config.d.ts +19 -0
- package/lib/features/viewport/di.config.d.ts.map +1 -0
- package/lib/features/viewport/di.config.js +34 -0
- package/lib/features/viewport/di.config.js.map +1 -0
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts +7 -0
- package/lib/features/viewport/glsp-scroll-mouse-listener.d.ts.map +1 -0
- package/lib/features/viewport/glsp-scroll-mouse-listener.js +54 -0
- package/lib/features/viewport/glsp-scroll-mouse-listener.js.map +1 -0
- package/lib/index.d.ts +110 -0
- package/lib/index.d.ts.map +1 -0
- package/lib/index.js +144 -0
- package/lib/index.js.map +1 -0
- package/lib/lib/model.d.ts +24 -0
- package/lib/lib/model.d.ts.map +1 -0
- package/lib/lib/model.js +33 -0
- package/lib/lib/model.js.map +1 -0
- package/lib/model-source/glsp-diagram-server.d.ts +38 -0
- package/lib/model-source/glsp-diagram-server.d.ts.map +1 -0
- package/lib/model-source/glsp-diagram-server.js +88 -0
- package/lib/model-source/glsp-diagram-server.js.map +1 -0
- package/lib/model-source/glsp-server-status.d.ts +30 -0
- package/lib/model-source/glsp-server-status.d.ts.map +1 -0
- package/lib/model-source/glsp-server-status.js +44 -0
- package/lib/model-source/glsp-server-status.js.map +1 -0
- package/lib/utils/argument-utils.d.ts +50 -0
- package/lib/utils/argument-utils.d.ts.map +1 -0
- package/lib/utils/argument-utils.js +112 -0
- package/lib/utils/argument-utils.js.map +1 -0
- package/lib/utils/array-utils.d.ts +28 -0
- package/lib/utils/array-utils.d.ts.map +1 -0
- package/lib/utils/array-utils.js +56 -0
- package/lib/utils/array-utils.js.map +1 -0
- package/lib/utils/html-utils.d.ts +17 -0
- package/lib/utils/html-utils.d.ts.map +1 -0
- package/lib/utils/html-utils.js +30 -0
- package/lib/utils/html-utils.js.map +1 -0
- package/lib/utils/layout-utils.d.ts +41 -0
- package/lib/utils/layout-utils.d.ts.map +1 -0
- package/lib/utils/layout-utils.js +61 -0
- package/lib/utils/layout-utils.js.map +1 -0
- package/lib/utils/marker.d.ts +48 -0
- package/lib/utils/marker.d.ts.map +1 -0
- package/lib/utils/marker.js +48 -0
- package/lib/utils/marker.js.map +1 -0
- package/lib/utils/smodel-util.d.ts +41 -0
- package/lib/utils/smodel-util.d.ts.map +1 -0
- package/lib/utils/smodel-util.js +134 -0
- package/lib/utils/smodel-util.js.map +1 -0
- package/lib/utils/viewpoint-util.d.ts +52 -0
- package/lib/utils/viewpoint-util.d.ts.map +1 -0
- package/lib/utils/viewpoint-util.js +89 -0
- package/lib/utils/viewpoint-util.js.map +1 -0
- package/lib/views/base-view-module.d.ts +24 -0
- package/lib/views/base-view-module.d.ts.map +1 -0
- package/lib/views/base-view-module.js +59 -0
- package/lib/views/base-view-module.js.map +1 -0
- package/lib/views/default-types.d.ts +37 -0
- package/lib/views/default-types.d.ts.map +1 -0
- package/lib/views/default-types.js +47 -0
- package/lib/views/default-types.js.map +1 -0
- package/lib/views/glsp-edge-view.d.ts +11 -0
- package/lib/views/glsp-edge-view.d.ts.map +1 -0
- package/lib/views/glsp-edge-view.js +70 -0
- package/lib/views/glsp-edge-view.js.map +1 -0
- package/lib/views/index.d.ts +22 -0
- package/lib/views/index.d.ts.map +1 -0
- package/lib/views/index.js +34 -0
- package/lib/views/index.js.map +1 -0
- package/lib/views/issue-marker-view.d.ts +8 -0
- package/lib/views/issue-marker-view.d.ts.map +1 -0
- package/lib/views/issue-marker-view.js +59 -0
- package/lib/views/issue-marker-view.js.map +1 -0
- package/lib/views/rounded-corner-view.d.ts +13 -0
- package/lib/views/rounded-corner-view.d.ts.map +1 -0
- package/lib/views/rounded-corner-view.js +82 -0
- package/lib/views/rounded-corner-view.js.map +1 -0
- package/lib/views/rounded-corner.d.ts +37 -0
- package/lib/views/rounded-corner.d.ts.map +1 -0
- package/lib/views/rounded-corner.js +62 -0
- package/lib/views/rounded-corner.js.map +1 -0
- package/package.json +68 -0
- package/src/base/action-dispatcher.ts +103 -0
- package/src/base/actions/context-actions.ts +43 -0
- package/src/base/actions/edit-mode-action.ts +33 -0
- package/src/base/actions/edit-validation-actions.ts +103 -0
- package/src/base/actions/focus-change-action.ts +26 -0
- package/src/base/args.ts +26 -0
- package/src/base/auto-complete/auto-complete-actions.ts +24 -0
- package/src/base/auto-complete/auto-complete-widget.ts +314 -0
- package/src/base/auto-complete/validation-decorator.ts +126 -0
- package/src/base/command-stack.ts +36 -0
- package/src/base/di.config.ts +96 -0
- package/src/base/drag-aware-mouse-listener.ts +69 -0
- package/src/base/editor-context.ts +124 -0
- package/src/base/focus-tracker.ts +50 -0
- package/src/base/model/model-registry.ts +31 -0
- package/src/base/model/update-model-command.ts +118 -0
- package/src/base/model-initialization-constraint.ts +94 -0
- package/src/base/operations/operation.ts +178 -0
- package/src/base/selection-clearing-mouse-listener.ts +43 -0
- package/src/base/source-uri-aware.ts +22 -0
- package/src/base/tool-manager/glsp-tool-manager.ts +97 -0
- package/src/base/types.ts +37 -0
- package/src/base/view/view-registry.ts +31 -0
- package/src/features/change-bounds/model.ts +74 -0
- package/src/features/change-bounds/movement-restrictor.ts +89 -0
- package/src/features/change-bounds/snap.ts +35 -0
- package/src/features/command-palette/command-palette-tool.ts +46 -0
- package/src/features/command-palette/di.config.ts +34 -0
- package/src/features/command-palette/server-command-palette-provider.ts +48 -0
- package/src/features/context-menu/delete-element-context-menu.ts +42 -0
- package/src/features/context-menu/di.config.ts +35 -0
- package/src/features/context-menu/selection-service-aware-context-menu-mouse-listener.ts +50 -0
- package/src/features/context-menu/server-context-menu-provider.ts +46 -0
- package/src/features/copy-paste/copy-paste-actions.ts +60 -0
- package/src/features/copy-paste/copy-paste-context-menu.ts +138 -0
- package/src/features/copy-paste/copy-paste-handler.ts +152 -0
- package/src/features/copy-paste/di.config.ts +45 -0
- package/src/features/decoration/decoration-placer.ts +46 -0
- package/src/features/decoration/di.config.ts +28 -0
- package/src/features/edit-label/di.config.ts +30 -0
- package/src/features/edit-label/edit-label-tool.ts +51 -0
- package/src/features/edit-label/edit-label-validator.ts +104 -0
- package/src/features/hints/di.config.ts +30 -0
- package/src/features/hints/model.ts +34 -0
- package/src/features/hints/request-type-hints-action.ts +36 -0
- package/src/features/hints/type-hints.ts +257 -0
- package/src/features/hover/di.config.ts +61 -0
- package/src/features/hover/hover.ts +95 -0
- package/src/features/layout/di.config.ts +26 -0
- package/src/features/layout/layout-commands.spec.ts +366 -0
- package/src/features/layout/layout-commands.ts +415 -0
- package/src/features/model-source-watcher/di.config.ts +26 -0
- package/src/features/model-source-watcher/model-source-changed-action-handler.ts +70 -0
- package/src/features/model-source-watcher/model-source-changed-action.ts +26 -0
- package/src/features/mouse-tool/di.config.ts +28 -0
- package/src/features/mouse-tool/mouse-tool.ts +139 -0
- package/src/features/navigation/di.config.ts +35 -0
- package/src/features/navigation/navigation-action-handler.ts +272 -0
- package/src/features/navigation/navigation-target-resolver.spec.ts +61 -0
- package/src/features/navigation/navigation-target-resolver.ts +146 -0
- package/src/features/rank/model.ts +29 -0
- package/src/features/reconnect/model.ts +76 -0
- package/src/features/save/di.config.ts +30 -0
- package/src/features/save/model.ts +26 -0
- package/src/features/save/save.ts +35 -0
- package/src/features/select/di.config.ts +35 -0
- package/src/features/select/select-feedback-action.ts +87 -0
- package/src/features/select/select-mouse-listener.ts +26 -0
- package/src/features/select/selection-service.spec.ts +372 -0
- package/src/features/select/selection-service.ts +239 -0
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +244 -0
- package/src/features/tool-feedback/creation-tool-feedback.ts +190 -0
- package/src/features/tool-feedback/css-feedback.ts +98 -0
- package/src/features/tool-feedback/di.config.ts +69 -0
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +327 -0
- package/src/features/tool-feedback/feedback-action-dispatcher.ts +101 -0
- package/src/features/tool-feedback/marquee-tool-feedback.ts +104 -0
- package/src/features/tool-feedback/model.ts +32 -0
- package/src/features/tool-feedback/view.tsx +70 -0
- package/src/features/tool-palette/di.config.ts +30 -0
- package/src/features/tool-palette/palette-item.ts +40 -0
- package/src/features/tool-palette/tool-palette.ts +416 -0
- package/src/features/tools/base-glsp-tool.ts +53 -0
- package/src/features/tools/change-bounds-tool.ts +445 -0
- package/src/features/tools/delete-tool.ts +120 -0
- package/src/features/tools/di.config.ts +56 -0
- package/src/features/tools/edge-creation-tool.ts +171 -0
- package/src/features/tools/edge-edit-tool.ts +325 -0
- package/src/features/tools/marquee-mouse-tool.ts +244 -0
- package/src/features/tools/marquee-tool.ts +52 -0
- package/src/features/tools/model.ts +22 -0
- package/src/features/tools/node-creation-tool.ts +123 -0
- package/src/features/tools/view.tsx +38 -0
- package/src/features/undo-redo/model.ts +26 -0
- package/src/features/validation/di.config.ts +51 -0
- package/src/features/validation/issue-marker.ts +93 -0
- package/src/features/validation/marker-navigator.spec.ts +207 -0
- package/src/features/validation/marker-navigator.ts +249 -0
- package/src/features/validation/validate.ts +274 -0
- package/src/features/viewport/di.config.ts +47 -0
- package/src/features/viewport/glsp-scroll-mouse-listener.ts +50 -0
- package/src/index.ts +115 -0
- package/src/lib/model.ts +27 -0
- package/src/model-source/glsp-diagram-server.ts +114 -0
- package/src/model-source/glsp-server-status.ts +38 -0
- package/src/utils/argument-utils.ts +127 -0
- package/src/utils/array-utils.ts +55 -0
- package/src/utils/html-utils.ts +25 -0
- package/src/utils/layout-utils.ts +97 -0
- package/src/utils/marker.ts +63 -0
- package/src/utils/smodel-util.ts +149 -0
- package/src/utils/viewpoint-util.ts +99 -0
- package/src/views/base-view-module.ts +98 -0
- package/src/views/default-types.ts +48 -0
- package/src/views/glsp-edge-view.tsx +70 -0
- package/src/views/index.ts +21 -0
- package/src/views/issue-marker-view.tsx +55 -0
- package/src/views/rounded-corner-view.tsx +88 -0
- package/src/views/rounded-corner.ts +88 -0
|
@@ -0,0 +1,297 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/********************************************************************************
|
|
4
|
+
* Copyright (c) 2019 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
|
+
/* eslint-disable import/no-deprecated,no-unused-expressions */
|
|
19
|
+
require("mocha");
|
|
20
|
+
require("reflect-metadata");
|
|
21
|
+
const chai_1 = require("chai");
|
|
22
|
+
const inversify_1 = require("inversify");
|
|
23
|
+
const sprotty_1 = require("sprotty");
|
|
24
|
+
const operation_1 = require("../../base/operations/operation");
|
|
25
|
+
const types_1 = require("../../base/types");
|
|
26
|
+
const model_1 = require("../change-bounds/model");
|
|
27
|
+
const selection_service_1 = require("../select/selection-service");
|
|
28
|
+
const feedback_action_dispatcher_1 = require("../tool-feedback/feedback-action-dispatcher");
|
|
29
|
+
const layout_commands_1 = require("./layout-commands");
|
|
30
|
+
class MockActionDispatcher {
|
|
31
|
+
constructor(dispatchedActions = []) {
|
|
32
|
+
this.dispatchedActions = dispatchedActions;
|
|
33
|
+
}
|
|
34
|
+
dispatch(action) {
|
|
35
|
+
this.dispatchedActions.push(action);
|
|
36
|
+
return Promise.resolve();
|
|
37
|
+
}
|
|
38
|
+
dispatchAll(actions) {
|
|
39
|
+
actions.forEach(action => this.dispatchedActions.push(action));
|
|
40
|
+
return Promise.resolve();
|
|
41
|
+
}
|
|
42
|
+
request(action) {
|
|
43
|
+
throw new Error('Method not implemented.');
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
const container = new inversify_1.Container();
|
|
47
|
+
container.load(sprotty_1.defaultModule);
|
|
48
|
+
container.bind(types_1.GLSP_TYPES.IFeedbackActionDispatcher).to(feedback_action_dispatcher_1.FeedbackActionDispatcher).inSingletonScope();
|
|
49
|
+
container.bind(selection_service_1.SelectionService).toSelf().inSingletonScope();
|
|
50
|
+
container.bind(types_1.GLSP_TYPES.SelectionService).toService(selection_service_1.SelectionService);
|
|
51
|
+
container.rebind(sprotty_1.TYPES.IModelFactory).to(sprotty_1.SGraphFactory).inSingletonScope();
|
|
52
|
+
const graphFactory = container.get(sprotty_1.TYPES.IModelFactory);
|
|
53
|
+
const selectionService = container.get(types_1.GLSP_TYPES.SelectionService);
|
|
54
|
+
const actionDispatcher = new MockActionDispatcher();
|
|
55
|
+
const node1 = {
|
|
56
|
+
id: 'node1', type: 'node:circle',
|
|
57
|
+
selected: true
|
|
58
|
+
};
|
|
59
|
+
const node2 = {
|
|
60
|
+
id: 'node2', type: 'node:circle',
|
|
61
|
+
selected: true
|
|
62
|
+
};
|
|
63
|
+
const node3 = {
|
|
64
|
+
id: 'node3', type: 'node:circle',
|
|
65
|
+
selected: true
|
|
66
|
+
};
|
|
67
|
+
const model = createModel();
|
|
68
|
+
function createModel() {
|
|
69
|
+
const root = graphFactory.createRoot({
|
|
70
|
+
id: 'model1',
|
|
71
|
+
type: 'graph',
|
|
72
|
+
children: [node1, node2, node3]
|
|
73
|
+
});
|
|
74
|
+
root.children.forEach(child => applyFeature(child, model_1.resizeFeature));
|
|
75
|
+
return root;
|
|
76
|
+
}
|
|
77
|
+
function applyFeature(element, feature) {
|
|
78
|
+
element.features.add(feature);
|
|
79
|
+
}
|
|
80
|
+
const context = {
|
|
81
|
+
root: model,
|
|
82
|
+
modelFactory: graphFactory,
|
|
83
|
+
duration: 0,
|
|
84
|
+
modelChanged: undefined,
|
|
85
|
+
logger: new sprotty_1.ConsoleLogger(),
|
|
86
|
+
syncer: new sprotty_1.AnimationFrameSyncer()
|
|
87
|
+
};
|
|
88
|
+
const defaultSize = { height: 10, width: 10 };
|
|
89
|
+
describe('AlignElementsCommand', () => {
|
|
90
|
+
it('should align all elements left', () => {
|
|
91
|
+
actionDispatcher.dispatchedActions = [];
|
|
92
|
+
const newModel = initModel([
|
|
93
|
+
{ elementId: 'node1', newPosition: { x: 111, y: 111 }, newSize: defaultSize },
|
|
94
|
+
{ elementId: 'node2', newPosition: { x: 222, y: 222 }, newSize: defaultSize },
|
|
95
|
+
{ elementId: 'node3', newPosition: { x: 333, y: 333 }, newSize: defaultSize }
|
|
96
|
+
]);
|
|
97
|
+
const action = new layout_commands_1.AlignElementsAction(['node1', 'node2', 'node3'], layout_commands_1.Alignment.Left);
|
|
98
|
+
const command = new layout_commands_1.AlignElementsCommand(action, actionDispatcher, selectionService);
|
|
99
|
+
command.execute(newContext(newModel));
|
|
100
|
+
assertAllBounds(new Map([
|
|
101
|
+
['node1', { x: 111, y: 111, width: defaultSize.width, height: defaultSize.height }],
|
|
102
|
+
['node2', { x: 111, y: 222, width: defaultSize.width, height: defaultSize.height }],
|
|
103
|
+
['node3', { x: 111, y: 333, width: defaultSize.width, height: defaultSize.height }]
|
|
104
|
+
]));
|
|
105
|
+
});
|
|
106
|
+
it('should align all elements right', () => {
|
|
107
|
+
actionDispatcher.dispatchedActions = [];
|
|
108
|
+
const newModel = initModel([
|
|
109
|
+
{ elementId: 'node1', newPosition: { x: 111, y: 111 }, newSize: defaultSize },
|
|
110
|
+
{ elementId: 'node2', newPosition: { x: 222, y: 222 }, newSize: defaultSize },
|
|
111
|
+
{ elementId: 'node3', newPosition: { x: 333, y: 333 }, newSize: defaultSize }
|
|
112
|
+
]);
|
|
113
|
+
const action = new layout_commands_1.AlignElementsAction(['node1', 'node2', 'node3'], layout_commands_1.Alignment.Right);
|
|
114
|
+
const command = new layout_commands_1.AlignElementsCommand(action, actionDispatcher, selectionService);
|
|
115
|
+
command.execute(newContext(newModel));
|
|
116
|
+
assertAllBounds(new Map([
|
|
117
|
+
['node1', { x: 333, y: 111, width: defaultSize.width, height: defaultSize.height }],
|
|
118
|
+
['node2', { x: 333, y: 222, width: defaultSize.width, height: defaultSize.height }],
|
|
119
|
+
['node3', { x: 333, y: 333, width: defaultSize.width, height: defaultSize.height }]
|
|
120
|
+
]));
|
|
121
|
+
});
|
|
122
|
+
it('should align all elements center', () => {
|
|
123
|
+
actionDispatcher.dispatchedActions = [];
|
|
124
|
+
const newModel = initModel([
|
|
125
|
+
{ elementId: 'node1', newPosition: { x: 111, y: 111 }, newSize: defaultSize },
|
|
126
|
+
{ elementId: 'node2', newPosition: { x: 222, y: 222 }, newSize: defaultSize },
|
|
127
|
+
{ elementId: 'node3', newPosition: { x: 333, y: 333 }, newSize: defaultSize }
|
|
128
|
+
]);
|
|
129
|
+
const action = new layout_commands_1.AlignElementsAction(['node1', 'node2', 'node3'], layout_commands_1.Alignment.Center);
|
|
130
|
+
const command = new layout_commands_1.AlignElementsCommand(action, actionDispatcher, selectionService);
|
|
131
|
+
command.execute(newContext(newModel));
|
|
132
|
+
assertAllBounds(new Map([
|
|
133
|
+
['node1', { x: 222, y: 111, width: defaultSize.width, height: defaultSize.height }],
|
|
134
|
+
['node2', { x: 222, y: 222, width: defaultSize.width, height: defaultSize.height }],
|
|
135
|
+
['node3', { x: 222, y: 333, width: defaultSize.width, height: defaultSize.height }]
|
|
136
|
+
]));
|
|
137
|
+
});
|
|
138
|
+
it('should align all elements top', () => {
|
|
139
|
+
actionDispatcher.dispatchedActions = [];
|
|
140
|
+
const newModel = initModel([
|
|
141
|
+
{ elementId: 'node1', newPosition: { x: 111, y: 111 }, newSize: defaultSize },
|
|
142
|
+
{ elementId: 'node2', newPosition: { x: 222, y: 222 }, newSize: defaultSize },
|
|
143
|
+
{ elementId: 'node3', newPosition: { x: 333, y: 333 }, newSize: defaultSize }
|
|
144
|
+
]);
|
|
145
|
+
const action = new layout_commands_1.AlignElementsAction(['node1', 'node2', 'node3'], layout_commands_1.Alignment.Top);
|
|
146
|
+
const command = new layout_commands_1.AlignElementsCommand(action, actionDispatcher, selectionService);
|
|
147
|
+
command.execute(newContext(newModel));
|
|
148
|
+
assertAllBounds(new Map([
|
|
149
|
+
['node1', { x: 111, y: 111, width: defaultSize.width, height: defaultSize.height }],
|
|
150
|
+
['node2', { x: 222, y: 111, width: defaultSize.width, height: defaultSize.height }],
|
|
151
|
+
['node3', { x: 333, y: 111, width: defaultSize.width, height: defaultSize.height }]
|
|
152
|
+
]));
|
|
153
|
+
});
|
|
154
|
+
it('should align all elements bottom', () => {
|
|
155
|
+
actionDispatcher.dispatchedActions = [];
|
|
156
|
+
const newModel = initModel([
|
|
157
|
+
{ elementId: 'node1', newPosition: { x: 111, y: 111 }, newSize: defaultSize },
|
|
158
|
+
{ elementId: 'node2', newPosition: { x: 222, y: 222 }, newSize: defaultSize },
|
|
159
|
+
{ elementId: 'node3', newPosition: { x: 333, y: 333 }, newSize: defaultSize }
|
|
160
|
+
]);
|
|
161
|
+
const action = new layout_commands_1.AlignElementsAction(['node1', 'node2', 'node3'], layout_commands_1.Alignment.Bottom);
|
|
162
|
+
const command = new layout_commands_1.AlignElementsCommand(action, actionDispatcher, selectionService);
|
|
163
|
+
command.execute(newContext(newModel));
|
|
164
|
+
assertAllBounds(new Map([
|
|
165
|
+
['node1', { x: 111, y: 333, width: defaultSize.width, height: defaultSize.height }],
|
|
166
|
+
['node2', { x: 222, y: 333, width: defaultSize.width, height: defaultSize.height }],
|
|
167
|
+
['node3', { x: 333, y: 333, width: defaultSize.width, height: defaultSize.height }]
|
|
168
|
+
]));
|
|
169
|
+
});
|
|
170
|
+
it('should align all elements middle', () => {
|
|
171
|
+
actionDispatcher.dispatchedActions = [];
|
|
172
|
+
const newModel = initModel([
|
|
173
|
+
{ elementId: 'node1', newPosition: { x: 111, y: 111 }, newSize: defaultSize },
|
|
174
|
+
{ elementId: 'node2', newPosition: { x: 222, y: 222 }, newSize: defaultSize },
|
|
175
|
+
{ elementId: 'node3', newPosition: { x: 333, y: 333 }, newSize: defaultSize }
|
|
176
|
+
]);
|
|
177
|
+
const action = new layout_commands_1.AlignElementsAction(['node1', 'node2', 'node3'], layout_commands_1.Alignment.Middle);
|
|
178
|
+
const command = new layout_commands_1.AlignElementsCommand(action, actionDispatcher, selectionService);
|
|
179
|
+
command.execute(newContext(newModel));
|
|
180
|
+
assertAllBounds(new Map([
|
|
181
|
+
['node1', { x: 111, y: 222, width: defaultSize.width, height: defaultSize.height }],
|
|
182
|
+
['node2', { x: 222, y: 222, width: defaultSize.width, height: defaultSize.height }],
|
|
183
|
+
['node3', { x: 333, y: 222, width: defaultSize.width, height: defaultSize.height }]
|
|
184
|
+
]));
|
|
185
|
+
});
|
|
186
|
+
});
|
|
187
|
+
describe('ResizeElementsCommand', () => {
|
|
188
|
+
it('should make same width as last', () => {
|
|
189
|
+
actionDispatcher.dispatchedActions = [];
|
|
190
|
+
const newModel = initModel([
|
|
191
|
+
{ elementId: 'node1', newPosition: { x: 100, y: 100 }, newSize: { height: 10, width: 10 } },
|
|
192
|
+
{ elementId: 'node2', newPosition: { x: 100, y: 200 }, newSize: { height: 20, width: 20 } },
|
|
193
|
+
{ elementId: 'node3', newPosition: { x: 100, y: 300 }, newSize: { height: 30, width: 30 } }
|
|
194
|
+
]);
|
|
195
|
+
const action = new layout_commands_1.ResizeElementsAction(['node1', 'node2', 'node3'], layout_commands_1.ResizeDimension.Width, layout_commands_1.Reduce.last);
|
|
196
|
+
const command = new layout_commands_1.ResizeElementsCommand(action, actionDispatcher, selectionService);
|
|
197
|
+
command.execute(newContext(newModel));
|
|
198
|
+
// resize is keeping the center, so the X moves by diff / 2
|
|
199
|
+
assertAllBoundsInChangeBounds(new Map([
|
|
200
|
+
['node1', { x: 90, y: 100, height: 10, width: 30 }],
|
|
201
|
+
['node2', { x: 95, y: 200, height: 20, width: 30 }],
|
|
202
|
+
['node3', { x: 100, y: 300, height: 30, width: 30 }]
|
|
203
|
+
]));
|
|
204
|
+
});
|
|
205
|
+
it('should make same height as last', () => {
|
|
206
|
+
actionDispatcher.dispatchedActions = [];
|
|
207
|
+
const newModel = initModel([
|
|
208
|
+
{ elementId: 'node1', newPosition: { x: 100, y: 100 }, newSize: { height: 10, width: 10 } },
|
|
209
|
+
{ elementId: 'node2', newPosition: { x: 100, y: 200 }, newSize: { height: 20, width: 20 } },
|
|
210
|
+
{ elementId: 'node3', newPosition: { x: 100, y: 300 }, newSize: { height: 30, width: 30 } }
|
|
211
|
+
]);
|
|
212
|
+
const action = new layout_commands_1.ResizeElementsAction(['node1', 'node2', 'node3'], layout_commands_1.ResizeDimension.Height, layout_commands_1.Reduce.last);
|
|
213
|
+
const command = new layout_commands_1.ResizeElementsCommand(action, actionDispatcher, selectionService);
|
|
214
|
+
command.execute(newContext(newModel));
|
|
215
|
+
// resize is keeping the center, so the Y moves by diff / 2
|
|
216
|
+
assertAllBoundsInChangeBounds(new Map([
|
|
217
|
+
['node1', { x: 100, y: 90, height: 30, width: 10 }],
|
|
218
|
+
['node2', { x: 100, y: 195, height: 30, width: 20 }],
|
|
219
|
+
['node3', { x: 100, y: 300, height: 30, width: 30 }]
|
|
220
|
+
]));
|
|
221
|
+
});
|
|
222
|
+
it('should make same width and height as last', () => {
|
|
223
|
+
actionDispatcher.dispatchedActions = [];
|
|
224
|
+
const newModel = initModel([
|
|
225
|
+
{ elementId: 'node1', newPosition: { x: 100, y: 100 }, newSize: { height: 10, width: 10 } },
|
|
226
|
+
{ elementId: 'node2', newPosition: { x: 100, y: 200 }, newSize: { height: 20, width: 20 } },
|
|
227
|
+
{ elementId: 'node3', newPosition: { x: 100, y: 300 }, newSize: { height: 30, width: 30 } }
|
|
228
|
+
]);
|
|
229
|
+
const action = new layout_commands_1.ResizeElementsAction(['node1', 'node2', 'node3'], layout_commands_1.ResizeDimension.Width_And_Height, layout_commands_1.Reduce.last);
|
|
230
|
+
const command = new layout_commands_1.ResizeElementsCommand(action, actionDispatcher, selectionService);
|
|
231
|
+
command.execute(newContext(newModel));
|
|
232
|
+
// resize is keeping the center, so the Y moves by diff / 2
|
|
233
|
+
assertAllBoundsInChangeBounds(new Map([
|
|
234
|
+
['node1', { x: 90, y: 90, height: 30, width: 30 }],
|
|
235
|
+
['node2', { x: 95, y: 195, height: 30, width: 30 }],
|
|
236
|
+
['node3', { x: 100, y: 300, height: 30, width: 30 }]
|
|
237
|
+
]));
|
|
238
|
+
});
|
|
239
|
+
});
|
|
240
|
+
function initModel(elementAndBounds) {
|
|
241
|
+
const mySetBoundsAction = new sprotty_1.SetBoundsAction(elementAndBounds);
|
|
242
|
+
const setBoundsCommand = new sprotty_1.SetBoundsCommand(mySetBoundsAction);
|
|
243
|
+
return setBoundsCommand.execute(context);
|
|
244
|
+
}
|
|
245
|
+
function newContext(root) {
|
|
246
|
+
return {
|
|
247
|
+
root: root,
|
|
248
|
+
modelFactory: graphFactory,
|
|
249
|
+
duration: 0,
|
|
250
|
+
modelChanged: undefined,
|
|
251
|
+
logger: new sprotty_1.ConsoleLogger(),
|
|
252
|
+
syncer: new sprotty_1.AnimationFrameSyncer()
|
|
253
|
+
};
|
|
254
|
+
}
|
|
255
|
+
function assertAllBounds(allBounds) {
|
|
256
|
+
allBounds.forEach((bounds, nodeId) => assertBounds(nodeId, bounds));
|
|
257
|
+
}
|
|
258
|
+
function assertAllBoundsInChangeBounds(allBounds) {
|
|
259
|
+
allBounds.forEach((bounds, nodeId) => assertBoundsInChangeBoundsActions(nodeId, bounds));
|
|
260
|
+
}
|
|
261
|
+
function assertBounds(nodeId, bounds) {
|
|
262
|
+
assertBoundsInMoves(nodeId, bounds);
|
|
263
|
+
assertBoundsInChangeBoundsActions(nodeId, bounds);
|
|
264
|
+
}
|
|
265
|
+
function assertBoundsInMoves(nodeId, bounds) {
|
|
266
|
+
const moves = dispatchedElementMoves();
|
|
267
|
+
const move = getMoveById(nodeId, moves);
|
|
268
|
+
chai_1.expect(move.toPosition.x).to.be.equal(bounds.x);
|
|
269
|
+
chai_1.expect(move.toPosition.y).to.be.equal(bounds.y);
|
|
270
|
+
}
|
|
271
|
+
function assertBoundsInChangeBoundsActions(nodeId, bounds) {
|
|
272
|
+
const allChangeBounds = dispatchedChangeBounds();
|
|
273
|
+
const changeBounds = getElementAndBoundsById(nodeId, allChangeBounds);
|
|
274
|
+
chai_1.expect(changeBounds.newPosition.x).to.be.equal(bounds.x);
|
|
275
|
+
chai_1.expect(changeBounds.newPosition.y).to.be.equal(bounds.y);
|
|
276
|
+
chai_1.expect(changeBounds.newSize.height).to.be.equal(bounds.height);
|
|
277
|
+
chai_1.expect(changeBounds.newSize.width).to.be.equal(bounds.width);
|
|
278
|
+
}
|
|
279
|
+
function getMoveById(id, moves) {
|
|
280
|
+
return moves.filter(m => m.elementId === id)[0];
|
|
281
|
+
}
|
|
282
|
+
function getElementAndBoundsById(id, elementAndBounds) {
|
|
283
|
+
return elementAndBounds.filter(m => m.elementId === id)[0];
|
|
284
|
+
}
|
|
285
|
+
function dispatchedElementMoves() {
|
|
286
|
+
return actionDispatcher.dispatchedActions.filter(isMoveAction).map(a => a.moves).reduce((acc, val) => acc.concat(val), []);
|
|
287
|
+
}
|
|
288
|
+
function dispatchedChangeBounds() {
|
|
289
|
+
return actionDispatcher.dispatchedActions.filter(isChangeBounds).map(a => a.newBounds).reduce((acc, val) => acc.concat(val), []);
|
|
290
|
+
}
|
|
291
|
+
function isMoveAction(action) {
|
|
292
|
+
return action.kind === sprotty_1.MoveCommand.KIND;
|
|
293
|
+
}
|
|
294
|
+
function isChangeBounds(action) {
|
|
295
|
+
return action.kind === operation_1.ChangeBoundsOperation.KIND;
|
|
296
|
+
}
|
|
297
|
+
//# sourceMappingURL=layout-commands.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-commands.spec.js","sourceRoot":"","sources":["../../../src/features/layout/layout-commands.spec.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,+DAA+D;AAC/D,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AAc;IAChC,OAAO,MAAM,CAAC,IAAI,KAAK,qBAAW,CAAC,IAAI,CAAC;AAC5C,CAAC;AAED,SAAS,cAAc,CAAC,MAAc;IAClC,OAAO,MAAM,CAAC,IAAI,KAAK,iCAAqB,CAAC,IAAI,CAAC;AACtD,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2020 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
|
+
declare const modelSourceWatcherModule: ContainerModule;
|
|
18
|
+
export default modelSourceWatcherModule;
|
|
19
|
+
//# sourceMappingURL=di.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/model-source-watcher/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,QAAA,MAAM,wBAAwB,iBAE5B,CAAC;AAEH,eAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/********************************************************************************
|
|
4
|
+
* Copyright (c) 2020 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 lib_1 = require("sprotty/lib");
|
|
20
|
+
const model_source_changed_action_1 = require("./model-source-changed-action");
|
|
21
|
+
const model_source_changed_action_handler_1 = require("./model-source-changed-action-handler");
|
|
22
|
+
const modelSourceWatcherModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
23
|
+
lib_1.configureActionHandler({ bind, isBound }, model_source_changed_action_1.ModelSourceChangedAction.KIND, model_source_changed_action_handler_1.ModelSourceChangedActionHandler);
|
|
24
|
+
});
|
|
25
|
+
exports.default = modelSourceWatcherModule;
|
|
26
|
+
//# sourceMappingURL=di.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/model-source-watcher/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAAqD;AAErD,+EAAyE;AACzE,+FAAwF;AAExF,MAAM,wBAAwB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IAC5E,4BAAsB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,sDAAwB,CAAC,IAAI,EAAE,qEAA+B,CAAC,CAAC;AAC9G,CAAC,CAAC,CAAC;AAEH,kBAAe,wBAAwB,CAAC"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Action, IActionDispatcher, IActionHandler, ViewerOptions } from 'sprotty/lib';
|
|
2
|
+
import { ModelSourceChangedAction } from './model-source-changed-action';
|
|
3
|
+
/**
|
|
4
|
+
* An external handler of the model source change event.
|
|
5
|
+
*
|
|
6
|
+
* This allows external applications to react specifically to this event, e.g. by bringing up the diagram,
|
|
7
|
+
* check their dirty state, show a dialog, etc.
|
|
8
|
+
*/
|
|
9
|
+
export declare abstract class ExternalModelSourceChangedHandler {
|
|
10
|
+
/**
|
|
11
|
+
* Notifies about a change of the model source.
|
|
12
|
+
* @returns actions to be dispatched after the notification.
|
|
13
|
+
*/
|
|
14
|
+
abstract notifyModelSourceChange(modelSourceName: string, options: ViewerOptions): Promise<Action[]>;
|
|
15
|
+
}
|
|
16
|
+
export declare class ModelSourceChangedActionHandler implements IActionHandler {
|
|
17
|
+
protected dispatcher: IActionDispatcher;
|
|
18
|
+
protected options: ViewerOptions;
|
|
19
|
+
protected externalModelSourceChangedHandler?: ExternalModelSourceChangedHandler;
|
|
20
|
+
handle(action: Action): void;
|
|
21
|
+
protected showSimpleNotification(action: ModelSourceChangedAction): void;
|
|
22
|
+
}
|
|
23
|
+
//# sourceMappingURL=model-source-changed-action-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-source-changed-action-handler.d.ts","sourceRoot":"","sources":["../../../src/features/model-source-watcher/model-source-changed-action-handler.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,MAAM,EAAE,iBAAiB,EAAE,cAAc,EAAS,aAAa,EAAE,MAAM,aAAa,CAAC;AAG9F,OAAO,EAA8B,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAErG;;;;;GAKG;AACH,8BACsB,iCAAiC;IACnD;;;OAGG;IACH,QAAQ,CAAC,uBAAuB,CAAC,eAAe,EAAE,MAAM,EAAE,OAAO,EAAE,aAAa,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC;CACvG;AAED,qBACa,+BAAgC,YAAW,cAAc;IAGlE,SAAS,CAAC,UAAU,EAAE,iBAAiB,CAAC;IAGxC,SAAS,CAAC,OAAO,EAAE,aAAa,CAAC;IAGjC,SAAS,CAAC,iCAAiC,CAAC,EAAE,iCAAiC,CAAC;IAEhF,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI;IAY5B,SAAS,CAAC,sBAAsB,CAAC,MAAM,EAAE,wBAAwB,GAAG,IAAI;CAS3E"}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ModelSourceChangedActionHandler = exports.ExternalModelSourceChangedHandler = void 0;
|
|
13
|
+
/********************************************************************************
|
|
14
|
+
* Copyright (c) 2020 EclipseSource and others.
|
|
15
|
+
*
|
|
16
|
+
* This program and the accompanying materials are made available under the
|
|
17
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
18
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
19
|
+
*
|
|
20
|
+
* This Source Code may also be made available under the following Secondary
|
|
21
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
22
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
23
|
+
* with the GNU Classpath Exception which is available at
|
|
24
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
25
|
+
*
|
|
26
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
27
|
+
********************************************************************************/
|
|
28
|
+
const inversify_1 = require("inversify");
|
|
29
|
+
const lib_1 = require("sprotty/lib");
|
|
30
|
+
const glsp_server_status_1 = require("../../model-source/glsp-server-status");
|
|
31
|
+
const model_source_changed_action_1 = require("./model-source-changed-action");
|
|
32
|
+
/**
|
|
33
|
+
* An external handler of the model source change event.
|
|
34
|
+
*
|
|
35
|
+
* This allows external applications to react specifically to this event, e.g. by bringing up the diagram,
|
|
36
|
+
* check their dirty state, show a dialog, etc.
|
|
37
|
+
*/
|
|
38
|
+
let ExternalModelSourceChangedHandler = class ExternalModelSourceChangedHandler {
|
|
39
|
+
};
|
|
40
|
+
ExternalModelSourceChangedHandler = __decorate([
|
|
41
|
+
inversify_1.injectable()
|
|
42
|
+
], ExternalModelSourceChangedHandler);
|
|
43
|
+
exports.ExternalModelSourceChangedHandler = ExternalModelSourceChangedHandler;
|
|
44
|
+
let ModelSourceChangedActionHandler = class ModelSourceChangedActionHandler {
|
|
45
|
+
handle(action) {
|
|
46
|
+
if (model_source_changed_action_1.isModelSourceChangedAction(action)) {
|
|
47
|
+
if (this.externalModelSourceChangedHandler) {
|
|
48
|
+
this.externalModelSourceChangedHandler
|
|
49
|
+
.notifyModelSourceChange(action.modelSourceName, this.options)
|
|
50
|
+
.then(actions => this.dispatcher.dispatchAll(actions));
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
this.showSimpleNotification(action);
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
showSimpleNotification(action) {
|
|
57
|
+
const message = `The model source ${action.modelSourceName} has changed. You might want to consider reloading.`;
|
|
58
|
+
const timeout = 0;
|
|
59
|
+
const severity = 'WARNING';
|
|
60
|
+
this.dispatcher.dispatchAll([
|
|
61
|
+
{ kind: glsp_server_status_1.GLSPServerStatusAction.KIND, severity, timeout, message },
|
|
62
|
+
{ kind: glsp_server_status_1.ServerMessageAction.KIND, severity, timeout, message }
|
|
63
|
+
]);
|
|
64
|
+
}
|
|
65
|
+
};
|
|
66
|
+
__decorate([
|
|
67
|
+
inversify_1.inject(lib_1.TYPES.IActionDispatcher),
|
|
68
|
+
__metadata("design:type", Object)
|
|
69
|
+
], ModelSourceChangedActionHandler.prototype, "dispatcher", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
inversify_1.inject(lib_1.TYPES.ViewerOptions),
|
|
72
|
+
__metadata("design:type", Object)
|
|
73
|
+
], ModelSourceChangedActionHandler.prototype, "options", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
inversify_1.inject(ExternalModelSourceChangedHandler),
|
|
76
|
+
inversify_1.optional(),
|
|
77
|
+
__metadata("design:type", ExternalModelSourceChangedHandler)
|
|
78
|
+
], ModelSourceChangedActionHandler.prototype, "externalModelSourceChangedHandler", void 0);
|
|
79
|
+
ModelSourceChangedActionHandler = __decorate([
|
|
80
|
+
inversify_1.injectable()
|
|
81
|
+
], ModelSourceChangedActionHandler);
|
|
82
|
+
exports.ModelSourceChangedActionHandler = ModelSourceChangedActionHandler;
|
|
83
|
+
//# sourceMappingURL=model-source-changed-action-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-source-changed-action-handler.js","sourceRoot":"","sources":["../../../src/features/model-source-watcher/model-source-changed-action-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAyD;AACzD,qCAA8F;AAE9F,8EAAoG;AACpG,+EAAqG;AAErG;;;;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E;GACA,+BAA+B,CAgC3C;AAhCY,0EAA+B"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2020 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 { Action } from 'sprotty';
|
|
17
|
+
export declare class ModelSourceChangedAction implements Action {
|
|
18
|
+
readonly modelSourceName: string;
|
|
19
|
+
static KIND: string;
|
|
20
|
+
readonly kind: string;
|
|
21
|
+
constructor(modelSourceName: string);
|
|
22
|
+
}
|
|
23
|
+
export declare function isModelSourceChangedAction(action: Action): action is ModelSourceChangedAction;
|
|
24
|
+
//# sourceMappingURL=model-source-changed-action.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-source-changed-action.d.ts","sourceRoot":"","sources":["../../../src/features/model-source-watcher/model-source-changed-action.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,MAAM,SAAS,CAAC;AAEjC,qBAAa,wBAAyB,YAAW,MAAM;aAGvB,eAAe,EAAE,MAAM;IAFnD,MAAM,CAAC,IAAI,SAAwB;IACnC,QAAQ,CAAC,IAAI,SAAiC;gBAClB,eAAe,EAAE,MAAM;CACtD;AAED,wBAAgB,0BAA0B,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,wBAAwB,CAE7F"}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isModelSourceChangedAction = exports.ModelSourceChangedAction = void 0;
|
|
4
|
+
class ModelSourceChangedAction {
|
|
5
|
+
constructor(modelSourceName) {
|
|
6
|
+
this.modelSourceName = modelSourceName;
|
|
7
|
+
this.kind = ModelSourceChangedAction.KIND;
|
|
8
|
+
}
|
|
9
|
+
}
|
|
10
|
+
exports.ModelSourceChangedAction = ModelSourceChangedAction;
|
|
11
|
+
ModelSourceChangedAction.KIND = 'modelSourceChanged';
|
|
12
|
+
function isModelSourceChangedAction(action) {
|
|
13
|
+
return action.kind === ModelSourceChangedAction.KIND;
|
|
14
|
+
}
|
|
15
|
+
exports.isModelSourceChangedAction = isModelSourceChangedAction;
|
|
16
|
+
//# sourceMappingURL=model-source-changed-action.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model-source-changed-action.js","sourceRoot":"","sources":["../../../src/features/model-source-watcher/model-source-changed-action.ts"],"names":[],"mappings":";;;AAiBA,MAAa,wBAAwB;IAGjC,YAA4B,eAAuB;QAAvB,oBAAe,GAAf,eAAe,CAAQ;QAD1C,SAAI,GAAG,wBAAwB,CAAC,IAAI,CAAC;IACS,CAAC;;AAH5D,4DAIC;AAHU,6BAAI,GAAG,oBAAoB,CAAC;AAKvC,SAAgB,0BAA0B,CAAC,MAAc;IACrD,OAAO,MAAM,CAAC,IAAI,KAAK,wBAAwB,CAAC,IAAI,CAAC;AACzD,CAAC;AAFD,gEAEC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2019 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
|
+
declare const glspMouseToolModule: ContainerModule;
|
|
18
|
+
export default glspMouseToolModule;
|
|
19
|
+
//# sourceMappingURL=di.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/mouse-tool/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAM5C,QAAA,MAAM,mBAAmB,iBAIvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/********************************************************************************
|
|
4
|
+
* Copyright (c) 2019 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 sprotty_1 = require("sprotty");
|
|
20
|
+
const types_1 = require("../../base/types");
|
|
21
|
+
const mouse_tool_1 = require("./mouse-tool");
|
|
22
|
+
const glspMouseToolModule = new inversify_1.ContainerModule((bind, _unbind, _isBound, rebind) => {
|
|
23
|
+
bind(mouse_tool_1.RankingMouseTool).toSelf().inSingletonScope();
|
|
24
|
+
bind(types_1.GLSP_TYPES.MouseTool).toService(mouse_tool_1.RankingMouseTool);
|
|
25
|
+
rebind(sprotty_1.MouseTool).toService(mouse_tool_1.RankingMouseTool);
|
|
26
|
+
});
|
|
27
|
+
exports.default = glspMouseToolModule;
|
|
28
|
+
//# sourceMappingURL=di.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/mouse-tool/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAAoC;AAEpC,4CAA8C;AAC9C,6CAAgD;AAEhD,MAAM,mBAAmB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAE,EAAE;IAChF,IAAI,CAAC,6BAAgB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACnD,IAAI,CAAC,kBAAU,CAAC,SAAS,CAAC,CAAC,SAAS,CAAC,6BAAgB,CAAC,CAAC;IACvD,MAAM,CAAC,mBAAS,CAAC,CAAC,SAAS,CAAC,6BAAgB,CAAC,CAAC;AAClD,CAAC,CAAC,CAAC;AAEH,kBAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { VNode } from 'snabbdom';
|
|
2
|
+
import { MouseListener, MouseTool, SModelElement, SModelRoot } from 'sprotty';
|
|
3
|
+
export interface IMouseTool {
|
|
4
|
+
register(mouseListener: MouseListener): void;
|
|
5
|
+
deregister(mouseListener: MouseListener): void;
|
|
6
|
+
}
|
|
7
|
+
export declare class RankingMouseTool extends MouseTool implements IMouseTool {
|
|
8
|
+
protected mouseListeners: MouseListener[];
|
|
9
|
+
protected rankedMouseListeners: Map<number, MouseListener[]>;
|
|
10
|
+
constructor(mouseListeners?: MouseListener[]);
|
|
11
|
+
register(mouseListener: MouseListener): void;
|
|
12
|
+
deregister(mouseListener: MouseListener): void;
|
|
13
|
+
decorate(vnode: VNode, element: SModelElement): VNode;
|
|
14
|
+
contextMenu(model: SModelRoot, event: MouseEvent): void;
|
|
15
|
+
protected handleEvent<K extends keyof MouseListener>(methodName: K, model: SModelRoot, event: MouseEvent): void;
|
|
16
|
+
notifyListenersByRank<K extends keyof MouseListener>(element: SModelElement, methodName: K, model: SModelRoot, event: MouseEvent): Promise<void>;
|
|
17
|
+
dispatchActions<K extends keyof MouseListener>(mouseListeners: MouseListener[], methodName: K, element: SModelElement, event: MouseEvent): Promise<void>;
|
|
18
|
+
}
|
|
19
|
+
//# sourceMappingURL=mouse-tool.d.ts.map
|