Skip to content

Commit

Permalink
fix type. close #1643
Browse files Browse the repository at this point in the history
  • Loading branch information
lavrton committed Sep 18, 2023
1 parent d8d6d65 commit 0fe8616
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ git tag $1 >/dev/null
cd ../konva
git push >/dev/null
git push --tags >/dev/null
npm publish >/dev/null
npm publish

echo "copy konva.js into konva-site"
cp ./konva.js ../konva-site/
Expand Down
2 changes: 1 addition & 1 deletion src/Shape.ts
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ export class Shape<
const fillRect = this.getSelfRect();

const applyStroke = !config.skipStroke && this.hasStroke();
const strokeWidth = (applyStroke && this.strokeWidth()) || 0;
const strokeWidth: number = (applyStroke && this.strokeWidth()) || 0;

const fillAndStrokeWidth = fillRect.width + strokeWidth;
const fillAndStrokeHeight = fillRect.height + strokeWidth;
Expand Down

0 comments on commit 0fe8616

Please sign in to comment.