javascript - How to detect rendered new lines in text node -
O people
First of all, I need to know a text node that when / where a text will wrap in the second row.
I think textNode, iterate over the letter by letter, create a new TextNode compound of all the letters till the current step, after that I calculate the height of the text node, if the height of the current step is past If one is different from the other, wrapped the row.
The problem is that I have a hard time understanding the height of the existing text. This is what I have done so far:
You can see that How do any of you solve this problem? Or is there a better way for this problem? Set a coordinate somewhere in the middle of your text. Call offset the relative left side of this position at a fixed time interval measured by SetTimeout. Start an event listener on page load, which considers the left offset negative (meaning it is now for the rights of this situation), the event listener starts only one other event listener, which is positive for the left offset , Which will be a symbol. \ N Call two events back and forth to the audience. If you have any questions then I will be back in a few hours. getTextNodeHeight height is wrong and I do not know what is wrong. I got this function.
Comments
Post a Comment