@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.
@@ -54,7 +54,6 @@ export declare class GizmoVFXItem extends VFXItem<Mesh | undefined> {
54
54
  subType: GizmoSubType;
55
55
  size: any;
56
56
  contents?: Map<Mesh, Transform>;
57
- targetItem?: VFXItem<any>;
58
57
  boundingMap: Map<string, GizmoItemBounding>;
59
58
  hitBounding?: {
60
59
  key: string;
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.10
6
+ * Version: v2.0.0-alpha.12
7
7
  */
8
8
 
9
9
  'use strict';
@@ -3240,15 +3240,17 @@ var BoundingType;
3240
3240
  */ _proto.getHitTestParams = function getHitTestParams() {
3241
3241
  var boundingMap = this.boundingMap;
3242
3242
  if (boundingMap.size > 0) {
3243
+ var _this_getComponent;
3243
3244
  var boundingKeys = boundingMap.keys();
3244
3245
  var worldMat4;
3245
3246
  worldMat4 = this.transform.getWorldMatrix();
3246
- if (this.targetItem) {
3247
+ var targetItem = (_this_getComponent = this.getComponent(GizmoComponent)) == null ? void 0 : _this_getComponent.targetItem;
3248
+ if (targetItem) {
3247
3249
  //const targetTransform = this.targetItem.transform.clone();
3248
3250
  var worldPos = new Vector3();
3249
3251
  var worldQuat = new Quaternion();
3250
3252
  var worldSca = new Vector3(1, 1, 1);
3251
- this.targetItem.transform.assignWorldTRS(worldPos, worldQuat);
3253
+ targetItem.transform.assignWorldTRS(worldPos, worldQuat);
3252
3254
  var targetTransform = new effects.Transform({
3253
3255
  position: worldPos,
3254
3256
  quat: worldQuat,
@@ -3702,7 +3704,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
3702
3704
  }(effects.AbstractPlugin);
3703
3705
 
3704
3706
  effects.registerPlugin("editor-gizmo", EditorGizmoPlugin, GizmoVFXItem);
3705
- var version = "2.0.0-alpha.10";
3707
+ var version = "2.0.0-alpha.12";
3706
3708
  effects.logger.info("plugin editor gizmo version: " + version);
3707
3709
 
3708
3710
  exports.DirectionLightData = DirectionLightData;