@galacean/effects-plugin-editor-gizmo 2.0.0-alpha.21 → 2.0.0-alpha.23

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.21
6
+ * Version: v2.0.0-alpha.23
7
7
  */
8
8
 
9
9
  'use strict';
@@ -3055,48 +3055,42 @@ exports.GizmoComponent = /*#__PURE__*/ function(ItemBehaviour) {
3055
3055
  if (targetItem.type === "7" || !gizmoPlugin) {
3056
3056
  return;
3057
3057
  }
3058
- var gizmoVFXItemList = composition.loaderData.gizmoTarget[targetItem.id];
3059
- if (gizmoVFXItemList && gizmoVFXItemList.length > 0) {
3060
- for(var _iterator2 = _create_for_of_iterator_helper_loose(gizmoVFXItemList), _step2; !(_step2 = _iterator2()).done;){
3061
- var gizmoVFXItem = _step2.value;
3062
- var gizmoSubType = gizmoVFXItem.getComponent(GizmoComponent).subType;
3063
- switch(gizmoSubType){
3064
- case exports.GizmoSubType.particleEmitter:
3065
- this.createParticleContent(targetItem, gizmoPlugin.meshToAdd);
3066
- break;
3067
- case exports.GizmoSubType.modelWireframe:
3068
- this.needCreateModelContent = true;
3069
- break;
3070
- case exports.GizmoSubType.box:
3071
- case exports.GizmoSubType.sphere:
3072
- case exports.GizmoSubType.cylinder:
3073
- case exports.GizmoSubType.cone:
3074
- case exports.GizmoSubType.torus:
3075
- case exports.GizmoSubType.sprite:
3076
- case exports.GizmoSubType.frustum:
3077
- case exports.GizmoSubType.directionLight:
3078
- case exports.GizmoSubType.pointLight:
3079
- case exports.GizmoSubType.spotLight:
3080
- case exports.GizmoSubType.floorGrid:
3081
- this.createBasicContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType);
3082
- break;
3083
- case exports.GizmoSubType.camera:
3084
- case exports.GizmoSubType.light:
3085
- this.createBasicContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType, iconTextures);
3086
- break;
3087
- case exports.GizmoSubType.rotation:
3088
- case exports.GizmoSubType.scale:
3089
- case exports.GizmoSubType.translation:
3090
- this.createCombinationContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType);
3091
- break;
3092
- case exports.GizmoSubType.viewHelper:
3093
- this.createCombinationContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType, iconTextures);
3094
- break;
3095
- case exports.GizmoSubType.boundingBox:
3096
- this.createBoundingBoxContent(targetItem, gizmoPlugin.meshToAdd);
3097
- break;
3098
- }
3099
- }
3058
+ var gizmoSubType = this.subType;
3059
+ switch(gizmoSubType){
3060
+ case exports.GizmoSubType.particleEmitter:
3061
+ this.createParticleContent(targetItem, gizmoPlugin.meshToAdd);
3062
+ break;
3063
+ case exports.GizmoSubType.modelWireframe:
3064
+ this.needCreateModelContent = true;
3065
+ break;
3066
+ case exports.GizmoSubType.box:
3067
+ case exports.GizmoSubType.sphere:
3068
+ case exports.GizmoSubType.cylinder:
3069
+ case exports.GizmoSubType.cone:
3070
+ case exports.GizmoSubType.torus:
3071
+ case exports.GizmoSubType.sprite:
3072
+ case exports.GizmoSubType.frustum:
3073
+ case exports.GizmoSubType.directionLight:
3074
+ case exports.GizmoSubType.pointLight:
3075
+ case exports.GizmoSubType.spotLight:
3076
+ case exports.GizmoSubType.floorGrid:
3077
+ this.createBasicContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType);
3078
+ break;
3079
+ case exports.GizmoSubType.camera:
3080
+ case exports.GizmoSubType.light:
3081
+ this.createBasicContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType, iconTextures);
3082
+ break;
3083
+ case exports.GizmoSubType.rotation:
3084
+ case exports.GizmoSubType.scale:
3085
+ case exports.GizmoSubType.translation:
3086
+ this.createCombinationContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType);
3087
+ break;
3088
+ case exports.GizmoSubType.viewHelper:
3089
+ this.createCombinationContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType, iconTextures);
3090
+ break;
3091
+ case exports.GizmoSubType.boundingBox:
3092
+ this.createBoundingBoxContent(targetItem, gizmoPlugin.meshToAdd);
3093
+ break;
3100
3094
  }
3101
3095
  composition.loaderData.gizmoItems.push(this.item);
3102
3096
  };
@@ -3701,7 +3695,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
3701
3695
  }(EFFECTS.AbstractPlugin);
3702
3696
 
3703
3697
  EFFECTS.registerPlugin("editor-gizmo", EditorGizmoPlugin, EFFECTS.VFXItem);
3704
- var version = "2.0.0-alpha.21";
3698
+ var version = "2.0.0-alpha.23";
3705
3699
  EFFECTS.logger.info("Plugin editor gizmo version: " + version + ".");
3706
3700
  if (version !== EFFECTS__namespace.version) {
3707
3701
  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!");