docs: en docs for data and graph apis

This commit is contained in:
Yanyan-Wang 2023-11-10 12:42:25 +08:00
parent 6a649ca275
commit b4b58f49e7
59 changed files with 3655 additions and 1463 deletions

View File

@ -0,0 +1,77 @@
---
title: ComboUserModel
order: 5
---
Data Type Definitions for Each Combo model is:
```typescript
interface ComboUserModel {
id: string | number;
data: NodeUserModelData;
}
```
## id
- **Required**: True;
- **Type**: `string|number`;
The unique ID of the combo. Once the combo is created, the ID cannot be changed.
## data
- **Required**: True;
- **Type**: [`ComboUserModelData`](#combousermodeldatatype);
The data of the combo, excluding the ID. It is recommended to store business data. If data conversion is needed, it can be done through the transform function configured in the Graph instance, see [Specification.transforms](../graph/Specification.en.md#transforms). The converted data becomes the internal data that circulates within the graph. All subsequent accesses will be based on this internal data. For rendering-related data, it can be mapped using the combo mapper of the Graph instance, see [Specification.combo](../graph/Specification.en.md#combo). The input of this mapper is the internal data, and the generated display data is only consumed by the renderer. Users will not obtain it anywhere.
### ComboUserModelData.type
- Required: False;
- Type: `string`;
Type: string The rendering type of the Combo, which can be a Combo type that has been registered with the graph class. Built-in and default registered types include `'circle-combo'`, `'rect-combo'`.
### ComboUserModelData.visible
- Required: False;
- Type: `boolean`;
Whether the Combo is displayed by default.
### ComboUserModelData.color
- Required: Fal se;
- Type: `string`;
The theme color of the main graphic (keyShape) of the Combo, represented as a hexadecimal string. This is provided for simple configuration convenience. More style configurations should be made in the Combo mapper of the Graph instance, where keyShape and various graphics styles can be configured.
### ComboUserModelData.label
- Required: False;
- Type: `string`;
The text content of the Combo labelShape. This is provided for simple configuration convenience. More style configurations should be made in the Combo mapper of the Graph instance, where the text value or other graphic styles of the labelShape can be configured.
### ComboUserModelData.icon
- Required: False;
- Type:
```typescript
{
type: 'text' | 'icon',
img?: string, // Required when type is 'text'
text?: string, // Required when type is 'icon'
}
```
The icon configuration on the Combo. Built-in Combo icons are drawn after the text. This is provided for simple configuration convenience. More style configurations should be made in the iconShape graphic style of the Combo mapper of the Graph instance.
### ComboUserModelData.parentId
- Required: False;
- Type: `string | number`;
Represents the id of the parent Combo that the Combo belongs to on a graph with Combos.

View File

@ -0,0 +1,77 @@
---
title: ComboUserModel
order: 5
---
用户输入数据中,每一项 Combo 数据类型说明如下。
```typescript
interface ComboUserModel {
id: string | number;
data: NodeUserModelData;
}
```
## id
- **是否必须**: 是;
- **类型**: `string|number`
Combo 的唯一 IDCombo 创建后ID 不可被修改。
## data
- **是否必须**: 是;
- **类型**: [`ComboUserModelData`](#combousermodeldatatype),详细见下文
Combo 除 ID 以外的的数据,建议存放业务数据。若需要进行数据转换,可通过 Graph 实例的 transform 配置转换函数,见 [Specification.transforms](../graph/Specification.zh.md#transforms)。转换后的数据成为内部流通的数据 Inner Data后续所有地方获取的都是这份内部数据。与渲染有关的可以通过 Graph 实例的 combo mapper 进行映射,见 [Specification.combo](../graph/Specification.zh.md#combo),该 mapper 的输入是 Inner Data生成的结果 Display Data 只交给渲染器消费,用户不会在任何地方获得。
### ComboUserModelData.type
- **是否必须**`否`
- **类型** `string`
Combo 的渲染类型,可以是已经注册到图类上的 Combo 类型,内置并默认注册的有 `'circle-combo'``'rect-combo'`。
### ComboUserModelData.visible
- **是否必须**`否`
- **类型** `boolean`
Combo 是否默认展示出来。
### ComboUserModelData.color
- **是否必须**`否`
- **类型** `string`
该 Combo 的主图形keyShape的主题色值为十六进制字符串。为方便简单配置而提供更多的样式配置应当在 Graph 实例的 Combo mapper 中配置 keyShape 以及各种图形的图形样式。
### ComboUserModelData.label
- **是否必须**`否`
- **类型** `string`
Combo labelShape 的文本内容。为方便简单配置而提供,更多的样式配置应当在 Graph 实例的 Combo mapper 中配置 labelShape 的 text 值或其他图形样式。
### ComboUserModelData.icon
- **是否必须**`否`
- **类型**
```typescript
{
type: 'text' | 'icon',
img?: string, // type 为 'text' 时需要提供
text?: string, // type 为 'icon' 时需要提供
}
```
Combo 上的 icon 配置。内置 Combo 的 icon 绘制在文本后方。为方便简单配置而提供,更多的样式配置应当在 Graph 实例的 Combo mapper 中配置 iconShape 的图形样式。
### ComboUserModelData.parentId
- **是否必须**`否`
- **类型** `string | number`
在有 Combo 的图上表示该 Combo 所属的父亲 Combo 的 id。

View File

@ -1,4 +0,0 @@
---
title: ComboUserModelData
order: 5
---

View File

@ -1,60 +0,0 @@
---
title: ComboUserModelData
order: 5
---
用户输入数据中,每一项 Combo 数据的 data 部分的类型说明如下。
## 属性
### type
- 是否必须:`否`
- 类型: `string`
Combo 的渲染类型,可以是已经注册到图类上的 Combo 类型,内置并默认注册的有 `'circle-node'``'rect-node'``'image-node'`。
### visible
- 是否必须:`否`
- 类型: `boolean`
`Optional` **visible**: `boolean`
Combo 是否默认展示出来。
### color
- 是否必须:`否`
- 类型: `string`
该 Combo 的主图形keyShape的主题色值为十六进制字符串。为方便简单配置而提供更多的样式配置应当在 Graph 实例的 Combo mapper 中配置 keyShape 以及各种图形的图形样式。
### label
- 是否必须:`否`
- 类型: `string`
Combo labelShape 的文本内容。为方便简单配置而提供,更多的样式配置应当在 Graph 实例的 Combo mapper 中配置 labelShape 的 text 值或其他图形样式。
### icon
- 是否必须:`否`
- 类型:
```typescript
{
type: 'text' | 'icon',
img?: string, // type 为 'text' 时需要提供
text?: string, // type 为 'icon' 时需要提供
}
```
Combo 上的 icon 配置。内置 Combo 的 icon 绘制在文本后方。为方便简单配置而提供,更多的样式配置应当在 Graph 实例的 Combo mapper 中配置 iconShape 的图形样式。
### parentId
- 是否必须:`否`
- 类型: `string | number`
在有 Combo 的图上表示该 Combo 所属的父亲 Combo 的 id。

View File

@ -2,3 +2,96 @@
title: Data Intro
order: 0
---
In G6 v5, to better manage data isolation and control data mapping, the data flow is defined as follows:
在 G6 v5 中,为了更好地做好数据隔离,控制数据映射,全新定义规范数据流如下:
【User Data】 - _Transforms_ -> 【Inner Data】 - _Mappers_ -> 【Display Data】
Now let's discuss each stage of data and the transformation process.
### User Data
The data type is [`GraphData`](./GraphData.zh.md) or [`TreeData`](./TreeData.zh.md). User data is the original data provided by the user, which can be data from the business domain. It is a collection of nodes, edges, and combos. This data can come from external data sources or be generated by user interaction.
There are several ways to input user data:
1. **Passing configuration when instantiating the graph**
The graph is automatically rendered after instantiation.
```javascript
const data = {
nodes: [...],
edges: [...],
combos: [...]
}
const graph = new Graph({
// ... other configurations
data
})
```
2. **Calling API to input data**
The graph reads and renders the data.
```javascript
graph.read(data);
```
3. **Calling API to update data**
- Updating the entire data [changeData](../graph//Graph.zh.md#changedata)
```javascript
graph.changeData(data);
```
- Adding partial data [addData](../graph//Graph.zh.md#adddata)
```javascript
graph.addData('node', [
{ id: 'newnode-1', data: {} },
{ id: 'newnode-2', data: {} },
]);
graph.addData('edge', [{ id: 'newedge-1', source: 'newnode-2', target: 'newnode-1', data: {} }]);
```
- Updating existing data [updateData](../graph//Graph.zh.md#updatedata)
```javascript
const nodes = [
{ id: 'node-1', data: { xx: 1 } },
{ id: 'node-2', data: { xx: 2 } },
];
// Update the above properties of 'node-1' and 'node-2'
graph.updateData('node', nodes);
```
- Removing partial data [removeData](../graph//Graph.zh.md#removedata)
```javascript
graph.removeData('node', ['node-1', 'node-2']);
```
### Transforms
Transforms are functional modules used to transform and process user input data. They can perform various operations such as attribute field transformation, data filtering, and data aggregation. Transformations can be customized based on specific requirements to convert input data into internal data formats suitable for subsequent processing.
Transformers are configured using the `transforms` field in the graph configuration. The `transforms` field accepts an array of transformer configurations. When G6 reads user data, it executes the data transformations in the order specified in `transforms`, with the output of the previous transformer being the input of the next one. [A DEMO for Transforms](/en/examples/feature/features/#rendererSwitch).
### Inner Data
Inner data is the data generated after the transformation stage in the Transforms. It is the data that has been processed and transformed by transformers. Inner data can be used as input for subsequent data mapping or for other data processing and operations. After G6 reads user data, any data fetched or modified is done on the inner data.
### Mappers
Mappers are used to map the inner data to specific visual channels. They map the internal data to specific node styles, edge styles, labels, and other visual attributes based on predefined rules and configurations. Mappers support JSON-based configurations as well as function-based configurations.
Mappers are configured using the `node`, `edge`, or `combo` fields in the graph configuration. The types of mappers can be found in: TODO. [A Demo for Mappers](/en/examples/feature/features/#lodLevels).
### Display Data
Display data is the final data generated after being processed by the data mappers. You will not directly access this data anywhere. It includes node positions, styles for various graphics, and other information needed for final rendering and display of the graph.

View File

@ -11,7 +11,7 @@ order: 0
### User Data 用户输入数据
数据类型为 [`GraphData`](./GraphData.zh.md) 或 [`TreeData`](./GraphData.zh.md)。用户输入数据是由用户提供的原始数据可以是来自业务的数据。是节点、边、Combo 的集合。这些数据可能来自外部数据源,或者是用户通过交互操作生成的。
数据类型为 [`GraphData`](./GraphData.zh.md) 或 [`TreeData`](./TreeData.zh.md)。用户输入数据是由用户提供的原始数据可以是来自业务的数据。是节点、边、Combo 的集合。这些数据可能来自外部数据源,或者是用户通过交互操作生成的。
用户数据输入的方式有:
@ -41,13 +41,13 @@ graph.read(data);
3. **调用 API 更新数据**
- 更新全量数据 [changeData](TODO)
- 更新全量数据 [changeData](../graph//Graph.zh.md#changedata)
```javascript
graph.changeData(data);
```
- 新增部分数据 [addData](TODO)
- 新增部分数据 [addData](../graph//Graph.zh.md#adddata)
```javascript
graph.addData('node', [
@ -57,7 +57,7 @@ graph.addData('node', [
graph.addData('edge', [{ id: 'newedge-1', source: 'newnode-2', target: 'newnode-1', data: {} }]);
```
- 更新部分已有数据 [updateData](TODO)
- 更新部分已有数据 [updateData](../graph//Graph.zh.md#updatedata)
```javascript
const nodes = [
@ -68,7 +68,7 @@ const nodes = [
graph.updateData('node', nodes);
```
- 删除部分数据 [removeData](TODO)
- 删除部分数据 [removeData](../graph//Graph.zh.md#removedata)
```javascript
graph.removeData('node', ['node-1', 'node-2']);
@ -78,7 +78,7 @@ graph.removeData('node', ['node-1', 'node-2']);
数据转换器是用于对用户输入数据进行转换和处理的功能模块。它们可以执行各种操作,例如属性字段转换、数据过滤、数据聚合等。转换器可以根据实际需求进行自定义配置,以便将输入数据转换为适合后续处理的内部数据格式。
使用图配置中的 `transforms` 字段配置的各种转换器。`transforms` 接受的是转换器配置数组G6 在读取用户数据时,将按照 `transforms` 中转换器的顺序执行数据转换,前一个转换器的结果将作为下一个转换器的输入。 例如TODO
使用图配置中的 `transforms` 字段配置的各种转换器。`transforms` 接受的是转换器配置数组G6 在读取用户数据时,将按照 `transforms` 中转换器的顺序执行数据转换,前一个转换器的结果将作为下一个转换器的输入 [Transforms DEMO](/en/examples/feature/features/#rendererSwitch).
### Inner Data 内部流转数据
@ -88,7 +88,7 @@ graph.removeData('node', ['node-1', 'node-2']);
数据映射器是用于将内部流转数据映射到具体的视觉通道上。它们根据预定义的规则和配置,将内部数据映射到特定的节点样式、边样式、标签等可视化属性上。数据映射器支持 JSON 格式的配置,也支持函数式的配置。
使用图配置中的 `node``edge`,或 `combo`类型见TODO。
使用图配置中的 `node``edge`,或 `combo`类型见TODO。 [Mappers DEMO](/zh/examples/feature/features/#lodLevels).
### Display Data 渲染数据

View File

@ -0,0 +1,116 @@
---
title: EdgeUserModel
order: 4
---
In the user input data, each edge model has the following type specifications.
```typescript
interface EdgeUserModel {
id: string | number;
source: string | number;
target: string | number;
data: EdgeUserModelData;
}
```
## id
- **Required**: True;
- **Type**:`string|number`
The unique ID of the edge. Once the edge is created, the ID cannot be changed.
## source
- **Required**: True;
- **Type**:`string|number`
The ID of the source node of the edge. It should correspond to an item in `nodes`, otherwise the edge data will not be added to the graph.
## target
- **Required**: True;
- **Type**:`string|number`
The ID of the target node of the edge. It should correspond to an item in `nodes`, otherwise the edge data will not be added to the graph.
## data
- **Required**: True;
- **Type**:[`EdgeUserModelData`](#edgeusermodeldatatype)
The data of the edge, excluding the ID, source ID, and target ID. It is recommended to store business data. If data conversion is needed, it can be done through the transform function configured in the Graph instance, see [Specification.transforms](../graph/Specification.en.md#transforms). The converted data becomes the internal data that circulates within the graph. All subsequent accesses will be based on this internal data. For rendering-related data, it can be mapped using the edge mapper of the Graph instance, see [Specification.node](../graph/Specification.en.md#edge). The input of this mapper is the internal data, and the generated display data is only consumed by the renderer. Users will not obtain it anywhere.
### EdgeUserModelData.type
- **Required**: False;
- **Type**: `string`;
The rendering type of the edge. It can be a pre-registered edge type in the graph, with `'line-edge'` and `'loop-edge'` being the built-in and default options.
### EdgeUserModelData.visible
- **Required**: False;
- **Type**: `boolean`;
Whether the edge is visible by default.
### EdgeUserModelData.color
- **Required**: False;
- **Type**: `string`;
The main color of the key shape (main shape) of the edge. It is a hexadecimal string. This is provided for simple configuration purposes. More style configurations for the key shape and other graphics should be configured in the edge mapper of the graph instance.
### EdgeUserModelData.label
- **Required**: False;
- **Type**: `string`;
The text content of the label shape on the edge. This is provided for simple configuration purposes. More style configurations for the label shape should be configured in the edge mapper of the graph instance.
### EdgeUserModelData.badge
- **Required**: False;
- **Type**:
```typescript
{
position: BadgePosition,
type: 'text' | 'icon',
img?: string, // Required if type is 'text'
text?: string, // Required if type is 'icon'
};
```
The configuration of the badge on the edge. The built-in badge is drawn after the text. More style configurations for the badge shapes should be configured in the edge mapper of the graph instance.
### EdgeUserModelData.icon
- **Required**: False;
- **Type**:
```typescript
{
type: 'text' | 'icon',
img?: string, // Required if type is 'text'
text?: string, // Required if type is 'icon'
}
```
The configuration of the icon on the edge. The built-in icon is drawn after the text. This is provided for simple configuration purposes. More style configurations for the icon shape should be configured in the edge mapper of the graph instance.
### EdgeUserModelData.sourceAnchor
- **Required**: False;
- **Type**: `number`;
The `anchorPoints` on the source node indicate the positions where the related edges can connect. It is an array. The `sourceAnchor` of the edge indicates which anchor point to connect when connecting to the source node. It corresponds to the index of the corresponding position in the `anchorPoints` array of the source node.
### EdgeUserModelData.targetAnchor
- **Required**: False;
- **Type**: `number`;
The `anchorPoints` on the target node indicate the positions where the related edges can connect. It is an array. The `targetAnchor` of the edge indicates which anchor point to connect when connecting to the target node. It corresponds to the index of the corresponding position in the `anchorPoints` array of the target node.

View File

@ -0,0 +1,116 @@
---
title: EdgeUserModel
order: 4
---
用户输入数据中,每一项边数据类型说明如下。
```typescript
interface EdgeUserModel {
id: string | number;
source: string | number;
target: string | number;
data: EdgeUserModelData;
}
```
## id
- **是否必须**: 是;
- **类型**: `string|number`
边的唯一 ID节点创建后ID 不可被修改。
## source
- **是否必须**: 是;
- **类型**: `string|number`
边起始节点的 ID应与 `nodes` 中的一项对应,否则该边数据不会被加入到图中。
## target
- **是否必须**: 是;
- **类型**: `string|number`
边结束节点的 ID应与 `nodes` 中的一项对应,否则该边数据不会被加入到图中。
## data
- **是否必须**: 是;
- **类型**: [`EdgeUserModelData`](#edgeusermodeldatatype)
边除 ID、起点 ID、终点 ID 以外的数据,建议存放业务数据。若需要进行数据转换,可通过 Graph 实例的 transform 配置转换函数,见 [Specification.transforms](../graph/Specification.zh.md#transforms)。转换后的数据成为内部流通的数据 Inner Data后续所有地方获取的都是这份内部数据。与渲染有关的可以通过 Graph 实例的边 mapper 进行映射,见 [Specification.edge](../graph/Specification.zh.md#edge),该 mapper 的输入是 Inner Data生成的结果 Display Data 只交给渲染器消费,用户不会在任何地方获得。
### EdgeUserModelData.type
- 是否必须:否;
- 类型: `string`
边的渲染类型,可以是已经注册到图类上的边类型,内置并默认注册的有 `'line-edge'``'loop-edge'`。
### EdgeUserModelData.visible
- 是否必须:否;
- 类型: `boolean`
边是否默认展示出来。
### EdgeUserModelData.color
- 是否必须:否;
- 类型: `string`
该边的主图形keyShape的主题色值为十六进制字符串。为方便简单配置而提供更多的样式配置应当在 Graph 实例的边 mapper 中配置 keyShape 以及各种图形的图形样式。
### EdgeUserModelData.label
- 是否必须:否;
- 类型: `string`
边 labelShape 的文本内容。为方便简单配置而提供,更多的样式配置应当在 Graph 实例的边 mapper 中配置 labelShape 的 text 值或其他图形样式。
### EdgeUserModelData.badge
- 是否必须:否;
- 类型:
```typescript
{
position: BadgePosition,
type: 'text' | 'icon',
img?: string, // type 为 'text' 时需要提供
text?: string, // type 为 'icon' 时需要提供
};
```
边上的徽标配置,内置边的徽标绘制在文本后方。更多的样式配置应当在 Graph 实例的边 mapper 中配置 badgeShapes 的图形样式。
### EdgeUserModelData.icon
- 是否必须:否;
- 类型:
```typescript
{
type: 'text' | 'icon',
img?: string, // type 为 'text' 时需要提供
text?: string, // type 为 'icon' 时需要提供
}
```
边上的 icon 配置。内置边的 icon 绘制在文本后方。为方便简单配置而提供,更多的样式配置应当在 Graph 实例的边 mapper 中配置 iconShape 的图形样式。
### EdgeUserModelData.sourceAnchor
- 是否必须:否;
- 类型: `number`
起点节点上 `anchorPoints` 表示允许相关边连入的位置,是一个数组。而边的 `sourceAnchor` 表示了这条边连入起点时选择哪个锚点连入,对应了起点节点上 `anchorPoints` 对应位置的序号。
### EdgeUserModelData.targetAnchor
- 是否必须:否;
- 类型: `number`
终点节点上 `anchorPoints` 表示允许相关边连入的位置,是一个数组。而边的 `targetAnchor` 表示了这条边连入终点时选择哪个锚点连入,对应了起点节点上 `anchorPoints` 对应位置的序号。

View File

@ -1,4 +0,0 @@
---
title: EdgeUserModelData
order: 4
---

View File

@ -1,83 +0,0 @@
---
title: EdgeUserModelData
order: 4
---
用户输入数据中,每一项边数据的 data 部分的类型说明如下。
## 属性
### type
- 是否必须:`否`
- 类型: `string`
边的渲染类型,可以是已经注册到图类上的边类型,内置并默认注册的有 `'line-edge'``'loop-edge'`。
### visible
- 是否必须:`否`
- 类型: `boolean`
`Optional` **visible**: `boolean`
边是否默认展示出来。
### color
- 是否必须:`否`
- 类型: `string`
该边的主图形keyShape的主题色值为十六进制字符串。为方便简单配置而提供更多的样式配置应当在 Graph 实例的边 mapper 中配置 keyShape 以及各种图形的图形样式。
### label
- 是否必须:`否`
- 类型: `string`
边 labelShape 的文本内容。为方便简单配置而提供,更多的样式配置应当在 Graph 实例的边 mapper 中配置 labelShape 的 text 值或其他图形样式。
### badge
- 是否必须:`否`
- 类型:
```typescript
{
position: BadgePosition,
type: 'text' | 'icon',
img?: string, // type 为 'text' 时需要提供
text?: string, // type 为 'icon' 时需要提供
};
```
边上的徽标配置,内置边的徽标绘制在文本后方。更多的样式配置应当在 Graph 实例的边 mapper 中配置 badgeShapes 的图形样式。
### icon
- 是否必须:`否`
- 类型:
```typescript
{
type: 'text' | 'icon',
img?: string, // type 为 'text' 时需要提供
text?: string, // type 为 'icon' 时需要提供
}
```
边上的 icon 配置。内置边的 icon 绘制在文本后方。为方便简单配置而提供,更多的样式配置应当在 Graph 实例的边 mapper 中配置 iconShape 的图形样式。
### sourceAnchor
- 是否必须:`否`
- 类型: `number`
起点节点上 `anchorPoints` 表示允许相关边连入的位置,是一个数组。而边的 `sourceAnchor` 表示了这条边连入起点时选择哪个锚点连入,对应了起点节点上 `anchorPoints` 对应位置的序号。
### targetAnchor
- 是否必须:`否`
- 类型: `number`
终点节点上 `anchorPoints` 表示允许相关边连入的位置,是一个数组。而边的 `sourceAnchor` 表示了这条边连入终点时选择哪个锚点连入,对应了起点节点上 `anchorPoints` 对应位置的序号。

View File

@ -2,3 +2,22 @@
title: GraphData
order: 1
---
This chapter is type of `GraphData`, which is one of the input data type for graph instance. In the same time, v5's graph also accept the [TreeGraph](./TreeData.zh.md) type data.
## Properties
### nodes
- Required: Yes;
- Type: [`NodeUserModel`](./NodeUserModel.en.md)[];
### edges
- Required: Yes;
- Type: [`EdgeUserModel`](./EdgeUserModel.en.md)[];
### combos
- Required: False;
- Type: [`ComboUserModel`](./ComboUserModel.en.md)[];

View File

@ -10,52 +10,14 @@ order: 1
### nodes
- 是否必须:`是`
- 类型: [`NodeUserModel[]`](#NodeUserModel)
#### NodeUserModel
`必须` **id**: `string|number`
节点的唯一 ID节点创建后ID 不可被修改。
`必须` **data**: [`NodeUserModelData`](./NodeUserModelData.zh.md)
节点除 ID 以外的的数据,建议存放业务数据。若需要进行数据转换,可通过 Graph 实例的 transform 配置转换函数,见 [Specification.transforms](TODO)。转换后的数据成为内部流通的数据 Inner Data后续所有地方获取的都是这份内部数据。与渲染有关的可以通过 Graph 实例的节点 mapper 进行映射,见 [Specification.node](TODO),该 mapper 的输入是 Inner Data生成的结果 Display Data 只交给渲染器消费,用户不会在任何地方获得。
- 类型: [`NodeUserModel`](./NodeUserModel.zh.md)[]
### edges
- 是否必须:`是`
- 类型: `EdgeUserModel`[]
#### EdgeUserModel
`必须` **id**: `string|number`
边的唯一 ID节点创建后ID 不可被修改。
`必须` **source**: `string|number`
边起始节点的 ID应与 `nodes` 中的一项对应,否则该边数据不会被加入到图中。
`必须` **target**: `string|number`
边结束节点的 ID应与 `nodes` 中的一项对应,否则该边数据不会被加入到图中。
`必须` **data**: [`EdgeUserModelData`](./EgdeUserModelData.zh.md)
边除 ID、起点 ID、终点 ID 以外的数据,建议存放业务数据。若需要进行数据转换,可通过 Graph 实例的 transform 配置转换函数,见 [Specification.transforms](TODO)。转换后的数据成为内部流通的数据 Inner Data后续所有地方获取的都是这份内部数据。与渲染有关的可以通过 Graph 实例的边 mapper 进行映射,见 [Specification.edge](TODO),该 mapper 的输入是 Inner Data生成的结果 Display Data 只交给渲染器消费,用户不会在任何地方获得。
- 类型: [`EdgeUserModel`](./EdgeUserModel.zh.md)[]
### combos
- 是否必须:`否`
- 类型: `ComboUserModel`[]
#### ComboUserModel
`必须` **id**: `string|number`
Combo 的唯一 IDCombo 创建后ID 不可被修改。
`必须` **data**: [`ComboUserModelData`](./ComboUserModelData.zh.md)
Combo 除 ID 以外的的数据,建议存放业务数据。若需要进行数据转换,可通过 Graph 实例的 transform 配置转换函数,见 [Specification.transforms](TODO)。转换后的数据成为内部流通的数据 Inner Data后续所有地方获取的都是这份内部数据。与渲染有关的可以通过 Graph 实例的 combo mapper 进行映射,见 [Specification.combo](TODO),该 mapper 的输入是 Inner Data生成的结果 Display Data 只交给渲染器消费,用户不会在任何地方获得。
- 类型: [`ComboUserModel`](./ComboUserModel.zh.md)[]

View File

@ -0,0 +1,150 @@
---
title: NodeUserModel
order: 3
---
The data part of each node model in the user input data is explained as follows.
```typescript
interface NodeUserModel {
id: string | number;
data: NodeUserModelData;
}
```
## id
- **Required**: True;
- **Type**: `string|number`;
The unique ID of the node. Once the node is created, the ID cannot be changed.
## data
- **Required**: True;
- **Type**: [`NodeUserModelData`](#nodeusermodeldatatype);
The data of the node, excluding the ID. It is recommended to store business data. If data conversion is needed, it can be done through the transform function configured in the Graph instance, see [Specification.transforms](../graph/Specification.en.md#transforms). The converted data becomes the internal data that circulates within the graph. All subsequent accesses will be based on this internal data. For rendering-related data, it can be mapped using the node mapper of the Graph instance, see [Specification.node](../graph/Specification.en.md#node) The input of this mapper is the internal data, and the generated display data is only consumed by the renderer. Users will not obtain it anywhere.
### NodeUserModelData.type
- **Required**: False;
- **Type**: `string`;
Type: string The rendering type of the node. It can be a node type that has been registered with the graph class. Built-in and default registered types include `'circle-node'`, `'rect-node'`, and `'image-node'`.
### NodeUserModelData.x
- **Required**: False;
- **Type**: `number`;
Type: number The x-axis position of the node. If the node position is not specified and no `layout` is configured for the graph instance, the node may be rendered at the top left corner of the canvas.
### NodeUserModelData.y
- **Required**: False;
- **Type**: `number`;
The y-axis position of the node. If the node position is not specified and no `layout` is configured for the graph instance, the node may be rendered at the top left corner of the canvas.
### NodeUserModelData.z
- **Required**: False;
- **Type**: `number`;
For 2D graphs, there is no need to specify the z value. If it is specified, it may cause the node to be invisible under the WebGL renderer. In 3D graphs, the z value is required and represents the z-axis position of the node. If the node position is not specified and no `layout` is configured for the graph instance, the node may be rendered at the top left corner of the canvas.
### NodeUserModelData.visible
- **Required**: False;
- **Type**: `boolean`;
Whether the node is displayed by default.
### NodeUserModelData.color
- **Required**: False;
- **Type**: `string`;
The main color of the primary shape (keyShape) of the node, expressed as a hexadecimal string. This is provided for simple configuration. More style configurations should be done in the node mapper of the graph instance, where the keyShape and various graphic styles are configured.
### NodeUserModelData.label
- **Required**: False;
- **Type**: `string`;
The text content of the label shape of the node. This is provided for simple configuration. More style configurations should be done in the node mapper of the graph instance, where the text value of the labelShape or other graphic styles are configured.
### NodeUserModelData.badges
- **Required**: False;
- **Type**:
```typescript
{
position: BadgePosition,
type: 'text' | 'icon',
img?: string, // required when type is 'text'
text?: string, // required when type is 'icon'
}[];
```
The configuration of the badges around the node. The possible positions `BadgePosition` are as follows. This is provided for simple configuration. More style configurations should be done in the node mapper of the graph instance, where the graphic styles of the badgeShapes are configured.
```typescript
BadgePosition: 'rightTop' |
'right' |
'rightBottom' |
'bottomRight' |
'bottom' |
'bottomLeft' |
'leftBottom' |
'left' |
'leftTop' |
'topLeft' |
'top' |
'topRight';
```
### NodeUserModelData.icon
- **Required**: False;
- **Type**:
```typescript
{
type: 'text' | 'icon',
img?: string, // required when type is 'text'
text?: string, // required when type is 'icon'
}
```
The configuration of the central icon of the node. This is provided for simple configuration. More style configurations should be done in the node mapper of the graph instance, where the graphic styles of the iconShape are configured.
### NodeUserModelData.anchorPoints
- **Required**: False;
- **Type**: `number[][]`;
The positions where the edges are connected to the node. If not configured, the edges will automatically find the nearest positions on the edge of the node for connection. For example, `[[0,0.5],[1,0.5]]`, where the numbers indicate the percentage position relative to the primary shape (keyShape) of the node in the x or y direction. This is provided for simple configuration. More style configurations should be done in the node mapper of the graph instance, where the graphic styles of the anchorShapes are configured.
### NodeUserModelData.parentId
- **Required**: False;
- **Type**: `string | number`;
In a graph with combos, it indicates the ID of the combo to which the node belongs.
### NodeUserModelData.isRoot
- **Required**: False;
- **Type**: `boolean`;
If you want to display the data as a tree diagram and use tree layout at the same time, specify whether this node is one of the root nodes of the tree.
### NodeUserModelData.preventPolylineEdgeOverlap
- **Required**: False;
- **Type**: `boolean`;
Whether to treat this node as an obstacle and make it avoid the `'polyline-edge'` type of edges. The default value is `false`.

View File

@ -1,67 +1,84 @@
---
title: NodeUserModelData
title: NodeUserModel
order: 3
---
用户输入数据中,每一项节点数据的 data 部分的类型说明如下。
用户输入数据中,每一项节点类型:
## 属性
```typescript
interface NodeUserModel {
id: string | number;
data: NodeUserModelData;
}
```
### type
## id
- 是否必须:`否`
- 类型: `string`
- **是否必须**: 是;
- **类型**: `string|number`
节点的唯一 ID节点创建后ID 不可被修改。
## data
- **是否必须**: 是;
- **类型**: [`NodeUserModelData`](#nodeusermodeldatatype),详细见下文
节点除 ID 以外的的数据,建议存放业务数据。若需要进行数据转换,可通过 Graph 实例的 transform 配置转换函数,见 [Specification.transforms](../graph/Specification.zh.md#transforms)。转换后的数据成为内部流通的数据 Inner Data后续所有地方获取的都是这份内部数据。与渲染有关的可以通过 Graph 实例的节点 mapper 进行映射,见 [Specification.node](../graph/Specification.zh.md#node),该 mapper 的输入是 Inner Data生成的结果 Display Data 只交给渲染器消费,用户不会在任何地方获得。
### NodeUserModelData.type
- **是否必须**: 否;
- **类型**: `string`
节点的渲染类型,可以是已经注册到图类上的节点类型,内置并默认注册的有 `'circle-node'``'rect-node'``'image-node'`。
### x
### NodeUserModelData.x
- 是否必须:`否`
- 类型: `number`
- **是否必须**: 否
- **类型**: `number`
节点的 x 轴位置。若未指定节点位置,且未为图实例配置 `layout`(布局),则节点可能被渲染在画布左上角。
### y
### NodeUserModelData.y
- 是否必须:`否`
- 类型: `number`
- **是否必须**: 否
- **类型**: `number`
节点的 y 轴位置。若未指定节点位置,且未为图实例配置 `layout`(布局),则节点可能被渲染在画布左上角。
### z
### NodeUserModelData.z
- 是否必须:`否`
- 类型: `number`
- **是否必须**: 否
- **类型**: `number`
对于 2D 的图,不需要指定 z 值。若指定可能导致 WebGL 渲染器下节点看不见。在 3D 图中z 值是必须的,代表节点的 z 轴位置。若未指定节点位置,且未为图实例配置 `layout`(布局),则节点可能被渲染在画布左上角。
### visible
### NodeUserModelData.visible
- 是否必须:`否`
- 类型: `boolean`
`Optional` **visible**: `boolean`
- **是否必须**: 否;
- **类型**: `boolean`
节点是否默认展示出来。
### color
### NodeUserModelData.color
- 是否必须:`否`
- 类型: `string`
- **是否必须**: 否
- **类型**: `string`
该节点主图形keyShape的主题色值为十六进制字符串。为方便简单配置而提供更多的样式配置应当在 Graph 实例的节点 mapper 中配置 keyShape 以及各种图形的图形样式。
### label
### NodeUserModelData.label
- 是否必须:`否`
- 类型: `string`
- **是否必须**: 否
- **类型**: `string`
节点 labelShape 的文本内容。为方便简单配置而提供,更多的样式配置应当在 Graph 实例的节点 mapper 中配置 labelShape 的 text 值或其他图形样式。
### badges
### NodeUserModelData.badges
- 是否必须:`否`
- 类型:
- **是否必须**: 否
- **类型**:
```typescript
{
@ -89,10 +106,10 @@ BadgePosition: 'rightTop' |
'topRight';
```
### icon
### NodeUserModelData.icon
- 是否必须:`否`
- 类型:
- **是否必须**: 否
- **类型**:
```typescript
{
@ -104,30 +121,30 @@ BadgePosition: 'rightTop' |
节点中心 icon 的配置。为方便简单配置而提供,更多的样式配置应当在 Graph 实例的节点 mapper 中配置 iconShape 的图形样式。
### anchorPoints
### NodeUserModelData.anchorPoints
- 是否必须:`否`
- 类型: `number[][]`
- **是否必须**: 否
- **类型**: `number[][]`
该节点四周连接图形的位置,也是边连入的位置。若不配置,边则自动寻找节点边缘最近的位置进行连接。例如 `[[0,0.5],[1,0.5]]`,数字表示在 x 或 y 方向上相对于节点主图形keyShape的百分比位置。为方便简单配置而提供更多的样式配置应当在 Graph 实例的节点 mapper 中配置 anchorShapes 的图形样式。
### parentId
### NodeUserModelData.parentId
- 是否必须:`否`
- 类型: `string | number`
- **是否必须**: 否
- **类型**: `string | number`
在有 combo 的图上表示该节点所属的 combo 的 id。
### isRoot
### NodeUserModelData.isRoot
- 是否必须:`否`
- 类型: `boolean`
- **是否必须**: 否
- **类型**: `boolean`
若要将该份数据作为树图展示,同时使用树图布局时,指定该节点是否为树的根节点之一。
### preventPolylineEdgeOverlap
### NodeUserModelData.preventPolylineEdgeOverlap
- 是否必须:`否`
- 类型: `boolean`
- **是否必须**: 否
- **类型**: `boolean`
是否将该节点作为一个障碍物,使 `'polyline-edge'` 类型的边躲避。默认为 `false`

View File

@ -1,4 +0,0 @@
---
title: NodeUserModelData
order: 3
---

View File

@ -2,3 +2,30 @@
title: TreeData
order: 2
---
The TreeData type is the type of tree graph data, which is one of the data types accepted by the Graph class. In version 5, the Graph and TreeGraph are connected, meaning that the same Graph class can read both the [GraphData](./GraphData.en.md) format and the tree graph data format described in this document. `TreeGraph` is a nested data structure that represents the parent-child hierarchy of a tree. Unlike `GraphData`, `TreeData` does not explicitly define `edges` and does not have an `edges` array. Instead, the nested `children` implicitly represent the edges, meaning that there is an edge between parent and child nodes.
In version 5, the Graph class can read `GraphData`, `TreeData`, and `TreeData[]`, which means it can display graph data, tree graph data, and forests of multiple trees.
## Properties
### id
- Required: Yes;
- Type: `string | number`;
The unique ID of the node. Once the node is created, the ID cannot be modified.
### data
- Required: Yes;
- Type: [`NodeUserModelData`](./NodeUserModelData.en.md);
The data of the node, excluding the ID. It is recommended to store business data in this property. If data transformation is needed, it can be done through the transform configuration of the Graph instance, see [Specification.transforms](../graph/Specification.en.md#transforms). The transformed data becomes the internal circulating data (Inner Data), and all subsequent accesses will obtain this internal data. Mapping related to rendering can be done through the node mapper of the Graph instance, see [Specification.node](../graph/Specification.en.md#node). The input of this mapper is the Inner Data, and the generated Display Data is only consumed by the renderer. Users will not get it anywhere.
### children
- Required: False;
- Type: `TreeData`;
The array of child nodes of this node. It is a nested `TreeData` format node.

View File

@ -19,9 +19,9 @@ v5 的 Graph 可以读取 `GraphData`、`TreeData`、`TreeData[]`,即可以展
### data
- 是否必须:`是`
- 类型:[`NodeUserModelData`](./NodeUserModelData.zh.md)
- 类型:[`NodeUserModelData`](./NodeUserModel.zh.md#nodeusermodeldatatype)
节点除 ID 以外的的数据,建议存放业务数据。若需要进行数据转换,可通过 Graph 实例的 transform 配置转换函数,见 [Specification.transforms](TODO)。转换后的数据成为内部流通的数据 Inner Data后续所有地方获取的都是这份内部数据。与渲染有关的可以通过 Graph 实例的节点 mapper 进行映射,见 [Specification.node](TODO),该 mapper 的输入是 Inner Data生成的结果 Display Data 只交给渲染器消费,用户不会在任何地方获得。
节点除 ID 以外的的数据,建议存放业务数据。若需要进行数据转换,可通过 Graph 实例的 transform 配置转换函数,见 [Specification.transforms](../graph/Specification.zh.md#transforms)。转换后的数据成为内部流通的数据 Inner Data后续所有地方获取的都是这份内部数据。与渲染有关的可以通过 Graph 实例的节点 mapper 进行映射,见 [Specification.node](../graph/Specification.zh.md#node),该 mapper 的输入是 Inner Data生成的结果 Display Data 只交给渲染器消费,用户不会在任何地方获得。
### children

View File

@ -0,0 +1,4 @@
---
title: ComboDisplayModel
order: 12
---

View File

@ -0,0 +1,31 @@
---
title: ComboDisplayModel
order: 12
---
渲染/展示数据的 Combo 类型继承自 [`ComboInnerModel`](./ComboInnerModel.zh.md),扩展后定义如下:
```typescript
interface ComboDisplayModel {
id: string | number;
data: ComboDisplayModelData; // 扩展了 ComboInnerModelData
}
```
## id
- **是否必须**: 是;
- **类型**: `string|number`
节点的唯一 ID节点创建后ID 不可被修改。
## data
DisplayModelData 中的数据已经是 UserInnerModel 通过 Graph 实例上配置的对应 mappere.g. 节点为 [specification.node](../graph/Specification.zh.md#node),边是 [specification.edge](../graph/Specification.zh.md#edge)combo 是 [specification.combo](../graph/Specification.zh.md#combo))映射后的结果,这里面应当存储所有 UserInnerModel 的内容,再额外加上许多的图形样式配置。
- **是否必须**: 是;
- **类型**: [`ComboDisplayModelData`](#combodisplaymodeldataxxx),基于 `ComboInnerModel` 额外扩展内容如下文:
### ComboDisplayModelData.xxx
TODO

View File

@ -1,4 +0,0 @@
---
title: ComboDisplayModelData
order: 12
---

View File

@ -1,4 +0,0 @@
---
title: ComboDisplayModelData
order: 12
---

View File

@ -0,0 +1,4 @@
---
title: ComboInnerModel
order: 9
---

View File

@ -0,0 +1,31 @@
---
title: ComboInnerModel
order: 8
---
内部流转数据中,每一项 Combo 的类型继承自 [`ComboUserModel`](./ComboUserModel.zh.md),扩展后定义如下:
```typescript
interface ComboInnerModel {
id: string | number;
data: ComboInnerModelData; // 扩展了 ComboUserModelData
}
```
## id
- **是否必须**: 是;
- **类型**: `string|number`
节点的唯一 ID节点创建后ID 不可被修改。
## data
InnerModelData 中的数据已经是 UserModelData 通过 Graph 实例的一系列 transform 函数生成的结果,业务数据可能已经被转换、过滤、合并。
- **是否必须**: 是;
- **类型**: [`ComboInnerModelData`](#comboinnermodeldataxxx),基于 `ComboUserModel` 额外扩展内容如下文:
### ComboInnerModelData.xxx
TODO

View File

@ -1,4 +0,0 @@
---
title: ComboInnerModelData
order: 9
---

View File

@ -1,4 +0,0 @@
---
title: ComboInnerModelData
order: 8
---

View File

@ -0,0 +1,4 @@
---
title: EdgeDisplayModel
order: 11
---

View File

@ -0,0 +1,47 @@
---
title: EdgeDisplayModel
order: 11
---
边的渲染/展示数据类型继承自 [`EdgeInnerModel`](./EdgeInnerModel.zh.md),扩展后定义如下:
```typescript
interface EdgeDisplayModel {
id: string | number;
source: string | number;
target: string | number;
data: EdgeDisplayModelData; // 扩展了 EdgeInnerModelData
}
```
## id
- **是否必须**: 是;
- **类型**: `string|number`
边的唯一 ID节点创建后ID 不可被修改。
## source
- **是否必须**: 是;
- **类型**: `string|number`
边起始节点的 ID应与 `nodes` 中的一项对应,否则该边数据不会被加入到图中。
## target
- **是否必须**: 是;
- **类型**: `string|number`
边结束节点的 ID应与 `nodes` 中的一项对应,否则该边数据不会被加入到图中。
## data
DisplayModelData 中的数据已经是 UserInnerModel 通过 Graph 实例上配置的对应 mappere.g. 节点为 [specification.node](../graph/Specification.zh.md#node),边是 [specification.edge](../graph/Specification.zh.md#edge)combo 是 [specification.combo](../graph/Specification.zh.md#combo))映射后的结果,这里面应当存储所有 UserInnerModel 的内容,再额外加上许多的图形样式配置。
- **是否必须**: 是;
- **类型**: [`EdgeDisplayModelData`](#edgedisplaymodeldatatype)
### EdgeDisplayModelData.xxx
TODO

View File

@ -1,4 +0,0 @@
---
title: EdgeDisplayModelData
order: 11
---

View File

@ -1,4 +0,0 @@
---
title: EdgeDisplayModelData
order: 11
---

View File

@ -0,0 +1,4 @@
---
title: EdgeInnerModel
order: 8
---

View File

@ -0,0 +1,47 @@
---
title: EdgeInnerModel
order: 8
---
内部流转数据中,每一项边的类型继承自 [`EdgeUserModel`](./EdgeUserModel.zh.md),扩展后定义如下:
```typescript
interface EdgeInnerModel {
id: string | number;
source: string | number;
target: string | number;
data: EdgeInnerModelData; // 扩展了 EdgeUserModelData
}
```
## id
- **是否必须**: 是;
- **类型**: `string|number`
边的唯一 ID节点创建后ID 不可被修改。
## source
- **是否必须**: 是;
- **类型**: `string|number`
边起始节点的 ID应与 `nodes` 中的一项对应,否则该边数据不会被加入到图中。
## target
- **是否必须**: 是;
- **类型**: `string|number`
边结束节点的 ID应与 `nodes` 中的一项对应,否则该边数据不会被加入到图中。
## data
InnerModelData 中的数据已经是 UserModelData 通过 Graph 实例的一系列 transform 函数生成的结果,业务数据可能已经被转换、过滤、合并。
- **是否必须**: 是;
- **类型**: [`EdgeInnerModelData`](#edgeinnermodeldatatype)
### EdgeInnerModelData.xxx
TODO

View File

@ -1,4 +0,0 @@
---
title: EdgeInnerModelData
order: 8
---

View File

@ -1,4 +0,0 @@
---
title: EdgeInnerModelData
order: 8
---

View File

@ -0,0 +1,4 @@
---
title: NodeDisplayModel
order: 10
---

View File

@ -0,0 +1,31 @@
---
title: NodeDisplayModel
order: 10
---
渲染/展示数据的节点类型继承自 [`NodeInnerModel`](./NodeInnerModel.zh.md),扩展后定义如下:
```typescript
interface NodeDisplayModel {
id: string | number;
data: NodeDisplayModelData; // 扩展了 NodeInnerModelData
}
```
## id
- **是否必须**: 是;
- **类型**: `string|number`
节点的唯一 ID节点创建后ID 不可被修改。
## data
DisplayModelData 中的数据已经是 UserInnerModel 通过 Graph 实例上配置的对应 mappere.g. 节点为 [specification.node](../graph/Specification.zh.md#node),边是 [specification.edge](../graph/Specification.zh.md#edge)combo 是 [specification.combo](../graph/Specification.zh.md#combo))映射后的结果,这里面应当存储所有 UserInnerModel 的内容,再额外加上许多的图形样式配置。
- **是否必须**: 是;
- **类型**: [`NodeDisplayModelData`](#nodedisplaymodeldataxxx),基于 `NodeInnerModel` 额外扩展内容如下文:
### NodeDisplayModelData.xxx
TODO

View File

@ -1,4 +0,0 @@
---
title: NodeDisplayModelData
order: 10
---

View File

@ -1,4 +0,0 @@
---
title: NodeDisplayModelData
order: 10
---

View File

@ -0,0 +1,4 @@
---
title: NodeDisplayModel
order:
---

View File

@ -0,0 +1,31 @@
---
title: NodeInnerModel
order: 6
---
内部流转数据中,每一项节点的类型继承自 [`NodeUserModel`](./NodeUserModel.zh.md),扩展后定义如下:
```typescript
interface NodeInnerModel {
id: string | number;
data: NodeInnerModelData; // 扩展了 NodeUserModelData
}
```
## id
- **是否必须**: 是;
- **类型**: `string|number`
节点的唯一 ID节点创建后ID 不可被修改。
## data
InnerModelData 中的数据已经是 UserModelData 通过 Graph 实例的一系列 transform 函数生成的结果,业务数据可能已经被转换、过滤、合并。
- **是否必须**: 是;
- **类型**: [`NodeInnerModelData`](#nodeinnermodeldataxxx),基于 `NodeUserModel` 额外扩展内容如下文:
### NodeInnerModelData.xxx
TODO

View File

@ -1,4 +0,0 @@
---
title: NodeDisplayModelData
order:
---

View File

@ -1,4 +0,0 @@
---
title: NodeInnerModelData
order: 6
---

File diff suppressed because it is too large Load Diff

View File

@ -132,7 +132,7 @@ order: 1
**参数**:
| Name | Type | Description |
| :--------- | :------------- | :----------------------------------- |
| `itemType` | `ITEM_TYPE` | 需要移除的数据类型,'node' /| 'edge' /| 'combo' |
| `itemType` | `ITEM_TYPE` | 需要移除的数据类型,'node' \| 'edge' \| 'combo' |
| `id` | `ID` \| `ID`[] | 需要移除的数据 id一条或多条 |
### getAllNodesData
@ -447,7 +447,7 @@ order: 1
移动单个/多个 Combo 一个相对的距离dxdy。该 API 将不更新其他样式以提升更新位置的性能。事实上,由于 Combo 的位置取决的内部子元素的分布和位置,因此该 API 实际上是在更新指定 Combo 的后继元素的位置,以影响该 Combo 以达到移动该 Combo 的目的,而不是直接更新该 Combo 的位置。
• 类型 (`ids`: `ID`[], `dx`: `number`, `dy`: `number`, `upsertAncestors?`: `boolean`, `callback?`: (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`, `canceled?`: `boolean`) => `void`) => `ComboModel`[]
**类型**: (`ids`: `ID`[], `dx`: `number`, `dy`: `number`, `upsertAncestors?`: `boolean`, `callback?`: (`model`: `NodeModel` \| `EdgeModel` \| `ComboModel`, `canceled?`: `boolean`) => `void`) => `ComboModel`[]
**参数**:
@ -513,7 +513,7 @@ order: 1
停止布局。适用于带有迭代动画的布局,目前有 `'force'` 属于此类布局,即停止力导布局的迭代,一般用于布局迭代时间过长情况下的手动停止迭代动画,例如在点击画布/节点的监听中调用。
• 类型 () => `void`
**类型**: () => `void`
## 交互与事件
@ -634,11 +634,11 @@ G6 图提供不同的交互模式配置,可以理解为交互的分组。不
**参数**:
| Name | Type | Description |
| :------- | :-------------------------- | :---------------------------------------------------------------------------------------------------------------------- |
| `type` | `ITEM_TYPE` \| `SHAPE_TYPE` | 图形或元素的类型,例如 `'circle'`, `'line'` 等图形类型名称,或 `'node'`, `'edge'`, `'combo'` 以复制现有的元素到临时层 |
| `id` | `ID` | 给出临时图形的 id 方便后续检索。若是复制当前画布上的节点 / 边 / Combo则指定为对应元素的 id |
| `config` | `any` | 图形样式的配置,例如大小、颜色等。适用于绘制临时图形,而不是复制元素,因为复制元素将直接使用被复制元素的样式。色 |
| Name | Type | Description |
| :------- | :-------------------------- | :-------------------------------------------------------------------------------------------------------------------- |
| `type` | `ITEM_TYPE` \| `SHAPE_TYPE` | 图形或元素的类型,例如 `'circle'`, `'line'` 等图形类型名称,或 `'node'`, `'edge'`, `'combo'` 以复制现有的元素到临时层 |
| `id` | `ID` | 给出临时图形的 id 方便后续检索。若是复制当前画布上的节点 / 边 / Combo则指定为对应元素的 id |
| `config` | `any` | 图形样式的配置,例如大小、颜色等。适用于绘制临时图形,而不是复制元素,因为复制元素将直接使用被复制元素的样式 |
**返回值**: `DisplayObject`<`any`, `any`\>,被绘制的图形对象。若为复制元素,则将返回包含所有相关图形的图形分组。
@ -864,7 +864,7 @@ G6 图提供不同的交互模式配置,可以理解为交互的分组。不
| `onlyKeyShape?` | `boolean` | 是否仅计算主图形 keyShape 的包围盒 |
| `isTransient?` | `boolean` | 是计算的是临时图形的包围盒 |
**返回值**: `false` \| `AABB`。若不存在对应元素则返回 `undefined`
**返回值**: `false` \| `AABB`。若不存在对应元素则返回 `false`
## 树图
@ -1181,11 +1181,11 @@ more convenient way without manually invoking `startHistoryBatch` and `stopHisto
---
## 插件
## 自由插件
### addPlugins
为图实例增加插件。
为图实例增加自由插件。
**类型**: (`pluginCfgs`: { `[cfgName: string]`: `unknown`; `key`: `string` ; `type`: `string` }[]) => `void`
@ -1283,18 +1283,6 @@ more convenient way without manually invoking `startHistoryBatch` and `stopHisto
## 图实例
### destroy
销毁当前图实例。
**类型**: (`callback?`: `Function`) => `void`
**参数**:
| Name | Type | Description |
| :---------- | :--------- | :------------------- |
| `callback?` | `Function` | 销毁完成后的回调函数 |
### setCursor
设置和当前的鼠标样式。但元素上的鼠标样式拥有更高的优先级。
@ -1306,3 +1294,15 @@ more convenient way without manually invoking `startHistoryBatch` and `stopHisto
| Name | Type |
| :------- | :------- |
| `cursor` | `Cursor` |
### destroy
销毁当前图实例。
**类型**: (`callback?`: `Function`) => `void`
**参数**:
| Name | Type | Description |
| :---------- | :--------- | :------------------- |
| `callback?` | `Function` | 销毁完成后的回调函数 |

View File

@ -2,3 +2,29 @@
title: Graph Properties
order: 2
---
The following properties are read-only.
### canvas
Stores the main canvas object of the current graph. You generally do not need to use this.
**Type**: `Canvas`
### container
Stores the DOM container of the graph canvas.
**Type**: `HTMLElement`
### destroyed
Indicates whether the current graph instance has been destroyed.
**Type**: `boolean`
### rendererType
The current renderer name of the graph.
**Type**: `'canvas' | 'webgl' | 'svg' | 'webgl-3d'`

View File

@ -2,3 +2,437 @@
title: Graph Specification
order: 0
---
## container
The DOM of the graph container, which can be the id of an existing DOM element or a DOM object.
**Required**: True
**Type**: `string` \| `HTMLElement`
## height
The height of the canvas DOM. If not specified, it will adapt to the container.
**Required**: False
**Type**: `number`
## width
The width of the canvas DOM. If not specified, it will adapt to the container.
**Required**: False
**Type**: `number`
## renderer
The name of the renderer type, default is `'canvas'`. For large-scale data, it is recommended to use` 'webgl'`. If `'webgl-3d'` is used, it should be combined with 3D interactive and element types.
**Required**: False
**Type**: `RendererCfg`
```typescript
type RendererName = 'canvas' | 'webgl' | 'svg' | 'webgl-3d';
type RendererCfg =
| RendererName
| {
// The name of the renderer
type: RendererName;
// Whether to use headless browser, default is false. true is suitable for node-side rendering
headless?: boolean;
// Pixel ratio, if not specified, it will automatically get the current device pixel ratio. Generally between 1-3. Set a larger value when rendering is blurred
pixelRatio?: number;
};
```
## data
The data of the graph. It can be provided in this configuration or written to the graph through the Graph API, see [graph.read](./Graph.zh.md#read).
**Required**: False
**Type**: `DataConfig`
```typescript
type DataConfig = GraphData | InlineGraphDataConfig | InlineTreeDataConfig;
interface InlineGraphDataConfig {
type: 'graphData';
value: GraphData;
}
interface InlineTreeDataConfig {
type: 'treeData';
value: TreeData;
}
```
[`GraphData`](../data/GraphData.zh.md), [`TreeData`](../data/TreeData.zh.md) see the corresponding type definition document for details.
## transforms
Data transformers. Multiple built-in or custom data transformers can be configured. When the graph reads user data, the data transformers will be executed linearly in the order of the configured array. That is, the result of the previous data processor will be input into the next data processor. After all data processors are completed, the data required for G6's internal flow will be generated. See [Data Introduction](../data/DataIntro.en.md) for details. Custom method see [Custom Data Transformer](../data/CustomTransform.en.md).
**Required**: False
**Type**:
```typescript
string[]
| {
type: string;
activeLifecycle: string | string[];
[param: string]: unknown;
}[]
| TransformerFn[]
```
## node
Node mapper, can be a JSON configuration or a function. The result of the mapper should be the rendering data required for rendering the node style, etc. This mapper converts the internal flow data into rendering data each time a node is rendered, see [Data Introduction](../data/DataIntro.en.md) for details.
**Required**: False
**Type**: `NodeEncode` \| (`data`: [`NodeInnerModel`](../data/NodeInnerModel.en.md)) => [`NodeDisplayModel`](../data/NodeDisplayModel.en.md)
## edge
Edge mapper, can be a JSON configuration or a function. The result of the mapper should be the rendering data required for rendering the edge style, etc. This mapper converts the internal flow data into rendering data each time an edge is rendered, see [Data Introduction](../data/DataIntro.en.md) for details.
**Required**: False
**Type**: `EdgeEncode` \| (`data`: [`EdgeInnerModel`](../data/EdgeInnerModel.en.md)) => [`EdgeDisplayModel`](../data/EdgeDisplayModel.en.md)
## combo
Combo mapper, can be a JSON configuration or a function. The result of the mapper should be the rendering data required for rendering the combo style, etc. This mapper converts the internal flow data into rendering data each time a combo is rendered, see [Data Introduction](../data/DataIntro.en.md) for details.
**Required**: False
**Type**: `ComboEncode` \| (`data`: [`ComboInnerModel`](../data/ComboInnerModel.en.md)) => [`ComboDisplayModel`](../data/ComboDisplayModel.en.md)
## nodeState
Node state style configuration. The built-in theme has provided the styles of `'selected'`, `'active'`, `'highlight'`, `'inactive'`, `'disable'` states. If you need to modify or set styles for custom state names, you can configure them here.
**Required**: False
**Type**:
```typescript
{
// The key is the state name, such as 'selected'
[stateName: string]: {
// The key is the shape name, and the value represents the style of the shape under
[shapeId]: ShapStyle
}
}
```
## edgeState
Edge state style configuration. The built-in theme already provides styles for `'selected'`, `'active'`, `'highlight'`, `'inactive'`, `'disable'` states. If you need to modify or set styles for custom state names, you can configure them here.
**Required**: False
**Type**:
```typescript
{
// The key is the state name, e.g., 'selected'
[stateName: string]: {
// The key is the shape name, and the value represents the style of the shape under this state
[shapeId]: ShapStyle
}
}
```
## comboState
Combo state style configuration. The built-in theme already provides styles for `'selected'`, `'active'`, `'highlight'`, `'inactive'`, `'disable'` states. If you need to modify or set styles for custom state names, you can configure them here.
**Required**: False
**Type**:
```typescript
{
// The key is the state name, e.g., 'selected'
[stateName: string]: {
// The key is the shape name, and the value represents the style of the shape under this state
[shapeId]: ShapStyle
}
}
```
## theme
Theme configuration. The default theme is the light theme.
**Required**: False
**Type**: `ThemeCfg`
```typescript
// The type of the color palette, which can be an array of hexadecimal color strings or an object with data type names as keys and hexadecimal colors as values
type Palette = string[] | { [dataType: string]: string };
type ITEM_TYPE = 'node' | 'edge' | 'combo';
type ThemeCfg = {
type: 'spec';
// The built-in theme that the custom theme is based on. The default value is 'light'
base: 'light' | 'dark';
specification: {
[itemType: ITEM_TYPE]: {
// The data type field of the node/edge/combo. For example, if the nodes are classified based on the 'cluster' field, you can specify dataTypeField: 'cluster', and the color will be taken from the color palette based on this classification
dataTypeField: string;
// The color palette
palette: Palette;
// The style of the shapes under the custom color palette
getStyleSets: (palette: Palette) => {
default: {
[shapeId: string]: ShapeStyle;
};
[stateName: string]: {
[shapeId: string]: ShapeStyle;
};
};
};
canvas: {
// The background color of the canvas. If not specified, it will follow the default color of the base theme
backgroundColor: string;
};
};
};
```
• Example:
```javascript
const data = {
nodes: [
{ id: 'node1', data: { cluster: '1' } },
{ id: 'node2', data: { cluster: '1' } },
{ id: 'node3', data: { cluster: '2' } },
],
};
const graph = new Graph({
// ... Other configurations
theme: {
type: 'spec',
base: 'light',
specification: {
canvas: {
backgroundColor: '#f3faff',
},
node: {
dataTypeField: 'cluster',
palette: ['#bae0ff', '#91caff', '#69b1ff', '#4096ff', '#1677ff', '#0958d9', '#003eb3', '#002c8c', '#001d66'],
},
},
},
});
```
## layout
Layout configuration. If not configured and the nodes in the data have `x` and `y` positions, the graph will be rendered based on the position information in the data. If not configured and the data does not have position information, the graph will be rendered using the 'grid' grid layout. See the [Layout Overview](../layout/LayoutOverview.en.md) for configurations for different layouts.
**Required**: False
**Type**: `LayoutOptions`
```typescript
type layoutOptions = StandardLayoutOptions
| ImmediatelyInvokedLayoutOptions;
type PureLayoutOptions = CircularLayout | RandomLayout | ...; // Configurations for various layouts, see the documentation for layout configurations for details
type StandardLayoutOptions = PureLayoutOptions & {
type: string;
// Pre-layout to improve the quality and convergence speed of force-directed layout
presetLayout?: StandardLayoutOptions;
// Whether to enable iterative animation, suitable for force-directed layout
animated: boolean;
// Whether to enable web worker to avoid blocking the page during calculation
workerEnabled: boolean;
};
```
## modes
Interaction mode configuration. G6 provides different interaction mode configurations for the graph, which can be understood as groups of interactions. Different modes have different interaction configurations, allowing for quick switching between different interaction groups. For example, in read-only mode, you can only drag and zoom the canvas. In edit mode, you can create edges, etc. Here, you can configure the interaction groups on the graph. You can dynamically switch modes and switch interaction modes through the Graph API [`setMode`](#setmode), and get the current interaction mode through [`getMode`](#getmode).
**Required**: False
**Type**: `ModesCfg`
```typescript
type BehaviorCfg =
| string // You can specify only the type name string
| {
// If you need to modify or delete it later, you need to specify a unique key for retrieval
key: string;
type: string;
// ...Other configurations, different interactions are different
}
| BehaviorClass;
type ModesCfg = {
default: BehaviorCfg[];
[mode: string]: BehaviorCfg[];
};
```
## zoom
The absolute zoom ratio value for the initial rendering.
**Required**: False
**Type**: `number`
## autoFit
Whether to auto-fit the container and the way to auto-fit. `'view'` means zooming and panning to fit the container. `'center'` means only panning without zooming to align the center of the graph content with the center of the container.
**Required**: False
**Type**: `"center"` \| `"view"` \| { `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, `"duration"` \| `"easing"` \| `"easingFunction"`\>\> ; `padding?`: `Padding` ; `rules?`: `FitViewRules` ; `type`: `"view"` } \| { `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, `"duration"` \| `"easing"` \| `"easingFunction"`\>\> ; `type`: `"center"` } \| { `alignment?`: `GraphAlignment` ; `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, `"duration"` \| `"easing"` \| `"easingFunction"`\>\> ; `position`: `Point` ; `type`: `"position"` }
```typescript
type FitViewRules = {
onlyOutOfViewport?: boolean;
onlyZoomAtLargerThanViewport?: boolean;
direction?: 'x' | 'y' | 'both';
ratioRule?: 'max' | 'min';
boundsType?: 'render' | 'layout';
};
type GraphAlignment = 'left-top' | 'right-top' | 'left-bottom' | 'right-bottom' | 'center' | [number, number];
```
## animate
Whether to enable global animation, with lower priority than the animation specified by each API.
**Required**: False
**Type**:
```typescript
interface AnimateCfg {
/**
* The duration (in ms) of each animation.
*/
duration?: number;
/**
* The easing function of the animation.
*/
easing?: string;
/**
* The delay (in ms) before the animation starts.
*/
delay?: number;
/**
* The number of times the animation will be performed, with Infinity indicating infinite looping.
*/
iterations?: number | typeof Infinity;
/**
* The callback function when the animation ends.
*/
callback?: () => void;
/**
* The callback function when the animation is paused.
*/
pauseCallback?: () => void;
/**
* The callback function when the animation is resumed.
*/
resumeCallback?: () => void;
}
```
## plugins
Free plugins' configurations.
**Required**: False
**Type**: `PluginsCfg`
```typescript
type PluginsCfg = (
| string
| {
// If you need to modify or delete it later, you need to specify a unique key for retrieval
key: string;
type: string;
// ... Other configurations, different plugins have different configurations
}
| PluginClass
)[];
```
**TODO**: 链接各个插件的配置文档
## enableStack
Whether to enable the history stack.
**Required**: False
**Type**: `boolean`
## stackCfg
**Required**: False
**Type**: `StackCfg`
```typescript
type StackCfg = {
/** The maximum number of steps allowed in the history stack. */
stackSize?: number;
/** Whether to allow pushing actions to the history stack by default. */
stackActive?: boolean;
/** API names to be excluded from being pushed to the history stack. This configuration takes the highest priority. */
excludes?: string[];
/** API names to be included in the history stack. This configuration takes the highest priority. */
includes?: string[];
/** Whether to ignore all add data operations. */
ignoreAdd?: boolean;
/** Whether to ignore all remove data operations. */
ignoreRemove?: boolean;
/** Whether to ignore all update data operations. */
ignoreUpdate?: boolean;
/** Whether to ignore all element state change operations. */
ignoreStateChange?: boolean;
/** Whether to ignore all layer change operations. */
ignoreLayerChange?: boolean;
/** Whether to ignore all display change operations. */
ignoreDisplayChange?: boolean;
};
```
## optimize
Configuration options for performance optimization in a graph instance. This includes controlling first screen tile rendering, tile interaction limits, and other performance-related configurations.
```typescript
{
/** Whether to enable tile-based rendering for the initial screen. If specified as a number, it indicates the maximum number of elements for tile-based rendering. */
tileFirstRender?: boolean | number;
/** The number of elements included in a single tile or frame of rendering. */
tileFirstRenderSize?: number;
/** Whether to enable tile-based rendering during the show/hide animation of drag-canvas and zoom-canvas. If specified as a number, it indicates the maximum number of elements for tile-based rendering. However, the `enableOptimize` option in each interaction has a higher priority. */
tileBehavior?: boolean | number;
/** The number of elements included in a single tile or frame of rendering during interactions. However, the `enableOptimize` option in each interaction has a higher priority. */
tileBehaviorSize?: number;
/** The number of elements included in a single tile or frame of rendering during the layer rendering. */
tileLodSize?: number;
}
```

View File

@ -7,33 +7,33 @@ order: 0
图的容器 DOM可以是已经存在的 DOM id也可以是 DOM 对象。
• 是否必须: 是
**是否必须**: 是
• 类型: `string` \| `HTMLElement`
**类型**: `string` \| `HTMLElement`
## height
画布标签 DOM 的高度。未指定,则自适应容器。
• 是否必须: 否
**是否必须**: 否
• 类型: `number`
**类型**: `number`
## width
画布标签 DOM 的宽度。未指定,则自适应容器。
• 是否必须: 否
**是否必须**: 否
• 类型: `number`
**类型**: `number`
## renderer
渲染器类型名称,默认为 `'canvas'`。大规模数据建议使用 `'webgl'`。若使用 `'webgl-3d'` 应当配合 3D 相关的交互和元素类型。
• 是否必须: 否
**是否必须**: 否
• 类型: `RendererCfg`
**类型**: `RendererCfg`
```typescript
type RendererName = 'canvas' | 'webgl' | 'svg' | 'webgl-3d';
@ -51,11 +51,11 @@ type RendererCfg =
## data
图数据。可以在此配置项中给出,也可以通过 Graph 的 API 写入,见 [graph.read](./Graph.zh.md/#read)。
图数据。可以在此配置项中给出,也可以通过 Graph 的 API 写入,见 [graph.read](./Graph.zh.md#read)。
• 是否必须: 否
**是否必须**: 否
• 类型: `DataConfig`
**类型**: `DataConfig`
```typescript
type DataConfig = GraphData | InlineGraphDataConfig | InlineTreeDataConfig;
@ -71,15 +71,15 @@ interface InlineTreeDataConfig {
}
```
其中 [`GraphData`](../data//GraphData.zh.md)[`TreeData`](../data//TreeData.zh.md) 详见对应类型定义文档。
其中 [`GraphData`](../data/GraphData.zh.md)[`TreeData`](../data/TreeData.zh.md) 详见对应类型定义文档。
## transforms
数据转换器。可配置多个内置的或自定义的数据转换器,图读取用户数据时,将按照配置的数组顺序,线性执行数据转换器。即前一个数据处理器的结果将输入到下一个数据处理器中。所有数据处理器完成后,生成 G6 内部流转的数据。详见[数据介绍文档](../data//DataIntro.zh.md)。自定义方式见[自定义数据处理器文档](../data/CustomTransform.zh.md)。
数据转换器。可配置多个内置的或自定义的数据转换器,图读取用户数据时,将按照配置的数组顺序,线性执行数据转换器。即前一个数据处理器的结果将输入到下一个数据处理器中。所有数据处理器完成后,生成 G6 内部流转的数据。详见[数据介绍文档](../data/DataIntro.zh.md)。自定义方式见[自定义数据处理器文档](../data/CustomTransform.zh.md)。
• 是否必须: 否
**是否必须**: 否
• 类型:
**类型**:
```typescript
string[]
@ -93,41 +93,35 @@ string[]
## node
节点映射器mapper可以是 JSON 配置,也可以函数映射。映射器的生成结果应当是渲染所需的图形样式等。这一映射器在每次渲染节点时,将内部流转数据转换为渲染数据,详见[数据介绍文档](../data//DataIntro.zh.md)。
节点映射器mapper可以是 JSON 配置,也可以函数映射。映射器的生成结果应当是渲染所需的图形样式等。这一映射器在每次渲染节点时,将内部流转数据转换为渲染数据,详见[数据介绍文档](../data/DataIntro.zh.md)。
• 是否必须: 否
**是否必须**: 否
• 类型: `NodeEncode` \| (`data`: `NodeModel`) => `NodeDisplayModel`
**TODO**: NodeEncode、NodeModel、NodeDisplayModel 类型定义
**类型**: `NodeEncode` \| (`data`: [`NodeInnerModel`](../data//NodeInnerModel.zh.md)) => [`NodeDisplayModel`](../data/NodeDisplayModel.zh.md)
## edge
边映射器mapper可以是 JSON 配置,也可以函数映射。映射器的生成结果应当是渲染所需的图形样式等。这一映射器在每次渲染边时,将内部流转数据转换为渲染数据,详见[数据介绍文档](../data//DataIntro.zh.md)。
边映射器mapper可以是 JSON 配置,也可以函数映射。映射器的生成结果应当是渲染所需的图形样式等。这一映射器在每次渲染边时,将内部流转数据转换为渲染数据,详见[数据介绍文档](../data/DataIntro.zh.md)。
• 是否必须: 否
**是否必须**: 否
• 类型: `EdgeEncode` \| (`data`: `EdgeModel`) => `EdgeDisplayModel`
**TODO**: EdgeEncode、EdgeModel、 EdgeDisplayModel 类型定义
**类型**: `EdgeEncode` \| (`data`: [`EdgeInnerModel`](../data/EdgeInnerModel.zh.md)) => [`EdgeDisplayModel`](../data/EdgeDisplayModel.zh.md)
## combo
Combo 映射器mapper可以是 JSON 配置,也可以函数映射。映射器的生成结果应当是渲染所需的图形样式等。这一映射器在每次渲染 Combo 时,将内部流转数据转换为渲染数据,详见[数据介绍文档](../data//DataIntro.zh.md)。
Combo 映射器mapper可以是 JSON 配置,也可以函数映射。映射器的生成结果应当是渲染所需的图形样式等。这一映射器在每次渲染 Combo 时,将内部流转数据转换为渲染数据,详见[数据介绍文档](../data/DataIntro.zh.md)。
• 是否必须: 否
**是否必须**: 否
• 类型: `ComboEncode` \| (`data`: `ComboModel`) => `ComboDisplayModel`
**TODO**: ComboEncode、 ComboModel、ComboDisplayModel 类型定义
**类型**: `ComboEncode` \| (`data`: [`ComboInnerModel`](../data/ComboInnerModel.en.md)) => [`ComboDisplayModel`](../data/ComboDisplayModel.en.md)
## nodeState
节点的状态样式配置。内置主题中已经提供了 `'selected'`、`'active'`、`'highlight'`、`'inactive'`、`'disable'` 的状态样式。如果需要修改或为自定义状态名设置样式,可在此处配置。
• 是否必须: 否
**是否必须**: 否
• 类型:
**类型**:
```typescript
{
@ -143,9 +137,9 @@ Combo 映射器mapper可以是 JSON 配置,也可以函数映射。
边的状态样式配置。内置主题中已经提供了 `'selected'`、`'active'`、`'highlight'`、`'inactive'`、`'disable'` 的状态样式。如果需要修改或为自定义状态名设置样式,可在此处配置。
• 是否必须: 否
**是否必须**: 否
• 类型:
**类型**:
```typescript
{
@ -161,9 +155,9 @@ Combo 映射器mapper可以是 JSON 配置,也可以函数映射。
Combo 的状态样式配置。内置主题中已经提供了 `'selected'`、`'active'`、`'highlight'`、`'inactive'`、`'disable'` 的状态样式。如果需要修改或为自定义状态名设置样式,可在此处配置。
• 是否必须: 否
**是否必须**: 否
• 类型:
**类型**:
```typescript
{
@ -179,9 +173,9 @@ Combo 的状态样式配置。内置主题中已经提供了 `'selected'`、`'ac
主题配置,默认使用亮色主题。
• 是否必须: 否
**是否必须**: 否
• 类型: `ThemeCfg`
**类型**: `ThemeCfg`
```typescript
// 色板的类型,可以是十六进制颜色字符串数组,也可以是对象形式 key 为数据类型名value 为十六进制颜色值
@ -245,11 +239,11 @@ const graph = new Graph({
## layout
布局的配置。若不配置,且节点数据中存在 `x` `y`,则使用数据中的位置信息进行绘制。若不配置,且数据中无位置信息,则使用 `'grid'` 网格布局进行计算和绘制。
布局的配置。若不配置,且节点数据中存在 `x` `y`,则使用数据中的位置信息进行绘制。若不配置,且数据中无位置信息,则使用 `'grid'` 网格布局进行计算和绘制。各个布局的详细配置见[布局总览](../layout/LayoutOverview.zh.md)下的各个子文档。
• 是否必须: 否
**是否必须**: 否
• 类型: `LayoutOptions`
**类型**: `LayoutOptions`
```typescript
type layoutOptions = StandardLayoutOptions
@ -268,15 +262,13 @@ type StandardLayoutOptions = PureLayoutOptions & {
};
```
**TODO**: 链接各个布局配置文档
## modes
交互模式配置。G6 图提供不同的交互模式配置,可以理解为交互的分组。不同模式下配置不同交互,以便快速切换不同的交互分组。例如只读模式下,只能拖拽和缩放画布。编辑模式下,可以创建边等。此处可配置图上的交互分组,后续需要动态切换和通过 Graph 的 API [`setMode`](#setmode) 切换交互模式,[`getMode`](#getmode) 获取当前的交互模式。
• 是否必须: 否
**是否必须**: 否
• 类型: `ModesCfg`
**类型**: `ModesCfg`
```typescript
type BehaviorCfg =
@ -299,17 +291,17 @@ type ModesCfg = {
初次渲染的绝对缩放比例值。
• 是否必须: 否
**是否必须**: 否
• 类型: `number`
**类型**: `number`
## autoFit
是否自适应容器,以及自适应的方式。'view' 表示缩放并平移以适配容器。'center' 表示仅平移不缩放以时图内容中心对齐容器中心。
是否自适应容器,以及自适应的方式。`'view'` 表示缩放并平移以适配容器。`'center'` 表示仅平移不缩放以时图内容中心对齐容器中心。
• 是否必须: 否
**是否必须**: 否
• 类型: `"center"` \| `"view"` \| { `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, `"duration"` \| `"easing"` \| `"easingFunction"`\>\> ; `padding?`: `Padding` ; `rules?`: `FitViewRules` ; `type`: `"view"` } \| { `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, `"duration"` \| `"easing"` \| `"easingFunction"`\>\> ; `type`: `"center"` } \| { `alignment?`: `GraphAlignment` ; `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, `"duration"` \| `"easing"` \| `"easingFunction"`\>\> ; `position`: `Point` ; `type`: `"position"` }
**类型**: `"center"` \| `"view"` \| { `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, `"duration"` \| `"easing"` \| `"easingFunction"`\>\> ; `padding?`: `Padding` ; `rules?`: `FitViewRules` ; `type`: `"view"` } \| { `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, `"duration"` \| `"easing"` \| `"easingFunction"`\>\> ; `type`: `"center"` } \| { `alignment?`: `GraphAlignment` ; `effectTiming?`: `Partial`<`Pick`<`IAnimationEffectTiming`, `"duration"` \| `"easing"` \| `"easingFunction"`\>\> ; `position`: `Point` ; `type`: `"position"` }
```typescript
type FitViewRules = {
@ -327,9 +319,9 @@ type GraphAlignment = 'left-top' | 'right-top' | 'left-bottom' | 'right-bottom'
是否开启全局动画,优先级低于各 API 指定的动画。
• 是否必须: 否
**是否必须**: 否
• 类型:
**类型**:
```typescript
interface AnimateCfg {
@ -366,11 +358,11 @@ interface AnimateCfg {
## plugins
插件配置。
配置自由插件
• 是否必须: 否
**是否必须**: 否
• 类型: `PluginsCfg`
**类型**: `PluginsCfg`
```typescript
type PluginsCfg = (
@ -391,15 +383,15 @@ type PluginsCfg = (
是否允许开启历史栈。
• 是否必须: 否
**是否必须**: 否
• 类型: `boolean`
**类型**: `boolean`
## stackCfg
• 是否必须: 否
**是否必须**: 否
• 类型: `StackCfg`
**类型**: `StackCfg`
```typescript
type StackCfg = {

View File

@ -22,13 +22,13 @@ title: 导航
- [配置项](./graph/Specification.zh.md)
- [图方法](./graph/Graph.zh.md)
- [图属性](./graph/GraphProperties.zh.md)
- [数据 Data](./data/NodeUserModelData.zh.md)
- [数据 Data](./data/NodeUserModel.zh.md)
- [数据流简介](./data/DataIntro.zh.md)
- [图数据 GraphData](./data/GraphData.zh.md)
- [树图数据 TreeData](./data/TreeData.zh.md)
- [NodeUserModelData](./data/NodeUserModelData.zh.md)
- [EdgeUserModelData](./data/EdgeUserModelData.zh.md)
- [ComboUserModelData](./data/ComboUserModelData.zh.md)
- [NodeUserModelData](./data/NodeUserModel.zh.md)
- [EdgeUserModelData](./data/EdgeUserModel.zh.md)
- [ComboUserModelData](./data/ComboUserModel.zh.md)
- [节点类型](./item/CircleNode.zh.md)
- [CircleNode](./item/CircleNode.zh.md)
- ImageNode(TODO)

View File

@ -104,16 +104,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -139,16 +139,16 @@ Draw the anchors shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -174,16 +174,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -209,16 +209,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -244,16 +244,16 @@ Draw the icon shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -280,16 +280,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -315,16 +315,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -350,16 +350,16 @@ Draw the label shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -385,16 +385,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns

View File

@ -110,16 +110,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `Object` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `Object` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -147,16 +147,16 @@ Draw the anchors shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -178,16 +178,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -209,16 +209,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -240,16 +240,16 @@ Draw the icon shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -272,16 +272,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -303,16 +303,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -334,16 +334,16 @@ Draw the label shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -365,16 +365,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns

View File

@ -106,16 +106,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `Object` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `Object` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -147,16 +147,16 @@ An object containing the keyShape and optional labelShape, iconShape, and some o
#### Parameters
| Name | Type |
| :------------------- | :----------------------------------------------------- |
| `model` | `NodeDisplayModel` |
| `shapeMap` | `NodeShapeMap` |
| `diffData?` | `Object` |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) |
| `diffState?` | `Object` |
| `diffState.current` | `State`[] |
| `diffState.previous` | `State`[] |
| Name | Type |
| :------------------- | :------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` |
| `shapeMap` | `NodeShapeMap` |
| `diffData?` | `Object` |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) |
| `diffState?` | `Object` |
| `diffState.current` | `State`[] |
| `diffState.previous` | `State`[] |
#### Returns
@ -180,16 +180,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -215,16 +215,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -250,16 +250,16 @@ Draw the icon shape of the 3D node
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :------------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this 3D node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the 3D node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current 3D node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :------------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this 3D node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the 3D node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current 3D node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -286,16 +286,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -321,16 +321,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -356,16 +356,16 @@ Draw the label shape of the 3D node
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :------------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this 3D node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the 3D node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current 3D node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :------------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this 3D node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the 3D node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current 3D node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -391,16 +391,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns

View File

@ -104,16 +104,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -139,16 +139,16 @@ Draw the anchors shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -174,16 +174,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -209,16 +209,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -244,16 +244,16 @@ Draw the icon shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -280,16 +280,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -315,16 +315,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -350,16 +350,16 @@ Draw the label shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -385,16 +385,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns

View File

@ -104,16 +104,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `DonutNodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `DonutNodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -139,16 +139,16 @@ Draw the anchors shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -174,16 +174,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -209,16 +209,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -244,16 +244,16 @@ Draw the icon shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -280,16 +280,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `DonutNodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `DonutNodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -315,16 +315,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -350,16 +350,16 @@ Draw the label shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -385,16 +385,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns

View File

@ -104,16 +104,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -139,16 +139,16 @@ Draw the anchors shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -174,16 +174,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -209,16 +209,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -244,16 +244,16 @@ Draw the icon shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -280,16 +280,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -315,16 +315,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -350,16 +350,16 @@ Draw the label shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -385,16 +385,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns

View File

@ -104,16 +104,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -139,16 +139,16 @@ Draw the anchors shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -174,16 +174,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -209,16 +209,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -244,16 +244,16 @@ Draw the icon shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -280,16 +280,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -315,16 +315,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -350,16 +350,16 @@ Draw the label shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -385,16 +385,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns

View File

@ -104,16 +104,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -139,16 +139,16 @@ Draw the anchors shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -174,16 +174,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -209,16 +209,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -244,16 +244,16 @@ Draw the icon shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -280,16 +280,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -315,16 +315,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -350,16 +350,16 @@ Draw the label shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -385,16 +385,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns

View File

@ -104,16 +104,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -139,16 +139,16 @@ Draw the anchors shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -174,16 +174,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -209,16 +209,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -244,16 +244,16 @@ Draw the icon shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -280,16 +280,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -315,16 +315,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -350,16 +350,16 @@ Draw the label shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -385,16 +385,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns

View File

@ -104,16 +104,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -139,16 +139,16 @@ An object containing the keyShape and optional labelShape, iconShape, and some o
#### Parameters
| Name | Type |
| :------------------- | :----------------------------------------------------- |
| `model` | `NodeDisplayModel` |
| `shapeMap` | `NodeShapeMap` |
| `diffData?` | `Object` |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) |
| `diffState?` | `Object` |
| `diffState.current` | `State`[] |
| `diffState.previous` | `State`[] |
| Name | Type |
| :------------------- | :------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` |
| `shapeMap` | `NodeShapeMap` |
| `diffData?` | `Object` |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) |
| `diffState?` | `Object` |
| `diffState.current` | `State`[] |
| `diffState.previous` | `State`[] |
#### Returns
@ -172,16 +172,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -207,16 +207,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -242,16 +242,16 @@ Draw the icon shape of the 3D node
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :------------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this 3D node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the 3D node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current 3D node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :------------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this 3D node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the 3D node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current 3D node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -278,16 +278,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -313,16 +313,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -348,16 +348,16 @@ Draw the label shape of the 3D node
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :------------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this 3D node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the 3D node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current 3D node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :------------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this 3D node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the 3D node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current 3D node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -383,16 +383,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns

View File

@ -104,16 +104,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -139,16 +139,16 @@ Draw the anchors shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -174,16 +174,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -209,16 +209,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -244,16 +244,16 @@ Draw the icon shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -280,16 +280,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -315,16 +315,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -350,16 +350,16 @@ Draw the label shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -385,16 +385,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns

View File

@ -104,16 +104,16 @@ You should call `drawKeyShape` and `drawAnchorShape`,`drawLabelShape`,`drawIconS
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -139,16 +139,16 @@ Draw the anchors shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -174,16 +174,16 @@ Draw the badges shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -209,16 +209,16 @@ Draw the halo shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -244,16 +244,16 @@ The display object representing the halo shape of the node.
#### Parameters
| Name | Type |
| :------------------- | :------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` |
| `shapeMap` | `NodeShapeMap` |
| `diffData?` | `Object` |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` |
| `diffState?` | `Object` |
| `diffState.current` | `State`[] |
| `diffState.previous` | `State`[] |
| Name | Type |
| :------------------- | :--------------------------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` |
| `shapeMap` | `NodeShapeMap` |
| `diffData?` | `Object` |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` |
| `diffState?` | `Object` |
| `diffState.current` | `State`[] |
| `diffState.previous` | `State`[] |
#### Returns
@ -278,16 +278,16 @@ Draw the key shape of the node based on the provided model and shape map.
#### Parameters
| Name | Type | Description |
| :------------------- | :----------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -313,16 +313,16 @@ Draw the label background shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.newState` | `State`[] | - |
| `diffState.oldState` | `State`[] | - |
#### Returns
@ -348,16 +348,16 @@ Draw the label shape of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns
@ -383,16 +383,16 @@ Draw other shapes(such as preRect,stateIcon) of the node
#### Parameters
| Name | Type | Description |
| :------------------- | :------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeUserModelData.zh.md) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
| Name | Type | Description |
| :------------------- | :--------------------------------------------------------------------------------------------- | :---------------------------------------------------------------------------- |
| `model` | `NodeDisplayModel` \| `ComboDisplayModel` | The displayed model of this node, only for drawing and not received by users. |
| `shapeMap` | `NodeShapeMap` | The shape map that contains all of the elements to show on the node. |
| `diffData?` | `Object` | An object that contains previous and current data. |
| `diffData.current` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffData.previous` | [`NodeUserModelData`](../data/NodeInnerModel.zh.md#nodeinnermodeldatatype) \| `ComboModelData` | - |
| `diffState?` | `Object` | An object that contains previous and current node's state. |
| `diffState.current` | `State`[] | - |
| `diffState.previous` | `State`[] | - |
#### Returns