Skip to content

Commit

Permalink
update js library
Browse files Browse the repository at this point in the history
  • Loading branch information
AaronDavidNewman committed Jan 15, 2024
1 parent bc24e93 commit 43388c5
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 4 deletions.
1 change: 1 addition & 0 deletions release/library/trumpet/BeethovenOp21.json

Large diffs are not rendered by default.

11 changes: 8 additions & 3 deletions release/smoosic.js
Original file line number Diff line number Diff line change
Expand Up @@ -8749,7 +8749,7 @@ class SuiScoreRender {
const columns = this.formatter.systems[lineIx].systems;
// If this page hasn't changed since rendered
const pageIndex = columns[0][0].svg.pageIndex;
if (this.renderingPage !== pageIndex && this.renderedPages[pageIndex]) {
if (this.renderingPage !== pageIndex && this.renderedPages[pageIndex] && !printing) {
console.log(`skipping render on page ${pageIndex}`);
return;
}
Expand Down Expand Up @@ -23333,7 +23333,8 @@ __webpack_require__.r(__webpack_exports__);
/* harmony import */ var _common_serializationHelpers__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! ../../common/serializationHelpers */ "./src/common/serializationHelpers.js");
/* harmony import */ var _measureModifiers__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! ./measureModifiers */ "./src/smo/data/measureModifiers.ts");
/* harmony import */ var _scoreModifiers__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! ./scoreModifiers */ "./src/smo/data/scoreModifiers.ts");
/* harmony import */ var _staffModifiers__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./staffModifiers */ "./src/smo/data/staffModifiers.ts");
/* harmony import */ var _scoreText__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! ./scoreText */ "./src/smo/data/scoreText.ts");
/* harmony import */ var _staffModifiers__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(/*! ./staffModifiers */ "./src/smo/data/staffModifiers.ts");
// [Smoosic](https://github.com/AaronDavidNewman/Smoosic)
// Copyright (c) Aaron David Newman 2021.
/**
Expand All @@ -23345,6 +23346,7 @@ __webpack_require__.r(__webpack_exports__);




const SmoPartInfoStringTypes = ['partName', 'partAbbreviation'];
const SmoPartInfoNumTypes = ['stavesAfter', 'stavesBefore'];
const SmoPartInfoBooleanTypes = ['preserveTextGroups', 'cueInScore', 'expandMultimeasureRests'];
Expand All @@ -23360,7 +23362,7 @@ function isSmoPartInfoParamsSer(params) {
* Parts can have formatting that is indepenedent of the score
* @category SmoModifier
*/
class SmoPartInfo extends _staffModifiers__WEBPACK_IMPORTED_MODULE_3__.StaffModifierBase {
class SmoPartInfo extends _staffModifiers__WEBPACK_IMPORTED_MODULE_4__.StaffModifierBase {
static get defaults() {
return JSON.parse(JSON.stringify({
partName: 'Staff ',
Expand Down Expand Up @@ -23426,6 +23428,9 @@ class SmoPartInfo extends _staffModifiers__WEBPACK_IMPORTED_MODULE_3__.StaffModi
static deserialize(jsonObj) {
const params = SmoPartInfo.defaults;
_common_serializationHelpers__WEBPACK_IMPORTED_MODULE_0__.smoSerialize.serializedMerge(SmoPartAttributesBasic, jsonObj, params);
jsonObj.textGroups.forEach((tg) => {
params.textGroups.push(_scoreText__WEBPACK_IMPORTED_MODULE_3__.SmoTextGroup.deserialize(tg));
});
params.midiInstrument = jsonObj.midiInstrument;
params.midiDevice = jsonObj.midiDevice;
params.measureFormatting = {};
Expand Down
2 changes: 1 addition & 1 deletion release/smoosic.js.map

Large diffs are not rendered by default.

0 comments on commit 43388c5

Please sign in to comment.