How to change the color of the node in BpmnViewer?

this.bpmnJS.on(‘shape.added’, (e: { element: any; }) => {
const element = e.element;
const face = this.bpmnJS.get(‘graphicsFactory’);
element.di.set(‘stroke’, ‘#000000’);
element.di.set(‘fill’, ‘#FFFF00’);
elementRegistry = this.bpmnJS.get(‘elementRegistry’);
gfx = elementRegistry.getGraphics(element);
type = element.waypoints ? ‘connection’ : ‘shape’;
face.update(type, element, gfx);
});

Can you please elaborate on what you want to achieve and the issue you are having?