-
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1859dec
commit 1d2c9b5
Showing
6 changed files
with
28 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
/*! | ||
* musicxml-player v0.7.3 | ||
* musicxml-player v0.8.0 | ||
* (c) Karim Ratib <[email protected]> (https://github.com/infojunkie) | ||
* Released under the GPL-3.0-only License. | ||
*/ | ||
|
@@ -12582,7 +12582,7 @@ class WebAudioFontOutput { | |
} | ||
|
||
var name = "musicxml-player"; | ||
var version = "0.7.3"; | ||
var version = "0.8.0"; | ||
var description = "A simple JavaScript component that loads and plays MusicXML files in the browser using Web Audio and Web MIDI."; | ||
var main = "dist/musicxml-player.esm.js"; | ||
var type = "module"; | ||
|
@@ -15383,8 +15383,17 @@ class VerovioRenderer { | |
this._notes = notes; | ||
this._notes.forEach((noteid) => { | ||
const note = document.getElementById(noteid); | ||
note === null || note === void 0 ? void 0 : note.setAttribute('fill', '#c00'); | ||
note === null || note === void 0 ? void 0 : note.setAttribute('stroke', '#c00'); | ||
if (!note) | ||
return; | ||
note.setAttribute('fill', '#c00'); | ||
note.setAttribute('stroke', '#c00'); | ||
if (this._options.breaks === 'none') { | ||
note.scrollIntoView({ 'behavior': 'auto', 'inline': 'center' }); | ||
} | ||
else { | ||
const system = note.closest('.system'); | ||
system === null || system === void 0 ? void 0 : system.scrollIntoView({ 'behavior': 'auto', 'block': 'center' }); | ||
} | ||
}); | ||
} | ||
} | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters