g6/packages/site/docs/apis/data/NodeDisplayModel.zh.md
Aaron 3534d4669b
docs: adjust docs of data (#5211)
* docs: adjust docs of data

* docs: update api docs
2023-12-01 17:44:49 +08:00

47 lines
1.4 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

---
title: NodeDisplayModel 渲染数据
order: 5
---
NodeDisplayModel节点的渲染数据是 [NodeModel](./NodeModel.zh.md) 经过[数据映射](./DataIntro.zh.md#transforms-数据转换)后的结果,该数据仅能被 G6 访问。
<embed src="../../common/DataID.zh.md"></embed>
## data <Badge type="error">必须</Badge>
基于 [NodeModel](./NodeModel.zh.md) 的内容额外加上了图形样式配置。
<embed src="../../common/DataAttrTips.zh.md"></embed>
<embed src="../../common/LodLevels.zh.md"></embed>
<embed src="../../common/DataAnimates.zh.md"></embed>
### keyShape
**类型**`ShapeStyleProps`
> `'circle-node'` 的主图形是 ['circle'](/apis/shape/circle-style-props)`'image-node'` 的主图形是 ['image'](/apis/shape/image-style-props)
节点主图形的样式配置。节点的主图形表达了节点的主要形状。还用于计算边的连入位置。
<embed src="../../common/DataIconShape.zh.md"></embed>
<embed src="../../common/DataHaloShape.zh.md"></embed>
<embed src="../../common/DataLabelShape.zh.md"></embed>
<embed src="../../common/DataLabelBackgroundShape.zh.md"></embed>
<embed src="../../common/DataBadgeShapes.zh.md"></embed>
<embed src="../../common/DataAnchorShapes.zh.md"></embed>
<embed src="../../common/DataOtherShapes.zh.md"></embed>
:::info{title=提示}
下列属性继承自 [NodeModel](./NodeModel.zh.md)
:::
<embed src="../../common/NodeUserModel.zh.md"></embed>