diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index 379670df..3fe63f7d 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -1,5 +1,13 @@ # Changelog +## 0.6.6 + +New: 1.Support exporting to Xmind new version files. 2.Importing the new version of Xmind file supports importing images from nodes. 3.Add a vertical timeline structure. + +Fix: 1.The TouchEvent plugin no longer sends click events, solving the problem of two windows opening when clicking on a hyperlink on the mobile end. 2.Fix the issue of dragging and moving a node to become a child node of another node, where the parent node of that node points to not being updated. 3.Fixed an issue where the node border style was not updated when dragging a second level node into a third level node. 4.Fix the issue where the mouse will not trigger the button display when moving into the unfolded or retracted button position, except for the structure growing to the right. + +optimization: 1.The issue of excessive amplitude when optimizing the touchpad to scale the canvas. 2.The newly created node defaults to selecting all for easy deletion of default text. + ## 0.6.5-fix.1 Fix: 1.Fix the issue of adjusting the image size incorrectly while zooming. diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index 503f6a1a..a484fb0b 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -1,6 +1,10 @@ diff --git a/web/src/pages/Doc/en/utils/index.md b/web/src/pages/Doc/en/utils/index.md index a7cb0764..b6dd1037 100644 --- a/web/src/pages/Doc/en/utils/index.md +++ b/web/src/pages/Doc/en/utils/index.md @@ -153,6 +153,34 @@ Extract plain text content from an HTML string. Convert `blob` data to `data:url` data. +#### parseDataUrl(data) + +> v0.6.6+ + +Parse `data:url` data, return: + +```js +{ + type,// file type of data + base64// base64 data +} +``` + +#### getImageSize(src) + +> v0.6.6+ + +- `src`: The url of img + +Get the size of image, return: + +```js +{ + width, + height +} +``` + ## Simulate CSS background in Canvas Import: diff --git a/web/src/pages/Doc/en/utils/index.vue b/web/src/pages/Doc/en/utils/index.vue index 9899a4e5..e09a2070 100644 --- a/web/src/pages/Doc/en/utils/index.vue +++ b/web/src/pages/Doc/en/utils/index.vue @@ -98,6 +98,29 @@ and copying the data of the data object, example:

v0.5.9+

Convert blob data to data:url data.

+

parseDataUrl(data)

+
+

v0.6.6+

+
+

Parse data:url data, return:

+
{
+  type,// file type of data
+  base64// base64 data
+}
+
+

getImageSize(src)

+
+

v0.6.6+

+
+ +

Get the size of image, return:

+
{
+  width,
+  height
+}
+

Simulate CSS background in Canvas

Import:

import drawBackgroundImageToCanvas from 'simple-mind-map/src/utils/simulateCSSBackgroundInCanvas'
diff --git a/web/src/pages/Doc/en/xmind/index.md b/web/src/pages/Doc/en/xmind/index.md
index 28556fb4..63181372 100644
--- a/web/src/pages/Doc/en/xmind/index.md
+++ b/web/src/pages/Doc/en/xmind/index.md
@@ -2,7 +2,7 @@
 
 > v0.2.7+
 
-Provides methods for importing `XMind` files.
+Provides methods for importing and export `XMind` files.
 
 ## Import
 
@@ -31,6 +31,8 @@ Parsing the `.xmind` file and returning the parsed data. You can use
 
 ### xmind.transformXmind(content)
 
+> V0.6.6+version changes the method to asynchronous and returns a Promise instance
+
 Convert `xmind` data. The `.xmind` file is essentially a `zip` file that can be
 decompressed by changing the suffix to zip. Inside, there is a `content.json`
 file. If you have parsed this file yourself, you can pass the contents of this
@@ -48,4 +50,14 @@ For data parsing of the `xmind8` version, because the `.xmind` file in this
 version does not have a `content.json`, it corresponds to `content.xml`.
 
 `content`: the contents of the `content.xml` file within the `.xmind` zip
-package
\ No newline at end of file
+package
+
+### transformToXmind(data, name)
+
+> v0.6.6+
+
+- `data`: `simple-mind-map` data, you can get it by `mindMap.getData()` method.
+
+- `name`: The file name to export.
+
+Convert the `simple mind map` data to an `xmind` file. This method is asynchronous and returns an instance of `Promise`. The returned data is a `blob` type `zip` compressed package data, which you can download as a file yourself.
\ No newline at end of file
diff --git a/web/src/pages/Doc/en/xmind/index.vue b/web/src/pages/Doc/en/xmind/index.vue
index c8bc7f05..713a5782 100644
--- a/web/src/pages/Doc/en/xmind/index.vue
+++ b/web/src/pages/Doc/en/xmind/index.vue
@@ -4,7 +4,7 @@
 

v0.2.7+

-

Provides methods for importing XMind files.

+

Provides methods for importing and export XMind files.

Import

import xmind from 'simple-mind-map/src/parse/xmind.js'
 
@@ -19,6 +19,9 @@ mindMap.setData(data) to render the returned data to the canvas.

file: File object

xmind.transformXmind(content)

+
+

V0.6.6+version changes the method to asynchronous and returns a Promise instance

+

Convert xmind data. The .xmind file is essentially a zip file that can be decompressed by changing the suffix to zip. Inside, there is a content.json file. If you have parsed this file yourself, you can pass the contents of this @@ -34,6 +37,19 @@ package

version does not have a content.json, it corresponds to content.xml.

content: the contents of the content.xml file within the .xmind zip package

+

transformToXmind(data, name)

+
+

v0.6.6+

+
+ +

Convert the simple mind map data to an xmind file. This method is asynchronous and returns an instance of Promise. The returned data is a blob type zip compressed package data, which you can download as a file yourself.

diff --git a/web/src/pages/Doc/zh/changelog/index.md b/web/src/pages/Doc/zh/changelog/index.md index e16211be..1318fbf1 100644 --- a/web/src/pages/Doc/zh/changelog/index.md +++ b/web/src/pages/Doc/zh/changelog/index.md @@ -1,5 +1,13 @@ # Changelog +## 0.6.6 + +新增:1.支持导出为Xmind新版文件。2.导入Xmind新版文件支持导入节点中的图片。 3.新增竖向时间轴结构。 + +修复:1.TouchEvent插件不再派发click事件,解决移动端点击超链接会打开两个窗口的问题。 2.修复拖拽移动一个节点成为另一个节点的子节点时该节点的父节点指向未更新的问题。 3.修复二级节点拖拽成三级节点时节点边框样式未更新的问题。 4.修复向右生长的结构外其他结构鼠标移入展开收起按钮位置时不会触发按钮显示的问题。 + +优化:1.优化触控板缩放画布时幅度过大的问题。2.刚创建的节点默认全选方便删除默认文本。 + ## 0.6.5-fix.1 修复:1.修复在缩放情况下调整图片大小不正确的问题。 diff --git a/web/src/pages/Doc/zh/changelog/index.vue b/web/src/pages/Doc/zh/changelog/index.vue index 0c2ae343..3e43e1d5 100644 --- a/web/src/pages/Doc/zh/changelog/index.vue +++ b/web/src/pages/Doc/zh/changelog/index.vue @@ -1,6 +1,10 @@