@galacean/effects-plugin-editor-gizmo 2.0.0-alpha.10 → 2.0.0-alpha.12

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.10
6
+ * Version: v2.0.0-alpha.12
7
7
  */
8
8
 
9
9
  import { math, DestroyOptions, glContext, ShaderType, GLSLVersion, Material, Mesh, GLGeometry, createShaderWithMarcos, Texture, noop, Geometry, Transform, RendererComponent, assertExist, ItemBehaviour, HitTestType, spec, VFXItem, removeItem, RenderPass, RenderPassPriorityPostprocess, TextureLoadAction, RenderPassPriorityPrepare, AbstractPlugin, registerPlugin, logger } from '@galacean/effects';
@@ -3236,15 +3236,17 @@ var BoundingType;
3236
3236
  */ _proto.getHitTestParams = function getHitTestParams() {
3237
3237
  var boundingMap = this.boundingMap;
3238
3238
  if (boundingMap.size > 0) {
3239
+ var _this_getComponent;
3239
3240
  var boundingKeys = boundingMap.keys();
3240
3241
  var worldMat4;
3241
3242
  worldMat4 = this.transform.getWorldMatrix();
3242
- if (this.targetItem) {
3243
+ var targetItem = (_this_getComponent = this.getComponent(GizmoComponent)) == null ? void 0 : _this_getComponent.targetItem;
3244
+ if (targetItem) {
3243
3245
  //const targetTransform = this.targetItem.transform.clone();
3244
3246
  var worldPos = new Vector3();
3245
3247
  var worldQuat = new Quaternion();
3246
3248
  var worldSca = new Vector3(1, 1, 1);
3247
- this.targetItem.transform.assignWorldTRS(worldPos, worldQuat);
3249
+ targetItem.transform.assignWorldTRS(worldPos, worldQuat);
3248
3250
  var targetTransform = new Transform({
3249
3251
  position: worldPos,
3250
3252
  quat: worldQuat,
@@ -3698,7 +3700,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
3698
3700
  }(AbstractPlugin);
3699
3701
 
3700
3702
  registerPlugin("editor-gizmo", EditorGizmoPlugin, GizmoVFXItem);
3701
- var version = "2.0.0-alpha.10";
3703
+ var version = "2.0.0-alpha.12";
3702
3704
  logger.info("plugin editor gizmo version: " + version);
3703
3705
 
3704
3706
  export { DirectionLightData, GeometryType, GizmoSubType, GizmoVFXItem, createGeometry, version };