@galacean/effects-core 2.0.0-alpha.27 → 2.0.0-alpha.29
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 +4 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/post-process-volume.d.ts +15 -0
- package/dist/composition-source-manager.d.ts +0 -2
- package/dist/composition.d.ts +6 -5
- package/dist/downloader.d.ts +9 -0
- package/dist/effects-package.d.ts +10 -6
- package/dist/index.js +825 -680
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +822 -680
- package/dist/index.mjs.map +1 -1
- package/dist/math/translate.d.ts +1 -1
- package/dist/plugins/interact/interact-item.d.ts +1 -0
- package/dist/plugins/particle/particle-system.d.ts +1 -0
- package/dist/plugins/sprite/sprite-item.d.ts +0 -1
- package/dist/plugins/text/text-item.d.ts +8 -0
- package/dist/render/global-volume.d.ts +4 -5
- package/dist/render/render-frame.d.ts +6 -6
- package/dist/scene.d.ts +1 -1
- package/dist/template-image.d.ts +3 -3
- package/dist/utils/device.d.ts +3 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vfx-item.d.ts +1 -7
- package/package.json +2 -2
- package/dist/asset-migrations.d.ts +0 -5
- package/dist/plugins/cal/animation-mixer-playable.d.ts +0 -4
- package/dist/plugins/cal/animation-playable-output.d.ts +0 -4
package/dist/camera.d.ts
CHANGED
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Vector3 } from '@galacean/effects-math/es/core/vector3';
|
|
2
|
+
import { Quaternion } from '@galacean/effects-math/es/core/quaternion';
|
|
3
|
+
import { Matrix4 } from '@galacean/effects-math/es/core/matrix4';
|
|
4
|
+
import { Euler } from '@galacean/effects-math/es/core/euler';
|
|
2
5
|
import * as spec from '@galacean/effects-specification';
|
|
3
6
|
interface CameraOptionsBase {
|
|
4
7
|
/**
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { ItemBehaviour } from './component';
|
|
2
|
+
export declare class PostProcessVolume extends ItemBehaviour {
|
|
3
|
+
useHDR: boolean;
|
|
4
|
+
useBloom: boolean;
|
|
5
|
+
threshold: number;
|
|
6
|
+
bloomIntensity: number;
|
|
7
|
+
brightness: number;
|
|
8
|
+
saturation: number;
|
|
9
|
+
contrast: number;
|
|
10
|
+
vignetteIntensity: number;
|
|
11
|
+
vignetteSmoothness: number;
|
|
12
|
+
vignetteRoundness: number;
|
|
13
|
+
useToneMapping: boolean;
|
|
14
|
+
start(): void;
|
|
15
|
+
}
|
|
@@ -2,7 +2,6 @@ import * as spec from '@galacean/effects-specification';
|
|
|
2
2
|
import type { SceneBindingData } from './comp-vfx-item';
|
|
3
3
|
import type { Engine } from './engine';
|
|
4
4
|
import type { PluginSystem } from './plugin-system';
|
|
5
|
-
import type { GlobalVolume } from './render';
|
|
6
5
|
import type { Scene, SceneRenderLevel } from './scene';
|
|
7
6
|
import type { Texture } from './texture';
|
|
8
7
|
import type { Disposable } from './utils';
|
|
@@ -15,7 +14,6 @@ export interface ContentOptions {
|
|
|
15
14
|
items: VFXItemProps[];
|
|
16
15
|
camera: spec.CameraOptions;
|
|
17
16
|
startTime: number;
|
|
18
|
-
globalVolume: GlobalVolume;
|
|
19
17
|
timelineAsset: spec.DataPath;
|
|
20
18
|
sceneBindings: SceneBindingData[];
|
|
21
19
|
}
|
package/dist/composition.d.ts
CHANGED
|
@@ -14,6 +14,7 @@ import type { Disposable, LostHandler } from './utils';
|
|
|
14
14
|
import type { VFXItemProps } from './vfx-item';
|
|
15
15
|
import { VFXItem } from './vfx-item';
|
|
16
16
|
import { type Matrix4 } from '@galacean/effects-math/es/core';
|
|
17
|
+
import type { PostProcessVolume } from './components/post-process-volume';
|
|
17
18
|
export interface CompositionStatistic {
|
|
18
19
|
loadTime: number;
|
|
19
20
|
loadStart: number;
|
|
@@ -91,6 +92,7 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
91
92
|
* @since 1.6.0
|
|
92
93
|
*/
|
|
93
94
|
interactive: boolean;
|
|
95
|
+
compositionSourceManager: CompositionSourceManager;
|
|
94
96
|
/**
|
|
95
97
|
* 合成结束行为是 spec.END_BEHAVIOR_PAUSE 或 spec.END_BEHAVIOR_PAUSE_AND_DESTROY 时执行的回调
|
|
96
98
|
* @internal
|
|
@@ -172,6 +174,10 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
172
174
|
* 合成全局时间
|
|
173
175
|
*/
|
|
174
176
|
globalTime: number;
|
|
177
|
+
/**
|
|
178
|
+
* 后处理渲染配置
|
|
179
|
+
*/
|
|
180
|
+
globalVolume: PostProcessVolume;
|
|
175
181
|
protected rendererOptions: MeshRendererOptions | null;
|
|
176
182
|
protected assigned: boolean;
|
|
177
183
|
/**
|
|
@@ -184,16 +190,11 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
184
190
|
protected readonly keepColorBuffer: boolean;
|
|
185
191
|
protected rootComposition: CompositionComponent;
|
|
186
192
|
protected readonly postLoaders: Plugin[];
|
|
187
|
-
protected compositionSourceManager: CompositionSourceManager;
|
|
188
193
|
/**
|
|
189
194
|
* 合成暂停/播放 标识
|
|
190
195
|
*/
|
|
191
196
|
private paused;
|
|
192
197
|
private lastVideoUpdateTime;
|
|
193
|
-
/**
|
|
194
|
-
* 后处理渲染配置
|
|
195
|
-
*/
|
|
196
|
-
private readonly globalVolume;
|
|
197
198
|
private readonly texInfo;
|
|
198
199
|
/**
|
|
199
200
|
* Composition 构造函数
|
package/dist/downloader.d.ts
CHANGED
|
@@ -53,6 +53,15 @@ export declare function loadWebPOptional(png: string, webp?: string): Promise<{
|
|
|
53
53
|
image: HTMLImageElement;
|
|
54
54
|
url: string;
|
|
55
55
|
}>;
|
|
56
|
+
/**
|
|
57
|
+
* 异步加载一个 AVIF 图片文件,如果不支持 AVIF,则加载 PNG 图片文件
|
|
58
|
+
* @param png - PNG 图片文件的 URL
|
|
59
|
+
* @param avif - AVIF 图片文件的 URL
|
|
60
|
+
*/
|
|
61
|
+
export declare function loadAVIFOptional(png: string, avif?: string): Promise<{
|
|
62
|
+
image: HTMLImageElement;
|
|
63
|
+
url: string;
|
|
64
|
+
}>;
|
|
56
65
|
/**
|
|
57
66
|
* 异步加载一个图片文件
|
|
58
67
|
* @param source - 图片文件的 URL、Blob 或 HTMLImageElement 对象
|
|
@@ -1,6 +1,14 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as spec from '@galacean/effects-specification';
|
|
2
|
+
interface FileSummary {
|
|
3
|
+
assetType: string;
|
|
4
|
+
guid: string;
|
|
5
|
+
}
|
|
6
|
+
/**
|
|
7
|
+
* @since 2.0.0
|
|
8
|
+
* @internal
|
|
9
|
+
*/
|
|
2
10
|
export declare class EffectsPackage {
|
|
3
|
-
fileSummary:
|
|
11
|
+
fileSummary: FileSummary;
|
|
4
12
|
exportObjectDatas: spec.EffectsObjectData[];
|
|
5
13
|
addData(effectsObjectData: spec.EffectsObjectData): void;
|
|
6
14
|
serializeToBinary(): Uint8Array;
|
|
@@ -8,8 +16,4 @@ export declare class EffectsPackage {
|
|
|
8
16
|
private geometryDataToBinary;
|
|
9
17
|
private binaryToGeometryData;
|
|
10
18
|
}
|
|
11
|
-
interface fileSummary {
|
|
12
|
-
assetType: string;
|
|
13
|
-
guid: string;
|
|
14
|
-
}
|
|
15
19
|
export {};
|