@galacean/effects-core 2.4.0-beta.0 → 2.4.0-beta.1
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/asset-loader.d.ts +1 -2
- package/dist/binary-asset.d.ts +0 -2
- package/dist/comp-vfx-item.d.ts +2 -2
- package/dist/components/component.d.ts +1 -0
- package/dist/components/post-process-volume.d.ts +2 -2
- package/dist/components/renderer-component.d.ts +0 -5
- package/dist/composition.d.ts +2 -8
- package/dist/effects-object.d.ts +1 -1
- package/dist/engine.d.ts +5 -3
- package/dist/fallback/migration.d.ts +1 -0
- package/dist/index.js +710 -1004
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +706 -998
- package/dist/index.mjs.map +1 -1
- package/dist/plugins/camera/camera-controller-node.d.ts +2 -2
- package/dist/plugins/particle/trail-mesh.d.ts +1 -1
- package/dist/serialization-helper.d.ts +0 -4
- package/dist/vfx-item.d.ts +10 -4
- package/package.json +2 -2
package/dist/asset-loader.d.ts
CHANGED
|
@@ -7,8 +7,7 @@ import type { Engine } from './engine';
|
|
|
7
7
|
export declare class AssetLoader {
|
|
8
8
|
private engine;
|
|
9
9
|
constructor(engine: Engine);
|
|
10
|
-
loadGUID<T>(
|
|
11
|
-
loadGUIDAsync<T>(guid: string): Promise<T>;
|
|
10
|
+
loadGUID<T>(dataPath: spec.DataPath): T;
|
|
12
11
|
private findData;
|
|
13
12
|
private static getClass;
|
|
14
13
|
}
|
package/dist/binary-asset.d.ts
CHANGED
package/dist/comp-vfx-item.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Ray } from '@galacean/effects-math/es/core/ray';
|
|
2
2
|
import * as spec from '@galacean/effects-specification';
|
|
3
|
-
import {
|
|
3
|
+
import { Component } from './components';
|
|
4
4
|
import type { CompositionHitTestOptions } from './composition';
|
|
5
5
|
import type { Region, TrackAsset } from './plugins';
|
|
6
6
|
import { VFXItem } from './vfx-item';
|
|
@@ -15,7 +15,7 @@ export interface SceneBindingData {
|
|
|
15
15
|
/**
|
|
16
16
|
* @since 2.0.0
|
|
17
17
|
*/
|
|
18
|
-
export declare class CompositionComponent extends
|
|
18
|
+
export declare class CompositionComponent extends Component {
|
|
19
19
|
time: number;
|
|
20
20
|
startTime: number;
|
|
21
21
|
items: VFXItem[];
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as spec from '@galacean/effects-specification';
|
|
2
|
-
import {
|
|
2
|
+
import { Component } from './component';
|
|
3
3
|
import type { Engine } from '../engine';
|
|
4
4
|
/**
|
|
5
5
|
* @since 2.1.0
|
|
6
6
|
*/
|
|
7
|
-
export declare class PostProcessVolume extends
|
|
7
|
+
export declare class PostProcessVolume extends Component {
|
|
8
8
|
bloom: spec.Bloom;
|
|
9
9
|
vignette: spec.Vignette;
|
|
10
10
|
tonemapping: spec.Tonemapping;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { Material } from '../material';
|
|
2
2
|
import type { Renderer } from '../render';
|
|
3
|
-
import type { VFXItem } from '../vfx-item';
|
|
4
3
|
import { Component } from './component';
|
|
5
4
|
/**
|
|
6
5
|
* 所有渲染组件的基类
|
|
@@ -14,10 +13,6 @@ export declare class RendererComponent extends Component {
|
|
|
14
13
|
get material(): Material;
|
|
15
14
|
set material(material: Material);
|
|
16
15
|
render(renderer: Renderer): void;
|
|
17
|
-
setVFXItem(item: VFXItem): void;
|
|
18
16
|
onEnable(): void;
|
|
19
17
|
onDisable(): void;
|
|
20
|
-
fromData(data: unknown): void;
|
|
21
|
-
toData(): void;
|
|
22
|
-
dispose(): void;
|
|
23
18
|
}
|
package/dist/composition.d.ts
CHANGED
|
@@ -7,7 +7,7 @@ import type { PluginSystem } from './plugin-system';
|
|
|
7
7
|
import type { EventSystem, Plugin, Region } from './plugins';
|
|
8
8
|
import type { MeshRendererOptions, Renderer } from './render';
|
|
9
9
|
import { RenderFrame } from './render';
|
|
10
|
-
import type { Scene
|
|
10
|
+
import type { Scene } from './scene';
|
|
11
11
|
import type { Texture } from './texture';
|
|
12
12
|
import type { Disposable, LostHandler } from './utils';
|
|
13
13
|
import { VFXItem } from './vfx-item';
|
|
@@ -15,7 +15,6 @@ import type { CompositionEvent } from './events';
|
|
|
15
15
|
import { EventEmitter } from './events';
|
|
16
16
|
import type { PostProcessVolume } from './components';
|
|
17
17
|
import { SceneTicking } from './composition/scene-ticking';
|
|
18
|
-
import type { Engine } from './engine';
|
|
19
18
|
/**
|
|
20
19
|
* 合成统计信息
|
|
21
20
|
*/
|
|
@@ -360,10 +359,6 @@ export declare class Composition extends EventEmitter<CompositionEvent<Compositi
|
|
|
360
359
|
private shouldDispose;
|
|
361
360
|
private getUpdateTime;
|
|
362
361
|
private callAwake;
|
|
363
|
-
/**
|
|
364
|
-
* 构建父子树,同时保存到 itemCacheMap 中便于查找
|
|
365
|
-
*/
|
|
366
|
-
private buildItemTree;
|
|
367
362
|
/**
|
|
368
363
|
* 更新视频数据到纹理
|
|
369
364
|
* @override
|
|
@@ -400,7 +395,7 @@ export declare class Composition extends EventEmitter<CompositionEvent<Compositi
|
|
|
400
395
|
* 获取 engine 对象
|
|
401
396
|
* @returns
|
|
402
397
|
*/
|
|
403
|
-
getEngine(): Engine;
|
|
398
|
+
getEngine(): import("@galacean/effects-core").Engine;
|
|
404
399
|
/**
|
|
405
400
|
* Item 求交测试,返回求交结果列表,x 和 y 是归一化到[-1, 1]区间的值,原点在左上角
|
|
406
401
|
* @param x - 鼠标或触点的 x,已经归一化到[-1, 1]
|
|
@@ -473,4 +468,3 @@ export declare class Composition extends EventEmitter<CompositionEvent<Compositi
|
|
|
473
468
|
*/
|
|
474
469
|
reloadTexture(): Promise<void>;
|
|
475
470
|
}
|
|
476
|
-
export declare function filterItemsByRenderLevel(composition: spec.CompositionData, engine: Engine, renderLevel?: SceneRenderLevel): spec.CompositionData;
|
package/dist/effects-object.d.ts
CHANGED
package/dist/engine.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as spec from '@galacean/effects-specification';
|
|
2
2
|
import type { Database, SceneData } from './asset-loader';
|
|
3
|
-
import { AssetLoader } from './asset-loader';
|
|
4
3
|
import type { EffectsObject } from './effects-object';
|
|
5
4
|
import type { Material } from './material';
|
|
6
5
|
import { MaskRefManager } from './material';
|
|
@@ -28,7 +27,6 @@ export declare class Engine implements Disposable {
|
|
|
28
27
|
gpuCapability: GPUCapability;
|
|
29
28
|
jsonSceneData: SceneData;
|
|
30
29
|
objectInstance: Record<string, EffectsObject>;
|
|
31
|
-
assetLoader: AssetLoader;
|
|
32
30
|
database?: Database;
|
|
33
31
|
/**
|
|
34
32
|
* 渲染过程中错误队列
|
|
@@ -44,6 +42,7 @@ export declare class Engine implements Disposable {
|
|
|
44
42
|
protected geometries: Geometry[];
|
|
45
43
|
protected meshes: Mesh[];
|
|
46
44
|
protected renderPasses: RenderPass[];
|
|
45
|
+
private assetLoader;
|
|
47
46
|
/**
|
|
48
47
|
*
|
|
49
48
|
*/
|
|
@@ -56,7 +55,10 @@ export declare class Engine implements Disposable {
|
|
|
56
55
|
addEffectsObjectData(data: spec.EffectsObjectData): void;
|
|
57
56
|
findEffectsObjectData(uuid: string): spec.EffectsObjectData;
|
|
58
57
|
addInstance(effectsObject: EffectsObject): void;
|
|
59
|
-
|
|
58
|
+
/**
|
|
59
|
+
* @ignore
|
|
60
|
+
*/
|
|
61
|
+
findObject<T>(guid: spec.DataPath): T;
|
|
60
62
|
removeInstance(id: string): void;
|
|
61
63
|
addPackageDatas(scene: Scene): void;
|
|
62
64
|
createVFXItems(scene: Scene): Promise<void>;
|
|
@@ -14,6 +14,7 @@ export declare function version22Migration(json: JSONSceneLegacy): JSONSceneLega
|
|
|
14
14
|
*/
|
|
15
15
|
export declare function version31Migration(json: JSONScene): JSONScene;
|
|
16
16
|
export declare function version32Migration(json: JSONScene): JSONScene;
|
|
17
|
+
export declare function version33Migration(json: JSONScene): JSONScene;
|
|
17
18
|
export declare function processContent(composition: spec.CompositionData): void;
|
|
18
19
|
export declare function processMask(renderContent: any): void;
|
|
19
20
|
/**
|