@galacean/effects-core 2.0.0-alpha.26 → 2.0.0-alpha.28
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/__definations__/fbeffects-object-data.d.ts +28 -0
- package/dist/__definations__/fbeffects-package-data.d.ts +26 -0
- package/dist/__definations__/fbgeometry-data.d.ts +77 -0
- package/dist/__definations__/fbsub-mesh.d.ts +26 -0
- package/dist/__definations__/fbvertex-channel.d.ts +33 -0
- package/dist/__definations__/fbvertex-data.d.ts +27 -0
- package/dist/__definations__/index.d.ts +6 -0
- package/dist/camera.d.ts +4 -1
- package/dist/components/index.d.ts +1 -0
- package/dist/components/post-process-volume.d.ts +16 -0
- package/dist/composition-source-manager.d.ts +1 -3
- package/dist/composition.d.ts +5 -5
- package/dist/effects-package.d.ts +19 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1925 -285
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +1922 -285
- 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/timeline/track.d.ts +2 -2
- package/dist/render/global-volume.d.ts +4 -5
- package/dist/render/render-frame.d.ts +6 -5
- package/dist/utils/device.d.ts +3 -0
- package/dist/utils/index.d.ts +1 -0
- package/dist/vfx-item.d.ts +2 -8
- package/package.json +5 -3
- 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/math/translate.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Vector3 } from '@galacean/effects-math/es/core/
|
|
1
|
+
import { Vector3 } from '@galacean/effects-math/es/core/vector3';
|
|
2
2
|
import type { ItemLinearVelOverLifetime } from '../plugins';
|
|
3
3
|
import type { ValueGetter } from './value-getter';
|
|
4
4
|
export declare function translatePoint(x: number, y: number): number[];
|
|
@@ -25,6 +25,7 @@ export declare class InteractComponent extends RendererComponent {
|
|
|
25
25
|
dragRatio: number[];
|
|
26
26
|
/** 是否响应点击和拖拽交互事件 */
|
|
27
27
|
private _interactive;
|
|
28
|
+
private hasBeenAddedToComposition;
|
|
28
29
|
set interactive(enable: boolean);
|
|
29
30
|
get interactive(): boolean;
|
|
30
31
|
start(): void;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EndBehavior } from '@galacean/effects-specification';
|
|
2
2
|
import type { PlayableGraph } from '../cal/playable-graph';
|
|
3
3
|
import { Playable, PlayableAsset, PlayableOutput } from '../cal/playable-graph';
|
|
4
4
|
import { ParticleSystem } from '../particle/particle-system';
|
|
@@ -13,7 +13,7 @@ export declare class TimelineClip {
|
|
|
13
13
|
start: number;
|
|
14
14
|
duration: number;
|
|
15
15
|
asset: PlayableAsset;
|
|
16
|
-
endBehavior:
|
|
16
|
+
endBehavior: EndBehavior;
|
|
17
17
|
constructor();
|
|
18
18
|
toLocalTime(time: number): number;
|
|
19
19
|
}
|
|
@@ -1,10 +1,9 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* 后处理配置
|
|
3
3
|
*/
|
|
4
|
-
export interface
|
|
5
|
-
usePostProcessing: boolean;
|
|
4
|
+
export interface PostProcessVolumeData {
|
|
6
5
|
useHDR: boolean;
|
|
7
|
-
useBloom:
|
|
6
|
+
useBloom: boolean;
|
|
8
7
|
threshold: number;
|
|
9
8
|
bloomIntensity: number;
|
|
10
9
|
brightness: number;
|
|
@@ -13,6 +12,6 @@ export interface GlobalVolume {
|
|
|
13
12
|
vignetteIntensity: number;
|
|
14
13
|
vignetteSmoothness: number;
|
|
15
14
|
vignetteRoundness: number;
|
|
16
|
-
useToneMapping:
|
|
15
|
+
useToneMapping: boolean;
|
|
17
16
|
}
|
|
18
|
-
export declare const defaultGlobalVolume:
|
|
17
|
+
export declare const defaultGlobalVolume: PostProcessVolumeData;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import type { vec4 } from '@galacean/effects-specification';
|
|
2
|
-
import type { Matrix4 } from '@galacean/effects-math/es/core/
|
|
3
|
-
import { Vector2
|
|
2
|
+
import type { Matrix4 } from '@galacean/effects-math/es/core/matrix4';
|
|
3
|
+
import { Vector2 } from '@galacean/effects-math/es/core/vector2';
|
|
4
|
+
import { Vector4 } from '@galacean/effects-math/es/core/vector4';
|
|
4
5
|
import type { Camera } from '../camera';
|
|
5
6
|
import type { UniformValue } from '../material';
|
|
6
7
|
import { PassTextureCache } from '../paas-texture-cache';
|
|
@@ -13,7 +14,7 @@ import { Mesh } from './mesh';
|
|
|
13
14
|
import type { RenderPassClearAction, RenderPassColorAttachmentOptions, RenderPassDepthStencilAttachment, RenderPassDestroyOptions, RenderPassStoreAction } from './render-pass';
|
|
14
15
|
import { RenderPass } from './render-pass';
|
|
15
16
|
import type { Renderer } from './renderer';
|
|
16
|
-
import type {
|
|
17
|
+
import type { PostProcessVolumeData } from './global-volume';
|
|
17
18
|
import type { RendererComponent } from '../components';
|
|
18
19
|
/**
|
|
19
20
|
* 渲染数据,保存了当前渲染使用到的数据。
|
|
@@ -127,7 +128,7 @@ export interface RenderFrameOptions {
|
|
|
127
128
|
/**
|
|
128
129
|
* 后处理渲染配置
|
|
129
130
|
*/
|
|
130
|
-
globalVolume?: Partial<
|
|
131
|
+
globalVolume?: Partial<PostProcessVolumeData>;
|
|
131
132
|
/**
|
|
132
133
|
* 名称
|
|
133
134
|
*/
|
|
@@ -165,7 +166,7 @@ export declare class RenderFrame implements Disposable {
|
|
|
165
166
|
/**
|
|
166
167
|
* 存放后处理的属性设置
|
|
167
168
|
*/
|
|
168
|
-
globalVolume:
|
|
169
|
+
globalVolume: PostProcessVolumeData;
|
|
169
170
|
renderer: Renderer;
|
|
170
171
|
resource: RenderFrameResource;
|
|
171
172
|
keepColorBuffer?: boolean;
|
package/dist/utils/device.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export declare function getPixelRatio(): number;
|
|
2
2
|
export declare function isIOS(): boolean;
|
|
3
|
+
export declare function isIOSByUA(): number;
|
|
3
4
|
export declare function isAndroid(): boolean;
|
|
4
5
|
export declare function isSimulatorCellPhone(): boolean;
|
|
6
|
+
export declare function isMiniProgram(): boolean;
|
|
5
7
|
export declare function isAlipayMiniApp(): boolean;
|
|
8
|
+
export declare function isWechatMiniApp(): boolean;
|
package/dist/utils/index.d.ts
CHANGED
package/dist/vfx-item.d.ts
CHANGED
|
@@ -53,7 +53,7 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
53
53
|
/**
|
|
54
54
|
* 元素动画结束时行为(如何处理元素)
|
|
55
55
|
*/
|
|
56
|
-
endBehavior: spec.
|
|
56
|
+
endBehavior: spec.EndBehavior | spec.ParentItemEndBehavior;
|
|
57
57
|
/**
|
|
58
58
|
* 元素是否可用
|
|
59
59
|
*/
|
|
@@ -216,7 +216,7 @@ export declare class VFXItem extends EffectsObject implements Disposable {
|
|
|
216
216
|
/**
|
|
217
217
|
* 获取元素用于计算光线投射的面片类型和参数
|
|
218
218
|
* @override
|
|
219
|
-
* @param force 元素没有开启交互也返回参数
|
|
219
|
+
* @param force - 元素没有开启交互也返回参数
|
|
220
220
|
*/
|
|
221
221
|
getHitTestParams(force?: boolean): void | HitTestBoxParams | HitTestTriangleParams | HitTestSphereParams | HitTestCustomParams;
|
|
222
222
|
/**
|
|
@@ -245,9 +245,3 @@ export declare namespace Item {
|
|
|
245
245
|
function isParticle(item: spec.Item): item is spec.ParticleItem;
|
|
246
246
|
function isNull(item: spec.Item): item is spec.NullItem;
|
|
247
247
|
}
|
|
248
|
-
/**
|
|
249
|
-
* (待废弃) 根据元素的类型创建对应的 `VFXItem` 实例
|
|
250
|
-
* @param props
|
|
251
|
-
* @param composition
|
|
252
|
-
*/
|
|
253
|
-
export declare function createVFXItem(props: VFXItemProps, composition: Composition): VFXItem;
|
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.28",
|
|
4
4
|
"description": "Galacean Effects runtime core for the web",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -42,13 +42,15 @@
|
|
|
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.22",
|
|
46
46
|
"@galacean/effects-math": "1.1.0",
|
|
47
|
+
"flatbuffers": "24.3.25",
|
|
47
48
|
"uuid": "9.0.1"
|
|
48
49
|
},
|
|
49
50
|
"scripts": {
|
|
50
51
|
"prebuild": "pnpm clean",
|
|
51
|
-
"build": "pnpm build:declaration && pnpm build:module",
|
|
52
|
+
"build": "pnpm build:fbs && pnpm build:declaration && pnpm build:module",
|
|
53
|
+
"build:fbs": "node ../../scripts/flatc ./src/__definations__/index.fbs",
|
|
52
54
|
"build:module": "rollup -c",
|
|
53
55
|
"build:declaration": "tsc -d --emitDeclarationOnly",
|
|
54
56
|
"clean": "rimraf dist && rimraf \"*+(.tsbuildinfo)\""
|