diff --git a/web/src/assets/avatar/木星二号.jpg b/web/src/assets/avatar/木星二号.jpg new file mode 100644 index 00000000..6c1c65e9 Binary files /dev/null and b/web/src/assets/avatar/木星二号.jpg differ diff --git a/web/src/pages/Doc/catalogList.js b/web/src/pages/Doc/catalogList.js index d3257bb9..70f7dd79 100644 --- a/web/src/pages/Doc/catalogList.js +++ b/web/src/pages/Doc/catalogList.js @@ -40,6 +40,7 @@ let APIList = [ 'cooperate', 'rainbowLines', 'handDrawnLikeStyle', + 'demonstrate', 'xmind', 'markdown', 'utils' diff --git a/web/src/pages/Doc/en/changelog/index.md b/web/src/pages/Doc/en/changelog/index.md index 3db14dd0..e9cc9fd6 100644 --- a/web/src/pages/Doc/en/changelog/index.md +++ b/web/src/pages/Doc/en/changelog/index.md @@ -1,5 +1,45 @@ # Changelog +## 0.9.11 + +Fix + +> 1.Fix the issue where clicking on the summary will trigger the data_change_detail event; +> +> 2.Fix the issue where the custom style command for removing all nodes with one click does not support summaries that are not arrays; +> +> 3.Fix the issue where summary nodes created in rich text mode are not rich text; +> +> 4.Fix the issue where the rich text plugin did not process node summaries when converting node data; +> +> 5.Fix the issue where the highlighted box of the corresponding node will be displayed incorrectly when pressing enter to end in summary node text editing; +> +> 6.Fix the issue of node width and height loss after text editing when creating multiple instances simultaneously; +> +> 7.Fix the issue where the expand/collapse button does not disappear after deleting all child nodes of the currently activated node; +> +> 8.Fix the issue where the canvas automatically moves and cannot stop when dragging nodes to the edge; + +New: + +> 1.Support default focus and entering editing mode when inserting summaries; +> +> 2.Support holding down the Command and Win keys to select multiple nodes; +> +> 3.Support exporting a node as an image; +> +> 4.Add demonstration plugin; + +Demo: + +> 1.Add the Export as Image button in the right-click menu of the node; +> +> 2.Optimize the issue of incomplete menu display when clicking the right mouse button at the window edge; +> +> 3.Add demonstration mode; +> +> 4.When copying Zhixi data, create summary data in array form; + ## 0.9.10 Fix: diff --git a/web/src/pages/Doc/en/changelog/index.vue b/web/src/pages/Doc/en/changelog/index.vue index d66f740b..712f321e 100644 --- a/web/src/pages/Doc/en/changelog/index.vue +++ b/web/src/pages/Doc/en/changelog/index.vue @@ -1,6 +1,32 @@ diff --git a/web/src/pages/Doc/en/node/index.md b/web/src/pages/Doc/en/node/index.md index fb4091eb..ccae293c 100644 --- a/web/src/pages/Doc/en/node/index.md +++ b/web/src/pages/Doc/en/node/index.md @@ -56,6 +56,12 @@ Whether the node is currently being dragged ## Methods +### deactivate() + +> 0.9.11+ + +Deactivate the node. + ### getAncestorNodes() > v0.9.9+ diff --git a/web/src/pages/Doc/en/node/index.vue b/web/src/pages/Doc/en/node/index.vue index 41bad2f5..4ffabefc 100644 --- a/web/src/pages/Doc/en/node/index.vue +++ b/web/src/pages/Doc/en/node/index.vue @@ -31,6 +31,11 @@

Whether the node is currently being dragged

Methods

+

deactivate()

+
+

0.9.11+

+
+

Deactivate the node.

getAncestorNodes()

v0.9.9+

diff --git a/web/src/pages/Doc/en/utils/index.md b/web/src/pages/Doc/en/utils/index.md index 4dd624f6..c45ea2b6 100644 --- a/web/src/pages/Doc/en/utils/index.md +++ b/web/src/pages/Doc/en/utils/index.md @@ -479,6 +479,33 @@ Convert flat objects into a tree structure. Reverse operation of the transformTr Remove the node of the specified selector from the specified HTML string, and then return the processed HTML string. +#### getOnfullscreEnevt() + +> v0.9.11+ + +Detect full screen events available in the current browser. You can use it this way: + +```js +const fullscrrenEvent = getOnfullscreEnevt() + +// Monitor full screen events +document.addEventListener(fullscrrenEvent, () => { + // Determine whether the current state is full screen based on whether document.fullscreenElement is null +}) +``` + +#### fullScreen(element) + +> v0.9.11+ + +Put the specified DOM element into full screen mode. + +#### exitFullScreen() + +> v0.9.11+ + +Exit full screen mode. + ## 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 8a63c7c6..bbcee800 100644 --- a/web/src/pages/Doc/en/utils/index.vue +++ b/web/src/pages/Doc/en/utils/index.vue @@ -402,6 +402,28 @@ and copying the data of the data object, example:

Remove the node of the specified selector from the specified HTML string, and then return the processed HTML string.

+

getOnfullscreEnevt()

+
+

v0.9.11+

+
+

Detect full screen events available in the current browser. You can use it this way:

+
const fullscrrenEvent = getOnfullscreEnevt()
+
+// Monitor full screen events
+document.addEventListener(fullscrrenEvent, () => {
+  // Determine whether the current state is full screen based on whether document.fullscreenElement is null
+})
+
+

fullScreen(element)

+
+

v0.9.11+

+
+

Put the specified DOM element into full screen mode.

+

exitFullScreen()

+
+

v0.9.11+

+
+

Exit full screen mode.

Simulate CSS background in Canvas

Import:

import drawBackgroundImageToCanvas from 'simple-mind-map/src/utils/simulateCSSBackgroundInCanvas'
diff --git a/web/src/pages/Doc/routerList.js b/web/src/pages/Doc/routerList.js
index 3ba03bf5..b97f2793 100644
--- a/web/src/pages/Doc/routerList.js
+++ b/web/src/pages/Doc/routerList.js
@@ -63,6 +63,7 @@ export default [
       { path: 'formula', title: 'Formula插件' },
       { path: 'cooperate', title: 'Cooperate插件' },
       { path: 'rainbowLines', title: 'RainbowLines插件' },
+      { path: 'demonstrate', title: 'Demonstrate插件' },
       { path: 'handDrawnLikeStyle', title: 'HandDrawnLikeStyle收费插件' },
       { path: 'help1', title: '概要/关联线' },
       { path: 'help2', title: '客户端' },
@@ -106,6 +107,7 @@ export default [
       { path: 'formula', title: 'Formula plugin' },
       { path: 'cooperate', title: 'Cooperate plugin' },
       { path: 'rainbowLines', title: 'RainbowLines plugin' },
+      { path: 'demonstrate', title: 'Demonstrate plugin' },
       { path: 'handDrawnLikeStyle', title: 'HandDrawnLikeStyle chargeable plugin' },
       { path: 'client', title: 'Client' }
     ]
diff --git a/web/src/pages/Doc/zh/changelog/index.md b/web/src/pages/Doc/zh/changelog/index.md
index 271ddd64..9536eb30 100644
--- a/web/src/pages/Doc/zh/changelog/index.md
+++ b/web/src/pages/Doc/zh/changelog/index.md
@@ -1,5 +1,45 @@
 # Changelog
 
+## 0.9.11
+
+修复:
+
+> 1.修复点击概要会触发data_change_detail事件的问题;
+>
+> 2.修复一键去除所有节点自定义样式命令不支持不为数组的概要的问题;
+>
+> 3.修复富文本模式下创建的概要节点不是富文本的问题;
+>
+> 4.修复富文本插件转换节点数据时没有处理节点概要的问题;
+>
+> 5.修复概要节点文本编辑中按回车结束时,相应的节点高亮框会错位显示的问题;
+>
+> 6.修复同时创建多个实例时,文本编辑后节点宽高丢失的问题;
+>
+> 7.修复删除当前激活的节点的所有子节点后,展开收起按钮没有消失的问题;
+>
+> 8.修复拖拽节点到边缘时画布自动移动无法停止的问题;
+
+新增:
+
+> 1.插入概要时支持默认聚焦和进入编辑状态;
+>
+> 2.支持按住Command键和Win键多选节点;
+>
+> 3.支持导出某个节点为图片;
+>
+> 4.新增演示插件;
+
+Demo:
+
+> 1.节点右键菜单新增导出为图片按钮;
+>
+> 2.优化鼠标在窗口边缘点击右键时菜单显示不全的问题;
+>
+> 3.新增演示模式;
+>
+> 4.复制知犀数据时,概要数据创建为数组形式;
+
 ## 0.9.10
 
 修复:
diff --git a/web/src/pages/Doc/zh/changelog/index.vue b/web/src/pages/Doc/zh/changelog/index.vue
index 74f5e4f8..247746e4 100644
--- a/web/src/pages/Doc/zh/changelog/index.vue
+++ b/web/src/pages/Doc/zh/changelog/index.vue
@@ -1,6 +1,32 @@