@coderline/alphatab 1.3.0-alpha.997 → 1.3.1

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.
@@ -1,5 +1,5 @@
1
1
  /**
2
- * alphaTab v1.3.0-alpha.997 (develop, build 997)
2
+ * alphaTab v1.3.1 (, build 11)
3
3
  *
4
4
  * Copyright © 2024, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -42687,6 +42687,21 @@ class Environment {
42687
42687
  }
42688
42688
  return false;
42689
42689
  }
42690
+ /**
42691
+ * @target web
42692
+ */
42693
+ static detectVite() {
42694
+ try {
42695
+ // @ts-ignore
42696
+ if (typeof __BASE__ === 'string') {
42697
+ return true;
42698
+ }
42699
+ }
42700
+ catch (e) {
42701
+ // ignore any errors
42702
+ }
42703
+ return false;
42704
+ }
42690
42705
  /**
42691
42706
  * @target web
42692
42707
  */
@@ -42737,6 +42752,10 @@ Environment.webPlatform = Environment.detectWebPlatform();
42737
42752
  * @target web
42738
42753
  */
42739
42754
  Environment.isWebPackBundled = Environment.detectWebPack();
42755
+ /**
42756
+ * @target web
42757
+ */
42758
+ Environment.isViteBundled = Environment.detectVite();
42740
42759
  /**
42741
42760
  * @target web
42742
42761
  */
@@ -42824,8 +42843,8 @@ class CoreSettings {
42824
42843
  // </auto-generated>
42825
42844
  class VersionInfo {
42826
42845
  }
42827
- VersionInfo.version = '1.3.0-alpha.997';
42828
- VersionInfo.date = '2024-04-23T01:22:41.517Z';
42846
+ VersionInfo.version = '1.3.1';
42847
+ VersionInfo.date = '2024-06-15T16:02:03.898Z';
42829
42848
 
42830
42849
  var index$6 = /*#__PURE__*/Object.freeze({
42831
42850
  __proto__: null,
@@ -5548,6 +5548,10 @@ declare class Environment {
5548
5548
  * @target web
5549
5549
  */
5550
5550
  static isWebPackBundled: boolean;
5551
+ /**
5552
+ * @target web
5553
+ */
5554
+ static isViteBundled: boolean;
5551
5555
  /**
5552
5556
  * @target web
5553
5557
  */
@@ -5652,6 +5656,10 @@ declare class Environment {
5652
5656
  * @target web
5653
5657
  */
5654
5658
  private static detectWebPack;
5659
+ /**
5660
+ * @target web
5661
+ */
5662
+ private static detectVite;
5655
5663
  /**
5656
5664
  * @target web
5657
5665
  */
package/dist/alphaTab.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * alphaTab v1.3.0-alpha.997 (develop, build 997)
2
+ * alphaTab v1.3.1 (, build 11)
3
3
  *
4
4
  * Copyright © 2024, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -42693,6 +42693,21 @@
42693
42693
  }
42694
42694
  return false;
42695
42695
  }
42696
+ /**
42697
+ * @target web
42698
+ */
42699
+ static detectVite() {
42700
+ try {
42701
+ // @ts-ignore
42702
+ if (typeof __BASE__ === 'string') {
42703
+ return true;
42704
+ }
42705
+ }
42706
+ catch (e) {
42707
+ // ignore any errors
42708
+ }
42709
+ return false;
42710
+ }
42696
42711
  /**
42697
42712
  * @target web
42698
42713
  */
@@ -42743,6 +42758,10 @@
42743
42758
  * @target web
42744
42759
  */
42745
42760
  Environment.isWebPackBundled = Environment.detectWebPack();
42761
+ /**
42762
+ * @target web
42763
+ */
42764
+ Environment.isViteBundled = Environment.detectVite();
42746
42765
  /**
42747
42766
  * @target web
42748
42767
  */
@@ -42830,8 +42849,8 @@
42830
42849
  // </auto-generated>
42831
42850
  class VersionInfo {
42832
42851
  }
42833
- VersionInfo.version = '1.3.0-alpha.997';
42834
- VersionInfo.date = '2024-04-23T01:22:41.517Z';
42852
+ VersionInfo.version = '1.3.1';
42853
+ VersionInfo.date = '2024-06-15T16:02:03.898Z';
42835
42854
 
42836
42855
  var index$6 = /*#__PURE__*/Object.freeze({
42837
42856
  __proto__: null,
@@ -45993,7 +46012,7 @@
45993
46012
  if (Environment.webPlatform == exports.WebPlatform.NodeJs) {
45994
46013
  throw new AlphaTabError(exports.AlphaTabErrorType.General, 'Workers not yet supported in Node.js');
45995
46014
  }
45996
- if (Environment.webPlatform == exports.WebPlatform.BrowserModule || Environment.isWebPackBundled) {
46015
+ if (Environment.webPlatform == exports.WebPlatform.BrowserModule || Environment.isWebPackBundled || Environment.isViteBundled) {
45997
46016
  Logger.debug("AlphaTab", "Creating webworker");
45998
46017
  return new Environment.alphaTabWorker(new URL('./alphaTab.worker', {}), { type: 'module' });
45999
46018
  }
@@ -46015,7 +46034,7 @@
46015
46034
  if (Environment.webPlatform == exports.WebPlatform.NodeJs) {
46016
46035
  throw new AlphaTabError(exports.AlphaTabErrorType.General, 'Audio Worklets not yet supported in Node.js');
46017
46036
  }
46018
- if (Environment.webPlatform == exports.WebPlatform.BrowserModule || Environment.isWebPackBundled) {
46037
+ if (Environment.webPlatform == exports.WebPlatform.BrowserModule || Environment.isWebPackBundled || Environment.isViteBundled) {
46019
46038
  Logger.debug("AlphaTab", "Creating Module worklet");
46020
46039
  const alphaTabWorklet = context.audioWorklet; // this name triggers the WebPack Plugin
46021
46040
  return alphaTabWorklet.addModule(new URL('./alphaTab.worklet', {}));