-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Multiline gl2d texts #1089
Multiline gl2d texts #1089
Conversation
// TODO add support for '\n' in gl-plot2d, | ||
// For now, replace '\n' with ' ' | ||
nextTicks[j][i].text = convertHTMLToUnicode(nextTicks[j][i].text + '').replace(/\n/g, ' '); | ||
nextTicks[j][i].text = convertHTMLToUnicode(nextTicks[j][i].text + ''); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why the extra + ''
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It was there and I left it intact, thinking it was in place to coerce it into a string
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I believe nextTicks[j][i].text
will always be a string. Let's 🔪 that + ''
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
OK
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@etpinard npm run test-image-gl2d
returned with errors when I did the 🔪
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ha. Good to know. Revert the 🔪 and add a comment about the + ''
.
ef66311
to
b4a21d3
Compare
Awesome work @monfera Thanks very much! |
PR depends on the merge and npm publish of its gl-vis dependency
Purports to fix #1079