Doc: update

This commit is contained in:
街角小林
2024-03-26 14:00:48 +08:00
parent bf9cb99441
commit bff683cb5c
13 changed files with 63 additions and 18 deletions

View File

@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 2479351 */
src: url('iconfont.woff2?t=1709781789605') format('woff2'),
url('iconfont.woff?t=1709781789605') format('woff'),
url('iconfont.ttf?t=1709781789605') format('truetype');
src: url('iconfont.woff2?t=1711432586441') format('woff2'),
url('iconfont.woff?t=1711432586441') format('woff'),
url('iconfont.ttf?t=1711432586441') format('truetype');
}
.iconfont {
@@ -13,6 +13,14 @@
-moz-osx-font-smoothing: grayscale;
}
.icongundongtiao:before {
content: "\e670";
}
.iconxietongwendang:before {
content: "\e60d";
}
.iconTXT:before {
content: "\e6e1";
}

View File

@@ -2,6 +2,10 @@
## 0.9.9
Fix:
> 1.Fix the issue of incorrect arrow color when creating association lines for the first time;
New:
> 1.Support inserting child nodes with the insert key;
@@ -17,6 +21,8 @@ New:
> 6.Add the getAncestorNodes method to the node instance to obtain the list of ancestor nodes;
>
> 7.Adding mouse events to personnel avatars during collaborative editing;
>
> 8.Instantiation and setData methods support passing in empty data;
Demo:

View File

@@ -2,6 +2,10 @@
<div>
<h1>Changelog</h1>
<h2>0.9.9</h2>
<p>Fix:</p>
<blockquote>
<p>1.Fix the issue of incorrect arrow color when creating association lines for the first time;</p>
</blockquote>
<p>New:</p>
<blockquote>
<p>1.Support inserting child nodes with the insert key;</p>
@@ -11,6 +15,7 @@
<p>5.Add mouse in and out events to icons in nodes;</p>
<p>6.Add the getAncestorNodes method to the node instance to obtain the list of ancestor nodes;</p>
<p>7.Adding mouse events to personnel avatars during collaborative editing;</p>
<p>8.Instantiation and setData methods support passing in empty data;</p>
</blockquote>
<p>Demo:</p>
<blockquote>

View File

@@ -25,7 +25,7 @@ const mindMap = new MindMap({
| Field Name | Type | Default Value | Description | Required |
| -------------------------------- | ------- | ---------------- | ------------------------------------------------------------ | -------- |
| el | Element | | Container element, must be a DOM element | Yes |
| data | Object | {} | Mind map data, Please refer to the introduction of 【Data structure】 below | |
| data | Object 、null | | Mind map data, Please refer to the introduction of 【Data structure】 below. V0.9.9+supports passing empty objects or null, and the canvas will display blank space | |
| layout | String | logicalStructure | Layout type, options: logicalStructure (logical structure diagram), mindMap (mind map), catalogOrganization (catalog organization diagram), organizationStructure (organization structure diagram)、timelinev0.5.4+, timeline、timeline2v0.5.4+, up down alternating timeline、fishbonev0.5.4+, fishbone diagram | |
| fishboneDegv0.5.4+ | Number | 45 | Set the diagonal angle of the fishbone structure diagram | |
| theme | String | default | Theme, options: default, classic, minions, pinkGrape, mint, gold, vitalityOrange, greenLeaf, dark2, skyGreen, classic2, classic3, classic4(v0.2.0+), classicGreen, classicBlue, blueSky, brainImpairedPink, dark, earthYellow, freshGreen, freshRed, romanticPurple, simpleBlack(v0.5.4+), courseGreen(v0.5.4+), coffee(v0.5.4+), redSpirit(v0.5.4+), blackHumour(v0.5.4+), lateNightOffice(v0.5.4+), blackGold(v0.5.4+)、、avocado(v.5.10-fix.2+)、autumn(v.5.10-fix.2+)、orangeJuice(v.5.10-fix.2+) | |
@@ -563,7 +563,7 @@ redo. All commands are as follows:
Dynamic setting of mind map data, pure node data
`data`: mind map structure data
`data`: mind map structure data. V0.9.9+ supports passing empty objects or null, and the canvas will display blank space.
### setFullData(_data_)

View File

@@ -37,9 +37,9 @@
</tr>
<tr>
<td>data</td>
<td>Object</td>
<td>{}</td>
<td>Mind map data, Please refer to the introduction of Data structure below</td>
<td>Object null</td>
<td></td>
<td>Mind map data, Please refer to the introduction of Data structure below. V0.9.9+supports passing empty objects or null, and the canvas will display blank space</td>
<td></td>
</tr>
<tr>
@@ -1474,7 +1474,7 @@ redo. All commands are as follows:</p>
</table>
<h3>setData(data)</h3>
<p>Dynamic setting of mind map data, pure node data</p>
<p><code>data</code>: mind map structure data</p>
<p><code>data</code>: mind map structure data. V0.9.9+ supports passing empty objects or null, and the canvas will display blank space.</p>
<h3>setFullData(<em>data</em>)</h3>
<blockquote>
<p>v0.2.7+</p>

View File

@@ -2,6 +2,10 @@
## 0.9.9
修复:
> 1.修复第一次创建关联线时,箭头颜色不正确的问题;
新增:
> 1.支持insert键插入下级节点
@@ -17,6 +21,8 @@
> 6.节点实例新增getAncestorNodes方法用于获取祖先节点列表
>
> 7.协同编辑时的人员头像增加鼠标事件;
>
> 8.实例化及setData方法支持传入空的data
Demo

View File

@@ -2,6 +2,10 @@
<div>
<h1>Changelog</h1>
<h2>0.9.9</h2>
<p>修复</p>
<blockquote>
<p>1.修复第一次创建关联线时箭头颜色不正确的问题</p>
</blockquote>
<p>新增</p>
<blockquote>
<p>1.支持insert键插入下级节点</p>
@@ -11,6 +15,7 @@
<p>5.节点中的图标添加鼠标移入和移出事件</p>
<p>6.节点实例新增getAncestorNodes方法用于获取祖先节点列表</p>
<p>7.协同编辑时的人员头像增加鼠标事件</p>
<p>8.实例化及setData方法支持传入空的data</p>
</blockquote>
<p>Demo</p>
<blockquote>

View File

@@ -25,7 +25,7 @@ const mindMap = new MindMap({
| 字段名称 | 类型 | 默认值 | 描述 |
| -------------------------------- | ------- | ---------------- | ------------------------------------------------------------ |
| el | Element | | 容器元素必传必须为DOM元素 |
| data | Object | {} | 思维导图数据,可参考下方【数据结构】介绍 |
| data | Object 、 null | | 思维导图数据,可参考下方【数据结构】介绍。v0.9.9+支持传空对象或者null画布会显示空白 |
| layout | String | logicalStructure | 布局类型可选列表logicalStructure逻辑结构图、mindMap思维导图、catalogOrganization目录组织图、organizationStructure组织结构图、timelinev0.5.4+时间轴、timeline2v0.5.4+上下交替型时间轴、fishbonev0.5.4+,鱼骨图) |
| fishboneDegv0.5.4+ | Number | 45 | 设置鱼骨结构图的斜线角度 |
| theme | String | default | 主题可选列表default默认、classic脑图经典、minions小黄人、pinkGrape粉红葡萄、mint薄荷、gold金色vip、vitalityOrange活力橙、greenLeaf绿叶、dark2暗色2、skyGreen天清绿、classic2脑图经典2、classic3脑图经典3、classic4脑图经典4v0.2.0+、classicGreen经典绿、classicBlue经典蓝、blueSky天空蓝、brainImpairedPink脑残粉、dark暗色、earthYellow泥土黄、freshGreen清新绿、freshRed清新红、romanticPurple浪漫紫、simpleBlackv0.5.4+简约黑、courseGreenv0.5.4+课程绿、coffeev0.5.4+咖啡、redSpiritv0.5.4+红色精神、blackHumourv0.5.4+黑色幽默、lateNightOfficev0.5.4+深夜办公室、blackGoldv0.5.4+黑金、avocadov.5.10-fix.2+牛油果、autumnv.5.10-fix.2+秋天、orangeJuicev.5.10-fix.2+橙汁) |
@@ -558,7 +558,7 @@ mindMap.updateConfig({
动态设置思维导图数据,纯节点数据
`data`:思维导图结构数据
`data`:思维导图结构数据。v0.9.9+支持传空对象或者null画布会显示空白。
### setFullData(*data*)

View File

@@ -35,9 +35,9 @@
</tr>
<tr>
<td>data</td>
<td>Object</td>
<td>{}</td>
<td>思维导图数据可参考下方数据结构介绍</td>
<td>Object null</td>
<td></td>
<td>思维导图数据可参考下方数据结构介绍v0.9.9+支持传空对象或者null画布会显示空白</td>
</tr>
<tr>
<td>layout</td>
@@ -1370,7 +1370,7 @@ mindMap.setTheme(<span class="hljs-string">&#x27;主题名称&#x27;</span>)
</table>
<h3>setData(data)</h3>
<p>动态设置思维导图数据纯节点数据</p>
<p><code>data</code>思维导图结构数据</p>
<p><code>data</code>思维导图结构数据v0.9.9+支持传空对象或者null画布会显示空白</p>
<h3>setFullData(<em>data</em>)</h3>
<blockquote>
<p>v0.2.7+</p>

View File

@@ -42,11 +42,11 @@ export default {
dataList: [
{
icon: 'iconstar',
value: 'Github star数量2000+'
value: 'Github star数量3000+'
},
{
icon: 'iconfork',
value: 'Github fork数量250+'
value: 'Github fork数量400+'
},
{
icon: 'iconxiazai',
@@ -54,7 +54,7 @@ export default {
},
{
icon: 'iconteamwork',
value: '代码贡献者14+'
value: '代码贡献者16+'
}
],
functionList: [
@@ -149,6 +149,21 @@ export default {
icon: 'iconshezhi',
name: '丰富的设置',
value: '提供了丰富的功能设置,可以选择合适你的操作行为。'
},
{
icon: 'iconxietongwendang',
name: '协同编辑',
value: '支持协同编辑,方便多人同时编辑同一个文件。'
},
{
icon: 'icongongshi',
name: '数学公式',
value: '支持传入数学公式,省去截图的麻烦。'
},
{
icon: 'icongundongtiao',
name: '滚动条',
value: '支持显示滚动条,轻松拖动画布到指定位置。'
}
]
}