@coderline/alphatab 1.3.0-alpha.141 → 1.3.0-alpha.145

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.141 (develop, build 141)
2
+ * alphaTab v1.3.0-alpha.145 (develop, build 145)
3
3
  *
4
4
  * Copyright © 2022, Daniel Kuschny and Contributors, All rights reserved.
5
5
  *
@@ -26609,6 +26609,7 @@
26609
26609
  canvasElement.style.fontSize = '0';
26610
26610
  canvasElement.style.overflow = 'hidden';
26611
26611
  canvasElement.style.lineHeight = '0';
26612
+ canvasElement.style.position = 'relative';
26612
26613
  return new HtmlElementContainer(canvasElement);
26613
26614
  }
26614
26615
  triggerEvent(container, name, details = null, originalEvent) {
@@ -40149,23 +40150,25 @@
40149
40150
  * @target web
40150
40151
  */
40151
40152
  static detectScriptFile() {
40152
- // normal browser include as <script>
40153
- if ('document' in Environment.globalThis && document.currentScript) {
40154
- return document.currentScript.src;
40155
- }
40156
40153
  // browser include as ES6 import
40157
40154
  // <script type="module">
40158
40155
  // import * as alphaTab from 'dist/alphaTab.js';
40159
40156
  try {
40160
40157
  // @ts-ignore
40161
- const meta = {};
40162
- if ('url' in meta) {
40163
- return meta.url;
40158
+ const importUrl = {};
40159
+ // avoid using file:// urls in case of
40160
+ // bundlers like webpack
40161
+ if (importUrl && importUrl.indexOf('file://') === -1) {
40162
+ return importUrl;
40164
40163
  }
40165
40164
  }
40166
40165
  catch (e) {
40167
40166
  // ignore potential errors
40168
40167
  }
40168
+ // normal browser include as <script>
40169
+ if ('document' in Environment.globalThis && document.currentScript) {
40170
+ return document.currentScript.src;
40171
+ }
40169
40172
  return null;
40170
40173
  }
40171
40174
  /**
@@ -40415,7 +40418,8 @@
40415
40418
  }
40416
40419
  try {
40417
40420
  // @ts-ignore
40418
- if ('url' in {}) {
40421
+ const url = {};
40422
+ if (url) {
40419
40423
  return WebPlatform.BrowserModule;
40420
40424
  }
40421
40425
  }
@@ -40593,8 +40597,8 @@
40593
40597
  // </auto-generated>
40594
40598
  class VersionInfo {
40595
40599
  }
40596
- VersionInfo.version = '1.3.0-alpha.141';
40597
- VersionInfo.date = '2022-01-09T20:09:00.901Z';
40600
+ VersionInfo.version = '1.3.0-alpha.145';
40601
+ VersionInfo.date = '2022-01-20T19:10:15.089Z';
40598
40602
 
40599
40603
  var index$5 = /*#__PURE__*/Object.freeze({
40600
40604
  __proto__: null,