Converts an HTML string into tokens.
The text to convert
Optional tokenization options. When not provided it uses the options as returned by createOptions.
The default style. You can modify this to affect how the text will be rendered.
Arranges Tokens into a randerable text.
An array of tokens for arranging, at the moment you either have to craft it manually or use tokenizeString to convert an HTML-string to an array of tokens.
Arranging options.
Renders the whole arranged text at the specified position.
The arranged text to render.
Canvas context on which to render
X position of the text in the canvas
Y position of the text in the canvas
Renders a single arranged line at the specified position
The line to render
Canvas context on which to render
X position of the line
Y position of the line
Generated using TypeDoc
Creates new HTML tokenization options, filled with the default values.