Merge pull request #16 from harris2012/patch-2

fix typo
This commit is contained in:
街角小林 2022-07-29 21:59:53 +08:00 committed by GitHub
commit 71ac739964

View File

@ -52,7 +52,7 @@ class Export {
// 获取变换后的位置尺寸信息其实是getBoundingClientRect方法的包装方法
const rect = draw.rbox()
// 将svg设置为实际内容的宽高
svg.size(rect.wdith, rect.height)
svg.size(rect.width, rect.height)
// 把实际内容变换
draw.translate(-rect.x + elRect.left, -rect.y + elRect.top)
// 克隆一份数据
@ -223,4 +223,4 @@ class Export {
}
}
export default Export
export default Export