g6/packages/site/docs/apis/data/NodeDisplayModel.en.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

1.6 KiB

title order
NodeDisplayModel 5

NodeDisplayModel is the the rendering data of Node, which is obtained by NodeModel through data mapping. NodeDisplayModel can only be accessed by G6.

data Required

NodeDisplayModelData adds graphic style configuration on the basis of NodeModel.

keyShape

Type: ShapeStyle

Which varies depending on the main shape. For example, the main shape of 'circle-node' is 'circle', refer to Circle Graphic Style; the main shape of 'image-node' is 'image', refer to Image Graphic Style.

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.

:::info The following attributes are inherited from NodeModel :::