@galacean/effects 0.0.1-alpha.3 → 1.0.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/index.js +9 -28
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +3 -3
- package/dist/index.mjs +9 -28
- package/dist/index.mjs.map +1 -1
- package/dist/player.d.ts +0 -12
- package/dist/weapp.js +8 -27
- package/dist/weapp.js.map +1 -1
- package/dist/weapp.mjs +8 -27
- package/dist/weapp.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime player for the web
|
|
4
4
|
* Author: Ant Group CO., Ltd.
|
|
5
5
|
* Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
|
|
6
|
-
* Version:
|
|
6
|
+
* Version: v1.0.0
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -25209,12 +25209,6 @@ var Composition = /** @class */ (function () {
|
|
|
25209
25209
|
enumerable: false,
|
|
25210
25210
|
configurable: true
|
|
25211
25211
|
});
|
|
25212
|
-
/**
|
|
25213
|
-
* 获取合成的时长
|
|
25214
|
-
*/
|
|
25215
|
-
Composition.prototype.getDuration = function () {
|
|
25216
|
-
return this.content.duration;
|
|
25217
|
-
};
|
|
25218
25212
|
Object.defineProperty(Composition.prototype, "isDestroyed", {
|
|
25219
25213
|
/**
|
|
25220
25214
|
* 获取销毁状态
|
|
@@ -25225,6 +25219,12 @@ var Composition = /** @class */ (function () {
|
|
|
25225
25219
|
enumerable: false,
|
|
25226
25220
|
configurable: true
|
|
25227
25221
|
});
|
|
25222
|
+
/**
|
|
25223
|
+
* 获取合成的时长
|
|
25224
|
+
*/
|
|
25225
|
+
Composition.prototype.getDuration = function () {
|
|
25226
|
+
return this.content.duration;
|
|
25227
|
+
};
|
|
25228
25228
|
/**
|
|
25229
25229
|
* 重新开始合成
|
|
25230
25230
|
*/
|
|
@@ -30878,25 +30878,6 @@ var Player = /** @class */ (function () {
|
|
|
30878
30878
|
});
|
|
30879
30879
|
}
|
|
30880
30880
|
};
|
|
30881
|
-
/**
|
|
30882
|
-
* 修改播放器的配置
|
|
30883
|
-
* @param config - 播放配置,当前仅支持修改合成播放速度
|
|
30884
|
-
*/
|
|
30885
|
-
Player.prototype.config = function (config) {
|
|
30886
|
-
var singleComp = typeof config.compositionName === 'string';
|
|
30887
|
-
if ('speed' in config) {
|
|
30888
|
-
var speed_1 = +(config.speed || 1);
|
|
30889
|
-
if (singleComp) {
|
|
30890
|
-
var comp = this.compositions.find(function (comp) { return comp.name === config.compositionName; });
|
|
30891
|
-
if (comp) {
|
|
30892
|
-
comp.speed = speed_1;
|
|
30893
|
-
}
|
|
30894
|
-
}
|
|
30895
|
-
else {
|
|
30896
|
-
this.compositions.forEach(function (comp) { return (comp.speed = speed_1); });
|
|
30897
|
-
}
|
|
30898
|
-
}
|
|
30899
|
-
};
|
|
30900
30881
|
/**
|
|
30901
30882
|
* 清空 canvas 的画面
|
|
30902
30883
|
* @param immediate - 如果立即清理,当前画面将会消失,如果 player 还有合成在渲染,可能出现闪烁
|
|
@@ -31143,9 +31124,9 @@ Renderer.create = function (canvas, framework, renderOptions) {
|
|
|
31143
31124
|
Engine.create = function (gl) {
|
|
31144
31125
|
return new GLEngine(gl);
|
|
31145
31126
|
};
|
|
31146
|
-
var version = "0.0
|
|
31127
|
+
var version = "1.0.0";
|
|
31147
31128
|
console.info({
|
|
31148
|
-
content: '[Galacean Effects Player] version: ' + "0.0
|
|
31129
|
+
content: '[Galacean Effects Player] version: ' + "1.0.0",
|
|
31149
31130
|
type: LOG_TYPE,
|
|
31150
31131
|
});
|
|
31151
31132
|
|