@eclipse-glsp-examples/workflow-server-bundled 2.6.0-next.3 → 2.6.0

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eclipse-glsp-examples/workflow-server-bundled",
3
- "version": "2.6.0-next.3+7b1fdd9",
3
+ "version": "2.6.0",
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": "7b1fdd9129a853bd28b26b61de989715c45713a4"
52
+ "gitHead": "88356089bae7527c2df6c5331f75504495fe2aa4"
53
53
  }
@@ -62562,7 +62562,7 @@ let ComputedBoundsActionHandler = class ComputedBoundsActionHandler {
62562
62562
  const model = this.modelState.root;
62563
62563
  if (action.revision === model.revision) {
62564
62564
  this.applyBounds(model, action);
62565
- return this.submissionHandler.submitModelDirectly();
62565
+ return this.submissionHandler.submitModelDirectly(undefined, protocol_1.LayoutOperation.create([], { canvasBounds: action.canvasBounds, viewport: action.viewport }));
62566
62566
  }
62567
62567
  return [];
62568
62568
  }
@@ -63292,9 +63292,10 @@ let ModelSubmissionHandler = class ModelSubmissionHandler {
63292
63292
  * to the `ActionDispatcher`, or simply returned as the result of an `ActionHandler.execute()` method.
63293
63293
  *
63294
63294
  * @param reason The optional reason that caused the model update.
63295
+ * @param layout The optional layout operation that carries the information for auto-layout.
63295
63296
  * @returns A list of actions to be processed in order to submit the model.
63296
63297
  */
63297
- submitModel(reason) {
63298
+ submitModel(reason, layout) {
63298
63299
  this.modelFactory.createModel();
63299
63300
  const revision = this.requestModelAction ? 0 : this.modelState.root.revision + 1;
63300
63301
  this.modelState.root.revision = revision;
@@ -63302,7 +63303,7 @@ let ModelSubmissionHandler = class ModelSubmissionHandler {
63302
63303
  const root = this.serializeGModel();
63303
63304
  return [protocol_1.RequestBoundsAction.create(root), protocol_1.SetDirtyStateAction.create(this.commandStack.isDirty, { reason })];
63304
63305
  }
63305
- return this.submitModelDirectly(reason);
63306
+ return this.submitModelDirectly(reason, layout);
63306
63307
  }
63307
63308
  /**
63308
63309
  * Returns a list of actions to directly update the client-side model without any server- or client-side layouting.
@@ -63316,11 +63317,12 @@ let ModelSubmissionHandler = class ModelSubmissionHandler {
63316
63317
  * `ActionHandler.execute()` method.
63317
63318
  *
63318
63319
  * @param reason The optional reason that caused the model update.
63320
+ * @param layout The optional layout operation that carries the information for auto-layout.
63319
63321
  * @returns A list of actions to be processed in order to submit the model.
63320
63322
  */
63321
- async submitModelDirectly(reason) {
63323
+ async submitModelDirectly(reason, layout) {
63322
63324
  if (this.diagramConfiguration.layoutKind === diagram_configuration_1.ServerLayoutKind.AUTOMATIC && this.layoutEngine) {
63323
- await this.layoutEngine.layout();
63325
+ await this.layoutEngine.layout(layout);
63324
63326
  }
63325
63327
  const root = this.serializeGModel();
63326
63328
  const result = [];