Replies: 1 comment
-
Hi @wss29, Basic flow:
In theory you can bind an implement and bind a The For instance in the Workflow example we configure an elk DI module for the const elkLayoutModule = configureELKLayoutModule({ algorithms: ['layered'], layoutConfigurator: WorkflowLayoutConfigurator });
const serverModule = new WorkflowServerModule().configureDiagramModule(new WorkflowDiagramModule(), elkLayoutModule); (The Sourcemodel persistance As you already noticed in this default implementation the layout changes are transient i.e. they are only stored in the graphical model but not synced back to the source model. If you want to sync the layout changes back to you source model (task list in your example) you have to rebind the |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,

You know workflow demo can auto layout Diagram menu
Now I use node-json-theia in glsp-examples\project-templates. because node-json-theia uses a domain model Task which is what I want. The problem is that I want to apply the auto layout to the tasklist diagram. But It is unuseful. It seems that workflow directly uses GModel, and tasklist use the domain model, I am not very familiar with the layout code. any experienced advice can save me a lot of time? thanks in advance.
Beta Was this translation helpful? Give feedback.
All reactions