new SelectionWidget()
- Description:
Creates a SelectionWidget
- Source:
Members
boundingBox
- Description:
The bounding box of the widget.
- Source:
The bounding box of the widget.
boxRotation
- Description:
The rotation of the selection box GUI.
- Source:
The rotation of the selection box GUI.
currentTransformation :string
- Description:
The current transformation being done to the selection widget.
- Source:
The current transformation being done to the selection widget.
Type:
- string
height
- Description:
The height of the selection.
- Source:
The height of the selection.
item
- Description:
The item containing the widget GUI
- Source:
The item containing the widget GUI
itemsInSelection
- Description:
The items currently inside the selection widget
- Source:
The items currently inside the selection widget
layer
- Description:
The layer to add the widget GUI item to.
- Source:
The layer to add the widget GUI item to.
pivot
- Description:
The point to rotate/scale the widget around.
- Source:
The point to rotate/scale the widget around.
position
- Description:
The position of the top left corner of the selection box.
- Source:
The position of the top left corner of the selection box.
rotation
- Description:
The rotation of the selection.
- Source:
The rotation of the selection.
width
- Description:
The width of the selection.
- Source:
The width of the selection.
Methods
build(boxRotation, items, pivot)
- Description:
Build a new SelectionWidget GUI around some items.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
boxRotation |
number | the rotation of the selection GUI. Optional, defaults to 0 |
items |
Array.<paper.Item> | the items to build the GUI around |
pivot |
paper.Point | the pivot point that the selection rotates around. Defaults to (0,0) |
finishTransformation()
flipHorizontally()
- Description:
Flip the selected items horizontally.
- Source:
flipVertically()
- Description:
Flip the selected items vertically.
- Source: