@galacean/effects-threejs 2.4.2 → 2.4.3

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 threejs plugin for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.4.2
6
+ * Version: v2.4.3
7
7
  */
8
8
 
9
9
  'use strict';
@@ -505,8 +505,11 @@ function isIOSByUA() {
505
505
  function isAndroid() {
506
506
  return /\b[Aa]ndroid\b/.test(navigator.userAgent);
507
507
  }
508
+ function isOpenHarmony() {
509
+ return /\bOpenHarmony\b/.test(navigator.userAgent);
510
+ }
508
511
  function isSimulatorCellPhone() {
509
- return isAndroid() || /\b(iPad|iPhone|iPod)\b/.test(navigator.userAgent);
512
+ return isAndroid() || isOpenHarmony() || /\b(iPad|iPhone|iPod)\b/.test(navigator.userAgent);
510
513
  }
511
514
  function isMiniProgram() {
512
515
  return isAlipayMiniApp() || isWechatMiniApp();
@@ -31659,7 +31662,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
31659
31662
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
31660
31663
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
31661
31664
  registerPlugin("interact", InteractLoader, exports.VFXItem);
31662
- var version$1 = "2.4.2";
31665
+ var version$1 = "2.4.3";
31663
31666
  logger.info("Core version: " + version$1 + ".");
31664
31667
 
31665
31668
  var _obj;
@@ -33261,7 +33264,7 @@ setMaxSpriteMeshItemCount(8);
33261
33264
  */ Mesh.create = function(engine, props) {
33262
33265
  return new ThreeMesh(engine, props);
33263
33266
  };
33264
- var version = "2.4.2";
33267
+ var version = "2.4.3";
33265
33268
  logger.info("THREEJS plugin version: " + version + ".");
33266
33269
 
33267
33270
  exports.AbstractPlugin = AbstractPlugin;
@@ -33463,6 +33466,7 @@ exports.isIOS = isIOS;
33463
33466
  exports.isIOSByUA = isIOSByUA;
33464
33467
  exports.isMiniProgram = isMiniProgram;
33465
33468
  exports.isObject = isObject;
33469
+ exports.isOpenHarmony = isOpenHarmony;
33466
33470
  exports.isSimulatorCellPhone = isSimulatorCellPhone;
33467
33471
  exports.isString = isString;
33468
33472
  exports.isUniformStruct = isUniformStruct;