Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GraphicEngine Abstract

Hierarchy

Index

Constructors

Properties

elements: Elem[] = []
framecount: number = 0

Collection Accessors

  • get length(): number
  • Return the number of Elem in the collection

    category

    Collection

    Returns number

CSS class Methods

  • hasClass(className: string): boolean

Collection Methods

  • add(newItem: Elem): void
  • forEach(callback: ((value: Elem, index: number, array: Elem[]) => void), thisArg?: any): void
  • Execute a callback on every Elem

    Parameters

    • callback: ((value: Elem, index: number, array: Elem[]) => void)
        • (value: Elem, index: number, array: Elem[]): void
        • Parameters

          • value: Elem
          • index: number
          • array: Elem[]

          Returns void

    • Optional thisArg: any

    Returns void

  • get(index: number): Elem
  • Return collection's Elem or a single Elem

    Parameters

    • index: number

      Index of the element in the collection

    Returns Elem

Dimensions Methods

  • viewportPosition(): Point

Events Methods

  • off(eventNames: string | string[], selector?: string): Collection
  • on(eventNames: string | string[], callback: EventCallback, useCapture?: boolean): Collection
  • on(eventNames: string | string[], selector: Selector, callback: EventCallback, useCapture?: boolean): Collection

HTML manipulation Methods

  • attr(name: string): string
  • attr(name: string, value: any): GraphicEngine
  • css(name: string): string
  • css(name: {}): GraphicEngine
  • css(name: string, value?: string | number, priority?: "" | "important"): GraphicEngine
  • data(name: string): string
  • data(name: string, value: any): GraphicEngine

Other Methods

  • animate(): void
  • clear(): void
  • draw(): void
  • render(): void
  • requestAnimationFrame(): void
  • resize(dimensions?: Dimensions): void
  • setup(): void

Traversing Methods

  • index(): number

Generated using TypeDoc