Resing of an external label with text readjusting #4725
Labels
enhancement
New feature or request
needs more information
Requires additional information to be actionable.
Problem you would like to solve
It is not possible to resize the external text label of elements such as groups, start events, flows, etc., and readjust the text position when the label box is resized.
Proposed solution
When the external label of a group, start event, or flow is resized, the text should readjust according to the box size. It should behave like the label of a task element, for example.
Alternatives considered
I tried to achieve this by extending the RuleProvider and the BaseRenderer with no success. See https://stackblitz.com/~/github.com/DevAutomationInf/bpmn-angular?file=src/app/custom/custom-renderer.ts:L12-L62
Additional context
In this stackblitz example I am extending the RuleProvider to apply the resizing, but I see the following issue, the text doesn’t readjust based on the box size:
I tried to obtain the readjusting of text by extending the BaseRender without success ( see stackblitz). It seems like the text is readjusted according to the box but only when the box is moved and not when resized. That is because only in this case the drawShape is triggered. Also, when the drawShape method is called again, the text positioning is changed, making it impossible to predict the behavior.
The text was updated successfully, but these errors were encountered: