new Selection(layer, items, x, y, scaleX, scaleY, rotation, originX, originY)
- Description:
Create a new paper.js selection.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
layer |
paper.Layer | the layer to add the selection GUI to. Defaults to the active layer. |
items |
Array.<paper.Item> | the items to select. |
x |
number | the amount the selection is translated on the x-axis |
y |
number | the amount the selection is translated on the y-axis |
scaleX |
number | the amount the selection is scaled on the x-axis |
scaleY |
number | the amount the selection is scaled on the y-axis |
rotation |
number | the amount the selection is rotated |
originX |
number | the origin point of all transforms. Defaults to the center of selected items. |
originY |
number | the origin point of all transforms. Defaults to the center of selected items. |