SelectionGUI

SelectionGUI

This is a utility class for creating a selection box GUI. this will give you:

  • a bounding box
  • handles for scaling
  • hotspots for rotating
  • ...and much more!

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