Hello,
I would like to add a custom svg icon to my tasks via custom renderer, however I have only this type of svg format:
m256,512 c-141,0 -256,-115 -256,-256 c0,-141 115,-256 256,-256 c141,0 256,115 256,256 c0,141 -115,256 -256,256 z m0,-491 c-129,0 -235,106 -235,235 c0,129 106,235 235,235 c129,0 235,-106 235,-235 c0,-129 -106,-235 -235,-235 z m122,245 l-192,96 c-3,1 -7,1 -10,-1 c-3,-2 -5,-5 -5,-9 l0,-192 c0,-4 2,-7 5,-9 c1,-1 3,-2 5,-2 c2,0 4,1 5,1 l192,96 c4,2 6,6 6,10 c0,4 -2,8 -6,10 z m-186,-89 l0,158
How can I convert it to this-like format?
m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}
Is linking custom PathMap.js the right way to add an icon?
this.modeler = new BpmnModeler({
container: canvas,
propertiesPanel: {
parent: '#js-properties-panel'
},
additionalModules: [
propertiesPanelModule,
propertiesProviderModule,
{
propertiesProvider: [ 'type', require('./bpmnProviders/TasPropertiesProvider') ],
pathMap: [ 'type', require('./bpmnProviders/PathMap') ]
}
]
});