@mocanvas/mocanvas · function

toDisplayText

declare function toDisplayText(text: string): string

Text exactly as the static label / measuring element must render it to occupy the right box.

mocanvas is built by Symbio. Free for non-commercial, non-profit and development use; commercial use needs an agreement. Not affiliated with or endorsed by tldraw.