@coderline/alphatab 1.3.0-alpha.691 → 1.3.0-alpha.694

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * alphaTab v1.3.0-alpha.691 (develop, build 691)
2
+ * alphaTab v1.3.0-alpha.694 (develop, build 694)
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
- if (!this.isTieDestination && this.tieOrigin == null) {
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
- note.isTieDestination = true;
13724
- note.tieOrigin = this._tieStarts[0];
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
  }
@@ -41673,8 +41686,8 @@
41673
41686
  // </auto-generated>
41674
41687
  class VersionInfo {
41675
41688
  }
41676
- VersionInfo.version = '1.3.0-alpha.691';
41677
- VersionInfo.date = '2023-07-04T02:03:30.331Z';
41689
+ VersionInfo.version = '1.3.0-alpha.694';
41690
+ VersionInfo.date = '2023-07-07T02:02:30.846Z';
41678
41691
 
41679
41692
  var index$5 = /*#__PURE__*/Object.freeze({
41680
41693
  __proto__: null,