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

[FEAT] Let update the style of a BpmnElement returned by the APIs #2454

Open
csouchet opened this issue Jan 16, 2023 · 0 comments
Open

[FEAT] Let update the style of a BpmnElement returned by the APIs #2454

csouchet opened this issue Jan 16, 2023 · 0 comments
Labels
BPMN diagram styling Change the standard rendering: stroke color, thickness enhancement New feature or request

Comments

@csouchet
Copy link
Member

csouchet commented Jan 16, 2023

This follows implementation of #1030

In a second iteration, we propose to change the style by functions via the BpmnElement object retrieved using APIs like BpmnElementsRegistry.getElementsByIds.

Initial proposal

export interface BpmnElement {
  bpmnSemantic: BpmnSemantic;
  htmlElement: HTMLElement;
  graphics: Graphics;
}
// Usage
graphics.updateStyle(style: StyleUpdate)
// Alternative (see below)
graphics.style.update(style: StyleUpdate)

TO BE DISCUSSED:

  • review the name of the property currently named graphics and its related type
  • we may also introduce a property "style" in the graphics object to later allow to get or reset the style, and provide management for CSS classes and overlays
@csouchet csouchet added enhancement New feature or request BPMN diagram styling Change the standard rendering: stroke color, thickness labels Jan 16, 2023
@tbouffard tbouffard changed the title [FEAT] Configure programatically the style of a Shape/Edge v2 [FEAT] Configure the style of a BpmnElement returned by the APIs Mar 13, 2023
@tbouffard tbouffard changed the title [FEAT] Configure the style of a BpmnElement returned by the APIs [FEAT] Update the style of a BpmnElement returned by the APIs Mar 13, 2023
@tbouffard tbouffard changed the title [FEAT] Update the style of a BpmnElement returned by the APIs [FEAT] Let update the style of a BpmnElement returned by the APIs Mar 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BPMN diagram styling Change the standard rendering: stroke color, thickness enhancement New feature or request
Projects
Status: Todo
Development

No branches or pull requests

1 participant