abcjs icon indicating copy to clipboard operation
abcjs copied to clipboard

minPadding and rests

Open foxbunny opened this issue 4 years ago • 2 comments

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:

image

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.

foxbunny avatar May 27 '21 13:05 foxbunny

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.

paulrosen avatar May 29 '21 00:05 paulrosen

Yeah, that's a good point. I'll take a look at this again at some point.

foxbunny avatar May 29 '21 22:05 foxbunny