fix:处理边界问题
This commit is contained in:
+1
-1
@@ -42,7 +42,7 @@ export default class Editor {
|
||||
canvas.height = parseInt(canvas.style.height) * dpr
|
||||
canvas.style.cursor = 'text'
|
||||
ctx.scale(dpr, dpr)
|
||||
if (elementList[0].value !== ZERO) {
|
||||
if (elementList[0]?.value !== ZERO) {
|
||||
elementList.unshift({
|
||||
value: ZERO
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user