@babylonjs/gui 8.5.0 → 8.6.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.
@@ -327,6 +327,7 @@ export class AdvancedDynamicTexture extends DynamicTexture {
327
327
  /**
328
328
  * Gets or sets a boolean indicating that the canvas must be reverted on Y when updating the texture
329
329
  */
330
+ // eslint-disable-next-line @typescript-eslint/naming-convention
330
331
  this.applyYInversionOnUpdate = true;
331
332
  /**
332
333
  * A boolean indicating whether or not the elements can be navigated to using the tab key.
@@ -1313,7 +1314,7 @@ export class AdvancedDynamicTexture extends DynamicTexture {
1313
1314
  * @param urlRewriter defines an url rewriter to update urls before sending them to the controls
1314
1315
  * @returns a promise that will resolve on success
1315
1316
  */
1316
- parseFromSnippetAsync(snippetId, scaleToSize, urlRewriter) {
1317
+ async parseFromSnippetAsync(snippetId, scaleToSize, urlRewriter) {
1317
1318
  return AdvancedDynamicTexture.ParseFromSnippetAsync(snippetId, scaleToSize, this, urlRewriter);
1318
1319
  }
1319
1320
  /**
@@ -1337,12 +1338,12 @@ export class AdvancedDynamicTexture extends DynamicTexture {
1337
1338
  * @param urlRewriter defines an url rewriter to update urls before sending them to the controls
1338
1339
  * @returns a promise that will resolve on success
1339
1340
  */
1340
- parseFromURLAsync(url, scaleToSize, urlRewriter) {
1341
+ async parseFromURLAsync(url, scaleToSize, urlRewriter) {
1341
1342
  return AdvancedDynamicTexture.ParseFromFileAsync(url, scaleToSize, this, urlRewriter);
1342
1343
  }
1343
- static _LoadURLContentAsync(url, snippet = false) {
1344
+ static async _LoadURLContentAsync(url, snippet = false) {
1344
1345
  if (url === "") {
1345
- return Promise.reject("No URL provided");
1346
+ throw new Error("No URL provided");
1346
1347
  }
1347
1348
  return new Promise((resolve, reject) => {
1348
1349
  const request = new WebRequest();