@eclipse-glsp/server 1.1.0-next.3d7585d.42
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 +642 -0
- package/README.md +8 -0
- package/browser.d.ts +16 -0
- package/browser.js +18 -0
- package/lib/browser/di/app-module.d.ts +24 -0
- package/lib/browser/di/app-module.d.ts.map +1 -0
- package/lib/browser/di/app-module.js +55 -0
- package/lib/browser/di/app-module.js.map +1 -0
- package/lib/browser/di/console-logger.d.ts +29 -0
- package/lib/browser/di/console-logger.d.ts.map +1 -0
- package/lib/browser/di/console-logger.js +81 -0
- package/lib/browser/di/console-logger.js.map +1 -0
- package/lib/browser/index.d.ts +20 -0
- package/lib/browser/index.d.ts.map +1 -0
- package/lib/browser/index.js +36 -0
- package/lib/browser/index.js.map +1 -0
- package/lib/browser/launch/worker-server-launcher.d.ts +26 -0
- package/lib/browser/launch/worker-server-launcher.d.ts.map +1 -0
- package/lib/browser/launch/worker-server-launcher.js +65 -0
- package/lib/browser/launch/worker-server-launcher.js.map +1 -0
- package/lib/common/actions/action-dispatcher.d.ts +74 -0
- package/lib/common/actions/action-dispatcher.d.ts.map +1 -0
- package/lib/common/actions/action-dispatcher.js +128 -0
- package/lib/common/actions/action-dispatcher.js.map +1 -0
- package/lib/common/actions/action-dispatcher.spec.d.ts +2 -0
- package/lib/common/actions/action-dispatcher.spec.d.ts.map +1 -0
- package/lib/common/actions/action-dispatcher.spec.js +264 -0
- package/lib/common/actions/action-dispatcher.spec.js.map +1 -0
- package/lib/common/actions/action-handler-registry.d.ts +40 -0
- package/lib/common/actions/action-handler-registry.d.ts.map +1 -0
- package/lib/common/actions/action-handler-registry.js +65 -0
- package/lib/common/actions/action-handler-registry.js.map +1 -0
- package/lib/common/actions/action-handler-registry.spec.d.ts +2 -0
- package/lib/common/actions/action-handler-registry.spec.d.ts.map +1 -0
- package/lib/common/actions/action-handler-registry.spec.js +50 -0
- package/lib/common/actions/action-handler-registry.spec.js.map +1 -0
- package/lib/common/actions/action-handler.d.ts +55 -0
- package/lib/common/actions/action-handler.d.ts.map +1 -0
- package/lib/common/actions/action-handler.js +7 -0
- package/lib/common/actions/action-handler.js.map +1 -0
- package/lib/common/actions/client-action-handler.d.ts +30 -0
- package/lib/common/actions/client-action-handler.d.ts.map +1 -0
- package/lib/common/actions/client-action-handler.js +56 -0
- package/lib/common/actions/client-action-handler.js.map +1 -0
- package/lib/common/actions/global-action-provider.d.ts +30 -0
- package/lib/common/actions/global-action-provider.d.ts.map +1 -0
- package/lib/common/actions/global-action-provider.js +81 -0
- package/lib/common/actions/global-action-provider.js.map +1 -0
- package/lib/common/actions/global-action-provider.spec.d.ts +2 -0
- package/lib/common/actions/global-action-provider.spec.d.ts.map +1 -0
- package/lib/common/actions/global-action-provider.spec.js +70 -0
- package/lib/common/actions/global-action-provider.spec.js.map +1 -0
- package/lib/common/command/command-stack.d.ts +37 -0
- package/lib/common/command/command-stack.d.ts.map +1 -0
- package/lib/common/command/command-stack.js +48 -0
- package/lib/common/command/command-stack.js.map +1 -0
- package/lib/common/command/command.d.ts +37 -0
- package/lib/common/command/command.d.ts.map +1 -0
- package/lib/common/command/command.js +18 -0
- package/lib/common/command/command.js.map +1 -0
- package/lib/common/di/binding-target.d.ts +73 -0
- package/lib/common/di/binding-target.d.ts.map +1 -0
- package/lib/common/di/binding-target.js +143 -0
- package/lib/common/di/binding-target.js.map +1 -0
- package/lib/common/di/binding-target.spec.d.ts +2 -0
- package/lib/common/di/binding-target.spec.d.ts.map +1 -0
- package/lib/common/di/binding-target.spec.js +121 -0
- package/lib/common/di/binding-target.spec.js.map +1 -0
- package/lib/common/di/client-session-module.d.ts +19 -0
- package/lib/common/di/client-session-module.d.ts.map +1 -0
- package/lib/common/di/client-session-module.js +34 -0
- package/lib/common/di/client-session-module.js.map +1 -0
- package/lib/common/di/diagram-module.d.ts +127 -0
- package/lib/common/di/diagram-module.d.ts.map +1 -0
- package/lib/common/di/diagram-module.js +283 -0
- package/lib/common/di/diagram-module.js.map +1 -0
- package/lib/common/di/glsp-module.d.ts +47 -0
- package/lib/common/di/glsp-module.d.ts.map +1 -0
- package/lib/common/di/glsp-module.js +59 -0
- package/lib/common/di/glsp-module.js.map +1 -0
- package/lib/common/di/multi-binding.d.ts +41 -0
- package/lib/common/di/multi-binding.d.ts.map +1 -0
- package/lib/common/di/multi-binding.js +82 -0
- package/lib/common/di/multi-binding.js.map +1 -0
- package/lib/common/di/multi-bindings.spec.d.ts +2 -0
- package/lib/common/di/multi-bindings.spec.d.ts.map +1 -0
- package/lib/common/di/multi-bindings.spec.js +137 -0
- package/lib/common/di/multi-bindings.spec.js.map +1 -0
- package/lib/common/di/server-module.d.ts +73 -0
- package/lib/common/di/server-module.d.ts.map +1 -0
- package/lib/common/di/server-module.js +103 -0
- package/lib/common/di/server-module.js.map +1 -0
- package/lib/common/di/service-identifiers.d.ts +29 -0
- package/lib/common/di/service-identifiers.d.ts.map +1 -0
- package/lib/common/di/service-identifiers.js +14 -0
- package/lib/common/di/service-identifiers.js.map +1 -0
- package/lib/common/diagram/diagram-configuration.d.ts +89 -0
- package/lib/common/diagram/diagram-configuration.d.ts.map +1 -0
- package/lib/common/diagram/diagram-configuration.js +30 -0
- package/lib/common/diagram/diagram-configuration.js.map +1 -0
- package/lib/common/diagram/request-type-hints-action-handler.d.ts +25 -0
- package/lib/common/diagram/request-type-hints-action-handler.d.ts.map +1 -0
- package/lib/common/diagram/request-type-hints-action-handler.js +53 -0
- package/lib/common/diagram/request-type-hints-action-handler.js.map +1 -0
- package/lib/common/diagram/request-type-hints-action-handler.spec.d.ts +2 -0
- package/lib/common/diagram/request-type-hints-action-handler.spec.d.ts.map +1 -0
- package/lib/common/diagram/request-type-hints-action-handler.spec.js +57 -0
- package/lib/common/diagram/request-type-hints-action-handler.spec.js.map +1 -0
- package/lib/common/features/clipboard/request-clipboard-data-action-handler.d.ts +26 -0
- package/lib/common/features/clipboard/request-clipboard-data-action-handler.d.ts.map +1 -0
- package/lib/common/features/clipboard/request-clipboard-data-action-handler.js +61 -0
- package/lib/common/features/clipboard/request-clipboard-data-action-handler.js.map +1 -0
- package/lib/common/features/contextactions/command-palette-action-provider.d.ts +63 -0
- package/lib/common/features/contextactions/command-palette-action-provider.d.ts.map +1 -0
- package/lib/common/features/contextactions/command-palette-action-provider.js +72 -0
- package/lib/common/features/contextactions/command-palette-action-provider.js.map +1 -0
- package/lib/common/features/contextactions/context-actions-provider-registry.d.ts +12 -0
- package/lib/common/features/contextactions/context-actions-provider-registry.d.ts.map +1 -0
- package/lib/common/features/contextactions/context-actions-provider-registry.js +70 -0
- package/lib/common/features/contextactions/context-actions-provider-registry.js.map +1 -0
- package/lib/common/features/contextactions/context-actions-provider-registry.spec.d.ts +2 -0
- package/lib/common/features/contextactions/context-actions-provider-registry.spec.d.ts.map +1 -0
- package/lib/common/features/contextactions/context-actions-provider-registry.spec.js +34 -0
- package/lib/common/features/contextactions/context-actions-provider-registry.spec.js.map +1 -0
- package/lib/common/features/contextactions/context-actions-provider.d.ts +34 -0
- package/lib/common/features/contextactions/context-actions-provider.d.ts.map +1 -0
- package/lib/common/features/contextactions/context-actions-provider.js +5 -0
- package/lib/common/features/contextactions/context-actions-provider.js.map +1 -0
- package/lib/common/features/contextactions/context-menu-item-provider.d.ts +43 -0
- package/lib/common/features/contextactions/context-menu-item-provider.d.ts.map +1 -0
- package/lib/common/features/contextactions/context-menu-item-provider.js +36 -0
- package/lib/common/features/contextactions/context-menu-item-provider.js.map +1 -0
- package/lib/common/features/contextactions/request-context-actions-handler.d.ts +24 -0
- package/lib/common/features/contextactions/request-context-actions-handler.d.ts.map +1 -0
- package/lib/common/features/contextactions/request-context-actions-handler.js +53 -0
- package/lib/common/features/contextactions/request-context-actions-handler.js.map +1 -0
- package/lib/common/features/contextactions/request-context-actions-handler.spec.d.ts +2 -0
- package/lib/common/features/contextactions/request-context-actions-handler.spec.d.ts.map +1 -0
- package/lib/common/features/contextactions/request-context-actions-handler.spec.js +63 -0
- package/lib/common/features/contextactions/request-context-actions-handler.spec.js.map +1 -0
- package/lib/common/features/contextactions/tool-palette-item-provider.d.ts +50 -0
- package/lib/common/features/contextactions/tool-palette-item-provider.d.ts.map +1 -0
- package/lib/common/features/contextactions/tool-palette-item-provider.js +88 -0
- package/lib/common/features/contextactions/tool-palette-item-provider.js.map +1 -0
- package/lib/common/features/contextactions/tool-palette-item-provider.spec.d.ts +2 -0
- package/lib/common/features/contextactions/tool-palette-item-provider.spec.d.ts.map +1 -0
- package/lib/common/features/contextactions/tool-palette-item-provider.spec.js +48 -0
- package/lib/common/features/contextactions/tool-palette-item-provider.spec.js.map +1 -0
- package/lib/common/features/directediting/context-edit-validator-registry.d.ts +14 -0
- package/lib/common/features/directediting/context-edit-validator-registry.d.ts.map +1 -0
- package/lib/common/features/directediting/context-edit-validator-registry.js +57 -0
- package/lib/common/features/directediting/context-edit-validator-registry.js.map +1 -0
- package/lib/common/features/directediting/context-edit-validator-registry.spec.d.ts +2 -0
- package/lib/common/features/directediting/context-edit-validator-registry.spec.d.ts.map +1 -0
- package/lib/common/features/directediting/context-edit-validator-registry.spec.js +44 -0
- package/lib/common/features/directediting/context-edit-validator-registry.spec.js.map +1 -0
- package/lib/common/features/directediting/context-edit-validator.d.ts +25 -0
- package/lib/common/features/directediting/context-edit-validator.d.ts.map +1 -0
- package/lib/common/features/directediting/context-edit-validator.js +40 -0
- package/lib/common/features/directediting/context-edit-validator.js.map +1 -0
- package/lib/common/features/directediting/label-edit-validator.d.ts +32 -0
- package/lib/common/features/directediting/label-edit-validator.d.ts.map +1 -0
- package/lib/common/features/directediting/label-edit-validator.js +21 -0
- package/lib/common/features/directediting/label-edit-validator.js.map +1 -0
- package/lib/common/features/directediting/request-edit-validation-handler.d.ts +26 -0
- package/lib/common/features/directediting/request-edit-validation-handler.d.ts.map +1 -0
- package/lib/common/features/directediting/request-edit-validation-handler.js +61 -0
- package/lib/common/features/directediting/request-edit-validation-handler.js.map +1 -0
- package/lib/common/features/directediting/request-edit-validation-handler.spec.d.ts +2 -0
- package/lib/common/features/directediting/request-edit-validation-handler.spec.d.ts.map +1 -0
- package/lib/common/features/directediting/request-edit-validation-handler.spec.js +97 -0
- package/lib/common/features/directediting/request-edit-validation-handler.spec.js.map +1 -0
- package/lib/common/features/layout/layout-engine.d.ts +29 -0
- package/lib/common/features/layout/layout-engine.d.ts.map +1 -0
- package/lib/common/features/layout/layout-engine.js +20 -0
- package/lib/common/features/layout/layout-engine.js.map +1 -0
- package/lib/common/features/layout/layout-operation-handler.d.ts +28 -0
- package/lib/common/features/layout/layout-operation-handler.d.ts.map +1 -0
- package/lib/common/features/layout/layout-operation-handler.js +66 -0
- package/lib/common/features/layout/layout-operation-handler.js.map +1 -0
- package/lib/common/features/model/gmodel-factory.d.ts +39 -0
- package/lib/common/features/model/gmodel-factory.d.ts.map +1 -0
- package/lib/common/features/model/gmodel-factory.js +39 -0
- package/lib/common/features/model/gmodel-factory.js.map +1 -0
- package/lib/common/features/model/gmodel-index.d.ts +107 -0
- package/lib/common/features/model/gmodel-index.d.ts.map +1 -0
- package/lib/common/features/model/gmodel-index.js +193 -0
- package/lib/common/features/model/gmodel-index.js.map +1 -0
- package/lib/common/features/model/gmodel-serializer.d.ts +67 -0
- package/lib/common/features/model/gmodel-serializer.d.ts.map +1 -0
- package/lib/common/features/model/gmodel-serializer.js +143 -0
- package/lib/common/features/model/gmodel-serializer.js.map +1 -0
- package/lib/common/features/model/gmodel-serializer.spec.d.ts +2 -0
- package/lib/common/features/model/gmodel-serializer.spec.d.ts.map +1 -0
- package/lib/common/features/model/gmodel-serializer.spec.js +124 -0
- package/lib/common/features/model/gmodel-serializer.spec.js.map +1 -0
- package/lib/common/features/model/model-state.d.ts +53 -0
- package/lib/common/features/model/model-state.d.ts.map +1 -0
- package/lib/common/features/model/model-state.js +75 -0
- package/lib/common/features/model/model-state.js.map +1 -0
- package/lib/common/features/model/model-submission-handler.d.ts +56 -0
- package/lib/common/features/model/model-submission-handler.d.ts.map +1 -0
- package/lib/common/features/model/model-submission-handler.js +97 -0
- package/lib/common/features/model/model-submission-handler.js.map +1 -0
- package/lib/common/features/model/request-model-action-handler.d.ts +37 -0
- package/lib/common/features/model/request-model-action-handler.d.ts.map +1 -0
- package/lib/common/features/model/request-model-action-handler.js +83 -0
- package/lib/common/features/model/request-model-action-handler.js.map +1 -0
- package/lib/common/features/model/save-model-action-handler.d.ts +26 -0
- package/lib/common/features/model/save-model-action-handler.d.ts.map +1 -0
- package/lib/common/features/model/save-model-action-handler.js +54 -0
- package/lib/common/features/model/save-model-action-handler.js.map +1 -0
- package/lib/common/features/model/source-model-storage.d.ts +47 -0
- package/lib/common/features/model/source-model-storage.d.ts.map +1 -0
- package/lib/common/features/model/source-model-storage.js +5 -0
- package/lib/common/features/model/source-model-storage.js.map +1 -0
- package/lib/common/features/navigation/json-opener-options.d.ts +36 -0
- package/lib/common/features/navigation/json-opener-options.d.ts.map +1 -0
- package/lib/common/features/navigation/json-opener-options.js +60 -0
- package/lib/common/features/navigation/json-opener-options.js.map +1 -0
- package/lib/common/features/navigation/navigation-target-provider-registry.d.ts +12 -0
- package/lib/common/features/navigation/navigation-target-provider-registry.d.ts.map +1 -0
- package/lib/common/features/navigation/navigation-target-provider-registry.js +47 -0
- package/lib/common/features/navigation/navigation-target-provider-registry.js.map +1 -0
- package/lib/common/features/navigation/navigation-target-provider.d.ts +48 -0
- package/lib/common/features/navigation/navigation-target-provider.d.ts.map +1 -0
- package/lib/common/features/navigation/navigation-target-provider.js +5 -0
- package/lib/common/features/navigation/navigation-target-provider.js.map +1 -0
- package/lib/common/features/navigation/navigation-target-resolution.d.ts +23 -0
- package/lib/common/features/navigation/navigation-target-resolution.d.ts.map +1 -0
- package/lib/common/features/navigation/navigation-target-resolution.js +12 -0
- package/lib/common/features/navigation/navigation-target-resolution.js.map +1 -0
- package/lib/common/features/navigation/navigation-target-resolver.d.ts +31 -0
- package/lib/common/features/navigation/navigation-target-resolver.d.ts.map +1 -0
- package/lib/common/features/navigation/navigation-target-resolver.js +49 -0
- package/lib/common/features/navigation/navigation-target-resolver.js.map +1 -0
- package/lib/common/features/navigation/request-navigation-targets-action-handler.d.ts +24 -0
- package/lib/common/features/navigation/request-navigation-targets-action-handler.d.ts.map +1 -0
- package/lib/common/features/navigation/request-navigation-targets-action-handler.js +55 -0
- package/lib/common/features/navigation/request-navigation-targets-action-handler.js.map +1 -0
- package/lib/common/features/navigation/resolve-navigation-targets-action-handler.d.ts +26 -0
- package/lib/common/features/navigation/resolve-navigation-targets-action-handler.d.ts.map +1 -0
- package/lib/common/features/navigation/resolve-navigation-targets-action-handler.js +59 -0
- package/lib/common/features/navigation/resolve-navigation-targets-action-handler.js.map +1 -0
- package/lib/common/features/popup/popup-model-factory.d.ts +36 -0
- package/lib/common/features/popup/popup-model-factory.d.ts.map +1 -0
- package/lib/common/features/popup/popup-model-factory.js +20 -0
- package/lib/common/features/popup/popup-model-factory.js.map +1 -0
- package/lib/common/features/popup/request-popup-model-action-handler.d.ts +31 -0
- package/lib/common/features/popup/request-popup-model-action-handler.d.ts.map +1 -0
- package/lib/common/features/popup/request-popup-model-action-handler.js +77 -0
- package/lib/common/features/popup/request-popup-model-action-handler.js.map +1 -0
- package/lib/common/features/validation/model-validator.d.ts +33 -0
- package/lib/common/features/validation/model-validator.d.ts.map +1 -0
- package/lib/common/features/validation/model-validator.js +5 -0
- package/lib/common/features/validation/model-validator.js.map +1 -0
- package/lib/common/features/validation/request-markers-handler.d.ts +11 -0
- package/lib/common/features/validation/request-markers-handler.d.ts.map +1 -0
- package/lib/common/features/validation/request-markers-handler.js +70 -0
- package/lib/common/features/validation/request-markers-handler.js.map +1 -0
- package/lib/common/gmodel/apply-label-edit-operation-handler.d.ts +9 -0
- package/lib/common/gmodel/apply-label-edit-operation-handler.d.ts.map +1 -0
- package/lib/common/gmodel/apply-label-edit-operation-handler.js +55 -0
- package/lib/common/gmodel/apply-label-edit-operation-handler.js.map +1 -0
- package/lib/common/gmodel/apply-label-edit-operation-handler.spec.d.ts +2 -0
- package/lib/common/gmodel/apply-label-edit-operation-handler.spec.d.ts.map +1 -0
- package/lib/common/gmodel/apply-label-edit-operation-handler.spec.js +38 -0
- package/lib/common/gmodel/apply-label-edit-operation-handler.spec.js.map +1 -0
- package/lib/common/gmodel/change-bounds-operation-handler.d.ts +10 -0
- package/lib/common/gmodel/change-bounds-operation-handler.d.ts.map +1 -0
- package/lib/common/gmodel/change-bounds-operation-handler.js +71 -0
- package/lib/common/gmodel/change-bounds-operation-handler.js.map +1 -0
- package/lib/common/gmodel/change-routing-points-operation-handler.d.ts +24 -0
- package/lib/common/gmodel/change-routing-points-operation-handler.d.ts.map +1 -0
- package/lib/common/gmodel/change-routing-points-operation-handler.js +53 -0
- package/lib/common/gmodel/change-routing-points-operation-handler.js.map +1 -0
- package/lib/common/gmodel/computed-bounds-action-handler.d.ts +29 -0
- package/lib/common/gmodel/computed-bounds-action-handler.d.ts.map +1 -0
- package/lib/common/gmodel/computed-bounds-action-handler.js +50 -0
- package/lib/common/gmodel/computed-bounds-action-handler.js.map +1 -0
- package/lib/common/gmodel/delete-operation-handler.d.ts +32 -0
- package/lib/common/gmodel/delete-operation-handler.d.ts.map +1 -0
- package/lib/common/gmodel/delete-operation-handler.js +116 -0
- package/lib/common/gmodel/delete-operation-handler.js.map +1 -0
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.d.ts +31 -0
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.d.ts.map +1 -0
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.js +65 -0
- package/lib/common/gmodel/gmodel-create-edge-operation-handler.js.map +1 -0
- package/lib/common/gmodel/gmodel-create-node-operation-handler.d.ts +31 -0
- package/lib/common/gmodel/gmodel-create-node-operation-handler.d.ts.map +1 -0
- package/lib/common/gmodel/gmodel-create-node-operation-handler.js +58 -0
- package/lib/common/gmodel/gmodel-create-node-operation-handler.js.map +1 -0
- package/lib/common/gmodel/gmodel-diagram-module.d.ts +31 -0
- package/lib/common/gmodel/gmodel-diagram-module.d.ts.map +1 -0
- package/lib/common/gmodel/gmodel-diagram-module.js +86 -0
- package/lib/common/gmodel/gmodel-diagram-module.js.map +1 -0
- package/lib/common/gmodel/index.d.ts +26 -0
- package/lib/common/gmodel/index.d.ts.map +1 -0
- package/lib/common/gmodel/index.js +42 -0
- package/lib/common/gmodel/index.js.map +1 -0
- package/lib/common/gmodel/paste-operation-handler.d.ts +35 -0
- package/lib/common/gmodel/paste-operation-handler.d.ts.map +1 -0
- package/lib/common/gmodel/paste-operation-handler.js +131 -0
- package/lib/common/gmodel/paste-operation-handler.js.map +1 -0
- package/lib/common/gmodel/reconnect-edge-operation-handler.d.ts +9 -0
- package/lib/common/gmodel/reconnect-edge-operation-handler.d.ts.map +1 -0
- package/lib/common/gmodel/reconnect-edge-operation-handler.js +67 -0
- package/lib/common/gmodel/reconnect-edge-operation-handler.js.map +1 -0
- package/lib/common/index.d.ts +88 -0
- package/lib/common/index.d.ts.map +1 -0
- package/lib/common/index.js +104 -0
- package/lib/common/index.js.map +1 -0
- package/lib/common/launch/glsp-server-launcher.d.ts +34 -0
- package/lib/common/launch/glsp-server-launcher.d.ts.map +1 -0
- package/lib/common/launch/glsp-server-launcher.js +64 -0
- package/lib/common/launch/glsp-server-launcher.js.map +1 -0
- package/lib/common/operations/compound-operation-handler.d.ts +25 -0
- package/lib/common/operations/compound-operation-handler.d.ts.map +1 -0
- package/lib/common/operations/compound-operation-handler.js +54 -0
- package/lib/common/operations/compound-operation-handler.js.map +1 -0
- package/lib/common/operations/create-operation-handler.d.ts +64 -0
- package/lib/common/operations/create-operation-handler.d.ts.map +1 -0
- package/lib/common/operations/create-operation-handler.js +90 -0
- package/lib/common/operations/create-operation-handler.js.map +1 -0
- package/lib/common/operations/cut-operation-handler.d.ts +25 -0
- package/lib/common/operations/cut-operation-handler.d.ts.map +1 -0
- package/lib/common/operations/cut-operation-handler.js +53 -0
- package/lib/common/operations/cut-operation-handler.js.map +1 -0
- package/lib/common/operations/operation-action-handler.d.ts +33 -0
- package/lib/common/operations/operation-action-handler.d.ts.map +1 -0
- package/lib/common/operations/operation-action-handler.js +94 -0
- package/lib/common/operations/operation-action-handler.js.map +1 -0
- package/lib/common/operations/operation-handler-registry.d.ts +29 -0
- package/lib/common/operations/operation-handler-registry.d.ts.map +1 -0
- package/lib/common/operations/operation-handler-registry.js +58 -0
- package/lib/common/operations/operation-handler-registry.js.map +1 -0
- package/lib/common/operations/operation-handler-registry.spec.d.ts +2 -0
- package/lib/common/operations/operation-handler-registry.spec.d.ts.map +1 -0
- package/lib/common/operations/operation-handler-registry.spec.js +50 -0
- package/lib/common/operations/operation-handler-registry.spec.js.map +1 -0
- package/lib/common/operations/operation-handler.d.ts +50 -0
- package/lib/common/operations/operation-handler.d.ts.map +1 -0
- package/lib/common/operations/operation-handler.js +7 -0
- package/lib/common/operations/operation-handler.js.map +1 -0
- package/lib/common/protocol/glsp-client-proxy.d.ts +45 -0
- package/lib/common/protocol/glsp-client-proxy.d.ts.map +1 -0
- package/lib/common/protocol/glsp-client-proxy.js +53 -0
- package/lib/common/protocol/glsp-client-proxy.js.map +1 -0
- package/lib/common/protocol/glsp-server-listener.d.ts +37 -0
- package/lib/common/protocol/glsp-server-listener.d.ts.map +1 -0
- package/lib/common/protocol/glsp-server-listener.js +5 -0
- package/lib/common/protocol/glsp-server-listener.js.map +1 -0
- package/lib/common/protocol/glsp-server.d.ts +150 -0
- package/lib/common/protocol/glsp-server.d.ts.map +1 -0
- package/lib/common/protocol/glsp-server.js +188 -0
- package/lib/common/protocol/glsp-server.js.map +1 -0
- package/lib/common/protocol/glsp-server.spec.d.ts +2 -0
- package/lib/common/protocol/glsp-server.spec.d.ts.map +1 -0
- package/lib/common/protocol/glsp-server.spec.js +119 -0
- package/lib/common/protocol/glsp-server.spec.js.map +1 -0
- package/lib/common/session/client-session-factory.d.ts +42 -0
- package/lib/common/session/client-session-factory.d.ts.map +1 -0
- package/lib/common/session/client-session-factory.js +54 -0
- package/lib/common/session/client-session-factory.js.map +1 -0
- package/lib/common/session/client-session-factory.spec.d.ts +2 -0
- package/lib/common/session/client-session-factory.spec.d.ts.map +1 -0
- package/lib/common/session/client-session-factory.spec.js +56 -0
- package/lib/common/session/client-session-factory.spec.js.map +1 -0
- package/lib/common/session/client-session-initializer.d.ts +26 -0
- package/lib/common/session/client-session-initializer.d.ts.map +1 -0
- package/lib/common/session/client-session-initializer.js +5 -0
- package/lib/common/session/client-session-initializer.js.map +1 -0
- package/lib/common/session/client-session-listener.d.ts +40 -0
- package/lib/common/session/client-session-listener.d.ts.map +1 -0
- package/lib/common/session/client-session-listener.js +3 -0
- package/lib/common/session/client-session-listener.js.map +1 -0
- package/lib/common/session/client-session-manager.d.ts +102 -0
- package/lib/common/session/client-session-manager.d.ts.map +1 -0
- package/lib/common/session/client-session-manager.js +116 -0
- package/lib/common/session/client-session-manager.js.map +1 -0
- package/lib/common/session/client-session-manager.spec.d.ts +2 -0
- package/lib/common/session/client-session-manager.spec.d.ts.map +1 -0
- package/lib/common/session/client-session-manager.spec.js +74 -0
- package/lib/common/session/client-session-manager.spec.js.map +1 -0
- package/lib/common/session/client-session.d.ts +52 -0
- package/lib/common/session/client-session.d.ts.map +1 -0
- package/lib/common/session/client-session.js +34 -0
- package/lib/common/session/client-session.js.map +1 -0
- package/lib/common/test/mock-util.d.ts +110 -0
- package/lib/common/test/mock-util.d.ts.map +1 -0
- package/lib/common/test/mock-util.js +211 -0
- package/lib/common/test/mock-util.js.map +1 -0
- package/lib/common/utils/args-util.d.ts +38 -0
- package/lib/common/utils/args-util.d.ts.map +1 -0
- package/lib/common/utils/args-util.js +81 -0
- package/lib/common/utils/args-util.js.map +1 -0
- package/lib/common/utils/client-options-util.d.ts +20 -0
- package/lib/common/utils/client-options-util.d.ts.map +1 -0
- package/lib/common/utils/client-options-util.js +26 -0
- package/lib/common/utils/client-options-util.js.map +1 -0
- package/lib/common/utils/glsp-server-error.d.ts +21 -0
- package/lib/common/utils/glsp-server-error.d.ts.map +1 -0
- package/lib/common/utils/glsp-server-error.js +33 -0
- package/lib/common/utils/glsp-server-error.js.map +1 -0
- package/lib/common/utils/layout-util.d.ts +74 -0
- package/lib/common/utils/layout-util.d.ts.map +1 -0
- package/lib/common/utils/layout-util.js +166 -0
- package/lib/common/utils/layout-util.js.map +1 -0
- package/lib/common/utils/logger.d.ts +27 -0
- package/lib/common/utils/logger.d.ts.map +1 -0
- package/lib/common/utils/logger.js +67 -0
- package/lib/common/utils/logger.js.map +1 -0
- package/lib/common/utils/promise-queue.d.ts +48 -0
- package/lib/common/utils/promise-queue.d.ts.map +1 -0
- package/lib/common/utils/promise-queue.js +93 -0
- package/lib/common/utils/promise-queue.js.map +1 -0
- package/lib/common/utils/promise-queue.spec.d.ts +2 -0
- package/lib/common/utils/promise-queue.spec.d.ts.map +1 -0
- package/lib/common/utils/promise-queue.spec.js +117 -0
- package/lib/common/utils/promise-queue.spec.js.map +1 -0
- package/lib/common/utils/registry.d.ts +73 -0
- package/lib/common/utils/registry.d.ts.map +1 -0
- package/lib/common/utils/registry.js +160 -0
- package/lib/common/utils/registry.js.map +1 -0
- package/lib/common/utils/registry.spec.d.ts +2 -0
- package/lib/common/utils/registry.spec.d.ts.map +1 -0
- package/lib/common/utils/registry.spec.js +199 -0
- package/lib/common/utils/registry.spec.js.map +1 -0
- package/lib/node/abstract-json-model-storage.d.ts +45 -0
- package/lib/node/abstract-json-model-storage.d.ts.map +1 -0
- package/lib/node/abstract-json-model-storage.js +103 -0
- package/lib/node/abstract-json-model-storage.js.map +1 -0
- package/lib/node/di/app-module.d.ts +36 -0
- package/lib/node/di/app-module.d.ts.map +1 -0
- package/lib/node/di/app-module.js +91 -0
- package/lib/node/di/app-module.js.map +1 -0
- package/lib/node/di/winston-logger.d.ts +32 -0
- package/lib/node/di/winston-logger.d.ts.map +1 -0
- package/lib/node/di/winston-logger.js +57 -0
- package/lib/node/di/winston-logger.js.map +1 -0
- package/lib/node/gmodel/gmodel-storage.d.ts +34 -0
- package/lib/node/gmodel/gmodel-storage.d.ts.map +1 -0
- package/lib/node/gmodel/gmodel-storage.js +68 -0
- package/lib/node/gmodel/gmodel-storage.js.map +1 -0
- package/lib/node/index.d.ts +24 -0
- package/lib/node/index.d.ts.map +1 -0
- package/lib/node/index.js +40 -0
- package/lib/node/index.js.map +1 -0
- package/lib/node/launch/cli-parser.d.ts +34 -0
- package/lib/node/launch/cli-parser.d.ts.map +1 -0
- package/lib/node/launch/cli-parser.js +71 -0
- package/lib/node/launch/cli-parser.js.map +1 -0
- package/lib/node/launch/cli-parser.spec.d.ts +2 -0
- package/lib/node/launch/cli-parser.spec.d.ts.map +1 -0
- package/lib/node/launch/cli-parser.spec.js +56 -0
- package/lib/node/launch/cli-parser.spec.js.map +1 -0
- package/lib/node/launch/socket-cli-parser.d.ts +9 -0
- package/lib/node/launch/socket-cli-parser.d.ts.map +1 -0
- package/lib/node/launch/socket-cli-parser.js +43 -0
- package/lib/node/launch/socket-cli-parser.js.map +1 -0
- package/lib/node/launch/socket-cli-parser.spec.d.ts +2 -0
- package/lib/node/launch/socket-cli-parser.spec.d.ts.map +1 -0
- package/lib/node/launch/socket-cli-parser.spec.js +66 -0
- package/lib/node/launch/socket-cli-parser.spec.js.map +1 -0
- package/lib/node/launch/socket-server-launcher.d.ts +34 -0
- package/lib/node/launch/socket-server-launcher.d.ts.map +1 -0
- package/lib/node/launch/socket-server-launcher.js +104 -0
- package/lib/node/launch/socket-server-launcher.js.map +1 -0
- package/lib/node/launch/socket-server-launcher.spec.d.ts +17 -0
- package/lib/node/launch/socket-server-launcher.spec.d.ts.map +1 -0
- package/lib/node/launch/socket-server-launcher.spec.js +70 -0
- package/lib/node/launch/socket-server-launcher.spec.js.map +1 -0
- package/node.d.ts +16 -0
- package/node.js +18 -0
- package/package.json +76 -0
- package/src/browser/di/app-module.ts +55 -0
- package/src/browser/di/console-logger.ts +71 -0
- package/src/browser/index.ts +19 -0
- package/src/browser/launch/worker-server-launcher.ts +58 -0
- package/src/common/actions/action-dispatcher.spec.ts +290 -0
- package/src/common/actions/action-dispatcher.ts +152 -0
- package/src/common/actions/action-handler-registry.spec.ts +52 -0
- package/src/common/actions/action-handler-registry.ts +60 -0
- package/src/common/actions/action-handler.ts +62 -0
- package/src/common/actions/client-action-handler.ts +50 -0
- package/src/common/actions/global-action-provider.spec.ts +79 -0
- package/src/common/actions/global-action-provider.ts +72 -0
- package/src/common/command/command-stack.ts +74 -0
- package/src/common/command/command.ts +39 -0
- package/src/common/di/binding-target.spec.ts +147 -0
- package/src/common/di/binding-target.ts +188 -0
- package/src/common/di/client-session-module.ts +29 -0
- package/src/common/di/diagram-module.ts +397 -0
- package/src/common/di/glsp-module.ts +66 -0
- package/src/common/di/multi-binding.ts +89 -0
- package/src/common/di/multi-bindings.spec.ts +133 -0
- package/src/common/di/server-module.ts +131 -0
- package/src/common/di/service-identifiers.ts +39 -0
- package/src/common/diagram/diagram-configuration.ts +97 -0
- package/src/common/diagram/request-type-hints-action-handler.spec.ts +59 -0
- package/src/common/diagram/request-type-hints-action-handler.ts +36 -0
- package/src/common/features/clipboard/request-clipboard-data-action-handler.ts +51 -0
- package/src/common/features/contextactions/command-palette-action-provider.ts +94 -0
- package/src/common/features/contextactions/context-actions-provider-registry.spec.ts +69 -0
- package/src/common/features/contextactions/context-actions-provider-registry.ts +47 -0
- package/src/common/features/contextactions/context-actions-provider.ts +36 -0
- package/src/common/features/contextactions/context-menu-item-provider.ts +52 -0
- package/src/common/features/contextactions/request-context-actions-handler.spec.ts +75 -0
- package/src/common/features/contextactions/request-context-actions-handler.ts +37 -0
- package/src/common/features/contextactions/tool-palette-item-provider.spec.ts +46 -0
- package/src/common/features/contextactions/tool-palette-item-provider.ts +90 -0
- package/src/common/features/directediting/context-edit-validator-registry.spec.ts +54 -0
- package/src/common/features/directediting/context-edit-validator-registry.ts +43 -0
- package/src/common/features/directediting/context-edit-validator.ts +55 -0
- package/src/common/features/directediting/label-edit-validator.ts +35 -0
- package/src/common/features/directediting/request-edit-validation-handler.spec.ts +131 -0
- package/src/common/features/directediting/request-edit-validation-handler.ts +43 -0
- package/src/common/features/layout/layout-engine.ts +31 -0
- package/src/common/features/layout/layout-operation-handler.ts +47 -0
- package/src/common/features/model/gmodel-factory.ts +60 -0
- package/src/common/features/model/gmodel-index.ts +195 -0
- package/src/common/features/model/gmodel-serializer.spec.ts +141 -0
- package/src/common/features/model/gmodel-serializer.ts +175 -0
- package/src/common/features/model/model-state.ts +101 -0
- package/src/common/features/model/model-submission-handler.ts +106 -0
- package/src/common/features/model/request-model-action-handler.ts +67 -0
- package/src/common/features/model/save-model-action-handler.ts +38 -0
- package/src/common/features/model/source-model-storage.ts +49 -0
- package/src/common/features/navigation/json-opener-options.ts +69 -0
- package/src/common/features/navigation/navigation-target-provider-registry.ts +36 -0
- package/src/common/features/navigation/navigation-target-provider.ts +50 -0
- package/src/common/features/navigation/navigation-target-resolution.ts +22 -0
- package/src/common/features/navigation/navigation-target-resolver.ts +61 -0
- package/src/common/features/navigation/request-navigation-targets-action-handler.ts +39 -0
- package/src/common/features/navigation/resolve-navigation-targets-action-handler.ts +42 -0
- package/src/common/features/popup/popup-model-factory.ts +38 -0
- package/src/common/features/popup/request-popup-model-action-handler.ts +60 -0
- package/src/common/features/validation/model-validator.ts +34 -0
- package/src/common/features/validation/request-markers-handler.ts +51 -0
- package/src/common/gmodel/README.md +7 -0
- package/src/common/gmodel/apply-label-edit-operation-handler.spec.ts +40 -0
- package/src/common/gmodel/apply-label-edit-operation-handler.ts +38 -0
- package/src/common/gmodel/change-bounds-operation-handler.ts +58 -0
- package/src/common/gmodel/change-routing-points-operation-handler.ts +39 -0
- package/src/common/gmodel/computed-bounds-action-handler.ts +51 -0
- package/src/common/gmodel/delete-operation-handler.ts +115 -0
- package/src/common/gmodel/gmodel-create-edge-operation-handler.ts +58 -0
- package/src/common/gmodel/gmodel-create-node-operation-handler.ts +47 -0
- package/src/common/gmodel/gmodel-diagram-module.ts +81 -0
- package/src/common/gmodel/index.ts +26 -0
- package/src/common/gmodel/paste-operation-handler.ts +119 -0
- package/src/common/gmodel/reconnect-edge-operation-handler.ts +55 -0
- package/src/common/index.ts +88 -0
- package/src/common/launch/glsp-server-launcher.ts +70 -0
- package/src/common/operations/compound-operation-handler.ts +38 -0
- package/src/common/operations/create-operation-handler.ts +106 -0
- package/src/common/operations/cut-operation-handler.ts +38 -0
- package/src/common/operations/operation-action-handler.ts +69 -0
- package/src/common/operations/operation-handler-registry.spec.ts +50 -0
- package/src/common/operations/operation-handler-registry.ts +51 -0
- package/src/common/operations/operation-handler.ts +57 -0
- package/src/common/protocol/glsp-client-proxy.ts +65 -0
- package/src/common/protocol/glsp-server-listener.ts +39 -0
- package/src/common/protocol/glsp-server.spec.ts +150 -0
- package/src/common/protocol/glsp-server.ts +320 -0
- package/src/common/session/client-session-factory.spec.ts +60 -0
- package/src/common/session/client-session-factory.ts +70 -0
- package/src/common/session/client-session-initializer.ts +27 -0
- package/src/common/session/client-session-listener.ts +41 -0
- package/src/common/session/client-session-manager.spec.ts +82 -0
- package/src/common/session/client-session-manager.ts +182 -0
- package/src/common/session/client-session.ts +62 -0
- package/src/common/test/mock-util.ts +256 -0
- package/src/common/utils/args-util.ts +98 -0
- package/src/common/utils/client-options-util.ts +22 -0
- package/src/common/utils/glsp-server-error.ts +27 -0
- package/src/common/utils/layout-util.ts +164 -0
- package/src/common/utils/logger.ts +72 -0
- package/src/common/utils/promise-queue.spec.ts +138 -0
- package/src/common/utils/promise-queue.ts +103 -0
- package/src/common/utils/registry.spec.ts +223 -0
- package/src/common/utils/registry.ts +154 -0
- package/src/node/abstract-json-model-storage.ts +114 -0
- package/src/node/di/app-module.ts +102 -0
- package/src/node/di/winston-logger.ts +76 -0
- package/src/node/gmodel/gmodel-storage.ts +53 -0
- package/src/node/index.ts +23 -0
- package/src/node/launch/cli-parser.spec.ts +61 -0
- package/src/node/launch/cli-parser.ts +86 -0
- package/src/node/launch/socket-cli-parser.spec.ts +73 -0
- package/src/node/launch/socket-cli-parser.ts +52 -0
- package/src/node/launch/socket-server-launcher.spec.ts +68 -0
- package/src/node/launch/socket-server-launcher.ts +90 -0
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2022-2023 EclipseSource and others.
|
|
4
|
+
*
|
|
5
|
+
* This program and the accompanying materials are made available under the
|
|
6
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
*
|
|
9
|
+
* This Source Code may also be made available under the following Secondary
|
|
10
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
* with the GNU Classpath Exception which is available at
|
|
13
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
*
|
|
15
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
+
********************************************************************************/
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
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;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
|
+
exports.GModelCreateNodeOperationHandler = void 0;
|
|
28
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
29
|
+
const inversify_1 = require("inversify");
|
|
30
|
+
const action_dispatcher_1 = require("../actions/action-dispatcher");
|
|
31
|
+
const create_operation_handler_1 = require("../operations/create-operation-handler");
|
|
32
|
+
/**
|
|
33
|
+
* An abstract base implementation of {@link CreateNodeOperationHandler} for diagram implementations
|
|
34
|
+
* where the graphical model is also directly used as source model.
|
|
35
|
+
* (i.e. all operation handlers directly modify the graphical model).
|
|
36
|
+
*/
|
|
37
|
+
let GModelCreateNodeOperationHandler = class GModelCreateNodeOperationHandler extends create_operation_handler_1.CreateNodeOperationHandler {
|
|
38
|
+
execute(operation) {
|
|
39
|
+
var _a;
|
|
40
|
+
const container = (_a = this.getContainer(operation)) !== null && _a !== void 0 ? _a : this.modelState.root;
|
|
41
|
+
const relativeLocation = this.getRelativeLocation(operation);
|
|
42
|
+
const element = this.createNode(operation, relativeLocation);
|
|
43
|
+
if (element) {
|
|
44
|
+
container.children.push(element);
|
|
45
|
+
element.parent = container;
|
|
46
|
+
this.actionDispatcher.dispatchAfterNextUpdate(protocol_1.SelectAction.create({ selectedElementsIDs: [element.id] }));
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, inversify_1.inject)(action_dispatcher_1.ActionDispatcher),
|
|
52
|
+
__metadata("design:type", Object)
|
|
53
|
+
], GModelCreateNodeOperationHandler.prototype, "actionDispatcher", void 0);
|
|
54
|
+
GModelCreateNodeOperationHandler = __decorate([
|
|
55
|
+
(0, inversify_1.injectable)()
|
|
56
|
+
], GModelCreateNodeOperationHandler);
|
|
57
|
+
exports.GModelCreateNodeOperationHandler = GModelCreateNodeOperationHandler;
|
|
58
|
+
//# sourceMappingURL=gmodel-create-node-operation-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gmodel-create-node-operation-handler.js","sourceRoot":"","sources":["../../../src/common/gmodel/gmodel-create-node-operation-handler.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;AAGlF,qDAAkF;AAClF,yCAA+C;AAC/C,oEAAgE;AAChE,qFAAoF;AAEpF;;;;GAIG;AAEI,IAAe,gCAAgC,GAA/C,MAAe,gCAAiC,SAAQ,qDAA0B;IAMrF,OAAO,CAAC,SAA8B;;QAClC,MAAM,SAAS,GAAG,MAAA,IAAI,CAAC,YAAY,CAAC,SAAS,CAAC,mCAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC;QACvE,MAAM,gBAAgB,GAAG,IAAI,CAAC,mBAAmB,CAAC,SAAS,CAAC,CAAC;QAC7D,MAAM,OAAO,GAAG,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,gBAAgB,CAAC,CAAC;QAC7D,IAAI,OAAO,EAAE;YACT,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;YACjC,OAAO,CAAC,MAAM,GAAG,SAAS,CAAC;YAC3B,IAAI,CAAC,gBAAgB,CAAC,uBAAuB,CAAC,uBAAY,CAAC,MAAM,CAAC,EAAE,mBAAmB,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;SAC7G;IACL,CAAC;CAGJ,CAAA;AAjBG;IAAC,IAAA,kBAAM,EAAC,oCAAgB,CAAC;;0EACoB;AAF3B,gCAAgC;IADrD,IAAA,sBAAU,GAAE;GACS,gCAAgC,CAkBrD;AAlBqB,4EAAgC"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { ActionHandlerConstructor } from '../actions/action-handler';
|
|
2
|
+
import { BindingTarget } from '../di/binding-target';
|
|
3
|
+
import { DiagramModule } from '../di/diagram-module';
|
|
4
|
+
import { InstanceMultiBinding } from '../di/multi-binding';
|
|
5
|
+
import { GModelFactory } from '../features/model/gmodel-factory';
|
|
6
|
+
import { ModelState } from '../features/model/model-state';
|
|
7
|
+
import { OperationHandlerConstructor } from '../operations/operation-handler';
|
|
8
|
+
/**
|
|
9
|
+
* Extension of the {@link DiagramModule} to provide GModel integration.
|
|
10
|
+
*
|
|
11
|
+
* Contains all bindings of {@link DiagramModule}.
|
|
12
|
+
*
|
|
13
|
+
* Additionally binds:
|
|
14
|
+
* - {@link CommandStack} to {@link DefaultCommandStack}
|
|
15
|
+
* - {@link ModelState} to {@link ModelState}
|
|
16
|
+
* - {@link GModelFactory} to {@link GModelFactoryNullImpl}
|
|
17
|
+
* - {@link GModelIndex} to self
|
|
18
|
+
* - {@link ComputedBoundsActionHandler} to {@link ActionHandler}
|
|
19
|
+
* - {@link RequestClipboardDataActionHandler} to {@link ActionHandler}
|
|
20
|
+
* - {@link ApplyLabelEditOperationHandler} to {@link OperationHandler}
|
|
21
|
+
* - {@link ChangeBoundsOperationHandler} to {@link OperationHandler}
|
|
22
|
+
* - {@link CutOperationHandler} to {@link OperationHandler}
|
|
23
|
+
* - {@link PasteOperationHandler} to {@link OperationHandler}
|
|
24
|
+
*/
|
|
25
|
+
export declare abstract class GModelDiagramModule extends DiagramModule {
|
|
26
|
+
protected bindGModelFactory(): BindingTarget<GModelFactory>;
|
|
27
|
+
protected bindModelState(): BindingTarget<ModelState>;
|
|
28
|
+
protected configureActionHandlers(binding: InstanceMultiBinding<ActionHandlerConstructor>): void;
|
|
29
|
+
protected configureOperationHandlers(binding: InstanceMultiBinding<OperationHandlerConstructor>): void;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=gmodel-diagram-module.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gmodel-diagram-module.d.ts","sourceRoot":"","sources":["../../../src/common/gmodel/gmodel-diagram-module.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,wBAAwB,EAAE,MAAM,2BAA2B,CAAC;AACrE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,oBAAoB,EAAE,MAAM,qBAAqB,CAAC;AAG3D,OAAO,EAAE,aAAa,EAAyB,MAAM,kCAAkC,CAAC;AACxF,OAAO,EAAqB,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAG9E,OAAO,EAAE,2BAA2B,EAAE,MAAM,iCAAiC,CAAC;AAS9E;;;;;;;;;;;;;;;;GAgBG;AACH,8BACsB,mBAAoB,SAAQ,aAAa;cACxC,iBAAiB,IAAI,aAAa,CAAC,aAAa,CAAC;IAIpE,SAAS,CAAC,cAAc,IAAI,aAAa,CAAC,UAAU,CAAC;cAIlC,uBAAuB,CAAC,OAAO,EAAE,oBAAoB,CAAC,wBAAwB,CAAC,GAAG,IAAI;cAOtF,0BAA0B,CAAC,OAAO,EAAE,oBAAoB,CAAC,2BAA2B,CAAC,GAAG,IAAI;CAWlH"}
|
|
@@ -0,0 +1,86 @@
|
|
|
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.GModelDiagramModule = void 0;
|
|
10
|
+
/********************************************************************************
|
|
11
|
+
* Copyright (c) 2022-2023 STMicroelectronics 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 diagram_module_1 = require("../di/diagram-module");
|
|
27
|
+
const request_clipboard_data_action_handler_1 = require("../features/clipboard/request-clipboard-data-action-handler");
|
|
28
|
+
const layout_operation_handler_1 = require("../features/layout/layout-operation-handler");
|
|
29
|
+
const gmodel_factory_1 = require("../features/model/gmodel-factory");
|
|
30
|
+
const model_state_1 = require("../features/model/model-state");
|
|
31
|
+
const save_model_action_handler_1 = require("../features/model/save-model-action-handler");
|
|
32
|
+
const cut_operation_handler_1 = require("../operations/cut-operation-handler");
|
|
33
|
+
const apply_label_edit_operation_handler_1 = require("./apply-label-edit-operation-handler");
|
|
34
|
+
const change_bounds_operation_handler_1 = require("./change-bounds-operation-handler");
|
|
35
|
+
const change_routing_points_operation_handler_1 = require("./change-routing-points-operation-handler");
|
|
36
|
+
const computed_bounds_action_handler_1 = require("./computed-bounds-action-handler");
|
|
37
|
+
const delete_operation_handler_1 = require("./delete-operation-handler");
|
|
38
|
+
const paste_operation_handler_1 = require("./paste-operation-handler");
|
|
39
|
+
const reconnect_edge_operation_handler_1 = require("./reconnect-edge-operation-handler");
|
|
40
|
+
/**
|
|
41
|
+
* Extension of the {@link DiagramModule} to provide GModel integration.
|
|
42
|
+
*
|
|
43
|
+
* Contains all bindings of {@link DiagramModule}.
|
|
44
|
+
*
|
|
45
|
+
* Additionally binds:
|
|
46
|
+
* - {@link CommandStack} to {@link DefaultCommandStack}
|
|
47
|
+
* - {@link ModelState} to {@link ModelState}
|
|
48
|
+
* - {@link GModelFactory} to {@link GModelFactoryNullImpl}
|
|
49
|
+
* - {@link GModelIndex} to self
|
|
50
|
+
* - {@link ComputedBoundsActionHandler} to {@link ActionHandler}
|
|
51
|
+
* - {@link RequestClipboardDataActionHandler} to {@link ActionHandler}
|
|
52
|
+
* - {@link ApplyLabelEditOperationHandler} to {@link OperationHandler}
|
|
53
|
+
* - {@link ChangeBoundsOperationHandler} to {@link OperationHandler}
|
|
54
|
+
* - {@link CutOperationHandler} to {@link OperationHandler}
|
|
55
|
+
* - {@link PasteOperationHandler} to {@link OperationHandler}
|
|
56
|
+
*/
|
|
57
|
+
let GModelDiagramModule = class GModelDiagramModule extends diagram_module_1.DiagramModule {
|
|
58
|
+
bindGModelFactory() {
|
|
59
|
+
return gmodel_factory_1.GModelFactoryNullImpl;
|
|
60
|
+
}
|
|
61
|
+
bindModelState() {
|
|
62
|
+
return model_state_1.DefaultModelState;
|
|
63
|
+
}
|
|
64
|
+
configureActionHandlers(binding) {
|
|
65
|
+
super.configureActionHandlers(binding);
|
|
66
|
+
binding.add(computed_bounds_action_handler_1.ComputedBoundsActionHandler);
|
|
67
|
+
binding.add(save_model_action_handler_1.SaveModelActionHandler);
|
|
68
|
+
binding.add(request_clipboard_data_action_handler_1.RequestClipboardDataActionHandler);
|
|
69
|
+
}
|
|
70
|
+
configureOperationHandlers(binding) {
|
|
71
|
+
super.configureOperationHandlers(binding);
|
|
72
|
+
binding.add(apply_label_edit_operation_handler_1.ApplyLabelEditOperationHandler);
|
|
73
|
+
binding.add(change_bounds_operation_handler_1.ChangeBoundsOperationHandler);
|
|
74
|
+
binding.add(cut_operation_handler_1.CutOperationHandler);
|
|
75
|
+
binding.add(delete_operation_handler_1.GModelDeleteOperationHandler);
|
|
76
|
+
binding.add(paste_operation_handler_1.PasteOperationHandler);
|
|
77
|
+
binding.add(reconnect_edge_operation_handler_1.ReconnectEdgeOperationHandler);
|
|
78
|
+
binding.add(layout_operation_handler_1.LayoutOperationHandler);
|
|
79
|
+
binding.add(change_routing_points_operation_handler_1.ChangeRoutingPointsOperationHandler);
|
|
80
|
+
}
|
|
81
|
+
};
|
|
82
|
+
GModelDiagramModule = __decorate([
|
|
83
|
+
(0, inversify_1.injectable)()
|
|
84
|
+
], GModelDiagramModule);
|
|
85
|
+
exports.GModelDiagramModule = GModelDiagramModule;
|
|
86
|
+
//# sourceMappingURL=gmodel-diagram-module.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"gmodel-diagram-module.js","sourceRoot":"","sources":["../../../src/common/gmodel/gmodel-diagram-module.ts"],"names":[],"mappings":";;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAAuC;AAGvC,yDAAqD;AAErD,uHAAgH;AAChH,0FAAqF;AACrF,qEAAwF;AACxF,+DAA8E;AAC9E,2FAAqF;AACrF,+EAA0E;AAE1E,6FAAsF;AACtF,uFAAiF;AACjF,uGAAgG;AAChG,qFAA+E;AAC/E,yEAA0E;AAC1E,uEAAkE;AAClE,yFAAmF;AAEnF;;;;;;;;;;;;;;;;GAgBG;AAEI,IAAe,mBAAmB,GAAlC,MAAe,mBAAoB,SAAQ,8BAAa;IACxC,iBAAiB;QAChC,OAAO,sCAAqB,CAAC;IACjC,CAAC;IAES,cAAc;QACpB,OAAO,+BAAiB,CAAC;IAC7B,CAAC;IAEkB,uBAAuB,CAAC,OAAuD;QAC9F,KAAK,CAAC,uBAAuB,CAAC,OAAO,CAAC,CAAC;QACvC,OAAO,CAAC,GAAG,CAAC,4DAA2B,CAAC,CAAC;QACzC,OAAO,CAAC,GAAG,CAAC,kDAAsB,CAAC,CAAC;QACpC,OAAO,CAAC,GAAG,CAAC,yEAAiC,CAAC,CAAC;IACnD,CAAC;IAEkB,0BAA0B,CAAC,OAA0D;QACpG,KAAK,CAAC,0BAA0B,CAAC,OAAO,CAAC,CAAC;QAC1C,OAAO,CAAC,GAAG,CAAC,mEAA8B,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CAAC,8DAA4B,CAAC,CAAC;QAC1C,OAAO,CAAC,GAAG,CAAC,2CAAmB,CAAC,CAAC;QACjC,OAAO,CAAC,GAAG,CAAC,uDAA4B,CAAC,CAAC;QAC1C,OAAO,CAAC,GAAG,CAAC,+CAAqB,CAAC,CAAC;QACnC,OAAO,CAAC,GAAG,CAAC,gEAA6B,CAAC,CAAC;QAC3C,OAAO,CAAC,GAAG,CAAC,iDAAsB,CAAC,CAAC;QACpC,OAAO,CAAC,GAAG,CAAC,6EAAmC,CAAC,CAAC;IACrD,CAAC;CACJ,CAAA;AA3BqB,mBAAmB;IADxC,IAAA,sBAAU,GAAE;GACS,mBAAmB,CA2BxC;AA3BqB,kDAAmB"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from './apply-label-edit-operation-handler';
|
|
17
|
+
export * from './change-bounds-operation-handler';
|
|
18
|
+
export * from './change-routing-points-operation-handler';
|
|
19
|
+
export * from './computed-bounds-action-handler';
|
|
20
|
+
export * from './delete-operation-handler';
|
|
21
|
+
export * from './gmodel-create-edge-operation-handler';
|
|
22
|
+
export * from './gmodel-create-node-operation-handler';
|
|
23
|
+
export * from './gmodel-diagram-module';
|
|
24
|
+
export * from './paste-operation-handler';
|
|
25
|
+
export * from './reconnect-edge-operation-handler';
|
|
26
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/common/gmodel/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,cAAc,sCAAsC,CAAC;AACrD,cAAc,mCAAmC,CAAC;AAClD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,wCAAwC,CAAC;AACvD,cAAc,wCAAwC,CAAC;AACvD,cAAc,yBAAyB,CAAC;AACxC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,oCAAoC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
4
|
+
*
|
|
5
|
+
* This program and the accompanying materials are made available under the
|
|
6
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
*
|
|
9
|
+
* This Source Code may also be made available under the following Secondary
|
|
10
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
* with the GNU Classpath Exception which is available at
|
|
13
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
*
|
|
15
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
+
********************************************************************************/
|
|
17
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
20
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
21
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
22
|
+
}
|
|
23
|
+
Object.defineProperty(o, k2, desc);
|
|
24
|
+
}) : (function(o, m, k, k2) {
|
|
25
|
+
if (k2 === undefined) k2 = k;
|
|
26
|
+
o[k2] = m[k];
|
|
27
|
+
}));
|
|
28
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
29
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30
|
+
};
|
|
31
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
+
__exportStar(require("./apply-label-edit-operation-handler"), exports);
|
|
33
|
+
__exportStar(require("./change-bounds-operation-handler"), exports);
|
|
34
|
+
__exportStar(require("./change-routing-points-operation-handler"), exports);
|
|
35
|
+
__exportStar(require("./computed-bounds-action-handler"), exports);
|
|
36
|
+
__exportStar(require("./delete-operation-handler"), exports);
|
|
37
|
+
__exportStar(require("./gmodel-create-edge-operation-handler"), exports);
|
|
38
|
+
__exportStar(require("./gmodel-create-node-operation-handler"), exports);
|
|
39
|
+
__exportStar(require("./gmodel-diagram-module"), exports);
|
|
40
|
+
__exportStar(require("./paste-operation-handler"), exports);
|
|
41
|
+
__exportStar(require("./reconnect-edge-operation-handler"), exports);
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/common/gmodel/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;AAElF,uEAAqD;AACrD,oEAAkD;AAClD,4EAA0D;AAC1D,mEAAiD;AACjD,6DAA2C;AAC3C,yEAAuD;AACvD,yEAAuD;AACvD,0DAAwC;AACxC,4DAA0C;AAC1C,qEAAmD"}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022-2023 STMicroelectronics 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 { GBoundsAware, GModelElement } from '@eclipse-glsp/graph';
|
|
17
|
+
import { MaybePromise, PasteOperation, Point } from '@eclipse-glsp/protocol';
|
|
18
|
+
import { GModelSerializer } from '../features/model/gmodel-serializer';
|
|
19
|
+
import { ModelState } from '../features/model/model-state';
|
|
20
|
+
import { OperationHandler } from '../operations/operation-handler';
|
|
21
|
+
export declare class PasteOperationHandler implements OperationHandler {
|
|
22
|
+
operationType: string;
|
|
23
|
+
protected readonly DEFAULT_OFFSET = 20;
|
|
24
|
+
protected modelState: ModelState;
|
|
25
|
+
protected modelSerializer: GModelSerializer;
|
|
26
|
+
execute(operation: PasteOperation): MaybePromise<void>;
|
|
27
|
+
protected computeOffset(elements: GModelElement[], lastMousePosition?: Point): Point;
|
|
28
|
+
protected getReferenceElementForPasteOffset(elements: GModelElement[]): GBoundsAware | undefined;
|
|
29
|
+
protected reassignIds(elements: GModelElement[]): Map<string, string>;
|
|
30
|
+
protected filterElements(elements: GModelElement[], idMap: Map<string, string>): void;
|
|
31
|
+
protected shouldExcludeElement(element: GModelElement, idMap: Map<string, string>): boolean;
|
|
32
|
+
protected rewireEdges(elements: GModelElement[], idMap: Map<string, string>): void;
|
|
33
|
+
}
|
|
34
|
+
export declare function shift(elements: GModelElement[], offset: Point): void;
|
|
35
|
+
//# sourceMappingURL=paste-operation-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paste-operation-handler.d.ts","sourceRoot":"","sources":["../../../src/common/gmodel/paste-operation-handler.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,YAAY,EAAS,aAAa,EAAkB,MAAM,qBAAqB,CAAC;AACzF,OAAO,EAAE,YAAY,EAAE,cAAc,EAAE,KAAK,EAAuB,MAAM,wBAAwB,CAAC;AAGlG,OAAO,EAAE,gBAAgB,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAEnE,qBACa,qBAAsB,YAAW,gBAAgB;IAC1D,aAAa,SAAuB;IAEpC,SAAS,CAAC,QAAQ,CAAC,cAAc,MAAM;IAGvC,SAAS,CAAC,UAAU,EAAE,UAAU,CAAC;IAGjC,SAAS,CAAC,eAAe,EAAE,gBAAgB,CAAC;IAE5C,OAAO,CAAC,SAAS,EAAE,cAAc,GAAG,YAAY,CAAC,IAAI,CAAC;IAWtD,SAAS,CAAC,aAAa,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,iBAAiB,CAAC,EAAE,KAAK,GAAG,KAAK;IAapF,SAAS,CAAC,iCAAiC,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,YAAY,GAAG,SAAS;IAchG,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,aAAa,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC;IAcrE,SAAS,CAAC,cAAc,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;IAIrF,SAAS,CAAC,oBAAoB,CAAC,OAAO,EAAE,aAAa,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,OAAO;IAI3F,SAAS,CAAC,WAAW,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,KAAK,EAAE,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI;CAarF;AAED,wBAAgB,KAAK,CAAC,QAAQ,EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,KAAK,GAAG,IAAI,CAQpE"}
|
|
@@ -0,0 +1,131 @@
|
|
|
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.shift = exports.PasteOperationHandler = void 0;
|
|
13
|
+
/********************************************************************************
|
|
14
|
+
* Copyright (c) 2022-2023 STMicroelectronics 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 graph_1 = require("@eclipse-glsp/graph");
|
|
29
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
30
|
+
const inversify_1 = require("inversify");
|
|
31
|
+
const uuid = require("uuid");
|
|
32
|
+
const gmodel_serializer_1 = require("../features/model/gmodel-serializer");
|
|
33
|
+
const model_state_1 = require("../features/model/model-state");
|
|
34
|
+
let PasteOperationHandler = class PasteOperationHandler {
|
|
35
|
+
constructor() {
|
|
36
|
+
this.operationType = protocol_1.PasteOperation.KIND;
|
|
37
|
+
this.DEFAULT_OFFSET = 20;
|
|
38
|
+
}
|
|
39
|
+
execute(operation) {
|
|
40
|
+
const schemas = JSON.parse(operation.clipboardData['application/json']);
|
|
41
|
+
const elements = schemas.map(schema => this.modelSerializer.createElement(schema, this.modelState.root));
|
|
42
|
+
shift(elements, this.computeOffset(elements, operation.editorContext.lastMousePosition));
|
|
43
|
+
const idMap = this.reassignIds(elements);
|
|
44
|
+
this.filterElements(elements, idMap);
|
|
45
|
+
this.rewireEdges(elements, idMap);
|
|
46
|
+
this.modelState.root.children.push(...elements);
|
|
47
|
+
}
|
|
48
|
+
computeOffset(elements, lastMousePosition) {
|
|
49
|
+
var _a;
|
|
50
|
+
const offset = { x: this.DEFAULT_OFFSET, y: this.DEFAULT_OFFSET };
|
|
51
|
+
if (lastMousePosition) {
|
|
52
|
+
const referenceElement = this.getReferenceElementForPasteOffset(elements);
|
|
53
|
+
if (referenceElement) {
|
|
54
|
+
const position = (_a = referenceElement.position) !== null && _a !== void 0 ? _a : protocol_1.Point.ORIGIN;
|
|
55
|
+
offset.x = lastMousePosition.x - position.x;
|
|
56
|
+
offset.y = lastMousePosition.y - position.y;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
return offset;
|
|
60
|
+
}
|
|
61
|
+
getReferenceElementForPasteOffset(elements) {
|
|
62
|
+
var _a;
|
|
63
|
+
let minY = Number.MAX_VALUE;
|
|
64
|
+
for (const element of elements) {
|
|
65
|
+
if ((0, graph_1.isGBoundsAware)(element)) {
|
|
66
|
+
const position = (_a = element.position) !== null && _a !== void 0 ? _a : protocol_1.Point.ORIGIN;
|
|
67
|
+
if (minY > position.y) {
|
|
68
|
+
minY = position.y;
|
|
69
|
+
return element;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return undefined;
|
|
74
|
+
}
|
|
75
|
+
reassignIds(elements) {
|
|
76
|
+
const idMap = new Map();
|
|
77
|
+
elements.forEach(element => {
|
|
78
|
+
const newId = uuid.v4();
|
|
79
|
+
idMap.set(element.id, newId);
|
|
80
|
+
element.id = newId;
|
|
81
|
+
const childMap = this.reassignIds(element.children);
|
|
82
|
+
childMap.forEach((value, key) => {
|
|
83
|
+
idMap.set(key, value);
|
|
84
|
+
});
|
|
85
|
+
});
|
|
86
|
+
return idMap;
|
|
87
|
+
}
|
|
88
|
+
filterElements(elements, idMap) {
|
|
89
|
+
elements.filter(e => !this.shouldExcludeElement(e, idMap));
|
|
90
|
+
}
|
|
91
|
+
shouldExcludeElement(element, idMap) {
|
|
92
|
+
return false;
|
|
93
|
+
}
|
|
94
|
+
rewireEdges(elements, idMap) {
|
|
95
|
+
const edges = elements.filter(element => element instanceof graph_1.GEdge);
|
|
96
|
+
edges.forEach(edge => {
|
|
97
|
+
const sourceId = idMap.get(edge.sourceId);
|
|
98
|
+
if (sourceId) {
|
|
99
|
+
edge.sourceId = sourceId;
|
|
100
|
+
}
|
|
101
|
+
const targetId = idMap.get(edge.targetId);
|
|
102
|
+
if (targetId) {
|
|
103
|
+
edge.targetId = targetId;
|
|
104
|
+
}
|
|
105
|
+
});
|
|
106
|
+
}
|
|
107
|
+
};
|
|
108
|
+
__decorate([
|
|
109
|
+
(0, inversify_1.inject)(model_state_1.ModelState),
|
|
110
|
+
__metadata("design:type", Object)
|
|
111
|
+
], PasteOperationHandler.prototype, "modelState", void 0);
|
|
112
|
+
__decorate([
|
|
113
|
+
(0, inversify_1.inject)(gmodel_serializer_1.GModelSerializer),
|
|
114
|
+
__metadata("design:type", Object)
|
|
115
|
+
], PasteOperationHandler.prototype, "modelSerializer", void 0);
|
|
116
|
+
PasteOperationHandler = __decorate([
|
|
117
|
+
(0, inversify_1.injectable)()
|
|
118
|
+
], PasteOperationHandler);
|
|
119
|
+
exports.PasteOperationHandler = PasteOperationHandler;
|
|
120
|
+
function shift(elements, offset) {
|
|
121
|
+
elements
|
|
122
|
+
.filter(element => (0, graph_1.isGBoundsAware)(element))
|
|
123
|
+
.map(element => element)
|
|
124
|
+
.forEach(gBoundsAware => {
|
|
125
|
+
var _a;
|
|
126
|
+
const position = (_a = gBoundsAware.position) !== null && _a !== void 0 ? _a : protocol_1.Point.ORIGIN;
|
|
127
|
+
gBoundsAware.position = { x: position.x + offset.x, y: position.y + offset.y };
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
exports.shift = shift;
|
|
131
|
+
//# sourceMappingURL=paste-operation-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"paste-operation-handler.js","sourceRoot":"","sources":["../../../src/common/gmodel/paste-operation-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,+CAAyF;AACzF,qDAAkG;AAClG,yCAA+C;AAC/C,6BAA6B;AAC7B,2EAAuE;AACvE,+DAA2D;AAIpD,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAA3B;QACH,kBAAa,GAAG,yBAAc,CAAC,IAAI,CAAC;QAEjB,mBAAc,GAAG,EAAE,CAAC;IAiF3C,CAAC;IAzEG,OAAO,CAAC,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,EAAE,QAAQ,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC,EAAE,CAAC;IACnF,CAAC,CAAC,CAAC;AACX,CAAC;AARD,sBAQC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { MaybePromise, ReconnectEdgeOperation } from '@eclipse-glsp/protocol';
|
|
2
|
+
import { ModelState } from '../features/model/model-state';
|
|
3
|
+
import { OperationHandler } from '../operations/operation-handler';
|
|
4
|
+
export declare class ReconnectEdgeOperationHandler implements OperationHandler {
|
|
5
|
+
operationType: string;
|
|
6
|
+
protected readonly modelState: ModelState;
|
|
7
|
+
execute(operation: ReconnectEdgeOperation): MaybePromise<void>;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=reconnect-edge-operation-handler.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconnect-edge-operation-handler.d.ts","sourceRoot":"","sources":["../../../src/common/gmodel/reconnect-edge-operation-handler.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,YAAY,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAE9E,OAAO,EAAE,UAAU,EAAE,MAAM,+BAA+B,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,MAAM,iCAAiC,CAAC;AAGnE,qBACa,6BAA8B,YAAW,gBAAgB;IAClE,aAAa,SAA+B;IAG5C,SAAS,CAAC,QAAQ,CAAC,UAAU,EAAE,UAAU,CAAC;IAE1C,OAAO,CAAC,SAAS,EAAE,sBAAsB,GAAG,YAAY,CAAC,IAAI,CAAC;CAyBjE"}
|
|
@@ -0,0 +1,67 @@
|
|
|
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.ReconnectEdgeOperationHandler = void 0;
|
|
13
|
+
/********************************************************************************
|
|
14
|
+
* Copyright (c) 2022-2023 STMicroelectronics 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 graph_1 = require("@eclipse-glsp/graph");
|
|
29
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
30
|
+
const inversify_1 = require("inversify");
|
|
31
|
+
const model_state_1 = require("../features/model/model-state");
|
|
32
|
+
const glsp_server_error_1 = require("../utils/glsp-server-error");
|
|
33
|
+
let ReconnectEdgeOperationHandler = class ReconnectEdgeOperationHandler {
|
|
34
|
+
constructor() {
|
|
35
|
+
this.operationType = protocol_1.ReconnectEdgeOperation.KIND;
|
|
36
|
+
}
|
|
37
|
+
execute(operation) {
|
|
38
|
+
if (!operation.edgeElementId || !operation.sourceElementId || !operation.targetElementId) {
|
|
39
|
+
throw new glsp_server_error_1.GLSPServerError('Incomplete reconnect connection action');
|
|
40
|
+
}
|
|
41
|
+
const index = this.modelState.index;
|
|
42
|
+
const edge = index.findByClass(operation.edgeElementId, graph_1.GEdge);
|
|
43
|
+
const source = index.findByClass(operation.sourceElementId, graph_1.GNode || graph_1.GPort);
|
|
44
|
+
const target = index.findByClass(operation.targetElementId, graph_1.GNode || graph_1.GPort);
|
|
45
|
+
if (!edge) {
|
|
46
|
+
throw new Error(`Invalid edge: edge ID ${operation.edgeElementId}`);
|
|
47
|
+
}
|
|
48
|
+
if (!source) {
|
|
49
|
+
throw new Error(`Invalid source: source ID ${operation.sourceElementId}`);
|
|
50
|
+
}
|
|
51
|
+
if (!target) {
|
|
52
|
+
throw new Error(`Invalid target: target ID ${operation.targetElementId}`);
|
|
53
|
+
}
|
|
54
|
+
edge.sourceId = source.id;
|
|
55
|
+
edge.targetId = target.id;
|
|
56
|
+
edge.routingPoints = [];
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
__decorate([
|
|
60
|
+
(0, inversify_1.inject)(model_state_1.ModelState),
|
|
61
|
+
__metadata("design:type", Object)
|
|
62
|
+
], ReconnectEdgeOperationHandler.prototype, "modelState", void 0);
|
|
63
|
+
ReconnectEdgeOperationHandler = __decorate([
|
|
64
|
+
(0, inversify_1.injectable)()
|
|
65
|
+
], ReconnectEdgeOperationHandler);
|
|
66
|
+
exports.ReconnectEdgeOperationHandler = ReconnectEdgeOperationHandler;
|
|
67
|
+
//# sourceMappingURL=reconnect-edge-operation-handler.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"reconnect-edge-operation-handler.js","sourceRoot":"","sources":["../../../src/common/gmodel/reconnect-edge-operation-handler.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,+CAA0D;AAC1D,qDAA8E;AAC9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AAC,wBAAU,CAAC;;iEACuB;AAJjC,6BAA6B;IADzC,IAAA,sBAAU,GAAE;GACA,6BAA6B,CA+BzC;AA/BY,sEAA6B"}
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
export * from '@eclipse-glsp/graph';
|
|
17
|
+
export * from '@eclipse-glsp/protocol';
|
|
18
|
+
export * from './actions/action-dispatcher';
|
|
19
|
+
export * from './actions/action-handler';
|
|
20
|
+
export * from './actions/action-handler-registry';
|
|
21
|
+
export * from './actions/client-action-handler';
|
|
22
|
+
export * from './actions/global-action-provider';
|
|
23
|
+
export * from './command/command';
|
|
24
|
+
export * from './command/command-stack';
|
|
25
|
+
export * from './di/binding-target';
|
|
26
|
+
export * from './di/client-session-module';
|
|
27
|
+
export * from './di/diagram-module';
|
|
28
|
+
export * from './di/glsp-module';
|
|
29
|
+
export * from './di/multi-binding';
|
|
30
|
+
export * from './di/server-module';
|
|
31
|
+
export * from './di/service-identifiers';
|
|
32
|
+
export * from './diagram/diagram-configuration';
|
|
33
|
+
export * from './diagram/request-type-hints-action-handler';
|
|
34
|
+
export * from './features/clipboard/request-clipboard-data-action-handler';
|
|
35
|
+
export * from './features/contextactions/command-palette-action-provider';
|
|
36
|
+
export * from './features/contextactions/context-actions-provider';
|
|
37
|
+
export * from './features/contextactions/context-actions-provider-registry';
|
|
38
|
+
export * from './features/contextactions/context-menu-item-provider';
|
|
39
|
+
export * from './features/contextactions/request-context-actions-handler';
|
|
40
|
+
export * from './features/contextactions/tool-palette-item-provider';
|
|
41
|
+
export * from './features/directediting/context-edit-validator';
|
|
42
|
+
export * from './features/directediting/context-edit-validator-registry';
|
|
43
|
+
export * from './features/directediting/label-edit-validator';
|
|
44
|
+
export * from './features/directediting/request-edit-validation-handler';
|
|
45
|
+
export * from './features/layout/layout-engine';
|
|
46
|
+
export * from './features/layout/layout-operation-handler';
|
|
47
|
+
export * from './features/model/gmodel-factory';
|
|
48
|
+
export * from './features/model/gmodel-index';
|
|
49
|
+
export * from './features/model/gmodel-serializer';
|
|
50
|
+
export * from './features/model/model-state';
|
|
51
|
+
export * from './features/model/model-submission-handler';
|
|
52
|
+
export * from './features/model/request-model-action-handler';
|
|
53
|
+
export * from './features/model/save-model-action-handler';
|
|
54
|
+
export * from './features/model/source-model-storage';
|
|
55
|
+
export * from './features/navigation/json-opener-options';
|
|
56
|
+
export * from './features/navigation/navigation-target-provider';
|
|
57
|
+
export * from './features/navigation/navigation-target-provider-registry';
|
|
58
|
+
export * from './features/navigation/navigation-target-resolution';
|
|
59
|
+
export * from './features/navigation/navigation-target-resolver';
|
|
60
|
+
export * from './features/navigation/request-navigation-targets-action-handler';
|
|
61
|
+
export * from './features/navigation/resolve-navigation-targets-action-handler';
|
|
62
|
+
export * from './features/popup/popup-model-factory';
|
|
63
|
+
export * from './features/popup/request-popup-model-action-handler';
|
|
64
|
+
export * from './features/validation/model-validator';
|
|
65
|
+
export * from './features/validation/request-markers-handler';
|
|
66
|
+
export * from './gmodel/index';
|
|
67
|
+
export * from './launch/glsp-server-launcher';
|
|
68
|
+
export * from './operations/compound-operation-handler';
|
|
69
|
+
export * from './operations/create-operation-handler';
|
|
70
|
+
export * from './operations/cut-operation-handler';
|
|
71
|
+
export * from './operations/operation-action-handler';
|
|
72
|
+
export * from './operations/operation-handler';
|
|
73
|
+
export * from './operations/operation-handler-registry';
|
|
74
|
+
export * from './protocol/glsp-client-proxy';
|
|
75
|
+
export * from './protocol/glsp-server';
|
|
76
|
+
export * from './protocol/glsp-server-listener';
|
|
77
|
+
export * from './session/client-session';
|
|
78
|
+
export * from './session/client-session-factory';
|
|
79
|
+
export * from './session/client-session-initializer';
|
|
80
|
+
export * from './session/client-session-listener';
|
|
81
|
+
export * from './session/client-session-manager';
|
|
82
|
+
export * from './utils/args-util';
|
|
83
|
+
export * from './utils/client-options-util';
|
|
84
|
+
export * from './utils/glsp-server-error';
|
|
85
|
+
export * from './utils/logger';
|
|
86
|
+
export * from './utils/promise-queue';
|
|
87
|
+
export * from './utils/registry';
|
|
88
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/common/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,iCAAiC,CAAC;AAChD,cAAc,kCAAkC,CAAC;AACjD,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,0BAA0B,CAAC;AACzC,cAAc,iCAAiC,CAAC;AAChD,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4DAA4D,CAAC;AAC3E,cAAc,2DAA2D,CAAC;AAC1E,cAAc,oDA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