Documentation - v20.0.0-dev
    Preparing search index...

    The objects under a pointer on the viewport's canvas, for one pointer event: the viewport gives it to the operator's handlers and to the camera controls. Each question is raycast (ViewerRaycaster.raycast) at its first read and kept by filter: the consumers asking the same of one event raycast once, and nothing is raycast when none asks. A filter is told by its reference: pass the same function (e.g. a class's arrow property) to share its hits.

    The ray goes through the pointer from the viewport's camera as it is at the first read; the lines are hit within the engine's settings.scene.lineThresholdPixels of the pointer. None is hit while the viewport is not mounted.

    Index

    Constructors

    Properties

    Methods

    Constructors

    • Parameters

      • _viewport: Viewport

        The viewport the pointer is on.

      • x: number

        The pointer's position on the canvas, in CSS pixels from its left side.

      • y: number

        The pointer's position on the canvas, in CSS pixels from its top side.

      • transparent: boolean

        Whether the objects drawn transparent are hit, x-ray included.

      Returns PointerIntersections

    Properties

    transparent: boolean

    Whether the objects drawn transparent are hit, x-ray included.

    x: number

    The pointer's position on the canvas, in CSS pixels from its left side.

    y: number

    The pointer's position on the canvas, in CSS pixels from its top side.

    Methods

    • The objects under a pointer event: at its position on the canvas, the objects drawn transparent hit while Shift is held.

      Parameters

      Returns PointerIntersections