Render external label of custom element

Hi,
I’m trying to add an external label to a custom element. I’ve already implemented a CustomLabelEditingProvider and created a CustomUpdateLabelHandler, so I can add, change and delete a label without problems. The problem lies in rendering the label as external (rendering it as embedded is not a problem).
The result is the following image:
immagine

If I have no other choice I suppose I can work on changing the settings of the embedded label to show it under the custom element, but I’d like to make sure it’s not just a stupid mistake.

Here is the link of the repo with the code: https://github.com/guidou3/CustomBpmn.

Solved. To fix this problem I had to put the renderer of label inside my custom renderer. Apparently the software doesn’t use the definition inside bpmn-js.

1 Like