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
refactor: simplify registration of style definitions
Use functions instead of classes.
bpmn-visualization doesn't provide extension points for the registration, so using internal functions is simpler than having classes with a single method.
Copy file name to clipboardExpand all lines: docs/contributors/mxgraph-integration.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -44,7 +44,7 @@ The [style](https://jgraph.github.io/mxgraph/docs/js-api/files/view/mxStylesheet
44
44
is defined and registered in `StyleConfigurator`. In particular, it refers to the name of a [mxShape](https://jgraph.github.io/mxgraph/docs/js-api/files/shape/mxShape-js.html)
45
45
used for the rendering.
46
46
47
-
The `mxShape` can be a standard `mxGraph` class or a custom BPMN `mxShape` defined by the `bpmn-visualization`. The custom `mxShapes` are registered by [ShapeConfigurator](../../src/component/mxgraph/config/ShapeConfigurator.ts).
47
+
The `mxShape` can be a standard `mxGraph` class or a custom BPMN `mxShape` defined by the `bpmn-visualization`. The custom `mxShapes` are registered by [registerShapes()](../../src/component/mxgraph/config/register-style-definitions.ts).
48
48
which associates the `mxShape` name (used in style definition) with the `mxShape` class to be used.
49
49
50
50
For more details, see [BPMN Support - How To](./bpmn-support-how-to.md).
0 commit comments