Skip to content

Commit

Permalink
fix(docs): 修复文档中“基础教程”和“实例”部分的 nodeModeledgeModel 跳转地址错误
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaius-98 authored and boyongjiong committed Dec 12, 2024
1 parent 4d86f4f commit d963187
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions sites/docs/docs/tutorial/basic/class.en.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,10 @@ following data structure to represent the graph data of LogicFlow.
<code id="graphData" src="../../../src/tutorial/basic/instance/graphData"></code>

**`nodes`**: Contains all nodes. Each node's data attributes are detailed in
the <a href="../api/nodeModelApi.en.md#DataAttributes">nodeModel</a>.
the <a href="../../../en/api/model/node-model#DataAttributes">nodeModel</a>.

**`edges`**: Contains all edges, connecting two nodes through `sourceNodeId` and `targetNodeId`.
Each edge's data attributes are detailed in the <a href="../api/edgeModelApi.en.md#DataAttributes">
Each edge's data attributes are detailed in the <a href="../../../en/api/model/edge-model#DataAttributes">
EdgeModel</a>.

**`type`**: Indicates the type of node or edge, which can be a basic type built into LogicFlow such
Expand Down
4 changes: 2 additions & 2 deletions sites/docs/docs/tutorial/basic/class.zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,11 @@ const lf = new LogicFlow({

<code id="graphData" src="../../../src/tutorial/basic/instance/graphData"></code>

**`nodes`**: 包含所有的节点。每个节点的数据属性详见 <a href="../api/nodeModelApi#数据属性">
**`nodes`**: 包含所有的节点。每个节点的数据属性详见 <a href="../../api/model/node-model#数据属性">
nodeModel</a> 。

**`edges`**: 包含所有的边,通过起始 `sourceNodeId``targetNodeId`
将两个节点相连。每个边的数据属性详见 <a href="../api/edgeModelApi#数据属性">edgeModel</a>。
将两个节点相连。每个边的数据属性详见 <a href="../../api/model/edge-model#数据属性">edgeModel</a>。

**`type`**: 表示节点或者边的类型,这里的类型不仅可以是`rect`,`polyline`
这种LogicFlow内置的基础类型,也可以是用户基于基础类型自定义的类型。
Expand Down

0 comments on commit d963187

Please sign in to comment.