diff --git a/README.md b/README.md index 84248e0c..03e075a5 100644 --- a/README.md +++ b/README.md @@ -226,4 +226,8 @@ const mindMap = new MindMap({ moom + + + 张扬 +

\ No newline at end of file diff --git a/web/src/assets/avatar/张扬.png b/web/src/assets/avatar/张扬.png new file mode 100644 index 00000000..6c4602a4 Binary files /dev/null and b/web/src/assets/avatar/张扬.png differ diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index 3ac4bf44..a12e600f 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -1,5 +1,37 @@ # Changelog +## 0.9.1 + +Fix: + +> 1.Fix the issue of exporting images, SVGs, and PDFs with errors when customizing node content. +> +> 2.Optimize the distribution of node activation events, do not distribute events when the activation node has not changed, and skip intermediate events when distributing multiple events in a short period of time. +> +> 3.Fix the issue where the edit box and node detach when scrolling the canvas with the mouse while the node is in editing mode. +> +> 4.Fix the issue of shortcut keys becoming invalid when zooming the canvas with the mouse wheel and then exiting node editing while in node editing mode. +> +> 5.Fix the issue where clicking on a node can also trigger node_dragend event. +> +> 6.Fix that clicking on the canvas and nodes while not in the format brush will also trigger the painter_end event. +> +> 7.Fixed the issue where the mind map text editing box was not destroyed during node text editing and associated line text editing. + +New: + +> 1.When holding down the Ctrl key, disable the node double-click event. +> +> 2.Support configuring the behavior when creating new nodes: focusing and entering editing, not focusing, only focusing. +> +> 3.When searching in read-only mode, add a highlight effect to the currently matched node. +> +> 4.The default behavior of the mouse scroll wheel is to move the canvas up and down; The default is to scroll forward to enlarge the canvas and zoom back. +> +> 5.When the mouse scroll wheel behavior is to move the canvas up and down, it supports holding down the Ctrl key to zoom in and out of the canvas. + +Demo:支持配置创建新节点时的行为。 + ## 0.9.0 New: diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index f5f97054..fca42dc8 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -1,6 +1,26 @@ diff --git a/web/src/pages/Doc/en/utils/index.md b/web/src/pages/Doc/en/utils/index.md index 974da1a6..1954fd00 100644 --- a/web/src/pages/Doc/en/utils/index.md +++ b/web/src/pages/Doc/en/utils/index.md @@ -408,6 +408,22 @@ Remove the data of a node from its parent node's `nodeData.children` list. Determine whether there is a hierarchical relationship from the given node instance list. +#### handleSelfCloseTags(str) + +> v0.9.1+ + +- `str`: html string + +Add a closed state to HTML self closing tags, `
` -> `
`。 + +#### checkNodeListIsEqual(list1, list2) + +> v0.9.1+ + +- `list1/list2`: Node instance list + +Check if the two node instance lists contain the same nodes. + ## 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 05f23409..43d1dfe1 100644 --- a/web/src/pages/Doc/en/utils/index.vue +++ b/web/src/pages/Doc/en/utils/index.vue @@ -333,6 +333,22 @@ and copying the data of the data object, example:

v0.8.1+

Determine whether there is a hierarchical relationship from the given node instance list.

+

handleSelfCloseTags(str)

+
+

v0.9.1+

+
+ +

Add a closed state to HTML self closing tags, <div><img src="xxx"></div> -> <div><img src="xxx" /></div>

+

checkNodeListIsEqual(list1, list2)

+
+

v0.9.1+

+
+ +

Check if the two node instance lists contain the same nodes.

Simulate CSS background in Canvas

Import:

import drawBackgroundImageToCanvas from 'simple-mind-map/src/utils/simulateCSSBackgroundInCanvas'
diff --git a/web/src/pages/Doc/zh/changelog/index.md b/web/src/pages/Doc/zh/changelog/index.md
index 48177a5b..e520746a 100644
--- a/web/src/pages/Doc/zh/changelog/index.md
+++ b/web/src/pages/Doc/zh/changelog/index.md
@@ -1,5 +1,37 @@
 # Changelog
 
+## 0.9.1
+
+修复:
+
+> 1.修复自定义节点内容时导出图片、svg、pdf报错的问题。
+>
+> 2.优化节点激活事件的派发,激活节点未改变时不派发事件,短时间派发多次事件时跳过中间事件。
+>
+> 3.修复节点处于编辑状态时,通过鼠标滚动移动画布后编辑框和节点脱离的问题。
+>
+> 4.修复在节点编辑状态中通过鼠标滚轮缩放画布再退出节点编辑后快捷键失效的问题。
+>
+> 5.修复点击节点也会触发node_dragend事件的问题。
+>
+> 6.修复不在格式刷时点击画布和节点也会触发painter_end事件的问题。
+>
+> 7.修复在节点文本编辑中和关联线文本编辑中时销毁思维导图文本编辑框未被销毁的问题。
+
+新增:
+
+> 1.按住Ctrl键时禁用节点双击事件。
+>
+> 2.支持配置创建新节点时的行为:聚焦且进入编辑、不聚焦、只聚焦。
+>
+> 3.只读模式下搜索时给当前匹配到的节点增加高亮效果。
+>
+> 4.鼠标滚轮行为默认改为上下移动画布;默认改为向前滚动放大画布,向后缩小。
+>
+> 5.在鼠标滚轮行为为上下移动画布时,支持按住Ctrl键进行放大缩小画布。
+
+Demo:支持配置创建新节点时的行为。
+
 ## 0.9.0
 
 新增:
diff --git a/web/src/pages/Doc/zh/changelog/index.vue b/web/src/pages/Doc/zh/changelog/index.vue
index 5d8221a2..69e4c1fe 100644
--- a/web/src/pages/Doc/zh/changelog/index.vue
+++ b/web/src/pages/Doc/zh/changelog/index.vue
@@ -1,6 +1,26 @@
 
diff --git a/web/src/pages/Doc/zh/utils/index.md b/web/src/pages/Doc/zh/utils/index.md
index b54f1998..388d4266 100644
--- a/web/src/pages/Doc/zh/utils/index.md
+++ b/web/src/pages/Doc/zh/utils/index.md
@@ -403,6 +403,22 @@ copyNodeTree({}, node)
 
 从给定的节点实例列表里判断是否存在上下级关系。
 
+#### handleSelfCloseTags(str)
+
+> v0.9.1+
+
+- `str`:html字符串
+
+给html自闭合标签添加闭合状态,`
` -> `
`。 + +#### checkNodeListIsEqual(list1, list2) + +> v0.9.1+ + +- `list1/list2`:节点实例列表 + +检查两个节点实例列表包含的节点是否是一样的。 + ## 在canvas中模拟css的背景属性 引入: diff --git a/web/src/pages/Doc/zh/utils/index.vue b/web/src/pages/Doc/zh/utils/index.vue index 091375b8..f8af5702 100644 --- a/web/src/pages/Doc/zh/utils/index.vue +++ b/web/src/pages/Doc/zh/utils/index.vue @@ -328,6 +328,22 @@

v0.8.1+

从给定的节点实例列表里判断是否存在上下级关系。

+

handleSelfCloseTags(str)

+
+

v0.9.1+

+
+ +

给html自闭合标签添加闭合状态,<div><img src="xxx"></div> -> <div><img src="xxx" /></div>

+

checkNodeListIsEqual(list1, list2)

+
+

v0.9.1+

+
+ +

检查两个节点实例列表包含的节点是否是一样的。

在canvas中模拟css的背景属性

引入:

import drawBackgroundImageToCanvas from 'simple-mind-map/src/utils/simulateCSSBackgroundInCanvas'
diff --git a/web/src/pages/Index/components/Block2.vue b/web/src/pages/Index/components/Block2.vue
index a79b13d4..d7c48a0e 100644
--- a/web/src/pages/Index/components/Block2.vue
+++ b/web/src/pages/Index/components/Block2.vue
@@ -42,11 +42,11 @@ export default {
       dataList: [
         {
           icon: 'iconstar',
-          value: 'Github star数量1000+'
+          value: 'Github star数量2000+'
         },
         {
           icon: 'iconfork',
-          value: 'Github fork数量200+'
+          value: 'Github fork数量250+'
         },
         {
           icon: 'iconxiazai',
@@ -54,7 +54,7 @@ export default {
         },
         {
           icon: 'iconteamwork',
-          value: '代码贡献者12+'
+          value: '代码贡献者14+'
         }
       ],
       functionList: [