Skip to content

Commit ecb0ed3

Browse files
authored
update (#44)
1 parent 0b4b54b commit ecb0ed3

File tree

3 files changed

+36
-2
lines changed

3 files changed

+36
-2
lines changed

dist/api_types.ts

+16
Original file line numberDiff line numberDiff line change
@@ -143,6 +143,16 @@ export type IsLayerTrait = {
143143
effects?: VariableAlias[]
144144

145145
layoutGrids?: VariableAlias[]
146+
147+
rectangleCornerRadii?: {
148+
RECTANGLE_TOP_LEFT_CORNER_RADIUS?: VariableAlias
149+
150+
RECTANGLE_TOP_RIGHT_CORNER_RADIUS?: VariableAlias
151+
152+
RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS?: VariableAlias
153+
154+
RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS?: VariableAlias
155+
}
146156
}
147157

148158
/**
@@ -775,6 +785,11 @@ export type CanvasNode = {
775785
*/
776786
prototypeDevice: PrototypeDevice
777787

788+
/**
789+
* The background color of the prototype (currently only supports a single solid color paint).
790+
*/
791+
prototypeBackgrounds?: RGBA[]
792+
778793
measurements?: Measurement[]
779794
} & IsLayerTrait &
780795
HasExportSettingsTrait
@@ -3933,6 +3948,7 @@ export type VariableScope =
39333948
| 'LETTER_SPACING'
39343949
| 'PARAGRAPH_SPACING'
39353950
| 'PARAGRAPH_INDENT'
3951+
| 'FONT_VARIATIONS'
39363952

39373953
/**
39383954
* An object containing platform-specific code syntax definitions for a variable. All platforms are

openapi/openapi.yaml

+19-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.1.0
22
info:
33
title: Figma API
4-
version: 0.26.0
4+
version: 0.27.0
55
description: |-
66
This is the OpenAPI specification for the [Figma REST API](https://www.figma.com/developers/api).
77
@@ -2619,6 +2619,17 @@ components:
26192619
type: array
26202620
items:
26212621
$ref: "#/components/schemas/VariableAlias"
2622+
rectangleCornerRadii:
2623+
type: object
2624+
properties:
2625+
RECTANGLE_TOP_LEFT_CORNER_RADIUS:
2626+
$ref: "#/components/schemas/VariableAlias"
2627+
RECTANGLE_TOP_RIGHT_CORNER_RADIUS:
2628+
$ref: "#/components/schemas/VariableAlias"
2629+
RECTANGLE_BOTTOM_LEFT_CORNER_RADIUS:
2630+
$ref: "#/components/schemas/VariableAlias"
2631+
RECTANGLE_BOTTOM_RIGHT_CORNER_RADIUS:
2632+
$ref: "#/components/schemas/VariableAlias"
26222633
explicitVariableModes:
26232634
type: object
26242635
description: A mapping of variable collection ID to mode ID representing the
@@ -3366,6 +3377,12 @@ components:
33663377
prototypeDevice:
33673378
$ref: "#/components/schemas/PrototypeDevice"
33683379
description: The device used to view a prototype.
3380+
prototypeBackgrounds:
3381+
type: array
3382+
description: The background color of the prototype (currently only supports a
3383+
single solid color paint).
3384+
items:
3385+
$ref: "#/components/schemas/RGBA"
33693386
measurements:
33703387
type: array
33713388
items:
@@ -6963,6 +6980,7 @@ components:
69636980
- LETTER_SPACING
69646981
- PARAGRAPH_SPACING
69656982
- PARAGRAPH_INDENT
6983+
- FONT_VARIATIONS
69666984
description: |-
69676985
Scopes allow a variable to be shown or hidden in the variable picker for various fields. This declutters the Figma UI if you have a large number of variables. Variable scopes are currently supported on `FLOAT`, `STRING`, and `COLOR` variables.
69686986

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@figma/rest-api-spec",
3-
"version": "0.25.0",
3+
"version": "0.27.0",
44
"description": "Typings for the Figma REST API",
55
"main": "dist/api_types.ts",
66
"repository": {

0 commit comments

Comments
 (0)