media
import {...} from "@canvas-commons/core/lib/media";
Multi-media management.
Classes
Interfaces
Type Aliases
ImageDataSource
type ImageDataSource = CanvasImageSourceheight: numberwidth: number
Variables
EMPTY_AUDIO_DATA
const EMPTY_AUDIO_DATA: AudioData = ...
Functions
decibelsToAmplitude
public decibelsToAmplitudedecibels: number: number
Parameters
decibels: number
getImageData
Parameters
image: ImageDataSource
loadAnimation
public loadAnimationsources: string[]: PromiseHTMLImageElement[]
Parameters
sources: string[]
loadImage
public loadImagesource: string: PromiseHTMLImageElement
Parameters
source: string