A two-element array [xFactor, yFactor] which defines the normalized position of this handle relative to the bounding box.
Optional
handlers: { canDrag?: Function } = {}An object of optional handler functions.
Optional
canDrag?: FunctionA function determining if this handle can initiate a drag.
Track whether the handle is being actively used for a drag workflow
Activate listeners for pointer events, enabling hover and mouse-down behavior on the resize handle.
Refresh the position and hit area of this handle based on the provided bounding box.
The bounding box in which this handle operates.
Compute updated dimensions for an object being resized, respecting optional constraints.
The current geometric state of the object
The original position and dimensions used for reference
The mouse (or pointer) destination coordinates.
The x-coordinate where the pointer was released.
The y-coordinate where the pointer was released.
Optional
options: { aspectRatio?: null | number } = {}Additional options.
Optional
aspectRatio?: null | numberIf provided, a numeric aspect ratio to maintain (width/height).
An object containing the adjusted {x, y, width, height}.
Protected
_onProtected
Handle mouse-over event on a control handle
The mouseover event
Protected
_onProtected
Handle mouse-out event on a control handle
The mouseout event
Protected
_onProtected
When we start a drag event - create a preview copy of the Tile for re-positioning
The mousedown event
A class based on PIXI.Graphics, that allows to create a resize handle in the desired area.