diff --git a/README.md b/README.md index 0c986a31..56a2fb42 100644 --- a/README.md +++ b/README.md @@ -103,7 +103,9 @@ const mindMap = new MindMap({ # 微信交流群 -群聊人数较多,无法通过二维码入群,可以微信添加`wanglinguanfang`拉你入群。思维导图相关问题皆可在群里提问,不必私聊作者。 +一群已满,可以扫描如下二维码进入二群,如已过期,可以微信添加`wanglinguanfang`拉你入群。思维导图相关问题皆可在群里提问,不必私聊作者。 + + # star @@ -443,4 +445,8 @@ const mindMap = new MindMap({ + + + Jeffrey +

diff --git a/qrcode.jpg b/qrcode.jpg new file mode 100644 index 00000000..077aa563 Binary files /dev/null and b/qrcode.jpg differ diff --git a/web/src/assets/avatar/Jeffrey.jpg b/web/src/assets/avatar/Jeffrey.jpg new file mode 100644 index 00000000..3070f155 Binary files /dev/null and b/web/src/assets/avatar/Jeffrey.jpg differ diff --git a/web/src/pages/Doc/en/associativeLine/index.md b/web/src/pages/Doc/en/associativeLine/index.md index 0b81bf04..de273adc 100644 --- a/web/src/pages/Doc/en/associativeLine/index.md +++ b/web/src/pages/Doc/en/associativeLine/index.md @@ -55,6 +55,12 @@ The currently active connection line and array type are the same as the structur ## Methods +### cancelCreateLine() + +> v0.10.5+ + +Cancel the creation of the associated line midway. + ### renderAllLines() Re-render all associated lines. diff --git a/web/src/pages/Doc/en/associativeLine/index.vue b/web/src/pages/Doc/en/associativeLine/index.vue index 0f645367..05ba9a43 100644 --- a/web/src/pages/Doc/en/associativeLine/index.vue +++ b/web/src/pages/Doc/en/associativeLine/index.vue @@ -49,6 +49,11 @@ MindMap.usePlugin(AssociativeLine)

mindMap.associativeLine.activeLine

The currently active connection line and array type are the same as the structure of each item in the lineList array.

Methods

+

cancelCreateLine()

+
+

v0.10.5+

+
+

Cancel the creation of the associated line midway.

renderAllLines()

Re-render all associated lines.

removeAllLines()

diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index fdd7499e..dd12f00f 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.10.5 + +> 2024.8.2 + +Fix: + +> 1.Fixed the issue of error when dragging the scrollbar after enabling the scrollbar plugin and performance mode; +> +> 2.Fixed the issue where the rich text style of nodes was not updated when copying across levels; +> +> 3.Fixed the issue where the demo plugin did not work properly after enabling performance mode; +> +> 4.Fixed the issue of canvas jumping when the first rendering canvas is triggered after adjusting the canvas size; + +New: + +> 1.Move the node and change the node hierarchy. Nodes that have set custom rich text styles do not need to update the styles; +> +> 2.Support clicking on the canvas to cancel the creation of associated lines; +> +> 3.Automatically expand a node by moving it or copying it to a collapsed node; + +Demo: + +> 1.When the number of subordinate nodes is greater than 100, the collapse button displays ellipsis; +> +> 2.No longer write data to the browser cache when opening local file editing, to avoid the problem of local file data loss caused by triggering storage restrictions; +> +> 3.If the local file is not saved, close the page and add an interception prompt; +> +> 4.Fixed the issue in the outline where clicking and dragging a node would trigger a file drag mask on the page; + ## 0.10.4 > 2024.7.25 diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index 16365a2f..96c5477d 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -1,6 +1,30 @@ diff --git a/web/src/pages/Doc/en/utils/index.md b/web/src/pages/Doc/en/utils/index.md index 06f510eb..d746c213 100644 --- a/web/src/pages/Doc/en/utils/index.md +++ b/web/src/pages/Doc/en/utils/index.md @@ -298,7 +298,7 @@ Focus and select all specified input boxes. Adding additional data to the specified node list tree data will modify the original data. -#### createUidForAppointNodes(appointNodes, createNewId) +#### createUidForAppointNodes(appointNodes, createNewId, handle) > v0.7.2+ @@ -306,6 +306,8 @@ Adding additional data to the specified node list tree data will modify the orig - `createNewId`:v0.7.3-fix.1+, `Boolean`, default is `false`, If the node does not have a 'uid', a new 'uid' will be created. If 'true' is passed, a new 'uid' will be created regardless of whether the node data originally exists or not` +- `handle`:v0.10.5+, `null、Function`, default is `null`, You can pass a function that will be called when traversing each node, with the callback parameter being the current node being traversed. + Adding a uid to the specified node list tree data (if the uid does not exist) will modify the original data. #### getNodeIndex(node) diff --git a/web/src/pages/Doc/en/utils/index.vue b/web/src/pages/Doc/en/utils/index.vue index bca43834..ada07855 100644 --- a/web/src/pages/Doc/en/utils/index.vue +++ b/web/src/pages/Doc/en/utils/index.vue @@ -235,7 +235,7 @@ and copying the data of the data object, example:

Adding additional data to the specified node list tree data will modify the original data.

-

createUidForAppointNodes(appointNodes, createNewId)

+

createUidForAppointNodes(appointNodes, createNewId, handle)

v0.7.2+

@@ -246,6 +246,9 @@ and copying the data of the data object, example:

  • createNewId:v0.7.3-fix.1+, Boolean, default is false, If the node does not have a 'uid', a new 'uid' will be created. If 'true' is passed, a new 'uid' will be created regardless of whether the node data originally exists or not`

  • +
  • +

    handle:v0.10.5+, null、Function, default is null, You can pass a function that will be called when traversing each node, with the callback parameter being the current node being traversed.

    +
  • Adding a uid to the specified node list tree data (if the uid does not exist) will modify the original data.

    getNodeIndex(node)

    diff --git a/web/src/pages/Doc/zh/associativeLine/index.md b/web/src/pages/Doc/zh/associativeLine/index.md index 7757f98b..a1a0d17a 100644 --- a/web/src/pages/Doc/zh/associativeLine/index.md +++ b/web/src/pages/Doc/zh/associativeLine/index.md @@ -55,6 +55,12 @@ MindMap.usePlugin(AssociativeLine) ## 方法 +### cancelCreateLine() + +> v0.10.5+ + +中途取消创建关联线。 + ### renderAllLines() 重新渲染所有关联线。 diff --git a/web/src/pages/Doc/zh/associativeLine/index.vue b/web/src/pages/Doc/zh/associativeLine/index.vue index 7339f8a6..7f13dfc8 100644 --- a/web/src/pages/Doc/zh/associativeLine/index.vue +++ b/web/src/pages/Doc/zh/associativeLine/index.vue @@ -49,6 +49,11 @@ MindMap.usePlugin(AssociativeLine)

    mindMap.associativeLine.activeLine

    当前激活的连接线,数组类型,同lineList数组的每一项的结构。

    方法

    +

    cancelCreateLine()

    +
    +

    v0.10.5+

    +
    +

    中途取消创建关联线。

    renderAllLines()

    重新渲染所有关联线。

    removeAllLines()

    diff --git a/web/src/pages/Doc/zh/changelog/index.md b/web/src/pages/Doc/zh/changelog/index.md index 2db6a255..27d0a1a8 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.10.5 + +> 2024.8.2 + +修复: + +> 1.修复开启滚动条插件和性能模式后拖动滚动条报错的问题; +> +> 2.修复跨层级复制节点时,节点的富文本样式没有更新的问题; +> +> 3.修复开启性能模式后,演示插件无法正常工作的问题; +> +> 4.修复画布尺寸调整后第一次触发渲染画布会发生跳动的问题; + +新增: + +> 1.移动节点且节点层级发生了改变,设置过自定义富文本样式的节点不需要更新样式; +> +> 2.支持点击画布取消创建关联线; +> +> 3.移动节点或复制节点到收起的节点上自动展开该节点; + +Demo: + +> 1.节点下级数量大于100时,收起按钮显示省略号; +> +> 2.打开本地文件编辑的情况下不再将数据写入浏览器缓存,避免因触发存储限制导致本地文件数据丢失的问题; +> +> 3.编辑本地文件时如果未保存关闭页面增加拦截提示; +> +> 4.修复大纲里点击节点进行拖拽会触发页面的文件拖拽蒙层的问题; + ## 0.10.4 > 2024.7.25 diff --git a/web/src/pages/Doc/zh/changelog/index.vue b/web/src/pages/Doc/zh/changelog/index.vue index 61ec79bf..f29a61bd 100644 --- a/web/src/pages/Doc/zh/changelog/index.vue +++ b/web/src/pages/Doc/zh/changelog/index.vue @@ -1,6 +1,30 @@ diff --git a/web/src/pages/Doc/zh/utils/index.md b/web/src/pages/Doc/zh/utils/index.md index e0f4e876..f3f7d3c0 100644 --- a/web/src/pages/Doc/zh/utils/index.md +++ b/web/src/pages/Doc/zh/utils/index.md @@ -302,7 +302,7 @@ copyNodeTree({}, node) 给指定的节点列表树数据添加附加数据,会修改原数据。 -#### createUidForAppointNodes(appointNodes, createNewId) +#### createUidForAppointNodes(appointNodes, createNewId, handle) > v0.7.2+ @@ -310,6 +310,8 @@ copyNodeTree({}, node) - `createNewId`:v0.7.3-fix.1+,`Boolean`,默认为`false`,即如果节点不存在`uid`的话,会创建新的`uid`。如果传`true`,那么无论节点数据原来是否存在`uid`,都会创建新的`uid` +- `handle`:v0.10.5+,`null、Function`,默认为`null`,可以传递一个函数,遍历到每个节点时会调用该函数,回调参数为当前遍历到的节点。 + 给指定的节点列表树数据添加 uid(如果 uid 不存在的话),会修改原数据。 #### getNodeIndex(node) diff --git a/web/src/pages/Doc/zh/utils/index.vue b/web/src/pages/Doc/zh/utils/index.vue index 150a6cce..312a116c 100644 --- a/web/src/pages/Doc/zh/utils/index.vue +++ b/web/src/pages/Doc/zh/utils/index.vue @@ -239,7 +239,7 @@

    给指定的节点列表树数据添加附加数据,会修改原数据。

    -

    createUidForAppointNodes(appointNodes, createNewId)

    +

    createUidForAppointNodes(appointNodes, createNewId, handle)

    v0.7.2+

    @@ -250,6 +250,9 @@
  • createNewId:v0.7.3-fix.1+,Boolean,默认为false,即如果节点不存在uid的话,会创建新的uid。如果传true,那么无论节点数据原来是否存在uid,都会创建新的uid

  • +
  • +

    handle:v0.10.5+,null、Function,默认为null,可以传递一个函数,遍历到每个节点时会调用该函数,回调参数为当前遍历到的节点。

    +
  • 给指定的节点列表树数据添加 uid(如果 uid 不存在的话),会修改原数据。

    getNodeIndex(node)