Skip to content
This repository has been archived by the owner on Jan 21, 2023. It is now read-only.

How to enable auto layout #69

Open
3 tasks
falko-burghausen opened this issue Jan 5, 2021 · 4 comments
Open
3 tasks

How to enable auto layout #69

falko-burghausen opened this issue Jan 5, 2021 · 4 comments

Comments

@falko-burghausen
Copy link

Checklist

Question

Hi, is it currently already somehow possible to use the auto-layout functionality for the diagrams, and if yes, how can I do that?

Thanks,
Falko

@Midnighter
Copy link
Owner

Hey @falko-burghausen,

My own workflow has typically been to create a workspace, upload it, and then use the workspace editor interface to layout diagrams with a mix of auto and manual layouts. Are you saying that you would like automatic layouts to be applied via the API? Is this possible?

@simonbrowndotje
Copy link

simonbrowndotje commented Feb 11, 2021

Are you saying that you would like automatic layouts to be applied via the API? Is this possible?

There's an enableAutomaticLayout() method on the Java version of the View class that sets a property called automaticLayout ... it's just an object with a few properties. This is used by the web-based rendering engine, which subsequently uses this information to initiate the auto-layout algorithm, so the Python client library doesn't need to implement any auto-layout algorithms itself. Hope that helps!

@simonbrowndotje
Copy link

See also #65.

@Midnighter
Copy link
Owner

Ah, thank you for the clarification Simon. That actually looks quite manageable in terms of implementation.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants