abcjs 6.0.0 → 6.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "abcjs",
3
- "version": "6.0.0",
3
+ "version": "6.0.1",
4
4
  "description": "Renderer for abc music notation",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -729,7 +729,7 @@ var ledgerLines = function(abselem, minPitch, maxPitch, isRest, symbolWidth, add
729
729
  else
730
730
  p1 += 1;
731
731
  }
732
- abselem.addRight(new RelativeElement(null, dx, 0, p1, {"type": "stem", "pitch2":p2, linewidth: width}));
732
+ abselem.addRight(new RelativeElement(null, dx, 0, p1, {"type": "stem", "pitch2":p2, linewidth: width, bottom: p1-1}));
733
733
  //var RelativeElement = function RelativeElement(c, dx, w, pitch, opt) {
734
734
  min = Math.min(p1, p2);
735
735
  }
@@ -1,6 +1,6 @@
1
1
  function setPaperSize(renderer, maxwidth, scale, responsive) {
2
2
  var w = (maxwidth+renderer.padding.right)*scale;
3
- var h = (renderer.y+renderer.padding.bottom)*scale;
3
+ var h = (renderer.y)*scale;
4
4
  if (renderer.isPrint)
5
5
  h = Math.max(h, 1056); // 11in x 72pt/in x 1.33px/pt
6
6
  // TODO-PER: We are letting the page get as long as it needs now, but eventually that should go to a second page.