how to measure text width in kineticjs?
-
12-12-2019 - |
Question
Is there a method or workaround to return the text width of a string in a Text Shape, in KineticJs?
I would need it to position precisely the TextShape on the canvas.
OTHER TIPS
Kinetic.Text has getTextHeight() and getTextWidht() methods to do this for you.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow