Skip to content

Commit

Permalink
Merge pull request #804 from sschmidTU/feat/add-tabnote-context-group
Browse files Browse the repository at this point in the history
add context/svg group for tabnote
  • Loading branch information
0xfe committed Aug 4, 2020
2 parents 2050b52 + 551a2a6 commit f264d0c
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/tabnote.js
Original file line number Diff line number Diff line change
Expand Up @@ -470,6 +470,7 @@ export class TabNote extends StemmableNote {
this.setRendered();
const render_stem = this.beam == null && this.render_options.draw_stem;

this.context.openGroup('tabnote', null, { pointerBBox: true });
this.drawPositions();
this.drawStemThrough();

Expand All @@ -485,5 +486,6 @@ export class TabNote extends StemmableNote {

this.drawFlag();
this.drawModifiers();
this.context.closeGroup();
}
}

0 comments on commit f264d0c

Please sign in to comment.