@eclipse-glsp-examples/workflow-server-bundled 2.2.0-next.83 → 2.2.0-next.86
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/package.json +3 -3
- package/wf-glsp-server-node.js +23 -4
- package/wf-glsp-server-node.js.map +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@eclipse-glsp-examples/workflow-server-bundled",
|
|
3
|
-
"version": "2.2.0-next.
|
|
3
|
+
"version": "2.2.0-next.86+9634f64",
|
|
4
4
|
"description": "GLSP node server for the workflow example (bundled)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"wf-glsp-server-node.js.map"
|
|
42
42
|
],
|
|
43
43
|
"scripts": {
|
|
44
|
-
"clean": "rimraf wf-glsp-server-node.js wf-glsp-server-node.js.map",
|
|
44
|
+
"clean": "rimraf wf-glsp-server-node.js wf-glsp-server-node.js.map wf-glsp-server-webworker.js wf-glsp-server-webworker.js.map",
|
|
45
45
|
"start": "node --enable-source-maps ./wf-glsp-server-node.js --port 5007",
|
|
46
46
|
"start:websocket": "node --enable-source-maps ./wf-glsp-server-node.js -w --port 8081",
|
|
47
47
|
"watch": "tsc -w"
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "9634f641d5a3b3d9a27eb4d7d3083c80e39a7d89"
|
|
53
53
|
}
|
package/wf-glsp-server-node.js
CHANGED
|
@@ -55562,9 +55562,14 @@ var GAlignableBuilder;
|
|
|
55562
55562
|
if (typeof pointOrX === 'object') {
|
|
55563
55563
|
proxy.alignment = pointOrX;
|
|
55564
55564
|
}
|
|
55565
|
-
else if (y) {
|
|
55565
|
+
else if (y !== undefined) {
|
|
55566
55566
|
proxy.alignment = { x: pointOrX, y };
|
|
55567
55567
|
}
|
|
55568
|
+
else {
|
|
55569
|
+
// Optionally handle cases where y is not provided
|
|
55570
|
+
proxy.alignment = { x: pointOrX, y: 0 };
|
|
55571
|
+
console.warn(`Incomplete parameters for GAlignableBuilder.alignment function. Setting alignment to ${JSON.stringify(proxy.alignment)}`);
|
|
55572
|
+
}
|
|
55568
55573
|
return builder;
|
|
55569
55574
|
}
|
|
55570
55575
|
GAlignableBuilder.alignment = alignment;
|
|
@@ -55595,9 +55600,14 @@ var GBoundsAwareBuilder;
|
|
|
55595
55600
|
if (typeof pointOrX === 'object') {
|
|
55596
55601
|
proxy.position = pointOrX;
|
|
55597
55602
|
}
|
|
55598
|
-
else if (y) {
|
|
55603
|
+
else if (y !== undefined) {
|
|
55599
55604
|
proxy.position = { x: pointOrX, y };
|
|
55600
55605
|
}
|
|
55606
|
+
else {
|
|
55607
|
+
// Optionally handle cases where y is not provided
|
|
55608
|
+
proxy.position = { x: pointOrX, y: 0 };
|
|
55609
|
+
console.warn(`Incomplete parameters for GBoundsAwareBuilder.position function. Setting position to ${JSON.stringify(proxy.position)}`);
|
|
55610
|
+
}
|
|
55601
55611
|
return builder;
|
|
55602
55612
|
}
|
|
55603
55613
|
GBoundsAwareBuilder.position = position;
|
|
@@ -55606,9 +55616,14 @@ var GBoundsAwareBuilder;
|
|
|
55606
55616
|
if (typeof sizeOrWidth === 'object') {
|
|
55607
55617
|
proxy.size = sizeOrWidth;
|
|
55608
55618
|
}
|
|
55609
|
-
else if (height) {
|
|
55619
|
+
else if (height !== undefined) {
|
|
55610
55620
|
proxy.size = { width: sizeOrWidth, height };
|
|
55611
55621
|
}
|
|
55622
|
+
else {
|
|
55623
|
+
// Optionally handle cases where height is not provided
|
|
55624
|
+
proxy.size = { width: sizeOrWidth, height: 0 };
|
|
55625
|
+
console.warn(`Incomplete parameters for GBoundsAwareBuilder.size function. Setting size to ${JSON.stringify(proxy.size)}`);
|
|
55626
|
+
}
|
|
55612
55627
|
return builder;
|
|
55613
55628
|
}
|
|
55614
55629
|
GBoundsAwareBuilder.size = size;
|
|
@@ -56813,7 +56828,11 @@ function configureELKLayoutModule(options) {
|
|
|
56813
56828
|
}
|
|
56814
56829
|
const elkFactory = () => new elk_bundled_1.default({
|
|
56815
56830
|
algorithms: options.algorithms,
|
|
56816
|
-
defaultLayoutOptions: options.defaultLayoutOptions
|
|
56831
|
+
defaultLayoutOptions: options.defaultLayoutOptions,
|
|
56832
|
+
// The node implementation relied on elkjs' `FakeWorker` to set the `workerFactory`.
|
|
56833
|
+
// However, since the required file is dynamically loaded and not available in a web-worker context,
|
|
56834
|
+
// it needs to be mocked manually.
|
|
56835
|
+
workerFactory: () => ({ postMessage: () => { } })
|
|
56817
56836
|
});
|
|
56818
56837
|
bind(glsp_elk_layout_engine_1.ElkFactory).toConstantValue(elkFactory);
|
|
56819
56838
|
bind(glsp_elk_layout_engine_1.GlspElkLayoutEngine)
|