A two-element array [xFactor, yFactor] which defines the normalized position of this handle relative to the bounding box.
Optionalhandlers: { canDrag?: Function } = {}An object of optional handler functions.
OptionalcanDrag?: 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.
Optionaloptions: { aspectRatio?: null | number } = {}Additional options.
OptionalaspectRatio?: null | numberIf provided, a numeric aspect ratio to maintain (width/height).
An object containing the adjusted {x, y, width, height}.
Protected_onProtectedHandle mouse-over event on a control handle
The mouseover event
Protected_onProtectedHandle mouse-out event on a control handle
The mouseout event
Protected_onProtectedWhen 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.