@galacean/effects-plugin-model 2.0.2 → 2.0.4

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.
@@ -8,7 +8,6 @@ import { Vector3 } from '../runtime/math';
8
8
  /**
9
9
  * 插件 Mesh 组件类,支持 3D Mesh 渲染能力
10
10
  * @since 2.0.0
11
- * @internal
12
11
  */
13
12
  export declare class ModelMeshComponent extends RendererComponent {
14
13
  /**
@@ -94,7 +93,6 @@ export declare class ModelMeshComponent extends RendererComponent {
94
93
  /**
95
94
  * 插件天空盒组件类,支持 3D 天空盒渲染能力
96
95
  * @since 2.0.0
97
- * @internal
98
96
  */
99
97
  export declare class ModelSkyboxComponent extends RendererComponent {
100
98
  /**
@@ -151,7 +149,6 @@ export declare class ModelSkyboxComponent extends RendererComponent {
151
149
  /**
152
150
  * 插件灯光组件类,支持 3D 灯光能力
153
151
  * @since 2.0.0
154
- * @internal
155
152
  */
156
153
  export declare class ModelLightComponent extends Behaviour {
157
154
  /**
@@ -203,7 +200,6 @@ export declare class ModelLightComponent extends Behaviour {
203
200
  /**
204
201
  * 插件相机组件类,支持 3D 相机能力
205
202
  * @since 2.0.0
206
- * @internal
207
203
  */
208
204
  export declare class ModelCameraComponent extends Behaviour {
209
205
  /**
@@ -256,7 +252,6 @@ export declare class ModelCameraComponent extends Behaviour {
256
252
  /**
257
253
  * 插件动画组件类,支持 3D 动画能力
258
254
  * @since 2.0.0
259
- * @internal
260
255
  */
261
256
  export declare class AnimationComponent extends Behaviour {
262
257
  /**
@@ -1,5 +1,5 @@
1
- import type { Scene, SceneLoadOptions, Composition, RenderFrame, Engine, Component, Renderer } from '@galacean/effects';
2
- import { AbstractPlugin, spec, Behaviour } from '@galacean/effects';
1
+ import type { Scene, SceneLoadOptions, Composition, RenderFrame, Component, Renderer } from '@galacean/effects';
2
+ import { AbstractPlugin, spec } from '@galacean/effects';
3
3
  import { CompositionCache } from '../runtime/cache';
4
4
  import { PSceneManager } from '../runtime';
5
5
  /**
@@ -46,75 +46,6 @@ export declare class ModelPlugin extends AbstractPlugin {
46
46
  export interface ModelPluginOptions {
47
47
  cache: CompositionCache;
48
48
  }
49
- /**
50
- * 插件组件类,实现特定的插件功能
51
- * @since 2.0.0
52
- * @internal
53
- */
54
- export declare class ModelPluginComponent extends Behaviour {
55
- private runtimeEnv;
56
- private compatibleMode;
57
- private renderSkybox;
58
- private visBoundingBox;
59
- private autoAdjustScene;
60
- /**
61
- * 渲染插件是否启用动态排序功能
62
- * 支持在渲染的时候对透明 Mesh 进行动态排序
63
- */
64
- private enableDynamicSort;
65
- /**
66
- * 3D 渲染模式,支持可视化渲染中间结果
67
- * none 表示正常的渲染结果
68
- */
69
- private renderMode3D;
70
- /**
71
- * UV 渲染模式中,指定棋盘格的大小,相对于大小为 1 的纹理
72
- * 取值范围(0, 1)
73
- */
74
- private renderMode3DUVGridSize;
75
- /**
76
- * 合成缓存器
77
- */
78
- cache: CompositionCache;
79
- /**
80
- * 场景管理器
81
- */
82
- scene: PSceneManager;
83
- /**
84
- * 构造函数,创建场景管理器
85
- * @param engine - 引擎
86
- * @param options - Mesh 参数
87
- */
88
- constructor(engine: Engine, options?: ModelPluginOptions);
89
- /**
90
- * 组件后更新,合成相机和场景管理器更新
91
- * @param dt - 更新间隔
92
- */
93
- lateUpdate(dt: number): void;
94
- /**
95
- * 组件销毁,同时销毁场景管理器和缓存器
96
- */
97
- onDestroy(): void;
98
- /**
99
- * 反序列化,创建场景管理器
100
- * @param date - 组件参数
101
- */
102
- fromData(data: ModelPluginOptions): void;
103
- /**
104
- * 组件初始化,初始化场景管理器并更新合成相机
105
- * @param sceneParams - 场景参数
106
- */
107
- initial(sceneParams: Record<string, any>): void;
108
- /**
109
- * 更新 SceneManager 中渲染用的相机,相机参数来自 composition.camera
110
- *
111
- * @param composition - 当前合成对象
112
- * @param sceneManager - 当前合成对象绑定的 SceneManager
113
- */
114
- private updateSceneCamera;
115
- private getLightItemCount;
116
- private getMaxJointCount;
117
- }
118
49
  /**
119
50
  * 获取场景管理器,从合成中查找
120
51
  * @param component
@@ -85,7 +85,6 @@ export declare class ModelTreeItem {
85
85
  /**
86
86
  * 插件场景树组件类,实现 3D 场景树功能
87
87
  * @since 2.0.0
88
- * @internal
89
88
  */
90
89
  export declare class ModelTreeComponent extends Behaviour {
91
90
  /**
package/dist/weapp.js CHANGED
@@ -13794,7 +13794,7 @@ var GLTFHelper = /*#__PURE__*/ function() {
13794
13794
 
13795
13795
  EFFECTS.registerPlugin("tree", ModelTreePlugin, EFFECTS.VFXItem, true);
13796
13796
  EFFECTS.registerPlugin("model", ModelPlugin, EFFECTS.VFXItem);
13797
- var version = "2.0.2";
13797
+ var version = "2.0.4";
13798
13798
  EFFECTS.logger.info("Plugin model version: " + version + ".");
13799
13799
  if (version !== EFFECTS__namespace.version) {
13800
13800
  console.error("注意:请统一 Model 插件与 Player 版本,不统一的版本混用会有不可预知的后果!", "\nAttention: Please ensure the Model plugin is synchronized with the Player version. Mixing and matching incompatible versions may result in unpredictable consequences!");