Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FEAT] Allow to center the view on a given BPMN Element #165

Open
Tracked by #171
tbouffard opened this issue Oct 30, 2020 · 0 comments
Open
Tracked by #171

[FEAT] Allow to center the view on a given BPMN Element #165

tbouffard opened this issue Oct 30, 2020 · 0 comments
Labels
enhancement New feature or request

Comments

@tbouffard
Copy link
Member

tbouffard commented Oct 30, 2020

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.

center_on_elements_proposal

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

@tbouffard tbouffard added the enhancement New feature or request label Oct 30, 2020
@tbouffard tbouffard changed the title [FEAT] Center viewport on a given BPMN Elements [FEAT] Center viewport on a given BPMN Element Oct 31, 2020
@tbouffard tbouffard changed the title [FEAT] Center viewport on a given BPMN Element [FEAT] Center the BPMN container on a given BPMN Element Jan 13, 2021
@tbouffard tbouffard changed the title [FEAT] Center the BPMN container on a given BPMN Element [FEAT] Center the view on a given BPMN Element Jan 13, 2021
@tbouffard tbouffard transferred this issue from process-analytics/bpmn-visualization-js Nov 13, 2023
@tbouffard tbouffard changed the title [FEAT] Center the view on a given BPMN Element [FEAT] Allow to center the view on a given BPMN Element Nov 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant