Comparing version 0.4.0 to 0.5.0
{ | ||
"name": "webmscore", | ||
"version": "0.4.0", | ||
"version": "0.5.0", | ||
"description": "MuseScore's libmscore in WebAssembly! Read mscz data, and generate MIDI/MusicXML/SVG/PNG/PDF sheets right in browsers", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -71,4 +71,6 @@ | ||
* Only save this excerpt (linked parts) of the score | ||
* (-1 means the full score) | ||
* @param {number} id | ||
* | ||
* if no excerpts, generate excerpts from existing instrument parts | ||
* | ||
* @param {number} id `-1` means the full score | ||
*/ | ||
@@ -84,2 +86,10 @@ async setExcerptId(id) { | ||
/** | ||
* Generate excerpts from Parts (only parts that are visible) if no existing excerpts | ||
* @returns {Promise<void>} | ||
*/ | ||
async generateExcerpts() { | ||
return Module.ccall('generateExcerpts', null, ['number'], [this.scoreptr]) | ||
} | ||
/** | ||
* Get the score title | ||
@@ -86,0 +96,0 @@ * @returns {Promise<string>} |
@@ -93,4 +93,6 @@ // @ts-check | ||
* Only save this excerpt (linked parts) of the score | ||
* (-1 means the full score) | ||
* @param {number} id | ||
* | ||
* if no excerpts, generate excerpts from existing instrument parts | ||
* | ||
* @param {number} id `-1` means the full score | ||
*/ | ||
@@ -106,2 +108,10 @@ async setExcerptId(id) { | ||
/** | ||
* Generate excerpts from Parts (only parts that are visible) if no existing excerpts | ||
* @returns {Promise<void>} | ||
*/ | ||
generateExcerpts() { | ||
return this.rpc('generateExcerpts') | ||
} | ||
/** | ||
* Get the score title | ||
@@ -108,0 +118,0 @@ * @returns {Promise<string>} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
41666160
4911