@galacean/effects-core 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 core 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';
@@ -483,8 +483,11 @@ function isIOSByUA() {
483
483
  function isAndroid() {
484
484
  return /\b[Aa]ndroid\b/.test(navigator.userAgent);
485
485
  }
486
+ function isOpenHarmony() {
487
+ return /\bOpenHarmony\b/.test(navigator.userAgent);
488
+ }
486
489
  function isSimulatorCellPhone() {
487
- return isAndroid() || /\b(iPad|iPhone|iPod)\b/.test(navigator.userAgent);
490
+ return isAndroid() || isOpenHarmony() || /\b(iPad|iPhone|iPod)\b/.test(navigator.userAgent);
488
491
  }
489
492
  function isMiniProgram() {
490
493
  return isAlipayMiniApp() || isWechatMiniApp();
@@ -27396,13 +27399,6 @@ var refCompositions = new Map();
27396
27399
  * 3.1 版本数据适配
27397
27400
  * - 富文本插件名称的适配
27398
27401
  */ function version31Migration(json) {
27399
- var // 修正老版本数据中,富文本插件名称的问题
27400
- _json_plugins;
27401
- (_json_plugins = json.plugins) == null ? void 0 : _json_plugins.forEach(function(plugin, index) {
27402
- if (plugin === "richtext") {
27403
- json.plugins[index] = "rich-text";
27404
- }
27405
- });
27406
27402
  // Custom shape fill 属性位置迁移
27407
27403
  for(var _iterator = _create_for_of_iterator_helper_loose(json.components), _step; !(_step = _iterator()).done;){
27408
27404
  var component = _step.value;
@@ -27470,6 +27466,13 @@ function version32Migration(json) {
27470
27466
  return json;
27471
27467
  }
27472
27468
  function version33Migration(json) {
27469
+ var // 修正老版本数据中,富文本插件名称的问题
27470
+ _json_plugins;
27471
+ (_json_plugins = json.plugins) == null ? void 0 : _json_plugins.forEach(function(plugin, index) {
27472
+ if (plugin === "richtext") {
27473
+ json.plugins[index] = "rich-text";
27474
+ }
27475
+ });
27473
27476
  // 老 shape 数据兼容
27474
27477
  for(var _iterator = _create_for_of_iterator_helper_loose(json.items), _step; !(_step = _iterator()).done;){
27475
27478
  var item = _step.value;
@@ -31637,7 +31640,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
31637
31640
  registerPlugin("particle", ParticleLoader, exports.VFXItem);
31638
31641
  registerPlugin("cal", CalculateLoader, exports.VFXItem);
31639
31642
  registerPlugin("interact", InteractLoader, exports.VFXItem);
31640
- var version = "2.4.1";
31643
+ var version = "2.4.3";
31641
31644
  logger.info("Core version: " + version + ".");
31642
31645
 
31643
31646
  exports.AbstractPlugin = AbstractPlugin;
@@ -31829,6 +31832,7 @@ exports.isIOS = isIOS;
31829
31832
  exports.isIOSByUA = isIOSByUA;
31830
31833
  exports.isMiniProgram = isMiniProgram;
31831
31834
  exports.isObject = isObject;
31835
+ exports.isOpenHarmony = isOpenHarmony;
31832
31836
  exports.isSimulatorCellPhone = isSimulatorCellPhone;
31833
31837
  exports.isString = isString;
31834
31838
  exports.isUniformStruct = isUniformStruct;