@eclipse-glsp-examples/workflow-server-bundled 2.5.0-next.125 → 2.5.0-next.126
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 +2 -2
- package/wf-glsp-server-node.js +20 -5
- 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.5.0-next.
|
|
3
|
+
"version": "2.5.0-next.126+01fc6b7",
|
|
4
4
|
"description": "GLSP node server for the workflow example (bundled)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"eclipse",
|
|
@@ -49,5 +49,5 @@
|
|
|
49
49
|
"publishConfig": {
|
|
50
50
|
"access": "public"
|
|
51
51
|
},
|
|
52
|
-
"gitHead": "
|
|
52
|
+
"gitHead": "01fc6b74bbadfe7a4f575ef5a0dca861f1b18c99"
|
|
53
53
|
}
|
package/wf-glsp-server-node.js
CHANGED
|
@@ -5014,7 +5014,7 @@ exports.EditMode = {
|
|
|
5014
5014
|
"use strict";
|
|
5015
5015
|
|
|
5016
5016
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5017
|
-
exports.LayoutOperation = exports.ComputedBoundsAction = exports.RequestBoundsAction = void 0;
|
|
5017
|
+
exports.TriggerLayoutAction = exports.LayoutOperation = exports.ComputedBoundsAction = exports.RequestBoundsAction = void 0;
|
|
5018
5018
|
const type_util_1 = __webpack_require__(/*! ../utils/type-util */ "../../node_modules/@eclipse-glsp/protocol/lib/utils/type-util.js");
|
|
5019
5019
|
const base_protocol_1 = __webpack_require__(/*! ./base-protocol */ "../../node_modules/@eclipse-glsp/protocol/lib/action-protocol/base-protocol.js");
|
|
5020
5020
|
var RequestBoundsAction;
|
|
@@ -5055,7 +5055,7 @@ var LayoutOperation;
|
|
|
5055
5055
|
(function (LayoutOperation) {
|
|
5056
5056
|
LayoutOperation.KIND = 'layout';
|
|
5057
5057
|
function is(object) {
|
|
5058
|
-
return base_protocol_1.Action.hasKind(object, LayoutOperation.KIND)
|
|
5058
|
+
return base_protocol_1.Action.hasKind(object, LayoutOperation.KIND);
|
|
5059
5059
|
}
|
|
5060
5060
|
LayoutOperation.is = is;
|
|
5061
5061
|
function create(elementIds, options = {}) {
|
|
@@ -5068,6 +5068,21 @@ var LayoutOperation;
|
|
|
5068
5068
|
}
|
|
5069
5069
|
LayoutOperation.create = create;
|
|
5070
5070
|
})(LayoutOperation || (exports.LayoutOperation = LayoutOperation = {}));
|
|
5071
|
+
var TriggerLayoutAction;
|
|
5072
|
+
(function (TriggerLayoutAction) {
|
|
5073
|
+
TriggerLayoutAction.KIND = 'triggerLayout';
|
|
5074
|
+
function is(action) {
|
|
5075
|
+
return base_protocol_1.Action.hasKind(action, TriggerLayoutAction.KIND);
|
|
5076
|
+
}
|
|
5077
|
+
TriggerLayoutAction.is = is;
|
|
5078
|
+
function create(options = {}) {
|
|
5079
|
+
return {
|
|
5080
|
+
kind: TriggerLayoutAction.KIND,
|
|
5081
|
+
...options
|
|
5082
|
+
};
|
|
5083
|
+
}
|
|
5084
|
+
TriggerLayoutAction.create = create;
|
|
5085
|
+
})(TriggerLayoutAction || (exports.TriggerLayoutAction = TriggerLayoutAction = {}));
|
|
5071
5086
|
|
|
5072
5087
|
|
|
5073
5088
|
/***/ }),
|
|
@@ -60042,7 +60057,7 @@ let GlspElkLayoutEngine = class GlspElkLayoutEngine {
|
|
|
60042
60057
|
this.modelState = modelState;
|
|
60043
60058
|
this.elk = elkFactory();
|
|
60044
60059
|
}
|
|
60045
|
-
layout() {
|
|
60060
|
+
layout(operation) {
|
|
60046
60061
|
const root = this.modelState.root;
|
|
60047
60062
|
if (!(root instanceof server_1.GGraph)) {
|
|
60048
60063
|
return root;
|
|
@@ -62898,9 +62913,9 @@ let LayoutOperationHandler = class LayoutOperationHandler extends operation_hand
|
|
|
62898
62913
|
}
|
|
62899
62914
|
return new recording_command_1.GModelRecordingCommand(this.modelState, this.serializer, () => this.executeOperation(operation));
|
|
62900
62915
|
}
|
|
62901
|
-
async executeOperation(
|
|
62916
|
+
async executeOperation(operation) {
|
|
62902
62917
|
var _a;
|
|
62903
|
-
await ((_a = this.layoutEngine) === null || _a === void 0 ? void 0 : _a.layout());
|
|
62918
|
+
await ((_a = this.layoutEngine) === null || _a === void 0 ? void 0 : _a.layout(operation));
|
|
62904
62919
|
}
|
|
62905
62920
|
};
|
|
62906
62921
|
exports.LayoutOperationHandler = LayoutOperationHandler;
|