UNPKG

@snap/camera-kit

Version:
27 lines 863 B
import type { TupleOf } from "../common/types"; /** * Matrix as a 9-value array in column-major order, * where elements are stored sequentially by columns. */ export type Matrix = TupleOf<number, 9>; /** * Use this class to supply the CameraKitSession::setSourceTransform with the proper data * needed to apply transformations. * * @category Rendering */ export declare class Transform2D { readonly matrix: Matrix; static readonly MirrorX: Transform2D; static readonly MirrorY: Transform2D; static readonly Identity: Transform2D; /** * @param matrix A 3x3 matrix in column-major order, representing a 2D transform to be applied to the source media */ constructor(matrix: Matrix); } /** * @internal */ export declare function isTransform2D(value: unknown): value is Transform2D; //# sourceMappingURL=Transform2D.d.ts.map