@galacean/effects-plugin-editor-gizmo 2.9.0-alpha.2 → 2.9.1-beta.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.2
6
+ * Version: v2.9.1-beta.0
7
7
  */
8
8
 
9
9
  'use strict';
@@ -3608,9 +3608,6 @@ var DrawGizmoBehindPass = /*#__PURE__*/ function(RenderPass) {
3608
3608
  });
3609
3609
  renderer.renderMeshes(this.meshes);
3610
3610
  };
3611
- _proto.configure = function configure(renderer) {
3612
- renderer.setFramebuffer(this.framebuffer);
3613
- };
3614
3611
  return DrawGizmoBehindPass;
3615
3612
  }(EFFECTS.RenderPass);
3616
3613
  var DrawGizmoFrontPass = /*#__PURE__*/ function(RenderPass) {
@@ -3626,9 +3623,6 @@ var DrawGizmoFrontPass = /*#__PURE__*/ function(RenderPass) {
3626
3623
  _proto.execute = function execute(renderer) {
3627
3624
  renderer.renderMeshes(this.meshes);
3628
3625
  };
3629
- _proto.configure = function configure(renderer) {
3630
- renderer.setFramebuffer(this.framebuffer);
3631
- };
3632
3626
  return DrawGizmoFrontPass;
3633
3627
  }(EFFECTS.RenderPass);
3634
3628
  var DrawGizmoEditorPass = /*#__PURE__*/ function(RenderPass) {
@@ -3644,9 +3638,6 @@ var DrawGizmoEditorPass = /*#__PURE__*/ function(RenderPass) {
3644
3638
  _proto.execute = function execute(renderer) {
3645
3639
  renderer.renderMeshes(this.meshes);
3646
3640
  };
3647
- _proto.configure = function configure(renderer) {
3648
- renderer.setFramebuffer(this.framebuffer);
3649
- };
3650
3641
  return DrawGizmoEditorPass;
3651
3642
  }(EFFECTS.RenderPass);
3652
3643
 
@@ -3733,7 +3724,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(Plugin) {
3733
3724
  EFFECTS.registerPlugin("editor-gizmo", EditorGizmoPlugin);
3734
3725
  /**
3735
3726
  * 插件版本号
3736
- */ var version = "2.9.0-alpha.2";
3727
+ */ var version = "2.9.1-beta.0";
3737
3728
  EFFECTS.logger.info("Plugin editor gizmo version: " + version + ".");
3738
3729
  if (version !== EFFECTS__namespace.version) {
3739
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!");