@galacean/effects-plugin-editor-gizmo 2.0.0-alpha.15 → 2.0.0-alpha.17

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 player editor gizmo plugin
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 茂安,旻诺
6
- * Version: v2.0.0-alpha.15
6
+ * Version: v2.0.0-alpha.17
7
7
  */
8
8
 
9
9
  'use strict';
@@ -3388,21 +3388,21 @@ exports.GizmoComponent = /*#__PURE__*/ function(ItemBehaviour) {
3388
3388
  ItemBehaviour.prototype.fromData.call(this, data);
3389
3389
  var item = this.item;
3390
3390
  item.duration = 999;
3391
- var opt = data.options;
3392
- this.target = opt.target;
3393
- this.subType = opt.subType;
3394
- this.renderMode = opt.renderMode || this.getDefaultRenderMode();
3395
- this.size = opt.size || this.getDefaultSize();
3396
- this.depthTest = opt.depthTest;
3397
- var c = opt.color || [
3391
+ var _data_options = data.options, target = _data_options.target, subType = _data_options.subType, renderMode = _data_options.renderMode, size = _data_options.size, depthTest = _data_options.depthTest, _data_options_color = _data_options.color, color = _data_options_color === void 0 ? [
3398
3392
  255,
3399
3393
  255,
3400
3394
  255
3401
- ];
3395
+ ] : _data_options_color;
3396
+ this.target = target;
3397
+ this.subType = subType;
3398
+ this.renderMode = renderMode || this.getDefaultRenderMode();
3399
+ this.size = size || this.getDefaultSize();
3400
+ this.depthTest = depthTest;
3401
+ var r = color[0], g = color[1], b = color[2];
3402
3402
  this.color = [
3403
- c[0] / 255,
3404
- c[1] / 255,
3405
- c[2] / 255
3403
+ r / 255,
3404
+ g / 255,
3405
+ b / 255
3406
3406
  ];
3407
3407
  if (data) {
3408
3408
  item.transform = new effects.Transform(data.transform);
@@ -3681,7 +3681,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
3681
3681
  }(effects.AbstractPlugin);
3682
3682
 
3683
3683
  effects.registerPlugin("editor-gizmo", EditorGizmoPlugin, effects.VFXItem);
3684
- var version = "2.0.0-alpha.15";
3684
+ var version = "2.0.0-alpha.17";
3685
3685
  effects.logger.info("plugin editor gizmo version: " + version);
3686
3686
  if (version !== effects.version) {
3687
3687
  console.error("注意:请统一 Editor Gizmo 插件与 Player 版本,不统一的版本混用会有不可预知的后果!", "\nAttention: Please ensure the Editor Gizmo plugin is synchronized with the Player version. Mixing and matching incompatible versions may result in unpredictable consequences!");