mirror of
https://github.com/sartography/bpmn-js.git
synced 2025-01-11 17:44:12 +00:00
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') {
|
if (type === 'conditional-default-flow-marker') {
|
||||||
var conditionaldefaultflowMarker = svgCreate('path');
|
var conditionaldefaultflowMarker = svgCreate('path');
|
||||||
svgAttr(conditionaldefaultflowMarker, { d: 'M 1 4 L 5 16' });
|
svgAttr(conditionaldefaultflowMarker, { d: 'M 6 4 L 10 16' });
|
||||||
|
|
||||||
addMarker(id, {
|
addMarker(id, {
|
||||||
element: conditionaldefaultflowMarker,
|
element: conditionaldefaultflowMarker,
|
||||||
attrs: {
|
attrs: {
|
||||||
stroke: stroke
|
stroke: stroke
|
||||||
},
|
},
|
||||||
ref: { x: -5, y: 10 },
|
ref: { x: 0, y: 10 },
|
||||||
scale: 0.5
|
scale: 0.5
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user