Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Posibility to add custom font style to each element individually #4730

Closed
DevAutomationInf opened this issue Nov 27, 2024 · 2 comments
Closed
Labels
duplicate This issue or pull request already exists enhancement New feature or request

Comments

@DevAutomationInf
Copy link

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.

@DevAutomationInf DevAutomationInf added the enhancement New feature or request label Nov 27, 2024
@barmac
Copy link
Collaborator

barmac commented Dec 2, 2024

Hi,
Thanks for opening the issue. This is a duplicate of #1026, so I will close it though. Let's keep the discussion in the original issue.

@barmac barmac closed this as not planned Won't fix, can't repro, duplicate, stale Dec 2, 2024
@barmac barmac added the duplicate This issue or pull request already exists label Dec 2, 2024
@barmac
Copy link
Collaborator

barmac commented Dec 2, 2024

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate This issue or pull request already exists enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants