@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.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: v1.0.0
6
+ * Version: v1.0.1
7
7
  */
8
8
 
9
9
  import * as THREE from 'three';
@@ -9455,6 +9455,7 @@ var Transform = /** @class */ (function () {
9455
9455
  */
9456
9456
  Transform.prototype.rotateByQuat = function (quat) {
9457
9457
  quatMultiply(this.quat, this.quat, quat);
9458
+ rotationFromMat3(this.rotation, mat3FromQuat(tempMat3$3, quat));
9458
9459
  this.dirtyFlags.localData = true;
9459
9460
  this.dispatchValueChange();
9460
9461
  };
@@ -10281,7 +10282,7 @@ var PluginSystem = /** @class */ (function () {
10281
10282
  .map(function (name) {
10282
10283
  var CTRL = pluginLoaderMap[name];
10283
10284
  if (!CTRL) {
10284
- throw new Error("plugin '".concat(name, "' not found"));
10285
+ throw new Error("plugin '".concat(name, "' not found.") + getPluginUsageInfo(name));
10285
10286
  }
10286
10287
  var loader = new CTRL();
10287
10288
  loader.name = name;
@@ -10353,6 +10354,23 @@ var PluginSystem = /** @class */ (function () {
10353
10354
  };
10354
10355
  return PluginSystem;
10355
10356
  }());
10357
+ var pluginInfoMap = {
10358
+ 'alipay-downgrade': '@galacean/effects-plugin-alipay-downgrade',
10359
+ 'editor-gizmo': '@galacean/effects-plugin-editor-gizmo',
10360
+ 'tree': '@galacean/effects-plugin-model',
10361
+ 'model': '@galacean/effects-plugin-model',
10362
+ 'orientation-transformer': '@galacean/effects-plugin-orientation-transformer',
10363
+ 'spine': '@galacean/effects-plugin-spine',
10364
+ };
10365
+ function getPluginUsageInfo(name) {
10366
+ var info = pluginInfoMap[name];
10367
+ if (info) {
10368
+ return "\nInstall Plugin: npm i ".concat(info, "@latest --save\nImport Plugin: import '").concat(info, "'");
10369
+ }
10370
+ else {
10371
+ return '';
10372
+ }
10373
+ }
10356
10374
 
10357
10375
  /**
10358
10376
  * 抽象插件类
@@ -27530,9 +27548,9 @@ Geometry.create = function (engine, options) {
27530
27548
  Mesh.create = function (engine, props) {
27531
27549
  return new ThreeMesh(engine, props);
27532
27550
  };
27533
- var version = "1.0.0";
27551
+ var version = "1.0.1";
27534
27552
  console.info({
27535
- content: '[Galacean Effects THREEJS] version: ' + "1.0.0",
27553
+ content: '[Galacean Effects THREEJS] version: ' + "1.0.1",
27536
27554
  type: LOG_TYPE,
27537
27555
  });
27538
27556