Module component_node

Source

Structs§

ComponentNode

Enums§

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.
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.
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.