measureText(canvas
, shape
, text
): object
Measure text size
Parameters
• canvas: Canvas
• shape: Text
• text: any
Returns
object
height
height: number
lineHeight
lineHeight: number
minWidth
minWidth: number
preprocessedDoc?
optional
preprocessedDoc: any
width
width: number
Source
utils/text-utils.ts:585