From 2a49dd91402890ef0a930f3aa4d1fec323c660d9 Mon Sep 17 00:00:00 2001 From: wanglin2 <1013335014@qq.com> Date: Tue, 17 Oct 2023 11:13:06 +0800 Subject: [PATCH] Doc: update --- web/src/pages/Doc/en/associativeLine/index.md | 12 + .../pages/Doc/en/associativeLine/index.vue | 10 + web/src/pages/Doc/en/changelog/index.md | 46 + web/src/pages/Doc/en/changelog/index.vue | 29 + web/src/pages/Doc/en/constructor/index.md | 106 +- web/src/pages/Doc/en/constructor/index.vue | 1324 ++++++++++++++++- web/src/pages/Doc/en/node/index.md | 8 + web/src/pages/Doc/en/node/index.vue | 8 + web/src/pages/Doc/en/render/index.md | 70 +- web/src/pages/Doc/en/render/index.vue | 69 +- web/src/pages/Doc/en/richText/index.md | 8 + web/src/pages/Doc/en/richText/index.vue | 8 + web/src/pages/Doc/en/utils/index.md | 39 + web/src/pages/Doc/en/utils/index.vue | 33 + web/src/pages/Doc/zh/associativeLine/index.md | 14 +- .../pages/Doc/zh/associativeLine/index.vue | 10 + web/src/pages/Doc/zh/changelog/index.md | 46 + web/src/pages/Doc/zh/changelog/index.vue | 29 + web/src/pages/Doc/zh/constructor/index.md | 108 +- web/src/pages/Doc/zh/constructor/index.vue | 109 +- web/src/pages/Doc/zh/node/index.md | 8 + web/src/pages/Doc/zh/node/index.vue | 8 + web/src/pages/Doc/zh/render/index.md | 76 +- web/src/pages/Doc/zh/render/index.vue | 77 +- web/src/pages/Doc/zh/richText/index.md | 8 + web/src/pages/Doc/zh/richText/index.vue | 8 + web/src/pages/Doc/zh/utils/index.md | 39 + web/src/pages/Doc/zh/utils/index.vue | 33 + 28 files changed, 2263 insertions(+), 80 deletions(-) diff --git a/web/src/pages/Doc/en/associativeLine/index.md b/web/src/pages/Doc/en/associativeLine/index.md index 06685ee1..0b81bf04 100644 --- a/web/src/pages/Doc/en/associativeLine/index.md +++ b/web/src/pages/Doc/en/associativeLine/index.md @@ -88,3 +88,15 @@ Deletes the currently active associative line. Clicking on an associated line is ### clearActiveLine() Clears the active state of the currently active association line. + +### front() + +> v0.8.0+ + +The top-level display of the associated line. + +### back() + +> v0.8.0+ + +The associated line returns to its original level. \ No newline at end of file diff --git a/web/src/pages/Doc/en/associativeLine/index.vue b/web/src/pages/Doc/en/associativeLine/index.vue index bc39c6cf..0f645367 100644 --- a/web/src/pages/Doc/en/associativeLine/index.vue +++ b/web/src/pages/Doc/en/associativeLine/index.vue @@ -66,6 +66,16 @@ MindMap.usePlugin(AssociativeLine)

Deletes the currently active associative line. Clicking on an associated line is considered active.

clearActiveLine()

Clears the active state of the currently active association line.

+

front()

+
+

v0.8.0+

+
+

The top-level display of the associated line.

+

back()

+
+

v0.8.0+

+
+

The associated line returns to its original level.

diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index b59bfffa..7ddd64be 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -1,5 +1,51 @@ # Changelog +## 0.8.0 + +Breaking change: Greatly optimize some of the code and slightly improve performance, mainly by using the 'render' class to remove useless logic, adjust unreasonable implementations, and extract duplicate code; Modify function names, functions, etc. + +Fix: + +> Fix the issue of the arrow of the associated line disappearing when exporting images and SVGs. +> +> Fix the issue of abnormal operation returning to the root node after resizing the container. +> +> Fix that the shortcut key operations for inserting summary, moving up, down, and organizing layout with one click did not trigger data_ The issue with the change event. + +New: + +> Optimize the canvas DOM structure and render nodes, lines, and associated lines in layers. +> +> Optimize the watermark plugin. +> +> The setTheme, setThemeConfig, and setLayout functions add parameters that do not trigger re rendering. +> +> Add a command to insert a parent node. +> +> Add a command to only delete the current node. +> +> Automatically expand child nodes when inserting a summary. +> +> Clear the current active node when right-clicking on the canvas. +> +> The folded active nodes are synchronously deleted from the list of active nodes. +> +> Pasting text with line breaks supports controlling whether nodes are split by line breaks. + +Demo: + +> Modify the method and copy to return to the root node. +> +> Fix the issue of ineffective first switching when switching themes in overlay mode. +> +> The right-click menu adds the function of inserting parent nodes and deleting only the current node. +> +> The top toolbar supports automatic folding into more according to the window width. +> +> Support manual input of zoom factor. +> +> Improve the English translation of the interface. + ## 0.7.3-fix.2 Fix some issues with collaborative editing: diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index 3881f6f7..25ae5d07 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -1,6 +1,35 @@ diff --git a/web/src/pages/Doc/zh/changelog/index.md b/web/src/pages/Doc/zh/changelog/index.md index 34ec1bd6..69dec582 100644 --- a/web/src/pages/Doc/zh/changelog/index.md +++ b/web/src/pages/Doc/zh/changelog/index.md @@ -1,5 +1,51 @@ # Changelog +## 0.8.0 + +破坏性更新:大幅优化部分代码,小幅提升性能,主要是`render`类,删除无用逻辑、调整不合理的实现、提取重复代码;修改函数名称、函数功能等。 + +修复: + +> 修复导出图片和svg时关联线的箭头消失的问题。 +> +> 修复调整容器大小后回到根节点的操作异常的问题。 +> +> 修复插入概要、上移、下移、一键整理布局的快捷键操作没有触发data_change事件的问题。 + +新增: + +> 优化画布DOM结构,将节点、连线、关联线分层渲染。 +> +> 优化水印插件。 +> +> setTheme、setThemeConfig、setLayout函数增加不触发重新渲染的参数。 +> +> 新增插入父节点的命令。 +> +> 新增仅删除当前节点的命令。 +> +> 插入概要时自动展开子节点。 +> +> 鼠标右键单击画布时清除当前激活节点。 +> +> 被收起的激活节点同步从激活节点列表里删除。 +> +> 粘贴带换行的文本支持控制是否按换行分割节点。 + +Demo: + +> 修改回到根节点的方法及文案。 +> +> 修复覆盖方式切换主题时第一次切换不生效的问题。 +> +> 右键菜单新增插入父节点和仅删除当前节点的功能。 +> +> 顶部工具栏支持根据窗口宽度自动收起到更多中。 +> +> 支持手动输入缩放倍数。 +> +> 完善界面英文翻译。 + ## 0.7.3-fix.2 修复协同编辑的一些问题: diff --git a/web/src/pages/Doc/zh/changelog/index.vue b/web/src/pages/Doc/zh/changelog/index.vue index be6dafb9..d7a993de 100644 --- a/web/src/pages/Doc/zh/changelog/index.vue +++ b/web/src/pages/Doc/zh/changelog/index.vue @@ -1,6 +1,35 @@