mirror of
https://github.com/konvajs/konva.git
synced 2026-01-09 11:34:38 +08:00
fix: 🐛 fix/improve types
This commit is contained in:
@@ -280,7 +280,7 @@ export class Context {
|
||||
}
|
||||
}
|
||||
_applyLineCap(shape: Shape) {
|
||||
const lineCap = shape.attrs.lineCap;
|
||||
const lineCap = shape.lineCap();
|
||||
if (lineCap) {
|
||||
this.setAttr('lineCap', lineCap);
|
||||
}
|
||||
@@ -292,7 +292,7 @@ export class Context {
|
||||
}
|
||||
}
|
||||
_applyLineJoin(shape: Shape) {
|
||||
var lineJoin = shape.attrs.lineJoin;
|
||||
const lineJoin = shape.lineJoin();
|
||||
if (lineJoin) {
|
||||
this.setAttr('lineJoin', lineJoin);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user