diff --git a/index.html b/index.html index c35adc8e..ac49fbaf 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -一个简单的web思维导图实现
\ No newline at end of file +一个简单的web思维导图实现
\ No newline at end of file diff --git a/simple-mind-map/package.json b/simple-mind-map/package.json index dcede82f..33811747 100644 --- a/simple-mind-map/package.json +++ b/simple-mind-map/package.json @@ -1,6 +1,6 @@ { "name": "simple-mind-map", - "version": "0.6.5", + "version": "0.6.5-fix.1", "description": "一个简单的web在线思维导图", "authors": [ { diff --git a/simple-mind-map/src/plugins/NodeImgAdjust.js b/simple-mind-map/src/plugins/NodeImgAdjust.js index 089ddb3b..5a6ab838 100644 --- a/simple-mind-map/src/plugins/NodeImgAdjust.js +++ b/simple-mind-map/src/plugins/NodeImgAdjust.js @@ -194,11 +194,12 @@ class NodeImgAdjust { this.hideHandleEl() // 更新节点图片为新的大小 let { image, imageTitle } = this.node.nodeData.data + let { scaleX, scaleY } = this.mindMap.draw.transform() this.mindMap.execCommand('SET_NODE_IMAGE', this.node, { url: image, title: imageTitle, - width: this.currentImgWidth, - height: this.currentImgHeight, + width: this.currentImgWidth / scaleX, + height: this.currentImgHeight / scaleY, custom: true // 代表自定义了图片大小 }) this.isAdjusted = true diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index 18ae71e7..379670df 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -1,5 +1,9 @@ # Changelog +## 0.6.5-fix.1 + +Fix: 1.Fix the issue of adjusting the image size incorrectly while zooming. + ## 0.6.5 Fix: 1.Fix the issue of xmind file import errors. 2.Fixed a rare issue where line breaks occur when the width of the node text is decimal. diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index 481aed2a..503f6a1a 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -1,8 +1,10 @@