Inner text will fit the whole width of the element
<fitted-text id="myText">My text</fitted-text>
Updating the content:
myText.updateText('update to this text');
Recalculating text size:
myText.scale();
fitted-text will update its font size to make it fit its full width
Inner text will fit the whole width of the element
<fitted-text id="myText">My text</fitted-text>
Updating the content:
myText.updateText('update to this text');
Recalculating text size:
myText.scale();
fitted-text will update its font size to make it fit its full width