@galacean/effects-threejs 2.4.1 → 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.1
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();
@@ -27418,13 +27421,6 @@ var refCompositions = new Map();
27418
27421
  * 3.1 版本数据适配
27419
27422
  * - 富文本插件名称的适配
27420
27423
  */ function version31Migration(json) {
27421
- var // 修正老版本数据中,富文本插件名称的问题
27422
- _json_plugins;
27423
- (_json_plugins = json.plugins) == null ? void 0 : _json_plugins.forEach(function(plugin, index) {
27424
- if (plugin === "richtext") {
27425
- json.plugins[index] = "rich-text";
27426
- }
27427
- });
27428
27424
  // Custom shape fill 属性位置迁移
27429
27425
  for(var _iterator = _create_for_of_iterator_helper_loose(json.components), _step; !(_step = _iterator()).done;){
27430
27426
  var component = _step.value;
@@ -27492,6 +27488,13 @@ function version32Migration(json) {
27492
27488
  return json;
27493
27489
  }
27494
27490
  function version33Migration(json) {
27491
+ var // 修正老版本数据中,富文本插件名称的问题
27492
+ _json_plugins;
27493
+ (_json_plugins = json.plugins) == null ? void 0 : _json_plugins.forEach(function(plugin, index) {
27494
+ if (plugin === "richtext") {
27495
+ json.plugins[index] = "rich-text";
27496
+ }
27497
+ });
27495
27498
  // 老 shape 数据兼容
27496
27499
  for(var _iterator = _create_for_of_iterator_helper_loose(json.items), _step; !(_step = _iterator()).done;){
27497
27500
  var item = _step.value;
@@ -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.1";
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.1";
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;