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 | interface ITransformConstructor {
|
7 | prototype: ITransform;
|
8 | new (document: Document, value: string, transformOrigin: readonly [Property<string>, Property<string>]): ITransform;
|
9 | }
|
10 | export declare class Transform {
|
11 | private readonly document;
|
12 | static fromElement(document: Document, element: Element): Transform;
|
13 | static transformTypes: Record<string, ITransformConstructor>;
|
14 | private readonly transforms;
|
15 | constructor(document: Document, transform: string, transformOrigin: readonly [Property<string>, Property<string>]);
|
16 | apply(ctx: RenderingContext2D): void;
|
17 | unapply(ctx: RenderingContext2D): void;
|
18 | applyToPoint(point: Point): void;
|
19 | }
|
20 | export {};
|
21 |
|
\ | No newline at end of file |