-
Task
-
Resolution: Done
-
Major
-
None
-
None
-
False
-
None
-
False
-
---
-
---
-
2022 Week 17-19 (from Apr 25), 2022 Week 20-22 (from May 16)
The scale level, once opening a workflow diagram, is set to 1 by default. This prevents the user to see the whole workflow once starting to work on it.
The goal for this task is to fit the diagram into the canvas once opening a workflow
Considerations:
- The canvas size is being dynamically set by the parent container (div). So once opening the workflow, it has to be scaled properly to fit into the actual canvas size
- This scale transform ONLY applies once opening (loading) a diagram for first time. After this point, the user is able to change the scale level, and even if the user resizes the browser or canvas area, the scale level should be preserved as the one set by the user
- Do not exceed scale min/max constraints (eg: as mouse mediators, as zoom level widget)
Impl. notes:
- Drop use of panel "ratio" (panels & preview)
- Set proper scale level once opening the canvas, in order to fit workflow size