@galacean/effects-core 1.0.0 → 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/index.js +20 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +20 -2
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
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: v1.0.
|
|
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
|
* 抽象插件类
|