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] Introduce a plugin to expose the bpmn-visualization "overlays API" with names as parameters #74

Open
tbouffard opened this issue Aug 22, 2023 · 0 comments
Labels
enhancement New feature or request
Milestone

Comments

@tbouffard
Copy link
Member

tbouffard commented Aug 22, 2023

Rationale

See #73

Proposal

  • plugin class: OverlaysByNamePlugin (find a better name)
  • plugin id: overlays-by-name
  • methods: all overlays related methods from BpmnElementsRegistry

Note: the existing OverlaysPlugin provides a setVisible method that is not related to names or ids. It should be also available in the "name based" plugin (we could introduce a base class for both plugins).

Example of usage

const overlaysPlugin =  bpmnVisualization.getPlugin(‘overlays-by-name’) as OverlaysByNamePlugin;
overlaysPlugin.addOverlays('activity-name-1', {...})
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