feat: 完成文字涂色卡功能
This commit is contained in:
@@ -147,8 +147,6 @@ class TextDrawService {
|
||||
canvas.width = width;
|
||||
canvas.height = height;
|
||||
|
||||
console.log('width---:', width);
|
||||
console.log('height---:', height);
|
||||
this.clear();
|
||||
ctx.fillStyle = '#fff'; // 设置背景色为白色
|
||||
ctx.fillRect(0, 0, width, height);
|
||||
|
||||
@@ -210,8 +210,6 @@ class TextDrawService {
|
||||
canvas.width = width;
|
||||
canvas.height = height;
|
||||
|
||||
console.log('width---:', width);
|
||||
console.log('height---:', height);
|
||||
this.clear();
|
||||
ctx.fillStyle = '#fff'; // 设置背景色为白色
|
||||
ctx.fillRect(0, 0, width, height);
|
||||
|
||||
Reference in New Issue
Block a user