Skip to content

anim-format (runtime format) / layoutVerticalText

Function: layoutVerticalText() ​

ts
function layoutVerticalText(el, measure): VerticalPiece[];

Parameters ​

ParameterType
elPick<AnimText, | "content" | "runs" | "font" | "box" | "verticalAlign" | "letterSpacing" | "lineHeight" | "multiline" | "wordWrap">
measure(text, style) => number

Returns ​

VerticalPiece[]

HereSplash — 2D animation for the web