Version 1, Update 25
New:
- Added
title
parameter to options for showUI. - Added use_absolute_bounds property for ExportSettings.
New:
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 nodesNew:
enablePrivatePluginApi
option in manifest.json to enable Private Plugin specific APIsfigma.fileKey
will be set to the key of the current file.ui
property in the plugin manifest can now either contain a filename in the form of a string. Or a list of filenames in the form of a map.// either
"ui": "ui.html"
// or
"ui": {
"loginPage": "login.html",
"main": "ui.html",
}
__html__
property. If you use the latter, then the files are available through a new __uiFiles__
property (eg.__uiFiles__.loginPage
, __uiFiles__.main
etc)Fixed:
InstanceNode.mainComponent
now returns null instead of raising an exception if the underlying component doesn't actually exist.setPluginData
and setSharedPluginData
now removes the the relevant entries when the value is set to the empty string ""
, which is the default value returned by getPluginData
and getSharedPluginData
.New:
reactions
property returns multiple reactions to support this newly launched feature.spread
property in ShadowEffect to match the newly released spread feature.rescale
function to match to toolbar's Scale Tool.masterComponent
property has been renamed to mainComponent
Fixed:
(new Error()).stack
). Note that you could previously get stack traces using the Developer VM, which also supports the debugger
keyword.setSharedPluginData
namespace argument now supports the characters _
, .
and uppercase characters.exportAsImage
API would sometimes would fail to render nodes correctly due to instances not being updated.relativeTransform
..clone()
would not trigger library updates for publishing.