You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
I would like that the diagram is centered on a BPMN element.
For instance, I want to
display elements around a task which is running to let the user focus on elements around the task in the execution flow, the rest of the diagram is not important on this case
focus on task currently encountering errors
Describe the solution you'd like
Something which behaves like in following animation (load B.2.0 using process-analytics/bpmn-visualization-js#808, event based gateway in orange).
1st load the diagram, then decided to center and zoom to the event based gateway.
The application/integration would provide at least the BPMN element id, and optionally: dimensions, scaling factor, ....
This could be done at diagram load time and at any time.
Is your feature request related to a problem? Please describe.
I would like that the diagram is centered on a BPMN element.
For instance, I want to
Describe the solution you'd like
Something which behaves like in following animation (load
B.2.0
using process-analytics/bpmn-visualization-js#808, event based gateway in orange).1st load the diagram, then decided to center and zoom to the
event based gateway
.The application/integration would provide at least the BPMN element id, and optionally: dimensions, scaling factor, ....
This could be done at diagram load time and at any time.
Additional context
mxGraph
provides a way to zoom to a rectangle, see https://jgraph.github.io/mxgraph/docs/js-api/files/view/mxGraph-js.html#mxGraph.zoomToRect.See also mxGraph.scrollCellToVisible
Notes
[UPDATE 2023-11-12] Originally named https://github.com/process-analytics/bpmn-visualization-js/issues/849
The text was updated successfully, but these errors were encountered: