@galacean/effects-core 2.6.0-alpha.1 → 2.6.0-beta.0
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/events/types.d.ts +10 -0
- package/dist/index.js +15 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +15 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/events/types.d.ts
CHANGED
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.6.0-
|
|
6
|
+
* Version: v2.6.0-beta.0
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -1077,7 +1077,8 @@ function _inherits(subClass, superClass) {
|
|
|
1077
1077
|
JSONSceneVersion["3_1"] = "3.1";
|
|
1078
1078
|
JSONSceneVersion["3_2"] = "3.2";
|
|
1079
1079
|
JSONSceneVersion["3_3"] = "3.3";
|
|
1080
|
-
JSONSceneVersion["
|
|
1080
|
+
JSONSceneVersion["3_4"] = "3.4";
|
|
1081
|
+
JSONSceneVersion["LATEST"] = "3.4";
|
|
1081
1082
|
})(JSONSceneVersion || (JSONSceneVersion = {}));
|
|
1082
1083
|
|
|
1083
1084
|
/*********************************************/ /* 元素属性参数类型 */ /*********************************************/ /**
|
|
@@ -8300,8 +8301,8 @@ function initGLContext() {
|
|
|
8300
8301
|
copy(WebGLRenderingContext);
|
|
8301
8302
|
copy(WebGLRenderingContext.prototype);
|
|
8302
8303
|
} else {
|
|
8303
|
-
initErrors.push(// iOS 16 lockdown mode
|
|
8304
|
-
"iOS16 lockdown mode, WebGL Constants not in global");
|
|
8304
|
+
initErrors.push(isIOS() ? // iOS 16 lockdown mode
|
|
8305
|
+
"iOS16 lockdown mode, WebGL Constants not in global" : "WebGL Constants not in global, please check your environment");
|
|
8305
8306
|
}
|
|
8306
8307
|
if (!initErrors.length && !("HALF_FLOAT" in glContext)) {
|
|
8307
8308
|
// @ts-expect-error set default value
|
|
@@ -8910,7 +8911,9 @@ function _loadVideo() {
|
|
|
8910
8911
|
return [
|
|
8911
8912
|
2,
|
|
8912
8913
|
new Promise(function(resolve, reject) {
|
|
8913
|
-
var pending = video.play()
|
|
8914
|
+
var pending = video.play().catch(function(e) {
|
|
8915
|
+
reject(e);
|
|
8916
|
+
});
|
|
8914
8917
|
if (pending) {
|
|
8915
8918
|
void pending.then(function() {
|
|
8916
8919
|
return resolve(video);
|
|
@@ -23976,6 +23979,7 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
|
|
|
23976
23979
|
* 暂停合成的播放
|
|
23977
23980
|
*/ _proto.pause = function pause() {
|
|
23978
23981
|
this.paused = true;
|
|
23982
|
+
this.emit("pause");
|
|
23979
23983
|
};
|
|
23980
23984
|
/**
|
|
23981
23985
|
*
|
|
@@ -23994,6 +23998,9 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
|
|
|
23994
23998
|
*/ _proto.gotoAndPlay = function gotoAndPlay(time) {
|
|
23995
23999
|
this.setTime(time);
|
|
23996
24000
|
this.resume();
|
|
24001
|
+
this.emit("play", {
|
|
24002
|
+
time: time
|
|
24003
|
+
});
|
|
23997
24004
|
};
|
|
23998
24005
|
/**
|
|
23999
24006
|
* 跳转合成到指定时间并暂停
|
|
@@ -24028,7 +24035,7 @@ var LateUpdateTickData = /*#__PURE__*/ function(TickData) {
|
|
|
24028
24035
|
this.forwardTime(time + this.startTime);
|
|
24029
24036
|
this.setSpeed(speed);
|
|
24030
24037
|
if (pause) {
|
|
24031
|
-
this.
|
|
24038
|
+
this.paused = true;
|
|
24032
24039
|
}
|
|
24033
24040
|
this.emit("goto", {
|
|
24034
24041
|
time: time
|
|
@@ -31039,7 +31046,7 @@ function getStandardSpriteContent(sprite, transform) {
|
|
|
31039
31046
|
return ret;
|
|
31040
31047
|
}
|
|
31041
31048
|
|
|
31042
|
-
var version$1 = "2.6.0-
|
|
31049
|
+
var version$1 = "2.6.0-beta.0";
|
|
31043
31050
|
var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
|
|
31044
31051
|
var standardVersion = /^(\d+)\.(\d+)$/;
|
|
31045
31052
|
var reverseParticle = false;
|
|
@@ -34289,7 +34296,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem);
|
|
|
34289
34296
|
registerPlugin("particle", ParticleLoader, exports.VFXItem);
|
|
34290
34297
|
registerPlugin("cal", CalculateLoader, exports.VFXItem);
|
|
34291
34298
|
registerPlugin("interact", InteractLoader, exports.VFXItem);
|
|
34292
|
-
var version = "2.6.0-
|
|
34299
|
+
var version = "2.6.0-beta.0";
|
|
34293
34300
|
logger.info("Core version: " + version + ".");
|
|
34294
34301
|
|
|
34295
34302
|
exports.AbstractPlugin = AbstractPlugin;
|