Version 1, Update 82
This update includes changes to the Variables API to support binding variables to effects, layout grids, stroke weights, and layer opacity. We are also releasing support to run Dev Mode plugins in the Figma for VS Code extension.
Changes to the Variables API:
FLOAT
andCOLOR
variables can be bound to Effects via thesetBoundVariablesForEffect()
helper.FLOAT
variables can be bound to LayoutGrids via thesetBoundVariablesForLayoutGrid()
helper.- New VariableBindableNodeField types,
FLOAT
variables can be bound to layer opacity, stroke weights, and individual stroke weights. - New VariableScope types for scoping variables to layer opacity, stroke weights, and effects.
Dev Mode plugins can now run in the Figma for VS Code extension with some minor manifest and code changes:
- manifest.json changes - added new
vscode
capability - figma.vscode - this new namespace allows the plugin to determine whether it's running in the VS Code Extension or not.
- figma.openExternal - this API enables opening a URL externally and is necessary to use in the VS Code Extension.
- See all of the details in Dev Mode Plugins in VS Code
Fixes:
fillGeometry
andstrokeGeometry
properties are correctly marked asreadonly