diff --git a/README.md b/README.md index 3dda2b1b..e1723c94 100644 --- a/README.md +++ b/README.md @@ -171,4 +171,8 @@ const mindMap = new MindMap({ 南风 + + + 蜉蝣撼大叔 +

\ No newline at end of file diff --git a/web/src/assets/avatar/蜉蝣撼大叔.jpg b/web/src/assets/avatar/蜉蝣撼大叔.jpg new file mode 100644 index 00000000..24ef2f3d 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 f602a71c..00f3a2b0 100644 --- a/web/src/pages/Doc/catalogList.js +++ b/web/src/pages/Doc/catalogList.js @@ -39,7 +39,7 @@ let APIList = [ 'markdown', 'utils' ] -let helpList = new Array(3).fill(0).map((_, index) => { +let helpList = new Array(4).fill(0).map((_, index) => { return 'help' + (index + 1) }) diff --git a/web/src/pages/Doc/en/introduction/index.md b/web/src/pages/Doc/en/introduction/index.md index 1f856d9e..862cf6db 100644 --- a/web/src/pages/Doc/en/introduction/index.md +++ b/web/src/pages/Doc/en/introduction/index.md @@ -192,4 +192,8 @@ Open source is not easy. If this project is helpful to you, you can invite the a

南风

+
+ +

蜉蝣撼大叔

+
\ No newline at end of file diff --git a/web/src/pages/Doc/en/introduction/index.vue b/web/src/pages/Doc/en/introduction/index.vue index dc31cb3f..adc0c630 100644 --- a/web/src/pages/Doc/en/introduction/index.vue +++ b/web/src/pages/Doc/en/introduction/index.vue @@ -151,6 +151,10 @@ full screen, support mini map

南风

+
+ +

蜉蝣撼大叔

+
diff --git a/web/src/pages/Doc/en/start/index.md b/web/src/pages/Doc/en/start/index.md index e76ddf9f..887c30f6 100644 --- a/web/src/pages/Doc/en/start/index.md +++ b/web/src/pages/Doc/en/start/index.md @@ -167,4 +167,14 @@ module. If you need it, you can try using other libraries to parse `xml` to ### Error `Getting bbox of element "text" is not possible: TypeError: Cannot read properties of undefined (reading 'apply')` -The reason is that the installed version of `@svgdotjs/svg.js` is too high. You can manually reduce it to the version of `3.0.16`. \ No newline at end of file +The reason is that the installed version of `@svgdotjs/svg.js` is too high. You can manually reduce it to the version of `3.0.16`. + +### TypeError: Cannot read properties of undefined (reading 'prototype') at sax.js:222:46 + +The following configurations can be added to the packaging configuration file: + +```js +resolve: { alias: { stream: "stream-browserify" } } +``` + +Different packaging tools may have different specific configurations, with the principle of excluding 'stream' dependencies. \ No newline at end of file diff --git a/web/src/pages/Doc/en/start/index.vue b/web/src/pages/Doc/en/start/index.vue index 6ad429f9..0d3dee1e 100644 --- a/web/src/pages/Doc/en/start/index.vue +++ b/web/src/pages/Doc/en/start/index.vue @@ -116,6 +116,11 @@ module. If you need it, you can try using other libraries to parse xmljson.

Error Getting bbox of element "text" is not possible: TypeError: Cannot read properties of undefined (reading 'apply')

The reason is that the installed version of @svgdotjs/svg.js is too high. You can manually reduce it to the version of 3.0.16.

+

TypeError: Cannot read properties of undefined (reading 'prototype') at sax.js:222:46

+

The following configurations can be added to the packaging configuration file:

+
resolve: { alias: { stream: "stream-browserify" } }
+
+

Different packaging tools may have different specific configurations, with the principle of excluding 'stream' dependencies.

diff --git a/web/src/pages/Doc/routerList.js b/web/src/pages/Doc/routerList.js index 88b5c7f2..f8615889 100644 --- a/web/src/pages/Doc/routerList.js +++ b/web/src/pages/Doc/routerList.js @@ -58,7 +58,8 @@ export default [ { path: 'scrollbar', title: 'Scrollbar插件' }, { path: 'help1', title: '概要/关联线' }, { path: 'help2', title: '客户端' }, - { path: 'help3', title: '打开预览在线文件' } + { path: 'help3', title: '打开预览在线文件' }, + { path: 'help4', title: '复制粘贴' } ] }, { diff --git a/web/src/pages/Doc/zh/help4/index.md b/web/src/pages/Doc/zh/help4/index.md new file mode 100644 index 00000000..f80ae0d5 --- /dev/null +++ b/web/src/pages/Doc/zh/help4/index.md @@ -0,0 +1,23 @@ +# 复制粘贴 + +## 复制粘贴画布内的节点 + +你可以通过选中某个节点,然后按`ctrl`+`c`快捷键来复制节点,如果选中多个节点,目前只支持复制第一个节点,然后点击你要复制到的节点,按`ctrl`+`v`快捷键粘贴即可。 + +除了快捷键,也可以通过右键菜单来操作。 + +## 支持粘贴剪贴板中的数据 + +当你选中某个节点后,直接按`ctrl`+`v`快捷键时,如果你的剪贴板中有数据,会粘贴你剪贴板中的数据,目前支持文本和图片两种格式,如果你的剪贴板中有图片,那么会将图片粘贴到你选中的节点里,如果存在文本,那么会以该文件创建一个子节点。 + +如果你的剪贴板中存在数据,又在画布里复制了节点数据,那么是以谁最后改变了为准。 + +## 支持跨浏览器标签、跨浏览器复制 + +如果你在多个浏览器里打开了思维导图编辑页面,那么可以复制一个页面的节点数据到另一个页面进行粘贴。 + +在客户端场景下打开了多个编辑页面时比较常用。 + +## 支持粘贴知犀思维导图数据 + +目前支持复制知犀思维导图的节点数据粘贴到本思维导图里。 \ No newline at end of file diff --git a/web/src/pages/Doc/zh/help4/index.vue b/web/src/pages/Doc/zh/help4/index.vue new file mode 100644 index 00000000..17ff1491 --- /dev/null +++ b/web/src/pages/Doc/zh/help4/index.vue @@ -0,0 +1,27 @@ + + + + + \ No newline at end of file diff --git a/web/src/pages/Doc/zh/introduction/index.md b/web/src/pages/Doc/zh/introduction/index.md index f901afa0..07f8d62b 100644 --- a/web/src/pages/Doc/zh/introduction/index.md +++ b/web/src/pages/Doc/zh/introduction/index.md @@ -185,4 +185,8 @@

南风

+
+ +

蜉蝣撼大叔

+
\ 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 9420382d..3e3a2043 100644 --- a/web/src/pages/Doc/zh/introduction/index.vue +++ b/web/src/pages/Doc/zh/introduction/index.vue @@ -145,6 +145,10 @@

南风

+
+ +

蜉蝣撼大叔

+
diff --git a/web/src/pages/Doc/zh/start/index.md b/web/src/pages/Doc/zh/start/index.md index e6998a65..4adb7f3f 100644 --- a/web/src/pages/Doc/zh/start/index.md +++ b/web/src/pages/Doc/zh/start/index.md @@ -151,4 +151,14 @@ import MindMap from "simple-mind-map/dist/simpleMindMap.umd.min" ### 2.报错`Getting bbox of element "text" is not possible: TypeError: Cannot read properties of undefined (reading 'apply')` -原因为安装的`@svgdotjs/svg.js`版本太高,手动降到`3.0.16`版本即可。 \ No newline at end of file +原因为安装的`@svgdotjs/svg.js`版本太高,手动降到`3.0.16`版本即可。 + +### 3.TypeError: Cannot read properties of undefined (reading 'prototype') at sax.js:222:46 + +可以在打包配置文件中增加如下配置: + +```js +resolve: { alias: { stream: "stream-browserify" } } +``` + +不同的打包工具可能具体配置不一样,原理就是排除`stream`依赖。 \ No newline at end of file diff --git a/web/src/pages/Doc/zh/start/index.vue b/web/src/pages/Doc/zh/start/index.vue index 45a59f93..a2fc0c63 100644 --- a/web/src/pages/Doc/zh/start/index.vue +++ b/web/src/pages/Doc/zh/start/index.vue @@ -99,6 +99,11 @@ npm run build

如果需要二次开发,也就是必须要使用未打包代码的话,如果你不需要解析xmind文件的话,可以去除xmind模块,如果需要的话那么可以尝试换成其他的解析xmljson的库。

2.报错Getting bbox of element "text" is not possible: TypeError: Cannot read properties of undefined (reading 'apply')

原因为安装的@svgdotjs/svg.js版本太高,手动降到3.0.16版本即可。

+

3.TypeError: Cannot read properties of undefined (reading 'prototype') at sax.js:222:46

+

可以在打包配置文件中增加如下配置:

+
resolve: { alias: { stream: "stream-browserify" } }
+
+

不同的打包工具可能具体配置不一样,原理就是排除stream依赖。