Class ScenesService

Hierarchy

Implements

Index

Constructors

constructor

Properties

itemAdded

itemAdded: Subject<ISceneItem> = new Subject<ISceneItem>()

itemRemoved

itemRemoved: Subject<ISceneItem> = new Subject<ISceneItem>()

itemUpdated

itemUpdated: Subject<ISceneItem> = new Subject<ISceneItem>()

sceneAdded

sceneAdded: Subject<IScene> = new Subject<IScene>()

sceneRemoved

sceneRemoved: Subject<IScene> = new Subject<IScene>()

sceneSwitched

sceneSwitched: Subject<IScene> = new Subject<IScene>()

serviceName

serviceName: string = this.constructor.name

Static hasInstance

hasInstance: boolean = false

Static isSingleton

isSingleton: boolean = true

Static serviceAfterInit

serviceAfterInit: Subject<Service> = new Subject<Service>()

lifecycle hook

Accessors

activeScene

  • get activeScene(): Scene

activeSceneId

  • get activeSceneId(): string

scenes

state

store

  • get store(): Store<any>

Static instance

  • get instance(): any

Methods

Protected afterInit

  • afterInit(): void
  • calls only once per application life all observers are ready to listen service's events

    Returns void

createScene

getModel

getScene

  • getScene(id: string): Scene

getSceneByName

  • getSceneByName(name: string): Scene

getSceneItem

  • getSceneItem(sceneItemId: string): SceneItem

getSceneItems

getScenes

getSourceScenes

  • getSourceScenes(sourceId: string): Scene[]

Protected init

  • init(): void

makeSceneActive

  • makeSceneActive(id: string): boolean

Protected mounted

  • mounted(): void

removeScene

  • removeScene(id: string, force?: boolean): IScene

setLockOnAllScenes

  • setLockOnAllScenes(locked: boolean): void

setSceneOrder

  • setSceneOrder(order: string[]): void

showDuplicateScene

  • showDuplicateScene(sceneName: string): void

showNameFolder

  • showNameFolder(options?: object): void
  • Parameters

    • Default value options: object = {}
      • Optional itemsToGroup?: string[]
      • Optional parentId?: string
      • Optional renameId?: string

    Returns void

showNameScene

  • showNameScene(options?: object): void
  • Parameters

    • Default value options: object = {}
      • Optional itemsToGroup?: string[]
      • Optional rename?: string

    Returns void

suggestName

  • suggestName(name: string): string

Static createInstance

  • createInstance(ServiceClass: any): any

Static getResourceId

  • getResourceId(resource: any): string

Static getStore

  • getStore(): Store<any>

Static setupInitFunction

  • setupInitFunction(fn: function): void

Static setupProxy

  • setupProxy(fn: function): void

Static setupVuexStore

  • setupVuexStore(store: Store<any>): void

Object literals

Static initialState

initialState: object

activeSceneId

activeSceneId: string = ""

displayOrder

displayOrder: undefined[] = []

scenes

scenes: object

Type declaration