diff --git a/web/src/pages/Doc/en/xmind/index.md b/web/src/pages/Doc/en/xmind/index.md index e4d9274e..b26a54a7 100644 --- a/web/src/pages/Doc/en/xmind/index.md +++ b/web/src/pages/Doc/en/xmind/index.md @@ -24,9 +24,8 @@ MindMap.xmind ### xmind.parseXmindFile(file) -Parsing the `.xmind` file and returning the parsed data. Note that this is -complete data, including the node tree, theme, and structure. You can use -`mindMap.setFullData(data)` to render the returned data to the canvas. +Parsing the `.xmind` file and returning the parsed data. You can use +`mindMap.setData(data)` to render the returned data to the canvas. `file`: `File` object @@ -35,9 +34,8 @@ complete data, including the node tree, theme, and structure. You can use 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 -file to this method for conversion. The converted data is the complete data, -including the node tree, theme, structure, etc. You can use -`mindMap.setFullData(data)` to render the returned data to the canvas. +file to this method for conversion. You can use +`mindMap.setData(data)` to render the returned data to the canvas. `content`: the contents of the `content.json` file within the `.xmind` zip package diff --git a/web/src/pages/Doc/en/xmind/index.vue b/web/src/pages/Doc/en/xmind/index.vue index a2c3af24..323a9990 100644 --- a/web/src/pages/Doc/en/xmind/index.vue +++ b/web/src/pages/Doc/en/xmind/index.vue @@ -15,17 +15,15 @@

Methods

xmind.parseXmindFile(file)

-

Parsing the .xmind file and returning the parsed data. Note that this is -complete data, including the node tree, theme, and structure. You can use -mindMap.setFullData(data) to render the returned data to the canvas.

+

Parsing the .xmind file and returning the parsed data. You can use +mindMap.setData(data) to render the returned data to the canvas.

file: File object

xmind.transformXmind(content)

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 -file to this method for conversion. The converted data is the complete data, -including the node tree, theme, structure, etc. You can use -mindMap.setFullData(data) to render the returned data to the canvas.

+file to this method for conversion. You can use +mindMap.setData(data) to render the returned data to the canvas.

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

xmind.transformOldXmind(content)

diff --git a/web/src/pages/Doc/zh/course11/index.md b/web/src/pages/Doc/zh/course11/index.md index bc705990..462f19de 100644 --- a/web/src/pages/Doc/zh/course11/index.md +++ b/web/src/pages/Doc/zh/course11/index.md @@ -1,6 +1,6 @@ # 结构 -`simple-mind-map`目前支持四种结构:logicalStructure(逻辑结构图)、mindMap(思维导图)、organizationStructure(组织结构图)、catalogOrganization(目录组织图)。 +`simple-mind-map`目前支持四种结构:logicalStructure(逻辑结构图)、mindMap(思维导图)、organizationStructure(组织结构图)、catalogOrganization(目录组织图)、timeline(时间轴)、timeline2(时间轴2)、fishbone(鱼骨图)。 可以在实例化`simple-mind-map`时通过选项指定使用的结构: diff --git a/web/src/pages/Doc/zh/course11/index.vue b/web/src/pages/Doc/zh/course11/index.vue index 6319e743..94b1db73 100644 --- a/web/src/pages/Doc/zh/course11/index.vue +++ b/web/src/pages/Doc/zh/course11/index.vue @@ -1,7 +1,7 @@