Skip to content

Commit

Permalink
Comments
Browse files Browse the repository at this point in the history
  • Loading branch information
stephband committed Jun 19, 2024
1 parent 34123ce commit 0bca9dc
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 0 additions & 1 deletion modules/beam.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,6 @@ function createNoteBeams(svg, durations, i, range, duration) {
}
}


export function renderBeam(svg) {
const ids = svg.dataset.events.split(/\s+/);
const parent = svg.parentElement;
Expand Down
3 changes: 3 additions & 0 deletions modules/create-symbol-element.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,9 @@ export default overload(get('type'), {
}),

beam: (symbol) => create('svg', {
// 8th note beams can be rendered directly into the grid. Beams for shorter
// durations are rendered as a post process once this SVG is in the DOM and
// stem positions can be measured. See beam.js.
class: `${symbol.direction}-beam beam`,
viewBox: `0 ${ (symbol.range > 0 ? -symbol.range : 0) - 0.5 } ${ symbol.notes.length - 1 } ${ abs(symbol.range) + 1 }`,
preserveAspectRatio: "none",
Expand Down

0 comments on commit 0bca9dc

Please sign in to comment.