UNPKG

671 BTypeScriptView Raw
1export declare enum TransformComponentType {
2 kMatrixType = 0,
3 kPerspectiveType = 1,
4 kRotationType = 2,
5 kScaleType = 3,
6 kSkewType = 4,
7 kSkewXType = 5,
8 kSkewYType = 6,
9 kTranslationType = 7
10}
11/**
12 * CSSTransformComponent is the base class used for the representations of
13 * the individual CSS transforms. They are combined in a CSSTransformValue
14 * before they can be used as a value for properties like "transform".
15 *
16 * @see https://drafts.css-houdini.org/css-typed-om/#csstransformcomponent
17 */
18export declare abstract class CSSTransformComponent {
19 is2D: boolean;
20 constructor(is2D: boolean);
21 abstract toMatrix(): DOMMatrix;
22}