abcjs
abcjs copied to clipboard
minPadding and rests
When using the initialClef option, the initial element on the staff gets rendered right at the edge of the staff. I've tried using minPadding to address this, but it does not affect rests. Here's the screenshot:

Is this by design? And if so, what's the rationale?
Since I've provided the patch for initial clef, I could also look into adjusting the padding of the initial elements regardless of minPadding in cases where initialClef is used, which I think would be the right way to fix this.
If there were a clef there it would be in the right place. I guess that instead of just skipping the clef the x-coordinate needs to be bumped up in that case.
Yeah, that's a good point. I'll take a look at this again at some point.