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.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
This might help you. It demonstrates how to get the width of some text. There is also a link to another example showing how to do this for multi-line text, here.