@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 +38 -44
- 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 +38 -44
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
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.
|
|
6
|
+
* Version: v2.0.0-alpha.23
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as EFFECTS from '@galacean/effects';
|
|
@@ -3032,48 +3032,42 @@ var GizmoComponent = /*#__PURE__*/ function(ItemBehaviour) {
|
|
|
3032
3032
|
if (targetItem.type === "7" || !gizmoPlugin) {
|
|
3033
3033
|
return;
|
|
3034
3034
|
}
|
|
3035
|
-
var
|
|
3036
|
-
|
|
3037
|
-
|
|
3038
|
-
|
|
3039
|
-
|
|
3040
|
-
|
|
3041
|
-
|
|
3042
|
-
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
|
|
3049
|
-
|
|
3050
|
-
|
|
3051
|
-
|
|
3052
|
-
|
|
3053
|
-
|
|
3054
|
-
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
|
|
3060
|
-
|
|
3061
|
-
|
|
3062
|
-
|
|
3063
|
-
|
|
3064
|
-
|
|
3065
|
-
|
|
3066
|
-
|
|
3067
|
-
|
|
3068
|
-
|
|
3069
|
-
|
|
3070
|
-
|
|
3071
|
-
break;
|
|
3072
|
-
case GizmoSubType.boundingBox:
|
|
3073
|
-
this.createBoundingBoxContent(targetItem, gizmoPlugin.meshToAdd);
|
|
3074
|
-
break;
|
|
3075
|
-
}
|
|
3076
|
-
}
|
|
3035
|
+
var gizmoSubType = this.subType;
|
|
3036
|
+
switch(gizmoSubType){
|
|
3037
|
+
case GizmoSubType.particleEmitter:
|
|
3038
|
+
this.createParticleContent(targetItem, gizmoPlugin.meshToAdd);
|
|
3039
|
+
break;
|
|
3040
|
+
case GizmoSubType.modelWireframe:
|
|
3041
|
+
this.needCreateModelContent = true;
|
|
3042
|
+
break;
|
|
3043
|
+
case GizmoSubType.box:
|
|
3044
|
+
case GizmoSubType.sphere:
|
|
3045
|
+
case GizmoSubType.cylinder:
|
|
3046
|
+
case GizmoSubType.cone:
|
|
3047
|
+
case GizmoSubType.torus:
|
|
3048
|
+
case GizmoSubType.sprite:
|
|
3049
|
+
case GizmoSubType.frustum:
|
|
3050
|
+
case GizmoSubType.directionLight:
|
|
3051
|
+
case GizmoSubType.pointLight:
|
|
3052
|
+
case GizmoSubType.spotLight:
|
|
3053
|
+
case GizmoSubType.floorGrid:
|
|
3054
|
+
this.createBasicContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType);
|
|
3055
|
+
break;
|
|
3056
|
+
case GizmoSubType.camera:
|
|
3057
|
+
case GizmoSubType.light:
|
|
3058
|
+
this.createBasicContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType, iconTextures);
|
|
3059
|
+
break;
|
|
3060
|
+
case GizmoSubType.rotation:
|
|
3061
|
+
case GizmoSubType.scale:
|
|
3062
|
+
case GizmoSubType.translation:
|
|
3063
|
+
this.createCombinationContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType);
|
|
3064
|
+
break;
|
|
3065
|
+
case GizmoSubType.viewHelper:
|
|
3066
|
+
this.createCombinationContent(targetItem, gizmoPlugin.meshToAdd, gizmoSubType, iconTextures);
|
|
3067
|
+
break;
|
|
3068
|
+
case GizmoSubType.boundingBox:
|
|
3069
|
+
this.createBoundingBoxContent(targetItem, gizmoPlugin.meshToAdd);
|
|
3070
|
+
break;
|
|
3077
3071
|
}
|
|
3078
3072
|
composition.loaderData.gizmoItems.push(this.item);
|
|
3079
3073
|
};
|
|
@@ -3678,7 +3672,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
3678
3672
|
}(AbstractPlugin);
|
|
3679
3673
|
|
|
3680
3674
|
registerPlugin("editor-gizmo", EditorGizmoPlugin, VFXItem);
|
|
3681
|
-
var version = "2.0.0-alpha.
|
|
3675
|
+
var version = "2.0.0-alpha.23";
|
|
3682
3676
|
logger.info("Plugin editor gizmo version: " + version + ".");
|
|
3683
3677
|
if (version !== EFFECTS.version) {
|
|
3684
3678
|
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!");
|