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
+
+
+ 张扬
+
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:支持配置创建新节点时的行为。
New:
1.Support adding summaries to some child nodes of the same node.
diff --git a/web/src/pages/Doc/en/constructor/index.md b/web/src/pages/Doc/en/constructor/index.md index 29464655..ab92dcdc 100644 --- a/web/src/pages/Doc/en/constructor/index.md +++ b/web/src/pages/Doc/en/constructor/index.md @@ -43,9 +43,9 @@ const mindMap = new MindMap({ | watermarkConfig(v0.2.4+) | Object | | Watermark config, Please refer to the table 【Watermark config】 below for detailed configuration | | | textAutoWrapWidth(v0.3.4+) | Number | 500 | Each line of text in the node will wrap automatically when it reaches the width | | | customHandleMousewheel(v0.4.3+) | Function | null | User-defined mouse wheel event processing can pass a function, and the callback parameter is the event object | | -| mousewheelAction(v0.4.3+) | String | zoom | The behavior of the mouse wheel, `zoom`(Zoom in and out)、`move`(Move up and down). If `customHandleMousewheel` passes a custom function, this property will not take effect | | +| mousewheelAction(v0.4.3+) | String | zoom(v0.9.1+ default is move) | The behavior of the mouse wheel, `zoom`(Zoom in and out)、`move`(Move up and down). If `customHandleMousewheel` passes a custom function, this property will not take effect | | | mousewheelMoveStep(v0.4.3+) | Number | 100 | When the `mousewheelAction` is set to `move`, you can use this attribute to control the step length of the view movement when the mouse scrolls. The unit is `px` | | -| mousewheelZoomActionReverse(v0.6.5+) | Boolean | false | When `mousewheelAction` is set to `zoom`, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversed | | +| mousewheelZoomActionReverse(v0.6.5+) | Boolean | false(v0.9.1+ default is true) | When `mousewheelAction` is set to `zoom`, Or when holding down the Ctrl key, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversed | | | defaultInsertSecondLevelNodeText(v0.4.7+) | String | 二级节点 | Text of the default inserted secondary node | | | defaultInsertBelowSecondLevelNodeText(v0.4.7+) | String | 分支主题 | Text for nodes below the second level inserted by default | | | expandBtnStyle(v0.5.0+) | Object | { color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' } | Expand the color of the stow button, (The fontSize and strokeColor fields were added in version 0.7.0+to set the text style for displaying the number of nodes when folded) | | @@ -103,6 +103,7 @@ const mindMap = new MindMap({ | isDisableDrag(v0.8.1+) | Boolean | false | Is disable dragging the canvas | | | disableTouchZoom(v0.8.1+) | Boolean | false | Prohibit double finger scaling, you can still use the API for scaling, which takes effect on the TouchEvent plugin | | | highlightNodeBoxStyle(v0.9.0+) | Object | { stroke: 'rgb(94, 200, 248)', fill: 'transparent' } | Highlight box style when the mouse moves into the summary to highlight the node it belongs to | | +| createNewNodeBehavior(v0.9.1+) | String | default | Behavior when creating a new node. default(By default, newly created nodes will be activated and enter editing mode. If multiple new nodes are created simultaneously, they will only be activated and will not enter editing mode)、notActive(Do not activate newly created nodes)、activeOnly(Only activate newly created nodes and do not enter editing mode) | | ### Data structure diff --git a/web/src/pages/Doc/en/constructor/index.vue b/web/src/pages/Doc/en/constructor/index.vue index e8e01e54..9f3f7594 100644 --- a/web/src/pages/Doc/en/constructor/index.vue +++ b/web/src/pages/Doc/en/constructor/index.vue @@ -164,7 +164,7 @@zoom(Zoom in and out)、move(Move up and down). If customHandleMousewheel passes a custom function, this property will not take effectmousewheelAction is set to zoom, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversedmousewheelAction is set to zoom, Or when holding down the Ctrl key, the default scrolling forward is to zoom out, and scrolling backward is to zoom in. If this property is set to true, it will be reversedmoom
张扬
+json、png、svg、pdf、markdown、xmind, support import from json、xmind、markdownjson、png、svg、pdf、markdown、xmind, support import from json、xmind、markdown1.simple-mind-map
This is an online mind map built using the simple-mind-map library and based
on Vue2.x and ElementUI. Features include:
moom
+张扬
+data of the data object, example:
v0.8.1+
Determine whether there is a hierarchical relationship from the given node instance list.
+++v0.9.1+
+
str: html stringAdd a closed state to HTML self closing tags, <div><img src="xxx"></div> -> <div><img src="xxx" /></div>。
++v0.9.1+
+
list1/list2: Node instance listCheck if the two node instance lists contain the same nodes.
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 @@
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
新增:
1.支持对同一个节点的部分子节点添加概要。
diff --git a/web/src/pages/Doc/zh/constructor/index.md b/web/src/pages/Doc/zh/constructor/index.md
index 599bac30..bf2e9ae6 100644
--- a/web/src/pages/Doc/zh/constructor/index.md
+++ b/web/src/pages/Doc/zh/constructor/index.md
@@ -43,9 +43,9 @@ const mindMap = new MindMap({
| watermarkConfig(v0.2.4+) | Object | | 水印配置,详细配置请参考下方表格【水印配置】 |
| textAutoWrapWidth(v0.3.4+) | Number | 500 | 节点内每行文本达到该宽度后自动换行 |
| customHandleMousewheel(v0.4.3+) | Function | null | 自定义鼠标滚轮事件处理,可以传一个函数,回调参数为事件对象 |
-| mousewheelAction(v0.4.3+) | String | zoom | 鼠标滚轮的行为,`zoom`(放大缩小)、`move`(上下移动)。如果`customHandleMousewheel`传了自定义函数,这个属性不生效 |
+| mousewheelAction(v0.4.3+) | String | zoom(v0.9.1+默认改为move) | 鼠标滚轮的行为,`zoom`(放大缩小)、`move`(上下移动)。如果`customHandleMousewheel`传了自定义函数,这个属性不生效 |
| mousewheelMoveStep(v0.4.3+) | Number | 100 | 当`mousewheelAction`设为`move`时,可以通过该属性控制鼠标滚动一下视图移动的步长,单位`px` |
-| mousewheelZoomActionReverse(v0.6.5+) | Boolean | false | 当mousewheelAction设为zoom时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来 |
+| mousewheelZoomActionReverse(v0.6.5+) | Boolean | false(v0.9.1+默认改为true) | 当mousewheelAction设为zoom时,或者按住Ctrl键时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来 |
| defaultInsertSecondLevelNodeText(v0.4.7+) | String | 二级节点 | 默认插入的二级节点的文字 |
| defaultInsertBelowSecondLevelNodeText(v0.4.7+) | String | 分支主题 | 默认插入的二级以下节点的文字 |
| expandBtnStyle(v0.5.0+) | Object | { color: '#808080', fill: '#fff', fontSize: 13, strokeColor: '#333333' } | 展开收起按钮的颜色,(fontSize及strokeColor字段为0.7.0+版本新增的,用于设置收起时显示节点数量的文字样式) |
@@ -103,6 +103,7 @@ const mindMap = new MindMap({
| isDisableDrag(v0.8.1+) | Boolean | false | 是否禁止拖动画布 |
| disableTouchZoom(v0.8.1+) | Boolean | false | 禁止双指缩放,你仍旧可以使用api进行缩放,对TouchEvent插件生效 |
| highlightNodeBoxStyle(v0.9.0+) | Object | { stroke: 'rgb(94, 200, 248)', fill: 'transparent' } | 鼠标移入概要高亮所属节点时的高亮框样式 |
+| createNewNodeBehavior(v0.9.1+) | String | default | 创建新节点时的行为。default(默认会激活新创建的节点,并且进入编辑模式。如果同时创建了多个新节点,那么只会激活而不会进入编辑模式)、notActive(不激活新创建的节点)、activeOnly(只激活新创建的节点,不进入编辑模式) |
### 数据结构
diff --git a/web/src/pages/Doc/zh/constructor/index.vue b/web/src/pages/Doc/zh/constructor/index.vue
index 8fe72aa5..34148edc 100644
--- a/web/src/pages/Doc/zh/constructor/index.vue
+++ b/web/src/pages/Doc/zh/constructor/index.vue
@@ -144,7 +144,7 @@
mousewheelAction(v0.4.3+)
String
-zoom
+zoom(v0.9.1+默认改为move)
鼠标滚轮的行为,zoom(放大缩小)、move(上下移动)。如果customHandleMousewheel传了自定义函数,这个属性不生效
@@ -156,8 +156,8 @@
mousewheelZoomActionReverse(v0.6.5+)
Boolean
-false
-当mousewheelAction设为zoom时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来
+false(v0.9.1+默认改为true)
+当mousewheelAction设为zoom时,或者按住Ctrl键时,默认向前滚动是缩小,向后滚动是放大,如果该属性设为true,那么会反过来
defaultInsertSecondLevelNodeText(v0.4.7+)
@@ -501,6 +501,12 @@
{ stroke: 'rgb(94, 200, 248)', fill: 'transparent' }
鼠标移入概要高亮所属节点时的高亮框样式
+
+createNewNodeBehavior(v0.9.1+)
+String
+default
+创建新节点时的行为。default(默认会激活新创建的节点,并且进入编辑模式。如果同时创建了多个新节点,那么只会激活而不会进入编辑模式)、notActive(不激活新创建的节点)、activeOnly(只激活新创建的节点,不进入编辑模式)
+
数据结构
diff --git a/web/src/pages/Doc/zh/introduction/index.md b/web/src/pages/Doc/zh/introduction/index.md
index 07d257d4..a245735f 100644
--- a/web/src/pages/Doc/zh/introduction/index.md
+++ b/web/src/pages/Doc/zh/introduction/index.md
@@ -246,4 +246,8 @@
moom
+
+
+ 张扬
+
\ No newline at end of file
diff --git a/web/src/pages/Doc/zh/introduction/index.vue b/web/src/pages/Doc/zh/introduction/index.vue
index 1fdd0997..846fb3cb 100644
--- a/web/src/pages/Doc/zh/introduction/index.vue
+++ b/web/src/pages/Doc/zh/introduction/index.vue
@@ -203,6 +203,10 @@
moom
+
+
+ 张扬
+
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+
+
+
+str:html字符串
+
+给html自闭合标签添加闭合状态,<div><img src="xxx"></div> -> <div><img src="xxx" /></div>。
+checkNodeListIsEqual(list1, list2)
+
+v0.9.1+
+
+
+list1/list2:节点实例列表
+
+检查两个节点实例列表包含的节点是否是一样的。
在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: [