@galacean/effects-plugin-editor-gizmo 2.0.3 → 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.
@@ -26,8 +26,8 @@ export declare class GizmoComponent extends RendererComponent {
26
26
  depthTest?: boolean;
27
27
  mat: math.Matrix4;
28
28
  wireframeMeshes: Mesh[];
29
- start(): void;
30
- update(dt: number): void;
29
+ onStart(): void;
30
+ onUpdate(dt: number): void;
31
31
  render(renderer: Renderer): void;
32
32
  updateRenderData(): void;
33
33
  /**
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.3
6
+ * Version: v2.1.0-alpha.0
7
7
  */
8
8
 
9
9
  'use strict';
@@ -3034,7 +3034,7 @@ exports.GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
3034
3034
  return _this;
3035
3035
  }
3036
3036
  var _proto = GizmoComponent.prototype;
3037
- _proto.start = function start() {
3037
+ _proto.onStart = function onStart() {
3038
3038
  var _this_item_composition;
3039
3039
  this.item.getHitTestParams = this.getHitTestParams;
3040
3040
  var _this_item_composition_items;
@@ -3101,7 +3101,7 @@ exports.GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
3101
3101
  }
3102
3102
  composition == null ? void 0 : composition.loaderData.gizmoItems.push(this.item);
3103
3103
  };
3104
- _proto.update = function update(dt) {
3104
+ _proto.onUpdate = function onUpdate(dt) {
3105
3105
  this.updateRenderData();
3106
3106
  };
3107
3107
  _proto.render = function render(renderer) {
@@ -3711,7 +3711,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
3711
3711
  }(EFFECTS.AbstractPlugin);
3712
3712
 
3713
3713
  EFFECTS.registerPlugin("editor-gizmo", EditorGizmoPlugin, EFFECTS.VFXItem);
3714
- var version = "2.0.3";
3714
+ var version = "2.1.0-alpha.0";
3715
3715
  EFFECTS.logger.info("Plugin editor gizmo version: " + version + ".");
3716
3716
  if (version !== EFFECTS__namespace.version) {
3717
3717
  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!");