-
Notifications
You must be signed in to change notification settings - Fork 663
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
fix: extra space before seconds with modifiers #1580
Conversation
Gregory, these changes look great. Thank you. When I try to build on your branch, I get some errors. I don't see the same errors on the vexflow master branch when doing a clean install. Is that expected? I wasn't sure if this was a clean branch or had some of your proprietary stuff on it. If the latter, I (or one of us) can just merge the files piecemeal. In particular, npm install fails like so. I am on Windows 10.
|
Hmmm, that should be unrelated to any changes I made. I branched off of the
current vexflow master, and only changed accidental.ts, stringnumber.ts and
stringnumber_tests.ts. (That is, I didn’t touch anything related to
package.json or the build process.)
|
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.
@gristow thanks a lot. Only one change required, the unused variable. The variable names are quite long :) if we follow this path, the library will grow.
I like the long variable names. They helped me review the PR in no time flat. Remember that variables that are not exported become "f" or whatever when minified. |
Thanks for the review, @rvilarl, and for catching that unused variable. I've added a commit to fix that. I agree the variable names are longer than usual, and I went back and forth on whether that was the right direction to go. For me, after it took about an hour just to grok what all of the code in |
@mscuthbert @ronyeh I was looking into that, Are we minifying including renaming of variables in our build process? |
Fixes #1578
Previously seconds with a left shifted notehead (those with a downward stem) would take more x space than needed:
vs.
And
StringNumber
s did not self-position correctly for seconds with a left shifted notehead:This PR resolves both of these issues, adding an additional visual regression test: