Options
All
  • Public
  • Public/Protected
  • All
Menu

Module WebWorkerHelpers

Index

Functions

create

  • create(workerFunction: function, messageCallbackFunction: function): Worker
  • Parameters

    • workerFunction: function
        • (data: any): void
        • Parameters

          • data: any

          Returns void

    • messageCallbackFunction: function
        • (evt: any): void
        • Parameters

          • evt: any

          Returns void

    Returns Worker

createReusable

  • createReusable(workerFunction: function): WebWorker
  • Parameters

    • workerFunction: function
        • (data: any): void
        • Parameters

          • data: any

          Returns void

    Returns WebWorker

enumToString

  • enumToString(name: string, values: any, withStrings?: boolean): string
  • Parameters

    • name: string
    • values: any
    • Default value withStrings: boolean = false

    Returns string

moduleToString

  • moduleToString(moduleName: string, name: string, moduleToConvert: any, globalVariables?: string[]): string
  • Parameters

    • moduleName: string
    • name: string
    • moduleToConvert: any
    • Optional globalVariables: string[]

    Returns string

Generated using TypeDoc