Skip to content

Commit

Permalink
Fix defaults for skia canvas
Browse files Browse the repository at this point in the history
  • Loading branch information
mlohbihler committed Aug 16, 2024
1 parent e94475c commit 95831aa
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/types/ellipse.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,10 @@ EllipseAnnotation.id = 'ellipseAnnotation';
EllipseAnnotation.defaults = {
adjustScaleRange: true,
backgroundShadowColor: 'transparent',
borderCapStyle: 'butt',
borderDash: [],
borderDashOffset: 0,
borderJoinStyle: 'miter',
borderShadowColor: 'transparent',
borderWidth: 1,
display: true,
Expand Down
4 changes: 4 additions & 0 deletions src/types/line.js
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,11 @@ LineAnnotation.id = 'lineAnnotation';
const arrowHeadsDefaults = {
backgroundColor: undefined,
backgroundShadowColor: undefined,
borderCapStyle: 'butt',
borderColor: undefined,
borderDash: undefined,
borderDashOffset: undefined,
borderJoinStyle: 'miter',
borderShadowColor: undefined,
borderWidth: undefined,
display: undefined,
Expand All @@ -131,8 +133,10 @@ LineAnnotation.defaults = {
start: Object.assign({}, arrowHeadsDefaults),
width: 6
},
borderCapStyle: 'butt',
borderDash: [],
borderDashOffset: 0,
borderJoinStyle: 'miter',
borderShadowColor: 'transparent',
borderWidth: 2,
curve: false,
Expand Down
2 changes: 2 additions & 0 deletions src/types/point.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,8 +49,10 @@ PointAnnotation.id = 'pointAnnotation';
PointAnnotation.defaults = {
adjustScaleRange: true,
backgroundShadowColor: 'transparent',
borderCapStyle: 'butt',
borderDash: [],
borderDashOffset: 0,
borderJoinStyle: 'miter',
borderShadowColor: 'transparent',
borderWidth: 1,
display: true,
Expand Down

0 comments on commit 95831aa

Please sign in to comment.