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] support custom image rendering #2730

Open
Andrii-Deiak opened this issue Jun 5, 2023 · 0 comments
Open

[FEAT] support custom image rendering #2730

Andrii-Deiak opened this issue Jun 5, 2023 · 0 comments
Labels
BPMN rendering Something about the way the lib is rendering BPMN elements BPMN support Something about the BPMN specification that the lib is already supporting or will support enhancement New feature or request
Milestone

Comments

@Andrii-Deiak
Copy link

Andrii-Deiak commented Jun 5, 2023

Is your feature request related to a problem? Please describe.
Render custom images inside of the BPMN models. I have cases where need to show custom images at any position and with possible connections:

image

Describe the solution you'd like

  1. If in the BPMN model xml presented custom image => display image.
  2. Display different type of images svg, png, jpg..

I am keeping the image in textAnnotation as base64 encoded string:

<bpmn:textAnnotation id="TextAnnotation_0gqg2sp">
            <bpmn:extensionElements>
                <x:attribute name="dataObjectType" value="IT-System"/>
                <x:attribute name="image"
                               value="{thumbnail=PD94bWwgdmVyc..."/>
            </bpmn:extensionElements>
        </bpmn:textAnnotation>

image

So I would expect if this attribute is presented in xml code, so bpmn-visualization lib can display the image.

Describe alternatives you've considered

I was inspired how bpmn-js handle rendering custom images:
https://github.com/bpmn-io/bpmn-js-example-custom-rendering

image

Maybe we can apply the same/similar approach in bpmn-visualization lib?

Additional context
Example xml file with image:

FEAT.support.custom.image.rendering-example.txt

Tasks

Preview Give feedback
No tasks being tracked yet.
@Andrii-Deiak Andrii-Deiak added the enhancement New feature or request label Jun 5, 2023
@csouchet csouchet added BPMN support Something about the BPMN specification that the lib is already supporting or will support BPMN rendering Something about the way the lib is rendering BPMN elements labels Jun 6, 2023
@tbouffard tbouffard added this to the Extensions milestone Aug 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
BPMN rendering Something about the way the lib is rendering BPMN elements BPMN support Something about the BPMN specification that the lib is already supporting or will support enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants