Calculate the width of the text Example: getTextWidth('my text', node)
The text to calculate the width for
The HTML element
Calculate the width of the text Example: getTextWidth('my text', node)