How to add custom Icon drop


#1

i have followed this

as i am trying to add type Other then triangle and circle

i see its calling registry.js so do we need to manually create type of shape in registry


#2


#3

In bpmn-js every shape and connection has a businessObject property which is the actual model element with all the business logic. The error occurs because bpmn-js is trying to create a business object for your custom element but it doesn’t know how this is supposed to look like. In the custom elements example there is a custom element factory which makes sure that for custom elements like the triangle and the circle no business objects are created. If you’d want to do that you’d have to add the definitions of how this is supposed to look like. We have an example for this as well.


Add custom svg base 64 image for the dropped Pallate Element