@galacean/effects-plugin-editor-gizmo 2.9.0-alpha.1 → 2.9.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.
@@ -1,8 +1,13 @@
1
1
  import type { GeometryDrawMode, RenderFrame, Renderer, Texture, VFXItem } from '@galacean/effects';
2
2
  import { RenderPass, Mesh, RendererComponent, Transform, math, spec } from '@galacean/effects';
3
+ import type { GizmoVFXItemOptions } from './define';
3
4
  import { GizmoSubType } from './define';
4
5
  import type { EditorGizmoPlugin } from './gizmo-loader';
5
6
  import type { GizmoItemBounding } from './gizmo-vfx-item';
7
+ interface GizmoComponentData extends spec.ComponentData {
8
+ options: GizmoVFXItemOptions;
9
+ transform?: Record<string, unknown>;
10
+ }
6
11
  type Vector3 = math.Vector3;
7
12
  declare const Vector3: typeof math.Vector3;
8
13
  export declare class GizmoComponent extends RendererComponent {
@@ -64,7 +69,7 @@ export declare class GizmoComponent extends RendererComponent {
64
69
  * @param iconTextures - XYZ 图标纹理(viewHelper 专用)
65
70
  */
66
71
  createCombinationContent(item: VFXItem, subType: GizmoSubType, iconTextures?: Map<string, Texture>): void;
67
- fromData(data: any): void;
72
+ fromData(data: GizmoComponentData): void;
68
73
  /**
69
74
  * 射线检测算法
70
75
  * @returns 包含射线检测算法回调方法的参数
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.9.0-alpha.1
6
+ * Version: v2.9.0
7
7
  */
8
8
 
9
9
  'use strict';
@@ -2917,6 +2917,7 @@ exports.GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
2917
2917
  var self = item;
2918
2918
  return {
2919
2919
  type: EFFECTS.HitTestType.custom,
2920
+ clipMasks: _this.frameClipMasks,
2920
2921
  /**
2921
2922
  * 自定义射线检测算法
2922
2923
  * @param ray 射线参数
@@ -3607,9 +3608,6 @@ var DrawGizmoBehindPass = /*#__PURE__*/ function(RenderPass) {
3607
3608
  });
3608
3609
  renderer.renderMeshes(this.meshes);
3609
3610
  };
3610
- _proto.configure = function configure(renderer) {
3611
- renderer.setFramebuffer(this.framebuffer);
3612
- };
3613
3611
  return DrawGizmoBehindPass;
3614
3612
  }(EFFECTS.RenderPass);
3615
3613
  var DrawGizmoFrontPass = /*#__PURE__*/ function(RenderPass) {
@@ -3625,9 +3623,6 @@ var DrawGizmoFrontPass = /*#__PURE__*/ function(RenderPass) {
3625
3623
  _proto.execute = function execute(renderer) {
3626
3624
  renderer.renderMeshes(this.meshes);
3627
3625
  };
3628
- _proto.configure = function configure(renderer) {
3629
- renderer.setFramebuffer(this.framebuffer);
3630
- };
3631
3626
  return DrawGizmoFrontPass;
3632
3627
  }(EFFECTS.RenderPass);
3633
3628
  var DrawGizmoEditorPass = /*#__PURE__*/ function(RenderPass) {
@@ -3643,9 +3638,6 @@ var DrawGizmoEditorPass = /*#__PURE__*/ function(RenderPass) {
3643
3638
  _proto.execute = function execute(renderer) {
3644
3639
  renderer.renderMeshes(this.meshes);
3645
3640
  };
3646
- _proto.configure = function configure(renderer) {
3647
- renderer.setFramebuffer(this.framebuffer);
3648
- };
3649
3641
  return DrawGizmoEditorPass;
3650
3642
  }(EFFECTS.RenderPass);
3651
3643
 
@@ -3732,7 +3724,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(Plugin) {
3732
3724
  EFFECTS.registerPlugin("editor-gizmo", EditorGizmoPlugin);
3733
3725
  /**
3734
3726
  * 插件版本号
3735
- */ var version = "2.9.0-alpha.1";
3727
+ */ var version = "2.9.0";
3736
3728
  EFFECTS.logger.info("Plugin editor gizmo version: " + version + ".");
3737
3729
  if (version !== EFFECTS__namespace.version) {
3738
3730
  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!");