@galacean/effects-plugin-editor-gizmo 2.0.0-alpha.7 → 2.0.0-alpha.9
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 +6 -6
- 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 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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.9
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
'use strict';
|
|
@@ -3334,16 +3334,16 @@ var BoundingType;
|
|
|
3334
3334
|
var vpMat4 = proMat4.clone().multiply(viewMat4);
|
|
3335
3335
|
var mvpMat4 = vpMat4.clone().multiply(modelMat4);
|
|
3336
3336
|
var screenCenter = mvpMat4.projectPoint(center, new Vector3());
|
|
3337
|
-
screenCenter.x;
|
|
3338
|
-
screenCenter.y;
|
|
3337
|
+
// const screenCenterX = screenCenter.x;
|
|
3338
|
+
// const screenCenterY = screenCenter.y;
|
|
3339
3339
|
// 包围球上的点正交投影到屏幕上
|
|
3340
3340
|
var radius = bounding.radius;
|
|
3341
3341
|
var up = new Vector3(localMat4.elements[1], localMat4.elements[5], localMat4.elements[9]).normalize();
|
|
3342
3342
|
var point = up.clone().multiply(radius);
|
|
3343
3343
|
point.add(center);
|
|
3344
3344
|
var screenPoint = mvpMat4.projectPoint(point, new Vector3());
|
|
3345
|
-
screenPoint.x;
|
|
3346
|
-
screenPoint.y;
|
|
3345
|
+
// const screenPointX = screenPoint.x;
|
|
3346
|
+
// const screenPointY = screenPoint.y;
|
|
3347
3347
|
// 计算正交投影到屏幕上的包围球的半径
|
|
3348
3348
|
var screenCenter2 = screenCenter.toVector2();
|
|
3349
3349
|
var screenPoint2 = screenPoint.toVector2();
|
|
@@ -3702,7 +3702,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
3702
3702
|
}(effects.AbstractPlugin);
|
|
3703
3703
|
|
|
3704
3704
|
effects.registerPlugin("editor-gizmo", EditorGizmoPlugin, GizmoVFXItem);
|
|
3705
|
-
var version = "2.0.0-alpha.
|
|
3705
|
+
var version = "2.0.0-alpha.9";
|
|
3706
3706
|
effects.logger.info("plugin editor gizmo version: " + version);
|
|
3707
3707
|
|
|
3708
3708
|
exports.DirectionLightData = DirectionLightData;
|