mirror of
https://github.com/wanglin2/mind-map.git
synced 2026-02-17 22:08:25 +08:00
fix typo
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user