Version 1, Update 48
This release adds support for the individual strokes feature with new properties for each side of a rectangle or frame-like node:
Assigning a value to the strokeWeight
property will apply the same weight to all four sides.
caution
⚠️ strokeWeight
may return a stale value if the node is using individual stroke weights. In the near future, we will be changing this to return figma.mixed
but are leaving it as an inaccurate number for now. If you want accurate stroke widths, please use the new properties above going forward.
New:
- Support for individual strokes
- Added
figma.ungroup
for ungrouping nodes, which is roughly equivalent to Ctrl-Shift-G/⌘⇧G in the editor. - Added new autolayout properties:
layoutPositioning
: Determines whether a layer's size and position should be determined by auto-layout settings or manually adjustablestrokesIncludedInLayout
: Determines whether strokes are included in layout calculationsitemReverseZIndex
: Determines the canvas stacking order of layers in this frame
- Updated autolayout properties:
counterAxisAlignItems
: Added"BASELINE"
option for aligning all children along the text baseline on horizontal auto-layout frames.textAutoResize
: Added"TRUNCATE"
option for truncating overflowing text with an ellipse.
Fixes to the plugin typings:
- Add missing
rotation
property toShapeWithTextNode
andConnectorNode
- Fix
opacity
andblendMode
properties incorrectly marked as optional and readonly inCodeBlockNode
,ConnectorNode
,ShapeWithTextNode
, andStickyNode
. - Add missing
fills
andfillStyleId
properties toTextSublayer