@galacean/effects-threejs 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 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: v1.0.0
6
+ * Version: v1.0.1
7
7
  */
8
8
 
9
9
  'use strict';
@@ -9479,6 +9479,7 @@ var Transform = /** @class */ (function () {
9479
9479
  */
9480
9480
  Transform.prototype.rotateByQuat = function (quat) {
9481
9481
  quatMultiply(this.quat, this.quat, quat);
9482
+ rotationFromMat3(this.rotation, mat3FromQuat(tempMat3$3, quat));
9482
9483
  this.dirtyFlags.localData = true;
9483
9484
  this.dispatchValueChange();
9484
9485
  };
@@ -10305,7 +10306,7 @@ var PluginSystem = /** @class */ (function () {
10305
10306
  .map(function (name) {
10306
10307
  var CTRL = pluginLoaderMap[name];
10307
10308
  if (!CTRL) {
10308
- throw new Error("plugin '".concat(name, "' not found"));
10309
+ throw new Error("plugin '".concat(name, "' not found.") + getPluginUsageInfo(name));
10309
10310
  }
10310
10311
  var loader = new CTRL();
10311
10312
  loader.name = name;
@@ -10377,6 +10378,23 @@ var PluginSystem = /** @class */ (function () {
10377
10378
  };
10378
10379
  return PluginSystem;
10379
10380
  }());
10381
+ var pluginInfoMap = {
10382
+ 'alipay-downgrade': '@galacean/effects-plugin-alipay-downgrade',
10383
+ 'editor-gizmo': '@galacean/effects-plugin-editor-gizmo',
10384
+ 'tree': '@galacean/effects-plugin-model',
10385
+ 'model': '@galacean/effects-plugin-model',
10386
+ 'orientation-transformer': '@galacean/effects-plugin-orientation-transformer',
10387
+ 'spine': '@galacean/effects-plugin-spine',
10388
+ };
10389
+ function getPluginUsageInfo(name) {
10390
+ var info = pluginInfoMap[name];
10391
+ if (info) {
10392
+ return "\nInstall Plugin: npm i ".concat(info, "@latest --save\nImport Plugin: import '").concat(info, "'");
10393
+ }
10394
+ else {
10395
+ return '';
10396
+ }
10397
+ }
10380
10398
 
10381
10399
  /**
10382
10400
  * 抽象插件类
@@ -27554,9 +27572,9 @@ Geometry.create = function (engine, options) {
27554
27572
  Mesh.create = function (engine, props) {
27555
27573
  return new ThreeMesh(engine, props);
27556
27574
  };
27557
- var version = "1.0.0";
27575
+ var version = "1.0.1";
27558
27576
  console.info({
27559
- content: '[Galacean Effects THREEJS] version: ' + "1.0.0",
27577
+ content: '[Galacean Effects THREEJS] version: ' + "1.0.1",
27560
27578
  type: LOG_TYPE,
27561
27579
  });
27562
27580