abcjs 6.1.2 → 6.1.3

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.1.2",
3
+ "version": "6.1.3",
4
4
  "description": "Renderer for abc music notation",
5
5
  "main": "index.js",
6
6
  "types": "types/index.d.ts",
@@ -198,7 +198,7 @@ TabRenderer.prototype.doLayout = function () {
198
198
  var padd = 3;
199
199
  var prevIndex = this.staffIndex;
200
200
  var previousStaff = staffGroup.staffs[prevIndex];
201
- var tabTop = previousStaff.top + padd + lyricsHeight;
201
+ var tabTop = this.tabSize + padd - previousStaff.bottom - lyricsHeight;
202
202
  if (previousStaff.isTabStaff) {
203
203
  tabTop = previousStaff.top;
204
204
  }
package/src/write/svg.js CHANGED
@@ -307,7 +307,7 @@ Svg.prototype.closeGroup = function() {
307
307
  var g = this.currentGroup.shift();
308
308
  if (g && g.children.length === 0) {
309
309
  // If nothing was added to the group it is because all the elements were invisible. We don't need the group, then.
310
- this.svg.removeChild(g);
310
+ g.parentElement.removeChild(g);
311
311
  return null;
312
312
  }
313
313
  return g;
package/version.js CHANGED
@@ -1,3 +1,3 @@
1
- var version = '6.1.2';
1
+ var version = '6.1.3';
2
2
 
3
3
  module.exports = version;