Class ThreeBCF

Manager for converting three.js data to BCF data.

The topics should be created and stored in three.js space first. This class helps with the conversion to a BCF file format

Hierarchy

  • EventDispatcher
    • ThreeBCF

Constructors

Properties

version: string = VERSION

The version of the library.

worker: Worker

The worker instance.

Methods

  • Adds a listener to an event type.

    Type Parameters

    • T extends string

    Parameters

    • type: T

      The type of event to listen to.

    • listener: EventListener<Event, T, ThreeBCF>

      The function that gets called when the event is fired.

    Returns void

  • Fire an event type.

    Parameters

    • event: Event

      The event that gets fired.

    Returns void

  • Checks if listener is added to an event type.

    Type Parameters

    • T extends string

    Parameters

    • type: T

      The type of event to listen to.

    • listener: EventListener<Event, T, ThreeBCF>

      The function that gets called when the event is fired.

    Returns boolean

  • Removes a listener from an event type.

    Type Parameters

    • T extends string

    Parameters

    • type: T

      The type of the listener that gets removed.

    • listener: EventListener<Event, T, ThreeBCF>

      The listener function that gets removed.

    Returns void

Generated using TypeDoc