@galacean/effects-core 2.0.0-alpha.21 → 2.0.0-alpha.23

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/camera.d.ts CHANGED
@@ -61,7 +61,7 @@ export declare class Camera {
61
61
  /**
62
62
  * 编辑器用于缩放画布
63
63
  */
64
- fovScaleRatio: number;
64
+ private fovScaleRatio;
65
65
  private options;
66
66
  private viewMatrix;
67
67
  private projectionMatrix;
@@ -118,6 +118,8 @@ export declare class Camera {
118
118
  */
119
119
  set rotation(value: Euler);
120
120
  get rotation(): Euler;
121
+ setFovScaleRatio(value: number): void;
122
+ getFovScaleRatio(): number;
121
123
  /**
122
124
  * 获取相机的视图变换矩阵
123
125
  * @return
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@
3
3
  * Description: Galacean Effects runtime core for the web
4
4
  * Author: Ant Group CO., Ltd.
5
5
  * Contributors: 燃然,飂兮,十弦,云垣,茂安,意绮
6
- * Version: v2.0.0-alpha.21
6
+ * Version: v2.0.0-alpha.23
7
7
  */
8
8
 
9
9
  'use strict';
@@ -4324,11 +4324,19 @@ var DataType;
4324
4324
  DataType["Texture"] = "Texture";
4325
4325
  DataType["AnimationClip"] = "AnimationClip";
4326
4326
  DataType["TextComponent"] = "TextComponent";
4327
+ DataType["BinaryAsset"] = "BinaryAsset";
4328
+ // Timeline
4327
4329
  DataType["TrackAsset"] = "TrackAsset";
4328
4330
  DataType["TimelineAsset"] = "TimelineAsset";
4331
+ DataType["ObjectBindingTrack"] = "ObjectBindingTrack";
4332
+ DataType["TransformTrack"] = "TransformTrack";
4333
+ DataType["SpriteColorTrack"] = "SpriteColorTrack";
4334
+ DataType["ActivationTrack"] = "ActivationTrack";
4335
+ DataType["SubCompositionTrack"] = "SubCompositionTrack";
4329
4336
  DataType["TransformPlayableAsset"] = "TransformPlayableAsset";
4330
4337
  DataType["SpriteColorPlayableAsset"] = "SpriteColorPlayableAsset";
4331
- DataType["BinaryAsset"] = "BinaryAsset";
4338
+ DataType["ActivationPlayableAsset"] = "ActivationPlayableAsset";
4339
+ DataType["SubCompositionPlayableAsset"] = "SubCompositionPlayableAsset";
4332
4340
  // FIXME: 先完成ECS的场景转换,后面移到spec中
4333
4341
  DataType["MeshComponent"] = "MeshComponent";
4334
4342
  DataType["SkyboxComponent"] = "SkyboxComponent";
@@ -24035,9 +24043,7 @@ var tmpScale = new Vector3(1, 1, 1);
24035
24043
  function Camera(name, options) {
24036
24044
  if (options === void 0) options = {};
24037
24045
  this.name = name;
24038
- this./**
24039
- * 编辑器用于缩放画布
24040
- */ fovScaleRatio = 1.0;
24046
+ this.fovScaleRatio = 1.0;
24041
24047
  this.viewMatrix = Matrix4.fromIdentity();
24042
24048
  this.projectionMatrix = Matrix4.fromIdentity();
24043
24049
  this.viewProjectionMatrix = Matrix4.fromIdentity();
@@ -24065,6 +24071,13 @@ var tmpScale = new Vector3(1, 1, 1);
24065
24071
  this.updateMatrix();
24066
24072
  }
24067
24073
  var _proto = Camera.prototype;
24074
+ _proto.setFovScaleRatio = function setFovScaleRatio(value) {
24075
+ this.fovScaleRatio = value;
24076
+ this.dirty = true;
24077
+ };
24078
+ _proto.getFovScaleRatio = function getFovScaleRatio() {
24079
+ return this.fovScaleRatio;
24080
+ };
24068
24081
  /**
24069
24082
  * 获取相机的视图变换矩阵
24070
24083
  * @return
@@ -25302,10 +25315,10 @@ var listOrder = 0;
25302
25315
  {
25303
25316
  key: "editorScaleRatio",
25304
25317
  get: function get() {
25305
- return this.camera.fovScaleRatio;
25318
+ return this.camera.getFovScaleRatio();
25306
25319
  },
25307
25320
  set: function set(value) {
25308
- this.camera.fovScaleRatio = value;
25321
+ this.camera.setFovScaleRatio(value);
25309
25322
  }
25310
25323
  }
25311
25324
  ]);
@@ -25704,7 +25717,7 @@ registerPlugin("sprite", SpriteLoader, exports.VFXItem, true);
25704
25717
  registerPlugin("particle", ParticleLoader, exports.VFXItem, true);
25705
25718
  registerPlugin("cal", CalculateLoader, exports.VFXItem, true);
25706
25719
  registerPlugin("interact", InteractLoader, exports.VFXItem, true);
25707
- var version = "2.0.0-alpha.21";
25720
+ var version = "2.0.0-alpha.23";
25708
25721
  logger.info("Core version: " + version + ".");
25709
25722
 
25710
25723
  exports.AbstractPlugin = AbstractPlugin;