Methods for creating commonly-used layers and frames within the Figma document.
- Source:
 
Methods
(static) createArrow(arrow) → {object}
- Source:
 
Create an arrow in Figma (VectorNode)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
arrow | 
            
            Object | Arrow properties Properties
  | 
        
Returns:
VectorNode
- Type
 - object
 
(static) createCircle(circle) → {object}
- Source:
 
Create a circle (RectangleNode)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
circle | 
            
            Object | Circle properties Properties
  | 
        
Returns:
RectangleNode
- Type
 - object
 
(static) createFrame(frame) → {object}
- Source:
 
Create a Frame node in Figma
Parameters:
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
frame | 
            
            Object | Frame node properties Properties
  | 
        
Returns:
FrameNode
- Type
 - object
 
(static) createLine(line) → {object}
- Source:
 
Create a line in Figma (LineNode)
Parameters:
| Name | Type | Description | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
line | 
            
            Object | Line properties Properties
  | 
        
Returns:
LineNode
- Type
 - object
 
(static) createRectangle(rectangle) → {object}
- Source:
 
Create a rectangle in Figma (Rectangle Node)
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
rectangle | 
            
            Object | Rectangle node properties Properties
  | 
        
Returns:
RectangleNode
- Type
 - object
 
(static) createTransparentFrame(frame) → {object}
- Source:
 
Create a transparent Frame node in Figma
Parameters:
| Name | Type | Description | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
frame | 
            
            Object | Frame node properties Properties
  | 
        
Returns:
FrameNode
- Type
 - object