Reputation: 10778
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.
Upvotes: 5
Views: 2101
Reputation: 315
Kinetic.Text has getTextHeight() and getTextWidht() methods to do this for you.
Upvotes: 9