Skip to content

Commit

Permalink
Revert "fix: fix lineCap for split stroke"
Browse files Browse the repository at this point in the history
This reverts commit 9af438e.
  • Loading branch information
Rui-Sun committed Jun 28, 2024
1 parent 9af438e commit e68228f
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -267,9 +267,8 @@ export function renderStroke(
context.setStrokeStyle(group, group.attribute, x, y, groupAttribute);
// if (isHighlight) {
// context.setLineDash(highlightDash);
// context.lineCap = 'butt';
// }
const oldLineCap = context.lineCap;
context.lineCap = 'square';

const { lineDash = groupAttribute.lineDash } = group.attribute as any;
// const lineDash = context.getLineDash();
Expand Down Expand Up @@ -414,7 +413,6 @@ export function renderStroke(
context.stroke();
}
context.lineDashOffset = 0;
context.lineCap = oldLineCap;
context.setLineDash([]);
}

Expand Down

0 comments on commit e68228f

Please sign in to comment.