Exports related to image media.

Interfaces

ImageMedia

Extends ContainerAsset.VisibleContentAsset. Extended by RawImage and ClientRawImage.

PropertyType
alpha?boolean
asDataStorableMedia
canBeContainer?boolean
canBeContent?boolean
canBeFill?boolean
createdAt?string
decodingsDecoding[]
hasIntrinsicSizing?boolean
hasIntrinsicTiming?boolean
idstring
isVector?boolean
label?string
mediaIdsstring[]
probeSize?Size<number>
projectId?string
propertiesProperty[]
resourcesResource[]
sourcestring
targetIdstring
typeMediaType
updatedAt?string

Methods

assetCachePromise(args): Promise<DataOrError<number>>

ParameterType
argsAssetCacheArgs

Returns Promise<DataOrError<number>>. Inherited from VisibleContentAsset.assetCachePromise.

assetFiles(args): AssetFile[]

All files needed for audible and/or visible encode commands.
ParameterType
argsCacheArgs

Returns AssetFile[]. Inherited from VisibleContentAsset.assetFiles.

boolean(key): boolean

ParameterType
keystring

Returns boolean. Inherited from VisibleContentAsset.boolean.

changeObject(propertyId, scalar?): ChangeEditObject

ParameterType
propertyId`${string}.${string}`
scalar?Scalar

Returns ChangeEditObject. Inherited from VisibleContentAsset.changeObject.

changeScalars(scalars): void

ParameterType
scalarsPartial<SignalScalarRecord>

Returns void. Inherited from VisibleContentAsset.changeScalars.

changesObject(scalars): ChangePropertiesEditObject

ParameterType
scalarsPartial<SignalScalarRecord>

Returns ChangePropertiesEditObject. Inherited from VisibleContentAsset.changesObject.

clipObject(object?): ClipObject

ParameterType
object?InstanceObject

Returns ClipObject. Inherited from VisibleContentAsset.clipObject.

commandFilePromise(args, commandFile): Promise<DataOrError<number>>

Writes a command file, if it's not a raw asset.
ParameterType
argsServerPromiseArgs
commandFileCommandFile

Returns Promise<DataOrError<number>>. Inherited from VisibleContentAsset.commandFilePromise.

constrainedValue(found, value?): undefined | Scalar

ParameterType
foundProperty
value?Scalar

Returns undefined | Scalar. Inherited from VisibleContentAsset.constrainedValue.

findResource(…types): undefined | Resource

ParameterType
typesstring[]

Returns undefined | Resource. Inherited from VisibleContentAsset.findResource.

instanceArgs(object?): InstanceArgs

ParameterType
object?InstanceObject

Returns InstanceArgs. Inherited from VisibleContentAsset.instanceArgs.

instanceFromObject(object?): Instance

ParameterType
object?InstanceObject

Returns Instance. Inherited from VisibleContentAsset.instanceFromObject.

number(key): number

ParameterType
keystring

Returns number. Inherited from VisibleContentAsset.number.

propertiesOfTarget(targetId): Property[]

ParameterType
targetIdstring

Returns Property[]. Inherited from VisibleContentAsset.propertiesOfTarget.

propertyFind(name): undefined | Property

ParameterType
namestring

Returns undefined | Property. Inherited from VisibleContentAsset.propertyFind.

propertyIds(targetId): `${string}.${string}`[]

ParameterType
targetIdstring

Returns `${string}.${string}`[]. Inherited from VisibleContentAsset.propertyIds.

scalarsRecord(idOrNames): ScalarRecord

ParameterType
idOrNamesstring[]

Returns ScalarRecord. Inherited from VisibleContentAsset.scalarsRecord.

setValue(nameOrId, scalar?, dontConstrain?): void

ParameterType
nameOrIdstring
scalar?Scalar
dontConstrain?boolean

Returns void. Inherited from VisibleContentAsset.setValue.

shouldSelectProperty(property): boolean

ParameterType
propertyProperty

Returns boolean. Inherited from VisibleContentAsset.shouldSelectProperty.

string(key): string

ParameterType
keystring

Returns string. Inherited from VisibleContentAsset.string.

toJSON(): UnknownRecord

Returns UnknownRecord. Inherited from VisibleContentAsset.toJSON.

tweenValues(key, time, range): Scalar[]

ParameterType
keystring
timeTime
rangeTimeRange

Returns Scalar[]. Inherited from VisibleContentAsset.tweenValues.

tweens(key): boolean

ParameterType
keystring

Returns boolean. Inherited from VisibleContentAsset.tweens.

value(key): undefined | Scalar

ParameterType
keystring

Returns undefined | Scalar. Inherited from VisibleContentAsset.value.

StorableMashImage

Extends StorableMash.MashVisibleProperties.

PropertyTypeDescription
assets?StorableMedia[]-
buffer?number-
color?stringBackground color.
createdAt?string-
height?number-
id?string-
label?string-
projectId?string-
resources?StorableResource[]-
shortest?number-
source"mash"-
tracks?TrackObject[]-
type"image"-
updatedAt?string-
width?number-

StoredMashImage

Extends StoredMedia.MashVisibleProperties.

PropertyTypeDescription
buffer?number-
color?stringBackground color.
createdAt?string-
height?number-
idstring-
label?string-
projectId?string-
resources?StoredResource[]-
shortest?number-
sourcestring-
tracks?TrackObject[]-
typeMediaType-
updatedAt?string-
width?number-

Functions

ImageMediaMixin

ImageMediaMixin<T>(Base): T & Constrained<ImageMedia>

Type ParameterDescription
T extends Constrained<VisibleAsset>
ParameterTypeDescription
BaseT

Returns T & Constrained<ImageMedia>.

isImageMedia

isImageMedia(value): value is ImageMedia

ParameterType
valueany

Returns value is ImageMedia.