abcjs 6.0.1 → 6.0.2

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.1",
3
+ "version": "6.0.2",
4
4
  "description": "Renderer for abc music notation",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -120,13 +120,13 @@ function renderEachLineSeparately(div, tune, params, tuneNumber) {
120
120
 
121
121
  if (k === 0) {
122
122
  ep.paddingtop = origPaddingTop;
123
- ep.paddingbottom = -20;
123
+ ep.paddingbottom = 0;
124
124
  } else if (k === tunes.length-1) {
125
125
  ep.paddingtop = 10;
126
126
  ep.paddingbottom = origPaddingBottom;
127
127
  } else {
128
128
  ep.paddingtop = 10;
129
- ep.paddingbottom = -20;
129
+ ep.paddingbottom = 0;
130
130
  }
131
131
  if (k < tunes.length-1) {
132
132
  // If it is not the last line, force stretchlast. If it is, stretchlast might have been set by the input parameters.
@@ -3,7 +3,7 @@ var StringPatterns = require('../string-patterns');
3
3
  function GuitarPatterns(plugin) {
4
4
  this.tuning = plugin._super.params.tuning;
5
5
  if (!this.tuning) {
6
- this.tuning = ['E,', 'A', 'D', 'G' , 'B' , 'e'];
6
+ this.tuning = ['E,', 'A,', 'D', 'G' , 'B' , 'e'];
7
7
  }
8
8
  plugin.tuning = this.tuning;
9
9
  this.strings = new StringPatterns(plugin);
@@ -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)*scale;
3
+ var h = (renderer.y+renderer.padding.bottom)*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.
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
- var version = '6.0.1';
1
+ var version = '6.0.2';
2
2
 
3
3
  module.exports = version;