Skip to content

Commit

Permalink
docs: update links for itemProperties
Browse files Browse the repository at this point in the history
  • Loading branch information
Yanyan-Wang committed Jun 2, 2020
1 parent 8850018 commit 80fa552
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/api/Graph.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -371,7 +371,7 @@ Add item(node, edge, or group) to the graph.
| Name | Type | Required | Description |
| --- | --- | --- | --- |
| type | string | true | The type of the item. Options: `'node'`, `'edge'`, and `'group'`. |
| model | Object | true | The data model of the item, refer to [Item Model Properties](/en/docs/api/itemProperties). When `type: 'group'`, refer to [Create Node Group](/en/docs/manual/advanced/create-node-group) |
| model | Object | true | The data model of the item, refer to [Item Model Properties](/en/docs/api/nodeEdge/itemProperties). When `type: 'group'`, refer to [Create Node Group](/en/docs/manual/advanced/create-node-group) |

**Usage**

Expand Down Expand Up @@ -417,7 +417,7 @@ If there are combos in the graph, after calling updateItem to update the positio
| Name | Type | Required | Description |
| ---- | --------------- | -------- | ----------------------------------- |
| item | string / Object | true | The ID or the instance of the item |
| cfg | Object | false | New data model, refer to [Item Model Properties](/en/docs/api/itemProperties) |
| cfg | Object | false | New data model, refer to [Item Model Properties](/en/docs/api/nodeEdge/itemProperties) |

**Usage**

Expand Down
4 changes: 2 additions & 2 deletions docs/api/Graph.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -372,7 +372,7 @@ graph.expandGroup('groupId');
| 名称 | 类型 | 是否必选 | 描述 |
| --- | --- | --- | --- |
| type | string | true | 元素类型,可选值为 `'node'``'edge'``'group'` |
| model | Object | true | 元素的数据模型,具体内容参见[元素配置项](/zh/docs/api/itemProperties)`type: 'group'` 时,参看 [手动创建节点分组文档](/zh/docs/manual/advanced/create-node-group) |
| model | Object | true | 元素的数据模型,具体内容参见[元素配置项](/zh/docs/api/nodeEdge/itemProperties)`type: 'group'` 时,参看 [手动创建节点分组文档](/zh/docs/manual/advanced/create-node-group) |

**用法**

Expand Down Expand Up @@ -418,7 +418,7 @@ graph.addItem('group', model);
| 名称 | 类型 | 是否必选 | 描述 |
| ---- | --------------- | -------- | ------------------ |
| item | string / Object | true | 元素 ID 或元素实例 |
| cfg | Object | false | 需要更新的数据模型,具体内容参见[元素配置项](/zh/docs/api/itemProperties) |
| cfg | Object | false | 需要更新的数据模型,具体内容参见[元素配置项](/zh/docs/api/nodeEdge/itemProperties) |

**用法**

Expand Down
2 changes: 1 addition & 1 deletion docs/api/nodeEdge/Item.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ Item 是 G6 中绘图元素实例,目前包含节点和边的实例。对于

<span style="background-color: rgb(251, 233, 231); color: rgb(139, 53, 56)"><strong> 提示:</strong></span>

其中参数 model 可包括以下属性,下面属性的详细描述参见 [元素配置项](/zh/docs/api/itemProperties)
其中参数 model 可包括以下属性,下面属性的详细描述参见 [元素配置项](/zh/docs/api/nodeEdge/itemProperties)

| 名称 | 类型 | 是否必选 | 描述 |
| ----- | ------ | -------- | -------------------------------------- |
Expand Down

0 comments on commit 80fa552

Please sign in to comment.