@galacean/effects-plugin-model 2.0.0-alpha.22 → 2.0.0-alpha.24

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.
@@ -34,6 +34,10 @@ export declare class PCamera extends PEntity {
34
34
  * Y 轴上视角
35
35
  */
36
36
  fov: number;
37
+ /**
38
+ * fov 缩放大小
39
+ */
40
+ fovScaleRatio: number;
37
41
  /**
38
42
  * 纵横比
39
43
  */
@@ -134,7 +138,8 @@ export declare class PCameraManager {
134
138
  dispose(): void;
135
139
  /**
136
140
  * 更新默认相机状态,并计算新的透视和相机矩阵
137
- * @param fovy - 视角
141
+ * @param fov - 视角
142
+ * @param fovScaleRatio - 视角缩放比例
138
143
  * @param aspect - 纵横比
139
144
  * @param nearPlane - 近裁剪平面
140
145
  * @param farPlane - 远裁剪平面
@@ -142,7 +147,7 @@ export declare class PCameraManager {
142
147
  * @param rotation - 旋转
143
148
  * @param clipMode - 剪裁模式
144
149
  */
145
- updateDefaultCamera(fovy: number, aspect: number, nearPlane: number, farPlane: number, position: Vector3, rotation: Quaternion, clipMode: number): void;
150
+ updateDefaultCamera(fov: number, fovScaleRatio: number, aspect: number, nearPlane: number, farPlane: number, position: Vector3, rotation: Quaternion, clipMode: number): void;
146
151
  /**
147
152
  * 获取相机对象列表
148
153
  * @returns
@@ -210,7 +210,7 @@ export declare class PSceneManager {
210
210
  * 更新默认相机状态,根据传入的相机参数
211
211
  * @param camera - 相机参数
212
212
  */
213
- updateDefaultCamera(camera: CameraOptionsEx): void;
213
+ updateDefaultCamera(camera: CameraOptionsEx, fovScaleRatio: number): void;
214
214
  /**
215
215
  * 更新插件场景,需要更新内部的相关的插件对象,特别是 Mesh 对象的骨骼动画
216
216
  * 并将需要渲染的对象添加到渲染对象集合中
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@galacean/effects-plugin-model",
3
- "version": "2.0.0-alpha.22",
3
+ "version": "2.0.0-alpha.24",
4
4
  "description": "Galacean Effects player model plugin",
5
5
  "module": "./dist/index.mjs",
6
6
  "main": "./dist/index.js",
@@ -38,15 +38,15 @@
38
38
  "registry": "https://registry.npmjs.org"
39
39
  },
40
40
  "dependencies": {
41
- "@galacean/effects-helper": "2.0.0-alpha.22"
41
+ "@galacean/effects-helper": "2.0.0-alpha.24"
42
42
  },
43
43
  "devDependencies": {
44
44
  "@vvfx/resource-detection": "0.6.0-alpha.11",
45
45
  "@types/hammerjs": "^2.0.45",
46
46
  "fpsmeter": "^0.3.1",
47
47
  "hammerjs": "^2.0.8",
48
- "@galacean/effects": "2.0.0-alpha.22",
49
- "@galacean/effects-plugin-editor-gizmo": "2.0.0-alpha.22"
48
+ "@galacean/effects-plugin-editor-gizmo": "2.0.0-alpha.24",
49
+ "@galacean/effects": "2.0.0-alpha.24"
50
50
  },
51
51
  "scripts": {
52
52
  "dev": "vite",