chore(draw): use positive refX for rendering default flow marker
Fixes PNG image generation using canvg. Related to camunda/camunda-modeler#250
This commit is contained in:
parent
c89942fc4c
commit
e2211766eb
|
@ -206,14 +206,14 @@ function BpmnRenderer(eventBus, styles, pathMap, canvas, priority) {
|
|||
|
||||
if (type === 'conditional-default-flow-marker') {
|
||||
var conditionaldefaultflowMarker = svgCreate('path');
|
||||
svgAttr(conditionaldefaultflowMarker, { d: 'M 1 4 L 5 16' });
|
||||
svgAttr(conditionaldefaultflowMarker, { d: 'M 6 4 L 10 16' });
|
||||
|
||||
addMarker(id, {
|
||||
element: conditionaldefaultflowMarker,
|
||||
attrs: {
|
||||
stroke: stroke
|
||||
},
|
||||
ref: { x: -5, y: 10 },
|
||||
ref: { x: 0, y: 10 },
|
||||
scale: 0.5
|
||||
});
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue