Skip to content

vyaz-monorepo / core/src / applyScale

Function: applyScale()

applyScale(doc, scale): TextFrame

Defined in: core/src/layout/AutoFitEngine.ts:33

Apply a scale factor to all fontSize values in the document. inlineWidget dimensions are NOT scaled. Returns a NEW document (does not mutate the original).

Parameters

doc

TextFrame

scale

number

Returns

TextFrame

Released under the MIT License.