@galacean/effects-core 2.1.5 → 2.2.0-alpha.0
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-manager.d.ts +5 -0
- package/dist/config.d.ts +1 -0
- package/dist/downloader.d.ts +16 -4
- package/dist/index.js +559 -517
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +556 -518
- package/dist/index.mjs.map +1 -1
- package/dist/math/value-getters/value-getter.d.ts +4 -0
- package/dist/plugins/cal/animation-stream.d.ts +1 -2
- package/dist/plugins/cal/playable-graph.d.ts +1 -30
- package/dist/plugins/text/text-layout.d.ts +1 -1
- package/dist/plugins/timeline/playables/activation-mixer-playable.d.ts +3 -3
- package/dist/plugins/timeline/playables/color-property-mixer-playable.d.ts +3 -3
- package/dist/plugins/timeline/playables/float-property-mixer-playable.d.ts +3 -3
- package/dist/plugins/timeline/playables/index.d.ts +6 -2
- package/dist/plugins/timeline/playables/particle-mixer-playable.d.ts +5 -0
- package/dist/plugins/timeline/playables/sprite-color-mixer-playable.d.ts +5 -0
- package/dist/plugins/timeline/playables/sub-composition-mixer-playable.d.ts +3 -3
- package/dist/plugins/timeline/playables/track-mixer-playable.d.ts +12 -0
- package/dist/plugins/timeline/playables/transform-mixer-playable.d.ts +5 -0
- package/dist/plugins/timeline/playables/vector4-property-mixer-playable.d.ts +3 -3
- package/dist/plugins/timeline/track.d.ts +7 -6
- package/dist/plugins/timeline/tracks/activation-track.d.ts +3 -2
- package/dist/plugins/timeline/tracks/color-property-track.d.ts +3 -2
- package/dist/plugins/timeline/tracks/float-property-track.d.ts +3 -2
- package/dist/plugins/timeline/tracks/index.d.ts +1 -0
- package/dist/plugins/timeline/tracks/particle-track.d.ts +6 -0
- package/dist/plugins/timeline/tracks/property-track.d.ts +1 -1
- package/dist/plugins/timeline/tracks/sprite-color-track.d.ts +3 -0
- package/dist/plugins/timeline/tracks/sub-composition-track.d.ts +3 -2
- package/dist/plugins/timeline/tracks/transform-track.d.ts +3 -0
- package/dist/plugins/timeline/tracks/vector4-property-track.d.ts +3 -2
- package/dist/scene.d.ts +13 -1
- package/package.json +1 -1
package/dist/asset-manager.d.ts
CHANGED
|
@@ -22,6 +22,10 @@ export declare class AssetManager implements Disposable {
|
|
|
22
22
|
* TextureSource 来源
|
|
23
23
|
*/
|
|
24
24
|
private sourceFrom;
|
|
25
|
+
/**
|
|
26
|
+
* Texture 选项,用于创建 ImageBitmap
|
|
27
|
+
*/
|
|
28
|
+
private imageBitmapOptions;
|
|
25
29
|
/**
|
|
26
30
|
* 自定义文本缓存,随页面销毁而销毁
|
|
27
31
|
*/
|
|
@@ -64,6 +68,7 @@ export declare class AssetManager implements Disposable {
|
|
|
64
68
|
private loadJSON;
|
|
65
69
|
private loadBins;
|
|
66
70
|
private assignImagesToAssets;
|
|
71
|
+
private assignImageBitmapOptions;
|
|
67
72
|
private removeTimer;
|
|
68
73
|
/**
|
|
69
74
|
* 销毁方法
|
package/dist/config.d.ts
CHANGED
|
@@ -2,5 +2,6 @@ export declare const RUNTIME_ENV = "runtime_env";
|
|
|
2
2
|
export declare const RENDER_PREFER_LOOKUP_TEXTURE = "lookup_texture";
|
|
3
3
|
export declare const TEMPLATE_USE_OFFSCREEN_CANVAS = "offscreen_canvas";
|
|
4
4
|
export declare const POST_PROCESS_SETTINGS = "post_process_settings";
|
|
5
|
+
export declare const LOAD_PREFER_IMAGE_BITMAP = "load_image_bitmap";
|
|
5
6
|
export declare function getConfig<T extends number | boolean | string | Record<string, any>>(name: string): T;
|
|
6
7
|
export declare function setConfig<T extends number | boolean | string | Record<string, any>>(name: string, value: T): string | number | boolean | Record<string, any>;
|
package/dist/downloader.d.ts
CHANGED
|
@@ -46,8 +46,8 @@ export declare class Downloader {
|
|
|
46
46
|
* @param png - PNG 图片文件的 URL
|
|
47
47
|
* @param webp - WebP 图片文件的 URL
|
|
48
48
|
*/
|
|
49
|
-
export declare function loadWebPOptional(png: string, webp?: string): Promise<{
|
|
50
|
-
image: HTMLImageElement;
|
|
49
|
+
export declare function loadWebPOptional(png: string, webp?: string, options?: ImageBitmapOptions): Promise<{
|
|
50
|
+
image: HTMLImageElement | ImageBitmap;
|
|
51
51
|
url: string;
|
|
52
52
|
}>;
|
|
53
53
|
/**
|
|
@@ -55,8 +55,8 @@ export declare function loadWebPOptional(png: string, webp?: string): Promise<{
|
|
|
55
55
|
* @param png - PNG 图片文件的 URL
|
|
56
56
|
* @param avif - AVIF 图片文件的 URL
|
|
57
57
|
*/
|
|
58
|
-
export declare function loadAVIFOptional(png: string, avif?: string): Promise<{
|
|
59
|
-
image: HTMLImageElement;
|
|
58
|
+
export declare function loadAVIFOptional(png: string, avif?: string, options?: ImageBitmapOptions): Promise<{
|
|
59
|
+
image: HTMLImageElement | ImageBitmap;
|
|
60
60
|
url: string;
|
|
61
61
|
}>;
|
|
62
62
|
/**
|
|
@@ -80,4 +80,16 @@ export declare function loadBlob(url: string): Promise<Blob>;
|
|
|
80
80
|
*/
|
|
81
81
|
export declare function loadVideo(url: string | MediaProvider): Promise<HTMLVideoElement>;
|
|
82
82
|
export declare function loadMedia(url: string | string[], loadFn: (url: string) => Promise<HTMLImageElement | HTMLVideoElement>): Promise<HTMLImageElement | HTMLVideoElement>;
|
|
83
|
+
/**
|
|
84
|
+
* 异步加载一个图片文件,如果支持 ImageBitmap 则返回 ImageBitmap 对象
|
|
85
|
+
* @param source
|
|
86
|
+
* @param options
|
|
87
|
+
* @returns
|
|
88
|
+
*/
|
|
89
|
+
export declare function loadImageBitmap(source: string | Blob | HTMLImageElement, options?: ImageBitmapOptions): Promise<ImageBitmap | HTMLImageElement>;
|
|
90
|
+
/**
|
|
91
|
+
* 关闭 ImageBitMap,释放内存
|
|
92
|
+
* @param imgs
|
|
93
|
+
*/
|
|
94
|
+
export declare function closeImageBitMap(imgs: any): void;
|
|
83
95
|
export {};
|