Skip to content

Commit 3253be7

Browse files
fix
1 parent 3a59c9b commit 3253be7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

markjs/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -422,8 +422,8 @@ class Markjs {
422422
let {
423423
left,
424424
top,
425-
originWidth = width,
426-
originHeight = height
425+
width: originWidth,
426+
height: originHeight
427427
} = this.canvasEle.getBoundingClientRect()
428428
// 响应父元素上添加的缩放比例
429429
const factorX = originWidth / this.canvasEle.offsetWidth;

0 commit comments

Comments
 (0)