@galacean/effects-plugin-editor-gizmo 2.0.0-alpha.16 → 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.mjs 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.16
6
+ * Version: v2.0.0-alpha.17
7
7
  */
8
8
 
9
9
  import { math, DestroyOptions, glContext, ShaderType, GLSLVersion, Material, Mesh, GLGeometry, createShaderWithMarcos, Texture, noop, Geometry, Transform, effectsClass, ParticleSystemRenderer, RendererComponent, assertExist, ItemBehaviour, HitTestType, spec, removeItem, RenderPass, RenderPassPriorityPostprocess, TextureLoadAction, RenderPassPriorityPrepare, AbstractPlugin, registerPlugin, VFXItem, logger, version as version$1 } from '@galacean/effects';
@@ -3384,21 +3384,21 @@ var GizmoComponent = /*#__PURE__*/ function(ItemBehaviour) {
3384
3384
  ItemBehaviour.prototype.fromData.call(this, data);
3385
3385
  var item = this.item;
3386
3386
  item.duration = 999;
3387
- var opt = data.options;
3388
- this.target = opt.target;
3389
- this.subType = opt.subType;
3390
- this.renderMode = opt.renderMode || this.getDefaultRenderMode();
3391
- this.size = opt.size || this.getDefaultSize();
3392
- this.depthTest = opt.depthTest;
3393
- var c = opt.color || [
3387
+ 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 ? [
3394
3388
  255,
3395
3389
  255,
3396
3390
  255
3397
- ];
3391
+ ] : _data_options_color;
3392
+ this.target = target;
3393
+ this.subType = subType;
3394
+ this.renderMode = renderMode || this.getDefaultRenderMode();
3395
+ this.size = size || this.getDefaultSize();
3396
+ this.depthTest = depthTest;
3397
+ var r = color[0], g = color[1], b = color[2];
3398
3398
  this.color = [
3399
- c[0] / 255,
3400
- c[1] / 255,
3401
- c[2] / 255
3399
+ r / 255,
3400
+ g / 255,
3401
+ b / 255
3402
3402
  ];
3403
3403
  if (data) {
3404
3404
  item.transform = new Transform(data.transform);
@@ -3677,7 +3677,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
3677
3677
  }(AbstractPlugin);
3678
3678
 
3679
3679
  registerPlugin("editor-gizmo", EditorGizmoPlugin, VFXItem);
3680
- var version = "2.0.0-alpha.16";
3680
+ var version = "2.0.0-alpha.17";
3681
3681
  logger.info("plugin editor gizmo version: " + version);
3682
3682
  if (version !== version$1) {
3683
3683
  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!");