@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/gizmo-vfx-item.d.ts +0 -1
- package/dist/index.js +6 -4
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +6 -4
- package/dist/index.mjs.map +1 -1
- package/package.json +4 -4
package/dist/gizmo-vfx-item.d.ts
CHANGED
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.
|
|
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
|
-
|
|
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
|
-
|
|
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.
|
|
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;
|