g6/packages/site/docs/apis/data/NodeDisplayModel.en.md

47 lines
1.6 KiB
Markdown
Raw Normal View History

2023-11-10 18:43:02 +08:00
---
title: NodeDisplayModel
order: 5
2023-11-10 18:43:02 +08:00
---
NodeDisplayModel is the the rendering data of Node, which is obtained by [NodeModel](./NodeModel.en.md) through [data mapping](./DataIntro.en.md#mappers). NodeDisplayModel can only be accessed by G6.
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataID.en.md"></embed>
2023-11-10 18:43:02 +08:00
## data <Badge type="error">Required</Badge>
2023-11-10 18:43:02 +08:00
NodeDisplayModelData adds graphic style configuration on the basis of [NodeModel](./NodeModel.en.md).
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataAttrTips.en.md"></embed>
2023-11-10 18:43:02 +08:00
<embed src="../../common/LodLevels.en.md"></embed>
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataAnimates.en.md"></embed>
2023-11-10 18:43:02 +08:00
### keyShape
2023-11-10 18:43:02 +08:00
**Type**: `ShapeStyle`
2023-11-10 18:43:02 +08:00
> Which varies depending on the main shape. For example, the main shape of `'circle-node'` is `'circle'`, refer to [Circle Graphic Style](/en/apis/shape/circle-style-props); the main shape of `'image-node'` is `'image'`, refer to [Image Graphic Style](/en/apis/shape/image-style-props).
2023-11-10 18:43:02 +08:00
Configuration of the main shape style of the node. The main shape of a node represents the primary shape of the node and is also used to calculate the position where edges connect.
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataIconShape.en.md"></embed>
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataHaloShape.en.md"></embed>
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataLabelShape.en.md"></embed>
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataLabelBackgroundShape.en.md"></embed>
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataBadgeShapes.en.md"></embed>
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataAnchorShapes.en.md"></embed>
2023-11-10 18:43:02 +08:00
<embed src="../../common/DataOtherShapes.en.md"></embed>
2023-11-10 18:43:02 +08:00
:::info
The following attributes are inherited from [NodeModel](./NodeModel.en.md)
:::
2023-11-10 18:43:02 +08:00
<embed src="../../common/NodeUserModel.en.md"></embed>