Optional
bpmnElementIds: string | string[]The BPMN ID of the element(s) whose style must be reset. When passing a nullish parameter, the style of all BPMN elements will be reset. Passing an empty array has no effect.
bpmnVisualization.bpmnElementsRegistry.resetStyle('activity_1');
Notes:
bpmn-visualization
applies style properties
to all elements according to their types.
So if you want to style all elements of a certain type, change the default configuration of the styles instead of updating the element afterward. See the repository providing the
examples of the bpmn-visualization
TypeScript library for more details.Update the style of one or several BPMN elements.
The BPMN ID of the element(s) whose style must be updated.
The style properties to update.
bpmnVisualization.bpmnElementsRegistry.updateStyle('activity_1', {
stroke: {
color: 'red',
},
});
Notes:
bpmn-visualization
applies style properties
to all elements according to their types.
So if you want to style all elements of a certain type, change the default configuration of the styles instead of updating the element afterwards. See the repository providing the
examples of the bpmn-visualization
TypeScript library for more details.
Reset the style that were previously updated to one or more BPMN elements using the updateStyle method.