sej
    Preparing search index...

    Class AbstractViewportControls

    Abstract class for all viewport controls implementations.

    Hierarchy (View Summary)

    Implements

    Index

    Constructors

    Properties

    _enabled: boolean
    domElement: HTMLCanvasElement

    Reference to the canvas element where the controls are attached. I.e. where pointer events are listened.

    object: Object3D<Object3DEventMap>

    Object that is begin controlled. Usually the camera.

    Accessors

    Methods

    • This allows all components to add their own debug options to the debugger.

      For example, the controls. One controls may provide a set of debug options while another may provide a slightly different set.

      Parameters

      • _gui: GUI

      Returns void

    • Adds a listener to an event type.

      Type Parameters

      • T extends never

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{}[T], T, AbstractViewportControls>

        The function that gets called when the event is fired.

      Returns void

    • Fire an event type.

      Type Parameters

      • T extends never

      Parameters

      • event: BaseEvent<T> & {}[T]

        The event that gets fired.

      Returns void

    • Focus the controls on the given target.

      Parameters

      • _object: Object3D
      • ..._args: any[]

      Returns void

    • Checks if listener is added to an event type.

      Type Parameters

      • T extends never

      Parameters

      • type: T

        The type of event to listen to.

      • listener: EventListener<{}[T], T, AbstractViewportControls>

        The function that gets called when the event is fired.

      Returns boolean

    • Removes a listener from an event type.

      Type Parameters

      • T extends never

      Parameters

      • type: T

        The type of the listener that gets removed.

      • listener: EventListener<{}[T], T, AbstractViewportControls>

        The listener function that gets removed.

      Returns void

    • E2E test method.

      This method should return true if the test passes, and false if it fails. Check the method itself for more information.

      Returns boolean