Options
All
  • Public
  • Public/Protected
  • All
Menu

three-elements - v0.4.0-alpha.14

Index

Type aliases

TickerFunction

TickerFunction: (dt: number, el: HTMLElement) => any

Type declaration

    • (dt: number, el: HTMLElement): any
    • Parameters

      • dt: number
      • el: HTMLElement

      Returns any

Variables

Const registeredThreeElements

registeredThreeElements: Record<string, string> = ...

Tracks registered elements by mapping them from PascalPaseNames to their kebab-case equivalents.

Functions

Const registerElement

  • registerElement(name: string, constructor: CustomElementConstructor): void
  • Convenience method to create a new custom element.

    Parameters

    • name: string

      Name of the custom element to create

    • constructor: CustomElementConstructor

      Class that will handle this element

    Returns void

Const registerThreeElement

  • registerThreeElement(tagName: string, threeName: string, klass: IConstructor<HTMLElement>): void
  • Registers an element and adds it to the dictionary that's mapping THREE.* namespace properties (and more) to tag names.

    Parameters

    • tagName: string
    • threeName: string
    • klass: IConstructor<HTMLElement>

    Returns void

Generated using TypeDoc