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