LabelSublayer (on ConnectorNodes) acts like pared-back version of a rectangle node. It is used to provide a background on text.
Returns a string representation of the node. For debugging purposes only, do not rely on the exact output of this string in production code.View more →
parent: (BaseNode & ChildrenMixin) | null [readonly]
Returns the parent of this node, if any. This property is not meant to be directly edited. To reparent, see
parentwill always return a ConnectorNode
fills: ReadonlyArray<Paint> | figma.mixed
The paints used to fill the area of the shape. For help on how to change this value, see Editing Properties.View more →
fillStyleId: string | figma.mixed
The id of the
PaintStyle object that the
fills property of this node is linked to.
cornerRadius: number | figma.mixed
The number of pixels to round the corners of the object by.View more →
You can set individual corner radius of each of the four corners of a rectangle node or frame-like node. Similar to
cornerRadius, these value must be non-negative and can be fractional. If an edge length is less than twice the corner radius, the corner radius for each vertex of the edge will be clamped to half the edge length.
cornerRadius sets the property for all four corners. Setting these corners to different values makes