@galacean/effects-core 2.5.3 → 2.5.5

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/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime core for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.5.3
6
+ * Version: v2.5.5
7
7
  */
8
8
 
9
9
  'use strict';
@@ -5927,8 +5927,8 @@ function initGLContext() {
5927
5927
  copy(WebGLRenderingContext);
5928
5928
  copy(WebGLRenderingContext.prototype);
5929
5929
  } else {
5930
- initErrors.push(// iOS 16 lockdown mode
5931
- "iOS16 lockdown mode, WebGL Constants not in global");
5930
+ initErrors.push(isIOS() ? // iOS 16 lockdown mode
5931
+ "iOS16 lockdown mode, WebGL Constants not in global" : "WebGL Constants not in global, please check your environment");
5932
5932
  }
5933
5933
  if (!initErrors.length && !("HALF_FLOAT" in glContext)) {
5934
5934
  // @ts-expect-error set default value
@@ -6548,7 +6548,9 @@ function _loadVideo() {
6548
6548
  return [
6549
6549
  2,
6550
6550
  new Promise(function(resolve, reject) {
6551
- var pending = video.play();
6551
+ var pending = video.play().catch(function(e) {
6552
+ reject(e);
6553
+ });
6552
6554
  if (pending) {
6553
6555
  void pending.then(function() {
6554
6556
  return resolve(video);
@@ -28576,7 +28578,7 @@ function getStandardSpriteContent(sprite, transform) {
28576
28578
  return ret;
28577
28579
  }
28578
28580
 
28579
- var version$1 = "2.5.3";
28581
+ var version$1 = "2.5.5";
28580
28582
  var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
28581
28583
  var standardVersion = /^(\d+)\.(\d+)$/;
28582
28584
  var reverseParticle = false;
@@ -31826,7 +31828,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
31826
31828
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
31827
31829
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
31828
31830
  registerPlugin("interact", InteractLoader, exports.VFXItem);
31829
- var version = "2.5.3";
31831
+ var version = "2.5.5";
31830
31832
  logger.info("Core version: " + version + ".");
31831
31833
 
31832
31834
  exports.AbstractPlugin = AbstractPlugin;