types
import {...} from "@motion-canvas/core/lib/types";
Complex types used in animations.
Enumerations
Classes
Interfaces
Type Aliases
CanvasColorSpace
type CanvasColorSpace = 'srgb''display-p3'
CanvasOutputMimeType
type CanvasOutputMimeType = 'image/png''image/jpeg''image/webp'
Color
type Color = Color
Represents a color.
This is the same class as the one created by
chroma.js
. Check out their
documentation for more information on how to use it.
ColorSignal
type ColorSignalT = SignalPossibleColorColorT
Type Parameters
PossibleBBox
type PossibleBBox = SerializedBBoxnumbernumbernumbernumberVector2undefined
PossibleColor
type PossibleColor = SerializedColornumberColora: numberb: numberg: numberr: number
PossibleMatrix2D
type PossibleMatrix2D = Matrix2DDOMMatrixnumbernumbernumbernumbernumbernumberPossibleVector2PossibleVector2PossibleVector2undefined
PossibleSpacing
type PossibleSpacing = SerializedSpacingnumbernumbernumbernumbernumbernumbernumbernumbernumbernumberundefined
PossibleVector2
Type Parameters
T = number
RectSignal
type RectSignalT = CompoundSignalPossibleBBoxBBox'x''y''width''height'T
Type Parameters
SerializedBBox
SerializedColor
type SerializedColor = string
SerializedSpacing
SerializedVector2
Type Parameters
T = number
SimpleVector2Signal
type SimpleVector2SignalT = SignalPossibleVector2Vector2T
Type Parameters
SpacingSignal
type SpacingSignalT = CompoundSignalPossibleSpacingSpacing'top''right''bottom''left'T
Type Parameters
Variables
Color
Color: ColorStatic()
EPSILON
const EPSILON: 0.000001 = 0.000001
Functions
flipOrigin
Parameters
isType
Parameters
value: any
originToOffset
Convert the given origin to a vector representing its offset.