Constructors
Properties
Readonly
animationController
animationController: (Anonymous class)<T, K> Methods
addEffect
- addEffect(effect: Effect): void
Returns void
addFilter
- addFilter(filter: Filter): void
Returns void
clearAllCustomData
- clearAllCustomData(): void
Returns void
destroy
- destroy(): void
Returns void
generateNewId
- generateNewId(): void
Returns void
getAllCustomData
- getAllCustomData(): undefined | Map<string, unknown>
Returns undefined | Map<string, unknown>
getCustomData
- getCustomData(key: string): unknown
Returns unknown
getDuration
- getDuration(): number
Returns number
getEffectById
- getEffectById(effectId: string): undefined | Effect
Returns undefined | Effect
getEndTime
- getEndTime(): number
Returns number
getFilterById
- getFilterById(filterId: string): undefined | Filter
Returns undefined | Filter
getHasTransition
- getHasTransition(): boolean
Returns boolean
getId
- getId(): string
Returns string
getIsProcessing
- getIsProcessing(): boolean
Returns boolean
getLeftBound
- getLeftBound(): number
Returns number
getLeftTrim
- getLeftTrim(): number
Returns number
getMasks
- getMasks(): MaskFilter[]
Returns MaskFilter[]
getMediaId
- getMediaId(): undefined | string
Returns undefined | string
getRightBound
- getRightBound(): number
Returns number
getRightTrim
- getRightTrim(): number
Returns number
getStartTime
- getStartTime(): number
Returns number
getSubtitlesId
- getSubtitlesId(): undefined | string
Returns undefined | string
getSubtitlesOffset
- getSubtitlesOffset(): number
Returns number
getTrimmedDuration
- getTrimmedDuration(): number
Returns number
getType
- getType(): string
Returns string
getVisible
- getVisible(): boolean
Returns boolean
hasCustomData
- hasCustomData(key: string): boolean
Returns boolean
hasSprite
- hasSprite(): boolean
Returns boolean
init
- init(layerId: string): Promise<void>
Returns Promise<void>
isActive
- isActive(currentTime: number): boolean
Returns boolean
isReady
- isReady(): boolean
Returns boolean
moveBy
- moveBy(amount: number): void
Returns void
offload
- offload(): void
Returns void
onPause
- onPause(currentTime: number): void
Returns void
onPlay
- onPlay(currentTime: number): Promise<void>
Returns Promise<void>
onRenderDone
- onRenderDone(canceled: boolean): Promise<void>
Returns Promise<void>
onRenderStart
- onRenderStart(options: ExportOptions): Promise<void>
Returns Promise<void>
onResize
- onResize(width: number, height: number): void
Parameters
- width: number
- height: number
Returns void
preload
- preload(currentTime: number): void
Returns void
removeEffect
- removeEffect(effectId: string): void
Returns void
removeFilter
- removeFilter(filterId: string): void
Returns void
removeSubtitles
- removeSubtitles(): void
Returns void
render
- render(currentTime: number): null
Returns null
resetAllAnimationProperties
- resetAllAnimationProperties(): void
Returns void
serialize
- serialize(): {
animationController?: {
animationDataIn?: {
amplification?: number;
inOutOfRange: OutOfRangeEnum;
name: string;
offset?: number;
outOutOfRange: OutOfRangeEnum;
propertyAnimations: {
inOutOfRange: OutOfRangeEnum;
keyframes: {
easing: EasingEnum;
relativeProperty?: string;
space: AnimationSpaceEnum;
time: number;
value: string
| number;
}[];
outOutOfRange: OutOfRangeEnum;
property: string;
}[];
speed?: number;
};
animationDataLoop?: {
amplification?: number;
inOutOfRange: OutOfRangeEnum;
name: string;
offset?: number;
outOutOfRange: OutOfRangeEnum;
propertyAnimations: {
inOutOfRange: OutOfRangeEnum;
keyframes: {
easing: EasingEnum;
relativeProperty?: string;
space: AnimationSpaceEnum;
time: number;
value: string
| number;
}[];
outOutOfRange: OutOfRangeEnum;
property: string;
}[];
speed?: number;
};
animationDataOut?: {
amplification?: number;
inOutOfRange: OutOfRangeEnum;
name: string;
offset?: number;
outOutOfRange: OutOfRangeEnum;
propertyAnimations: {
inOutOfRange: OutOfRangeEnum;
keyframes: {
easing: EasingEnum;
relativeProperty?: string;
space: AnimationSpaceEnum;
time: number;
value: string
| number;
}[];
outOutOfRange: OutOfRangeEnum;
property: string;
}[];
speed?: number;
};
animationInDuration?: number;
animationLoopCount?: number;
animationOutDuration?: number;
loopSmoothing?: number;
};
clipMasks?: { clipId: string; id: string; wrapMode: MaskWrapModeEnum }[];
customData?: [string, unknown][];
duration: number;
effects: {
id: string;
options: {
fragmentSrc?: string;
frameHeight: number;
frameWidth: number;
textureHeight: number;
textureWidth: number;
uniforms?: Record<string, unknown>;
};
sourceId: string;
}[];
filters: { id: string; options: { lutUrl: string }; sourceId: string }[];
id: string;
isVisible: boolean;
leftTrim: number;
mediaDataId?: string;
rightTrim: number;
startTime: number;
style?: unknown;
subtitlesId?: string;
subtitlesOffset: number;
text?: string;
type: string;
wrapMode?: CLAMP | REPEAT | PING_PONG | EMPTY;
} Returns {
animationController?: {
animationDataIn?: {
amplification?: number;
inOutOfRange: OutOfRangeEnum;
name: string;
offset?: number;
outOutOfRange: OutOfRangeEnum;
propertyAnimations: {
inOutOfRange: OutOfRangeEnum;
keyframes: {
easing: EasingEnum;
relativeProperty?: string;
space: AnimationSpaceEnum;
time: number;
value: string | number;
}[];
outOutOfRange: OutOfRangeEnum;
property: string;
}[];
speed?: number;
};
animationDataLoop?: {
amplification?: number;
inOutOfRange: OutOfRangeEnum;
name: string;
offset?: number;
outOutOfRange: OutOfRangeEnum;
propertyAnimations: {
inOutOfRange: OutOfRangeEnum;
keyframes: {
easing: EasingEnum;
relativeProperty?: string;
space: AnimationSpaceEnum;
time: number;
value: string
| number;
}[];
outOutOfRange: OutOfRangeEnum;
property: string;
}[];
speed?: number;
};
animationDataOut?: {
amplification?: number;
inOutOfRange: OutOfRangeEnum;
name: string;
offset?: number;
outOutOfRange: OutOfRangeEnum;
propertyAnimations: {
inOutOfRange: OutOfRangeEnum;
keyframes: {
easing: EasingEnum;
relativeProperty?: string;
space: AnimationSpaceEnum;
time: number;
value: string
| number;
}[];
outOutOfRange: OutOfRangeEnum;
property: string;
}[];
speed?: number;
};
animationInDuration?: number;
animationLoopCount?: number;
animationOutDuration?: number;
loopSmoothing?: number;
};
clipMasks?: { clipId: string; id: string; wrapMode: MaskWrapModeEnum }[];
customData?: [string, unknown][];
duration: number;
effects: {
id: string;
options: {
fragmentSrc?: string;
frameHeight: number;
frameWidth: number;
textureHeight: number;
textureWidth: number;
uniforms?: Record<string, unknown>;
};
sourceId: string;
}[];
filters: { id: string; options: { lutUrl: string }; sourceId: string }[];
id: string;
isVisible: boolean;
leftTrim: number;
mediaDataId?: string;
rightTrim: number;
startTime: number;
style?: unknown;
subtitlesId?: string;
subtitlesOffset: number;
text?: string;
type: string;
wrapMode?: CLAMP | REPEAT | PING_PONG | EMPTY;
}
setAllCustomData
- setAllCustomData(data: Map<string, unknown>): void
Parameters
- data: Map<string, unknown>
Returns void
setCustomData
- setCustomData(key: string, value: unknown, overwrite?: boolean): boolean
Parameters
- key: string
- value: unknown
- overwrite: boolean = true
Returns boolean
setHasTransition
- setHasTransition(hasTransition: boolean): void
Returns void
setLeftTrim
- setLeftTrim(trim: number): void
Returns void
setRightTrim
- setRightTrim(trim: number): void
Returns void
setStartTime
- setStartTime(startTime: number): void
Returns void
setSubtitles
- setSubtitles(subtitlesId: string, offset?: number): void
Parameters
- subtitlesId: string
- offset: number = 0
Returns void
setSubtitlesId
- setSubtitlesId(subtitlesId: string): void
Returns void
setSubtitlesOffset
- setSubtitlesOffset(offset: number): void
Returns void
setVisible
- setVisible(visible: boolean): void
Returns void
update
- update(currentTime: number): void
Returns void
updateMediaData
- updateMediaData(newMediaId?: string): Promise<boolean>
Parameters
Optional
newMediaId: string
Returns Promise<boolean>
updateVisibility
- updateVisibility(currentTime: number): void
Returns void