1 | /**
|
2 | * Contains utility methods for transforming css matrixes.
|
3 | * All methods in this module are experimental and
|
4 | * may be changed in a non-major version.
|
5 | */
|
6 |
|
7 | import { TransformFunctionsInfo } from '../ui/animation';
|
8 |
|
9 | /**
|
10 | * Returns the affine matrix representation of the transformation.
|
11 | * @param transformation Property and value of the transformation.
|
12 | */
|
13 | export declare const getTransformMatrix: ({ property, value }) => number[];
|
14 |
|
15 | /**
|
16 | * Returns the css matrix representation of
|
17 | * an affine transformation matrix
|
18 | * @param m The flat matrix array to be transformed
|
19 | */
|
20 | export declare const matrixArrayToCssMatrix: (m: number[]) => number[];
|
21 |
|
22 | /**
|
23 | * Multiplies two two-dimensional affine matrices
|
24 | * https://jsperf.com/array-vs-object-affine-matrices/
|
25 | * @param m1 Left-side matrix array
|
26 | * @param m2 Right-side matrix array
|
27 | */
|
28 | export declare function multiplyAffine2d(m1: number[], m2: number[]): number[];
|
29 |
|
30 | /**
|
31 | * QR decomposition using the Gram–Schmidt process.
|
32 | * Decomposes a css matrix to simple transforms - translate, rotate and scale.
|
33 | * @param matrix The css matrix array to decompose.
|
34 | */
|
35 | export function decompose2DTransformMatrix(matrix: number[]): TransformFunctionsInfo;
|