Optional alignmentHow to fit the content to be drawn inside its container
Placement2D.TopLeft
Optional containerThe size of the container where the content will be drawn
{width: 0, height: 0}
Optional drawFunction called to draw the text on the canvas.
By default, it is
ctx.fillText.
Provided in case you want to, for example, draw an outline in a bigger font for each line.
Function called to draw the text on the canvas.
By default, it is
ctx.fillText.
Provided in case you want to, for example, draw an outline in a bigger font for each line.
Optional maxWidth: numberOptional originSet the origin of the content inside its container
Placement2D.TopLeft
Generated using TypeDoc
Options for drawLine