fix: 🐛 fix/improve types

This commit is contained in:
iaosee 2023-03-18 15:25:40 +00:00
parent 8e9878b84c
commit 970035baf7

View File

@ -280,7 +280,7 @@ export class Context {
} }
} }
_applyLineCap(shape: Shape) { _applyLineCap(shape: Shape) {
const lineCap = shape.attrs.lineCap; const lineCap = shape.lineCap();
if (lineCap) { if (lineCap) {
this.setAttr('lineCap', lineCap); this.setAttr('lineCap', lineCap);
} }
@ -292,7 +292,7 @@ export class Context {
} }
} }
_applyLineJoin(shape: Shape) { _applyLineJoin(shape: Shape) {
var lineJoin = shape.attrs.lineJoin; const lineJoin = shape.lineJoin();
if (lineJoin) { if (lineJoin) {
this.setAttr('lineJoin', lineJoin); this.setAttr('lineJoin', lineJoin);
} }