Implements

  • IDragConstraint

Constructors

Methods

Constructors

  • Parameters

    • min: number
    • max: number
    • relativeToInitialScale: boolean = true

    Returns ScaleLimitConstraint

Methods

  • Modifies followObject in-place. Invoked after position is resolved each frame.

    Parameters

    Returns void

  • Called once at drag start and again whenever the drag context resets (e.g. multi-touch → single-pointer transition). Capture any object snapshot (position, rotation, scale) you need to hold fixed during the drag. Constraints that need no dynamic initialization may omit this method.

    Parameters

    • ctx: IDragConstraintContext

    Returns void