* fix brush history redraw, clearRect use right width heights * fix brush history redraw, clearRect user proper width heights
This commit is contained in:
父節點
e43f564e8c
當前提交
1bcfedaf28
|
@ -144,7 +144,7 @@ export default {
|
|||
return filterNullBlocks(blocks)
|
||||
},
|
||||
drawPreview() {
|
||||
this.ctx.clearRect(0, 0, this.canvasName.width, this.canvasName.height);
|
||||
this.ctx.clearRect(0, 0, this.$refs[this.canvasName].width, this.$refs[this.canvasName].height);
|
||||
this.ctx.fillStyle = this.mircColours[1];
|
||||
|
||||
const BLOCK_WIDTH = this.currentAscii.blockWidth;
|
||||
|
|
|
@ -154,7 +154,7 @@ export default {
|
|||
return filterNullBlocks(blocks);
|
||||
},
|
||||
drawPreview() {
|
||||
this.ctx.clearRect(0, 0, 10000, 10000);
|
||||
this.ctx.clearRect(0, 0, this.$refs.brushcanvas.width, this.$refs.brushcanvas.height);
|
||||
this.ctx.fillStyle = this.mircColours[1];
|
||||
|
||||
const BLOCK_WIDTH = this.currentAscii.blockWidth;
|
||||
|
@ -200,8 +200,6 @@ export default {
|
|||
}
|
||||
}
|
||||
}
|
||||
|
||||
this.ctx.stroke();
|
||||
}
|
||||
},
|
||||
delayRedrawCanvas() {
|
||||
|
|
載入中…
新增問題並參考