Skip to content

Commit

Permalink
fix: restore marker stroke-dasharray 2015 workaround
Browse files Browse the repository at this point in the history
Reverts eb4b54f as it breaks image export.

Related to camunda/camunda-modeler#3442.
  • Loading branch information
nikku committed Feb 16, 2023
1 parent dfe5e25 commit 9c6e475
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions lib/draw/BpmnRenderer.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@ export default function BpmnRenderer(
...shapeStyle({
fill: fill,
stroke: stroke,
strokeWidth: 1
strokeWidth: 1,

// fix for safari / chrome / firefox bug not correctly
// resetting stroke dash array
strokeDasharray: [ 10000, 1 ]
})
});

Expand All @@ -193,7 +197,11 @@ export default function BpmnRenderer(
...shapeStyle({
fill: fill,
stroke: stroke,
strokeWidth: 1
strokeWidth: 1,

// fix for safari / chrome / firefox bug not correctly
// resetting stroke dash array
strokeDasharray: [ 10000, 1 ]
})
});

Expand All @@ -209,7 +217,11 @@ export default function BpmnRenderer(
...lineStyle({
fill: 'none',
stroke: stroke,
strokeWidth: 1.5
strokeWidth: 1.5,

// fix for safari / chrome / firefox bug not correctly
// resetting stroke dash array
strokeDasharray: [ 10000, 1 ]
})
});

Expand All @@ -226,7 +238,11 @@ export default function BpmnRenderer(
...lineStyle({
fill: 'none',
stroke: stroke,
strokeWidth: 1.5
strokeWidth: 1.5,

// fix for safari / chrome / firefox bug not correctly
// resetting stroke dash array
strokeDasharray: [ 10000, 1 ]
})
});

Expand Down

0 comments on commit 9c6e475

Please sign in to comment.