@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,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/********************************************************************************
|
|
4
|
+
* Copyright (c) 2021 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 glsp_scroll_mouse_listener_1 = require("./glsp-scroll-mouse-listener");
|
|
21
|
+
const glspViewportModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
22
|
+
sprotty_1.configureCommand({ bind, isBound }, sprotty_1.CenterCommand);
|
|
23
|
+
sprotty_1.configureCommand({ bind, isBound }, sprotty_1.FitToScreenCommand);
|
|
24
|
+
sprotty_1.configureCommand({ bind, isBound }, sprotty_1.GetViewportCommand);
|
|
25
|
+
sprotty_1.configureCommand({ bind, isBound }, sprotty_1.SetViewportCommand);
|
|
26
|
+
bind(sprotty_1.TYPES.KeyListener).to(sprotty_1.CenterKeyboardListener);
|
|
27
|
+
bind(sprotty_1.TYPES.MouseListener).to(sprotty_1.ZoomMouseListener);
|
|
28
|
+
bind(glsp_scroll_mouse_listener_1.GLSPScrollMouseListener).toSelf().inSingletonScope();
|
|
29
|
+
bind(sprotty_1.TYPES.MouseListener).toService(glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
30
|
+
sprotty_1.configureActionHandler({ bind, isBound }, sprotty_1.EnableToolsAction.KIND, glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
31
|
+
sprotty_1.configureActionHandler({ bind, isBound }, sprotty_1.EnableDefaultToolsAction.KIND, glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
32
|
+
});
|
|
33
|
+
exports.default = glspViewportModule;
|
|
34
|
+
//# sourceMappingURL=di.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAYiB;AAEjB,6EAAuE;AAEvE,MAAM,kBAAkB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACtE,0BAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,uBAAa,CAAC,CAAC;IACnD,0BAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,4BAAkB,CAAC,CAAC;IACxD,0BAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,4BAAkB,CAAC,CAAC;IACxD,0BAAgB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,4BAAkB,CAAC,CAAC;IACxD,IAAI,CAAC,eAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,gCAAsB,CAAC,CAAC;IACnD,IAAI,CAAC,eAAK,CAAC,aAAa,CAAC,CAAC,EAAE,CAAC,2BAAiB,CAAC,CAAC;IAChD,IAAI,CAAC,oDAAuB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IAC1D,IAAI,CAAC,eAAK,CAAC,aAAa,CAAC,CAAC,SAAS,CAAC,oDAAuB,CAAC,CAAC;IAE7D,gCAAsB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,2BAAiB,CAAC,IAAI,EAAE,oDAAuB,CAAC,CAAC;IAC3F,gCAAsB,CAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,kCAAwB,CAAC,IAAI,EAAE,oDAAuB,CAAC,CAAC;AACtG,CAAC,CAAC,CAAC;AAEH,kBAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { Action, IActionHandler, ICommand, ScrollMouseListener, SModelElement } from 'sprotty';
|
|
2
|
+
export declare class GLSPScrollMouseListener extends ScrollMouseListener implements IActionHandler {
|
|
3
|
+
preventScrolling: boolean;
|
|
4
|
+
handle(action: Action): void | Action | ICommand;
|
|
5
|
+
mouseDown(target: SModelElement, event: MouseEvent): Action[];
|
|
6
|
+
}
|
|
7
|
+
//# sourceMappingURL=glsp-scroll-mouse-listener.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glsp-scroll-mouse-listener.d.ts","sourceRoot":"","sources":["../../../src/features/viewport/glsp-scroll-mouse-listener.ts"],"names":[],"mappings":"AAgBA,OAAO,EACH,MAAM,EAGN,cAAc,EACd,QAAQ,EACR,mBAAmB,EACnB,aAAa,EAChB,MAAM,SAAS,CAAC;AAIjB,qBACa,uBAAwB,SAAQ,mBAAoB,YAAW,cAAc;IAEtF,gBAAgB,UAAS;IAEzB,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ;IAUhD,SAAS,CAAC,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,UAAU,GAAG,MAAM,EAAE;CAMhE"}
|
|
@@ -0,0 +1,54 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.GLSPScrollMouseListener = void 0;
|
|
10
|
+
/********************************************************************************
|
|
11
|
+
* Copyright (c) 2021 EclipseSource and others.
|
|
12
|
+
*
|
|
13
|
+
* This program and the accompanying materials are made available under the
|
|
14
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
15
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
16
|
+
*
|
|
17
|
+
* This Source Code may also be made available under the following Secondary
|
|
18
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
19
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
20
|
+
* with the GNU Classpath Exception which is available at
|
|
21
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
22
|
+
*
|
|
23
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
24
|
+
********************************************************************************/
|
|
25
|
+
const inversify_1 = require("inversify");
|
|
26
|
+
const sprotty_1 = require("sprotty");
|
|
27
|
+
const marquee_mouse_tool_1 = require("../tools/marquee-mouse-tool");
|
|
28
|
+
let GLSPScrollMouseListener = class GLSPScrollMouseListener extends sprotty_1.ScrollMouseListener {
|
|
29
|
+
constructor() {
|
|
30
|
+
super(...arguments);
|
|
31
|
+
this.preventScrolling = false;
|
|
32
|
+
}
|
|
33
|
+
handle(action) {
|
|
34
|
+
if (action instanceof sprotty_1.EnableToolsAction) {
|
|
35
|
+
if (action.toolIds.includes(marquee_mouse_tool_1.MarqueeMouseTool.ID)) {
|
|
36
|
+
this.preventScrolling = true;
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
else if (action instanceof sprotty_1.EnableDefaultToolsAction) {
|
|
40
|
+
this.preventScrolling = false;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
mouseDown(target, event) {
|
|
44
|
+
if (this.preventScrolling) {
|
|
45
|
+
return [];
|
|
46
|
+
}
|
|
47
|
+
return super.mouseDown(target, event);
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
GLSPScrollMouseListener = __decorate([
|
|
51
|
+
inversify_1.injectable()
|
|
52
|
+
], GLSPScrollMouseListener);
|
|
53
|
+
exports.GLSPScrollMouseListener = GLSPScrollMouseListener;
|
|
54
|
+
//# sourceMappingURL=glsp-scroll-mouse-listener.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glsp-scroll-mouse-listener.js","sourceRoot":"","sources":["../../../src/features/viewport/glsp-scroll-mouse-listener.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AACvC,qCAQiB;AAEjB,oEAA+D;AAG/D,IAAa,uBAAuB,GAApC,MAAa,uBAAwB,SAAQ,6BAAmB;IAAhE;;QAEI,qBAAgB,GAAG,KAAK,CAAC;IAkB7B,CAAC;IAhBG,MAAM,CAAC,MAAc;QACjB,IAAI,MAAM,YAAY,2BAAiB,EAAE;YACrC,IAAI,MAAM,CAAC,OAAO,CAAC,QAAQ,CAAC,qCAAgB,CAAC,EAAE,CAAC,EAAE;gBAC9C,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC;aAChC;SACJ;aAAM,IAAI,MAAM,YAAY,kCAAwB,EAAE;YACnD,IAAI,CAAC,gBAAgB,GAAG,KAAK,CAAC;SACjC;IACL,CAAC;IAED,SAAS,CAAC,MAAqB,EAAE,KAAiB;QAC9C,IAAI,IAAI,CAAC,gBAAgB,EAAE;YACvB,OAAO,EAAE,CAAC;SACb;QACD,OAAO,KAAK,CAAC,SAAS,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;IAC1C,CAAC;CACJ,CAAA;AApBY,uBAAuB;IADnC,sBAAU,EAAE;GACA,uBAAuB,CAoBnC;AApBY,0DAAuB"}
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2019-2021 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 defaultGLSPModule from './base/di.config';
|
|
17
|
+
import glspCommandPaletteModule from './features/command-palette/di.config';
|
|
18
|
+
import glspContextMenuModule from './features/context-menu/di.config';
|
|
19
|
+
import { copyPasteContextMenuModule, glspServerCopyPasteModule } from './features/copy-paste/di.config';
|
|
20
|
+
import glspDecorationModule from './features/decoration/di.config';
|
|
21
|
+
import glspEditLabelModule from './features/edit-label/di.config';
|
|
22
|
+
import modelHintsModule from './features/hints/di.config';
|
|
23
|
+
import glspHoverModule from './features/hover/di.config';
|
|
24
|
+
import layoutCommandsModule from './features/layout/di.config';
|
|
25
|
+
import modelSourceWatcherModule from './features/model-source-watcher/di.config';
|
|
26
|
+
import glspMouseToolModule from './features/mouse-tool/di.config';
|
|
27
|
+
import { navigationModule } from './features/navigation/di.config';
|
|
28
|
+
import saveModule from './features/save/di.config';
|
|
29
|
+
import glspSelectModule from './features/select/di.config';
|
|
30
|
+
import toolFeedbackModule from './features/tool-feedback/di.config';
|
|
31
|
+
import paletteModule from './features/tool-palette/di.config';
|
|
32
|
+
import toolsModule from './features/tools/di.config';
|
|
33
|
+
import { markerNavigatorModule, validationModule } from './features/validation/di.config';
|
|
34
|
+
import glspViewportModule from './features/viewport/di.config';
|
|
35
|
+
export * from 'sprotty';
|
|
36
|
+
export * from './base/action-dispatcher';
|
|
37
|
+
export * from './base/actions/context-actions';
|
|
38
|
+
export * from './base/actions/edit-mode-action';
|
|
39
|
+
export * from './base/actions/edit-validation-actions';
|
|
40
|
+
export * from './base/actions/focus-change-action';
|
|
41
|
+
export * from './base/args';
|
|
42
|
+
export * from './base/auto-complete/auto-complete-actions';
|
|
43
|
+
export * from './base/auto-complete/auto-complete-widget';
|
|
44
|
+
export * from './base/auto-complete/validation-decorator';
|
|
45
|
+
export * from './base/command-stack';
|
|
46
|
+
export { configureServerActions } from './base/di.config';
|
|
47
|
+
export * from './base/drag-aware-mouse-listener';
|
|
48
|
+
export * from './base/editor-context';
|
|
49
|
+
export * from './base/focus-tracker';
|
|
50
|
+
export * from './base/model-initialization-constraint';
|
|
51
|
+
export * from './base/model/model-registry';
|
|
52
|
+
export * from './base/model/update-model-command';
|
|
53
|
+
export * from './base/operations/operation';
|
|
54
|
+
export * from './base/selection-clearing-mouse-listener';
|
|
55
|
+
export * from './base/source-uri-aware';
|
|
56
|
+
export * from './base/types';
|
|
57
|
+
export * from './base/view/view-registry';
|
|
58
|
+
export * from './features/change-bounds/model';
|
|
59
|
+
export * from './features/change-bounds/movement-restrictor';
|
|
60
|
+
export * from './features/change-bounds/snap';
|
|
61
|
+
export * from './features/command-palette/server-command-palette-provider';
|
|
62
|
+
export * from './features/context-menu/delete-element-context-menu';
|
|
63
|
+
export * from './features/copy-paste/copy-paste-handler';
|
|
64
|
+
export * from './features/decoration/decoration-placer';
|
|
65
|
+
export * from './features/edit-label/edit-label-tool';
|
|
66
|
+
export * from './features/edit-label/edit-label-validator';
|
|
67
|
+
export * from './features/hints/model';
|
|
68
|
+
export * from './features/hints/request-type-hints-action';
|
|
69
|
+
export * from './features/hints/type-hints';
|
|
70
|
+
export * from './features/hover/hover';
|
|
71
|
+
export * from './features/layout/layout-commands';
|
|
72
|
+
export * from './features/model-source-watcher/model-source-changed-action';
|
|
73
|
+
export * from './features/model-source-watcher/model-source-changed-action-handler';
|
|
74
|
+
export * from './features/mouse-tool/mouse-tool';
|
|
75
|
+
export * from './features/navigation/navigation-action-handler';
|
|
76
|
+
export * from './features/navigation/navigation-target-resolver';
|
|
77
|
+
export * from './features/rank/model';
|
|
78
|
+
export * from './features/reconnect/model';
|
|
79
|
+
export * from './features/save/model';
|
|
80
|
+
export * from './features/save/save';
|
|
81
|
+
export * from './features/tool-feedback/change-bounds-tool-feedback';
|
|
82
|
+
export * from './features/tool-feedback/creation-tool-feedback';
|
|
83
|
+
export * from './features/tool-feedback/css-feedback';
|
|
84
|
+
export * from './features/tool-feedback/edge-edit-tool-feedback';
|
|
85
|
+
export * from './features/tool-feedback/feedback-action-dispatcher';
|
|
86
|
+
export * from './features/tool-feedback/model';
|
|
87
|
+
export * from './features/tool-palette/palette-item';
|
|
88
|
+
export * from './features/tool-palette/tool-palette';
|
|
89
|
+
export * from './features/tools/base-glsp-tool';
|
|
90
|
+
export * from './features/tools/change-bounds-tool';
|
|
91
|
+
export * from './features/tools/delete-tool';
|
|
92
|
+
export * from './features/tools/edge-creation-tool';
|
|
93
|
+
export * from './features/tools/edge-edit-tool';
|
|
94
|
+
export * from './features/tools/node-creation-tool';
|
|
95
|
+
export * from './features/undo-redo/model';
|
|
96
|
+
export * from './features/validation/issue-marker';
|
|
97
|
+
export * from './features/validation/marker-navigator';
|
|
98
|
+
export * from './features/validation/validate';
|
|
99
|
+
export * from './features/viewport/glsp-scroll-mouse-listener';
|
|
100
|
+
export * from './lib/model';
|
|
101
|
+
export * from './model-source/glsp-diagram-server';
|
|
102
|
+
export * from './model-source/glsp-server-status';
|
|
103
|
+
export * from './utils/argument-utils';
|
|
104
|
+
export * from './utils/array-utils';
|
|
105
|
+
export * from './utils/marker';
|
|
106
|
+
export * from './utils/smodel-util';
|
|
107
|
+
export * from './utils/viewpoint-util';
|
|
108
|
+
export * from './views';
|
|
109
|
+
export { validationModule, saveModule, paletteModule, toolFeedbackModule, defaultGLSPModule, modelHintsModule, glspCommandPaletteModule, glspContextMenuModule, glspServerCopyPasteModule, copyPasteContextMenuModule, glspSelectModule, glspMouseToolModule, layoutCommandsModule, glspEditLabelModule, glspHoverModule, toolsModule, navigationModule, markerNavigatorModule, glspDecorationModule, modelSourceWatcherModule, glspViewportModule };
|
|
110
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,iBAAiB,MAAM,kBAAkB,CAAC;AACjD,OAAO,wBAAwB,MAAM,sCAAsC,CAAC;AAC5E,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,0BAA0B,EAAE,yBAAyB,EAAE,MAAM,iCAAiC,CAAC;AACxG,OAAO,oBAAoB,MAAM,iCAAiC,CAAC;AACnE,OAAO,mBAAmB,MAAM,iCAAiC,CAAC;AAClE,OAAO,gBAAgB,MAAM,4BAA4B,CAAC;AAC1D,OAAO,eAAe,MAAM,4BAA4B,CAAC;AACzD,OAAO,oBAAoB,MAAM,6BAA6B,CAAC;AAC/D,OAAO,wBAAwB,MAAM,2CAA2C,CAAC;AACjF,OAAO,mBAAmB,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AACnE,OAAO,UAAU,MAAM,2BAA2B,CAAC;AACnD,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,kBAAkB,MAAM,oCAAoC,CAAC;AACpE,OAAO,aAAa,MAAM,mCAAmC,CAAC;AAC9D,OAAO,WAAW,MAAM,4BAA4B,CAAC;AACrD,OAAO,EAAE,qBAAqB,EAAE,gBAAg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|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
|
5
|
+
}) : (function(o, m, k, k2) {
|
|
6
|
+
if (k2 === undefined) k2 = k;
|
|
7
|
+
o[k2] = m[k];
|
|
8
|
+
}));
|
|
9
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
10
|
+
for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) __createBinding(exports, m, p);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.glspViewportModule = exports.modelSourceWatcherModule = exports.glspDecorationModule = exports.markerNavigatorModule = exports.navigationModule = exports.toolsModule = exports.glspHoverModule = exports.glspEditLabelModule = exports.layoutCommandsModule = exports.glspMouseToolModule = exports.glspSelectModule = exports.copyPasteContextMenuModule = exports.glspServerCopyPasteModule = exports.glspContextMenuModule = exports.glspCommandPaletteModule = exports.modelHintsModule = exports.defaultGLSPModule = exports.toolFeedbackModule = exports.paletteModule = exports.saveModule = exports.validationModule = void 0;
|
|
14
|
+
/********************************************************************************
|
|
15
|
+
* Copyright (c) 2019-2021 EclipseSource and others.
|
|
16
|
+
*
|
|
17
|
+
* This program and the accompanying materials are made available under the
|
|
18
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
19
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
20
|
+
*
|
|
21
|
+
* This Source Code may also be made available under the following Secondary
|
|
22
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
23
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
24
|
+
* with the GNU Classpath Exception which is available at
|
|
25
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
26
|
+
*
|
|
27
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
28
|
+
********************************************************************************/
|
|
29
|
+
const di_config_1 = require("./base/di.config");
|
|
30
|
+
exports.defaultGLSPModule = di_config_1.default;
|
|
31
|
+
const di_config_2 = require("./features/command-palette/di.config");
|
|
32
|
+
exports.glspCommandPaletteModule = di_config_2.default;
|
|
33
|
+
const di_config_3 = require("./features/context-menu/di.config");
|
|
34
|
+
exports.glspContextMenuModule = di_config_3.default;
|
|
35
|
+
const di_config_4 = require("./features/copy-paste/di.config");
|
|
36
|
+
Object.defineProperty(exports, "copyPasteContextMenuModule", { enumerable: true, get: function () { return di_config_4.copyPasteContextMenuModule; } });
|
|
37
|
+
Object.defineProperty(exports, "glspServerCopyPasteModule", { enumerable: true, get: function () { return di_config_4.glspServerCopyPasteModule; } });
|
|
38
|
+
const di_config_5 = require("./features/decoration/di.config");
|
|
39
|
+
exports.glspDecorationModule = di_config_5.default;
|
|
40
|
+
const di_config_6 = require("./features/edit-label/di.config");
|
|
41
|
+
exports.glspEditLabelModule = di_config_6.default;
|
|
42
|
+
const di_config_7 = require("./features/hints/di.config");
|
|
43
|
+
exports.modelHintsModule = di_config_7.default;
|
|
44
|
+
const di_config_8 = require("./features/hover/di.config");
|
|
45
|
+
exports.glspHoverModule = di_config_8.default;
|
|
46
|
+
const di_config_9 = require("./features/layout/di.config");
|
|
47
|
+
exports.layoutCommandsModule = di_config_9.default;
|
|
48
|
+
const di_config_10 = require("./features/model-source-watcher/di.config");
|
|
49
|
+
exports.modelSourceWatcherModule = di_config_10.default;
|
|
50
|
+
const di_config_11 = require("./features/mouse-tool/di.config");
|
|
51
|
+
exports.glspMouseToolModule = di_config_11.default;
|
|
52
|
+
const di_config_12 = require("./features/navigation/di.config");
|
|
53
|
+
Object.defineProperty(exports, "navigationModule", { enumerable: true, get: function () { return di_config_12.navigationModule; } });
|
|
54
|
+
const di_config_13 = require("./features/save/di.config");
|
|
55
|
+
exports.saveModule = di_config_13.default;
|
|
56
|
+
const di_config_14 = require("./features/select/di.config");
|
|
57
|
+
exports.glspSelectModule = di_config_14.default;
|
|
58
|
+
const di_config_15 = require("./features/tool-feedback/di.config");
|
|
59
|
+
exports.toolFeedbackModule = di_config_15.default;
|
|
60
|
+
const di_config_16 = require("./features/tool-palette/di.config");
|
|
61
|
+
exports.paletteModule = di_config_16.default;
|
|
62
|
+
const di_config_17 = require("./features/tools/di.config");
|
|
63
|
+
exports.toolsModule = di_config_17.default;
|
|
64
|
+
const di_config_18 = require("./features/validation/di.config");
|
|
65
|
+
Object.defineProperty(exports, "markerNavigatorModule", { enumerable: true, get: function () { return di_config_18.markerNavigatorModule; } });
|
|
66
|
+
Object.defineProperty(exports, "validationModule", { enumerable: true, get: function () { return di_config_18.validationModule; } });
|
|
67
|
+
const di_config_19 = require("./features/viewport/di.config");
|
|
68
|
+
exports.glspViewportModule = di_config_19.default;
|
|
69
|
+
__exportStar(require("sprotty"), exports);
|
|
70
|
+
__exportStar(require("./base/action-dispatcher"), exports);
|
|
71
|
+
__exportStar(require("./base/actions/context-actions"), exports);
|
|
72
|
+
__exportStar(require("./base/actions/edit-mode-action"), exports);
|
|
73
|
+
__exportStar(require("./base/actions/edit-validation-actions"), exports);
|
|
74
|
+
__exportStar(require("./base/actions/focus-change-action"), exports);
|
|
75
|
+
__exportStar(require("./base/args"), exports);
|
|
76
|
+
__exportStar(require("./base/auto-complete/auto-complete-actions"), exports);
|
|
77
|
+
__exportStar(require("./base/auto-complete/auto-complete-widget"), exports);
|
|
78
|
+
__exportStar(require("./base/auto-complete/validation-decorator"), exports);
|
|
79
|
+
__exportStar(require("./base/command-stack"), exports);
|
|
80
|
+
var di_config_20 = require("./base/di.config");
|
|
81
|
+
Object.defineProperty(exports, "configureServerActions", { enumerable: true, get: function () { return di_config_20.configureServerActions; } });
|
|
82
|
+
__exportStar(require("./base/drag-aware-mouse-listener"), exports);
|
|
83
|
+
__exportStar(require("./base/editor-context"), exports);
|
|
84
|
+
__exportStar(require("./base/focus-tracker"), exports);
|
|
85
|
+
__exportStar(require("./base/model-initialization-constraint"), exports);
|
|
86
|
+
__exportStar(require("./base/model/model-registry"), exports);
|
|
87
|
+
__exportStar(require("./base/model/update-model-command"), exports);
|
|
88
|
+
__exportStar(require("./base/operations/operation"), exports);
|
|
89
|
+
__exportStar(require("./base/selection-clearing-mouse-listener"), exports);
|
|
90
|
+
__exportStar(require("./base/source-uri-aware"), exports);
|
|
91
|
+
__exportStar(require("./base/types"), exports);
|
|
92
|
+
__exportStar(require("./base/view/view-registry"), exports);
|
|
93
|
+
__exportStar(require("./features/change-bounds/model"), exports);
|
|
94
|
+
__exportStar(require("./features/change-bounds/movement-restrictor"), exports);
|
|
95
|
+
__exportStar(require("./features/change-bounds/snap"), exports);
|
|
96
|
+
__exportStar(require("./features/command-palette/server-command-palette-provider"), exports);
|
|
97
|
+
__exportStar(require("./features/context-menu/delete-element-context-menu"), exports);
|
|
98
|
+
__exportStar(require("./features/copy-paste/copy-paste-handler"), exports);
|
|
99
|
+
__exportStar(require("./features/decoration/decoration-placer"), exports);
|
|
100
|
+
__exportStar(require("./features/edit-label/edit-label-tool"), exports);
|
|
101
|
+
__exportStar(require("./features/edit-label/edit-label-validator"), exports);
|
|
102
|
+
__exportStar(require("./features/hints/model"), exports);
|
|
103
|
+
__exportStar(require("./features/hints/request-type-hints-action"), exports);
|
|
104
|
+
__exportStar(require("./features/hints/type-hints"), exports);
|
|
105
|
+
__exportStar(require("./features/hover/hover"), exports);
|
|
106
|
+
__exportStar(require("./features/layout/layout-commands"), exports);
|
|
107
|
+
__exportStar(require("./features/model-source-watcher/model-source-changed-action"), exports);
|
|
108
|
+
__exportStar(require("./features/model-source-watcher/model-source-changed-action-handler"), exports);
|
|
109
|
+
__exportStar(require("./features/mouse-tool/mouse-tool"), exports);
|
|
110
|
+
__exportStar(require("./features/navigation/navigation-action-handler"), exports);
|
|
111
|
+
__exportStar(require("./features/navigation/navigation-target-resolver"), exports);
|
|
112
|
+
__exportStar(require("./features/rank/model"), exports);
|
|
113
|
+
__exportStar(require("./features/reconnect/model"), exports);
|
|
114
|
+
__exportStar(require("./features/save/model"), exports);
|
|
115
|
+
__exportStar(require("./features/save/save"), exports);
|
|
116
|
+
__exportStar(require("./features/tool-feedback/change-bounds-tool-feedback"), exports);
|
|
117
|
+
__exportStar(require("./features/tool-feedback/creation-tool-feedback"), exports);
|
|
118
|
+
__exportStar(require("./features/tool-feedback/css-feedback"), exports);
|
|
119
|
+
__exportStar(require("./features/tool-feedback/edge-edit-tool-feedback"), exports);
|
|
120
|
+
__exportStar(require("./features/tool-feedback/feedback-action-dispatcher"), exports);
|
|
121
|
+
__exportStar(require("./features/tool-feedback/model"), exports);
|
|
122
|
+
__exportStar(require("./features/tool-palette/palette-item"), exports);
|
|
123
|
+
__exportStar(require("./features/tool-palette/tool-palette"), exports);
|
|
124
|
+
__exportStar(require("./features/tools/base-glsp-tool"), exports);
|
|
125
|
+
__exportStar(require("./features/tools/change-bounds-tool"), exports);
|
|
126
|
+
__exportStar(require("./features/tools/delete-tool"), exports);
|
|
127
|
+
__exportStar(require("./features/tools/edge-creation-tool"), exports);
|
|
128
|
+
__exportStar(require("./features/tools/edge-edit-tool"), exports);
|
|
129
|
+
__exportStar(require("./features/tools/node-creation-tool"), exports);
|
|
130
|
+
__exportStar(require("./features/undo-redo/model"), exports);
|
|
131
|
+
__exportStar(require("./features/validation/issue-marker"), exports);
|
|
132
|
+
__exportStar(require("./features/validation/marker-navigator"), exports);
|
|
133
|
+
__exportStar(require("./features/validation/validate"), exports);
|
|
134
|
+
__exportStar(require("./features/viewport/glsp-scroll-mouse-listener"), exports);
|
|
135
|
+
__exportStar(require("./lib/model"), exports);
|
|
136
|
+
__exportStar(require("./model-source/glsp-diagram-server"), exports);
|
|
137
|
+
__exportStar(require("./model-source/glsp-server-status"), exports);
|
|
138
|
+
__exportStar(require("./utils/argument-utils"), exports);
|
|
139
|
+
__exportStar(require("./utils/array-utils"), exports);
|
|
140
|
+
__exportStar(require("./utils/marker"), exports);
|
|
141
|
+
__exportStar(require("./utils/smodel-util"), exports);
|
|
142
|
+
__exportStar(require("./utils/viewpoint-util"), exports);
|
|
143
|
+
__exportStar(require("./views"), exports);
|
|
144
|
+
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,gDAAiD;AA+FoB,4BA/F9D,mBAAiB,CA+F8D;AA9FtF,oEAA4E;AA8F8B,mCA9FnG,mBAAwB,CA8FmG;AA7FlI,iEAAsE;AA8FlE,gCA9FG,mBAAqB,CA8FH;AA7FzB,+DAAwG;AA6FlD,2GA7F7C,sCAA0B,OA6F6C;AAArD,0GA7FU,qCAAyB,OA6FV;AA5FpD,+DAAmE;AA6FQ,+BA7FpE,mBAAoB,CA6FoE;AA5F/F,+DAAkE;AA2F6E,8BA3FxI,mBAAmB,CA2FwI;AA1FlK,0DAA0D;AAyF8B,2BAzFjF,mBAAgB,CAyFiF;AAxFxG,0DAAyD;AA0FrD,0BA1FG,mBAAe,CA0FH;AAzFnB,2DAA+D;AAwF0D,+BAxFlH,mBAAoB,CAwFkH;AAvF7I,0EAAiF;AAwFgB,mCAxF1F,oBAAwB,CAwF0F;AAvFzH,gEAAkE;AAsFkC,8BAtF7F,oBAAmB,CAsF6F;AArFvH,gEAAmE;AAsFjC,iGAtFzB,6BAAgB,OAsFyB;AArFlD,0DAAmD;AAmF7B,qBAnFf,oBAAU,CAmFe;AAlFhC,4DAA2D;AAmFuB,2BAnF3E,oBAAgB,CAmF2E;AAlFlG,mEAAoE;AAiFnB,6BAjF1C,oBAAkB,CAiF0C;AAhFnE,kEAA8D;AAgF5B,wBAhF3B,oBAAa,CAgF2B;AA/E/C,2DAAqD;AAiFhC,sBAjFd,oBAAW,CAiFc;AAhFhC,gEAA0F;AAgFtC,sGAhF3C,kCAAqB,OAgF2C;AAFrE,iGA9E4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
|
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 { SGraph, SModelElement, SModelElementSchema } from 'sprotty/lib';
|
|
17
|
+
import { Containable } from '../features/hints/model';
|
|
18
|
+
import { Saveable } from '../features/save/model';
|
|
19
|
+
export declare class GLSPGraph extends SGraph implements Saveable, Containable {
|
|
20
|
+
static readonly DEFAULT_FEATURES: symbol[];
|
|
21
|
+
dirty: boolean;
|
|
22
|
+
isContainableElement(input: string | SModelElement | SModelElementSchema): boolean;
|
|
23
|
+
}
|
|
24
|
+
//# sourceMappingURL=model.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAiB,MAAM,EAAE,aAAa,EAAE,mBAAmB,EAAmB,MAAM,aAAa,CAAC;AAEzG,OAAO,EAAE,WAAW,EAAoB,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAe,MAAM,wBAAwB,CAAC;AAE/D,qBAAa,SAAU,SAAQ,MAAO,YAAW,QAAQ,EAAE,WAAW;IAClE,MAAM,CAAC,QAAQ,CAAC,gBAAgB,WAAmE;IACnG,KAAK,UAAS;IACd,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,mBAAmB,GAAG,OAAO;CAGrF"}
|
package/lib/lib/model.js
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GLSPGraph = void 0;
|
|
4
|
+
/********************************************************************************
|
|
5
|
+
* Copyright (c) 2019 EclipseSource and others.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
+
*
|
|
11
|
+
* This Source Code may also be made available under the following Secondary
|
|
12
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
+
* with the GNU Classpath Exception which is available at
|
|
15
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
16
|
+
*
|
|
17
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
|
+
********************************************************************************/
|
|
19
|
+
const lib_1 = require("sprotty/lib");
|
|
20
|
+
const model_1 = require("../features/hints/model");
|
|
21
|
+
const model_2 = require("../features/save/model");
|
|
22
|
+
class GLSPGraph extends lib_1.SGraph {
|
|
23
|
+
constructor() {
|
|
24
|
+
super(...arguments);
|
|
25
|
+
this.dirty = false;
|
|
26
|
+
}
|
|
27
|
+
isContainableElement(input) {
|
|
28
|
+
return true;
|
|
29
|
+
}
|
|
30
|
+
}
|
|
31
|
+
exports.GLSPGraph = GLSPGraph;
|
|
32
|
+
GLSPGraph.DEFAULT_FEATURES = [lib_1.viewportFeature, lib_1.exportFeature, model_2.saveFeature, model_1.containerFeature];
|
|
33
|
+
//# sourceMappingURL=model.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qCAAyG;AAEzG,mDAAwE;AACxE,kDAA+D;AAE/D,MAAa,SAAU,SAAQ,YAAM;IAArC;;QAEI,UAAK,GAAG,KAAK,CAAC;IAIlB,CAAC;IAHG,oBAAoB,CAAC,KAAmD;QACpE,OAAO,IAAI,CAAC;IAChB,CAAC;;AALL,8BAMC;AALmB,0BAAgB,GAAG,CAAC,qBAAe,EAAE,mBAAa,EAAE,mBAAW,EAAE,wBAAgB,CAAC,CAAC"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2019-2021 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 { GLSPClient } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { Action, ActionHandlerRegistry, ActionMessage, ComputedBoundsAction, DiagramServer, ICommand } from 'sprotty';
|
|
18
|
+
import { SetEditModeAction } from '../base/actions/edit-mode-action';
|
|
19
|
+
import { SourceUriAware } from '../base/source-uri-aware';
|
|
20
|
+
import { ServerMessageAction } from './glsp-server-status';
|
|
21
|
+
export declare class GLSPDiagramServer extends DiagramServer implements SourceUriAware {
|
|
22
|
+
protected _sourceUri: string;
|
|
23
|
+
protected _glspClient?: GLSPClient;
|
|
24
|
+
protected ready: boolean;
|
|
25
|
+
connect(client: GLSPClient): Promise<GLSPClient>;
|
|
26
|
+
get glspClient(): GLSPClient | undefined;
|
|
27
|
+
protected sendMessage(message: ActionMessage): void;
|
|
28
|
+
initialize(registry: ActionHandlerRegistry): void;
|
|
29
|
+
handle(action: Action): void | ICommand | Action;
|
|
30
|
+
handleLocally(action: Action): boolean;
|
|
31
|
+
protected handleServerMessageAction(action: ServerMessageAction): boolean;
|
|
32
|
+
protected handleComputedBounds(_action: ComputedBoundsAction): boolean;
|
|
33
|
+
protected handleSetEditModeAction(action: SetEditModeAction): boolean;
|
|
34
|
+
getSourceURI(): string;
|
|
35
|
+
}
|
|
36
|
+
export declare function isReceivedFromServer(action: Action): boolean;
|
|
37
|
+
export declare function registerDefaultGLSPServerActions(registry: ActionHandlerRegistry, diagramServer: DiagramServer): void;
|
|
38
|
+
//# sourceMappingURL=glsp-diagram-server.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glsp-diagram-server.d.ts","sourceRoot":"","sources":["../../src/model-source/glsp-diagram-server.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,UAAU,EAAE,MAAM,wBAAwB,CAAC;AAEpD,OAAO,EACH,MAAM,EACN,qBAAqB,EACrB,aAAa,EACb,oBAAoB,EACpB,aAAa,EACb,QAAQ,EAIX,MAAM,SAAS,CAAC;AAEjB,OAAO,EAAuB,iBAAiB,EAAE,MAAM,kCAAkC,CAAC;AAC1F,OAAO,EAAE,cAAc,EAAE,MAAM,0BAA0B,CAAC;AAC1D,OAAO,EAAyB,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAIlF,qBACa,iBAAkB,SAAQ,aAAc,YAAW,cAAc;IAC1E,SAAS,CAAC,UAAU,EAAE,MAAM,CAAC;IAC7B,SAAS,CAAC,WAAW,CAAC,EAAE,UAAU,CAAC;IACnC,SAAS,CAAC,KAAK,UAAS;IAElB,OAAO,CAAC,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;IAOtD,IAAW,UAAU,IAAI,UAAU,GAAG,SAAS,CAE9C;IAED,SAAS,CAAC,WAAW,CAAC,OAAO,EAAE,aAAa,GAAG,IAAI;IAQnD,UAAU,CAAC,QAAQ,EAAE,qBAAqB,GAAG,IAAI;IAOjD,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,IAAI,GAAG,QAAQ,GAAG,MAAM;IAOhD,aAAa,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO;IAUtC,SAAS,CAAC,yBAAyB,CAAC,MAAM,EAAE,mBAAmB,GAAG,OAAO;IAKzE,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,oBAAoB,GAAG,OAAO;IAItE,SAAS,CAAC,uBAAuB,CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO;IAI9D,YAAY,IAAI,MAAM;CAGhC;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAE5D;AAED,wBAAgB,gCAAgC,CAAC,QAAQ,EAAE,qBAAqB,EAAE,aAAa,EAAE,aAAa,GAAG,IAAI,CAOpH"}
|
|
@@ -0,0 +1,88 @@
|
|
|
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
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.registerDefaultGLSPServerActions = exports.isReceivedFromServer = exports.GLSPDiagramServer = void 0;
|
|
10
|
+
const inversify_1 = require("inversify");
|
|
11
|
+
const sprotty_1 = require("sprotty");
|
|
12
|
+
const edit_mode_action_1 = require("../base/actions/edit-mode-action");
|
|
13
|
+
const glsp_server_status_1 = require("./glsp-server-status");
|
|
14
|
+
const receivedFromServerProperty = '__receivedFromServer';
|
|
15
|
+
let GLSPDiagramServer = class GLSPDiagramServer extends sprotty_1.DiagramServer {
|
|
16
|
+
constructor() {
|
|
17
|
+
super(...arguments);
|
|
18
|
+
this.ready = false;
|
|
19
|
+
}
|
|
20
|
+
async connect(client) {
|
|
21
|
+
await client.start();
|
|
22
|
+
client.onActionMessage(message => this.messageReceived(message));
|
|
23
|
+
this._glspClient = client;
|
|
24
|
+
return this._glspClient;
|
|
25
|
+
}
|
|
26
|
+
get glspClient() {
|
|
27
|
+
return this._glspClient;
|
|
28
|
+
}
|
|
29
|
+
sendMessage(message) {
|
|
30
|
+
if (this.glspClient) {
|
|
31
|
+
this.glspClient.sendActionMessage(message);
|
|
32
|
+
}
|
|
33
|
+
else {
|
|
34
|
+
throw new Error('GLSPClient is not connected');
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
initialize(registry) {
|
|
38
|
+
registerDefaultGLSPServerActions(registry, this);
|
|
39
|
+
if (!this.clientId) {
|
|
40
|
+
this.clientId = this.viewerOptions.baseDiv;
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
handle(action) {
|
|
44
|
+
if (action instanceof sprotty_1.RequestModelAction && action.options !== undefined) {
|
|
45
|
+
this._sourceUri = action.options.sourceUri;
|
|
46
|
+
}
|
|
47
|
+
return super.handle(action);
|
|
48
|
+
}
|
|
49
|
+
handleLocally(action) {
|
|
50
|
+
if (glsp_server_status_1.isServerMessageAction(action)) {
|
|
51
|
+
return this.handleServerMessageAction(action);
|
|
52
|
+
}
|
|
53
|
+
if (edit_mode_action_1.isSetEditModeAction(action)) {
|
|
54
|
+
return this.handleSetEditModeAction(action);
|
|
55
|
+
}
|
|
56
|
+
return super.handleLocally(action);
|
|
57
|
+
}
|
|
58
|
+
handleServerMessageAction(action) {
|
|
59
|
+
this.logger.log('GLSPDiagramServer', `[${action.severity}] -${action.message}`);
|
|
60
|
+
return false;
|
|
61
|
+
}
|
|
62
|
+
handleComputedBounds(_action) {
|
|
63
|
+
return true;
|
|
64
|
+
}
|
|
65
|
+
handleSetEditModeAction(action) {
|
|
66
|
+
return !isReceivedFromServer(action);
|
|
67
|
+
}
|
|
68
|
+
getSourceURI() {
|
|
69
|
+
return this._sourceUri;
|
|
70
|
+
}
|
|
71
|
+
};
|
|
72
|
+
GLSPDiagramServer = __decorate([
|
|
73
|
+
inversify_1.injectable()
|
|
74
|
+
], GLSPDiagramServer);
|
|
75
|
+
exports.GLSPDiagramServer = GLSPDiagramServer;
|
|
76
|
+
function isReceivedFromServer(action) {
|
|
77
|
+
return action[receivedFromServerProperty] === true;
|
|
78
|
+
}
|
|
79
|
+
exports.isReceivedFromServer = isReceivedFromServer;
|
|
80
|
+
function registerDefaultGLSPServerActions(registry, diagramServer) {
|
|
81
|
+
registry.register(glsp_server_status_1.ServerMessageAction.KIND, diagramServer);
|
|
82
|
+
registry.register(sprotty_1.ServerStatusAction.KIND, diagramServer);
|
|
83
|
+
// Register an empty handler for SwitchEditMode, to avoid runtime exceptions.
|
|
84
|
+
// We don't support SwitchEditMode, but Sprotty still sends those actions, so ignore them.
|
|
85
|
+
registry.register(sprotty_1.SwitchEditModeCommand.KIND, { handle: action => undefined });
|
|
86
|
+
}
|
|
87
|
+
exports.registerDefaultGLSPServerActions = registerDefaultGLSPServerActions;
|
|
88
|
+
//# sourceMappingURL=glsp-diagram-server.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glsp-diagram-server.js","sourceRoot":"","sources":["../../src/model-source/glsp-diagram-server.ts"],"names":[],"mappings":";;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CAAC,CAAC;AACnF,CAAC;AAPD,4EAOC"}
|
|
@@ -0,0 +1,30 @@
|
|
|
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, ServerStatusAction as SprottyServerStatusAction } from 'sprotty';
|
|
17
|
+
export declare class GLSPServerStatusAction extends SprottyServerStatusAction {
|
|
18
|
+
timeout: number;
|
|
19
|
+
}
|
|
20
|
+
export declare function isGLSPServerStatusAction(serverStatusAction: SprottyServerStatusAction): serverStatusAction is GLSPServerStatusAction;
|
|
21
|
+
export declare class ServerMessageAction implements Action {
|
|
22
|
+
static KIND: string;
|
|
23
|
+
kind: string;
|
|
24
|
+
severity: 'NONE' | 'INFO' | 'WARNING' | 'ERROR' | 'FATAL';
|
|
25
|
+
message: string;
|
|
26
|
+
details: string;
|
|
27
|
+
timeout: number;
|
|
28
|
+
}
|
|
29
|
+
export declare function isServerMessageAction(action: Action): action is ServerMessageAction;
|
|
30
|
+
//# sourceMappingURL=glsp-server-status.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"glsp-server-status.d.ts","sourceRoot":"","sources":["../../src/model-source/glsp-server-status.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,kBAAkB,IAAI,yBAAyB,EAAE,MAAM,SAAS,CAAC;AAElF,qBAAa,sBAAuB,SAAQ,yBAAyB;IACjE,OAAO,SAAM;CAChB;AAED,wBAAgB,wBAAwB,CAAC,kBAAkB,EAAE,yBAAyB,GAAG,kBAAkB,IAAI,sBAAsB,CAEpI;AAED,qBAAa,mBAAoB,YAAW,MAAM;IAC9C,MAAM,CAAC,IAAI,SAAmB;IAE9B,IAAI,SAA4B;IAChC,QAAQ,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,GAAG,OAAO,GAAG,OAAO,CAAC;IAC1D,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,SAAM;IACb,OAAO,SAAM;CAChB;AAED,wBAAgB,qBAAqB,CAAC,MAAM,EAAE,MAAM,GAAG,MAAM,IAAI,mBAAmB,CAEnF"}
|