Constructor
new Selector(id, elem, bboxopt)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
id |
Integer | Internally identify the selector |
|
elem |
Element | DOM element associated with this selector |
|
bbox |
module:utilities.BBoxObject |
<optional> |
Optional bbox to use for initialization (prevents duplicate |
- Source:
Methods
(static) updateGripCursors(angle) → {void}
Updates cursors for corner grips on rotation so arrows point the right way.
Parameters:
Name | Type | Description |
---|---|---|
angle |
Float | Current rotation angle in degrees |
- Source:
Returns:
- Type
- void
reset(e, bbox) → {void}
Used to reset the id and element that the selector is attached to.
Parameters:
Name | Type | Description |
---|---|---|
e |
Element | DOM element associated with this selector |
bbox |
module:utilities.BBoxObject | Optional bbox to use for reset (prevents duplicate getBBox call). |
- Source:
Returns:
- Type
- void
resize(bboxopt) → {void}
Updates the selector to match the element's size.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
bbox |
module:utilities.BBoxObject |
<optional> |
BBox to use for resize (prevents duplicate getBBox call). |
- Source:
Returns:
- Type
- void
showGrips(show) → {void}
Show the resize grips of this selector.
Parameters:
Name | Type | Description |
---|---|---|
show |
boolean | Indicates whether grips should be shown or not |
- Source:
Returns:
- Type
- void