Skip to content

Commit

Permalink
group stave
Browse files Browse the repository at this point in the history
  • Loading branch information
rvilarl committed Oct 23, 2021
1 parent de2e7f5 commit a9b7c79
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/stave.ts
Original file line number Diff line number Diff line change
Expand Up @@ -728,6 +728,7 @@ export class Stave extends Element {
const ctx = this.checkContext();
this.setRendered();

ctx.openGroup('stave', this.getAttribute('id'));
if (!this.formatted) this.format();

const num_lines = this.options.num_lines;
Expand Down Expand Up @@ -769,7 +770,7 @@ export class Stave extends Element {
ctx.fillText('' + this.measure, this.x - text_width / 2, y);
ctx.restore();
}

ctx.closeGroup();
return this;
}

Expand Down

0 comments on commit a9b7c79

Please sign in to comment.