Doc: update
This commit is contained in:
parent
12f9e03f63
commit
77d376210e
@ -2,12 +2,12 @@
|
||||
|
||||
[](https://www.npmjs.com/package/simple-mind-map)
|
||||

|
||||
[](https://github.com/wanglin2/mind-map/stargazers)
|
||||
[](https://github.com/wanglin2/mind-map/issues)
|
||||
[](https://github.com/wanglin2/mind-map/network/members)
|
||||

|
||||
[](https://github.com/wanglin2/mind-map/stargazers)
|
||||
[](https://github.com/wanglin2/mind-map/network/members)
|
||||
|
||||
> 一个简单&强大的 Web 思维导图
|
||||
> 中文名:思绪思维导图。一个简单&强大的 Web 思维导图。
|
||||
|
||||
本项目包含两部分:
|
||||
|
||||
@ -88,6 +88,8 @@ const mindMap = new MindMap({
|
||||
|
||||
[MIT](./LICENSE)
|
||||
|
||||
保留`mind-map`版权声明的情况下可随意商用。
|
||||
|
||||
# 微信交流群
|
||||
|
||||
群聊人数较多,无法通过二维码入群,可以微信添加`wanglinguanfang`拉你入群。
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "simple-mind-map",
|
||||
"version": "0.9.5",
|
||||
"version": "0.9.6",
|
||||
"description": "一个简单的web在线思维导图",
|
||||
"authors": [
|
||||
{
|
||||
|
||||
@ -1,5 +1,29 @@
|
||||
# Changelog
|
||||
|
||||
## 0.9.6
|
||||
|
||||
Fix:
|
||||
|
||||
> 1.Fix the issue where the style of the collapsed nodes remains unchanged when switching themes;
|
||||
|
||||
New:
|
||||
|
||||
> 1.Add new fields to the theme, used to set the display position, head or tail, of node line arrows;
|
||||
>
|
||||
> 2.New field added to the theme, used to set the starting position of the root node line when connecting curves;
|
||||
>
|
||||
> 3.Mac dual finger touch event moves the canvas to increase sensitivity slightly;
|
||||
>
|
||||
> 4.Add MOVE_ UP_ ONE_ The LEVEL command is used to move a node up one level;
|
||||
|
||||
Demo:
|
||||
|
||||
> 1.The outline supports pressing Shift+Tab to move nodes up one level;
|
||||
>
|
||||
> 2.Support setting the position of node arrow display;
|
||||
>
|
||||
> 3.Support setting the starting position of root node connections;
|
||||
|
||||
## 0.9.5
|
||||
|
||||
Fix:
|
||||
|
||||
@ -1,6 +1,24 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>Changelog</h1>
|
||||
<h2>0.9.6</h2>
|
||||
<p>Fix:</p>
|
||||
<blockquote>
|
||||
<p>1.Fix the issue where the style of the collapsed nodes remains unchanged when switching themes;</p>
|
||||
</blockquote>
|
||||
<p>New:</p>
|
||||
<blockquote>
|
||||
<p>1.Add new fields to the theme, used to set the display position, head or tail, of node line arrows;</p>
|
||||
<p>2.New field added to the theme, used to set the starting position of the root node line when connecting curves;</p>
|
||||
<p>3.Mac dual finger touch event moves the canvas to increase sensitivity slightly;</p>
|
||||
<p>4.Add MOVE_ UP_ ONE_ The LEVEL command is used to move a node up one level;</p>
|
||||
</blockquote>
|
||||
<p>Demo:</p>
|
||||
<blockquote>
|
||||
<p>1.The outline supports pressing Shift+Tab to move nodes up one level;</p>
|
||||
<p>2.Support setting the position of node arrow display;</p>
|
||||
<p>3.Support setting the starting position of root node connections;</p>
|
||||
</blockquote>
|
||||
<h2>0.9.5</h2>
|
||||
<p>Fix:</p>
|
||||
<blockquote>
|
||||
|
||||
@ -539,6 +539,7 @@ redo. All commands are as follows:
|
||||
| INSERT_FORMULA(v0.7.2+) | Insert mathematical formulas into nodes, operate on the currently active node or specified node | formula(Mathematical formula to insert, LaTeX syntax), appointNodes(Optional, specify the node to insert the formula into. Multiple nodes can be passed as arrays, otherwise it defaults to the currently active node) |
|
||||
| INSERT_PARENT_NODE(v0.8.0+) | Insert a parent node into the specified node, with the operation node being the currently active node or the specified node | openEdit(Activate the newly inserted node and enter editing mode, default to 'true'`)、 appointNodes(Optional, specify the node to insert into the parent node, and specify that multiple nodes can pass an array)、 appointData(Optional, specify the data for the newly created node, such as {text: 'xxx', ...}, Detailed structure can be referenced [exampleData.js](https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js)) |
|
||||
| REMOVE_CURRENT_NODE(v0.8.0+) | Delete only the current node, operate on the currently active node or specified node | appointNodes(Optional, specify the nodes to be deleted, and multiple nodes can be passed as an array) |
|
||||
| MOVE_UP_ONE_LEVEL(v0.9.6+) | Move the specified node up one level | node(Optional, specify the node to move up the hierarchy, if not passed, it will be the first node in the current active node) |
|
||||
|
||||
### setData(data)
|
||||
|
||||
|
||||
@ -1390,6 +1390,11 @@ redo. All commands are as follows:</p>
|
||||
<td>Delete only the current node, operate on the currently active node or specified node</td>
|
||||
<td>appointNodes(Optional, specify the nodes to be deleted, and multiple nodes can be passed as an array)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>MOVE_UP_ONE_LEVEL(v0.9.6+)</td>
|
||||
<td>Move the specified node up one level</td>
|
||||
<td>node(Optional, specify the node to move up the hierarchy, if not passed, it will be the first node in the current active node)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>setData(data)</h3>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# Introduction
|
||||
|
||||
`simple-mind-map` is a simple and powerful web mind map library, not dependent on any specific framework. Can help you quickly develop mind mapping products.
|
||||
`simple-mind-map` 【Chinese name: 思绪 mind map】 is a simple and powerful web mind map library, not dependent on any specific framework. Can help you quickly develop mind mapping products.
|
||||
|
||||
> If you just want to use mind mapping, you can also use the demo of this project as a regular online mind mapping tool. Click on the 【Online Demo】 in the upper right corner to start using it.
|
||||
>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>Introduction</h1>
|
||||
<p><code>simple-mind-map</code> is a simple and powerful web mind map library, not dependent on any specific framework. Can help you quickly develop mind mapping products.</p>
|
||||
<p><code>simple-mind-map</code> 【Chinese name: 思绪 mind map】 is a simple and powerful web mind map library, not dependent on any specific framework. Can help you quickly develop mind mapping products.</p>
|
||||
<blockquote>
|
||||
<p>If you just want to use mind mapping, you can also use the demo of this project as a regular online mind mapping tool. Click on the 【Online Demo】 in the upper right corner to start using it.</p>
|
||||
<p>Additionally, a client is provided for download, support <code>Windows</code>、<code>Mac</code> and <code>Linux</code>, <a href="/mind-map/#/doc/zh/client">Click here to learn more</a>。</p>
|
||||
|
||||
@ -1,5 +1,29 @@
|
||||
# Changelog
|
||||
|
||||
## 0.9.6
|
||||
|
||||
修复:
|
||||
|
||||
> 1.修复切换主题时,被收起的节点样式没有改变的问题;
|
||||
|
||||
新增:
|
||||
|
||||
> 1.主题新增字段,用于设置节点连线箭头的显示位置,头部或者尾部;
|
||||
>
|
||||
> 2.主题新增字段,用于设置曲线连接时,根节点连线的起始位置;
|
||||
>
|
||||
> 3.Mac 双指触摸事件移动画布增加一点灵敏度;
|
||||
>
|
||||
> 4.新增 MOVE_UP_ONE_LEVEL 命令,用于将节点上移一个层级;
|
||||
|
||||
Demo:
|
||||
|
||||
> 1.大纲支持按 Shift+Tab 键将节点上移一个层级;
|
||||
>
|
||||
> 2.支持设置节点箭头显示的位置;
|
||||
>
|
||||
> 3.支持设置根节点连线的起始位置;
|
||||
|
||||
## 0.9.5
|
||||
|
||||
修复:
|
||||
@ -116,7 +140,6 @@ Demo:
|
||||
>
|
||||
> 14.修复节点数量过多,画布尺寸过大无法导出 png 的问题。
|
||||
|
||||
|
||||
新增:
|
||||
|
||||
> 1.修改 mousewheel 事件,dir 标志修改为 dirs,支持存储多个方向,优化触控板的双指移动操作。
|
||||
@ -229,7 +252,6 @@ Demo:支持配置创建新节点时的行为。
|
||||
>
|
||||
> 7.修复节点数量很多的情况下导出 pdf 报错的问题。
|
||||
|
||||
|
||||
新增:
|
||||
|
||||
> 1.新增禁止拖动画布的配置选项。
|
||||
@ -424,7 +446,7 @@ Demo:
|
||||
>
|
||||
> 4.删除节点后激活相邻节点。
|
||||
>
|
||||
> 5.节点数据data中以_开头的字段被认为是自定义字段。
|
||||
> 5.节点数据 data 中以\_开头的字段被认为是自定义字段。
|
||||
|
||||
Demo:
|
||||
|
||||
@ -875,13 +897,7 @@ Demo:1.添加网站首页。 2.修复大纲里创建新节点时节点样式
|
||||
修改:从 0.5.0 版本开始,考虑性能问题,节点激活状态只能修改形状相关的样式:
|
||||
|
||||
```js
|
||||
[
|
||||
'fillColor',
|
||||
'borderColor',
|
||||
'borderWidth',
|
||||
'borderDasharray',
|
||||
'borderRadius'
|
||||
]
|
||||
;['fillColor', 'borderColor', 'borderWidth', 'borderDasharray', 'borderRadius']
|
||||
```
|
||||
|
||||
## 0.4.7
|
||||
|
||||
@ -1,6 +1,24 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>Changelog</h1>
|
||||
<h2>0.9.6</h2>
|
||||
<p>修复:</p>
|
||||
<blockquote>
|
||||
<p>1.修复切换主题时,被收起的节点样式没有改变的问题;</p>
|
||||
</blockquote>
|
||||
<p>新增:</p>
|
||||
<blockquote>
|
||||
<p>1.主题新增字段,用于设置节点连线箭头的显示位置,头部或者尾部;</p>
|
||||
<p>2.主题新增字段,用于设置曲线连接时,根节点连线的起始位置;</p>
|
||||
<p>3.Mac 双指触摸事件移动画布增加一点灵敏度;</p>
|
||||
<p>4.新增 MOVE_UP_ONE_LEVEL 命令,用于将节点上移一个层级;</p>
|
||||
</blockquote>
|
||||
<p>Demo:</p>
|
||||
<blockquote>
|
||||
<p>1.大纲支持按 Shift+Tab 键将节点上移一个层级;</p>
|
||||
<p>2.支持设置节点箭头显示的位置;</p>
|
||||
<p>3.支持设置根节点连线的起始位置;</p>
|
||||
</blockquote>
|
||||
<h2>0.9.5</h2>
|
||||
<p>修复:</p>
|
||||
<blockquote>
|
||||
@ -539,13 +557,7 @@
|
||||
</code></pre>
|
||||
<p>修复:1.修复 setData 方法不触发历史记录的问题;</p>
|
||||
<p>修改:从 0.5.0 版本开始,考虑性能问题,节点激活状态只能修改形状相关的样式:</p>
|
||||
<pre class="hljs"><code>[
|
||||
<span class="hljs-string">'fillColor'</span>,
|
||||
<span class="hljs-string">'borderColor'</span>,
|
||||
<span class="hljs-string">'borderWidth'</span>,
|
||||
<span class="hljs-string">'borderDasharray'</span>,
|
||||
<span class="hljs-string">'borderRadius'</span>
|
||||
]
|
||||
<pre class="hljs"><code>;[<span class="hljs-string">'fillColor'</span>, <span class="hljs-string">'borderColor'</span>, <span class="hljs-string">'borderWidth'</span>, <span class="hljs-string">'borderDasharray'</span>, <span class="hljs-string">'borderRadius'</span>]
|
||||
</code></pre>
|
||||
<h2>0.4.7</h2>
|
||||
<p>优化:1.富文本编辑时初始聚焦时不再默认全选;2.富文本编辑时使用节点填充色作为背景色,避免节点颜色为白色时看不见。 3.节点激活状态切换不再触发历史记录。 4.短时间多次触发历史记录,只会添加最后一次的数据。 5.优化历史记录添加,当有回退时,再次添加新记录时删除当前指针后面的历史数据。</p>
|
||||
|
||||
@ -533,6 +533,7 @@ mindMap.updateConfig({
|
||||
| INSERT_FORMULA(v0.7.2+) | 给节点插入数学公式,操作节点为当前激活的节点或指定节点 | formula(要插入的数学公式,LaTeX 语法), appointNodes(可选,指定要插入公式的节点,多个节点可以传数组,否则默认为当前激活的节点) |
|
||||
| INSERT_PARENT_NODE(v0.8.0+) | 给指定的节点插入父节点,操作节点为当前激活的节点或指定节点 | openEdit(是否激活新插入的节点并进入编辑模式,默认为`true`)、 appointNodes(可选,指定要插入父节点的节点,指定多个节点可以传一个数组)、 appointData(可选,指定新创建节点的数据,比如{text: 'xxx', ...},详细结构可以参考[exampleData.js](https://github.com/wanglin2/mind-map/blob/main/simple-mind-map/example/exampleData.js)) |
|
||||
| REMOVE_CURRENT_NODE(v0.8.0+) | 仅删除当前节点,操作节点为当前激活的节点或指定节点 | appointNodes(可选,指定要删除的节点,指定多个节点可以传一个数组) |
|
||||
| MOVE_UP_ONE_LEVEL(v0.9.6+) | 将指定节点上移一个层级 | node(可选,指定要上移层级的节点,不传则为当前激活节点中的第一个) |
|
||||
|
||||
### setData(data)
|
||||
|
||||
|
||||
@ -1291,6 +1291,11 @@ mindMap.setTheme(<span class="hljs-string">'主题名称'</span>)
|
||||
<td>仅删除当前节点,操作节点为当前激活的节点或指定节点</td>
|
||||
<td>appointNodes(可选,指定要删除的节点,指定多个节点可以传一个数组)</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>MOVE_UP_ONE_LEVEL(v0.9.6+)</td>
|
||||
<td>将指定节点上移一个层级</td>
|
||||
<td>node(可选,指定要上移层级的节点,不传则为当前激活节点中的第一个)</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<h3>setData(data)</h3>
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
# 简介
|
||||
|
||||
`simple-mind-map`是一个简单&强大的Web思维导图库,不依赖任何特定框架。可以帮助你快速开发思维导图产品。
|
||||
`simple-mind-map`【中文名:思绪思维导图】是一个简单&强大的Web思维导图库,不依赖任何特定框架。可以帮助你快速开发思维导图产品。
|
||||
|
||||
> 如果你只是想使用思维导图,你也完全可以把本项目的demo作为一个普通的在线思维导图工具使用。点击右上角的【在线示例】开始使用吧。
|
||||
>
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
<template>
|
||||
<div>
|
||||
<h1>简介</h1>
|
||||
<p><code>simple-mind-map</code>是一个简单&强大的Web思维导图库,不依赖任何特定框架。可以帮助你快速开发思维导图产品。</p>
|
||||
<p><code>simple-mind-map</code>【中文名:思绪思维导图】是一个简单&强大的Web思维导图库,不依赖任何特定框架。可以帮助你快速开发思维导图产品。</p>
|
||||
<blockquote>
|
||||
<p>如果你只是想使用思维导图,你也完全可以把本项目的demo作为一个普通的在线思维导图工具使用。点击右上角的【在线示例】开始使用吧。</p>
|
||||
<p>另外也提供了客户端可供下载,支持<code>Windows</code>、<code>Mac</code>及<code>Linux</code>,<a href="/mind-map/#/doc/zh/client">点此了解更多</a>。</p>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user