@galacean/effects-core 0.0.1-alpha.3 → 1.0.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/composition.d.ts +4 -4
- package/dist/index.js +26 -8
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +26 -8
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/composition.d.ts
CHANGED
|
@@ -181,14 +181,14 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
181
181
|
* 获取合成当前时间
|
|
182
182
|
*/
|
|
183
183
|
get time(): number;
|
|
184
|
-
/**
|
|
185
|
-
* 获取合成的时长
|
|
186
|
-
*/
|
|
187
|
-
getDuration(): number;
|
|
188
184
|
/**
|
|
189
185
|
* 获取销毁状态
|
|
190
186
|
*/
|
|
191
187
|
get isDestroyed(): boolean;
|
|
188
|
+
/**
|
|
189
|
+
* 获取合成的时长
|
|
190
|
+
*/
|
|
191
|
+
getDuration(): number;
|
|
192
192
|
/**
|
|
193
193
|
* 重新开始合成
|
|
194
194
|
*/
|
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:
|
|
6
|
+
* Version: v1.0.1
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -9457,6 +9457,7 @@ var Transform = /** @class */ (function () {
|
|
|
9457
9457
|
*/
|
|
9458
9458
|
Transform.prototype.rotateByQuat = function (quat) {
|
|
9459
9459
|
quatMultiply(this.quat, this.quat, quat);
|
|
9460
|
+
rotationFromMat3(this.rotation, mat3FromQuat(tempMat3$3, quat));
|
|
9460
9461
|
this.dirtyFlags.localData = true;
|
|
9461
9462
|
this.dispatchValueChange();
|
|
9462
9463
|
};
|
|
@@ -10283,7 +10284,7 @@ var PluginSystem = /** @class */ (function () {
|
|
|
10283
10284
|
.map(function (name) {
|
|
10284
10285
|
var CTRL = pluginLoaderMap[name];
|
|
10285
10286
|
if (!CTRL) {
|
|
10286
|
-
throw new Error("plugin '".concat(name, "' not found"));
|
|
10287
|
+
throw new Error("plugin '".concat(name, "' not found.") + getPluginUsageInfo(name));
|
|
10287
10288
|
}
|
|
10288
10289
|
var loader = new CTRL();
|
|
10289
10290
|
loader.name = name;
|
|
@@ -10355,6 +10356,23 @@ var PluginSystem = /** @class */ (function () {
|
|
|
10355
10356
|
};
|
|
10356
10357
|
return PluginSystem;
|
|
10357
10358
|
}());
|
|
10359
|
+
var pluginInfoMap = {
|
|
10360
|
+
'alipay-downgrade': '@galacean/effects-plugin-alipay-downgrade',
|
|
10361
|
+
'editor-gizmo': '@galacean/effects-plugin-editor-gizmo',
|
|
10362
|
+
'tree': '@galacean/effects-plugin-model',
|
|
10363
|
+
'model': '@galacean/effects-plugin-model',
|
|
10364
|
+
'orientation-transformer': '@galacean/effects-plugin-orientation-transformer',
|
|
10365
|
+
'spine': '@galacean/effects-plugin-spine',
|
|
10366
|
+
};
|
|
10367
|
+
function getPluginUsageInfo(name) {
|
|
10368
|
+
var info = pluginInfoMap[name];
|
|
10369
|
+
if (info) {
|
|
10370
|
+
return "\nInstall Plugin: npm i ".concat(info, "@latest --save\nImport Plugin: import '").concat(info, "'");
|
|
10371
|
+
}
|
|
10372
|
+
else {
|
|
10373
|
+
return '';
|
|
10374
|
+
}
|
|
10375
|
+
}
|
|
10358
10376
|
|
|
10359
10377
|
/**
|
|
10360
10378
|
* 抽象插件类
|
|
@@ -25209,12 +25227,6 @@ var Composition = /** @class */ (function () {
|
|
|
25209
25227
|
enumerable: false,
|
|
25210
25228
|
configurable: true
|
|
25211
25229
|
});
|
|
25212
|
-
/**
|
|
25213
|
-
* 获取合成的时长
|
|
25214
|
-
*/
|
|
25215
|
-
Composition.prototype.getDuration = function () {
|
|
25216
|
-
return this.content.duration;
|
|
25217
|
-
};
|
|
25218
25230
|
Object.defineProperty(Composition.prototype, "isDestroyed", {
|
|
25219
25231
|
/**
|
|
25220
25232
|
* 获取销毁状态
|
|
@@ -25225,6 +25237,12 @@ var Composition = /** @class */ (function () {
|
|
|
25225
25237
|
enumerable: false,
|
|
25226
25238
|
configurable: true
|
|
25227
25239
|
});
|
|
25240
|
+
/**
|
|
25241
|
+
* 获取合成的时长
|
|
25242
|
+
*/
|
|
25243
|
+
Composition.prototype.getDuration = function () {
|
|
25244
|
+
return this.content.duration;
|
|
25245
|
+
};
|
|
25228
25246
|
/**
|
|
25229
25247
|
* 重新开始合成
|
|
25230
25248
|
*/
|