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
It is not possible to add a custom font size to an individual element in the diagram for embedded labels ( such as tasks, lanes, and subprocesses).
Proposed solution
It should be possible to apply a custom font style inside the custom renderer to embedded labels, as it is possible for external labels.
Alternatives considered
I considered overriding the renderEmbeddedLabel function inside the BPMNRenderer, but that is not allowed when using typescript.
Additional context
In this stackblitz example, I demonstrate how the external label font size can be changed for each element individually. However, if this property is added to the embed label, only the stroke takes effect. {labelStyle: {fontSize: '40', stroke: 'blue'}}. The cause is that the renderEmbeddedLabel doesn't take other style into consideration. I tried overriding this method but it was not possible when using typescript.
The text was updated successfully, but these errors were encountered:
The issue description looks a bit like a request for additional API in bpmn-js, but for that we open issues in https://github.com/bpmn-io/bpmn-js. This repo is for Desktop Modeler.
Problem you would like to solve
It is not possible to add a custom font size to an individual element in the diagram for embedded labels ( such as tasks, lanes, and subprocesses).
Proposed solution
It should be possible to apply a custom font style inside the custom renderer to embedded labels, as it is possible for external labels.
Alternatives considered
I considered overriding the renderEmbeddedLabel function inside the BPMNRenderer, but that is not allowed when using typescript.
Additional context
In this stackblitz example, I demonstrate how the external label font size can be changed for each element individually. However, if this property is added to the embed label, only the stroke takes effect.
{labelStyle: {fontSize: '40', stroke: 'blue'}}
. The cause is that the renderEmbeddedLabel doesn't take other style into consideration. I tried overriding this method but it was not possible when using typescript.The text was updated successfully, but these errors were encountered: