Options
All
  • Public
  • Public/Protected
  • All
Menu

Class BaseLayer

Hierarchy

  • EventDispatcher
    • BaseLayer

Index

Constructors

  • Returns BaseLayer

Properties

camera: PerspectiveCamera
commonUniforms: Uniforms
info: LayerInfo
readyAnimate: boolean = false
renderer?: WebGLRenderer
scene: Scene
time: number = 0

Methods

  • addEventListener<T>(type: T, listener: EventListener<Event, T, BaseLayer>): void
  • Adds a listener to an event type.

    Type parameters

    • T: string

    Parameters

    • type: T

      The type of event to listen to.

    • listener: EventListener<Event, T, BaseLayer>

      The function that gets called when the event is fired.

    Returns void

  • animate(deltaTime: number): void
  • Parameters

    • deltaTime: number

    Returns void

  • dispatchEvent(event: Event): void
  • Fire an event type.

    Parameters

    • event: Event

    Returns void

  • hasEventListener<T>(type: T, listener: EventListener<Event, T, BaseLayer>): boolean
  • Checks if listener is added to an event type.

    Type parameters

    • T: string

    Parameters

    • type: T

      The type of event to listen to.

    • listener: EventListener<Event, T, BaseLayer>

      The function that gets called when the event is fired.

    Returns boolean

  • Parameters

    Returns void

  • Parameters

    Returns void

  • onResize(): void
  • Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • Parameters

    Returns void

  • onUnbind(): void
  • Returns void

  • onWheel(event: WheelEvent, trackpadDelta: number): void
  • Parameters

    • event: WheelEvent
    • trackpadDelta: number

    Returns void

  • Parameters

    Returns void

  • removeChildrens(object: Object3D<Event>): void
  • Parameters

    • object: Object3D<Event>

    Returns void

  • removeEventListener<T>(type: T, listener: EventListener<Event, T, BaseLayer>): void
  • Removes a listener from an event type.

    Type parameters

    • T: string

    Parameters

    • type: T

      The type of the listener that gets removed.

    • listener: EventListener<Event, T, BaseLayer>

      The listener function that gets removed.

    Returns void

  • setWrapperElement(wrapperElm: null | HTMLElement, dispatchResize?: boolean): void
  • Parameters

    • wrapperElm: null | HTMLElement
    • dispatchResize: boolean = true

    Returns void

  • tick(deltaTime: number): void
  • Parameters

    • deltaTime: number

    Returns void

Generated using TypeDoc