Constructor
new SelectionGUI(items)
- Description:
Create a selection GUI.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
items |
Array.<paper.Item> | (required) the items to create a GUI around. |
Methods
destroy()
- Description:
Destroy the GUI.
- Source:
moveHandleAndRotate(handleName, position)
- Description:
Move a handle and use the new position of the handle to rotate the selection.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
handleName |
string | the name of the handle to move |
position |
paper.Point | the position to move the handle to |
moveHandleAndScale(handleName, position)
- Description:
Move a handle and use the new handle position to scale the selection.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
handleName |
string | the name of the handle to move |
position |
paper.Point | the position to move the handle to |