Hierarchy

Index

Properties

data

schemaVersion

schemaVersion: number = 1

sourcesService

sourcesService: SourcesService

videoService

videoService: VideoService

Methods

adjustPositionAndScale

beforeLoad

  • beforeLoad(context: IContext): Promise<void>

denormalizedScale

  • denormalizedScale(scale: number): number

fromJSON

getItems

load

  • load(context: IContext): Promise<void>

loadItem

migrate

  • migrate(version: number): void
  • Nodes that have evolved from schema version 1 should override this method. This function is responsible for changing this.data to match the current schema.

    Parameters

    • version: number

      The old version number

    Returns void

normalizedScale

  • normalizedScale(scale: number): number

save

  • save(context: IContext): Promise<void>

saveItem

toJSON