Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change borderCapStyle and borderJoinStyle defaults to be compatible with SKIA canvas #939

Merged
merged 8 commits into from
Sep 25, 2024
Merged
2 changes: 2 additions & 0 deletions src/types/ellipse.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,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 @@ -108,9 +108,11 @@ LineAnnotation.id = 'lineAnnotation';
const arrowHeadsDefaults = {
backgroundColor: undefined,
backgroundShadowColor: undefined,
borderCapStyle: undefined,
borderColor: undefined,
borderDash: undefined,
borderDashOffset: undefined,
borderJoinStyle: undefined,
borderShadowColor: undefined,
borderWidth: undefined,
display: undefined,
Expand All @@ -132,8 +134,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 @@ -48,8 +48,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
Loading