I was trying to make a note model that is always in-sync with Vex Flow rendering (hope this will be somehow supported in the future version), and did this:
var ctx = this.renderer.getContext();
ctx.clear();
Then got this:
<svg> attribute viewBox: Expected number, "0 0 NaN NaN".
The result was alright and the SVG was updated (redrawn), but this error is strange. Any idea why did it happen? Stacktrace is like context.clear -> scale -> setViewBox -> Error.
Really hope vexflow can support model syncing, or at least provide some hooks for plugging in. Juggling between every piece of source code is really kill me (and probably many other people like me).