Skip to content

Commit 95831aa

Browse files
committed
Fix defaults for skia canvas
1 parent e94475c commit 95831aa

File tree

3 files changed

+8
-0
lines changed

3 files changed

+8
-0
lines changed

src/types/ellipse.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,8 +54,10 @@ EllipseAnnotation.id = 'ellipseAnnotation';
5454
EllipseAnnotation.defaults = {
5555
adjustScaleRange: true,
5656
backgroundShadowColor: 'transparent',
57+
borderCapStyle: 'butt',
5758
borderDash: [],
5859
borderDashOffset: 0,
60+
borderJoinStyle: 'miter',
5961
borderShadowColor: 'transparent',
6062
borderWidth: 1,
6163
display: true,

src/types/line.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,9 +107,11 @@ LineAnnotation.id = 'lineAnnotation';
107107
const arrowHeadsDefaults = {
108108
backgroundColor: undefined,
109109
backgroundShadowColor: undefined,
110+
borderCapStyle: 'butt',
110111
borderColor: undefined,
111112
borderDash: undefined,
112113
borderDashOffset: undefined,
114+
borderJoinStyle: 'miter',
113115
borderShadowColor: undefined,
114116
borderWidth: undefined,
115117
display: undefined,
@@ -131,8 +133,10 @@ LineAnnotation.defaults = {
131133
start: Object.assign({}, arrowHeadsDefaults),
132134
width: 6
133135
},
136+
borderCapStyle: 'butt',
134137
borderDash: [],
135138
borderDashOffset: 0,
139+
borderJoinStyle: 'miter',
136140
borderShadowColor: 'transparent',
137141
borderWidth: 2,
138142
curve: false,

src/types/point.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ PointAnnotation.id = 'pointAnnotation';
4949
PointAnnotation.defaults = {
5050
adjustScaleRange: true,
5151
backgroundShadowColor: 'transparent',
52+
borderCapStyle: 'butt',
5253
borderDash: [],
5354
borderDashOffset: 0,
55+
borderJoinStyle: 'miter',
5456
borderShadowColor: 'transparent',
5557
borderWidth: 1,
5658
display: true,

0 commit comments

Comments
 (0)