@galacean/effects-core 2.10.0 → 2.10.1
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/engine.d.ts +8 -0
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/engine.d.ts
CHANGED
|
@@ -27,6 +27,10 @@ export interface EngineOptions extends WebGLContextAttributes {
|
|
|
27
27
|
pixelRatio?: number;
|
|
28
28
|
notifyTouch?: boolean;
|
|
29
29
|
interactive?: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Engine 是否拥有 canvas 的生命周期,默认 true。
|
|
32
|
+
*/
|
|
33
|
+
ownsCanvas?: boolean;
|
|
30
34
|
/**
|
|
31
35
|
* 是否不处理 WebGL 上下文丢失恢复。
|
|
32
36
|
* - `true`(默认):上传 GPU 后释放 CPU 端源数据以节省内存;上下文丢失后不自动恢复,
|
|
@@ -117,6 +121,10 @@ export declare class Engine extends EventEmitter<EngineEvent> implements Disposa
|
|
|
117
121
|
* 是否不处理上下文丢失恢复(构造期配置,默认 true)
|
|
118
122
|
*/
|
|
119
123
|
doNotHandleContextLost: boolean;
|
|
124
|
+
/**
|
|
125
|
+
* Engine 是否拥有 canvas 的生命周期
|
|
126
|
+
*/
|
|
127
|
+
readonly ownsCanvas: boolean;
|
|
120
128
|
/**
|
|
121
129
|
* WebGL 上下文是否处于丢失状态
|
|
122
130
|
*/
|
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.10.
|
|
6
|
+
* Version: v2.10.1
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -37854,7 +37854,7 @@ function getStandardSpriteContent(sprite, transform) {
|
|
|
37854
37854
|
return ret;
|
|
37855
37855
|
}
|
|
37856
37856
|
|
|
37857
|
-
var version$1 = "2.10.
|
|
37857
|
+
var version$1 = "2.10.1";
|
|
37858
37858
|
var v0 = /^(\d+)\.(\d+)\.(\d+)(-(\w+)\.\d+)?$/;
|
|
37859
37859
|
var standardVersion = /^(\d+)\.(\d+)$/;
|
|
37860
37860
|
var reverseParticle = false;
|
|
@@ -42252,6 +42252,8 @@ var DEFAULT_FPS = 60;
|
|
|
42252
42252
|
_this.canvas = canvas;
|
|
42253
42253
|
var _options_env;
|
|
42254
42254
|
_this.env = (_options_env = options == null ? void 0 : options.env) != null ? _options_env : "";
|
|
42255
|
+
var _options_ownsCanvas;
|
|
42256
|
+
_this.ownsCanvas = (_options_ownsCanvas = options == null ? void 0 : options.ownsCanvas) != null ? _options_ownsCanvas : true;
|
|
42255
42257
|
var _options_doNotHandleContextLost;
|
|
42256
42258
|
_this.doNotHandleContextLost = (_options_doNotHandleContextLost = options == null ? void 0 : options.doNotHandleContextLost) != null ? _options_doNotHandleContextLost : true;
|
|
42257
42259
|
var _options_name;
|
|
@@ -43083,7 +43085,7 @@ registerPlugin("text", TextLoader);
|
|
|
43083
43085
|
registerPlugin("sprite", SpriteLoader);
|
|
43084
43086
|
registerPlugin("particle", ParticleLoader);
|
|
43085
43087
|
registerPlugin("interact", InteractLoader);
|
|
43086
|
-
var version = "2.10.
|
|
43088
|
+
var version = "2.10.1";
|
|
43087
43089
|
logger.info("Core version: " + version + ".");
|
|
43088
43090
|
|
|
43089
43091
|
exports.ATLAS_SIZE = ATLAS_SIZE;
|