@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.
- package/dist/components/post-process-volume.d.ts +0 -1
- package/dist/composition.d.ts +4 -3
- package/dist/downloader.d.ts +9 -0
- package/dist/index.js +595 -514
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +595 -515
- package/dist/index.mjs.map +1 -1
- 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/render-frame.d.ts +3 -4
- package/dist/scene.d.ts +1 -1
- package/dist/template-image.d.ts +3 -3
- package/package.json +2 -2
|
@@ -193,6 +193,7 @@ export declare class ParticleSystem extends Component {
|
|
|
193
193
|
resumeParticleEmission(): void;
|
|
194
194
|
getBoundingBox(): void | BoundingBoxSphere;
|
|
195
195
|
getHitTestParams: (force?: boolean) => void | HitTestCustomParams;
|
|
196
|
+
onAttached(): void;
|
|
196
197
|
fromData(data: unknown): void;
|
|
197
198
|
}
|
|
198
199
|
export {};
|
|
@@ -78,7 +78,6 @@ export declare class SpriteColorPlayableAsset extends PlayableAsset {
|
|
|
78
78
|
}
|
|
79
79
|
export interface SpriteColorPlayableAssetData extends spec.EffectsObjectData {
|
|
80
80
|
colorOverLifetime?: spec.ColorOverLifetime;
|
|
81
|
-
startColor?: spec.RGBAColorValue;
|
|
82
81
|
}
|
|
83
82
|
export declare class SpriteComponent extends RendererComponent {
|
|
84
83
|
renderer: SpriteItemRenderer;
|
|
@@ -5,6 +5,7 @@ import { SpriteComponent } from '../sprite/sprite-item';
|
|
|
5
5
|
import { TextLayout } from './text-layout';
|
|
6
6
|
import { TextStyle } from './text-style';
|
|
7
7
|
import type { Material } from '../../material';
|
|
8
|
+
import type { VFXItem } from '../../vfx-item';
|
|
8
9
|
export declare const DEFAULT_FONTS: string[];
|
|
9
10
|
export interface TextComponent extends TextComponentBase {
|
|
10
11
|
}
|
|
@@ -35,6 +36,7 @@ export declare class TextComponentBase {
|
|
|
35
36
|
engine: Engine;
|
|
36
37
|
material: Material;
|
|
37
38
|
lineCount: number;
|
|
39
|
+
item: VFXItem;
|
|
38
40
|
/***** mix 类型兼容用 *****/
|
|
39
41
|
private char;
|
|
40
42
|
updateWithOptions(options: spec.TextContentOptions): void;
|
|
@@ -129,6 +131,12 @@ export declare class TextComponentBase {
|
|
|
129
131
|
* @returns
|
|
130
132
|
*/
|
|
131
133
|
setFontScale(value: number): void;
|
|
134
|
+
/**
|
|
135
|
+
* 设置自适应宽高开关
|
|
136
|
+
* @param value - 是否自适应宽高开关
|
|
137
|
+
* @returns
|
|
138
|
+
*/
|
|
139
|
+
setAutoWidth(value: boolean): void;
|
|
132
140
|
/**
|
|
133
141
|
* 更新文本
|
|
134
142
|
* @returns
|
|
@@ -14,8 +14,7 @@ import { Mesh } from './mesh';
|
|
|
14
14
|
import type { RenderPassClearAction, RenderPassColorAttachmentOptions, RenderPassDepthStencilAttachment, RenderPassDestroyOptions, RenderPassStoreAction } from './render-pass';
|
|
15
15
|
import { RenderPass } from './render-pass';
|
|
16
16
|
import type { Renderer } from './renderer';
|
|
17
|
-
import type {
|
|
18
|
-
import type { RendererComponent } from '../components';
|
|
17
|
+
import type { PostProcessVolume, RendererComponent } from '../components';
|
|
19
18
|
/**
|
|
20
19
|
* 渲染数据,保存了当前渲染使用到的数据。
|
|
21
20
|
*/
|
|
@@ -128,7 +127,7 @@ export interface RenderFrameOptions {
|
|
|
128
127
|
/**
|
|
129
128
|
* 后处理渲染配置
|
|
130
129
|
*/
|
|
131
|
-
globalVolume?:
|
|
130
|
+
globalVolume?: PostProcessVolume;
|
|
132
131
|
/**
|
|
133
132
|
* 名称
|
|
134
133
|
*/
|
|
@@ -166,7 +165,7 @@ export declare class RenderFrame implements Disposable {
|
|
|
166
165
|
/**
|
|
167
166
|
* 存放后处理的属性设置
|
|
168
167
|
*/
|
|
169
|
-
globalVolume:
|
|
168
|
+
globalVolume: PostProcessVolume;
|
|
170
169
|
renderer: Renderer;
|
|
171
170
|
resource: RenderFrameResource;
|
|
172
171
|
keepColorBuffer?: boolean;
|
package/dist/scene.d.ts
CHANGED
package/dist/template-image.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
export declare function getBackgroundImage(template: TemplateContent, variables?:
|
|
1
|
+
import type * as spec from '@galacean/effects-specification';
|
|
2
|
+
export declare function getBackgroundImage(template: spec.TemplateContent, variables?: spec.TemplateVariables): string | string[] | HTMLImageElement | HTMLImageElement[] | undefined;
|
|
3
3
|
/**
|
|
4
4
|
* @param url
|
|
5
5
|
* @param template
|
|
@@ -7,4 +7,4 @@ export declare function getBackgroundImage(template: TemplateContent, variables?
|
|
|
7
7
|
* @param options
|
|
8
8
|
* @returns
|
|
9
9
|
*/
|
|
10
|
-
export declare function combineImageTemplate(url: string | HTMLImageElement, template?: TemplateContent, variables?:
|
|
10
|
+
export declare function combineImageTemplate(url: string | HTMLImageElement, template?: spec.TemplateContent, variables?: spec.TemplateVariables): Promise<HTMLImageElement>;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-core",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.29",
|
|
4
4
|
"description": "Galacean Effects runtime core for the web",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"registry": "https://registry.npmjs.org"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@galacean/effects-specification": "2.0.0-alpha.
|
|
45
|
+
"@galacean/effects-specification": "2.0.0-alpha.23",
|
|
46
46
|
"@galacean/effects-math": "1.1.0",
|
|
47
47
|
"flatbuffers": "24.3.25",
|
|
48
48
|
"uuid": "9.0.1"
|