1 | import { RenderingContext2D } from '../types';
|
---|
2 | import Property from '../Property';
|
---|
3 | import Point from '../Point';
|
---|
4 | import Document, { Element } from '../Document';
|
---|
5 | import { ITransform } from './types';
|
---|
6 | import Translate from './Translate';
|
---|
7 | import Rotate from './Rotate';
|
---|
8 | import Scale from './Scale';
|
---|
9 | import Matrix from './Matrix';
|
---|
10 | import Skew from './Skew';
|
---|
11 | import SkewX from './SkewX';
|
---|
12 | import SkewY from './SkewY';
|
---|
13 | export { Translate, Rotate, Scale, Matrix, Skew, SkewX, SkewY };
|
---|
14 | interface ITransformConstructor {
|
---|
15 | prototype: ITransform;
|
---|
16 | new (document: Document, value: string, transformOrigin?: readonly [Property<string>, Property<string>]): ITransform;
|
---|
17 | }
|
---|
18 | export default class Transform {
|
---|
19 | private readonly document;
|
---|
20 | static fromElement(document: Document, element: Element): Transform;
|
---|
21 | static transformTypes: Record<string, ITransformConstructor>;
|
---|
22 | private readonly transforms;
|
---|
23 | constructor(document: Document, transform: string, transformOrigin?: readonly [Property<string>, Property<string>]);
|
---|
24 | apply(ctx: RenderingContext2D): void;
|
---|
25 | unapply(ctx: RenderingContext2D): void;
|
---|
26 | applyToPoint(point: Point): void;
|
---|
27 | }
|
---|
28 | //# sourceMappingURL=Transform.d.ts.map |
---|