Doc: update

This commit is contained in:
wanglin2 2023-10-18 10:49:27 +08:00
parent b6d91ec07a
commit 0e5fed6645
8 changed files with 27 additions and 6 deletions

View File

@ -39,6 +39,8 @@ New:
> 9.Pasting text with line breaks supports controlling whether nodes are split by line breaks.
>
> 10.The mini map plugin supports returning mini maps of image types.
>
> 11.Only one historical record can be added within a specified time period to avoid adding unnecessary intermediate states.
Demo:

View File

@ -24,6 +24,7 @@
<p>8.The folded active nodes are synchronously deleted from the list of active nodes.</p>
<p>9.Pasting text with line breaks supports controlling whether nodes are split by line breaks.</p>
<p>10.The mini map plugin supports returning mini maps of image types.</p>
<p>11.Only one historical record can be added within a specified time period to avoid adding unnecessary intermediate states.</p>
</blockquote>
<p>Demo:</p>
<blockquote>

View File

@ -98,7 +98,8 @@ const mindMap = new MindMap({
| cooperateStylev0.7.3+ | Object | { avatarSize: 22, fontSize: 12 } | The configuration of personnel avatar style during node collaboration editing, with field meanings as follows: avatar size, and if it is a text avatar, the size of the text | |
| associativeLineIsAlwaysAboveNodev0.8.0+ | Boolean | true | Is the associated line always displayed above the node? If set to false, it will be at the top level when creating and activating the associated line, and in other cases, it will be below the node | |
| defaultGeneralizationTextv0.8.0+ | String | 概要 | Insert default text for summary | |
| handleIsSplitByWrapOnPasteCreateNewNodev0.8.0+ | Function | null | null | When creating a new node by pasting text, control whether to automatically split the nodes based on line breaks. If there is a line break, multiple nodes will be created based on the line break. Otherwise, only one node will be created, and a function can be passed to return promise. resolve represents splitting based on line breaks, and reject represents ignoring line breaks | |
| handleIsSplitByWrapOnPasteCreateNewNodev0.8.0+ | Function / null | null | When creating a new node by pasting text, control whether to automatically split the nodes based on line breaks. If there is a line break, multiple nodes will be created based on the line break. Otherwise, only one node will be created, and a function can be passed to return promise. resolve represents splitting based on line breaks, and reject represents ignoring line breaks | |
| addHistoryTimev0.8.0+ | Number | 100 | Only one historical record can be added within the specified time to avoid adding unnecessary intermediate states. Unit: ms | |
### Data structure

View File

@ -548,10 +548,17 @@
</tr>
<tr>
<td>handleIsSplitByWrapOnPasteCreateNewNodev0.8.0+</td>
<td>Function</td>
<td>null</td>
<td>Function / null</td>
<td>null</td>
<td>When creating a new node by pasting text, control whether to automatically split the nodes based on line breaks. If there is a line break, multiple nodes will be created based on the line break. Otherwise, only one node will be created, and a function can be passed to return promise. resolve represents splitting based on line breaks, and reject represents ignoring line breaks</td>
<td></td>
</tr>
<tr>
<td>addHistoryTimev0.8.0+</td>
<td>Number</td>
<td>100</td>
<td>Only one historical record can be added within the specified time to avoid adding unnecessary intermediate states. Unit: ms</td>
<td></td>
</tr>
</tbody>
</table>

View File

@ -39,6 +39,8 @@
> 9.粘贴带换行的文本支持控制是否按换行分割节点。
>
> 10.小地图插件支持返回图片类型的小地图。
>
> 11.指定时间内只允许添加一次历史记录,避免添加没有必要的中间状态。
Demo

View File

@ -24,6 +24,7 @@
<p>8.被收起的激活节点同步从激活节点列表里删除</p>
<p>9.粘贴带换行的文本支持控制是否按换行分割节点</p>
<p>10.小地图插件支持返回图片类型的小地图</p>
<p>11.指定时间内只允许添加一次历史记录避免添加没有必要的中间状态</p>
</blockquote>
<p>Demo</p>
<blockquote>

View File

@ -98,7 +98,8 @@ const mindMap = new MindMap({
| cooperateStylev0.7.3+ | Object | { avatarSize: 22, fontSize: 12 } | 节点协作编辑时的人员头像样式配置,字段含义分别为:头像大小、如果是文字头像,那么文字的大小 |
| associativeLineIsAlwaysAboveNodev0.8.0+ | Boolean | true | 关联线是否始终显示在节点上层如果设为false那么创建关联线和激活关联线时处于最顶层其他情况下处于节点下方 |
| defaultGeneralizationTextv0.8.0+ | String | 概要 | 插入概要的默认文本 |
| handleIsSplitByWrapOnPasteCreateNewNodev0.8.0+ | Function | null | null | 粘贴文本的方式创建新节点时控制是否按换行自动分割节点即如果存在换行那么会根据换行创建多个节点否则只会创建一个节点可以传递一个函数返回promiseresolve代表根据换行分割reject代表忽略换行 |
| handleIsSplitByWrapOnPasteCreateNewNodev0.8.0+ | Function / null | null | 粘贴文本的方式创建新节点时控制是否按换行自动分割节点即如果存在换行那么会根据换行创建多个节点否则只会创建一个节点可以传递一个函数返回promiseresolve代表根据换行分割reject代表忽略换行 |
| addHistoryTimev0.8.0+ | Number | 100 | 指定时间内只允许添加一次历史记录避免添加没有必要的中间状态单位ms |
### 数据结构

View File

@ -473,9 +473,15 @@
</tr>
<tr>
<td>handleIsSplitByWrapOnPasteCreateNewNodev0.8.0+</td>
<td>Function</td>
<td>null</td>
<td>Function / null</td>
<td>null</td>
<td>粘贴文本的方式创建新节点时控制是否按换行自动分割节点即如果存在换行那么会根据换行创建多个节点否则只会创建一个节点可以传递一个函数返回promiseresolve代表根据换行分割reject代表忽略换行</td>
</tr>
<tr>
<td>addHistoryTimev0.8.0+</td>
<td>Number</td>
<td>100</td>
<td>指定时间内只允许添加一次历史记录避免添加没有必要的中间状态单位ms</td>
</tr>
</tbody>
</table>