Skip to main content

Class: Scale

Constructors​

constructor​

• new Scale(_, scale, transformOrigin)

Parameters​

NameType
_Document
scalestring
transformOriginreadonly [Property<string>, Property<string>]

Defined in​

src/Transform/Scale.ts:13

Properties​

type​

• type: string = 'scale'

Defined in​

src/Transform/Scale.ts:8


scale​

• Private Readonly scale: Point

Defined in​

src/Transform/Scale.ts:9


originX​

• Private Readonly originX: Property<unknown>

Defined in​

src/Transform/Scale.ts:10


originY​

• Private Readonly originY: Property<unknown>

Defined in​

src/Transform/Scale.ts:11

Methods​

apply​

â–¸ apply(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Defined in​

src/Transform/Scale.ts:33


unapply​

â–¸ unapply(ctx): void

Parameters​

NameType
ctxRenderingContext2D

Returns​

void

Defined in​

src/Transform/Scale.ts:50


applyToPoint​

â–¸ applyToPoint(point): void

Parameters​

NameType
pointPoint

Returns​

void

Defined in​

src/Transform/Scale.ts:67