@eclipse-glsp/sprotty 2.5.0-next.427 → 2.5.0-next.429
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/api-override.d.ts +49 -2
- package/lib/api-override.d.ts.map +1 -1
- package/lib/api-override.js.map +1 -1
- package/lib/feature-modules.d.ts +1 -2
- package/lib/feature-modules.d.ts.map +1 -1
- package/lib/feature-modules.js +4 -6
- package/lib/feature-modules.js.map +1 -1
- package/lib/index.d.ts +2 -1
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +2 -1
- package/lib/index.js.map +1 -1
- package/lib/layout-override.d.ts +44 -0
- package/lib/layout-override.d.ts.map +1 -0
- package/lib/layout-override.js +92 -0
- package/lib/layout-override.js.map +1 -0
- package/lib/re-exports.d.ts +6 -7
- package/lib/re-exports.d.ts.map +1 -1
- package/lib/re-exports.js +12 -12
- package/lib/re-exports.js.map +1 -1
- package/lib/types.d.ts +1 -0
- package/lib/types.d.ts.map +1 -1
- package/lib/types.js +1 -0
- package/lib/types.js.map +1 -1
- package/package.json +3 -3
- package/src/api-override.ts +56 -1
- package/src/feature-modules.ts +1 -3
- package/src/index.ts +2 -1
- package/src/layout-override.ts +77 -0
- package/src/re-exports.ts +8 -8
- package/src/types.ts +1 -0
package/lib/api-override.d.ts
CHANGED
|
@@ -13,9 +13,9 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Action, LabeledAction, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
16
|
+
import { Action, Event, LabeledAction, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
17
17
|
import { VNode } from 'snabbdom';
|
|
18
|
-
import { SButtonImpl as GButton, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, ICommand, IActionDispatcher as SIActionDispatcher, IActionHandler as SIActionHandler, IButtonHandler as SIButtonHandler, ICommandPaletteActionProvider as SICommandPaletteActionProvider, IContextMenuItemProvider as SIContextMenuItemProvider, IVNodePostprocessor as SIVNodePostprocessor, KeyListener as SKeyListener, MouseListener as SMouseListener } from 'sprotty';
|
|
18
|
+
import { SButtonImpl as GButton, SModelElementImpl as GModelElement, SModelRootImpl as GModelRoot, ICommand, IActionDispatcher as SIActionDispatcher, IActionHandler as SIActionHandler, IButtonHandler as SIButtonHandler, ICommandPaletteActionProvider as SICommandPaletteActionProvider, ICommandStack as SICommandStack, IContextMenuItemProvider as SIContextMenuItemProvider, IVNodePostprocessor as SIVNodePostprocessor, KeyListener as SKeyListener, MouseListener as SMouseListener } from 'sprotty';
|
|
19
19
|
/**
|
|
20
20
|
* An action handler accepts an action and reacts to it by returning either a command to be
|
|
21
21
|
* executed, or another action to be dispatched.
|
|
@@ -114,4 +114,51 @@ export interface IActionDispatcher extends SIActionDispatcher {
|
|
|
114
114
|
dispatchAfterNextUpdate(...actions: Action[]): void;
|
|
115
115
|
}
|
|
116
116
|
export type IActionDispatcherProvider = () => Promise<IActionDispatcher>;
|
|
117
|
+
/**
|
|
118
|
+
* Data structure that is passed to the `onCommandExecuted` event.
|
|
119
|
+
*/
|
|
120
|
+
export interface CommandExecutionData {
|
|
121
|
+
/** The command that has been executed successfully */
|
|
122
|
+
command: ICommand;
|
|
123
|
+
/** The new model root after the command execution */
|
|
124
|
+
newRoot: GModelRoot;
|
|
125
|
+
}
|
|
126
|
+
export interface ICommandStack extends SICommandStack {
|
|
127
|
+
/**
|
|
128
|
+
* Executes the given command on the current model and returns a
|
|
129
|
+
* Promise for the new result.
|
|
130
|
+
*
|
|
131
|
+
* Unless it is a special command, it is pushed to the undo stack
|
|
132
|
+
* such that it can be rolled back later and the redo stack is
|
|
133
|
+
* cleared.
|
|
134
|
+
*/
|
|
135
|
+
execute(command: ICommand): Promise<GModelRoot>;
|
|
136
|
+
/**
|
|
137
|
+
* Executes all of the given commands. As opposed to calling
|
|
138
|
+
* execute() multiple times, the Viewer is only updated once after
|
|
139
|
+
* the last command has been executed.
|
|
140
|
+
*/
|
|
141
|
+
executeAll(commands: ICommand[]): Promise<GModelRoot>;
|
|
142
|
+
/**
|
|
143
|
+
* Client-side undo/redo is not supported in GLSP. The server is responsible for handling undo/redo requests.
|
|
144
|
+
* This method is required to maintain compatibility with the sprotty API.
|
|
145
|
+
* Implementation should always be a no-op that returns the current model.
|
|
146
|
+
*/
|
|
147
|
+
undo(): Promise<GModelRoot>;
|
|
148
|
+
/**
|
|
149
|
+
* Client-side undo/redo is not supported in GLSP. The server is responsible for handling undo/redo requests.
|
|
150
|
+
* This method is required to maintain compatibility with the sprotty API.
|
|
151
|
+
* Implementation should always be a no-op that returns the current model.
|
|
152
|
+
*/
|
|
153
|
+
redo(): Promise<GModelRoot>;
|
|
154
|
+
/**
|
|
155
|
+
* Event fired after a command has been successfully executed on the stack. (i.e. after the model has been updated).
|
|
156
|
+
*/
|
|
157
|
+
onCommandExecuted: Event<CommandExecutionData>;
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* As part of the event cylce, the ICommandStack should be injected
|
|
161
|
+
* using a provider to avoid cyclic injection dependencies.
|
|
162
|
+
*/
|
|
163
|
+
export type CommandStackProvider = () => Promise<ICommandStack>;
|
|
117
164
|
//# sourceMappingURL=api-override.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-override.d.ts","sourceRoot":"","sources":["../src/api-override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"api-override.d.ts","sourceRoot":"","sources":["../src/api-override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,aAAa,EAAE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,CAAC;IAC5B;;OAEG;IACH,4BAA4B,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;IAEzD;;OAEG;IACH,oBAAoB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IAEtC;;;;OAIG;IACH,uBAAuB,CAAC,GAAG,OAAO,EAAE,MAAM,EAAE,GAAG,IAAI,CAAC;CACvD;AAED,MAAM,MAAM,yBAAyB,GAAG,MAAM,OAAO,CAAC,iBAAiB,CAAC,CAAC;AAEzE;;GAEG;AACH,MAAM,WAAW,oBAAoB;IACjC,sDAAsD;IACtD,OAAO,EAAE,QAAQ,CAAC;IAClB,qDAAqD;IACrD,OAAO,EAAE,UAAU,CAAC;CACvB;AAED,MAAM,WAAW,aAAc,SAAQ,cAAc;IACjD;;;;;;;OAOG;IACH,OAAO,CAAC,OAAO,EAAE,QAAQ,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAEhD;;;;OAIG;IACH,UAAU,CAAC,QAAQ,EAAE,QAAQ,EAAE,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC;IAEtD;;;;OAIG;IACH,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5B;;;;OAIG;IACH,IAAI,IAAI,OAAO,CAAC,UAAU,CAAC,CAAC;IAE5B;;OAEG;IACH,iBAAiB,EAAE,KAAK,CAAC,oBAAoB,CAAC,CAAC;CAClD;AAED;;;GAGG;AACH,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,CAAC,aAAa,CAAC,CAAC"}
|
package/lib/api-override.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"api-override.js","sourceRoot":"","sources":["../src/api-override.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAEvC,
|
|
1
|
+
{"version":3,"file":"api-override.js","sourceRoot":"","sources":["../src/api-override.ts"],"names":[],"mappings":";;;;;;;;;AAgBA,yCAAuC;AAEvC,qCAciB;AAiCV,IAAM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CAAC,KAAY,EAAE,OAAsB;QAClD,OAAO,KAAK,CAAC;IACjB,CAAC;CACJ,CAAA;AApDY,sCAAa;wBAAb,aAAa;IADzB,IAAA,sBAAU,GAAE;GACA,aAAa,CAoDzB"}
|
package/lib/feature-modules.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023-
|
|
2
|
+
* Copyright (c) 2023-2025 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,7 +25,6 @@ export declare const modelSourceModule: FeatureModule;
|
|
|
25
25
|
export declare const moveModule: FeatureModule;
|
|
26
26
|
export declare const openModule: FeatureModule;
|
|
27
27
|
export declare const updateModule: FeatureModule;
|
|
28
|
-
export declare const zorderModule: FeatureModule;
|
|
29
28
|
export declare const edgeJunctionModule: FeatureModule;
|
|
30
29
|
export { sprottyDefaultModule };
|
|
31
30
|
//# sourceMappingURL=feature-modules.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-modules.d.ts","sourceRoot":"","sources":["../src/feature-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,oBAAoB,MAAM,4BAA4B,CAAC;
|
|
1
|
+
{"version":3,"file":"feature-modules.d.ts","sourceRoot":"","sources":["../src/feature-modules.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAE,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAC9D,OAAO,oBAAoB,MAAM,4BAA4B,CAAC;AAa9D,eAAO,MAAM,YAAY,eAAmF,CAAC;AAC7G,eAAO,MAAM,cAAc,eAAuF,CAAC;AACnH,eAAO,MAAM,sBAAsB,eAAuG,CAAC;AAC3I,eAAO,MAAM,gBAAgB,eAA2F,CAAC;AACzH,eAAO,MAAM,YAAY,eAAmF,CAAC;AAC7G,eAAO,MAAM,UAAU,eAA+E,CAAC;AACvG,eAAO,MAAM,iBAAiB,eAA6F,CAAC;AAC5H,eAAO,MAAM,UAAU,eAA+E,CAAC;AACvG,eAAO,MAAM,UAAU,eAA+E,CAAC;AACvG,eAAO,MAAM,YAAY,eAAmF,CAAC;AAC7G,eAAO,MAAM,kBAAkB,eAA+F,CAAC;AAE/H,OAAO,EAAE,oBAAoB,EAAE,CAAC"}
|
package/lib/feature-modules.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.sprottyDefaultModule = exports.edgeJunctionModule = exports.
|
|
3
|
+
exports.sprottyDefaultModule = exports.edgeJunctionModule = exports.updateModule = exports.openModule = exports.moveModule = exports.modelSourceModule = exports.fadeModule = exports.expandModule = exports.edgeLayoutModule = exports.edgeIntersectionModule = exports.edgeEditModule = exports.buttonModule = void 0;
|
|
4
4
|
/********************************************************************************
|
|
5
|
-
* Copyright (c) 2023-
|
|
5
|
+
* Copyright (c) 2023-2025 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
|
|
@@ -30,18 +30,16 @@ const di_config_8 = require("sprotty/lib/features/fade/di.config");
|
|
|
30
30
|
const di_config_9 = require("sprotty/lib/features/move/di.config");
|
|
31
31
|
const di_config_10 = require("sprotty/lib/features/open/di.config");
|
|
32
32
|
const di_config_11 = require("sprotty/lib/features/update/di.config");
|
|
33
|
-
const di_config_12 = require("sprotty/lib/
|
|
34
|
-
const di_config_13 = require("sprotty/lib/model-source/di.config");
|
|
33
|
+
const di_config_12 = require("sprotty/lib/model-source/di.config");
|
|
35
34
|
exports.buttonModule = new di_1.FeatureModule(di_config_2.default.registry, { featureId: Symbol('button') });
|
|
36
35
|
exports.edgeEditModule = new di_1.FeatureModule(di_config_6.edgeEditModule.registry, { featureId: Symbol('edgeEdit') });
|
|
37
36
|
exports.edgeIntersectionModule = new di_1.FeatureModule(di_config_3.default.registry, { featureId: Symbol('edgeIntersection') });
|
|
38
37
|
exports.edgeLayoutModule = new di_1.FeatureModule(di_config_5.default.registry, { featureId: Symbol('edgeLayout') });
|
|
39
38
|
exports.expandModule = new di_1.FeatureModule(di_config_7.default.registry, { featureId: Symbol('expand') });
|
|
40
39
|
exports.fadeModule = new di_1.FeatureModule(di_config_8.default.registry, { featureId: Symbol('fade') });
|
|
41
|
-
exports.modelSourceModule = new di_1.FeatureModule(
|
|
40
|
+
exports.modelSourceModule = new di_1.FeatureModule(di_config_12.default.registry, { featureId: Symbol('modelSource') });
|
|
42
41
|
exports.moveModule = new di_1.FeatureModule(di_config_9.default.registry, { featureId: Symbol('move') });
|
|
43
42
|
exports.openModule = new di_1.FeatureModule(di_config_10.default.registry, { featureId: Symbol('open') });
|
|
44
43
|
exports.updateModule = new di_1.FeatureModule(di_config_11.default.registry, { featureId: Symbol('update') });
|
|
45
|
-
exports.zorderModule = new di_1.FeatureModule(di_config_12.default.registry, { featureId: Symbol('zorder') });
|
|
46
44
|
exports.edgeJunctionModule = new di_1.FeatureModule(di_config_4.default.registry, { featureId: Symbol('edgeJunction') });
|
|
47
45
|
//# sourceMappingURL=feature-modules.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"feature-modules.js","sourceRoot":"","sources":["../src/feature-modules.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,0CAA0C;AAC1C,sDAA8D;AAC9D,0DAA8D;
|
|
1
|
+
{"version":3,"file":"feature-modules.js","sourceRoot":"","sources":["../src/feature-modules.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,0CAA0C;AAC1C,sDAA8D;AAC9D,0DAA8D;AAyBrD,+BAzBF,mBAAoB,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CAAC;AAC1F,QAAA,UAAU,GAAG,IAAI,kBAAa,CAAC,oBAAiB,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAC1F,QAAA,YAAY,GAAG,IAAI,kBAAa,CAAC,oBAAmB,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAChG,QAAA,kBAAkB,GAAG,IAAI,kBAAa,CAAC,mBAAyB,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,cAAc,CAAC,EAAE,CAAC,CAAC"}
|
package/lib/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2024 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2024-2025 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
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
export * from './api-override';
|
|
17
17
|
export * from './feature-modules';
|
|
18
|
+
export * from './layout-override';
|
|
18
19
|
export * from './re-exports';
|
|
19
20
|
export * from './svg-views-override';
|
|
20
21
|
export * from './types';
|
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,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAClF,cAAc,gBAAgB,CAAC;AAC/B,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,sBAAsB,CAAC;AACrC,cAAc,SAAS,CAAC"}
|
package/lib/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) 2024 EclipseSource and others.
|
|
18
|
+
* Copyright (c) 2024-2025 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
|
|
@@ -31,6 +31,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
31
31
|
********************************************************************************/
|
|
32
32
|
__exportStar(require("./api-override"), exports);
|
|
33
33
|
__exportStar(require("./feature-modules"), exports);
|
|
34
|
+
__exportStar(require("./layout-override"), exports);
|
|
34
35
|
__exportStar(require("./re-exports"), exports);
|
|
35
36
|
__exportStar(require("./svg-views-override"), exports);
|
|
36
37
|
__exportStar(require("./types"), 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,iDAA+B;AAC/B,oDAAkC;AAClC,+CAA6B;AAC7B,uDAAqC;AACrC,0CAAwB"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,iDAA+B;AAC/B,oDAAkC;AAClC,oDAAkC;AAClC,+CAA6B;AAC7B,uDAAqC;AACrC,0CAAwB"}
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2025 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 { interfaces } from 'inversify';
|
|
17
|
+
import { ILogger, InstanceRegistry, HBoxLayouter as SHBoxLayouter, ILayout as SLayout, LayoutRegistration as SLayoutRegistration, VBoxLayouter as SVBoxLayouter } from 'sprotty';
|
|
18
|
+
import { AbstractLayout as SAbstractLayout } from 'sprotty/lib/features/bounds/abstract-layout';
|
|
19
|
+
import { AbstractLayoutOptions } from './re-exports';
|
|
20
|
+
export interface ILayout extends SLayout {
|
|
21
|
+
/** Flag to indicate whether the layouting of the children is independant from their order. */
|
|
22
|
+
orderAgnostic?: boolean;
|
|
23
|
+
}
|
|
24
|
+
export interface LayoutRegistration extends SLayoutRegistration {
|
|
25
|
+
factory: () => ILayout;
|
|
26
|
+
}
|
|
27
|
+
export declare class LayoutRegistry extends InstanceRegistry<ILayout> {
|
|
28
|
+
logger: ILogger;
|
|
29
|
+
constructor(layouts?: LayoutRegistration[]);
|
|
30
|
+
}
|
|
31
|
+
export declare function configureLayout(context: {
|
|
32
|
+
bind: interfaces.Bind;
|
|
33
|
+
isBound: interfaces.IsBound;
|
|
34
|
+
}, kind: string, constr: interfaces.ServiceIdentifier<ILayout>): void;
|
|
35
|
+
export declare abstract class AbstractLayout<T extends AbstractLayoutOptions> extends SAbstractLayout<T> implements ILayout {
|
|
36
|
+
orderAgnostic?: boolean;
|
|
37
|
+
}
|
|
38
|
+
export declare class VBoxLayouter extends SVBoxLayouter implements ILayout {
|
|
39
|
+
orderAgnostic?: boolean;
|
|
40
|
+
}
|
|
41
|
+
export declare class HBoxLayouter extends SHBoxLayouter implements ILayout {
|
|
42
|
+
orderAgnostic?: boolean;
|
|
43
|
+
}
|
|
44
|
+
//# sourceMappingURL=layout-override.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-override.d.ts","sourceRoot":"","sources":["../src/layout-override.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF,OAAO,EAAsB,UAAU,EAAyB,MAAM,WAAW,CAAC;AAClF,OAAO,EACH,OAAO,EACP,gBAAgB,EAChB,YAAY,IAAI,aAAa,EAC7B,OAAO,IAAI,OAAO,EAClB,kBAAkB,IAAI,mBAAmB,EACzC,YAAY,IAAI,aAAa,EAGhC,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,cAAc,IAAI,eAAe,EAAE,MAAM,6CAA6C,CAAC;AAChG,OAAO,EAAE,qBAAqB,EAAE,MAAM,cAAc,CAAC;AAErD,MAAM,WAAW,OAAQ,SAAQ,OAAO;IACpC,8FAA8F;IAC9F,aAAa,CAAC,EAAE,OAAO,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAmB,SAAQ,mBAAmB;IAC3D,OAAO,EAAE,MAAM,OAAO,CAAC;CAC1B;AAED,qBACa,cAAe,SAAQ,gBAAgB,CAAC,OAAO,CAAC;IAClC,MAAM,EAAE,OAAO,CAAC;gBAEwB,OAAO,GAAE,kBAAkB,EAAO;CAUpG;AAED,wBAAgB,eAAe,CAC3B,OAAO,EAAE;IAAE,IAAI,EAAE,UAAU,CAAC,IAAI,CAAC;IAAC,OAAO,EAAE,UAAU,CAAC,OAAO,CAAA;CAAE,EAC/D,IAAI,EAAE,MAAM,EACZ,MAAM,EAAE,UAAU,CAAC,iBAAiB,CAAC,OAAO,CAAC,GAC9C,IAAI,CAEN;AAED,8BACsB,cAAc,CAAC,CAAC,SAAS,qBAAqB,CAAE,SAAQ,eAAe,CAAC,CAAC,CAAE,YAAW,OAAO;IAC/G,aAAa,CAAC,EAAE,OAAO,CAAQ;CAClC;AAED,qBACa,YAAa,SAAQ,aAAc,YAAW,OAAO;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAS;CACnC;AAED,qBACa,YAAa,SAAQ,aAAc,YAAW,OAAO;IAC9D,aAAa,CAAC,EAAE,OAAO,CAAS;CACnC"}
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/********************************************************************************
|
|
3
|
+
* Copyright (c) 2025 EclipseSource and others.
|
|
4
|
+
*
|
|
5
|
+
* This program and the accompanying materials are made available under the
|
|
6
|
+
* terms of the Eclipse Public License v. 2.0 which is available at
|
|
7
|
+
* http://www.eclipse.org/legal/epl-2.0.
|
|
8
|
+
*
|
|
9
|
+
* This Source Code may also be made available under the following Secondary
|
|
10
|
+
* Licenses when the conditions for such availability set forth in the Eclipse
|
|
11
|
+
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
|
|
12
|
+
* with the GNU Classpath Exception which is available at
|
|
13
|
+
* https://www.gnu.org/software/classpath/license.html.
|
|
14
|
+
*
|
|
15
|
+
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
16
|
+
********************************************************************************/
|
|
17
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
18
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
19
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
20
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
21
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
22
|
+
};
|
|
23
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
24
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
25
|
+
};
|
|
26
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
27
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
28
|
+
};
|
|
29
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
30
|
+
exports.HBoxLayouter = exports.VBoxLayouter = exports.AbstractLayout = exports.configureLayout = exports.LayoutRegistry = void 0;
|
|
31
|
+
const inversify_1 = require("inversify");
|
|
32
|
+
const sprotty_1 = require("sprotty");
|
|
33
|
+
const abstract_layout_1 = require("sprotty/lib/features/bounds/abstract-layout");
|
|
34
|
+
let LayoutRegistry = class LayoutRegistry extends sprotty_1.InstanceRegistry {
|
|
35
|
+
constructor(layouts = []) {
|
|
36
|
+
super();
|
|
37
|
+
layouts.forEach(layout => {
|
|
38
|
+
if (this.hasKey(layout.layoutKind)) {
|
|
39
|
+
this.logger.warn('Layout kind is already defined: ', layout.layoutKind);
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
this.register(layout.layoutKind, layout.factory());
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
};
|
|
47
|
+
exports.LayoutRegistry = LayoutRegistry;
|
|
48
|
+
__decorate([
|
|
49
|
+
(0, inversify_1.inject)(sprotty_1.TYPES.ILogger),
|
|
50
|
+
__metadata("design:type", Object)
|
|
51
|
+
], LayoutRegistry.prototype, "logger", void 0);
|
|
52
|
+
exports.LayoutRegistry = LayoutRegistry = __decorate([
|
|
53
|
+
(0, inversify_1.injectable)(),
|
|
54
|
+
__param(0, (0, inversify_1.multiInject)(sprotty_1.TYPES.LayoutRegistration)),
|
|
55
|
+
__param(0, (0, inversify_1.optional)()),
|
|
56
|
+
__metadata("design:paramtypes", [Array])
|
|
57
|
+
], LayoutRegistry);
|
|
58
|
+
function configureLayout(context, kind, constr) {
|
|
59
|
+
return (0, sprotty_1.configureLayout)(context, kind, constr);
|
|
60
|
+
}
|
|
61
|
+
exports.configureLayout = configureLayout;
|
|
62
|
+
let AbstractLayout = class AbstractLayout extends abstract_layout_1.AbstractLayout {
|
|
63
|
+
constructor() {
|
|
64
|
+
super(...arguments);
|
|
65
|
+
this.orderAgnostic = true;
|
|
66
|
+
}
|
|
67
|
+
};
|
|
68
|
+
exports.AbstractLayout = AbstractLayout;
|
|
69
|
+
exports.AbstractLayout = AbstractLayout = __decorate([
|
|
70
|
+
(0, inversify_1.injectable)()
|
|
71
|
+
], AbstractLayout);
|
|
72
|
+
let VBoxLayouter = class VBoxLayouter extends sprotty_1.VBoxLayouter {
|
|
73
|
+
constructor() {
|
|
74
|
+
super(...arguments);
|
|
75
|
+
this.orderAgnostic = false;
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
exports.VBoxLayouter = VBoxLayouter;
|
|
79
|
+
exports.VBoxLayouter = VBoxLayouter = __decorate([
|
|
80
|
+
(0, inversify_1.injectable)()
|
|
81
|
+
], VBoxLayouter);
|
|
82
|
+
let HBoxLayouter = class HBoxLayouter extends sprotty_1.HBoxLayouter {
|
|
83
|
+
constructor() {
|
|
84
|
+
super(...arguments);
|
|
85
|
+
this.orderAgnostic = false;
|
|
86
|
+
}
|
|
87
|
+
};
|
|
88
|
+
exports.HBoxLayouter = HBoxLayouter;
|
|
89
|
+
exports.HBoxLayouter = HBoxLayouter = __decorate([
|
|
90
|
+
(0, inversify_1.injectable)()
|
|
91
|
+
], HBoxLayouter);
|
|
92
|
+
//# sourceMappingURL=layout-override.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"layout-override.js","sourceRoot":"","sources":["../src/layout-override.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;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AAC;CAAA,CAAA;AAFY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,sBAAU,GAAE;GACA,YAAY,CAExB;AAGM,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,sBAAa;IAAxC;;QACH,kBAAa,GAAa,KAAK,CAAC;IACpC,CAAC;CAAA,CAAA;AAFY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,sBAAU,GAAE;GACA,YAAY,CAExB"}
|
package/lib/re-exports.d.ts
CHANGED
|
@@ -26,7 +26,7 @@ export * from 'sprotty/lib/base/animations/animation-frame-syncer';
|
|
|
26
26
|
export * from 'sprotty/lib/base/animations/easing';
|
|
27
27
|
export * from 'sprotty/lib/base/commands/command';
|
|
28
28
|
export * from 'sprotty/lib/base/commands/command-registration';
|
|
29
|
-
export
|
|
29
|
+
export { CommandStack, CommandStackState } from 'sprotty/lib/base/commands/command-stack';
|
|
30
30
|
export * from 'sprotty/lib/base/commands/command-stack-options';
|
|
31
31
|
export * from 'sprotty/lib/base/features/initialize-canvas';
|
|
32
32
|
export * from 'sprotty/lib/base/features/set-model';
|
|
@@ -45,14 +45,13 @@ export * from 'sprotty/lib/base/views/viewer-cache';
|
|
|
45
45
|
export * from 'sprotty/lib/base/views/viewer-options';
|
|
46
46
|
export { FocusFixPostprocessor } from 'sprotty/lib/base/views/vnode-postprocessor';
|
|
47
47
|
export * from 'sprotty/lib/base/views/vnode-utils';
|
|
48
|
-
export * from 'sprotty/lib/features/bounds/abstract-layout';
|
|
49
48
|
export * from 'sprotty/lib/features/bounds/bounds-manipulation';
|
|
50
|
-
export
|
|
49
|
+
export { HBoxLayoutOptions } from 'sprotty/lib/features/bounds/hbox-layout';
|
|
51
50
|
export * from 'sprotty/lib/features/bounds/hidden-bounds-updater';
|
|
52
|
-
export
|
|
51
|
+
export { Layouter, StatefulLayouter } from 'sprotty/lib/features/bounds/layout';
|
|
53
52
|
export { AbstractLayoutOptions } from 'sprotty/lib/features/bounds/layout-options';
|
|
54
53
|
export { InternalBoundsAware as BoundsAware, SShapeElementImpl as GShapeElement, InternalLayoutContainer as LayoutContainer, InternalLayoutableChild as LayoutableChild, ModelLayoutOptions, alignFeature, boundsFeature, findChildrenAtPosition, getAbsoluteBounds, getAbsoluteClientBounds, isAlignable, isBoundsAware, isLayoutContainer, isLayoutableChild, isSizeable, layoutContainerFeature, layoutableChildFeature } from 'sprotty/lib/features/bounds/model';
|
|
55
|
-
export
|
|
54
|
+
export { VBoxLayoutOptions } from 'sprotty/lib/features/bounds/vbox-layout';
|
|
56
55
|
export * from 'sprotty/lib/features/bounds/views';
|
|
57
56
|
export { ButtonHandlerRegistry, IButtonHandlerRegistration, configureButtonHandler } from 'sprotty/lib/features/button/button-handler';
|
|
58
57
|
export { SButtonImpl as GButton } from 'sprotty/lib/features/button/model';
|
|
@@ -115,9 +114,9 @@ export * from 'sprotty/lib/features/viewport/scroll';
|
|
|
115
114
|
export * from 'sprotty/lib/features/viewport/viewport';
|
|
116
115
|
export { ViewportRootElementImpl as GViewportRootElement } from 'sprotty/lib/features/viewport/viewport-root';
|
|
117
116
|
export * from 'sprotty/lib/features/viewport/zoom';
|
|
118
|
-
export
|
|
117
|
+
export { BringToFrontCommand as SprottyBringToFrontCommand, ZOrderElement } from 'sprotty/lib/features/zorder/zorder';
|
|
119
118
|
export { SCompartmentImpl as GCompartment, SGraphIndex as GGraphIndex, SLabelImpl as GLabel, SNodeImpl as GNode, SPortImpl as GPort, SEdgeImpl, SGraphImpl } from 'sprotty/lib/graph/sgraph';
|
|
120
|
-
export { BezierCurveEdgeView, SBezierControlHandleView as GBezierControlHandleView, SBezierCreateHandleView as GBezierCreateHandleView, SCompartmentView as GCompartmentView, SLabelView as GLabelView,
|
|
119
|
+
export { BezierCurveEdgeView, SBezierControlHandleView as GBezierControlHandleView, SBezierCreateHandleView as GBezierCreateHandleView, SCompartmentView as GCompartmentView, SLabelView as GLabelView, JumpingPolylineEdgeView, PolylineEdgeView, PolylineEdgeViewWithGapsOnIntersections, SGraphView, SRoutingHandleView } from 'sprotty/lib/graph/views';
|
|
121
120
|
export * from 'sprotty/lib/lib/generic-views';
|
|
122
121
|
export * from 'sprotty/lib/lib/html-views';
|
|
123
122
|
export * from 'sprotty/lib/lib/jsx';
|
package/lib/re-exports.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"re-exports.d.ts","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF;;GAEG;AACH,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAU9C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EACH,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,QAAQ,EACX,MAAM,yCAAyC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AAExD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oCAAoC,CAAC;AAEnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gDAAgD,CAAC;
|
|
1
|
+
{"version":3,"file":"re-exports.d.ts","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;kFAckF;AAElF;;GAEG;AACH,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAU9C,OAAO,EAAE,gBAAgB,EAAE,eAAe,EAAE,MAAM,4CAA4C,CAAC;AAC/F,OAAO,EACH,yBAAyB,EACzB,qBAAqB,EACrB,yBAAyB,EACzB,sBAAsB,EACtB,QAAQ,EACX,MAAM,yCAAyC,CAAC;AACjD,cAAc,yCAAyC,CAAC;AAExD,cAAc,uCAAuC,CAAC;AACtD,cAAc,oDAAoD,CAAC;AACnE,cAAc,oCAAoC,CAAC;AAEnD,cAAc,mCAAmC,CAAC;AAClD,cAAc,gDAAgD,CAAC;AAE/D,OAAO,EAAE,Y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C9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,qBAAqB,CAAC;AAEpC,OAAO,EACH,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,wBAAwB,IAAI,qBAAqB,EACjD,YAAY,IAAI,SAAS,EACzB,sBAAsB,IAAI,mBAAmB,EAC7C,4BAA4B,IAAI,yBAAyB,EACzD,eAAe,EACf,eAAe,EAClB,MAAM,uBAAuB,CAAC;AAC/B,cAAc,yBAAyB,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAGjG,cAAc,uCAAuC,CAAC;AAItD,cAAc,kCAAkC,CAAC;AACjD,cAAc,uCAAuC,CAAC;AAItD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,2BAA2B,CAAC;AAC1C,cAAc,4BAA4B,CAAC"}
|
package/lib/re-exports.js
CHANGED
|
@@ -29,9 +29,9 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
29
29
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
30
30
|
};
|
|
31
31
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
exports.SvgViewportView = exports.RectangularNodeView = exports.EmptyGroupView = exports.RectangularPort = exports.RectangularNode = exports.GShapedPreRenderedElement = exports.GPreRenderedElement = exports.GHtmlRoot = exports.GForeignObjectElement = exports.DiamondNode = exports.CircularPort = exports.CircularNode = exports.SGraphView = exports.PolylineEdgeViewWithGapsOnIntersections = exports.PolylineEdgeView = void 0;
|
|
32
|
+
exports.ExportSvgCommand = exports.isExpandable = exports.expandFeature = exports.isEdgeLayoutable = exports.edgeLayoutFeature = exports.checkEdgePlacement = exports.DEFAULT_EDGE_PLACEMENT = exports.DeleteContextMenuItemProvider = exports.ContextMenuProviderRegistry = exports.RevealNamedElementActionProvider = exports.CommandPaletteActionProviderRegistry = exports.GButton = exports.configureButtonHandler = exports.ButtonHandlerRegistry = exports.layoutableChildFeature = exports.layoutContainerFeature = exports.isSizeable = exports.isLayoutableChild = exports.isLayoutContainer = exports.isBoundsAware = exports.isAlignable = exports.getAbsoluteClientBounds = exports.getAbsoluteBounds = exports.findChildrenAtPosition = exports.boundsFeature = exports.alignFeature = exports.GShapeElement = exports.StatefulLayouter = exports.Layouter = exports.FocusFixPostprocessor = exports.PopupMouseTool = exports.MouseTool = exports.MousePositionTracker = exports.KeyTool = exports.createFeatureSet = exports.SModelRegistry = exports.GModelFactory = exports.EMPTY_ROOT = exports.isParent = exports.createRandomId = exports.ModelIndexImpl = exports.GParentElement = exports.GModelRoot = exports.GModelElement = exports.GChildElement = exports.CommandStack = exports.onAction = exports.configureActionHandler = exports.ActionHandlerRegistry = exports.ActionDispatcher = void 0;
|
|
33
|
+
exports.GBezierCreateHandleView = exports.GBezierControlHandleView = exports.BezierCurveEdgeView = exports.SGraphImpl = exports.SEdgeImpl = exports.GPort = exports.GNode = exports.GLabel = exports.GGraphIndex = exports.GCompartment = exports.SprottyBringToFrontCommand = exports.GViewportRootElement = exports.SprottySelectCommand = exports.SprottySelectAllCommand = exports.SelectMouseListener = exports.SelectKeyboardListener = exports.GetSelectionCommand = exports.selectFeature = exports.isSelected = exports.isSelectable = exports.isConnectable = exports.getRouteBounds = exports.getAbsoluteRouteBounds = exports.edgeInProgressTargetHandleID = exports.edgeInProgressID = exports.connectableFeature = exports.GRoutingHandle = exports.GRoutableElement = exports.GDanglingAnchor = exports.GConnectableElement = exports.isProjectable = exports.getProjections = exports.getProjectedBounds = exports.getModelBounds = exports.moveFeature = exports.isMoveable = exports.isLocateable = exports.isDecoration = exports.decorationFeature = exports.SIssueMarkerImpl = exports.GDecoration = exports.popupFeature = exports.isHoverable = exports.hoverFeedbackFeature = exports.hasPopupFeature = exports.isFadeable = exports.fadeFeature = exports.SvgExporter = exports.ExportSvgPostprocessor = exports.ExportSvgKeyListener = void 0;
|
|
34
|
+
exports.SvgViewportView = exports.RectangularNodeView = exports.EmptyGroupView = exports.RectangularPort = exports.RectangularNode = exports.GShapedPreRenderedElement = exports.GPreRenderedElement = exports.GHtmlRoot = exports.GForeignObjectElement = exports.DiamondNode = exports.CircularPort = exports.CircularNode = exports.SRoutingHandleView = exports.SGraphView = exports.PolylineEdgeViewWithGapsOnIntersections = exports.PolylineEdgeView = exports.JumpingPolylineEdgeView = exports.GLabelView = exports.GCompartmentView = void 0;
|
|
35
35
|
/**
|
|
36
36
|
* @eclipse-glsp/protocol
|
|
37
37
|
*/
|
|
@@ -56,7 +56,9 @@ __exportStar(require("sprotty/lib/base/animations/animation-frame-syncer"), expo
|
|
|
56
56
|
__exportStar(require("sprotty/lib/base/animations/easing"), exports);
|
|
57
57
|
__exportStar(require("sprotty/lib/base/commands/command"), exports);
|
|
58
58
|
__exportStar(require("sprotty/lib/base/commands/command-registration"), exports);
|
|
59
|
-
|
|
59
|
+
// Exclude ICommandStack and ICommandStackProvider. Exported via api-override module instead
|
|
60
|
+
var command_stack_1 = require("sprotty/lib/base/commands/command-stack");
|
|
61
|
+
Object.defineProperty(exports, "CommandStack", { enumerable: true, get: function () { return command_stack_1.CommandStack; } });
|
|
60
62
|
__exportStar(require("sprotty/lib/base/commands/command-stack-options"), exports);
|
|
61
63
|
__exportStar(require("sprotty/lib/base/features/initialize-canvas"), exports);
|
|
62
64
|
__exportStar(require("sprotty/lib/base/features/set-model"), exports);
|
|
@@ -97,11 +99,11 @@ __exportStar(require("sprotty/lib/base/views/vnode-utils"), exports);
|
|
|
97
99
|
// Exclude sprotty types and export augmented GLSP types instead
|
|
98
100
|
// export * from 'sprotty/lib/base/types';
|
|
99
101
|
// ------------------ Features ------------------
|
|
100
|
-
__exportStar(require("sprotty/lib/features/bounds/abstract-layout"), exports);
|
|
101
102
|
__exportStar(require("sprotty/lib/features/bounds/bounds-manipulation"), exports);
|
|
102
|
-
__exportStar(require("sprotty/lib/features/bounds/hbox-layout"), exports);
|
|
103
103
|
__exportStar(require("sprotty/lib/features/bounds/hidden-bounds-updater"), exports);
|
|
104
|
-
|
|
104
|
+
var layout_1 = require("sprotty/lib/features/bounds/layout");
|
|
105
|
+
Object.defineProperty(exports, "Layouter", { enumerable: true, get: function () { return layout_1.Layouter; } });
|
|
106
|
+
Object.defineProperty(exports, "StatefulLayouter", { enumerable: true, get: function () { return layout_1.StatefulLayouter; } });
|
|
105
107
|
var model_1 = require("sprotty/lib/features/bounds/model");
|
|
106
108
|
Object.defineProperty(exports, "GShapeElement", { enumerable: true, get: function () { return model_1.SShapeElementImpl; } });
|
|
107
109
|
Object.defineProperty(exports, "alignFeature", { enumerable: true, get: function () { return model_1.alignFeature; } });
|
|
@@ -116,9 +118,6 @@ Object.defineProperty(exports, "isLayoutableChild", { enumerable: true, get: fun
|
|
|
116
118
|
Object.defineProperty(exports, "isSizeable", { enumerable: true, get: function () { return model_1.isSizeable; } });
|
|
117
119
|
Object.defineProperty(exports, "layoutContainerFeature", { enumerable: true, get: function () { return model_1.layoutContainerFeature; } });
|
|
118
120
|
Object.defineProperty(exports, "layoutableChildFeature", { enumerable: true, get: function () { return model_1.layoutableChildFeature; } });
|
|
119
|
-
// exclude stack layout as its not supported in GLSP
|
|
120
|
-
// export * from 'sprotty/lib/features/bounds/stack-layout';
|
|
121
|
-
__exportStar(require("sprotty/lib/features/bounds/vbox-layout"), exports);
|
|
122
121
|
__exportStar(require("sprotty/lib/features/bounds/views"), exports);
|
|
123
122
|
var button_handler_1 = require("sprotty/lib/features/button/button-handler");
|
|
124
123
|
Object.defineProperty(exports, "ButtonHandlerRegistry", { enumerable: true, get: function () { return button_handler_1.ButtonHandlerRegistry; } });
|
|
@@ -245,7 +244,8 @@ __exportStar(require("sprotty/lib/features/viewport/viewport"), exports);
|
|
|
245
244
|
var viewport_root_1 = require("sprotty/lib/features/viewport/viewport-root");
|
|
246
245
|
Object.defineProperty(exports, "GViewportRootElement", { enumerable: true, get: function () { return viewport_root_1.ViewportRootElementImpl; } });
|
|
247
246
|
__exportStar(require("sprotty/lib/features/viewport/zoom"), exports);
|
|
248
|
-
|
|
247
|
+
var zorder_1 = require("sprotty/lib/features/zorder/zorder");
|
|
248
|
+
Object.defineProperty(exports, "SprottyBringToFrontCommand", { enumerable: true, get: function () { return zorder_1.BringToFrontCommand; } });
|
|
249
249
|
// ------------------ Graph ------------------
|
|
250
250
|
// Alias SModel types
|
|
251
251
|
var sgraph_1 = require("sprotty/lib/graph/sgraph");
|
|
@@ -265,11 +265,11 @@ Object.defineProperty(exports, "GBezierControlHandleView", { enumerable: true, g
|
|
|
265
265
|
Object.defineProperty(exports, "GBezierCreateHandleView", { enumerable: true, get: function () { return views_1.SBezierCreateHandleView; } });
|
|
266
266
|
Object.defineProperty(exports, "GCompartmentView", { enumerable: true, get: function () { return views_1.SCompartmentView; } });
|
|
267
267
|
Object.defineProperty(exports, "GLabelView", { enumerable: true, get: function () { return views_1.SLabelView; } });
|
|
268
|
-
Object.defineProperty(exports, "SRoutingHandleView", { enumerable: true, get: function () { return views_1.SRoutingHandleView; } });
|
|
269
268
|
Object.defineProperty(exports, "JumpingPolylineEdgeView", { enumerable: true, get: function () { return views_1.JumpingPolylineEdgeView; } });
|
|
270
269
|
Object.defineProperty(exports, "PolylineEdgeView", { enumerable: true, get: function () { return views_1.PolylineEdgeView; } });
|
|
271
270
|
Object.defineProperty(exports, "PolylineEdgeViewWithGapsOnIntersections", { enumerable: true, get: function () { return views_1.PolylineEdgeViewWithGapsOnIntersections; } });
|
|
272
271
|
Object.defineProperty(exports, "SGraphView", { enumerable: true, get: function () { return views_1.SGraphView; } });
|
|
272
|
+
Object.defineProperty(exports, "SRoutingHandleView", { enumerable: true, get: function () { return views_1.SRoutingHandleView; } });
|
|
273
273
|
// ------------------ Library ------------------
|
|
274
274
|
__exportStar(require("sprotty/lib/lib/generic-views"), exports);
|
|
275
275
|
__exportStar(require("sprotty/lib/lib/html-views"), exports);
|
package/lib/re-exports.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"re-exports.js","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;;;;AAElF;;GAEG;AACH,yDAAuC;AACvC,gEAA8C;AAE9C;;GAEG;AACH,6CAA6C;AAE7C,0CAA0C;AAC1C,mDAAmD;AACnD,oGAAoG;AACpG,gFAA+F;AAAtF,qHAAA,gBAAgB,OAAA;AACzB,0EAMiD;AAJ7C,uHAAA,qBAAqB,OAAA;AAErB,wHAAA,sBAAsB,OAAA;AACtB,0GAAA,QAAQ,OAAA;AAEZ,0EAAwD;AAExD,wEAAsD;AACtD,qFAAmE;AACnE,qEAAmD;AAEnD,oEAAkD;AAClD,iFAA+D;AAC/D,
|
|
1
|
+
{"version":3,"file":"re-exports.js","sourceRoot":"","sources":["../src/re-exports.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;kFAckF;;;;;;;;;;;;;;;;;;;AAElF;;GAEG;AACH,yDAAuC;AACvC,gEAA8C;AAE9C;;GAEG;AACH,6CAA6C;AAE7C,0CAA0C;AAC1C,mDAAmD;AACnD,oGAAoG;AACpG,gFAA+F;AAAtF,qHAAA,gBAAgB,OAAA;AACzB,0EAMiD;AAJ7C,uHAAA,qBAAqB,OAAA;AAErB,wHAAA,sBAAsB,OAAA;AACtB,0GAAA,QAAQ,OAAA;AAEZ,0EAAwD;AAExD,wEAAsD;AACtD,qFAAmE;AACnE,qEAAmD;AAEnD,oEAAkD;AAClD,iFAA+D;AAC/D,4FAA4F;AAC5F,yEAA0F;AAAjF,6GAAA,YAAY,OAAA;AACrB,kFAAgE;AAEhE,8EAA4D;AAC5D,sEAAoD;AACp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ClD,4DAA0C;AAC1C,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,8DAA4C;AAC5C,6DAA2C;AAC3C,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C"}
|
package/lib/types.d.ts
CHANGED
package/lib/types.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,KAAK;;IAMd,uHAAuH;;;IAGvH,qGAAqG;;;;;;;;IAQrG,gEAAgE
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":"AAwBA,eAAO,MAAM,KAAK;;IAMd,uHAAuH;;;IAGvH,qGAAqG;;;;;;;;IAQrG,gEAAgE;;;;;;;;;;;;;;;;;;;;;;;IAuBhE;;;OAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAEN,CAAC"}
|
package/lib/types.js
CHANGED
package/lib/types.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","sourceRoot":"","sources":["../src/types.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;;;;kFAckF;AAClF,4CAA4C;AAC5C,qCAAgD;AAEhD;;;GAGG;AAEH,MAAM,mBAAmB,GAAG,MAAM,CAAC,qBAAqB,CAAC,CAAC;AAC7C,QAAA,KAAK,GAAG;IACjB,GAAG,eAAY;IACf,kIAAkI;IAClI,yEAAyE;IACzE,8GAA8G;IAC9G,UAAU,EAAE,MAAM,CAAC,YAAY,CAAC;IAChC,uHAAuH;IACvH,6BAA6B,EAAE,eAAY,CAAC,6BAA6B;IACzE,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACxD,qGAAqG;IACrG,6BAA6B,EAAE,MAAM,CAAC,wBAAwB,CAAC;IAC/D,yBAAyB,EAAE,MAAM,CA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C,oBAAoB,CAAC;IAChD,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,sBAAsB,EAAE,MAAM,CAAC,wBAAwB,CAAC;IACxD,eAAe,EAAE,MAAM,CAAC,iBAAiB,CAAC;IAC1C,eAAe,EAAE,MAAM,CAAC,iBAAiB,CAAC;IAC1C,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC;IACpC,iBAAiB,EAAE,MAAM,CAAC,mBAAmB,CAAC;IAC9C,oBAAoB,EAAE,MAAM,CAAC,sBAAsB,CAAC;IACpD,YAAY,EAAE,MAAM,CAAC,cAAc,CAAC;IACpC,aAAa,EAAE,MAAM,CAAC,eAAe,CAAC;IACtC,IAAI,EAAE,MAAM,CAAC,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,CAAC,aAAa,CAAC;IAClC,mBAAmB,EAAE,MAAM,CAAC,qBAAqB,CAAC;IAClD;;;OAGG;IACH,gBAAgB,EAAE,MAAM,CAAC,kBAAkB,CAAC;CAC/C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp/sprotty",
|
|
3
|
-
"version": "2.5.0-next.
|
|
3
|
+
"version": "2.5.0-next.429+76bfe43",
|
|
4
4
|
"description": "Augmented reexport of the sprotty API for GLSP",
|
|
5
5
|
"homepage": "https://www.eclipse.org/glsp/",
|
|
6
6
|
"bugs": "https://github.com/eclipse-glsp/glsp/issues",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"watch": "tsc -w"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@eclipse-glsp/protocol": "2.5.0-next.
|
|
36
|
+
"@eclipse-glsp/protocol": "2.5.0-next.429+76bfe43",
|
|
37
37
|
"autocompleter": "^9.1.0",
|
|
38
38
|
"snabbdom": "~3.5.1",
|
|
39
39
|
"sprotty": "1.4.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"publishConfig": {
|
|
52
52
|
"access": "public"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "76bfe43236f15616ad6b92d1dbf6fdfbdea9afa9"
|
|
55
55
|
}
|
package/src/api-override.ts
CHANGED
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
*
|
|
14
14
|
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
|
|
15
15
|
********************************************************************************/
|
|
16
|
-
import { Action, LabeledAction, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
16
|
+
import { Action, Event, LabeledAction, Point, RequestAction, ResponseAction } from '@eclipse-glsp/protocol';
|
|
17
17
|
import { injectable } from 'inversify';
|
|
18
18
|
import { VNode } from 'snabbdom';
|
|
19
19
|
import {
|
|
@@ -25,6 +25,7 @@ import {
|
|
|
25
25
|
IActionHandler as SIActionHandler,
|
|
26
26
|
IButtonHandler as SIButtonHandler,
|
|
27
27
|
ICommandPaletteActionProvider as SICommandPaletteActionProvider,
|
|
28
|
+
ICommandStack as SICommandStack,
|
|
28
29
|
IContextMenuItemProvider as SIContextMenuItemProvider,
|
|
29
30
|
IVNodePostprocessor as SIVNodePostprocessor,
|
|
30
31
|
KeyListener as SKeyListener,
|
|
@@ -198,3 +199,57 @@ export interface IActionDispatcher extends SIActionDispatcher {
|
|
|
198
199
|
}
|
|
199
200
|
|
|
200
201
|
export type IActionDispatcherProvider = () => Promise<IActionDispatcher>;
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Data structure that is passed to the `onCommandExecuted` event.
|
|
205
|
+
*/
|
|
206
|
+
export interface CommandExecutionData {
|
|
207
|
+
/** The command that has been executed successfully */
|
|
208
|
+
command: ICommand;
|
|
209
|
+
/** The new model root after the command execution */
|
|
210
|
+
newRoot: GModelRoot;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
export interface ICommandStack extends SICommandStack {
|
|
214
|
+
/**
|
|
215
|
+
* Executes the given command on the current model and returns a
|
|
216
|
+
* Promise for the new result.
|
|
217
|
+
*
|
|
218
|
+
* Unless it is a special command, it is pushed to the undo stack
|
|
219
|
+
* such that it can be rolled back later and the redo stack is
|
|
220
|
+
* cleared.
|
|
221
|
+
*/
|
|
222
|
+
execute(command: ICommand): Promise<GModelRoot>;
|
|
223
|
+
|
|
224
|
+
/**
|
|
225
|
+
* Executes all of the given commands. As opposed to calling
|
|
226
|
+
* execute() multiple times, the Viewer is only updated once after
|
|
227
|
+
* the last command has been executed.
|
|
228
|
+
*/
|
|
229
|
+
executeAll(commands: ICommand[]): Promise<GModelRoot>;
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* Client-side undo/redo is not supported in GLSP. The server is responsible for handling undo/redo requests.
|
|
233
|
+
* This method is required to maintain compatibility with the sprotty API.
|
|
234
|
+
* Implementation should always be a no-op that returns the current model.
|
|
235
|
+
*/
|
|
236
|
+
undo(): Promise<GModelRoot>;
|
|
237
|
+
|
|
238
|
+
/**
|
|
239
|
+
* Client-side undo/redo is not supported in GLSP. The server is responsible for handling undo/redo requests.
|
|
240
|
+
* This method is required to maintain compatibility with the sprotty API.
|
|
241
|
+
* Implementation should always be a no-op that returns the current model.
|
|
242
|
+
*/
|
|
243
|
+
redo(): Promise<GModelRoot>;
|
|
244
|
+
|
|
245
|
+
/**
|
|
246
|
+
* Event fired after a command has been successfully executed on the stack. (i.e. after the model has been updated).
|
|
247
|
+
*/
|
|
248
|
+
onCommandExecuted: Event<CommandExecutionData>;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
/**
|
|
252
|
+
* As part of the event cylce, the ICommandStack should be injected
|
|
253
|
+
* using a provider to avoid cyclic injection dependencies.
|
|
254
|
+
*/
|
|
255
|
+
export type CommandStackProvider = () => Promise<ICommandStack>;
|
package/src/feature-modules.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2023-
|
|
2
|
+
* Copyright (c) 2023-2025 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
|
|
@@ -26,7 +26,6 @@ import sprottyFadeModule from 'sprotty/lib/features/fade/di.config';
|
|
|
26
26
|
import sprottyMoveModule from 'sprotty/lib/features/move/di.config';
|
|
27
27
|
import sprottyOpenModule from 'sprotty/lib/features/open/di.config';
|
|
28
28
|
import sprottyUpdateModule from 'sprotty/lib/features/update/di.config';
|
|
29
|
-
import sprottyZorderModule from 'sprotty/lib/features/zorder/di.config';
|
|
30
29
|
import sprottyModelSourceModule from 'sprotty/lib/model-source/di.config';
|
|
31
30
|
|
|
32
31
|
export const buttonModule = new FeatureModule(sprottyButtonModule.registry, { featureId: Symbol('button') });
|
|
@@ -39,7 +38,6 @@ export const modelSourceModule = new FeatureModule(sprottyModelSourceModule.regi
|
|
|
39
38
|
export const moveModule = new FeatureModule(sprottyMoveModule.registry, { featureId: Symbol('move') });
|
|
40
39
|
export const openModule = new FeatureModule(sprottyOpenModule.registry, { featureId: Symbol('open') });
|
|
41
40
|
export const updateModule = new FeatureModule(sprottyUpdateModule.registry, { featureId: Symbol('update') });
|
|
42
|
-
export const zorderModule = new FeatureModule(sprottyZorderModule.registry, { featureId: Symbol('zorder') });
|
|
43
41
|
export const edgeJunctionModule = new FeatureModule(sprottyEdgeJunctionModule.registry, { featureId: Symbol('edgeJunction') });
|
|
44
42
|
|
|
45
43
|
export { sprottyDefaultModule };
|
package/src/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/********************************************************************************
|
|
2
|
-
* Copyright (c) 2024 EclipseSource and others.
|
|
2
|
+
* Copyright (c) 2024-2025 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
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
********************************************************************************/
|
|
16
16
|
export * from './api-override';
|
|
17
17
|
export * from './feature-modules';
|
|
18
|
+
export * from './layout-override';
|
|
18
19
|
export * from './re-exports';
|
|
19
20
|
export * from './svg-views-override';
|
|
20
21
|
export * from './types';
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
/********************************************************************************
|
|
2
|
+
* Copyright (c) 2025 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
|
+
|
|
17
|
+
import { inject, injectable, interfaces, multiInject, optional } from 'inversify';
|
|
18
|
+
import {
|
|
19
|
+
ILogger,
|
|
20
|
+
InstanceRegistry,
|
|
21
|
+
HBoxLayouter as SHBoxLayouter,
|
|
22
|
+
ILayout as SLayout,
|
|
23
|
+
LayoutRegistration as SLayoutRegistration,
|
|
24
|
+
VBoxLayouter as SVBoxLayouter,
|
|
25
|
+
TYPES,
|
|
26
|
+
configureLayout as sconfigureLayout
|
|
27
|
+
} from 'sprotty';
|
|
28
|
+
import { AbstractLayout as SAbstractLayout } from 'sprotty/lib/features/bounds/abstract-layout';
|
|
29
|
+
import { AbstractLayoutOptions } from './re-exports';
|
|
30
|
+
|
|
31
|
+
export interface ILayout extends SLayout {
|
|
32
|
+
/** Flag to indicate whether the layouting of the children is independant from their order. */
|
|
33
|
+
orderAgnostic?: boolean;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export interface LayoutRegistration extends SLayoutRegistration {
|
|
37
|
+
factory: () => ILayout;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
@injectable()
|
|
41
|
+
export class LayoutRegistry extends InstanceRegistry<ILayout> {
|
|
42
|
+
@inject(TYPES.ILogger) logger: ILogger;
|
|
43
|
+
|
|
44
|
+
constructor(@multiInject(TYPES.LayoutRegistration) @optional() layouts: LayoutRegistration[] = []) {
|
|
45
|
+
super();
|
|
46
|
+
layouts.forEach(layout => {
|
|
47
|
+
if (this.hasKey(layout.layoutKind)) {
|
|
48
|
+
this.logger.warn('Layout kind is already defined: ', layout.layoutKind);
|
|
49
|
+
} else {
|
|
50
|
+
this.register(layout.layoutKind, layout.factory());
|
|
51
|
+
}
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export function configureLayout(
|
|
57
|
+
context: { bind: interfaces.Bind; isBound: interfaces.IsBound },
|
|
58
|
+
kind: string,
|
|
59
|
+
constr: interfaces.ServiceIdentifier<ILayout>
|
|
60
|
+
): void {
|
|
61
|
+
return sconfigureLayout(context, kind, constr);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
@injectable()
|
|
65
|
+
export abstract class AbstractLayout<T extends AbstractLayoutOptions> extends SAbstractLayout<T> implements ILayout {
|
|
66
|
+
orderAgnostic?: boolean = true;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
@injectable()
|
|
70
|
+
export class VBoxLayouter extends SVBoxLayouter implements ILayout {
|
|
71
|
+
orderAgnostic?: boolean = false;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
@injectable()
|
|
75
|
+
export class HBoxLayouter extends SHBoxLayouter implements ILayout {
|
|
76
|
+
orderAgnostic?: boolean = false;
|
|
77
|
+
}
|
package/src/re-exports.ts
CHANGED
|
@@ -44,7 +44,8 @@ export * from 'sprotty/lib/base/animations/easing';
|
|
|
44
44
|
|
|
45
45
|
export * from 'sprotty/lib/base/commands/command';
|
|
46
46
|
export * from 'sprotty/lib/base/commands/command-registration';
|
|
47
|
-
|
|
47
|
+
// Exclude ICommandStack and ICommandStackProvider. Exported via api-override module instead
|
|
48
|
+
export { CommandStack, CommandStackState } from 'sprotty/lib/base/commands/command-stack';
|
|
48
49
|
export * from 'sprotty/lib/base/commands/command-stack-options';
|
|
49
50
|
|
|
50
51
|
export * from 'sprotty/lib/base/features/initialize-canvas';
|
|
@@ -94,11 +95,10 @@ export * from 'sprotty/lib/base/views/vnode-utils';
|
|
|
94
95
|
// export * from 'sprotty/lib/base/types';
|
|
95
96
|
|
|
96
97
|
// ------------------ Features ------------------
|
|
97
|
-
export * from 'sprotty/lib/features/bounds/abstract-layout';
|
|
98
98
|
export * from 'sprotty/lib/features/bounds/bounds-manipulation';
|
|
99
|
-
export
|
|
99
|
+
export { HBoxLayoutOptions } from 'sprotty/lib/features/bounds/hbox-layout';
|
|
100
100
|
export * from 'sprotty/lib/features/bounds/hidden-bounds-updater';
|
|
101
|
-
export
|
|
101
|
+
export { Layouter, StatefulLayouter } from 'sprotty/lib/features/bounds/layout';
|
|
102
102
|
export { AbstractLayoutOptions } from 'sprotty/lib/features/bounds/layout-options';
|
|
103
103
|
export {
|
|
104
104
|
InternalBoundsAware as BoundsAware,
|
|
@@ -121,7 +121,7 @@ export {
|
|
|
121
121
|
} from 'sprotty/lib/features/bounds/model';
|
|
122
122
|
// exclude stack layout as its not supported in GLSP
|
|
123
123
|
// export * from 'sprotty/lib/features/bounds/stack-layout';
|
|
124
|
-
export
|
|
124
|
+
export { VBoxLayoutOptions } from 'sprotty/lib/features/bounds/vbox-layout';
|
|
125
125
|
export * from 'sprotty/lib/features/bounds/views';
|
|
126
126
|
|
|
127
127
|
export { ButtonHandlerRegistry, IButtonHandlerRegistration, configureButtonHandler } from 'sprotty/lib/features/button/button-handler';
|
|
@@ -246,7 +246,7 @@ export * from 'sprotty/lib/features/viewport/viewport';
|
|
|
246
246
|
export { ViewportRootElementImpl as GViewportRootElement } from 'sprotty/lib/features/viewport/viewport-root';
|
|
247
247
|
export * from 'sprotty/lib/features/viewport/zoom';
|
|
248
248
|
|
|
249
|
-
export
|
|
249
|
+
export { BringToFrontCommand as SprottyBringToFrontCommand, ZOrderElement } from 'sprotty/lib/features/zorder/zorder';
|
|
250
250
|
|
|
251
251
|
// ------------------ Graph ------------------
|
|
252
252
|
// Alias SModel types
|
|
@@ -268,11 +268,11 @@ export {
|
|
|
268
268
|
SBezierCreateHandleView as GBezierCreateHandleView,
|
|
269
269
|
SCompartmentView as GCompartmentView,
|
|
270
270
|
SLabelView as GLabelView,
|
|
271
|
-
SRoutingHandleView,
|
|
272
271
|
JumpingPolylineEdgeView,
|
|
273
272
|
PolylineEdgeView,
|
|
274
273
|
PolylineEdgeViewWithGapsOnIntersections,
|
|
275
|
-
SGraphView
|
|
274
|
+
SGraphView,
|
|
275
|
+
SRoutingHandleView
|
|
276
276
|
} from 'sprotty/lib/graph/views';
|
|
277
277
|
|
|
278
278
|
// ------------------ Library ------------------
|
package/src/types.ts
CHANGED