@galacean/effects-threejs 0.0.1-alpha.2 → 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/README.md +15 -17
- package/dist/index.js +14 -10
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +4 -4
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +14 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Description: Galacean Effects runtime threejs plugin 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
|
import * as THREE from 'three';
|
|
@@ -15258,7 +15258,7 @@ var SpriteGroup = /** @class */ (function () {
|
|
|
15258
15258
|
for (var i = startIndex; i <= endIndex; i++) {
|
|
15259
15259
|
var item = items[i];
|
|
15260
15260
|
// 不可见的元素跳过 不参与合并
|
|
15261
|
-
if (!init && (!item.
|
|
15261
|
+
if (!init && (!item.started || item.lifetime < 0)) {
|
|
15262
15262
|
continue;
|
|
15263
15263
|
}
|
|
15264
15264
|
if (!isSprite(item)) {
|
|
@@ -19463,6 +19463,10 @@ var CalculateVFXItem = /** @class */ (function (_super) {
|
|
|
19463
19463
|
CalculateVFXItem.prototype.setScale = function (x, y, z) {
|
|
19464
19464
|
this.content.startSize = [x, y, z];
|
|
19465
19465
|
};
|
|
19466
|
+
CalculateVFXItem.prototype.scale = function (x, y, z) {
|
|
19467
|
+
var startSize = this.content.startSize.slice();
|
|
19468
|
+
this.content.startSize = [x * startSize[0], y * startSize[1], z * startSize[2]];
|
|
19469
|
+
};
|
|
19466
19470
|
CalculateVFXItem.prototype.getHitTestParams = function (force) {
|
|
19467
19471
|
};
|
|
19468
19472
|
CalculateVFXItem.prototype.getRenderData = function () {
|
|
@@ -25203,12 +25207,6 @@ var Composition = /** @class */ (function () {
|
|
|
25203
25207
|
enumerable: false,
|
|
25204
25208
|
configurable: true
|
|
25205
25209
|
});
|
|
25206
|
-
/**
|
|
25207
|
-
* 获取合成的时长
|
|
25208
|
-
*/
|
|
25209
|
-
Composition.prototype.getDuration = function () {
|
|
25210
|
-
return this.content.duration;
|
|
25211
|
-
};
|
|
25212
25210
|
Object.defineProperty(Composition.prototype, "isDestroyed", {
|
|
25213
25211
|
/**
|
|
25214
25212
|
* 获取销毁状态
|
|
@@ -25219,6 +25217,12 @@ var Composition = /** @class */ (function () {
|
|
|
25219
25217
|
enumerable: false,
|
|
25220
25218
|
configurable: true
|
|
25221
25219
|
});
|
|
25220
|
+
/**
|
|
25221
|
+
* 获取合成的时长
|
|
25222
|
+
*/
|
|
25223
|
+
Composition.prototype.getDuration = function () {
|
|
25224
|
+
return this.content.duration;
|
|
25225
|
+
};
|
|
25222
25226
|
/**
|
|
25223
25227
|
* 重新开始合成
|
|
25224
25228
|
*/
|
|
@@ -27526,9 +27530,9 @@ Geometry.create = function (engine, options) {
|
|
|
27526
27530
|
Mesh.create = function (engine, props) {
|
|
27527
27531
|
return new ThreeMesh(engine, props);
|
|
27528
27532
|
};
|
|
27529
|
-
var version = "0.0
|
|
27533
|
+
var version = "1.0.0";
|
|
27530
27534
|
console.info({
|
|
27531
|
-
content: '[Galacean Effects THREEJS] version: ' + "0.0
|
|
27535
|
+
content: '[Galacean Effects THREEJS] version: ' + "1.0.0",
|
|
27532
27536
|
type: LOG_TYPE,
|
|
27533
27537
|
});
|
|
27534
27538
|
|