Manages pointer interactions (mouse, touch, etc.) on a SectionBoxHandles to reshape a Three.js Box3. This includes detecting which handle is hovered or dragged, capturing the pointer for smooth dragging, and enforcing a minimum box size.

Constructors

Properties

onBoxConfirm: (box: Box3) => void

Called when the user has finished reshaping the box (pointer up).

Type declaration

    • (box: Box3): void
    • Parameters

      • box: Box3

        The final box after dragging ends.

      Returns void

onBoxStretch: (box: Box3) => void

Called continuously as the box is reshaped by dragging.

Type declaration

    • (box: Box3): void
    • Parameters

      • box: Box3

        The updated box after the latest drag move.

      Returns void

onFaceEnter: (normal: Vector3) => void

Called when the pointer enters or leaves a handle face.

Type declaration

    • (normal: Vector3): void
    • Parameters

      • normal: Vector3

        The normal (forward) vector of the hovered handle, or a zero vector if none.

      Returns void

Methods