Skip to content

Intermact API Reference / @intermact/core / transformContour

Function: transformContour()

transformContour(c, sx, sy, tx, ty): RawContour

Defined in: packages/core/src/text/text-layout.ts:34

Affine-transform a raw contour (scale then translate).

Parameters

c

RawContour

sx

number

sy

number

tx

number

ty

number

Returns

RawContour

Intermact v1.0 — 文档覆盖 Phase-1 / Phase-2 / Phase-3(全阶段)