@galacean/effects-plugin-editor-gizmo 2.0.2 → 2.1.0-alpha.0
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-component.d.ts +2 -2
- package/dist/index.js +4 -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 +4 -6
- 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.
|
|
6
|
+
* Version: v2.1.0-alpha.0
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as EFFECTS from '@galacean/effects';
|
|
@@ -3011,7 +3011,7 @@ var GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
|
|
|
3011
3011
|
return _this;
|
|
3012
3012
|
}
|
|
3013
3013
|
var _proto = GizmoComponent.prototype;
|
|
3014
|
-
_proto.
|
|
3014
|
+
_proto.onStart = function onStart() {
|
|
3015
3015
|
var _this_item_composition;
|
|
3016
3016
|
this.item.getHitTestParams = this.getHitTestParams;
|
|
3017
3017
|
var _this_item_composition_items;
|
|
@@ -3078,7 +3078,7 @@ var GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
|
|
|
3078
3078
|
}
|
|
3079
3079
|
composition == null ? void 0 : composition.loaderData.gizmoItems.push(this.item);
|
|
3080
3080
|
};
|
|
3081
|
-
_proto.
|
|
3081
|
+
_proto.onUpdate = function onUpdate(dt) {
|
|
3082
3082
|
this.updateRenderData();
|
|
3083
3083
|
};
|
|
3084
3084
|
_proto.render = function render(renderer) {
|
|
@@ -3101,7 +3101,6 @@ var GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
|
|
|
3101
3101
|
if (gizmoSubType === GizmoSubType.particleEmitter) {
|
|
3102
3102
|
if (this.targetItem && item.content) {
|
|
3103
3103
|
this.mat = this.targetItem.transform.getWorldMatrix();
|
|
3104
|
-
//@ts-expect-error
|
|
3105
3104
|
item.content.material.setMatrix("u_model", this.mat);
|
|
3106
3105
|
}
|
|
3107
3106
|
if (this.wireframeMesh && this.targetItem) {
|
|
@@ -3220,7 +3219,6 @@ var GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
|
|
|
3220
3219
|
targetTransform1.setPosition(newPos1.x, newPos1.y, newPos1.z);
|
|
3221
3220
|
}
|
|
3222
3221
|
this.mat = targetTransform1.getWorldMatrix();
|
|
3223
|
-
//@ts-expect-error
|
|
3224
3222
|
item.content.material.setMatrix("u_model", targetTransform1.getWorldMatrix());
|
|
3225
3223
|
}
|
|
3226
3224
|
}
|
|
@@ -3690,7 +3688,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
3690
3688
|
}(AbstractPlugin);
|
|
3691
3689
|
|
|
3692
3690
|
registerPlugin("editor-gizmo", EditorGizmoPlugin, VFXItem);
|
|
3693
|
-
var version = "2.0.
|
|
3691
|
+
var version = "2.1.0-alpha.0";
|
|
3694
3692
|
logger.info("Plugin editor gizmo version: " + version + ".");
|
|
3695
3693
|
if (version !== EFFECTS.version) {
|
|
3696
3694
|
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!");
|