[FEAT] Provide a way to configure the defaults of the BPMN renderer #1993
Labels
BPMN diagram styling
Change the standard rendering: stroke color, thickness
enhancement
New feature or request
Milestone
Is your feature request related to a problem? Please describe.
I would like to be able to change the defaults at
bpmn-visualization
initialization. At least for settings shared by all elements:Describe the solution you'd like
Currently, examples show hacks to modify the defaults. They involve changing internal values or extending the library.
I would like to be able to do it without changing the lib internals.
[UPDATE 2023-07-13]
For more details, see #2659 (comment)
Meta tasks
StyleDefaut
and use mxGraph global styles instead refactor(theme): use global style instead of StyleDefault bpmn-visualization-examples#519StyleDefaut
to notice user that it is going to be removed from the public API (it was experimental) or at least warn user in the release notes.StyleDefaut
internal (breaking changes).Additional context
Available examples in v0.23.3:
These examples use an hack that update the values defined in
StyleDefault
. The changes are global so they have side effects. It is also not very friendly to use this hack.Initial proposal for a way to pass defaults
This could be done with something like (non exhaustive, just for illustration)
renderer
options will be taken through [FEAT] Define the options that will be used to configure the Renderer #2659The text was updated successfully, but these errors were encountered: