@eclipse-glsp/client 1.1.0-next.5a004c2.229 → 1.1.0-next.6c2f3cc.244
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/{lib/features/change-bounds/snap.spec.d.ts → css/autocomplete-palette.css} +8 -3
- package/css/decoration.css +1 -1
- package/css/glsp-sprotty.css +16 -1
- package/lib/base/auto-complete/auto-complete-widget.d.ts +10 -4
- package/lib/base/auto-complete/auto-complete-widget.d.ts.map +1 -1
- package/lib/base/auto-complete/auto-complete-widget.js +28 -9
- package/lib/base/auto-complete/auto-complete-widget.js.map +1 -1
- package/lib/base/command-stack.d.ts +1 -2
- package/lib/base/command-stack.d.ts.map +1 -1
- package/lib/base/command-stack.js +5 -14
- package/lib/base/command-stack.js.map +1 -1
- package/lib/base/container-modules.d.ts +8 -16
- package/lib/base/container-modules.d.ts.map +1 -1
- package/lib/base/container-modules.js +52 -66
- package/lib/base/container-modules.js.map +1 -1
- package/lib/base/di.config.d.ts +1 -1
- package/lib/base/di.config.d.ts.map +1 -1
- package/lib/base/di.config.js +7 -7
- package/lib/base/di.config.js.map +1 -1
- package/lib/base/editor-context-service.d.ts +3 -3
- package/lib/base/editor-context-service.d.ts.map +1 -1
- package/lib/base/editor-context-service.js +3 -3
- package/lib/base/editor-context-service.js.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.d.ts +4 -5
- package/lib/base/tool-manager/glsp-tool-manager.d.ts.map +1 -1
- package/lib/base/tool-manager/glsp-tool-manager.js +15 -8
- package/lib/base/tool-manager/glsp-tool-manager.js.map +1 -1
- package/lib/features/accessibility/di.config.d.ts +21 -0
- package/lib/features/accessibility/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/di.config.js +28 -0
- package/lib/features/accessibility/di.config.js.map +1 -0
- package/lib/features/accessibility/search/di.config.d.ts +20 -0
- package/lib/features/accessibility/search/di.config.d.ts.map +1 -0
- package/lib/features/accessibility/search/di.config.js +33 -0
- package/lib/features/accessibility/search/di.config.js.map +1 -0
- package/lib/features/accessibility/search/search-palette.d.ts +47 -0
- package/lib/features/accessibility/search/search-palette.d.ts.map +1 -0
- package/lib/features/accessibility/search/search-palette.js +155 -0
- package/lib/features/accessibility/search/search-palette.js.map +1 -0
- package/lib/features/accessibility/search/search-tool.d.ts +30 -0
- package/lib/features/accessibility/search/search-tool.d.ts.map +1 -0
- package/lib/features/accessibility/search/search-tool.js +73 -0
- package/lib/features/accessibility/search/search-tool.js.map +1 -0
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.d.ts +35 -0
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.d.ts.map +1 -0
- package/lib/features/{tools/marquee-behavior.spec.d.ts → autocomplete-palette/autocomplete-suggestion-providers.js} +4 -3
- package/lib/features/autocomplete-palette/autocomplete-suggestion-providers.js.map +1 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.d.ts +41 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.d.ts.map +1 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.js +82 -0
- package/lib/features/autocomplete-palette/base-autocomplete-palette.js.map +1 -0
- package/lib/features/bounds/di.config.d.ts +0 -16
- package/lib/features/bounds/di.config.d.ts.map +1 -1
- package/lib/features/bounds/di.config.js +12 -9
- package/lib/features/bounds/di.config.js.map +1 -1
- package/lib/features/{layout → bounds}/freeform-layout.d.ts +2 -2
- package/lib/features/{layout → bounds}/freeform-layout.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/freeform-layout.js +2 -2
- package/lib/features/{layout → bounds}/freeform-layout.js.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.d.ts.map +1 -1
- package/lib/features/bounds/glsp-hidden-bounds-updater.js +3 -2
- package/lib/features/bounds/glsp-hidden-bounds-updater.js.map +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.d.ts +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.js +1 -1
- package/lib/features/{layout → bounds}/hbox-layout.js.map +1 -1
- package/lib/features/{layout → bounds}/layouter.d.ts +1 -1
- package/lib/features/{layout → bounds}/layouter.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/layouter.js +1 -1
- package/lib/features/{layout → bounds}/layouter.js.map +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.d.ts +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.d.ts.map +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.js +1 -1
- package/lib/features/{layout → bounds}/vbox-layout.js.map +1 -1
- package/lib/features/command-palette/command-palette-tool.d.ts +1 -1
- package/lib/features/command-palette/command-palette-tool.d.ts.map +1 -1
- package/lib/features/command-palette/command-palette-tool.js +3 -3
- package/lib/features/command-palette/command-palette-tool.js.map +1 -1
- package/lib/features/command-palette/di.config.d.ts +0 -15
- package/lib/features/command-palette/di.config.d.ts.map +1 -1
- package/lib/features/command-palette/di.config.js +6 -7
- package/lib/features/command-palette/di.config.js.map +1 -1
- package/lib/features/context-menu/di.config.d.ts +0 -15
- package/lib/features/context-menu/di.config.d.ts.map +1 -1
- package/lib/features/context-menu/di.config.js +4 -3
- package/lib/features/context-menu/di.config.js.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.d.ts +2 -2
- package/lib/features/copy-paste/copy-paste-handler.d.ts.map +1 -1
- package/lib/features/copy-paste/copy-paste-handler.js +5 -5
- package/lib/features/copy-paste/copy-paste-handler.js.map +1 -1
- package/lib/features/decoration/di.config.d.ts +0 -15
- package/lib/features/decoration/di.config.d.ts.map +1 -1
- package/lib/features/decoration/di.config.js +4 -4
- package/lib/features/decoration/di.config.js.map +1 -1
- package/lib/features/edit-label/di.config.d.ts +0 -15
- package/lib/features/edit-label/di.config.d.ts.map +1 -1
- package/lib/features/edit-label/di.config.js +3 -2
- package/lib/features/edit-label/di.config.js.map +1 -1
- package/lib/features/export/di.config.d.ts +0 -15
- package/lib/features/export/di.config.d.ts.map +1 -1
- package/lib/features/export/di.config.js +6 -5
- package/lib/features/export/di.config.js.map +1 -1
- package/lib/features/export/glsp-svg-exporter.d.ts +1 -1
- package/lib/features/export/glsp-svg-exporter.d.ts.map +1 -1
- package/lib/features/export/glsp-svg-exporter.js +1 -2
- package/lib/features/export/glsp-svg-exporter.js.map +1 -1
- package/lib/features/hover/di.config.d.ts +0 -15
- package/lib/features/hover/di.config.d.ts.map +1 -1
- package/lib/features/hover/di.config.js +7 -7
- package/lib/features/hover/di.config.js.map +1 -1
- package/lib/features/layout/di.config.d.ts +1 -1
- package/lib/features/layout/di.config.d.ts.map +1 -1
- package/lib/features/layout/di.config.js +1 -9
- package/lib/features/layout/di.config.js.map +1 -1
- package/lib/features/navigation/di.config.d.ts +2 -1
- package/lib/features/navigation/di.config.d.ts.map +1 -1
- package/lib/features/navigation/di.config.js +3 -3
- package/lib/features/navigation/di.config.js.map +1 -1
- package/lib/features/navigation/navigation-action-handler.d.ts +2 -2
- package/lib/features/navigation/navigation-action-handler.js +2 -2
- package/lib/features/save/di.config.d.ts +0 -15
- package/lib/features/save/di.config.d.ts.map +1 -1
- package/lib/features/save/di.config.js +3 -2
- package/lib/features/save/di.config.js.map +1 -1
- package/lib/features/select/di.config.d.ts +0 -15
- package/lib/features/select/di.config.d.ts.map +1 -1
- package/lib/features/select/di.config.js +8 -7
- package/lib/features/select/di.config.js.map +1 -1
- package/lib/features/svg-metadata/di.config.d.ts +19 -0
- package/lib/features/svg-metadata/di.config.d.ts.map +1 -0
- package/lib/features/svg-metadata/di.config.js +26 -0
- package/lib/features/svg-metadata/di.config.js.map +1 -0
- package/lib/features/svg-metadata/metadata-placer.d.ts +24 -0
- package/lib/features/svg-metadata/metadata-placer.d.ts.map +1 -0
- package/lib/features/svg-metadata/metadata-placer.js +63 -0
- package/lib/features/svg-metadata/metadata-placer.js.map +1 -0
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts +2 -2
- package/lib/features/tool-feedback/change-bounds-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js +3 -3
- package/lib/features/tool-feedback/change-bounds-tool-feedback.js.map +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.d.ts +1 -1
- package/lib/features/tool-feedback/creation-tool-feedback.js +1 -1
- package/lib/features/tool-feedback/di.config.d.ts +0 -15
- package/lib/features/tool-feedback/di.config.d.ts.map +1 -1
- package/lib/features/tool-feedback/di.config.js +20 -18
- package/lib/features/tool-feedback/di.config.js.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +1 -1
- package/lib/features/tool-palette/di.config.d.ts +0 -15
- package/lib/features/tool-palette/di.config.d.ts.map +1 -1
- package/lib/features/tool-palette/di.config.js +4 -4
- package/lib/features/tool-palette/di.config.js.map +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts +1 -1
- package/lib/features/tool-palette/tool-palette.d.ts.map +1 -1
- package/lib/features/tool-palette/tool-palette.js +2 -2
- package/lib/features/tool-palette/tool-palette.js.map +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts +1 -1
- package/lib/features/tools/change-bounds-tool.d.ts.map +1 -1
- package/lib/features/tools/change-bounds-tool.js +6 -6
- package/lib/features/tools/change-bounds-tool.js.map +1 -1
- package/lib/features/tools/di.config.d.ts +18 -5
- package/lib/features/tools/di.config.d.ts.map +1 -1
- package/lib/features/tools/di.config.js +14 -15
- package/lib/features/tools/di.config.js.map +1 -1
- package/lib/features/tools/glsp-manhattan-edge-router.d.ts +2 -2
- package/lib/features/tools/glsp-manhattan-edge-router.d.ts.map +1 -1
- package/lib/features/tools/glsp-manhattan-edge-router.js +4 -4
- package/lib/features/tools/glsp-manhattan-edge-router.js.map +1 -1
- package/lib/features/validation/di.config.js +4 -4
- package/lib/features/validation/di.config.js.map +1 -1
- package/lib/features/validation/validate.d.ts +6 -6
- package/lib/features/validation/validate.d.ts.map +1 -1
- package/lib/features/validation/validate.js +18 -17
- package/lib/features/validation/validate.js.map +1 -1
- package/lib/features/viewport/di.config.d.ts +0 -15
- package/lib/features/viewport/di.config.d.ts.map +1 -1
- package/lib/features/viewport/di.config.js +12 -11
- package/lib/features/viewport/di.config.js.map +1 -1
- package/lib/index.d.ts +30 -4
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +79 -43
- package/lib/index.js.map +1 -1
- package/lib/sprotty-reexport.d.ts +2 -2
- package/lib/sprotty-reexport.d.ts.map +1 -1
- package/lib/sprotty-reexport.js +4 -4
- package/lib/sprotty-reexport.js.map +1 -1
- package/lib/utils/smodel-util.d.ts +1 -1
- package/lib/utils/smodel-util.d.ts.map +1 -1
- package/lib/utils/smodel-util.js +1 -1
- package/lib/utils/smodel-util.js.map +1 -1
- package/lib/views/base-view-module.d.ts +18 -6
- package/lib/views/base-view-module.d.ts.map +1 -1
- package/lib/views/base-view-module.js +1 -1
- package/lib/views/base-view-module.js.map +1 -1
- package/lib/views/glsp-edge-view.d.ts +2 -2
- package/lib/views/glsp-edge-view.d.ts.map +1 -1
- package/lib/views/glsp-edge-view.js +2 -2
- package/lib/views/glsp-edge-view.js.map +1 -1
- package/lib/views/index.d.ts +1 -1
- package/lib/views/index.js +1 -1
- package/lib/views/rounded-corner-view.js +2 -2
- package/lib/views/rounded-corner.d.ts +1 -1
- package/lib/views/rounded-corner.js +1 -1
- package/package.json +5 -3
- package/src/base/auto-complete/auto-complete-widget.ts +34 -10
- package/src/base/command-stack.ts +13 -11
- package/src/base/container-modules.ts +13 -36
- package/src/base/di.config.ts +8 -8
- package/src/base/editor-context-service.ts +4 -4
- package/src/base/tool-manager/glsp-tool-manager.ts +15 -12
- package/src/features/accessibility/di.config.ts +26 -0
- package/src/features/accessibility/search/di.config.ts +31 -0
- package/src/features/accessibility/search/search-palette.ts +181 -0
- package/src/features/accessibility/search/search-tool.ts +60 -0
- package/src/features/autocomplete-palette/autocomplete-suggestion-providers.ts +37 -0
- package/src/features/autocomplete-palette/base-autocomplete-palette.ts +88 -0
- package/src/features/bounds/di.config.ts +21 -11
- package/src/features/{layout/tests → bounds}/freeform-layout.spec.ts +2 -2
- package/src/features/{layout → bounds}/freeform-layout.ts +2 -2
- package/src/features/bounds/glsp-hidden-bounds-updater.ts +4 -7
- package/src/features/{layout/tests → bounds}/hbox-layout.spec.ts +2 -2
- package/src/features/{layout → bounds}/hbox-layout.ts +1 -1
- package/src/features/{layout/tests/layouter-test-util.ts → bounds/layouter-test-util.spec.ts} +5 -5
- package/src/features/{layout → bounds}/layouter.ts +1 -1
- package/src/features/{layout/tests → bounds}/vbox-layout.spec.ts +2 -2
- package/src/features/{layout → bounds}/vbox-layout.ts +1 -1
- package/src/features/command-palette/command-palette-tool.ts +3 -3
- package/src/features/command-palette/di.config.ts +6 -7
- package/src/features/context-menu/di.config.ts +4 -3
- package/src/features/copy-paste/copy-paste-handler.ts +5 -5
- package/src/features/decoration/di.config.ts +4 -4
- package/src/features/edit-label/di.config.ts +3 -2
- package/src/features/export/di.config.ts +6 -5
- package/src/features/export/glsp-svg-exporter.ts +8 -7
- package/src/features/hover/di.config.ts +8 -7
- package/src/features/layout/di.config.ts +2 -11
- package/src/features/navigation/di.config.ts +4 -2
- package/src/features/navigation/navigation-action-handler.ts +2 -2
- package/src/features/save/di.config.ts +3 -2
- package/src/features/select/di.config.ts +8 -7
- package/src/features/select/selection-service.spec.ts +4 -5
- package/src/features/svg-metadata/di.config.ts +26 -0
- package/src/features/svg-metadata/metadata-placer.ts +51 -0
- package/src/features/tool-feedback/change-bounds-tool-feedback.ts +3 -3
- package/src/features/tool-feedback/creation-tool-feedback.ts +1 -1
- package/src/features/tool-feedback/di.config.ts +20 -18
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +1 -1
- package/src/features/tool-palette/di.config.ts +4 -4
- package/src/features/tool-palette/tool-palette.ts +4 -4
- package/src/features/tools/change-bounds-tool.ts +7 -7
- package/src/features/tools/di.config.ts +18 -19
- package/src/features/tools/glsp-manhattan-edge-router.ts +8 -5
- package/src/features/validation/di.config.ts +5 -5
- package/src/features/validation/validate.ts +16 -19
- package/src/features/viewport/di.config.ts +13 -11
- package/src/index.ts +41 -5
- package/src/sprotty-reexport.ts +18 -8
- package/src/utils/smodel-util.ts +12 -5
- package/src/views/base-view-module.ts +4 -9
- package/src/views/glsp-edge-view.tsx +3 -3
- package/src/views/index.ts +1 -2
- package/src/views/rounded-corner-view.tsx +2 -2
- package/src/views/rounded-corner.ts +2 -2
- package/lib/features/change-bounds/snap.spec.d.ts.map +0 -1
- package/lib/features/change-bounds/snap.spec.js +0 -82
- package/lib/features/change-bounds/snap.spec.js.map +0 -1
- package/lib/features/layout/layout-elements-action.spec.d.ts +0 -3
- package/lib/features/layout/layout-elements-action.spec.d.ts.map +0 -1
- package/lib/features/layout/layout-elements-action.spec.js +0 -325
- package/lib/features/layout/layout-elements-action.spec.js.map +0 -1
- package/lib/features/layout/tests/freeform-layout.spec.d.ts +0 -3
- package/lib/features/layout/tests/freeform-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/freeform-layout.spec.js +0 -201
- package/lib/features/layout/tests/freeform-layout.spec.js.map +0 -1
- package/lib/features/layout/tests/hbox-layout.spec.d.ts +0 -3
- package/lib/features/layout/tests/hbox-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/hbox-layout.spec.js +0 -161
- package/lib/features/layout/tests/hbox-layout.spec.js.map +0 -1
- package/lib/features/layout/tests/layouter-test-util.d.ts +0 -34
- package/lib/features/layout/tests/layouter-test-util.d.ts.map +0 -1
- package/lib/features/layout/tests/layouter-test-util.js +0 -96
- package/lib/features/layout/tests/layouter-test-util.js.map +0 -1
- package/lib/features/layout/tests/vbox-layout.spec.d.ts +0 -3
- package/lib/features/layout/tests/vbox-layout.spec.d.ts.map +0 -1
- package/lib/features/layout/tests/vbox-layout.spec.js +0 -161
- package/lib/features/layout/tests/vbox-layout.spec.js.map +0 -1
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts +0 -3
- package/lib/features/navigation/navigation-target-resolver.spec.d.ts.map +0 -1
- package/lib/features/navigation/navigation-target-resolver.spec.js +0 -54
- package/lib/features/navigation/navigation-target-resolver.spec.js.map +0 -1
- package/lib/features/select/selection-service.spec.d.ts +0 -2
- package/lib/features/select/selection-service.spec.d.ts.map +0 -1
- package/lib/features/select/selection-service.spec.js +0 -347
- package/lib/features/select/selection-service.spec.js.map +0 -1
- package/lib/features/tools/marquee-behavior.spec.d.ts.map +0 -1
- package/lib/features/tools/marquee-behavior.spec.js +0 -165
- package/lib/features/tools/marquee-behavior.spec.js.map +0 -1
- package/lib/features/validation/marker-navigator.spec.d.ts +0 -3
- package/lib/features/validation/marker-navigator.spec.d.ts.map +0 -1
- package/lib/features/validation/marker-navigator.spec.js +0 -169
- package/lib/features/validation/marker-navigator.spec.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -25,13 +25,13 @@ import { FeedbackCommand } from '../tool-feedback/model';
|
|
|
25
25
|
export declare class ValidationFeedbackEmitter implements IFeedbackEmitter {
|
|
26
26
|
protected feedbackActionDispatcher: IFeedbackActionDispatcher;
|
|
27
27
|
protected actionDispatcher: () => Promise<IActionDispatcher>;
|
|
28
|
-
|
|
29
|
-
private constructor();
|
|
28
|
+
protected registeredFeedbackByReason: Map<string, ApplyMarkersAction>;
|
|
30
29
|
/**
|
|
31
30
|
* Register the action that should be emitted for visualizing validation feedback.
|
|
32
31
|
* @param action the action that should be emitted when the model is updated and that will visualize the model validation feedback.
|
|
32
|
+
* @param reason the reason for this validation feedback.
|
|
33
33
|
*/
|
|
34
|
-
registerValidationFeedbackAction(action: ApplyMarkersAction): void;
|
|
34
|
+
registerValidationFeedbackAction(action: ApplyMarkersAction, reason?: string): void;
|
|
35
35
|
}
|
|
36
36
|
/**
|
|
37
37
|
* Manages current markers for the outside of the GLSP.
|
|
@@ -44,14 +44,14 @@ export declare abstract class ExternalMarkerManager {
|
|
|
44
44
|
protected actionDispatcher?: IActionDispatcher;
|
|
45
45
|
connect(actionDispatcher: IActionDispatcher): void;
|
|
46
46
|
removeMarkers(markers: Marker[]): void;
|
|
47
|
-
abstract setMarkers(markers: Marker[], sourceUri?: string): void;
|
|
47
|
+
abstract setMarkers(markers: Marker[], reason?: string, sourceUri?: string): void;
|
|
48
48
|
}
|
|
49
49
|
export declare class SetMarkersActionHandler implements IActionHandler {
|
|
50
50
|
protected validationFeedbackEmitter: ValidationFeedbackEmitter;
|
|
51
51
|
protected externalMarkerManager?: ExternalMarkerManager;
|
|
52
52
|
protected editorContextService: EditorContextService;
|
|
53
53
|
handle(action: SetMarkersAction): void | Action | ICommand;
|
|
54
|
-
setMarkers(markers: Marker[]): Promise<void>;
|
|
54
|
+
setMarkers(markers: Marker[], reason: string | undefined): Promise<void>;
|
|
55
55
|
}
|
|
56
56
|
/**
|
|
57
57
|
* Action for applying makers to the graphical model.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.d.ts","sourceRoot":"","sources":["../../../src/features/validation/validate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,mBAAmB,EAAgB,MAAM,EAAE,gBAAgB,EAAE,MAAM,wBAAwB,CAAC;AAE7G,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,iBAAiB,EAAE,cAAc,EAAE,QAAQ,EAAgC,MAAM,SAAS,CAAC;AAC5I,OAAO,EAAE,oBAAoB,EAAE,MAAM,mCAAmC,CAAC;AAGzE,OAAO,EAAE,yBAAyB,EAAE,gBAAgB,EAAE,MAAM,6CAA6C,CAAC;AAC1G,OAAO,EAAE,e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AAE,mBAAmB;IAIvE,OAAO,CAAC,OAAO,EAAE,uBAAuB,GAAG,aAAa;CAwB3D"}
|
|
@@ -14,7 +14,7 @@ var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
exports.DeleteMarkersCommand = exports.ApplyMarkersCommand = exports.ApplyMarkersAction = exports.SetMarkersActionHandler = exports.ExternalMarkerManager = exports.ValidationFeedbackEmitter = void 0;
|
|
16
16
|
/********************************************************************************
|
|
17
|
-
* Copyright (c) 2019-
|
|
17
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
18
18
|
*
|
|
19
19
|
* This program and the accompanying materials are made available under the
|
|
20
20
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -41,23 +41,25 @@ const issue_marker_1 = require("./issue-marker");
|
|
|
41
41
|
* re-establishing this feedback visualization after the model has been updated.
|
|
42
42
|
*/
|
|
43
43
|
let ValidationFeedbackEmitter = class ValidationFeedbackEmitter {
|
|
44
|
-
|
|
45
|
-
|
|
44
|
+
constructor() {
|
|
45
|
+
this.registeredFeedbackByReason = new Map();
|
|
46
|
+
}
|
|
46
47
|
/**
|
|
47
48
|
* Register the action that should be emitted for visualizing validation feedback.
|
|
48
49
|
* @param action the action that should be emitted when the model is updated and that will visualize the model validation feedback.
|
|
50
|
+
* @param reason the reason for this validation feedback.
|
|
49
51
|
*/
|
|
50
|
-
registerValidationFeedbackAction(action) {
|
|
51
|
-
// De-register
|
|
52
|
-
this.
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
const deleteMarkersAction = protocol_1.DeleteMarkersAction.create(
|
|
52
|
+
registerValidationFeedbackAction(action, reason = '') {
|
|
53
|
+
// De-register feedback and clear existing markers with the same reason
|
|
54
|
+
const previousFeedbackWithSameReason = this.registeredFeedbackByReason.get(reason);
|
|
55
|
+
if (previousFeedbackWithSameReason) {
|
|
56
|
+
this.feedbackActionDispatcher.deregisterFeedback(this, [previousFeedbackWithSameReason]);
|
|
57
|
+
const deleteMarkersAction = protocol_1.DeleteMarkersAction.create(previousFeedbackWithSameReason.markers);
|
|
56
58
|
this.actionDispatcher().then(dispatcher => dispatcher.dispatch(deleteMarkersAction));
|
|
57
59
|
}
|
|
58
60
|
// Register new action responsible for applying markers and re-applying them when the model is updated
|
|
59
|
-
this.
|
|
60
|
-
this.
|
|
61
|
+
this.registeredFeedbackByReason.set(reason, action);
|
|
62
|
+
this.feedbackActionDispatcher.registerFeedback(this, [...this.registeredFeedbackByReason.values()]);
|
|
61
63
|
}
|
|
62
64
|
};
|
|
63
65
|
__decorate([
|
|
@@ -69,8 +71,7 @@ __decorate([
|
|
|
69
71
|
__metadata("design:type", Function)
|
|
70
72
|
], ValidationFeedbackEmitter.prototype, "actionDispatcher", void 0);
|
|
71
73
|
ValidationFeedbackEmitter = __decorate([
|
|
72
|
-
(0, inversify_1.injectable)()
|
|
73
|
-
__metadata("design:paramtypes", [])
|
|
74
|
+
(0, inversify_1.injectable)()
|
|
74
75
|
], ValidationFeedbackEmitter);
|
|
75
76
|
exports.ValidationFeedbackEmitter = ValidationFeedbackEmitter;
|
|
76
77
|
/**
|
|
@@ -96,14 +97,14 @@ exports.ExternalMarkerManager = ExternalMarkerManager;
|
|
|
96
97
|
let SetMarkersActionHandler = class SetMarkersActionHandler {
|
|
97
98
|
handle(action) {
|
|
98
99
|
const markers = action.markers;
|
|
99
|
-
this.setMarkers(markers);
|
|
100
|
+
this.setMarkers(markers, action.reason);
|
|
100
101
|
}
|
|
101
|
-
async setMarkers(markers) {
|
|
102
|
+
async setMarkers(markers, reason) {
|
|
102
103
|
var _a;
|
|
103
104
|
const uri = await this.editorContextService.getSourceUri();
|
|
104
|
-
(_a = this.externalMarkerManager) === null || _a === void 0 ? void 0 : _a.setMarkers(markers, uri);
|
|
105
|
+
(_a = this.externalMarkerManager) === null || _a === void 0 ? void 0 : _a.setMarkers(markers, reason, uri);
|
|
105
106
|
const applyMarkersAction = ApplyMarkersAction.create(markers);
|
|
106
|
-
this.validationFeedbackEmitter.registerValidationFeedbackAction(applyMarkersAction);
|
|
107
|
+
this.validationFeedbackEmitter.registerValidationFeedbackAction(applyMarkersAction, reason);
|
|
107
108
|
}
|
|
108
109
|
};
|
|
109
110
|
__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/features/validation/validate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA6G;AAC7G,yCAAyD;AACzD,qCAA4I;AAC5I,8EAAyE;AACzE,4CAAyC;AACzC,yDAA2D;AAE3D,kDAAyD;AACzD,iDAAmH;AAEnH;;;GAGG;AAEI,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;
|
|
1
|
+
{"version":3,"file":"validate.js","sourceRoot":"","sources":["../../../src/features/validation/validate.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA6G;AAC7G,yCAAyD;AACzD,qCAA4I;AAC5I,8EAAyE;AACzE,4CAAyC;AACzC,yDAA2D;AAE3D,kDAAyD;AACzD,iDAAmH;AAEnH;;;GAGG;AAEI,IAAM,yBAAyB,GAA/B,MAAM,yBAAyB;IAA/B;QAKO,+BAA0B,GAAoC,IAAI,GAAG,EAAE,CAAC;IAoBtF,CAAC;IAlBG;;;;OAIG;IACH,gCAAgC,CAAC,MAA0B,EAAE,MAAM,GAAG,EAAE;QACpE,uEAAuE;QACvE,MAAM,8BAA8B,GAAG,IAAI,CAAC,0BAA0B,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACnF,IAAI,8BAA8B,EAAE;YAChC,IAAI,CAAC,wBAAwB,CAAC,kBAAkB,CAAC,IAAI,EAAE,CAAC,8BAA8B,CAAC,CAAC,CAAC;YACzF,MAAM,mBAAmB,GAAG,8BAAmB,CAAC,MAAM,CAAC,8BAA8B,CAAC,OAAO,CA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W,CAAC,MAAM,CAAC,MAAM,KAAK,CAAC,EAAE;wBACjC,YAAY,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC;qBACpC;yBAAM;wBACH,mCAAmC,CAAC,YAAY,EAAE,WAAW,CAAC,CAAC;qBAClE;iBACJ;aACJ;QACL,CAAC,CAAC,CAAC;QAEH,OAAO,OAAO,CAAC,IAAI,CAAC;IACxB,CAAC;;AA7BM,yBAAI,GAAG,8BAAmB,CAAC,IAAI,CAAC;AAD9B,oBAAoB;IADhC,IAAA,sBAAU,GAAE;IAII,WAAA,IAAA,kBAAM,EAAC,aAAK,CAAC,MAAM,CAAC,CAAA;;GAHxB,oBAAoB,CA+BhC;AA/BY,oDAAoB"}
|
|
@@ -1,18 +1,3 @@
|
|
|
1
|
-
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2021-2022 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
1
|
import { ContainerModule } from 'inversify';
|
|
17
2
|
declare const glspViewportModule: ContainerModule;
|
|
18
3
|
export default glspViewportModule;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAgB5C,QAAA,MAAM,kBAAkB,iBAatB,CAAC;AAEH,eAAe,kBAAkB,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/********************************************************************************
|
|
4
|
-
* Copyright (c) 2021-
|
|
4
|
+
* Copyright (c) 2021-2023 EclipseSource and others.
|
|
5
5
|
*
|
|
6
6
|
* This program and the accompanying materials are made available under the
|
|
7
7
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -15,20 +15,21 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
15
15
|
*
|
|
16
16
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
17
17
|
********************************************************************************/
|
|
18
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
18
19
|
const inversify_1 = require("inversify");
|
|
19
20
|
const sprotty_1 = require("sprotty");
|
|
20
21
|
const glsp_scroll_mouse_listener_1 = require("./glsp-scroll-mouse-listener");
|
|
21
22
|
const glspViewportModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
22
|
-
|
|
23
|
-
(0, sprotty_1.configureCommand)(
|
|
24
|
-
(0, sprotty_1.configureCommand)(
|
|
25
|
-
(0, sprotty_1.configureCommand)(
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
(0, sprotty_1.configureActionHandler)(
|
|
31
|
-
(0, sprotty_1.configureActionHandler)(
|
|
23
|
+
const context = { bind, isBound };
|
|
24
|
+
(0, sprotty_1.configureCommand)(context, sprotty_1.CenterCommand);
|
|
25
|
+
(0, sprotty_1.configureCommand)(context, sprotty_1.FitToScreenCommand);
|
|
26
|
+
(0, sprotty_1.configureCommand)(context, sprotty_1.GetViewportCommand);
|
|
27
|
+
(0, sprotty_1.configureCommand)(context, sprotty_1.SetViewportCommand);
|
|
28
|
+
(0, protocol_1.bindAsService)(context, sprotty_1.TYPES.KeyListener, sprotty_1.CenterKeyboardListener);
|
|
29
|
+
(0, protocol_1.bindAsService)(context, sprotty_1.TYPES.MouseListener, sprotty_1.ZoomMouseListener);
|
|
30
|
+
(0, protocol_1.bindAsService)(context, sprotty_1.TYPES.MouseListener, glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
31
|
+
(0, sprotty_1.configureActionHandler)(context, sprotty_1.EnableToolsAction.KIND, glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
32
|
+
(0, sprotty_1.configureActionHandler)(context, sprotty_1.EnableDefaultToolsAction.KIND, glsp_scroll_mouse_listener_1.GLSPScrollMouseListener);
|
|
32
33
|
});
|
|
33
34
|
exports.default = glspViewportModule;
|
|
34
35
|
//# sourceMappingURL=di.config.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAYiB;AACjB,6EAAuE;AAEvE,MAAM,kBAAkB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACtE,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/viewport/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAuD;AACvD,yCAA4C;AAC5C,qCAYiB;AACjB,6EAAuE;AAEvE,MAAM,kBAAkB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACtE,MAAM,OAAO,GAAG,EAAE,IAAI,EAAE,OAAO,EAAE,CAAC;IAClC,IAAA,0BAAgB,EAAC,OAAO,EAAE,uBAAa,CAAC,CAAC;IACzC,IAAA,0BAAgB,EAAC,OAAO,EAAE,4BAAkB,CAAC,CAAC;IAC9C,IAAA,0BAAgB,EAAC,OAAO,EAAE,4BAAkB,CAAC,CAAC;IAC9C,IAAA,0BAAgB,EAAC,OAAO,EAAE,4BAAkB,CAAC,CAAC;IAE9C,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,WAAW,EAAE,gCAAsB,CAAC,CAAC;IAClE,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,aAAa,EAAE,2BAAiB,CAAC,CAAC;IAC/D,IAAA,wBAAa,EAAC,OAAO,EAAE,eAAK,CAAC,aAAa,EAAE,oDAAuB,CAAC,CAAC;IAErE,IAAA,gCAAsB,EAAC,OAAO,EAAE,2BAAiB,CAAC,IAAI,EAAE,oDAAuB,CAAC,CAAC;IACjF,IAAA,gCAAsB,EAAC,OAAO,EAAE,kCAAwB,CAAC,IAAI,EAAE,oDAAuB,CAAC,CAAC;AAC5F,CAAC,CAAC,CAAC;AAEH,kBAAe,kBAAkB,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -14,6 +14,8 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import defaultGLSPModule from './base/di.config';
|
|
17
|
+
import { glspAccessibilityModule } from './features/accessibility/di.config';
|
|
18
|
+
import { glspSearchPaletteModule } from './features/accessibility/search/di.config';
|
|
17
19
|
import glspCommandPaletteModule from './features/command-palette/di.config';
|
|
18
20
|
import glspContextMenuModule from './features/context-menu/di.config';
|
|
19
21
|
import { copyPasteContextMenuModule, glspServerCopyPasteModule } from './features/copy-paste/di.config';
|
|
@@ -23,14 +25,15 @@ import modelHintsModule from './features/hints/di.config';
|
|
|
23
25
|
import glspHoverModule from './features/hover/di.config';
|
|
24
26
|
import layoutModule from './features/layout/di.config';
|
|
25
27
|
import glspMouseToolModule from './features/mouse-tool/di.config';
|
|
26
|
-
import
|
|
28
|
+
import navigationModule from './features/navigation/di.config';
|
|
27
29
|
import saveModule from './features/save/di.config';
|
|
28
30
|
import glspSelectModule from './features/select/di.config';
|
|
29
31
|
import sourceModelWatcherModule from './features/source-model-watcher/di.config';
|
|
32
|
+
import svgMetadataModule from './features/svg-metadata/di.config';
|
|
30
33
|
import toolFeedbackModule from './features/tool-feedback/di.config';
|
|
31
34
|
import paletteModule from './features/tool-palette/di.config';
|
|
32
35
|
import { enableDefaultToolsOnFocusLossModule, toolsModule } from './features/tools/di.config';
|
|
33
|
-
import { markerNavigatorModule, validationModule } from './features/validation/di.config';
|
|
36
|
+
import { markerNavigatorContextMenuModule, markerNavigatorModule, validationModule } from './features/validation/di.config';
|
|
34
37
|
import glspViewportModule from './features/viewport/di.config';
|
|
35
38
|
export * from './base/action-dispatcher';
|
|
36
39
|
export * from './base/actions/focus-change-action';
|
|
@@ -49,18 +52,29 @@ export * from './base/model/model-registry';
|
|
|
49
52
|
export * from './base/model/update-model-command';
|
|
50
53
|
export * from './base/selection-clearing-mouse-listener';
|
|
51
54
|
export * from './base/source-uri-aware';
|
|
55
|
+
export * from './base/tool-manager/glsp-tool-manager';
|
|
52
56
|
export * from './base/tool-manager/tool-actions';
|
|
53
57
|
export * from './base/types';
|
|
54
58
|
export * from './base/view/view-registry';
|
|
59
|
+
export * from './features/bounds/freeform-layout';
|
|
60
|
+
export * from './features/bounds/glsp-hidden-bounds-updater';
|
|
61
|
+
export * from './features/bounds/hbox-layout';
|
|
62
|
+
export * from './features/bounds/layouter';
|
|
63
|
+
export * from './features/bounds/vbox-layout';
|
|
55
64
|
export * from './features/change-bounds/model';
|
|
56
65
|
export * from './features/change-bounds/movement-restrictor';
|
|
57
66
|
export * from './features/change-bounds/snap';
|
|
67
|
+
export * from './features/command-palette/command-palette-tool';
|
|
58
68
|
export * from './features/command-palette/server-command-palette-provider';
|
|
59
69
|
export * from './features/context-menu/delete-element-context-menu';
|
|
70
|
+
export * from './features/context-menu/selection-service-aware-context-menu-mouse-listener';
|
|
71
|
+
export * from './features/context-menu/server-context-menu-provider';
|
|
72
|
+
export * from './features/copy-paste/copy-paste-context-menu';
|
|
60
73
|
export * from './features/copy-paste/copy-paste-handler';
|
|
61
74
|
export * from './features/decoration/decoration-placer';
|
|
62
75
|
export * from './features/edit-label/edit-label-tool';
|
|
63
76
|
export * from './features/edit-label/edit-label-validator';
|
|
77
|
+
export * from './features/export/glsp-svg-exporter';
|
|
64
78
|
export * from './features/hints/model';
|
|
65
79
|
export * from './features/hints/type-hints';
|
|
66
80
|
export * from './features/hover/hover';
|
|
@@ -72,20 +86,30 @@ export * from './features/rank/model';
|
|
|
72
86
|
export * from './features/reconnect/model';
|
|
73
87
|
export * from './features/save/model';
|
|
74
88
|
export * from './features/save/save-keylistener';
|
|
89
|
+
export * from './features/select/select-feedback-action';
|
|
90
|
+
export * from './features/select/select-mouse-listener';
|
|
91
|
+
export * from './features/select/selection-service';
|
|
75
92
|
export * from './features/source-model-watcher/source-model-changed-action-handler';
|
|
93
|
+
export * from './features/svg-metadata/metadata-placer';
|
|
76
94
|
export * from './features/tool-feedback/change-bounds-tool-feedback';
|
|
77
95
|
export * from './features/tool-feedback/creation-tool-feedback';
|
|
78
96
|
export * from './features/tool-feedback/css-feedback';
|
|
79
97
|
export * from './features/tool-feedback/edge-edit-tool-feedback';
|
|
80
98
|
export * from './features/tool-feedback/feedback-action-dispatcher';
|
|
99
|
+
export * from './features/tool-feedback/marquee-tool-feedback';
|
|
81
100
|
export * from './features/tool-feedback/model';
|
|
101
|
+
export * from './features/tool-feedback/view';
|
|
82
102
|
export * from './features/tool-palette/tool-palette';
|
|
83
103
|
export * from './features/tools/base-glsp-tool';
|
|
84
104
|
export * from './features/tools/change-bounds-tool';
|
|
85
105
|
export * from './features/tools/delete-tool';
|
|
106
|
+
export { configureMarqueeTool } from './features/tools/di.config';
|
|
86
107
|
export * from './features/tools/edge-creation-tool';
|
|
87
108
|
export * from './features/tools/edge-edit-tool';
|
|
109
|
+
export * from './features/tools/enable-default-tools-on-focus-loss';
|
|
110
|
+
export * from './features/tools/glsp-manhattan-edge-router';
|
|
88
111
|
export * from './features/tools/marquee-behavior';
|
|
112
|
+
export * from './features/tools/model';
|
|
89
113
|
export * from './features/tools/node-creation-tool';
|
|
90
114
|
export * from './features/validation/issue-marker';
|
|
91
115
|
export * from './features/validation/marker-navigator';
|
|
@@ -95,9 +119,11 @@ export * from './lib/model';
|
|
|
95
119
|
export * from './model-source/glsp-diagram-server';
|
|
96
120
|
export * from './sprotty-reexport';
|
|
97
121
|
export * from './utils/argument-utils';
|
|
122
|
+
export * from './utils/html-utils';
|
|
123
|
+
export * from './utils/layout-utils';
|
|
98
124
|
export * from './utils/marker';
|
|
99
125
|
export * from './utils/smodel-util';
|
|
100
126
|
export * from './utils/viewpoint-util';
|
|
101
127
|
export * from './views';
|
|
102
|
-
export { validationModule, saveModule, paletteModule, toolFeedbackModule, defaultGLSPModule, modelHintsModule, glspCommandPaletteModule, glspContextMenuModule, glspServerCopyPasteModule, copyPasteContextMenuModule, glspSelectModule, glspMouseToolModule, layoutModule, glspEditLabelModule, glspHoverModule, toolsModule, enableDefaultToolsOnFocusLossModule, navigationModule, markerNavigatorModule, glspDecorationModule, sourceModelWatcherModule
|
|
128
|
+
export { validationModule, saveModule, paletteModule, toolFeedbackModule, defaultGLSPModule, modelHintsModule, glspCommandPaletteModule, glspContextMenuModule, glspServerCopyPasteModule, copyPasteContextMenuModule, glspSelectModule, glspMouseToolModule, layoutModule, glspEditLabelModule, glspHoverModule, toolsModule, enableDefaultToolsOnFocusLossModule, navigationModule, markerNavigatorModule, glspDecorationModule, sourceModelWatcherModule, markerNavigatorContextMenuModule, glspViewportModule, svgMetadataModule, glspSearchPaletteModule, glspAccessibilityModule };
|
|
103
129
|
//# sourceMappingURL=index.d.ts.map
|
package/lib/index.d.ts.map
CHANGED
|
@@ -1 +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,YAAY,MAAM,6BAA6B,CAAC;AACvD,OAAO,mBAAmB,MAAM,iCAAiC,CAAC;AAClE,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,iBAAiB,MAAM,kBAAkB,CAAC;AACjD,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AAC7E,OAAO,EAAE,uBAAuB,EAAE,MAAM,2CAA2C,CAAC;AACpF,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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AAC7C,OAAO,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAClE,cAAc,qCAAqC,CAAC;AACpD,cAAc,iCAAiC,CAAC;AAChD,cAAc,qDAAqD,CAAC;AACpE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,mCAAmC,CAAC;AAClD,cAAc,wBAAwB,CAAC;AACvC,cAAc,qCAAqC,CAAC;AACpD,cAAc,oCAAoC,CAAC;AACnD,cAAc,wCAAwC,CAAC;AACvD,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gDAAgD,CAAC;AAG/D,cAAc,aAAa,CAAC;AAC5B,cAAc,oCAAoC,CAAC;AACnD,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,qBAAqB,CAAC;AACpC,cAAc,wBAAwB,CAAC;AACvC,cAAc,SAAS,CAAC;AAExB,OAAO,EACH,gBAAgB,EAChB,UAAU,EACV,aAAa,EACb,kBAAkB,EAClB,iBAAiB,EACjB,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,yBAAyB,EACzB,0BAA0B,EAC1B,gBAAgB,EAChB,mBAAmB,EACnB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,WAAW,EACX,mCAAmC,EACnC,gBAAgB,EAChB,qBAAqB,EACrB,oBAAoB,EACpB,wBAAwB,EACxB,gCAAgC,EAChC,kBAAkB,EAClB,iBAAiB,EACjB,uBAAuB,EACvB,uBAAuB,EAC1B,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -14,9 +14,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
exports.glspViewportModule = exports.
|
|
17
|
+
exports.glspAccessibilityModule = exports.glspSearchPaletteModule = exports.svgMetadataModule = exports.glspViewportModule = exports.markerNavigatorContextMenuModule = exports.sourceModelWatcherModule = exports.glspDecorationModule = exports.markerNavigatorModule = exports.navigationModule = exports.enableDefaultToolsOnFocusLossModule = exports.toolsModule = exports.glspHoverModule = exports.glspEditLabelModule = exports.layoutModule = exports.glspMouseToolModule = exports.glspSelectModule = exports.copyPasteContextMenuModule = exports.glspServerCopyPasteModule = exports.glspContextMenuModule = exports.glspCommandPaletteModule = exports.modelHintsModule = exports.defaultGLSPModule = exports.toolFeedbackModule = exports.paletteModule = exports.saveModule = exports.validationModule = exports.configureMarqueeTool = exports.configureServerActions = void 0;
|
|
18
18
|
/********************************************************************************
|
|
19
|
-
* Copyright (c) 2019-
|
|
19
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
20
20
|
*
|
|
21
21
|
* This program and the accompanying materials are made available under the
|
|
22
22
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -32,45 +32,53 @@ exports.glspViewportModule = exports.modelSourceWatcherModule = exports.glspDeco
|
|
|
32
32
|
********************************************************************************/
|
|
33
33
|
const di_config_1 = require("./base/di.config");
|
|
34
34
|
exports.defaultGLSPModule = di_config_1.default;
|
|
35
|
-
const di_config_2 = require("./features/
|
|
36
|
-
exports
|
|
37
|
-
const di_config_3 = require("./features/
|
|
38
|
-
exports
|
|
39
|
-
const di_config_4 = require("./features/
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
exports
|
|
46
|
-
const di_config_7 = require("./features/
|
|
47
|
-
exports.
|
|
48
|
-
const di_config_8 = require("./features/
|
|
49
|
-
exports.
|
|
50
|
-
const di_config_9 = require("./features/
|
|
51
|
-
exports.
|
|
52
|
-
const di_config_10 = require("./features/
|
|
53
|
-
exports.
|
|
54
|
-
const di_config_11 = require("./features/
|
|
55
|
-
|
|
56
|
-
const di_config_12 = require("./features/
|
|
57
|
-
exports.
|
|
58
|
-
const di_config_13 = require("./features/
|
|
59
|
-
exports.
|
|
60
|
-
const di_config_14 = require("./features/
|
|
61
|
-
exports.
|
|
62
|
-
const di_config_15 = require("./features/
|
|
63
|
-
exports.
|
|
64
|
-
const di_config_16 = require("./features/
|
|
65
|
-
exports.
|
|
66
|
-
const di_config_17 = require("./features/
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
const
|
|
73
|
-
exports
|
|
35
|
+
const di_config_2 = require("./features/accessibility/di.config");
|
|
36
|
+
Object.defineProperty(exports, "glspAccessibilityModule", { enumerable: true, get: function () { return di_config_2.glspAccessibilityModule; } });
|
|
37
|
+
const di_config_3 = require("./features/accessibility/search/di.config");
|
|
38
|
+
Object.defineProperty(exports, "glspSearchPaletteModule", { enumerable: true, get: function () { return di_config_3.glspSearchPaletteModule; } });
|
|
39
|
+
const di_config_4 = require("./features/command-palette/di.config");
|
|
40
|
+
exports.glspCommandPaletteModule = di_config_4.default;
|
|
41
|
+
const di_config_5 = require("./features/context-menu/di.config");
|
|
42
|
+
exports.glspContextMenuModule = di_config_5.default;
|
|
43
|
+
const di_config_6 = require("./features/copy-paste/di.config");
|
|
44
|
+
Object.defineProperty(exports, "copyPasteContextMenuModule", { enumerable: true, get: function () { return di_config_6.copyPasteContextMenuModule; } });
|
|
45
|
+
Object.defineProperty(exports, "glspServerCopyPasteModule", { enumerable: true, get: function () { return di_config_6.glspServerCopyPasteModule; } });
|
|
46
|
+
const di_config_7 = require("./features/decoration/di.config");
|
|
47
|
+
exports.glspDecorationModule = di_config_7.default;
|
|
48
|
+
const di_config_8 = require("./features/edit-label/di.config");
|
|
49
|
+
exports.glspEditLabelModule = di_config_8.default;
|
|
50
|
+
const di_config_9 = require("./features/hints/di.config");
|
|
51
|
+
exports.modelHintsModule = di_config_9.default;
|
|
52
|
+
const di_config_10 = require("./features/hover/di.config");
|
|
53
|
+
exports.glspHoverModule = di_config_10.default;
|
|
54
|
+
const di_config_11 = require("./features/layout/di.config");
|
|
55
|
+
exports.layoutModule = di_config_11.default;
|
|
56
|
+
const di_config_12 = require("./features/mouse-tool/di.config");
|
|
57
|
+
exports.glspMouseToolModule = di_config_12.default;
|
|
58
|
+
const di_config_13 = require("./features/navigation/di.config");
|
|
59
|
+
exports.navigationModule = di_config_13.default;
|
|
60
|
+
const di_config_14 = require("./features/save/di.config");
|
|
61
|
+
exports.saveModule = di_config_14.default;
|
|
62
|
+
const di_config_15 = require("./features/select/di.config");
|
|
63
|
+
exports.glspSelectModule = di_config_15.default;
|
|
64
|
+
const di_config_16 = require("./features/source-model-watcher/di.config");
|
|
65
|
+
exports.sourceModelWatcherModule = di_config_16.default;
|
|
66
|
+
const di_config_17 = require("./features/svg-metadata/di.config");
|
|
67
|
+
exports.svgMetadataModule = di_config_17.default;
|
|
68
|
+
const di_config_18 = require("./features/tool-feedback/di.config");
|
|
69
|
+
exports.toolFeedbackModule = di_config_18.default;
|
|
70
|
+
const di_config_19 = require("./features/tool-palette/di.config");
|
|
71
|
+
exports.paletteModule = di_config_19.default;
|
|
72
|
+
const di_config_20 = require("./features/tools/di.config");
|
|
73
|
+
Object.defineProperty(exports, "enableDefaultToolsOnFocusLossModule", { enumerable: true, get: function () { return di_config_20.enableDefaultToolsOnFocusLossModule; } });
|
|
74
|
+
Object.defineProperty(exports, "toolsModule", { enumerable: true, get: function () { return di_config_20.toolsModule; } });
|
|
75
|
+
const di_config_21 = require("./features/validation/di.config");
|
|
76
|
+
Object.defineProperty(exports, "markerNavigatorContextMenuModule", { enumerable: true, get: function () { return di_config_21.markerNavigatorContextMenuModule; } });
|
|
77
|
+
Object.defineProperty(exports, "markerNavigatorModule", { enumerable: true, get: function () { return di_config_21.markerNavigatorModule; } });
|
|
78
|
+
Object.defineProperty(exports, "validationModule", { enumerable: true, get: function () { return di_config_21.validationModule; } });
|
|
79
|
+
const di_config_22 = require("./features/viewport/di.config");
|
|
80
|
+
exports.glspViewportModule = di_config_22.default;
|
|
81
|
+
// ------------------ Base ------------------
|
|
74
82
|
__exportStar(require("./base/action-dispatcher"), exports);
|
|
75
83
|
__exportStar(require("./base/actions/focus-change-action"), exports);
|
|
76
84
|
__exportStar(require("./base/argumentable"), exports);
|
|
@@ -79,8 +87,8 @@ __exportStar(require("./base/auto-complete/auto-complete-widget"), exports);
|
|
|
79
87
|
__exportStar(require("./base/auto-complete/validation-decorator"), exports);
|
|
80
88
|
__exportStar(require("./base/command-stack"), exports);
|
|
81
89
|
__exportStar(require("./base/container-modules"), exports);
|
|
82
|
-
var
|
|
83
|
-
Object.defineProperty(exports, "configureServerActions", { enumerable: true, get: function () { return
|
|
90
|
+
var di_config_23 = require("./base/di.config");
|
|
91
|
+
Object.defineProperty(exports, "configureServerActions", { enumerable: true, get: function () { return di_config_23.configureServerActions; } });
|
|
84
92
|
__exportStar(require("./base/drag-aware-mouse-listener"), exports);
|
|
85
93
|
__exportStar(require("./base/editor-context-service"), exports);
|
|
86
94
|
__exportStar(require("./base/focus-tracker"), exports);
|
|
@@ -89,18 +97,31 @@ __exportStar(require("./base/model/model-registry"), exports);
|
|
|
89
97
|
__exportStar(require("./base/model/update-model-command"), exports);
|
|
90
98
|
__exportStar(require("./base/selection-clearing-mouse-listener"), exports);
|
|
91
99
|
__exportStar(require("./base/source-uri-aware"), exports);
|
|
100
|
+
__exportStar(require("./base/tool-manager/glsp-tool-manager"), exports);
|
|
92
101
|
__exportStar(require("./base/tool-manager/tool-actions"), exports);
|
|
93
102
|
__exportStar(require("./base/types"), exports);
|
|
94
103
|
__exportStar(require("./base/view/view-registry"), exports);
|
|
104
|
+
//
|
|
105
|
+
// ------------------ Features ------------------
|
|
106
|
+
__exportStar(require("./features/bounds/freeform-layout"), exports);
|
|
107
|
+
__exportStar(require("./features/bounds/glsp-hidden-bounds-updater"), exports);
|
|
108
|
+
__exportStar(require("./features/bounds/hbox-layout"), exports);
|
|
109
|
+
__exportStar(require("./features/bounds/layouter"), exports);
|
|
110
|
+
__exportStar(require("./features/bounds/vbox-layout"), exports);
|
|
95
111
|
__exportStar(require("./features/change-bounds/model"), exports);
|
|
96
112
|
__exportStar(require("./features/change-bounds/movement-restrictor"), exports);
|
|
97
113
|
__exportStar(require("./features/change-bounds/snap"), exports);
|
|
114
|
+
__exportStar(require("./features/command-palette/command-palette-tool"), exports);
|
|
98
115
|
__exportStar(require("./features/command-palette/server-command-palette-provider"), exports);
|
|
99
116
|
__exportStar(require("./features/context-menu/delete-element-context-menu"), exports);
|
|
117
|
+
__exportStar(require("./features/context-menu/selection-service-aware-context-menu-mouse-listener"), exports);
|
|
118
|
+
__exportStar(require("./features/context-menu/server-context-menu-provider"), exports);
|
|
119
|
+
__exportStar(require("./features/copy-paste/copy-paste-context-menu"), exports);
|
|
100
120
|
__exportStar(require("./features/copy-paste/copy-paste-handler"), exports);
|
|
101
121
|
__exportStar(require("./features/decoration/decoration-placer"), exports);
|
|
102
122
|
__exportStar(require("./features/edit-label/edit-label-tool"), exports);
|
|
103
123
|
__exportStar(require("./features/edit-label/edit-label-validator"), exports);
|
|
124
|
+
__exportStar(require("./features/export/glsp-svg-exporter"), exports);
|
|
104
125
|
__exportStar(require("./features/hints/model"), exports);
|
|
105
126
|
__exportStar(require("./features/hints/type-hints"), exports);
|
|
106
127
|
__exportStar(require("./features/hover/hover"), exports);
|
|
@@ -112,29 +133,44 @@ __exportStar(require("./features/rank/model"), exports);
|
|
|
112
133
|
__exportStar(require("./features/reconnect/model"), exports);
|
|
113
134
|
__exportStar(require("./features/save/model"), exports);
|
|
114
135
|
__exportStar(require("./features/save/save-keylistener"), exports);
|
|
136
|
+
__exportStar(require("./features/select/select-feedback-action"), exports);
|
|
137
|
+
__exportStar(require("./features/select/select-mouse-listener"), exports);
|
|
138
|
+
__exportStar(require("./features/select/selection-service"), exports);
|
|
115
139
|
__exportStar(require("./features/source-model-watcher/source-model-changed-action-handler"), exports);
|
|
140
|
+
__exportStar(require("./features/svg-metadata/metadata-placer"), exports);
|
|
116
141
|
__exportStar(require("./features/tool-feedback/change-bounds-tool-feedback"), exports);
|
|
117
142
|
__exportStar(require("./features/tool-feedback/creation-tool-feedback"), exports);
|
|
118
143
|
__exportStar(require("./features/tool-feedback/css-feedback"), exports);
|
|
119
144
|
__exportStar(require("./features/tool-feedback/edge-edit-tool-feedback"), exports);
|
|
120
145
|
__exportStar(require("./features/tool-feedback/feedback-action-dispatcher"), exports);
|
|
146
|
+
__exportStar(require("./features/tool-feedback/marquee-tool-feedback"), exports);
|
|
121
147
|
__exportStar(require("./features/tool-feedback/model"), exports);
|
|
148
|
+
__exportStar(require("./features/tool-feedback/view"), exports);
|
|
122
149
|
__exportStar(require("./features/tool-palette/tool-palette"), exports);
|
|
123
150
|
__exportStar(require("./features/tools/base-glsp-tool"), exports);
|
|
124
151
|
__exportStar(require("./features/tools/change-bounds-tool"), exports);
|
|
125
152
|
__exportStar(require("./features/tools/delete-tool"), exports);
|
|
153
|
+
var di_config_24 = require("./features/tools/di.config");
|
|
154
|
+
Object.defineProperty(exports, "configureMarqueeTool", { enumerable: true, get: function () { return di_config_24.configureMarqueeTool; } });
|
|
126
155
|
__exportStar(require("./features/tools/edge-creation-tool"), exports);
|
|
127
156
|
__exportStar(require("./features/tools/edge-edit-tool"), exports);
|
|
157
|
+
__exportStar(require("./features/tools/enable-default-tools-on-focus-loss"), exports);
|
|
158
|
+
__exportStar(require("./features/tools/glsp-manhattan-edge-router"), exports);
|
|
128
159
|
__exportStar(require("./features/tools/marquee-behavior"), exports);
|
|
160
|
+
__exportStar(require("./features/tools/model"), exports);
|
|
129
161
|
__exportStar(require("./features/tools/node-creation-tool"), exports);
|
|
130
162
|
__exportStar(require("./features/validation/issue-marker"), exports);
|
|
131
163
|
__exportStar(require("./features/validation/marker-navigator"), exports);
|
|
132
164
|
__exportStar(require("./features/validation/validate"), exports);
|
|
133
165
|
__exportStar(require("./features/viewport/glsp-scroll-mouse-listener"), exports);
|
|
166
|
+
//
|
|
167
|
+
// ------------------ Misc ------------------
|
|
134
168
|
__exportStar(require("./lib/model"), exports);
|
|
135
169
|
__exportStar(require("./model-source/glsp-diagram-server"), exports);
|
|
136
170
|
__exportStar(require("./sprotty-reexport"), exports);
|
|
137
171
|
__exportStar(require("./utils/argument-utils"), exports);
|
|
172
|
+
__exportStar(require("./utils/html-utils"), exports);
|
|
173
|
+
__exportStar(require("./utils/layout-utils"), exports);
|
|
138
174
|
__exportStar(require("./utils/marker"), exports);
|
|
139
175
|
__exportStar(require("./utils/smodel-util"), exports);
|
|
140
176
|
__exportStar(require("./utils/viewpoint-util"), exports);
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,gDAAiD;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,gDAAiD;AA4H7C,4BA5HG,mBAAiB,CA4HH;AA3HrB,kEAA6E;AAgJzE,wGAhJK,mCAAuB,OAgJL;AA/I3B,yEAAoF;AA8IhF,wGA9IK,mCAAuB,OA8IL;AA7I3B,oEAA4E;AA2HxE,mCA3HG,mBAAwB,CA2HH;AA1H5B,iEAAsE;AA2HlE,gCA3HG,mBAAqB,CA2HH;AA1HzB,+DAAwG;AA4HpG,2GA5HK,sCAA0B,OA4HL;AAD1B,0GA3HiC,qCAAyB,OA2HjC;AA1H7B,+DAAmE;AAqI/D,+BArIG,mBAAoB,CAqIH;AApIxB,+DAAkE;AA8H9D,8BA9HG,mBAAmB,CA8HH;AA7HvB,0DAA0D;AAqHtD,2BArHG,mBAAgB,CAqHH;AApHpB,2DAAyD;AA6HrD,0BA7HG,oBAAe,CA6HH;AA5HnB,4DAAuD;AA0HnD,uBA1HG,oBAAY,CA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A8D;AAC9D,2EAAyD;AACzD,0EAAwD;AACxD,wEAAsD;AACtD,6EAA2D;AAC3D,sEAAoD;AACpD,yDAAuC;AACvC,8DAA4C;AAC5C,yDAAuC;AACvC,2EAAyD;AACzD,mEAAiD;AACjD,kFAAgE;AAChE,mFAAiE;AACjE,wDAAsC;AACtC,6DAA2C;AAC3C,wDAAsC;AACtC,mEAAiD;AACjD,2EAAyD;AACzD,0EAAwD;AACxD,sEAAoD;AACpD,sGAAoF;AACpF,0EAAwD;AACxD,uFAAqE;AACrE,kFAAgE;AAChE,wEAAsD;AACtD,mFAAiE;AACjE,sFAAoE;AACpE,iFAA+D;AAC/D,iEAA+C;AAC/C,gEAA8C;AAC9C,uEAAqD;AACrD,kEAAgD;AAChD,sEAAoD;AACpD,+DAA6C;AAC7C,yDAAkE;AAAzD,kHAAA,oBAAoB,OAAA;AAC7B,sEAAoD;AACpD,kEAAgD;AAChD,sFAAoE;AACpE,8EAA4D;AAC5D,oEAAkD;AAClD,yDAAuC;AACvC,sEAAoD;AACpD,qEAAmD;AACnD,yEAAuD;AACvD,iEAA+C;AAC/C,iFAA+D;AAC/D,EAAE;AACF,6CAA6C;AAC7C,8CAA4B;AAC5B,qEAAmD;AACnD,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,uDAAqC;AACrC,iDAA+B;AAC/B,sDAAoC;AACpC,yDAAuC;AACvC,0CAAwB"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2022 STMicroelectronics and others.
|
|
2
|
+
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
3
3
|
*
|
|
4
4
|
* This program and the accompanying materials are made available under the
|
|
5
5
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -113,7 +113,7 @@ export * from 'sprotty/lib/features/routing/polyline-edge-router';
|
|
|
113
113
|
export * from 'sprotty/lib/features/routing/routing';
|
|
114
114
|
export * from 'sprotty/lib/features/routing/views';
|
|
115
115
|
export * from 'sprotty/lib/features/select/model';
|
|
116
|
-
export { GetSelectionAction, GetSelectionCommand, SelectAllCommand, SelectCommand, SelectionResult, SelectKeyboardListener, SelectMouseListener } from 'sprotty/lib/features/select/select';
|
|
116
|
+
export { GetSelectionAction, GetSelectionCommand, SelectAllCommand as SprottySelectAllCommand, SelectCommand as SprottySelectCommand, SelectionResult, SelectKeyboardListener, SelectMouseListener } from 'sprotty/lib/features/select/select';
|
|
117
117
|
export { UndoRedoKeyListener } from 'sprotty/lib/features/undo-redo/undo-redo';
|
|
118
118
|
export * from 'sprotty/lib/features/update/model-matching';
|
|
119
119
|
export { UpdateAnimationData, UpdateModelCommand } from 'sprotty/lib/features/update/update-model';
|