Skip to main content
Version: Next

getMovedSimpleShapeSide

Callable

  • getMovedSimpleShapeSide(input: SimpleShapePointEditInput): SimpleShapePointEditResult | null

  • Computes updated simple-shape geometry after dragging an edge or corner handle.

    The drag delta is transformed into the shape's local coordinate system, then applied to the selected side or corner before the updated center is rotated back into image coordinates.


    Parameters

    • input: SimpleShapePointEditInput

      Current shape geometry, selected handle, drag delta, and text scale.

    Returns SimpleShapePointEditResult | null

    Updated center and size, or null when the selected point is not resizable.