Skip to content

Commit a2456c4

Browse files
committed
feat:updatePenRect
1 parent e9af650 commit a2456c4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/core/src/canvas/canvas.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4948,7 +4948,7 @@ export class Canvas {
49484948
});
49494949
}
49504950
pen.type && this.initLineRect(pen);
4951-
if(pen.gradientColors||pen.lineGradientColors){
4951+
if((pen.bkType && pen.gradientColors) || (pen.strokeType && pen.lineGradientColors)){
49524952
if (pen.calculative.gradientTimer) {
49534953
clearTimeout(pen.calculative.gradientTimer);
49544954
}

0 commit comments

Comments
 (0)