2023-11-10 18:43:02 +08:00
|
|
|
|
---
|
|
|
|
|
title: EdgeDisplayModel 渲染数据
|
2023-12-01 17:44:49 +08:00
|
|
|
|
order: 8
|
2023-11-10 18:43:02 +08:00
|
|
|
|
---
|
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
EdgeDisplayModel 为边的渲染数据,由 [EdgeModel](./EdgeModel.zh.md) 经过[数据映射](./DataIntro.zh.md#mappers-数据映射)后的结果,该数据仅能被 G6 访问。
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
<embed src="../../common/DataID.zh.md"></embed>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
## source <Badge type="error">必须</Badge>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
|
|
|
|
边起始节点的 ID,应与 `nodes` 中的一项对应,否则该边数据不会被加入到图中。
|
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
**类型**:`string | number`
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
## target <Badge type="error">必须</Badge>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
|
|
|
|
边结束节点的 ID,应与 `nodes` 中的一项对应,否则该边数据不会被加入到图中。
|
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
**类型**:`string | number`
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
## data <Badge type="error">必须</Badge>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
基于 [EdgeModel](./EdgeModel.zh.md) 的内容额外加上了图形样式配置。
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
<embed src="../../common/DataAttrTips.zh.md"></embed>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
<embed src="../../common/LodLevels.zh.md"></embed>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
<embed src="../../common/DataAnimates.zh.md"></embed>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
### keyShape
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
**类型**:`ShapeStyle`
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
> `'line-edge'` 的主图形是 ['line'](/apis/shape/line-style-props);`'cubic-edge'` 的主图形是 ['path'](/apis/shape/path-style-props)
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
边主图形的样式配置。边的主图形是边的路径图形
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
<embed src="../../common/DataIconShape.zh.md"></embed>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
<embed src="../../common/DataHaloShape.zh.md"></embed>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
<embed src="../../common/DataLabelShape.zh.md"></embed>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
<embed src="../../common/DataLabelBackgroundShape.zh.md"></embed>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
<embed src="../../common/DataOtherShapes.zh.md"></embed>
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
:::info{title=提示}
|
|
|
|
|
下列属性继承自 [EdgeModel](./EdgeModel.zh.md)
|
|
|
|
|
:::
|
2023-11-10 18:43:02 +08:00
|
|
|
|
|
2023-12-01 17:44:49 +08:00
|
|
|
|
<embed src="../../common/EdgeUserModel.zh.md"></embed>
|