@eclipse-glsp/sprotty 2.5.0-next.428 → 2.5.0-next.433
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/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 +4 -5
- package/lib/re-exports.d.ts.map +1 -1
- package/lib/re-exports.js +8 -10
- package/lib/re-exports.js.map +1 -1
- package/lib/svg-views-override.js +3 -3
- package/lib/svg-views-override.js.map +1 -1
- package/package.json +3 -3
- 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 +4 -5
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,CAyBE;AAxB7B,qEAAwE;AACxE,gFAA6F;AAC7F,4EAAqF;AACrF,0EAAiF;AACjF,mEAA8F;AAC9F,qEAAwE;AACxE,mEAAoE;AACpE,mEAAoE;AACpE,oEAAoE;AACpE,sEAAwE;AACxE,mEAA0E;AAE7D,QAAA,YAAY,GAAG,IAAI,kBAAa,CAAC,mBAAmB,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAChG,QAAA,cAAc,GAAG,IAAI,kBAAa,CAAC,0BAAqB,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;AACtG,QAAA,sBAAsB,GAAG,IAAI,kBAAa,CAAC,mBAA6B,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,kBAAkB,CAAC,EAAE,CAAC,CAAC;AAC9H,QAAA,gBAAgB,GAAG,IAAI,kBAAa,CAAC,mBAAuB,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,YAAY,CAAC,EAAE,CAAC,CAAC;AAC5G,QAAA,YAAY,GAAG,IAAI,kBAAa,CAAC,mBAAmB,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;AAChG,QAAA,UAAU,GAAG,IAAI,kBAAa,CAAC,mBAAiB,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAC1F,QAAA,iBAAiB,GAAG,IAAI,kBAAa,CAAC,oBAAwB,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,aAAa,CAAC,EAAE,CAAC,CAAC;AAC/G,QAAA,UAAU,GAAG,IAAI,kBAAa,CAAC,mBAAiB,CAAC,QAAQ,EAAE,EAAE,SAAS,EAAE,MAAM,CAAC,MAAM,CAAC,EAAE,CAAC,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.LayoutRegistry = void 0;
|
|
31
|
+
exports.configureLayout = configureLayout;
|
|
32
|
+
const inversify_1 = require("inversify");
|
|
33
|
+
const sprotty_1 = require("sprotty");
|
|
34
|
+
const abstract_layout_1 = require("sprotty/lib/features/bounds/abstract-layout");
|
|
35
|
+
let LayoutRegistry = class LayoutRegistry extends sprotty_1.InstanceRegistry {
|
|
36
|
+
constructor(layouts = []) {
|
|
37
|
+
super();
|
|
38
|
+
layouts.forEach(layout => {
|
|
39
|
+
if (this.hasKey(layout.layoutKind)) {
|
|
40
|
+
this.logger.warn('Layout kind is already defined: ', layout.layoutKind);
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
this.register(layout.layoutKind, layout.factory());
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
};
|
|
48
|
+
exports.LayoutRegistry = LayoutRegistry;
|
|
49
|
+
__decorate([
|
|
50
|
+
(0, inversify_1.inject)(sprotty_1.TYPES.ILogger),
|
|
51
|
+
__metadata("design:type", Object)
|
|
52
|
+
], LayoutRegistry.prototype, "logger", void 0);
|
|
53
|
+
exports.LayoutRegistry = LayoutRegistry = __decorate([
|
|
54
|
+
(0, inversify_1.injectable)(),
|
|
55
|
+
__param(0, (0, inversify_1.multiInject)(sprotty_1.TYPES.LayoutRegistration)),
|
|
56
|
+
__param(0, (0, inversify_1.optional)()),
|
|
57
|
+
__metadata("design:paramtypes", [Array])
|
|
58
|
+
], LayoutRegistry);
|
|
59
|
+
function configureLayout(context, kind, constr) {
|
|
60
|
+
return (0, sprotty_1.configureLayout)(context, kind, constr);
|
|
61
|
+
}
|
|
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;;;;;;;;;;;;;;;AAyClF,0CAMC;AA7CD,yCAAkF;AAClF,qCASiB;AACjB,iFAAgG;AAazF,IAAM,cAAc,GAApB,MAAM,cAAe,SAAQ,0BAAyB;IAGzD,YAA+D,UAAgC,EAAE;QAC7F,KAAK,EAAE,CAAC;QACR,OAAO,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YACrB,IAAI,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,UAAU,CAAC,EAAE,CAAC;gBACjC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,kCAAkC,EAAE,MAAM,CAAC,UAAU,CAAC,CAAC;YAC5E,CAAC;iBAAM,CAAC;gBACJ,IAAI,CAAC,QAAQ,CAAC,MAAM,CAAC,UAAU,EAAE,MAAM,CAAC,OAAO,EAAE,CAAC,CAAC;YACvD,CAAC;QACL,CAAC,CAAC,CAAC;IACP,CAAC;CACJ,CAAA;AAbY,wCAAc;AACA;IAAtB,IAAA,kBAAM,EAAC,eAAK,CAAC,OAAO,CAAC;;8CAAiB;yBAD9B,cAAc;IAD1B,IAAA,sBAAU,GAAE;IAII,WAAA,IAAA,uBAAW,EAAC,eAAK,CAAC,kBAAkB,CAAC,CAAA;IAAE,WAAA,IAAA,oBAAQ,GAAE,CAAA;;GAHrD,cAAc,CAa1B;AAED,SAAgB,eAAe,CAC3B,OAA+D,EAC/D,IAAY,EACZ,MAA6C;IAE7C,OAAO,IAAA,yBAAgB,EAAC,OAAO,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AACnD,CAAC;AAGM,IAAe,cAAc,GAA7B,MAAe,cAAgD,SAAQ,gCAAkB;IAAzF;;QACH,kBAAa,GAAa,IAAI,CAAC;IACnC,CAAC;CAAA,CAAA;AAFqB,wCAAc;yBAAd,cAAc;IADnC,IAAA,sBAAU,GAAE;GACS,cAAc,CAEnC;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;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
|
@@ -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,7 +114,7 @@ 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
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';
|
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;AAE/D,OAAO,EAAE,YAAY,EAAE,iBAAiB,EAAE,MAAM,yCAAyC,CAAC;AAC1F,cAAc,iDAAiD,CAAC;AAEhE,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AAEpD,OAAO,EACH,UAAU,EACV,iBAAiB,IAAI,aAAa,EAClC,iBAAiB,IAAI,aAAa,EAClC,cAAc,IAAI,UAAU,EAC5B,kBAAkB,IAAI,cAAc,EACpC,WAAW,EACX,cAAc,EACd,cAAc,EACd,QAAQ,EACX,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EACH,cAAc,EACd,UAAU,EACV,wBAAwB,IAAI,wBAAwB,EACpD,yBAAyB,IAAI,yBAAyB,EACtD,aAAa,IAAI,aAAa,EAC9B,aAAa,EAEb,cAAc,EACd,gBAAgB,EACnB,MAAM,uCAAuC,CAAC;AAC/C,cAAc,qCAAqC,CAAC;AAEpD,cAAc,6CAA6C,CAAC;AAC5D,c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;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.SRoutingHandleView = 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
|
*/
|
|
@@ -99,11 +99,11 @@ __exportStar(require("sprotty/lib/base/views/vnode-utils"), exports);
|
|
|
99
99
|
// Exclude sprotty types and export augmented GLSP types instead
|
|
100
100
|
// export * from 'sprotty/lib/base/types';
|
|
101
101
|
// ------------------ Features ------------------
|
|
102
|
-
__exportStar(require("sprotty/lib/features/bounds/abstract-layout"), exports);
|
|
103
102
|
__exportStar(require("sprotty/lib/features/bounds/bounds-manipulation"), exports);
|
|
104
|
-
__exportStar(require("sprotty/lib/features/bounds/hbox-layout"), exports);
|
|
105
103
|
__exportStar(require("sprotty/lib/features/bounds/hidden-bounds-updater"), exports);
|
|
106
|
-
|
|
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; } });
|
|
107
107
|
var model_1 = require("sprotty/lib/features/bounds/model");
|
|
108
108
|
Object.defineProperty(exports, "GShapeElement", { enumerable: true, get: function () { return model_1.SShapeElementImpl; } });
|
|
109
109
|
Object.defineProperty(exports, "alignFeature", { enumerable: true, get: function () { return model_1.alignFeature; } });
|
|
@@ -118,9 +118,6 @@ Object.defineProperty(exports, "isLayoutableChild", { enumerable: true, get: fun
|
|
|
118
118
|
Object.defineProperty(exports, "isSizeable", { enumerable: true, get: function () { return model_1.isSizeable; } });
|
|
119
119
|
Object.defineProperty(exports, "layoutContainerFeature", { enumerable: true, get: function () { return model_1.layoutContainerFeature; } });
|
|
120
120
|
Object.defineProperty(exports, "layoutableChildFeature", { enumerable: true, get: function () { return model_1.layoutableChildFeature; } });
|
|
121
|
-
// exclude stack layout as its not supported in GLSP
|
|
122
|
-
// export * from 'sprotty/lib/features/bounds/stack-layout';
|
|
123
|
-
__exportStar(require("sprotty/lib/features/bounds/vbox-layout"), exports);
|
|
124
121
|
__exportStar(require("sprotty/lib/features/bounds/views"), exports);
|
|
125
122
|
var button_handler_1 = require("sprotty/lib/features/button/button-handler");
|
|
126
123
|
Object.defineProperty(exports, "ButtonHandlerRegistry", { enumerable: true, get: function () { return button_handler_1.ButtonHandlerRegistry; } });
|
|
@@ -247,7 +244,8 @@ __exportStar(require("sprotty/lib/features/viewport/viewport"), exports);
|
|
|
247
244
|
var viewport_root_1 = require("sprotty/lib/features/viewport/viewport-root");
|
|
248
245
|
Object.defineProperty(exports, "GViewportRootElement", { enumerable: true, get: function () { return viewport_root_1.ViewportRootElementImpl; } });
|
|
249
246
|
__exportStar(require("sprotty/lib/features/viewport/zoom"), exports);
|
|
250
|
-
|
|
247
|
+
var zorder_1 = require("sprotty/lib/features/zorder/zorder");
|
|
248
|
+
Object.defineProperty(exports, "SprottyBringToFrontCommand", { enumerable: true, get: function () { return zorder_1.BringToFrontCommand; } });
|
|
251
249
|
// ------------------ Graph ------------------
|
|
252
250
|
// Alias SModel types
|
|
253
251
|
var sgraph_1 = require("sprotty/lib/graph/sgraph");
|
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,uHA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,OAAa;AACzB,6GAAA,sBAAsB,OAAuB;AAC7C,mHAAA,4BAA4B,OAA6B;AACzD,yGAAA,eAAe,OAAA;AACf,yGAAA,eAAe,OAAA;AAEnB,0DAAwC;AACxC,uDAAiG;AAAxF,2GAAA,cAAc,OAAA;AAAE,gHAAA,mBAAmB,OAAA;AAAE,4GAAA,eAAe,OAAA;AAE7D,qDAAqD;AACrD,wEAAsD;AACtD,mCAAmC;AACnC,2DAA2D;AAC3D,+DAA+D;AAC/D,mEAAiD;AACjD,wEAAsD;AACtD,sDAAsD;AAEtD,kDAAkD;AAClD,4DAA0C;AAC1C,4DAA0C;AAC1C,0DAAwC;AACxC,6DAA2C;AAC3C,8DAA4C;AAC5C,6DAA2C;AAC3C,6DAA2C;AAC3C,4DAA0C;AAC1C,6DAA2C"}
|
|
@@ -6,7 +6,9 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
6
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
7
|
};
|
|
8
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
-
exports.
|
|
9
|
+
exports.CircularNodeView = exports.DiamondNodeView = void 0;
|
|
10
|
+
exports.hiddenBoundingRect = hiddenBoundingRect;
|
|
11
|
+
exports.applyHiddenBoundingRect = applyHiddenBoundingRect;
|
|
10
12
|
/********************************************************************************
|
|
11
13
|
* Copyright (c) 2024 EclipseSource and others.
|
|
12
14
|
*
|
|
@@ -53,7 +55,6 @@ function hiddenBoundingRect(withBounds, context) {
|
|
|
53
55
|
// we set the fill to transparent since the SVG export uses the hidden rendering to generate the image and we do not want to be seen
|
|
54
56
|
return !context || context.targetKind === 'hidden' ? ((0, sprotty_1.svg)("rect", { attrs: { [sprotty_1.ATTR_BBOX_ELEMENT]: true }, ...protocol_1.Bounds.dimension(withBounds.bounds), style: { fill: 'transparent' } })) : undefined;
|
|
55
57
|
}
|
|
56
|
-
exports.hiddenBoundingRect = hiddenBoundingRect;
|
|
57
58
|
/**
|
|
58
59
|
* Applies a hidden bounding rectangle to the given view if we are in the hidden rendering context where sizes are being determined.
|
|
59
60
|
*
|
|
@@ -71,5 +72,4 @@ function applyHiddenBoundingRect(withBounds, context, view) {
|
|
|
71
72
|
}
|
|
72
73
|
return view;
|
|
73
74
|
}
|
|
74
|
-
exports.applyHiddenBoundingRect = applyHiddenBoundingRect;
|
|
75
75
|
//# sourceMappingURL=svg-views-override.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"svg-views-override.js","sourceRoot":"","sources":["../src/svg-views-override.tsx"],"names":[],"mappings":";;;;;;;;;
|
|
1
|
+
{"version":3,"file":"svg-views-override.js","sourceRoot":"","sources":["../src/svg-views-override.tsx"],"names":[],"mappings":";;;;;;;;;AAoEA,gDAMC;AAUD,0DAOC;AA3FD;;;;;;;;;;;;;;kFAckF;AAClF,eAAe;AACf,qDAAuE;AACvE,yCAAuC;AAEvC,qCASiB;AAGV,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,yBAAsB;IAC9C,MAAM,CACX,IAA0D,EAC1D,OAAyB,EACzB,IAAgB;QAEhB,gIAAgI;QAChI,6HAA6H;QAC7H,OAAO,uBAAuB,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IACrF,CAAC;CACJ,CAAA;AAVY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,sBAAU,GAAE;GACA,eAAe,CAU3B;AAGM,IAAM,gBAAgB,GAAtB,MAAM,gBAAiB,SAAQ,0BAAuB;IAChD,MAAM,CACX,IAA0D,EAC1D,OAAyB,EACzB,IAAgB;QAEhB,gIAAgI;QAChI,6HAA6H;QAC7H,OAAO,uBAAuB,CAAC,IAAI,EAAE,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;IACrF,CAAC;CACJ,CAAA;AAVY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,sBAAU,GAAE;GACA,gBAAgB,CAU5B;AAcD,SAAgB,kBAAkB,CAAC,UAAuB,EAAE,OAA0B;IAClF,uIAAuI;IACvI,oIAAoI;IACpI,OAAO,CAAC,OAAO,IAAI,OAAO,CAAC,UAAU,KAAK,QAAQ,CAAC,CAAC,CAAC,CACjD,6BAAM,KAAK,EAAE,EAAE,CAAC,2BAAiB,CAAC,EAAE,IAAI,EAAE,KAAM,iBAAM,CAAC,SAAS,CAAC,UAAU,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,IAAI,EAAE,aAAa,EAAE,GAAI,CAC1H,CAAC,CAAC,CAAC,SAAS,CAAC;AAClB,CAAC;AAED;;;;;;;GAOG;AACH,SAAgB,uBAAuB,CAA8B,UAAuB,EAAE,OAAyB,EAAE,IAAO;;IAC5H,IAAI,IAAI,IAAI,OAAO,CAAC,UAAU,KAAK,QAAQ,EAAE,CAAC;QAC1C,MAAM,MAAM,GAAG,IAAI,CAAC,GAAG,KAAK,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,8BAAI,IAAI,CAAK,CAAC;QACvD,MAAA,MAAM,CAAC,QAAQ,0CAAE,OAAO,CAAC,kBAAkB,CAAC,UAAU,CAAC,CAAC,CAAC;QACzD,OAAO,MAAM,CAAC;IAClB,CAAC;IACD,OAAO,IAAI,CAAC;AAChB,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.433+281be34",
|
|
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.433+281be34",
|
|
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": "281be3495934edbb3f87bda6fa51d76947cf57db"
|
|
55
55
|
}
|
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
|
@@ -95,11 +95,10 @@ export * from 'sprotty/lib/base/views/vnode-utils';
|
|
|
95
95
|
// export * from 'sprotty/lib/base/types';
|
|
96
96
|
|
|
97
97
|
// ------------------ Features ------------------
|
|
98
|
-
export * from 'sprotty/lib/features/bounds/abstract-layout';
|
|
99
98
|
export * from 'sprotty/lib/features/bounds/bounds-manipulation';
|
|
100
|
-
export
|
|
99
|
+
export { HBoxLayoutOptions } from 'sprotty/lib/features/bounds/hbox-layout';
|
|
101
100
|
export * from 'sprotty/lib/features/bounds/hidden-bounds-updater';
|
|
102
|
-
export
|
|
101
|
+
export { Layouter, StatefulLayouter } from 'sprotty/lib/features/bounds/layout';
|
|
103
102
|
export { AbstractLayoutOptions } from 'sprotty/lib/features/bounds/layout-options';
|
|
104
103
|
export {
|
|
105
104
|
InternalBoundsAware as BoundsAware,
|
|
@@ -122,7 +121,7 @@ export {
|
|
|
122
121
|
} from 'sprotty/lib/features/bounds/model';
|
|
123
122
|
// exclude stack layout as its not supported in GLSP
|
|
124
123
|
// export * from 'sprotty/lib/features/bounds/stack-layout';
|
|
125
|
-
export
|
|
124
|
+
export { VBoxLayoutOptions } from 'sprotty/lib/features/bounds/vbox-layout';
|
|
126
125
|
export * from 'sprotty/lib/features/bounds/views';
|
|
127
126
|
|
|
128
127
|
export { ButtonHandlerRegistry, IButtonHandlerRegistration, configureButtonHandler } from 'sprotty/lib/features/button/button-handler';
|
|
@@ -247,7 +246,7 @@ export * from 'sprotty/lib/features/viewport/viewport';
|
|
|
247
246
|
export { ViewportRootElementImpl as GViewportRootElement } from 'sprotty/lib/features/viewport/viewport-root';
|
|
248
247
|
export * from 'sprotty/lib/features/viewport/zoom';
|
|
249
248
|
|
|
250
|
-
export
|
|
249
|
+
export { BringToFrontCommand as SprottyBringToFrontCommand, ZOrderElement } from 'sprotty/lib/features/zorder/zorder';
|
|
251
250
|
|
|
252
251
|
// ------------------ Graph ------------------
|
|
253
252
|
// Alias SModel types
|