Skip to main content

Class: Translate

Constructors​

constructor​

• new Translate(_, point)

Parameters​

NameType
_Document
pointstring

Defined in​

src/Transform/Translate.ts:9

Properties​

type​

• type: string = 'translate'

Defined in​

src/Transform/Translate.ts:6


point​

• Private Readonly point: Point

Defined in​

src/Transform/Translate.ts:7

Methods​

apply​

â–¸ apply(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Defined in​

src/Transform/Translate.ts:16


unapply​

â–¸ unapply(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Defined in​

src/Transform/Translate.ts:28


applyToPoint​

â–¸ applyToPoint(point): void

Parameters​

NameType
pointPoint

Returns​

void

Defined in​

src/Transform/Translate.ts:40