-
-
Notifications
You must be signed in to change notification settings - Fork 6.9k
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Last word in comment boxes getting cut off by word wrap library : ( #195
Comments
Thanks for pointing this out and thanks for your effort with the PR. I am sure you are not the only one that has experienced this. I started out looking at d3plus but chose not use it as the size of it would more then double the size of mermaid. I will take a look at the PR and see what if I can incorporate it (ahead of time)! |
Excellent, thanks. And thanks for a great library, we are loving mermaid! As a workaround, we found that adding '\n' to the end of a comment fixes the appearance in all cases, ie the last word always shows up. Regarding d3plus, maybe it is relatively easy to extract the text wrap component? Maybe it can/should be pulled into it's own node module and included by d3plus, mermaid, and others... Just an idle thought : ) |
Fix for issue #195, text wrap in sequence diagrams drops last word Documentation
Fix for this issue was released in mermaid 0.5.2. Will close this now, let me know if you issues still remain. |
Excellent, thanks! |
See screenshot -- this is from the Atom preview, but same issue in Chrome/Yosemite.
I opened a PR in d3textwrap (vijithassar/d3-textwrap#8) around this. I tested this code in a custom Mermaid build and it did fix the issue, though it messed up alignment a bit.
Another option would be to switch to d3plus, which appears to have robust text wrapping: http://d3plus.org/examples/utilities/a39f0c3fc52804ee859a/ -- Note that if you include the head version of d3plus, it now builds correctly in browserify.
The text was updated successfully, but these errors were encountered: