BrowserSourceItem <Input>
Hierarchy
- SceneItem<Input>
- BrowserSourceItem
Index
Constructors
constructor
Type parameters
- Input: BrowserSource<{}, Input>
Parameters
source: Input
scene: Scene<{}, {}>
id: number
ref: string
Returns BrowserSourceItem<Input>
Properties
enabled
publicid
locked
publicref
publicscene
publicsource
transform
Methods
fetchProperties
Returns Promise<void>
remove
Returns Promise<void>
setEnabled
Parameters
enabled: boolean
Returns Promise<void>
setLocked
Parameters
locked: boolean
Returns Promise<void>
setTransform
Parameters
transform: Partial<SceneItemTransform>
Returns Promise<void>
updateSizeFromSource
Some sources have custom settings for width and height. Thus, sourceWidth and sourceHeight for their scene items can change. This method reassigns these values and calculates properties.width and properties.height as a product of the source dimensions and item scale.
Parameters
optionalsourceWidth: number
optionalsourceHeight: number
Returns void
Fetches the item’s transform, enabled, and locked properties and assigns them to the item.