@eclipse-glsp/client 1.1.0-next.1e39678.212 → 1.1.0-next.20ec26e.220
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/README.md +1 -1
- package/lib/base/container-modules.d.ts +32 -2
- package/lib/base/container-modules.d.ts.map +1 -1
- package/lib/base/container-modules.js +72 -34
- package/lib/base/container-modules.js.map +1 -1
- package/lib/base/selection-clearing-mouse-listener.js +1 -1
- package/lib/features/command-palette/command-palette-tool.js +1 -1
- package/lib/features/export/di.config.d.ts +19 -0
- package/lib/features/export/di.config.d.ts.map +1 -0
- package/lib/features/export/di.config.js +29 -0
- package/lib/features/export/di.config.js.map +1 -0
- package/lib/features/layout/tests/layouter-test-util.d.ts +1 -1
- package/lib/features/layout/tests/layouter-test-util.js +2 -2
- package/lib/features/layout/tests/layouter-test-util.js.map +1 -1
- package/lib/features/save/model.d.ts +1 -1
- package/lib/features/source-model-watcher/di.config.js +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts +1 -2
- package/lib/features/tool-feedback/edge-edit-tool-feedback.d.ts.map +1 -1
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js +1 -7
- package/lib/features/tool-feedback/edge-edit-tool-feedback.js.map +1 -1
- package/lib/features/tools/di.config.d.ts.map +1 -1
- package/lib/features/tools/di.config.js +1 -4
- package/lib/features/tools/di.config.js.map +1 -1
- package/lib/features/validation/issue-marker.d.ts +1 -1
- package/lib/features/validation/issue-marker.js +1 -1
- package/lib/lib/model.d.ts +7 -3
- package/lib/lib/model.d.ts.map +1 -1
- package/lib/lib/model.js +48 -1
- package/lib/lib/model.js.map +1 -1
- package/lib/utils/html-utils.d.ts +1 -1
- package/lib/utils/html-utils.js +1 -1
- package/lib/views/base-view-module.js +1 -1
- package/lib/views/glsp-projection-view.d.ts +1 -1
- package/lib/views/glsp-projection-view.js +1 -1
- package/lib/views/index.d.ts +1 -1
- package/lib/views/index.js +1 -1
- package/package.json +17 -17
- package/src/base/container-modules.ts +51 -7
- package/src/base/selection-clearing-mouse-listener.ts +1 -1
- package/src/features/command-palette/command-palette-tool.ts +1 -1
- package/src/features/export/di.config.ts +28 -0
- package/src/features/layout/tests/layouter-test-util.ts +3 -3
- package/src/features/save/model.ts +1 -1
- package/src/features/source-model-watcher/di.config.ts +1 -1
- package/src/features/tool-feedback/edge-edit-tool-feedback.ts +1 -9
- package/src/features/tools/di.config.ts +1 -5
- package/src/features/validation/issue-marker.ts +1 -1
- package/src/lib/model.ts +35 -3
- package/src/utils/html-utils.ts +1 -1
- package/src/views/base-view-module.ts +1 -1
- package/src/views/glsp-projection-view.tsx +1 -1
- package/src/views/index.ts +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# Eclipse GLSP - Client
|
|
1
|
+
# Eclipse GLSP - Client
|
|
2
2
|
|
|
3
3
|
A web-based diagram client framework for the [Graphical Language Server Platform (GLSP)](https://github.com/eclipse-glsp/glsp) based on [Eclipse Sprotty](https://github.com/eclipse/sprotty).
|
|
4
4
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2021 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2021-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,7 +14,36 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
import { Container, ContainerModule } from 'inversify';
|
|
17
|
-
export declare const DEFAULT_MODULES: ContainerModule
|
|
17
|
+
export declare const DEFAULT_MODULES: readonly [ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule, ContainerModule];
|
|
18
|
+
/**
|
|
19
|
+
* Creates a GLSP Diagram container with the GLSP default modules and the specified custom `modules`.
|
|
20
|
+
* Default modules can be excluded using {@link ExcludeDescription}s.
|
|
21
|
+
*
|
|
22
|
+
* This means, you can still customize the default modules in two ways.
|
|
23
|
+
*
|
|
24
|
+
* First, you can exclude default modules and add a module with your custom code.
|
|
25
|
+
*
|
|
26
|
+
* ```typescript
|
|
27
|
+
* const container = createDiagramContainer(myModule1, {exclude: modelSourceWatcherModule},myModelSourceWatcherModule );
|
|
28
|
+
* ```
|
|
29
|
+
*
|
|
30
|
+
* Second, you can unbind or rebind implementations that are originally bound in one of the default modules.
|
|
31
|
+
*
|
|
32
|
+
* ```typescript
|
|
33
|
+
* rebind(NavigationTargetResolver).to(MyNavigationTargetResolver);
|
|
34
|
+
* ```
|
|
35
|
+
*
|
|
36
|
+
* @param customModules Custom modules to be loaded in addition to the default modules and/or default modules that should be excluded.
|
|
37
|
+
* @param options Options to customize the module loading
|
|
38
|
+
* @returns The created container.
|
|
39
|
+
*/
|
|
40
|
+
export declare function createDiagramContainer(...customModules: Array<ContainerModule | ExcludeDescription>): Container;
|
|
41
|
+
/**
|
|
42
|
+
* Can be passed to the {@link createDiagramContainer} utility function to exclude (i.e. not load) a specific default module.
|
|
43
|
+
*/
|
|
44
|
+
export interface ExcludeDescription {
|
|
45
|
+
exclude: ContainerModule;
|
|
46
|
+
}
|
|
18
47
|
/**
|
|
19
48
|
* Creates a GLSP Client container with the GLSP default modules and the specified custom `modules`.
|
|
20
49
|
*
|
|
@@ -35,6 +64,7 @@ export declare const DEFAULT_MODULES: ContainerModule[];
|
|
|
35
64
|
* ```
|
|
36
65
|
* @param modules Custom modules to be loaded in addition to the default modules.
|
|
37
66
|
* @returns The created container.
|
|
67
|
+
* @deprecated Please use `createDiagramContainer` from `@eclipse-glsp/client` instead
|
|
38
68
|
*/
|
|
39
69
|
export declare function createClientContainer(...modules: ContainerModule[]): Container;
|
|
40
70
|
//# sourceMappingURL=container-modules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-modules.d.ts","sourceRoot":"","sources":["../../src/base/container-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;
|
|
1
|
+
{"version":3,"file":"container-modules.d.ts","sourceRoot":"","sources":["../../src/base/container-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAGlF,OAAO,EAAE,SAAS,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAmCvD,eAAO,MAAM,eAAe,4jBAkClB,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,sBAAsB,CAAC,GAAG,aAAa,EAAE,KAAK,CAAC,eAAe,GAAG,kBAAkB,CAAC,GAAG,SAAS,CAa/G;AAED;;GAEG;AACH,MAAM,WAAW,kBAAkB;IAC/B,OAAO,EAAE,eAAe,CAAC;CAC5B;AAED;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,OAAO,EAAE,eAAe,EAAE,GAAG,SAAS,CAE9E"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/********************************************************************************
|
|
3
|
-
* Copyright (c) 2021 EclipseSource and others.
|
|
3
|
+
* Copyright (c) 2021-2023 EclipseSource and others.
|
|
4
4
|
*
|
|
5
5
|
* This program and the accompanying materials are made available under the
|
|
6
6
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
16
|
********************************************************************************/
|
|
17
17
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
18
|
-
exports.createClientContainer = exports.DEFAULT_MODULES = void 0;
|
|
18
|
+
exports.createClientContainer = exports.createDiagramContainer = exports.DEFAULT_MODULES = void 0;
|
|
19
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
19
20
|
const inversify_1 = require("inversify");
|
|
20
21
|
const sprotty_1 = require("sprotty");
|
|
21
22
|
const di_config_1 = require("../features/bounds/di.config");
|
|
@@ -24,54 +25,92 @@ const di_config_3 = require("../features/context-menu/di.config");
|
|
|
24
25
|
const di_config_4 = require("../features/copy-paste/di.config");
|
|
25
26
|
const di_config_5 = require("../features/decoration/di.config");
|
|
26
27
|
const di_config_6 = require("../features/edit-label/di.config");
|
|
27
|
-
const di_config_7 = require("../features/
|
|
28
|
-
const di_config_8 = require("../features/
|
|
29
|
-
const di_config_9 = require("../features/
|
|
30
|
-
const di_config_10 = require("../features/
|
|
31
|
-
const di_config_11 = require("../features/
|
|
32
|
-
const di_config_12 = require("../features/
|
|
33
|
-
const di_config_13 = require("../features/
|
|
34
|
-
const di_config_14 = require("../features/
|
|
35
|
-
const di_config_15 = require("../features/tool-
|
|
36
|
-
const di_config_16 = require("../features/
|
|
37
|
-
const di_config_17 = require("../features/
|
|
38
|
-
const di_config_18 = require("../features/
|
|
39
|
-
const di_config_19 = require("
|
|
28
|
+
const di_config_7 = require("../features/export/di.config");
|
|
29
|
+
const di_config_8 = require("../features/hints/di.config");
|
|
30
|
+
const di_config_9 = require("../features/hover/di.config");
|
|
31
|
+
const di_config_10 = require("../features/layout/di.config");
|
|
32
|
+
const di_config_11 = require("../features/mouse-tool/di.config");
|
|
33
|
+
const di_config_12 = require("../features/navigation/di.config");
|
|
34
|
+
const di_config_13 = require("../features/select/di.config");
|
|
35
|
+
const di_config_14 = require("../features/source-model-watcher/di.config");
|
|
36
|
+
const di_config_15 = require("../features/tool-feedback/di.config");
|
|
37
|
+
const di_config_16 = require("../features/tool-palette/di.config");
|
|
38
|
+
const di_config_17 = require("../features/tools/di.config");
|
|
39
|
+
const di_config_18 = require("../features/validation/di.config");
|
|
40
|
+
const di_config_19 = require("../features/viewport/di.config");
|
|
41
|
+
const di_config_20 = require("./di.config");
|
|
40
42
|
exports.DEFAULT_MODULES = [
|
|
41
43
|
sprotty_1.defaultModule,
|
|
42
|
-
|
|
44
|
+
di_config_20.default,
|
|
43
45
|
sprotty_1.buttonModule,
|
|
44
46
|
sprotty_1.edgeIntersectionModule,
|
|
45
47
|
sprotty_1.edgeLayoutModule,
|
|
46
48
|
sprotty_1.expandModule,
|
|
47
|
-
|
|
49
|
+
di_config_7.default,
|
|
48
50
|
sprotty_1.fadeModule,
|
|
49
51
|
di_config_1.default,
|
|
50
52
|
di_config_2.default,
|
|
51
53
|
di_config_3.default,
|
|
52
54
|
di_config_5.default,
|
|
53
55
|
di_config_6.default,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
56
|
+
di_config_9.default,
|
|
57
|
+
di_config_11.default,
|
|
58
|
+
di_config_13.default,
|
|
57
59
|
di_config_4.glspServerCopyPasteModule,
|
|
58
|
-
|
|
60
|
+
di_config_19.default,
|
|
59
61
|
sprotty_1.labelEditUiModule,
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
62
|
+
di_config_10.default,
|
|
63
|
+
di_config_18.markerNavigatorModule,
|
|
64
|
+
di_config_8.default,
|
|
63
65
|
sprotty_1.modelSourceModule,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
+
di_config_14.default,
|
|
67
|
+
di_config_12.navigationModule,
|
|
66
68
|
sprotty_1.openModule,
|
|
67
|
-
|
|
69
|
+
di_config_16.default,
|
|
68
70
|
sprotty_1.routingModule,
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
71
|
+
di_config_15.default,
|
|
72
|
+
di_config_17.toolsModule,
|
|
73
|
+
di_config_17.enableDefaultToolsOnFocusLossModule,
|
|
74
|
+
di_config_18.validationModule,
|
|
73
75
|
sprotty_1.zorderModule
|
|
74
76
|
];
|
|
77
|
+
/**
|
|
78
|
+
* Creates a GLSP Diagram container with the GLSP default modules and the specified custom `modules`.
|
|
79
|
+
* Default modules can be excluded using {@link ExcludeDescription}s.
|
|
80
|
+
*
|
|
81
|
+
* This means, you can still customize the default modules in two ways.
|
|
82
|
+
*
|
|
83
|
+
* First, you can exclude default modules and add a module with your custom code.
|
|
84
|
+
*
|
|
85
|
+
* ```typescript
|
|
86
|
+
* const container = createDiagramContainer(myModule1, {exclude: modelSourceWatcherModule},myModelSourceWatcherModule );
|
|
87
|
+
* ```
|
|
88
|
+
*
|
|
89
|
+
* Second, you can unbind or rebind implementations that are originally bound in one of the default modules.
|
|
90
|
+
*
|
|
91
|
+
* ```typescript
|
|
92
|
+
* rebind(NavigationTargetResolver).to(MyNavigationTargetResolver);
|
|
93
|
+
* ```
|
|
94
|
+
*
|
|
95
|
+
* @param customModules Custom modules to be loaded in addition to the default modules and/or default modules that should be excluded.
|
|
96
|
+
* @param options Options to customize the module loading
|
|
97
|
+
* @returns The created container.
|
|
98
|
+
*/
|
|
99
|
+
function createDiagramContainer(...customModules) {
|
|
100
|
+
const container = new inversify_1.Container();
|
|
101
|
+
const modules = [...exports.DEFAULT_MODULES];
|
|
102
|
+
customModules.forEach(customModule => {
|
|
103
|
+
if (customModule instanceof inversify_1.ContainerModule) {
|
|
104
|
+
modules.push(customModule);
|
|
105
|
+
}
|
|
106
|
+
else {
|
|
107
|
+
(0, protocol_1.remove)(modules, customModule.exclude);
|
|
108
|
+
}
|
|
109
|
+
});
|
|
110
|
+
container.load(...modules);
|
|
111
|
+
return container;
|
|
112
|
+
}
|
|
113
|
+
exports.createDiagramContainer = createDiagramContainer;
|
|
75
114
|
/**
|
|
76
115
|
* Creates a GLSP Client container with the GLSP default modules and the specified custom `modules`.
|
|
77
116
|
*
|
|
@@ -92,11 +131,10 @@ exports.DEFAULT_MODULES = [
|
|
|
92
131
|
* ```
|
|
93
132
|
* @param modules Custom modules to be loaded in addition to the default modules.
|
|
94
133
|
* @returns The created container.
|
|
134
|
+
* @deprecated Please use `createDiagramContainer` from `@eclipse-glsp/client` instead
|
|
95
135
|
*/
|
|
96
136
|
function createClientContainer(...modules) {
|
|
97
|
-
|
|
98
|
-
container.load(...exports.DEFAULT_MODULES, ...modules);
|
|
99
|
-
return container;
|
|
137
|
+
return createDiagramContainer(...modules);
|
|
100
138
|
}
|
|
101
139
|
exports.createClientContainer = createClientContainer;
|
|
102
140
|
//# sourceMappingURL=container-modules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"container-modules.js","sourceRoot":"","sources":["../../src/base/container-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,yCAAuD;AACvD,
|
|
1
|
+
{"version":3,"file":"container-modules.js","sourceRoot":"","sources":["../../src/base/container-modules.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAElF,qDAAgD;AAChD,yCAAuD;AACvD,qCAYiB;AACjB,4DAA4D;AAC5D,qEAA6E;AAC7E,kEAAuE;AACvE,gEAA6E;AAC7E,gEAAoE;AACpE,gEAAmE;AACnE,4DAA4D;AAC5D,2DAA2D;AAC3D,2DAA0D;AAC1D,6DAAwD;AACxD,iEAAmE;AACnE,iEAAoE;AACpE,6DAA4D;AAC5D,2EAAkF;AAClF,oEAAqE;AACrE,mEAAmE;AACnE,4DAA+F;AAC/F,iEAA2F;AAC3F,+DAAgE;AAChE,4CAA4C;AAE/B,QAAA,eAAe,GAAG;IAC3B,uBAAa;IACb,oBAAiB;IACjB,sBAAY;IACZ,gCAAsB;IACtB,0BAAgB;IAChB,sBAAY;IACZ,mBAAgB;IAChB,oBAAU;IACV,mBAAgB;IAChB,mBAAwB;IACxB,mBAAqB;IACrB,mBAAoB;IACpB,mBAAmB;IACnB,mBAAe;IACf,oBAAmB;IACnB,oBAAgB;IAChB,qCAAyB;IACzB,oBAAkB;IAClB,2BAAiB;IACjB,oBAAY;IACZ,kCAAqB;IACrB,mBAAgB;IAChB,2BAAiB;IACjB,oBAAwB;IACxB,6BAAgB;IAChB,oBAAU;IACV,oBAAiB;IACjB,uBAAa;IACb,oBAAkB;IAClB,wBAAW;IACX,gDAAmC;IACnC,6BAAgB;IAChB,sBAAY;CACN,CAAC;AAEX;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,sBAAsB,CAAC,GAAG,aAA0D;IAChG,MAAM,SAAS,GAAG,IAAI,qBAAS,EAAE,CAAC;IAElC,MAAM,OAAO,GAAG,CAAC,GAAG,uBAAe,CAAC,CAAC;IACrC,aAAa,CAAC,OAAO,CAAC,YAAY,CAAC,EAAE;QACjC,IAAI,YAAY,YAAY,2BAAe,EAAE;YACzC,OAAO,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;SAC9B;aAAM;YACH,IAAA,iBAAM,EAAC,OAAO,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;SACzC;IACL,CAAC,CAAC,CAAC;IACH,SAAS,CAAC,IAAI,CAAC,GAAG,OAAO,CAAC,CAAC;IAC3B,OAAO,SAAS,CAAC;AACrB,CAAC;AAbD,wDAaC;AASD;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,SAAgB,qBAAqB,CAAC,GAAG,OAA0B;IAC/D,OAAO,sBAAsB,CAAC,GAAG,OAAO,CAAC,CAAC;AAC9C,CAAC;AAFD,sDAEC"}
|
|
@@ -8,7 +8,7 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
9
|
exports.SelectionClearingMouseListener = void 0;
|
|
10
10
|
/********************************************************************************
|
|
11
|
-
* Copyright (c) 2020 EclipseSource and others.
|
|
11
|
+
* Copyright (c) 2020-2022 EclipseSource and others.
|
|
12
12
|
*
|
|
13
13
|
* This program and the accompanying materials are made available under the
|
|
14
14
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -12,7 +12,7 @@ var CommandPaletteTool_1;
|
|
|
12
12
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
13
|
exports.CommandPaletteTool = void 0;
|
|
14
14
|
/********************************************************************************
|
|
15
|
-
* Copyright (c)
|
|
15
|
+
* Copyright (c) 2019-2021 EclipseSource and others.
|
|
16
16
|
*
|
|
17
17
|
* This program and the accompanying materials are made available under the
|
|
18
18
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { ContainerModule } from 'inversify';
|
|
17
|
+
declare const glspExportSvgModule: ContainerModule;
|
|
18
|
+
export default glspExportSvgModule;
|
|
19
|
+
//# sourceMappingURL=di.config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/export/di.config.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,eAAe,EAAE,MAAM,WAAW,CAAC;AAI5C,QAAA,MAAM,mBAAmB,iBAMvB,CAAC;AAEH,eAAe,mBAAmB,CAAC"}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
/********************************************************************************
|
|
4
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
5
|
+
*
|
|
6
|
+
* This program and the accompanying materials are made available under the
|
|
7
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
8
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
9
|
+
*
|
|
10
|
+
* This Source Code may also be made available under the following Secondary
|
|
11
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
12
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
13
|
+
* with the GNU Classpath Exception which is available at
|
|
14
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
15
|
+
*
|
|
16
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
17
|
+
********************************************************************************/
|
|
18
|
+
const inversify_1 = require("inversify");
|
|
19
|
+
const sprotty_1 = require("sprotty");
|
|
20
|
+
const glsp_svg_exporter_1 = require("./glsp-svg-exporter");
|
|
21
|
+
const glspExportSvgModule = new inversify_1.ContainerModule((bind, _unbind, isBound) => {
|
|
22
|
+
bind(sprotty_1.ExportSvgKeyListener).toSelf().inSingletonScope();
|
|
23
|
+
bind(sprotty_1.TYPES.KeyListener).toService(sprotty_1.ExportSvgKeyListener);
|
|
24
|
+
bind(sprotty_1.TYPES.HiddenVNodePostprocessor).to(sprotty_1.ExportSvgPostprocessor).inSingletonScope();
|
|
25
|
+
(0, sprotty_1.configureCommand)({ bind, isBound }, sprotty_1.ExportSvgCommand);
|
|
26
|
+
bind(sprotty_1.TYPES.SvgExporter).to(glsp_svg_exporter_1.GLSPSvgExporter).inSingletonScope();
|
|
27
|
+
});
|
|
28
|
+
exports.default = glspExportSvgModule;
|
|
29
|
+
//# sourceMappingURL=di.config.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/export/di.config.ts"],"names":[],"mappings":";;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,yCAA4C;AAC5C,qCAAkH;AAClH,2DAAsD;AAEtD,MAAM,mBAAmB,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IACvE,IAAI,CAAC,8BAAoB,CAAC,CAAC,MAAM,EAAE,CAAC,gBAAgB,EAAE,CAAC;IACvD,IAAI,CAAC,eAAK,CAAC,WAAW,CAAC,CAAC,SAAS,CAAC,8BAAoB,CAAC,CAAC;IACxD,IAAI,CAAC,eAAK,CAAC,wBAAwB,CAAC,CAAC,EAAE,CAAC,gCAAsB,CAAC,CAAC,gBAAgB,EAAE,CAAC;IACnF,IAAA,0BAAgB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,0BAAgB,CAAC,CAAC;IACtD,IAAI,CAAC,eAAK,CAAC,WAAW,CAAC,CAAC,EAAE,CAAC,mCAAe,CAAC,CAAC,gBAAgB,EAAE,CAAC;AACnE,CAAC,CAAC,CAAC;AAEH,kBAAe,mBAAmB,CAAC"}
|
|
@@ -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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/********************************************************************************
|
|
3
|
-
* Copyright (c) 2022 STMicroelectronics and others.
|
|
3
|
+
* Copyright (c) 2022-2023 STMicroelectronics and others.
|
|
4
4
|
*
|
|
5
5
|
* This program and the accompanying materials are made available under the
|
|
6
6
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -89,7 +89,7 @@ exports.layout = layout;
|
|
|
89
89
|
function setupLayoutRegistry() {
|
|
90
90
|
// Generic Test setup
|
|
91
91
|
// create client container that registers all default modules including the layoutModule
|
|
92
|
-
const layoutContainer = (0, container_modules_1.
|
|
92
|
+
const layoutContainer = (0, container_modules_1.createDiagramContainer)();
|
|
93
93
|
return layoutContainer.get(sprotty_1.TYPES.LayoutRegistry);
|
|
94
94
|
}
|
|
95
95
|
exports.setupLayoutRegistry = setupLayoutRegistry;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"layouter-test-util.js","sourceRoot":"","sources":["../../../../src/features/layout/tests/layouter-test-util.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAGlF,iBAAe;AACf,4BAA0B;AAC1B,qCAYiB;AACjB,
|
|
1
|
+
{"version":3,"file":"layouter-test-util.js","sourceRoot":"","sources":["../../../../src/features/layout/tests/layouter-test-util.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;AAGlF,iBAAe;AACf,4BAA0B;AAC1B,qCAYiB;AACjB,uEAAyE;AACzE,8CAA+C;AAC/C,0CAAkD;AAElD,SAAgB,MAAM;IAClB,OAAO,IAAI,iBAAS,EAAE,CAAC;AAC3B,CAAC;AAFD,wBAEC;AAED,SAAgB,KAAK,CACjB,IAAY,EACZ,UAAmB,EACnB,IAAgB,EAChB,QAAgB,EAChB,aAA4D;IAE5D,MAAM,IAAI,GAAG,IAAI,eAAK,EAAE,CAAC;IACzB,IAAI,CAAC,QAAQ,GAAG,IAAA,0BAAgB,EAAC,eAAK,CAAC,gBAAgB,EAAE,EAAE,MAAM,EAAE,CAAC,gCAAsB,CAAC,EAAE,CAAC,CAAC;IAC/F,IAAI,CAAC,QAAQ,GAAG,QAAQ,IAAI;QACxB,CAAC,EAAE,CAAC;QACJ,CAAC,EAAE,CAAC;KACP,CAAC;IACF,IAAI,IAAI,EAAE;QACN,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;KACpB;IACD,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;IACjB,IAAI,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B,CAAC,CAAC;IACH,IAAI,OAAO,YAAY,wBAAc,EAAE;QACnC,OAAO,CAAC,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE,CAAC,QAAQ,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;KACnD;AACL,CAAC;AATD,4BASC;AAED,SAAgB,MAAM,CAClB,cAA8B,EAC9B,GAAkB,EAClB,GAAmC,EACnC,KAAwB;IAExB,GAAG,CAAC,KAAK,EAAE,CAAC;IACZ,QAAQ,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACrB,MAAM,QAAQ,GAAG,IAAI,8BAAmB,CAAC,GAAG,EAAE,cAAc,EAAE,GAAG,CAAC,CAAC;IACnE,QAAQ,CAAC,MAAM,EAAE,CAAC;AACtB,CAAC;AAVD,wBAUC;AAED,SAAgB,mBAAmB;IAC/B,qBAAqB;IACrB,wFAAwF;IACxF,MAAM,eAAe,GAAG,IAAA,0CAAsB,GAAE,CAAC;IACjD,OAAO,eAAe,CAAC,GAAG,CAAiB,eAAK,CAAC,cAAc,CAAC,CAAC;AACrE,CAAC;AALD,kDAKC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2019-2021 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
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
/********************************************************************************
|
|
4
|
-
* Copyright (c)
|
|
4
|
+
* Copyright (c) 2019-2022 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
|
|
@@ -114,8 +114,7 @@ export declare class FeedbackEdgeRouteMovingMouseListener extends MouseListener
|
|
|
114
114
|
protected toElementMove(element: SRoutingHandle, positionDelta: Point, isSnap: boolean): ElementMove | undefined;
|
|
115
115
|
protected getSnappedHandlePosition(element: SRoutingHandle, point: Point, isSnap: boolean): Point;
|
|
116
116
|
protected getHandlePosition(handle: SRoutingHandle): Point | undefined;
|
|
117
|
-
|
|
118
|
-
mouseUp(_target: SModelElement, event: MouseEvent): Action[];
|
|
117
|
+
mouseUp(_target: SModelElement, _event: MouseEvent): Action[];
|
|
119
118
|
decorate(vnode: VNode, _element: SModelElement): VNode;
|
|
120
119
|
}
|
|
121
120
|
//# sourceMappingURL=edge-edit-tool-feedback.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-edit-tool-feedback.d.ts","sourceRoot":"","sources":["../../../src/features/tool-feedback/edge-edit-tool-feedback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAyB,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EACH,sBAAsB,EACtB,uBAAuB,EACvB,aAAa,EACb,kBAAkB,EAClB,WAAW,EAKX,QAAQ,EAER,aAAa,EAEb,mBAAmB,EACnB,aAAa,
|
|
1
|
+
{"version":3,"file":"edge-edit-tool-feedback.d.ts","sourceRoot":"","sources":["../../../src/features/tool-feedback/edge-edit-tool-feedback.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAyB,KAAK,EAAE,MAAM,wBAAwB,CAAC;AAE9E,OAAO,EAAE,KAAK,EAAE,MAAM,UAAU,CAAC;AACjC,OAAO,EACH,sBAAsB,EACtB,uBAAuB,EACvB,aAAa,EACb,kBAAkB,EAClB,WAAW,EAKX,QAAQ,EAER,aAAa,EAEb,mBAAmB,EACnB,aAAa,EACb,cAAc,EACd,oBAAoB,EACpB,qBAAqB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AE,aAAa,GAAG,KAAK;CAGlE"}
|
|
@@ -286,13 +286,7 @@ class FeedbackEdgeRouteMovingMouseListener extends sprotty_1.MouseListener {
|
|
|
286
286
|
}
|
|
287
287
|
return undefined;
|
|
288
288
|
}
|
|
289
|
-
|
|
290
|
-
if (target instanceof sprotty_1.SModelRoot && event.buttons === 0) {
|
|
291
|
-
this.mouseUp(target, event);
|
|
292
|
-
}
|
|
293
|
-
return [];
|
|
294
|
-
}
|
|
295
|
-
mouseUp(_target, event) {
|
|
289
|
+
mouseUp(_target, _event) {
|
|
296
290
|
this.pointPositionUpdater.resetPosition();
|
|
297
291
|
return [];
|
|
298
292
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"edge-edit-tool-feedback.js","sourceRoot":"","sources":["../../../src/features/tool-feedback/edge-edit-tool-feedback.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA8E;AAC9E,yCAA+C;AAE/C,
|
|
1
|
+
{"version":3,"file":"edge-edit-tool-feedback.js","sourceRoot":"","sources":["../../../src/features/tool-feedback/edge-edit-tool-feedback.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA8E;AAC9E,yCAA+C;AAE/C,qCAoBiB;AACjB,0DAA0D;AAC1D,yDAAsF;AACtF,+DAAmF;AACnF,gDAA6D;AAC7D,8CAAiF;AACjF,qEAAkI;AAClI,mCAA0C;AAU1C,IAAiB,sCAAsC,CAUtD;AAVD,WAAiB,sCAAsC;IACtC,2CAAI,GAAG,8BAA8B,CAAC;IAEnD,SAAgB,EAAE,CAAC,MAAW;QAC1B,OAAO,iBAAM,CAAC,OAAO,CAAC,MAAM,EAAE,uCAAA,IAAI,CAAC,CAAC;IACxC,CAAC;IAFe,yCAAE,KAEjB,CAAA;IAED,SAAgB,MAAM,CAAC,SAAiB;QACpC,OAAO,EAAE,IAAI,EAAE,uCAAA,IAA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AC/D,IAAI,CAAC,MAAM,IAAI,CAAC,IAAA,uBAAa,EAAC,MAAM,CAAC,EAAE;QACnC,OAAO;KACV;IAED,MAAM,OAAO,GAAG,IAAI,wCAAe,CAAC,MAAM,CAAC,EAAE,EAAE,aAAa,CAAC,CAAC;IAC9D,OAAO,CAAC,EAAE,GAAG,IAAA,0CAAiB,EAAC,IAAI,CAAC,CAAC;IACrC,OAAO,CAAC,QAAQ,GAAG,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC;IAE9D,MAAM,kBAAkB,GAAG;QACvB,IAAI,EAAE,MAAM;QACZ,EAAE,EAAE,IAAA,uCAAc,EAAC,IAAI,CAAC;QACxB,QAAQ,EAAE,OAAO,CAAC,EAAE;QACpB,QAAQ,EAAE,MAAM,CAAC,EAAE;QACnB,OAAO,EAAE,GAAG;KACf,CAAC;IAEF,MAAM,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,aAAa,CAAC,kBAAkB,CAAC,CAAC;IAC5E,IAAI,IAAA,wBAAU,EAAC,YAAY,CAAC,EAAE;QAC1B,OAAO,CAAC,YAAY,GAAG,YAAY,CAAC;QACpC,IAAI,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;QAClB,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;KAC1B;AACL,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/tools/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;
|
|
1
|
+
{"version":3,"file":"di.config.d.ts","sourceRoot":"","sources":["../../../src/features/tools/di.config.ts"],"names":[],"mappings":"AAgBA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,MAAM,WAAW,CAAC;AAiBxD;;;GAGG;AACH,eAAO,MAAM,WAAW,iBAmBtB,CAAC;AAEH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE;IAAE,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC;IAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAA;CAAE,GAAG,IAAI,CAI1G;AAED;;GAEG;AACH,eAAO,MAAM,mCAAmC,iBAE9C,CAAC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.enableDefaultToolsOnFocusLossModule = exports.configureMarqueeTool = exports.toolsModule = void 0;
|
|
4
4
|
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2019-
|
|
5
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
6
6
|
*
|
|
7
7
|
* This program and the accompanying materials are made available under the
|
|
8
8
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -21,7 +21,6 @@ const inversify_1 = require("inversify");
|
|
|
21
21
|
const sprotty_1 = require("sprotty");
|
|
22
22
|
const focus_change_action_1 = require("../../base/actions/focus-change-action");
|
|
23
23
|
const types_1 = require("../../base/types");
|
|
24
|
-
const glsp_svg_exporter_1 = require("../export/glsp-svg-exporter");
|
|
25
24
|
const marquee_tool_feedback_1 = require("../tool-feedback/marquee-tool-feedback");
|
|
26
25
|
const change_bounds_tool_1 = require("./change-bounds-tool");
|
|
27
26
|
const delete_tool_1 = require("./delete-tool");
|
|
@@ -52,8 +51,6 @@ exports.toolsModule = new inversify_1.ContainerModule((bind, _unbind, isBound, r
|
|
|
52
51
|
configureMarqueeTool({ bind, isBound });
|
|
53
52
|
(0, sprotty_1.configureActionHandler)({ bind, isBound }, protocol_1.TriggerNodeCreationAction.KIND, node_creation_tool_1.NodeCreationTool);
|
|
54
53
|
(0, sprotty_1.configureActionHandler)({ bind, isBound }, protocol_1.TriggerEdgeCreationAction.KIND, edge_creation_tool_1.EdgeCreationTool);
|
|
55
|
-
bind(glsp_svg_exporter_1.GLSPSvgExporter).toSelf().inSingletonScope();
|
|
56
|
-
rebind(types_1.TYPES.SvgExporter).toService(glsp_svg_exporter_1.GLSPSvgExporter);
|
|
57
54
|
bind(glsp_manhattan_edge_router_1.GSLPManhattanEdgeRouter).toSelf().inSingletonScope();
|
|
58
55
|
rebind(sprotty_1.ManhattanEdgeRouter).toService(glsp_manhattan_edge_router_1.GSLPManhattanEdgeRouter);
|
|
59
56
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/tools/di.config.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA8F;AAC9F,yCAAwD;AACxD,qCAA6F;AAC7F,gFAAiF;AACjF,4CAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"di.config.js","sourceRoot":"","sources":["../../../src/features/tools/di.config.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAA8F;AAC9F,yCAAwD;AACxD,qCAA6F;AAC7F,gFAAiF;AACjF,4CAAyC;AACzC,kFAAiE;AACjE,6DAAwD;AACxD,+CAAkE;AAClE,6DAAwD;AACxD,qDAAgD;AAChD,6FAA4F;AAC5F,6EAAuE;AACvE,6DAAwD;AACxD,iDAA6C;AAC7C,mCAAsC;AACtC,6DAAwD;AACxD,iCAAqC;AAErC;;;GAGG;AACU,QAAA,WAAW,GAAG,IAAI,2BAAe,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,EAAE;IAC9E,yBAAyB;IACzB,IAAI,CAAC,aAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,qCAAgB,CAAC,CAAC;IAC9C,IAAI,CAAC,aAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,6BAAY,CAAC,CAAC;IAC1C,IAAI,CAAC,aAAK,CAAC,YAAY,CAAC,CAAC,EAAE,CAAC,8BAAgB,CAAC,CAAC;IAE9C,kBAAkB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e,CAAC,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE;IAC9F,IAAA,gCAAsB,EAAC,EAAE,IAAI,EAAE,OAAO,EAAE,EAAE,6CAAuB,CAAC,IAAI,EAAE,yEAAoC,CAAC,CAAC;AAClH,CAAC,CAAC,CAAC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2022 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
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.getSeverity = exports.createSIssue = exports.getSIssueMarker = exports.getOrCreateSIssueMarker = exports.GIssueMarker = void 0;
|
|
4
4
|
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2019-
|
|
5
|
+
* Copyright (c) 2019-2022 EclipseSource and others.
|
|
6
6
|
*
|
|
7
7
|
* This program and the accompanying materials are made available under the
|
|
8
8
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
package/lib/lib/model.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
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { SModelElementSchema } from '@eclipse-glsp/protocol';
|
|
17
|
-
import { SGraph, SModelElement } from 'sprotty';
|
|
16
|
+
import { Bounds, Point, SModelElementSchema } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { SEdge, SGraph, SModelElement } from 'sprotty';
|
|
18
18
|
import { Containable } from '../features/hints/model';
|
|
19
19
|
import { Saveable } from '../features/save/model';
|
|
20
20
|
export declare class GLSPGraph extends SGraph implements Saveable, Containable {
|
|
@@ -22,4 +22,8 @@ export declare class GLSPGraph extends SGraph implements Saveable, Containable {
|
|
|
22
22
|
dirty: boolean;
|
|
23
23
|
isContainableElement(input: string | SModelElement | SModelElementSchema): boolean;
|
|
24
24
|
}
|
|
25
|
+
export declare class GEdge extends SEdge {
|
|
26
|
+
localToParent(point: Point | Bounds): Bounds;
|
|
27
|
+
parentToLocal(point: Point | Bounds): Bounds;
|
|
28
|
+
}
|
|
25
29
|
//# sourceMappingURL=model.d.ts.map
|
package/lib/lib/model.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAY,KAAK,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AACtF,OAAO,EAAiC,KAAK,EAAE,MAAM,EAAE,aAAa,EAAmB,MAAM,SAAS,CAAC;AACvG,OAAO,EAAE,WAAW,EAAoB,MAAM,yBAAyB,CAAC;AACxE,OAAO,EAAE,QAAQ,EAAe,MAAM,wBAAwB,CAAC;AAE/D,qBAAa,SAAU,SAAQ,MAAO,YAAW,QAAQ,EAAE,WAAW;IAClE,gBAAyB,gBAAgB,WAAmE;IAC5G,KAAK,UAAS;IACd,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,aAAa,GAAG,mBAAmB,GAAG,OAAO;CAGrF;AAED,qBAAa,KAAM,SAAQ,KAAK;IACnB,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM;IAe5C,aAAa,CAAC,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,MAAM;CAcxD"}
|
package/lib/lib/model.js
CHANGED
|
@@ -1,6 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.GLSPGraph = void 0;
|
|
3
|
+
exports.GEdge = exports.GLSPGraph = void 0;
|
|
4
|
+
/********************************************************************************
|
|
5
|
+
* Copyright (c) 2019-2023 EclipseSource and others.
|
|
6
|
+
*
|
|
7
|
+
* This program and the accompanying materials are made available under the
|
|
8
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
9
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
10
|
+
*
|
|
11
|
+
* This Source Code may also be made available under the following Secondary
|
|
12
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
13
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
14
|
+
* with the GNU Classpath Exception which is available at
|
|
15
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
16
|
+
*
|
|
17
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
18
|
+
********************************************************************************/
|
|
19
|
+
const protocol_1 = require("@eclipse-glsp/protocol");
|
|
4
20
|
const sprotty_1 = require("sprotty");
|
|
5
21
|
const model_1 = require("../features/hints/model");
|
|
6
22
|
const model_2 = require("../features/save/model");
|
|
@@ -15,4 +31,35 @@ class GLSPGraph extends sprotty_1.SGraph {
|
|
|
15
31
|
}
|
|
16
32
|
exports.GLSPGraph = GLSPGraph;
|
|
17
33
|
GLSPGraph.DEFAULT_FEATURES = [sprotty_1.viewportFeature, sprotty_1.exportFeature, model_2.saveFeature, model_1.containerFeature];
|
|
34
|
+
class GEdge extends sprotty_1.SEdge {
|
|
35
|
+
localToParent(point) {
|
|
36
|
+
const bounds = (0, sprotty_1.getRouteBounds)(this.routingPoints);
|
|
37
|
+
const result = {
|
|
38
|
+
x: point.x + bounds.x,
|
|
39
|
+
y: point.y + bounds.y,
|
|
40
|
+
width: -1,
|
|
41
|
+
height: -1
|
|
42
|
+
};
|
|
43
|
+
if ((0, protocol_1.isBounds)(point)) {
|
|
44
|
+
result.width = point.width;
|
|
45
|
+
result.height = point.height;
|
|
46
|
+
}
|
|
47
|
+
return result;
|
|
48
|
+
}
|
|
49
|
+
parentToLocal(point) {
|
|
50
|
+
const bounds = (0, sprotty_1.getRouteBounds)(this.routingPoints);
|
|
51
|
+
const result = {
|
|
52
|
+
x: point.x - bounds.x,
|
|
53
|
+
y: point.y - bounds.y,
|
|
54
|
+
width: -1,
|
|
55
|
+
height: -1
|
|
56
|
+
};
|
|
57
|
+
if ((0, protocol_1.isBounds)(point)) {
|
|
58
|
+
result.width = point.width;
|
|
59
|
+
result.height = point.height;
|
|
60
|
+
}
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
exports.GEdge = GEdge;
|
|
18
65
|
//# sourceMappingURL=model.js.map
|
package/lib/lib/model.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":";;;
|
|
1
|
+
{"version":3,"file":"model.js","sourceRoot":"","sources":["../../src/lib/model.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,qDAAsF;AACtF,qCAAuG;AACvG,mDAAwE;AACxE,kDAA+D;AAE/D,MAAa,SAAU,SAAQ,gBAAM;IAArC;;QAEI,UAAK,GAAG,KAAK,CAAC;IAIlB,CAAC;IAHG,oBAAoB,CAAC,KAAmD;QACpE,OAAO,IAAI,CAAC;IAChB,CAAC;;AALL,8BAMC;AAL4B,0BAAgB,GAAG,CAAC,yBAAe,EAAE,uBAAa,EAAE,mBAAW,EAAE,wBAAgB,CAAC,CAAC;AAOhH,MAAa,KAAM,SAAQ,eAAK;IACnB,aAAa,CAAC,KAAqB;QACxC,MAAM,MAAM,GAAG,IAAA,wBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG;YACX,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;YACrB,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;YACrB,KAAK,EAAE,CAAC,CAAC;YACT,MAAM,EAAE,CAAC,CAAC;SACb,CAAC;QACF,IAAI,IAAA,mBAAQ,EAAC,KAAK,CAAC,EAAE;YACjB,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YAC3B,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;SAChC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;IAEQ,aAAa,CAAC,KAAqB;QACxC,MAAM,MAAM,GAAG,IAAA,wBAAc,EAAC,IAAI,CAAC,aAAa,CAAC,CAAC;QAClD,MAAM,MAAM,GAAG;YACX,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;YACrB,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,MAAM,CAAC,CAAC;YACrB,KAAK,EAAE,CAAC,CAAC;YACT,MAAM,EAAE,CAAC,CAAC;SACb,CAAC;QACF,IAAI,IAAA,mBAAQ,EAAC,KAAK,CAAC,EAAE;YACjB,MAAM,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YAC3B,MAAM,CAAC,MAAM,GAAG,KAAK,CAAC,MAAM,CAAC;SAChC;QACD,OAAO,MAAM,CAAC;IAClB,CAAC;CACJ;AA9BD,sBA8BC"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2019-2020 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
|
package/lib/utils/html-utils.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.createElementFromHTML = void 0;
|
|
4
4
|
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
5
|
+
* Copyright (c) 2019-2020 EclipseSource and others.
|
|
6
6
|
*
|
|
7
7
|
* This program and the accompanying materials are made available under the
|
|
8
8
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.configureDefaultModelElements = void 0;
|
|
4
4
|
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2021 EclipseSource and others.
|
|
5
|
+
* Copyright (c) 2021-2022 EclipseSource and others.
|
|
6
6
|
*
|
|
7
7
|
* This program and the accompanying materials are made available under the
|
|
8
8
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2017-
|
|
2
|
+
* Copyright (c) 2017-2022 TypeFox 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
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/********************************************************************************
|
|
3
|
-
* Copyright (c) 2017-
|
|
3
|
+
* Copyright (c) 2017-2022 TypeFox and others.
|
|
4
4
|
*
|
|
5
5
|
* This program and the accompanying materials are made available under the
|
|
6
6
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
package/lib/views/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2019-2022 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
|
package/lib/views/index.js
CHANGED
|
@@ -15,7 +15,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
/********************************************************************************
|
|
18
|
-
* Copyright (c)
|
|
18
|
+
* Copyright (c) 2019-2022 EclipseSource and others.
|
|
19
19
|
*
|
|
20
20
|
* This program and the accompanying materials are made available under the
|
|
21
21
|
* terms of the Eclipse Public License v. 2.0 which is available at
|
package/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/client",
|
|
3
|
-
"version": "1.1.0-next.
|
|
3
|
+
"version": "1.1.0-next.20ec26e.220+20ec26e",
|
|
4
4
|
"description": "A sprotty-based client for GLSP",
|
|
5
|
-
"license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",
|
|
6
5
|
"keywords": [
|
|
7
6
|
"eclipse",
|
|
8
7
|
"graphics",
|
|
@@ -12,15 +11,16 @@
|
|
|
12
11
|
"glsp",
|
|
13
12
|
"diagram editor"
|
|
14
13
|
],
|
|
15
|
-
"author": {
|
|
16
|
-
"name": "Eclipse GLSP"
|
|
17
|
-
},
|
|
18
14
|
"homepage": "https://www.eclipse.org/glsp/",
|
|
15
|
+
"bugs": "https://github.com/eclipse-glsp/glsp/issues",
|
|
19
16
|
"repository": {
|
|
20
17
|
"type": "git",
|
|
21
18
|
"url": "https://github.com/eclipse-glsp/glsp-client.git"
|
|
22
19
|
},
|
|
23
|
-
"
|
|
20
|
+
"license": "(EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0)",
|
|
21
|
+
"author": {
|
|
22
|
+
"name": "Eclipse GLSP"
|
|
23
|
+
},
|
|
24
24
|
"contributors": [
|
|
25
25
|
{
|
|
26
26
|
"name": "Eclipse GLSP Project",
|
|
@@ -28,19 +28,13 @@
|
|
|
28
28
|
"url": "https://projects.eclipse.org/projects/ecd.glsp"
|
|
29
29
|
}
|
|
30
30
|
],
|
|
31
|
+
"main": "lib/index",
|
|
32
|
+
"types": "lib/index",
|
|
31
33
|
"files": [
|
|
32
34
|
"lib",
|
|
33
35
|
"src",
|
|
34
36
|
"css"
|
|
35
37
|
],
|
|
36
|
-
"dependencies": {
|
|
37
|
-
"@eclipse-glsp/protocol": "1.1.0-next.1e39678.212+1e39678",
|
|
38
|
-
"autocompleter": "5.1.0",
|
|
39
|
-
"sprotty": "0.13.0-next.f4445dd.342"
|
|
40
|
-
},
|
|
41
|
-
"devDependencies": {
|
|
42
|
-
"@vscode/codicons": "^0.0.25"
|
|
43
|
-
},
|
|
44
38
|
"scripts": {
|
|
45
39
|
"build": "tsc -b",
|
|
46
40
|
"clean": "rimraf lib tsconfig.tsbuildinfo coverage .nyc_output",
|
|
@@ -52,10 +46,16 @@
|
|
|
52
46
|
"test:coverage": "nyc yarn test",
|
|
53
47
|
"watch": "tsc -w"
|
|
54
48
|
},
|
|
49
|
+
"dependencies": {
|
|
50
|
+
"@eclipse-glsp/protocol": "1.1.0-next.20ec26e.220+20ec26e",
|
|
51
|
+
"autocompleter": "5.1.0",
|
|
52
|
+
"sprotty": "0.13.0-next.f4445dd.342"
|
|
53
|
+
},
|
|
54
|
+
"devDependencies": {
|
|
55
|
+
"@vscode/codicons": "^0.0.25"
|
|
56
|
+
},
|
|
55
57
|
"publishConfig": {
|
|
56
58
|
"access": "public"
|
|
57
59
|
},
|
|
58
|
-
"
|
|
59
|
-
"types": "lib/index",
|
|
60
|
-
"gitHead": "1e3967862b0c192ad8cca152da88e12842ddbfa5"
|
|
60
|
+
"gitHead": "20ec26e7b0a4ad6e68a79e8a31838b537bccea7c"
|
|
61
61
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2021 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2021-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,7 @@
|
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
|
|
17
|
+
import { remove } from '@eclipse-glsp/protocol';
|
|
17
18
|
import { Container, ContainerModule } from 'inversify';
|
|
18
19
|
import {
|
|
19
20
|
buttonModule,
|
|
@@ -21,7 +22,6 @@ import {
|
|
|
21
22
|
edgeIntersectionModule,
|
|
22
23
|
edgeLayoutModule,
|
|
23
24
|
expandModule,
|
|
24
|
-
exportModule,
|
|
25
25
|
fadeModule,
|
|
26
26
|
labelEditUiModule,
|
|
27
27
|
modelSourceModule,
|
|
@@ -35,6 +35,7 @@ import glspContextMenuModule from '../features/context-menu/di.config';
|
|
|
35
35
|
import { glspServerCopyPasteModule } from '../features/copy-paste/di.config';
|
|
36
36
|
import glspDecorationModule from '../features/decoration/di.config';
|
|
37
37
|
import glspEditLabelModule from '../features/edit-label/di.config';
|
|
38
|
+
import glspExportModule from '../features/export/di.config';
|
|
38
39
|
import modelHintsModule from '../features/hints/di.config';
|
|
39
40
|
import glspHoverModule from '../features/hover/di.config';
|
|
40
41
|
import layoutModule from '../features/layout/di.config';
|
|
@@ -56,7 +57,7 @@ export const DEFAULT_MODULES = [
|
|
|
56
57
|
edgeIntersectionModule,
|
|
57
58
|
edgeLayoutModule,
|
|
58
59
|
expandModule,
|
|
59
|
-
|
|
60
|
+
glspExportModule,
|
|
60
61
|
fadeModule,
|
|
61
62
|
glspBoundsModule,
|
|
62
63
|
glspCommandPaletteModule,
|
|
@@ -83,7 +84,51 @@ export const DEFAULT_MODULES = [
|
|
|
83
84
|
enableDefaultToolsOnFocusLossModule,
|
|
84
85
|
validationModule,
|
|
85
86
|
zorderModule
|
|
86
|
-
];
|
|
87
|
+
] as const;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Creates a GLSP Diagram container with the GLSP default modules and the specified custom `modules`.
|
|
91
|
+
* Default modules can be excluded using {@link ExcludeDescription}s.
|
|
92
|
+
*
|
|
93
|
+
* This means, you can still customize the default modules in two ways.
|
|
94
|
+
*
|
|
95
|
+
* First, you can exclude default modules and add a module with your custom code.
|
|
96
|
+
*
|
|
97
|
+
* ```typescript
|
|
98
|
+
* const container = createDiagramContainer(myModule1, {exclude: modelSourceWatcherModule},myModelSourceWatcherModule );
|
|
99
|
+
* ```
|
|
100
|
+
*
|
|
101
|
+
* Second, you can unbind or rebind implementations that are originally bound in one of the default modules.
|
|
102
|
+
*
|
|
103
|
+
* ```typescript
|
|
104
|
+
* rebind(NavigationTargetResolver).to(MyNavigationTargetResolver);
|
|
105
|
+
* ```
|
|
106
|
+
*
|
|
107
|
+
* @param customModules Custom modules to be loaded in addition to the default modules and/or default modules that should be excluded.
|
|
108
|
+
* @param options Options to customize the module loading
|
|
109
|
+
* @returns The created container.
|
|
110
|
+
*/
|
|
111
|
+
export function createDiagramContainer(...customModules: Array<ContainerModule | ExcludeDescription>): Container {
|
|
112
|
+
const container = new Container();
|
|
113
|
+
|
|
114
|
+
const modules = [...DEFAULT_MODULES];
|
|
115
|
+
customModules.forEach(customModule => {
|
|
116
|
+
if (customModule instanceof ContainerModule) {
|
|
117
|
+
modules.push(customModule);
|
|
118
|
+
} else {
|
|
119
|
+
remove(modules, customModule.exclude);
|
|
120
|
+
}
|
|
121
|
+
});
|
|
122
|
+
container.load(...modules);
|
|
123
|
+
return container;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
/**
|
|
127
|
+
* Can be passed to the {@link createDiagramContainer} utility function to exclude (i.e. not load) a specific default module.
|
|
128
|
+
*/
|
|
129
|
+
export interface ExcludeDescription {
|
|
130
|
+
exclude: ContainerModule;
|
|
131
|
+
}
|
|
87
132
|
|
|
88
133
|
/**
|
|
89
134
|
* Creates a GLSP Client container with the GLSP default modules and the specified custom `modules`.
|
|
@@ -105,9 +150,8 @@ export const DEFAULT_MODULES = [
|
|
|
105
150
|
* ```
|
|
106
151
|
* @param modules Custom modules to be loaded in addition to the default modules.
|
|
107
152
|
* @returns The created container.
|
|
153
|
+
* @deprecated Please use `createDiagramContainer` from `@eclipse-glsp/client` instead
|
|
108
154
|
*/
|
|
109
155
|
export function createClientContainer(...modules: ContainerModule[]): Container {
|
|
110
|
-
|
|
111
|
-
container.load(...DEFAULT_MODULES, ...modules);
|
|
112
|
-
return container;
|
|
156
|
+
return createDiagramContainer(...modules);
|
|
113
157
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2020 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2020-2022 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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2019-2021 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
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2023 EclipseSource and others.
|
|
3
|
+
*
|
|
4
|
+
* This program and the accompanying materials are made available under the
|
|
5
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
6
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
7
|
+
*
|
|
8
|
+
* This Source Code may also be made available under the following Secondary
|
|
9
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
10
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
11
|
+
* with the GNU Classpath Exception which is available at
|
|
12
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
13
|
+
*
|
|
14
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
|
+
********************************************************************************/
|
|
16
|
+
import { ContainerModule } from 'inversify';
|
|
17
|
+
import { configureCommand, ExportSvgCommand, ExportSvgKeyListener, ExportSvgPostprocessor, TYPES } from 'sprotty';
|
|
18
|
+
import { GLSPSvgExporter } from './glsp-svg-exporter';
|
|
19
|
+
|
|
20
|
+
const glspExportSvgModule = new ContainerModule((bind, _unbind, isBound) => {
|
|
21
|
+
bind(ExportSvgKeyListener).toSelf().inSingletonScope();
|
|
22
|
+
bind(TYPES.KeyListener).toService(ExportSvgKeyListener);
|
|
23
|
+
bind(TYPES.HiddenVNodePostprocessor).to(ExportSvgPostprocessor).inSingletonScope();
|
|
24
|
+
configureCommand({ bind, isBound }, ExportSvgCommand);
|
|
25
|
+
bind(TYPES.SvgExporter).to(GLSPSvgExporter).inSingletonScope();
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export default glspExportSvgModule;
|
|
@@ -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
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
SParentElement,
|
|
31
31
|
TYPES
|
|
32
32
|
} from 'sprotty';
|
|
33
|
-
import {
|
|
33
|
+
import { createDiagramContainer } from '../../../base/container-modules';
|
|
34
34
|
import { GLSPGraph } from '../../../lib/model';
|
|
35
35
|
import { StatefulLayouterExt } from '../layouter';
|
|
36
36
|
|
|
@@ -117,6 +117,6 @@ export function layout(
|
|
|
117
117
|
export function setupLayoutRegistry(): LayoutRegistry {
|
|
118
118
|
// Generic Test setup
|
|
119
119
|
// create client container that registers all default modules including the layoutModule
|
|
120
|
-
const layoutContainer =
|
|
120
|
+
const layoutContainer = createDiagramContainer();
|
|
121
121
|
return layoutContainer.get<LayoutRegistry>(TYPES.LayoutRegistry);
|
|
122
122
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2019-2021 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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2019-2022 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
|
|
@@ -32,7 +32,6 @@ import {
|
|
|
32
32
|
PolylineEdgeRouter,
|
|
33
33
|
SConnectableElement,
|
|
34
34
|
SModelElement,
|
|
35
|
-
SModelRoot,
|
|
36
35
|
SRoutingHandle,
|
|
37
36
|
SwitchEditModeAction,
|
|
38
37
|
SwitchEditModeCommand,
|
|
@@ -326,14 +325,7 @@ export class FeedbackEdgeRouteMovingMouseListener extends MouseListener {
|
|
|
326
325
|
return undefined;
|
|
327
326
|
}
|
|
328
327
|
|
|
329
|
-
override
|
|
330
|
-
if (target instanceof SModelRoot && event.buttons === 0) {
|
|
331
|
-
this.mouseUp(target, event);
|
|
332
|
-
}
|
|
333
|
-
return [];
|
|
334
|
-
}
|
|
335
|
-
|
|
336
|
-
override mouseUp(_target: SModelElement, event: MouseEvent): Action[] {
|
|
328
|
+
override mouseUp(_target: SModelElement, _event: MouseEvent): Action[] {
|
|
337
329
|
this.pointPositionUpdater.resetPosition();
|
|
338
330
|
return [];
|
|
339
331
|
}
|
|
@@ -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
|
|
@@ -18,7 +18,6 @@ import { ContainerModule, interfaces } from 'inversify';
|
|
|
18
18
|
import { configureActionHandler, configureModelElement, ManhattanEdgeRouter } from 'sprotty';
|
|
19
19
|
import { FocusStateChangedAction } from '../../base/actions/focus-change-action';
|
|
20
20
|
import { TYPES } from '../../base/types';
|
|
21
|
-
import { GLSPSvgExporter } from '../export/glsp-svg-exporter';
|
|
22
21
|
import { MARQUEE } from '../tool-feedback/marquee-tool-feedback';
|
|
23
22
|
import { ChangeBoundsTool } from './change-bounds-tool';
|
|
24
23
|
import { DelKeyDeleteTool, MouseDeleteTool } from './delete-tool';
|
|
@@ -53,9 +52,6 @@ export const toolsModule = new ContainerModule((bind, _unbind, isBound, rebind)
|
|
|
53
52
|
configureActionHandler({ bind, isBound }, TriggerNodeCreationAction.KIND, NodeCreationTool);
|
|
54
53
|
configureActionHandler({ bind, isBound }, TriggerEdgeCreationAction.KIND, EdgeCreationTool);
|
|
55
54
|
|
|
56
|
-
bind(GLSPSvgExporter).toSelf().inSingletonScope();
|
|
57
|
-
rebind(TYPES.SvgExporter).toService(GLSPSvgExporter);
|
|
58
|
-
|
|
59
55
|
bind(GSLPManhattanEdgeRouter).toSelf().inSingletonScope();
|
|
60
56
|
rebind(ManhattanEdgeRouter).toService(GSLPManhattanEdgeRouter);
|
|
61
57
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019-
|
|
2
|
+
* Copyright (c) 2019-2022 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
|
package/src/lib/model.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
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { SModelElementSchema } from '@eclipse-glsp/protocol';
|
|
17
|
-
import { exportFeature, SGraph, SModelElement, viewportFeature } from 'sprotty';
|
|
16
|
+
import { Bounds, isBounds, Point, SModelElementSchema } from '@eclipse-glsp/protocol';
|
|
17
|
+
import { exportFeature, getRouteBounds, SEdge, SGraph, SModelElement, viewportFeature } from 'sprotty';
|
|
18
18
|
import { Containable, containerFeature } from '../features/hints/model';
|
|
19
19
|
import { Saveable, saveFeature } from '../features/save/model';
|
|
20
20
|
|
|
@@ -25,3 +25,35 @@ export class GLSPGraph extends SGraph implements Saveable, Containable {
|
|
|
25
25
|
return true;
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
|
+
|
|
29
|
+
export class GEdge extends SEdge {
|
|
30
|
+
override localToParent(point: Point | Bounds): Bounds {
|
|
31
|
+
const bounds = getRouteBounds(this.routingPoints);
|
|
32
|
+
const result = {
|
|
33
|
+
x: point.x + bounds.x,
|
|
34
|
+
y: point.y + bounds.y,
|
|
35
|
+
width: -1,
|
|
36
|
+
height: -1
|
|
37
|
+
};
|
|
38
|
+
if (isBounds(point)) {
|
|
39
|
+
result.width = point.width;
|
|
40
|
+
result.height = point.height;
|
|
41
|
+
}
|
|
42
|
+
return result;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
override parentToLocal(point: Point | Bounds): Bounds {
|
|
46
|
+
const bounds = getRouteBounds(this.routingPoints);
|
|
47
|
+
const result = {
|
|
48
|
+
x: point.x - bounds.x,
|
|
49
|
+
y: point.y - bounds.y,
|
|
50
|
+
width: -1,
|
|
51
|
+
height: -1
|
|
52
|
+
};
|
|
53
|
+
if (isBounds(point)) {
|
|
54
|
+
result.width = point.width;
|
|
55
|
+
result.height = point.height;
|
|
56
|
+
}
|
|
57
|
+
return result;
|
|
58
|
+
}
|
|
59
|
+
}
|
package/src/utils/html-utils.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2019 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2019-2020 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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2021 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2021-2022 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
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2017-
|
|
2
|
+
* Copyright (c) 2017-2022 TypeFox 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
|
package/src/views/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c)
|
|
2
|
+
* Copyright (c) 2019-2022 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
|