You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Note: This API is only available in Figma Design
1143
-
*
1144
1116
* Creates a new page, appended to the document's list of children.
1145
1117
*
1146
1118
* @remarks
1147
1119
*
1148
1120
* A page node can be the parent of all types of nodes except for the document node and other page nodes.
1149
1121
*
1150
-
* Files in a Starter team are limited to three pages. When a plugin tries to create more than three pages in a Starter team file, it triggers the following error:
1122
+
* Files in a Starter team are limited to three pages in Figma Design files and one page in FigJam files. When a plugin tries to exceed this limit, it triggers the following error:
1151
1123
*
1152
1124
* ```text title="Page limit error"
1153
1125
* The Starter plan only comes with 3 pages. Upgrade to
* The variables bound to a particular field on this node. Please see the [Working with Variables](https://developers.figma.com/docs/plugins/working-with-variables) guide for how to get and set variable bindings.
5706
+
*
5707
+
* @remarks
5708
+
*
5709
+
* On nodes with independent corner radii (e.g. rectangles, frames), a `cornerRadius` binding sets all four corners and appears in `boundVariables` as `topLeftRadius`/`topRightRadius`/`bottomLeftRadius`/`bottomRightRadius` rather than `cornerRadius`; elsewhere it appears as `cornerRadius`.
@@ -5843,6 +5820,7 @@ type VariableBindableNodeField =
5843
5820
|'paddingTop'
5844
5821
|'paddingBottom'
5845
5822
|'visible'
5823
+
|'cornerRadius'
5846
5824
|'topLeftRadius'
5847
5825
|'topRightRadius'
5848
5826
|'bottomLeftRadius'
@@ -5906,6 +5884,9 @@ interface ChildrenMixin {
5906
5884
*
5907
5885
* As such, this property cannot be assigned to, and the array cannot be modified directly (it wouldn't do anything). Instead, use {@link ChildrenMixin.appendChild}, {@link ChildrenMixin.insertChild} or {@link BaseNodeMixin.remove}.
5908
5886
*
5887
+
* Do not recursively walk the entire document tree by repeatedly reading `children` (for example, a manual DFS/BFS over `node.children`). That pattern is often much slower in large files.
5888
+
* Prefer {@link ChildrenMixin.findAllWithCriteria} when you know the target node types, and use {@link ChildrenMixin.findAll} when you need callback-based logic.
5889
+
*
5909
5890
* Note: If you are curious, the reason why inserting children has to be done via API calls is because our internal representation for the layer tree uses [fractional indexing](https://www.figma.com/blog/multiplayer-editing-in-figma/) and {@link ChildrenMixin.insertChild} performs that conversion.
* Note: This API is only available in Figma Design
1143
-
*
1144
1116
* Creates a new page, appended to the document's list of children.
1145
1117
*
1146
1118
* @remarks
1147
1119
*
1148
1120
* A page node can be the parent of all types of nodes except for the document node and other page nodes.
1149
1121
*
1150
-
* Files in a Starter team are limited to three pages. When a plugin tries to create more than three pages in a Starter team file, it triggers the following error:
1122
+
* Files in a Starter team are limited to three pages in Figma Design files and one page in FigJam files. When a plugin tries to exceed this limit, it triggers the following error:
1151
1123
*
1152
1124
* ```text title="Page limit error"
1153
1125
* The Starter plan only comes with 3 pages. Upgrade to
* The variables bound to a particular field on this node. Please see the [Working with Variables](https://developers.figma.com/docs/plugins/working-with-variables) guide for how to get and set variable bindings.
5706
+
*
5707
+
* @remarks
5708
+
*
5709
+
* On nodes with independent corner radii (e.g. rectangles, frames), a `cornerRadius` binding sets all four corners and appears in `boundVariables` as `topLeftRadius`/`topRightRadius`/`bottomLeftRadius`/`bottomRightRadius` rather than `cornerRadius`; elsewhere it appears as `cornerRadius`.
@@ -5843,6 +5820,7 @@ type VariableBindableNodeField =
5843
5820
|'paddingTop'
5844
5821
|'paddingBottom'
5845
5822
|'visible'
5823
+
|'cornerRadius'
5846
5824
|'topLeftRadius'
5847
5825
|'topRightRadius'
5848
5826
|'bottomLeftRadius'
@@ -5906,6 +5884,9 @@ interface ChildrenMixin {
5906
5884
*
5907
5885
* As such, this property cannot be assigned to, and the array cannot be modified directly (it wouldn't do anything). Instead, use {@link ChildrenMixin.appendChild}, {@link ChildrenMixin.insertChild} or {@link BaseNodeMixin.remove}.
5908
5886
*
5887
+
* Do not recursively walk the entire document tree by repeatedly reading `children` (for example, a manual DFS/BFS over `node.children`). That pattern is often much slower in large files.
5888
+
* Prefer {@link ChildrenMixin.findAllWithCriteria} when you know the target node types, and use {@link ChildrenMixin.findAll} when you need callback-based logic.
5889
+
*
5909
5890
* Note: If you are curious, the reason why inserting children has to be done via API calls is because our internal representation for the layer tree uses [fractional indexing](https://www.figma.com/blog/multiplayer-editing-in-figma/) and {@link ChildrenMixin.insertChild} performs that conversion.
0 commit comments