@coderline/alphatab 1.3.0-alpha.691 → 1.3.0-alpha.699
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/alphaTab.js +27 -11
- package/dist/alphaTab.min.js +2 -2
- package/dist/alphaTab.min.mjs +2 -2
- package/dist/alphaTab.mjs +27 -11
- package/package.json +1 -1
package/dist/alphaTab.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* alphaTab v1.3.0-alpha.
|
|
2
|
+
* alphaTab v1.3.0-alpha.699 (develop, build 699)
|
|
3
3
|
*
|
|
4
4
|
* Copyright © 2023, Daniel Kuschny and Contributors, All rights reserved.
|
|
5
5
|
*
|
|
@@ -2829,6 +2829,7 @@
|
|
|
2829
2829
|
return null;
|
|
2830
2830
|
}
|
|
2831
2831
|
chain(sharedDataBag = null) {
|
|
2832
|
+
var _a;
|
|
2832
2833
|
// mainly for backwards compat in case we reach this code from somewhere outside.
|
|
2833
2834
|
if (sharedDataBag === null) {
|
|
2834
2835
|
return;
|
|
@@ -2869,10 +2870,11 @@
|
|
|
2869
2870
|
this._noteIdBag = null; // not needed anymore
|
|
2870
2871
|
}
|
|
2871
2872
|
else {
|
|
2872
|
-
|
|
2873
|
+
// no tie destination at all?
|
|
2874
|
+
if (!this.isTieDestination && this.tieOrigin === null) {
|
|
2873
2875
|
return;
|
|
2874
2876
|
}
|
|
2875
|
-
let tieOrigin = Note.findTieOrigin(this);
|
|
2877
|
+
let tieOrigin = (_a = this.tieOrigin) !== null && _a !== void 0 ? _a : Note.findTieOrigin(this);
|
|
2876
2878
|
if (!tieOrigin) {
|
|
2877
2879
|
this.isTieDestination = false;
|
|
2878
2880
|
}
|
|
@@ -10459,6 +10461,11 @@
|
|
|
10459
10461
|
parseDiagramItemForChord(chord, node) {
|
|
10460
10462
|
chord.name = node.getAttribute('name');
|
|
10461
10463
|
let diagram = node.findChildElement('Diagram');
|
|
10464
|
+
if (!diagram) {
|
|
10465
|
+
chord.showDiagram = false;
|
|
10466
|
+
chord.showFingering = false;
|
|
10467
|
+
return;
|
|
10468
|
+
}
|
|
10462
10469
|
let stringCount = parseInt(diagram.getAttribute('stringCount'));
|
|
10463
10470
|
let baseFret = parseInt(diagram.getAttribute('baseFret'));
|
|
10464
10471
|
chord.firstFret = baseFret + 1;
|
|
@@ -13720,8 +13727,14 @@
|
|
|
13720
13727
|
}
|
|
13721
13728
|
}
|
|
13722
13729
|
else if (element.getAttribute('type') === 'stop' && this._tieStarts.length > 0 && !note.isTieDestination) {
|
|
13723
|
-
|
|
13724
|
-
|
|
13730
|
+
const tieOrigin = this._tieStarts[0];
|
|
13731
|
+
// no cross track/staff or voice ties supported for now
|
|
13732
|
+
if (tieOrigin.beat.voice.index === note.beat.voice.index &&
|
|
13733
|
+
tieOrigin.beat.voice.bar.staff.index === note.beat.voice.bar.staff.index &&
|
|
13734
|
+
tieOrigin.beat.voice.bar.staff.track.index === note.beat.voice.bar.staff.track.index) {
|
|
13735
|
+
note.isTieDestination = true;
|
|
13736
|
+
note.tieOrigin = this._tieStarts[0];
|
|
13737
|
+
}
|
|
13725
13738
|
this._tieStarts.splice(0, 1);
|
|
13726
13739
|
this._tieStartIds.delete(note.id);
|
|
13727
13740
|
}
|
|
@@ -31737,10 +31750,13 @@
|
|
|
31737
31750
|
// load the effect from the previous renderer if possible.
|
|
31738
31751
|
let previousRenderer = this.renderer
|
|
31739
31752
|
.previousRenderer;
|
|
31740
|
-
let previousBand = previousRenderer.getBand(
|
|
31741
|
-
|
|
31742
|
-
if (
|
|
31743
|
-
|
|
31753
|
+
let previousBand = previousRenderer.getBand(prevBeat.voice, this.info.effectId);
|
|
31754
|
+
// it can happen that we have an empty voice and then we don't have an effect band
|
|
31755
|
+
if (previousBand) {
|
|
31756
|
+
let voiceGlyphs = previousBand._effectGlyphs[prevBeat.voice.index];
|
|
31757
|
+
if (voiceGlyphs.has(prevBeat.index)) {
|
|
31758
|
+
prevEffect = voiceGlyphs.get(prevBeat.index);
|
|
31759
|
+
}
|
|
31744
31760
|
}
|
|
31745
31761
|
}
|
|
31746
31762
|
// if the effect cannot be expanded, create a new glyph
|
|
@@ -41673,8 +41689,8 @@
|
|
|
41673
41689
|
// </auto-generated>
|
|
41674
41690
|
class VersionInfo {
|
|
41675
41691
|
}
|
|
41676
|
-
VersionInfo.version = '1.3.0-alpha.
|
|
41677
|
-
VersionInfo.date = '2023-07-
|
|
41692
|
+
VersionInfo.version = '1.3.0-alpha.699';
|
|
41693
|
+
VersionInfo.date = '2023-07-12T02:02:14.105Z';
|
|
41678
41694
|
|
|
41679
41695
|
var index$5 = /*#__PURE__*/Object.freeze({
|
|
41680
41696
|
__proto__: null,
|