Options
All
  • Public
  • Public/Protected
  • All
Menu

Class ModCompDataMainThread

Hierarchy

  • Event
    • ModCompDataMainThread

Index

Constructors

constructor

Properties

inited

inited: boolean

modCompDataService

modCompDataService: ModCompDataService

Readonly numberOfListeners

numberOfListeners: number

The number of listeners currently subscribed to the event.

workerTaskSchedule

workerTaskSchedule: WorkerTaskProcessor

Methods

addEventListener

  • addEventListener(listener: (...params: any[]) => any, scope?: any): RemoveCallback
  • Registers a callback function to be executed whenever the event is raised. An optional scope can be provided to serve as the this pointer in which the function will execute.

    Parameters

    • listener: (...params: any[]) => any

      The function to be executed when the event is raised.

        • (...params: any[]): any
        • Parameters

          • Rest ...params: any[]

          Returns any

    • Optional scope: any

    Returns RemoveCallback

    A function that will remove this event listener when invoked.

initProgress

  • initProgress(): void
  • Returns void

initQuery

  • initQuery(opt: { projId: string; updateDate?: string; url: string }): Promise<void>
  • Parameters

    • opt: { projId: string; updateDate?: string; url: string }
      • projId: string
      • Optional updateDate?: string
      • url: string

    Returns Promise<void>

isExist

  • isExist(projId: string): boolean
  • Parameters

    • projId: string

    Returns boolean

queryBy

  • queryBy(projId: string, key: "dir" | "bimId" | "index" | "box", valueAry: string[] | number[], exact?: boolean): undefined | CompInfo[]
  • Parameters

    • projId: string
    • key: "dir" | "bimId" | "index" | "box"
    • valueAry: string[] | number[]
    • Optional exact: boolean

    Returns undefined | CompInfo[]

raiseEvent

  • raiseEvent(...arguments: any[]): void
  • Raises the event by calling each registered listener with all supplied arguments.

    Parameters

    • Rest ...arguments: any[]

      This method takes any number of parameters and passes them through to the listener functions.

    Returns void

removeAllListener

  • removeAllListener(): void

removeEventListener

  • removeEventListener(listener: (...params: any[]) => any, scope?: any): boolean
  • Unregisters a previously registered callback.

    Parameters

    • listener: (...params: any[]) => any

      The function to be unregistered.

        • (...params: any[]): any
        • Parameters

          • Rest ...params: any[]

          Returns any

    • Optional scope: any

    Returns boolean

    true if the listener was removed; false if the listener and scope are not registered with the event.