mirror of
https://github.com/konvajs/konva.git
synced 2025-06-28 02:03:47 +08:00
fix: 🐛 fix/improve types
This commit is contained in:
parent
8e9878b84c
commit
970035baf7
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user