Version 1, Update 27
New:
- Added
showShadowBehindNodeparameter to options for Effect.
New:
showShadowBehindNode parameter to options for Effect.New:
getRangeListOptions, setRangeListOptions, getRangeIndentation, setRangeIndentation to TextNode to allow for creation of ordered/unordered lists and to adjust indentation levelsNew:
title parameter to options for showUI.New:
ON_KEY_DOWN type to Trigger.New:
New:
swapComponent to swap an instance's main component to a different main component. This function preserves overrrides using the same heuristics as instance swap in the Figma editor UI.New:
commitUndo to commit new undo states to undo history. This does not trigger an undo.triggerUndo to trigger an undo action. This reverts to the last state in undo history.New:
moveLocalPaintStyleAfter, moveLocalTextStyleAfter, moveLocalEffectStyleAfter, and moveLocalGridStyleAfter to reorder local styles within folders.moveLocalPaintFolderAfter, moveLocalTextFolderAfter, moveLocalEffectFolderAfter, and moveLocalGridFolderAfter to reorder style folders that share the same parent folder.New:
primaryAxisSizingMode, primaryAxisAlignItems, counterAxisAlignItems properties have been added on frame-like nodes.horizontalPadding and verticalPadding properties are now deprecated. Use paddingLeft, paddingRight, paddingTop and paddingBottom instead.layoutGrow property has been added on all nodes (except documents & page nodes).layoutAlign has changed. It now supports the values "STRETCH" | "INHERIT".Fixed:
getPluginData and getSharedPluginData APIs now properly inherit from components when accessed from an instance.setRelaunchData APIs is now able to override relaunch data on instances.New:
combineAsVariants and importComponentSetByKeyAsync to support variants.Fixed:
instance.children would not return any children when the instance was invisible_ to the style name) did not stop it from being publishedtextNode.textAutoResize would crashrelativeTransform to some value where the two axes had zero dot productfigma.getLocal*Styles() would return an array containing null or invalid style nodes