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 "CSS classes API" with names as parameters #73

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

Currently, we can do this by using the BpmnElementsSearcher to get ids from names and then call the API provided by BpmnElementsRegistry.
Having a dedicated plugin would

  • provide a single API call
  • test the plugin infrastructure in real life and detect issues and/or new needs

Proposal

  • plugin class: CssClassesByNamePlugin (find a better name)
  • plugin id: css-by-name
  • methods: all CSS classes related methods from BpmnElementsRegistry

Example of usage

const cssPlugin =  bpmnVisualization.getPlugin(‘css-by-name’) as CssClassesByNamePlugin;
cssPlugin.addCssClasses('activity-name-1', ['class-1', 'class-2'])
@tbouffard tbouffard added the enhancement New feature or request label Aug 22, 2023
@tbouffard tbouffard added this to the 0.5.0 milestone Aug 22, 2023
@tbouffard tbouffard changed the title [FEAT] Introduce a plugin to expose the "CSS classes API" with names as parameters [FEAT] Introduce a plugin to expose the bpmn-visualization "CSS classes API" with names as parameters Aug 22, 2023
@tbouffard tbouffard modified the milestones: 0.5.0, 0.6.0 Sep 13, 2023
@tbouffard tbouffard modified the milestones: 0.6.0, 0.7.0 Oct 3, 2023
@tbouffard tbouffard modified the milestones: 0.7.0, 0.8.0 Sep 3, 2024
@tbouffard tbouffard modified the milestones: 0.8.0, 0.9.0 Oct 4, 2024
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