Skip to content

Commit c391249

Browse files
committed
Revert function order for better diff
1 parent 74f5a8f commit c391249

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

src/elements/element.line.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,6 @@ defaults._set('global', {
2323
}
2424
});
2525

26-
function setStyle(ctx, vm) {
27-
ctx.lineCap = vm.borderCapStyle;
28-
ctx.setLineDash(vm.borderDash);
29-
ctx.lineDashOffset = vm.borderDashOffset;
30-
ctx.lineJoin = vm.borderJoinStyle;
31-
ctx.lineWidth = vm.borderWidth;
32-
ctx.strokeStyle = vm.borderColor;
33-
}
34-
3526
function startAtGap(line, options) {
3627
const points = line._children;
3728
const count = points.length;
@@ -49,6 +40,15 @@ function startAtGap(line, options) {
4940
}
5041
}
5142

43+
function setStyle(ctx, vm) {
44+
ctx.lineCap = vm.borderCapStyle;
45+
ctx.setLineDash(vm.borderDash);
46+
ctx.lineDashOffset = vm.borderDashOffset;
47+
ctx.lineJoin = vm.borderJoinStyle;
48+
ctx.lineWidth = vm.borderWidth;
49+
ctx.strokeStyle = vm.borderColor;
50+
}
51+
5252
function lineTo(ctx, previous, target) {
5353
ctx.lineTo(target.x, target.y);
5454
}

0 commit comments

Comments
 (0)