@galacean/effects-plugin-editor-gizmo 2.0.0-alpha.29 → 2.0.0-alpha.30
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 +4 -5
- package/dist/index.js +8 -9
- 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 +9 -10
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -3,11 +3,11 @@
|
|
|
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.30
|
|
7
7
|
*/
|
|
8
8
|
|
|
9
9
|
import * as EFFECTS from '@galacean/effects';
|
|
10
|
-
import { math, DestroyOptions, glContext, ShaderType, GLSLVersion, Material, Mesh, GLGeometry, createShaderWithMacros, Texture, noop, Geometry, Transform, serialize, effectsClass, ParticleSystemRenderer, RendererComponent, assertExist,
|
|
10
|
+
import { math, DestroyOptions, glContext, ShaderType, GLSLVersion, Material, Mesh, GLGeometry, createShaderWithMacros, Texture, noop, Geometry, Transform, serialize, effectsClass, ParticleSystemRenderer, RendererComponent, assertExist, HitTestType, spec, removeItem, RenderPass, RenderPassPriorityPostprocess, TextureLoadAction, RenderPassPriorityPrepare, AbstractPlugin, registerPlugin, VFXItem, logger } from '@galacean/effects';
|
|
11
11
|
|
|
12
12
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
13
13
|
try {
|
|
@@ -2805,11 +2805,11 @@ function createMesh(engine, points, indices, color, depthTest, name) {
|
|
|
2805
2805
|
|
|
2806
2806
|
var Vector2 = math.Vector2, Vector3 = math.Vector3, Matrix4 = math.Matrix4, Quaternion = math.Quaternion;
|
|
2807
2807
|
var constants = glContext;
|
|
2808
|
-
var GizmoComponent = /*#__PURE__*/ function(
|
|
2809
|
-
_inherits(GizmoComponent,
|
|
2808
|
+
var GizmoComponent = /*#__PURE__*/ function(RendererComponent1) {
|
|
2809
|
+
_inherits(GizmoComponent, RendererComponent1);
|
|
2810
2810
|
function GizmoComponent() {
|
|
2811
2811
|
var _this;
|
|
2812
|
-
_this =
|
|
2812
|
+
_this = RendererComponent1.apply(this, arguments) || this;
|
|
2813
2813
|
_this.boundingMap = new Map();
|
|
2814
2814
|
_this.coordinateSpace = 0;
|
|
2815
2815
|
_this.mat = Matrix4.fromIdentity();
|
|
@@ -3081,10 +3081,9 @@ var GizmoComponent = /*#__PURE__*/ function(ItemBehaviour) {
|
|
|
3081
3081
|
}
|
|
3082
3082
|
composition.loaderData.gizmoItems.push(this.item);
|
|
3083
3083
|
};
|
|
3084
|
-
_proto.
|
|
3084
|
+
_proto.render = function render(renderer) {
|
|
3085
3085
|
this.updateRenderData();
|
|
3086
3086
|
};
|
|
3087
|
-
_proto.lateUpdate = function lateUpdate(dt) {};
|
|
3088
3087
|
_proto.updateRenderData = function updateRenderData() {
|
|
3089
3088
|
var item = this.item;
|
|
3090
3089
|
var gizmoSubType = this.subType;
|
|
@@ -3386,7 +3385,7 @@ var GizmoComponent = /*#__PURE__*/ function(ItemBehaviour) {
|
|
|
3386
3385
|
this.targetItem = item;
|
|
3387
3386
|
};
|
|
3388
3387
|
_proto.fromData = function fromData(data) {
|
|
3389
|
-
|
|
3388
|
+
RendererComponent1.prototype.fromData.call(this, data);
|
|
3390
3389
|
var item = this.item;
|
|
3391
3390
|
item.duration = 999;
|
|
3392
3391
|
var _data_options = data.options, target = _data_options.target, subType = _data_options.subType, renderMode = _data_options.renderMode, size = _data_options.size, depthTest = _data_options.depthTest, _data_options_color = _data_options.color, color = _data_options_color === void 0 ? [
|
|
@@ -3410,7 +3409,7 @@ var GizmoComponent = /*#__PURE__*/ function(ItemBehaviour) {
|
|
|
3410
3409
|
}
|
|
3411
3410
|
};
|
|
3412
3411
|
return GizmoComponent;
|
|
3413
|
-
}(
|
|
3412
|
+
}(RendererComponent);
|
|
3414
3413
|
__decorate([
|
|
3415
3414
|
serialize()
|
|
3416
3415
|
], GizmoComponent.prototype, "coordinateSpace", void 0);
|
|
@@ -3690,7 +3689,7 @@ var EditorGizmoPlugin = /*#__PURE__*/ function(AbstractPlugin) {
|
|
|
3690
3689
|
}(AbstractPlugin);
|
|
3691
3690
|
|
|
3692
3691
|
registerPlugin("editor-gizmo", EditorGizmoPlugin, VFXItem);
|
|
3693
|
-
var version = "2.0.0-alpha.
|
|
3692
|
+
var version = "2.0.0-alpha.30";
|
|
3694
3693
|
logger.info("Plugin editor gizmo version: " + version + ".");
|
|
3695
3694
|
if (version !== EFFECTS.version) {
|
|
3696
3695
|
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!");
|