@galacean/effects-core 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 +7 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +7 -4
- package/dist/index.mjs.map +1 -1
- package/dist/utils/device.d.ts +1 -0
- package/package.json +1 -1
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.
|
|
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();
|
|
@@ -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.
|
|
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;
|