@galacean/effects-core 2.0.0-alpha.28 → 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.
@@ -12,5 +12,4 @@ export declare class PostProcessVolume extends ItemBehaviour {
12
12
  vignetteRoundness: number;
13
13
  useToneMapping: boolean;
14
14
  start(): void;
15
- update(dt: number): void;
16
15
  }
@@ -6,7 +6,7 @@ import { CompositionComponent } from './comp-vfx-item';
6
6
  import { CompositionSourceManager } from './composition-source-manager';
7
7
  import type { PluginSystem } from './plugin-system';
8
8
  import type { EventSystem, Plugin, Region } from './plugins';
9
- import type { PostProcessVolumeData, MeshRendererOptions, Renderer } from './render';
9
+ import type { MeshRendererOptions, Renderer } from './render';
10
10
  import { RenderFrame } from './render';
11
11
  import type { Scene, SceneType } from './scene';
12
12
  import type { Texture } from './texture';
@@ -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
@@ -175,7 +177,7 @@ export declare class Composition implements Disposable, LostHandler {
175
177
  /**
176
178
  * 后处理渲染配置
177
179
  */
178
- globalVolume: PostProcessVolumeData;
180
+ globalVolume: PostProcessVolume;
179
181
  protected rendererOptions: MeshRendererOptions | null;
180
182
  protected assigned: boolean;
181
183
  /**
@@ -188,7 +190,6 @@ export declare class Composition implements Disposable, LostHandler {
188
190
  protected readonly keepColorBuffer: boolean;
189
191
  protected rootComposition: CompositionComponent;
190
192
  protected readonly postLoaders: Plugin[];
191
- protected compositionSourceManager: CompositionSourceManager;
192
193
  /**
193
194
  * 合成暂停/播放 标识
194
195
  */
@@ -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 对象