diff --git a/web/src/pages/Doc/en/constructor/index.md b/web/src/pages/Doc/en/constructor/index.md index 6f2ed73d..17226a02 100644 --- a/web/src/pages/Doc/en/constructor/index.md +++ b/web/src/pages/Doc/en/constructor/index.md @@ -39,7 +39,7 @@ const mindMap = new MindMap({ | selectTranslateLimit | Number | 20 | The distance from the edge when the canvas begins to offset during multi-select node | | | customNoteContentShow(v0.1.6+) | Object | null | Custom node note content display, object type, structure: {show: (noteContent, left, top) => {// your display node note logic }, hide: () => {// your hide node note logic }} | | | readonly(v0.1.7+) | Boolean | false | Whether it is read-only mode | | -| enableFreeDrag(v0.2.4+) | Boolean | false | Enable node free drag | | +| enableFreeDrag(v0.2.4+) | Boolean | false | Enable node free(Free drag means that nodes can be dragged to any position on the canvas. Please note that it is not a function of dragging nodes to become siblings of other nodes. The connection of free drag may have certain problems, so it is best not to use this feature) drag | | | 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 | | diff --git a/web/src/pages/Doc/en/constructor/index.vue b/web/src/pages/Doc/en/constructor/index.vue index 7de0d245..85fadc3a 100644 --- a/web/src/pages/Doc/en/constructor/index.vue +++ b/web/src/pages/Doc/en/constructor/index.vue @@ -1,1223 +1,6 @@ diff --git a/web/src/pages/Doc/en/formula/index.md b/web/src/pages/Doc/en/formula/index.md index 3ec9e69f..a616778b 100644 --- a/web/src/pages/Doc/en/formula/index.md +++ b/web/src/pages/Doc/en/formula/index.md @@ -6,6 +6,18 @@ This plugin is used to support inserting formulas into nodes. +> 注意:公式是通过[KaTeX](https://github.com/KaTeX/KaTeX)库实现的,`KaTeX`提供了一些配置,插件默认的一个配置是: + +> Note: The formula is implemented through the [KaTeX](https://github.com/KaTeX/KaTeX) library, and 'KaTeX' provides some configurations. The default configuration for the plugin is: + +```js +{ + output: 'mathml' +} +``` + +> This formula may not render successfully on a few browsers. If you need to be compatible with these browsers, you can consider changing the configuration to 'HTML'. For detailed documentation, please refer to [Options](https://katex.org/docs/options). Using this configuration may require the introduction of a 'KaTeX' style file, which you can test on your own. + ## Register ```js diff --git a/web/src/pages/Doc/en/formula/index.vue b/web/src/pages/Doc/en/formula/index.vue index cb7a4a9b..2ee7ca70 100644 --- a/web/src/pages/Doc/en/formula/index.vue +++ b/web/src/pages/Doc/en/formula/index.vue @@ -8,6 +8,19 @@

This plugin is only supported in rich text mode, so it needs to be used after registering the RichText plugin

This plugin is used to support inserting formulas into nodes.

+
+

注意:公式是通过KaTeX库实现的,KaTeX提供了一些配置,插件默认的一个配置是:

+
+
+

Note: The formula is implemented through the KaTeX library, and 'KaTeX' provides some configurations. The default configuration for the plugin is:

+
+
{
+    output: 'mathml'
+}
+
+
+

This formula may not render successfully on a few browsers. If you need to be compatible with these browsers, you can consider changing the configuration to 'HTML'. For detailed documentation, please refer to Options. Using this configuration may require the introduction of a 'KaTeX' style file, which you can test on your own.

+

Register

import MindMap from 'simple-mind-map'
 import Formula from 'simple-mind-map/src/plugins/Formula.js'
diff --git a/web/src/pages/Doc/en/introduction/index.md b/web/src/pages/Doc/en/introduction/index.md
index cc2c8a37..92a8ea9c 100644
--- a/web/src/pages/Doc/en/introduction/index.md
+++ b/web/src/pages/Doc/en/introduction/index.md
@@ -65,11 +65,13 @@ The folder containing the packaged resources for the `web` folder.
 
 [Explore how to export HTML and SVG as images](https://juejin.cn/post/7276712861514170409)
 
+[How does the dom-to-image library convert HTML into images](https://juejin.cn/post/7287913415803764747)
+
 ## Special Note
 
 This project can be used for learning and reference. Please deeply experience whether it can meet your needs when using it for actual projects.
 
-This project may not have fully tested every function point, so there may be bugs. In addition, when the number of nodes is very large, there may be some performance issues. Because everyone can accept different levels of congestion, you can test the maximum number of nodes yourself.
+This project may not have fully tested every function point, so there may be bugs. In addition, when the number of nodes is very large, there may be some performance issues. Because everyone can accept different levels of congestion, you can test the maximum number of nodes yourself. Generally speaking, within 500 nodes, it is more smooth, while over 1000 nodes have more noticeable lag.
 
 If you have suggestions or find bugs, you can submit [issues](https://github.com/wanglin2/mind-map/issues) here.
 
diff --git a/web/src/pages/Doc/en/introduction/index.vue b/web/src/pages/Doc/en/introduction/index.vue
index 9368f1ad..ec007117 100644
--- a/web/src/pages/Doc/en/introduction/index.vue
+++ b/web/src/pages/Doc/en/introduction/index.vue
@@ -51,9 +51,10 @@ full screen, support mini map
 

How to simulate the background image style of css in canvas

My first Electron application

Explore how to export HTML and SVG as images

+

How does the dom-to-image library convert HTML into images

Special Note

This project can be used for learning and reference. Please deeply experience whether it can meet your needs when using it for actual projects.

-

This project may not have fully tested every function point, so there may be bugs. In addition, when the number of nodes is very large, there may be some performance issues. Because everyone can accept different levels of congestion, you can test the maximum number of nodes yourself.

+

This project may not have fully tested every function point, so there may be bugs. In addition, when the number of nodes is very large, there may be some performance issues. Because everyone can accept different levels of congestion, you can test the maximum number of nodes yourself. Generally speaking, within 500 nodes, it is more smooth, while over 1000 nodes have more noticeable lag.

If you have suggestions or find bugs, you can submit issues here.

The built-in themes and icons in the project part come from:

Baidu Mind Map

diff --git a/web/src/pages/Doc/en/richText/index.md b/web/src/pages/Doc/en/richText/index.md index 2b164f09..f5b1db5e 100644 --- a/web/src/pages/Doc/en/richText/index.md +++ b/web/src/pages/Doc/en/richText/index.md @@ -2,8 +2,6 @@ > v0.4.0+ -> Note: This is a testing nature and imperfect function - This plugin provides the ability to edit rich text of nodes, and takes effect after registration. By default, node editing can only uniformly apply styles to all text in the node. This plugin can support rich text editing effects. Currently, it supports bold, italic, underline, strikethrough, font, font size, color, and backgroundColor. Underline and line height are not supported. @@ -20,6 +18,8 @@ The principle of this plugin is to use [Quill](https://github.com/quilljs/quill) > The compatibility of dom to image more is relatively poor, and exported images are empty on many browsers, so you can replace them with html2canvas according to your own needs. +After version `0.6.16+`, third-party libraries such as 'dom-to-image-more' and 'html2canvas' will no longer be used for export, Compatibility and export are no longer issues. + ## Register ```js diff --git a/web/src/pages/Doc/en/richText/index.vue b/web/src/pages/Doc/en/richText/index.vue index 9ad311e4..ef38081d 100644 --- a/web/src/pages/Doc/en/richText/index.vue +++ b/web/src/pages/Doc/en/richText/index.vue @@ -4,9 +4,6 @@

v0.4.0+

-
-

Note: This is a testing nature and imperfect function

-

This plugin provides the ability to edit rich text of nodes, and takes effect after registration.

By default, node editing can only uniformly apply styles to all text in the node. This plugin can support rich text editing effects. Currently, it supports bold, italic, underline, strikethrough, font, font size, color, and backgroundColor. Underline and line height are not supported.

The principle of this plugin is to use Quill editor implements rich text editing, and then uses the edited DOM node directly as the text data of the node, and embeds the DOM node through the svg foreignObject tag during rendering.

@@ -21,6 +18,7 @@

The compatibility of dom to image more is relatively poor, and exported images are empty on many browsers, so you can replace them with html2canvas according to your own needs.

+

After version 0.6.16+, third-party libraries such as 'dom-to-image-more' and 'html2canvas' will no longer be used for export, Compatibility and export are no longer issues.

Register

import MindMap from 'simple-mind-map'
 import RichText from 'simple-mind-map/src/plugins/RichText.js'
diff --git a/web/src/pages/Doc/en/select/index.md b/web/src/pages/Doc/en/select/index.md
index 6eb7a088..add2b4cd 100644
--- a/web/src/pages/Doc/en/select/index.md
+++ b/web/src/pages/Doc/en/select/index.md
@@ -1,6 +1,6 @@
 # Select plugin
 
-The `Select` plugin provides the function of right-clicking to select multiple nodes.
+The `Select` plugin provides the function of select multiple nodes.
 
 ## Register
 
diff --git a/web/src/pages/Doc/en/select/index.vue b/web/src/pages/Doc/en/select/index.vue
index aecb9235..a3a3241e 100644
--- a/web/src/pages/Doc/en/select/index.vue
+++ b/web/src/pages/Doc/en/select/index.vue
@@ -1,7 +1,7 @@