Module node

Module node 

Source

Enums§

BooleanOperation
A string enum indicating the type of boolean operation applied.
ConnectorEndStrokeCap
A string enum describing the end cap of the end of the connector.
ConnectorStartStrokeCap
A string enum describing the end cap of the start of the connector.
CounterAxisAlignContent
Determines how the auto-layout frame’s wrapped tracks should be aligned in the counter axis direction. This property is only applicable for auto-layout frames with layoutWrap: \"WRAP\".
CounterAxisAlignItems
Determines how the auto-layout frame’s children should be aligned in the counter axis direction. This property is only applicable for auto-layout frames.
CounterAxisSizingMode
Whether the counter axis has a fixed length (determined by the user) or an automatic length (determined by the layout engine). This property is only applicable for auto-layout frames.
LayoutAlign
Determines if the layer should stretch along the parent’s counter axis. This property is only provided for direct children of auto-layout frames. - INHERIT - STRETCH In previous versions of auto layout, determined how the layer is aligned inside an auto-layout frame. This property is only provided for direct children of auto-layout frames. - MIN - CENTER - MAX - STRETCH In horizontal auto-layout frames, "MIN" and "MAX" correspond to "TOP" and "BOTTOM". In vertical auto-layout frames, "MIN" and "MAX" correspond to "LEFT" and "RIGHT".
LayoutMode
Whether this layer uses auto-layout to position its children.
LayoutPositioning
Determines whether a layer’s size and position should be determined by auto-layout settings or manually adjustable.
LayoutSizingHorizontal
The horizontal sizing setting on this auto-layout frame or frame child. - FIXED - HUG: only valid on auto-layout frames and text nodes - FILL: only valid on auto-layout frame children
LayoutSizingVertical
The vertical sizing setting on this auto-layout frame or frame child. - FIXED - HUG: only valid on auto-layout frames and text nodes - FILL: only valid on auto-layout frame children
LayoutWrap
Whether this auto-layout frame has wrapping enabled.
LineTypes
An array with the same number of elements as lines in the text node, where lines are delimited by newline or paragraph separator characters. Each element in the array corresponds to the list type of a specific line. List types are represented as string enums with one of these possible values: - NONE: Not a list item. - ORDERED: Text is an ordered list (numbered). - UNORDERED: Text is an unordered list (bulleted).
MaskType
If this layer is a mask, this property describes the operation used to mask the layer’s siblings. The value may be one of the following: - ALPHA: the mask node’s alpha channel will be used to determine the opacity of each pixel in the masked result. - VECTOR: if the mask node has visible fill paints, every pixel inside the node’s fill regions will be fully visible in the masked result. If the mask has visible stroke paints, every pixel inside the node’s stroke regions will be fully visible in the masked result. - LUMINANCE: the luminance value of each pixel of the mask node will be used to determine the opacity of that pixel in the masked result.
Node
OverflowDirection
Whether a node has primary axis scrolling, horizontal or vertical.
PrimaryAxisAlignItems
Determines how the auto-layout frame’s children should be aligned in the primary axis direction. This property is only applicable for auto-layout frames.
PrimaryAxisSizingMode
Whether the primary axis has a fixed length (determined by the user) or an automatic length (determined by the layout engine). This property is only applicable for auto-layout frames.
ScrollBehavior
How layer should be treated when the frame is resized
StrokeAlign
Position of stroke relative to vector outline, as a string enum - INSIDE: stroke drawn inside the shape boundary - OUTSIDE: stroke drawn outside the shape boundary - CENTER: stroke drawn centered along the shape boundary
StrokeCap
A string enum describing the end caps of vector paths.
StrokeJoin
A string enum with value of "MITER", "BEVEL", or "ROUND", describing how corners in vector paths are rendered.