@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.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: v0.0.1-alpha.3
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
  * 抽象插件类
@@ -25207,12 +25225,6 @@ var Composition = /** @class */ (function () {
25207
25225
  enumerable: false,
25208
25226
  configurable: true
25209
25227
  });
25210
- /**
25211
- * 获取合成的时长
25212
- */
25213
- Composition.prototype.getDuration = function () {
25214
- return this.content.duration;
25215
- };
25216
25228
  Object.defineProperty(Composition.prototype, "isDestroyed", {
25217
25229
  /**
25218
25230
  * 获取销毁状态
@@ -25223,6 +25235,12 @@ var Composition = /** @class */ (function () {
25223
25235
  enumerable: false,
25224
25236
  configurable: true
25225
25237
  });
25238
+ /**
25239
+ * 获取合成的时长
25240
+ */
25241
+ Composition.prototype.getDuration = function () {
25242
+ return this.content.duration;
25243
+ };
25226
25244
  /**
25227
25245
  * 重新开始合成
25228
25246
  */
@@ -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 = "0.0.1-alpha.3";
27551
+ var version = "1.0.1";
27534
27552
  console.info({
27535
- content: '[Galacean Effects THREEJS] version: ' + "0.0.1-alpha.3",
27553
+ content: '[Galacean Effects THREEJS] version: ' + "1.0.1",
27536
27554
  type: LOG_TYPE,
27537
27555
  });
27538
27556