renderedText

Returns what a label will look like once set, near enough to count its characters and measure it.

@internote/canvas-sdkFunction
On this page
import { renderedText } from '@internote/canvas-sdk';

flatten gives the source, and for maths the source is not the picture: $\theta$ is six characters of chalk and one letter on the page. So each maths run is reduced to its atoms: a symbol macro stands for the one glyph it draws, an accent or a face for none, and braces and spacing for nothing. A live number reads as two digits and a symbol as one capital.

#Signature

(items: unknown): string

#Parameters

items
The inline content, or a plain string.

Declared in packages/canvas-sdk/src/text/index.ts:307.

Last updated