@galacean/effects-threejs 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/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: v0.0.1-alpha.3
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
  * 抽象插件类
@@ -25231,12 +25249,6 @@ var Composition = /** @class */ (function () {
25231
25249
  enumerable: false,
25232
25250
  configurable: true
25233
25251
  });
25234
- /**
25235
- * 获取合成的时长
25236
- */
25237
- Composition.prototype.getDuration = function () {
25238
- return this.content.duration;
25239
- };
25240
25252
  Object.defineProperty(Composition.prototype, "isDestroyed", {
25241
25253
  /**
25242
25254
  * 获取销毁状态
@@ -25247,6 +25259,12 @@ var Composition = /** @class */ (function () {
25247
25259
  enumerable: false,
25248
25260
  configurable: true
25249
25261
  });
25262
+ /**
25263
+ * 获取合成的时长
25264
+ */
25265
+ Composition.prototype.getDuration = function () {
25266
+ return this.content.duration;
25267
+ };
25250
25268
  /**
25251
25269
  * 重新开始合成
25252
25270
  */
@@ -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 = "0.0.1-alpha.3";
27575
+ var version = "1.0.1";
27558
27576
  console.info({
27559
- content: '[Galacean Effects THREEJS] version: ' + "0.0.1-alpha.3",
27577
+ content: '[Galacean Effects THREEJS] version: ' + "1.0.1",
27560
27578
  type: LOG_TYPE,
27561
27579
  });
27562
27580