Class: Transform
Constructors​
constructor​
• new Transform(document, transform, transformOrigin)
Parameters​
| Name | Type |
|---|---|
document | Document |
transform | string |
transformOrigin | readonly [Property<string>, Property<string>] |
Defined in​
Properties​
transformTypes​
â–ª Static transformTypes: Record<string, ITransformConstructor>
Defined in​
transforms​
• Private Readonly transforms: ITransform[] = []
Defined in​
document​
• Private Readonly document: Document
Defined in​
Methods​
fromElement​
â–¸ Static fromElement(document, element): Transform
Parameters​
| Name | Type |
|---|---|
document | Document |
element | Element |
Returns​
Defined in​
apply​
â–¸ apply(ctx): void
Parameters​
| Name | Type |
|---|---|
ctx | RenderingContext2D |
Returns​
void
Defined in​
unapply​
â–¸ unapply(ctx): void
Parameters​
| Name | Type |
|---|---|
ctx | RenderingContext2D |
Returns​
void
Defined in​
applyToPoint​
â–¸ applyToPoint(point): void
Parameters​
| Name | Type |
|---|---|
point | Point |
Returns​
void