深度画布

This commit is contained in:
lzp
2026-03-18 17:25:19 +08:00
parent 0f99ea809d
commit 2df168aec7
9 changed files with 159 additions and 100 deletions

View File

@@ -120,6 +120,7 @@ export class ShapeToolManager {
width: 0,
height: 0,
fill: '#000',
strokeWidth: 0,
})
return rect
}
@@ -159,6 +160,7 @@ export class ShapeToolManager {
left: this.startX,
top: this.startY,
fill: '#000',
strokeWidth: 0,
})
return circle
}
@@ -180,6 +182,7 @@ export class ShapeToolManager {
width: 0,
height: 0,
fill: '#000',
strokeWidth: 0,
})
return triangle
}
@@ -203,6 +206,7 @@ export class ShapeToolManager {
fill: '#000',
strokeLineJoin: 'round', // 圆角连接
strokeLineCap: 'round', // 圆角端点
strokeWidth: 0,
});
return star