Replies: 1 comment 2 replies
-
How to define and use a custom icon with the active shape is shown in our docs. // define myIcon
shapes.bpmn2.Activity.ACTIVITY_TYPE_ICONS['myIcon'] = 'pathToImage'; // or data URI
// later on in the code
activity.attr('icon/iconType', 'myIcon'); |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Introduction
I’m working with BPMN elements in JointJS+ and would like to add a custom icon (from a PNG file) to a BPMN activity element.
Currently, the activity element renders with the default style, but the goal is to display it with a custom icon overlaid inside the element.
Attached image shows:

Note: I cannot use a path with a baseRef or a public URL for the image source, since the application runs inside a WinForms WebView environment.
What’s the recommended way to achieve this in JointJS+?
Steps to reproduce
Beta Was this translation helpful? Give feedback.
All reactions