@galacean/effects-core 2.0.0-alpha.16 → 2.0.0-alpha.18
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/comp-vfx-item.d.ts +1 -1
- package/dist/components/component.d.ts +2 -2
- package/dist/components/effect-component.d.ts +1 -1
- package/dist/components/renderer-component.d.ts +1 -1
- package/dist/composition.d.ts +5 -4
- package/dist/constants.d.ts +1 -1
- package/dist/decorators.d.ts +4 -3
- package/dist/effects-object.d.ts +1 -0
- package/dist/fallback/migration.d.ts +3 -1
- package/dist/index.d.ts +1 -0
- package/dist/index.js +334 -361
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +331 -358
- package/dist/index.mjs.map +1 -1
- package/dist/material/utils.d.ts +3 -3
- package/dist/plugins/cal/calculate-item.d.ts +0 -3
- package/dist/plugins/index.d.ts +1 -2
- package/dist/plugins/interact/interact-item.d.ts +1 -1
- package/dist/plugins/particle/particle-mesh.d.ts +1 -1
- package/dist/plugins/particle/particle-system.d.ts +1 -1
- package/dist/plugins/particle/trail-mesh.d.ts +1 -1
- package/dist/plugins/sprite/sprite-mesh.d.ts +0 -4
- package/dist/plugins/text/index.d.ts +4 -0
- package/dist/plugins/timeline/track.d.ts +14 -14
- package/dist/render/shader.d.ts +4 -4
- package/dist/serialization-helper.d.ts +6 -5
- package/dist/shape/shape.d.ts +1 -1
- package/dist/texture/utils.d.ts +1 -1
- package/dist/transform.d.ts +3 -3
- package/dist/utils/index.d.ts +18 -13
- package/dist/vfx-item.d.ts +1 -2
- package/package.json +2 -2
package/dist/comp-vfx-item.d.ts
CHANGED
|
@@ -35,7 +35,7 @@ export declare class CompositionComponent extends ItemBehaviour {
|
|
|
35
35
|
createContent(): void;
|
|
36
36
|
onDestroy(): void;
|
|
37
37
|
hitTest(ray: Ray, x: number, y: number, regions: Region[], force?: boolean, options?: CompositionHitTestOptions): Region[];
|
|
38
|
-
fromData(data:
|
|
38
|
+
fromData(data: unknown): void;
|
|
39
39
|
private resolveBindings;
|
|
40
40
|
private resolveTrackBindingsWithRoot;
|
|
41
41
|
}
|
|
@@ -24,7 +24,7 @@ export declare abstract class Component extends EffectsObject {
|
|
|
24
24
|
* @internal
|
|
25
25
|
*/
|
|
26
26
|
export declare abstract class Behaviour extends Component {
|
|
27
|
-
_enabled
|
|
27
|
+
private _enabled;
|
|
28
28
|
/**
|
|
29
29
|
* 组件是否可以更新,true 更新,false 不更新
|
|
30
30
|
*/
|
|
@@ -32,7 +32,7 @@ export declare abstract class Behaviour extends Component {
|
|
|
32
32
|
get enabled(): boolean;
|
|
33
33
|
set enabled(value: boolean);
|
|
34
34
|
protected onBehaviourEnable(): void;
|
|
35
|
-
fromData(data:
|
|
35
|
+
fromData(data: unknown): void;
|
|
36
36
|
toData(): void;
|
|
37
37
|
}
|
|
38
38
|
/**
|
|
@@ -53,7 +53,7 @@ export declare class EffectComponent extends RendererComponent {
|
|
|
53
53
|
setMaterial(material: Material, destroy?: MaterialDestroyOptions | DestroyOptions.keep): void;
|
|
54
54
|
getHitTestParams: (force?: boolean) => HitTestTriangleParams | void;
|
|
55
55
|
getBoundingBox(): BoundingBoxTriangle | void;
|
|
56
|
-
fromData(data:
|
|
56
|
+
fromData(data: unknown): void;
|
|
57
57
|
toData(): void;
|
|
58
58
|
/**
|
|
59
59
|
* 销毁当前资源
|
package/dist/composition.d.ts
CHANGED
|
@@ -2,8 +2,9 @@ import type { Ray } from '@galacean/effects-math/es/core/index';
|
|
|
2
2
|
import * as spec from '@galacean/effects-specification';
|
|
3
3
|
import { Camera } from './camera';
|
|
4
4
|
import { CompositionComponent } from './comp-vfx-item';
|
|
5
|
+
import { CompositionSourceManager } from './composition-source-manager';
|
|
5
6
|
import type { PluginSystem } from './plugin-system';
|
|
6
|
-
import type { EventSystem, Region } from './plugins';
|
|
7
|
+
import type { EventSystem, Plugin, Region } from './plugins';
|
|
7
8
|
import type { MeshRendererOptions, Renderer } from './render';
|
|
8
9
|
import { RenderFrame } from './render';
|
|
9
10
|
import type { Scene, SceneType } from './scene';
|
|
@@ -160,6 +161,8 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
160
161
|
*/
|
|
161
162
|
protected readonly keepColorBuffer: boolean;
|
|
162
163
|
protected rootComposition: CompositionComponent;
|
|
164
|
+
protected readonly postLoaders: Plugin[];
|
|
165
|
+
protected compositionSourceManager: CompositionSourceManager;
|
|
163
166
|
/**
|
|
164
167
|
* 合成暂停/播放 标识
|
|
165
168
|
*/
|
|
@@ -170,8 +173,6 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
170
173
|
*/
|
|
171
174
|
private readonly globalVolume;
|
|
172
175
|
private readonly texInfo;
|
|
173
|
-
private readonly postLoaders;
|
|
174
|
-
private compositionSourceManager;
|
|
175
176
|
/**
|
|
176
177
|
* Composition 构造函数
|
|
177
178
|
* @param props - composition 的创建参数
|
|
@@ -278,7 +279,7 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
278
279
|
*/
|
|
279
280
|
protected reset(): void;
|
|
280
281
|
prepareRender(): void;
|
|
281
|
-
|
|
282
|
+
protected gatherRendererComponent(vfxItem: VFXItem, renderFrame: RenderFrame): void;
|
|
282
283
|
/**
|
|
283
284
|
* 是否合成需要重新播放
|
|
284
285
|
* @returns 重新播放合成标志位
|
package/dist/constants.d.ts
CHANGED
|
@@ -5,6 +5,6 @@ export declare const SEMANTIC_MAIN_PRE_COLOR_ATTACHMENT_0 = "PRE_MAIN_COLOR_0";
|
|
|
5
5
|
export declare const SEMANTIC_MAIN_PRE_COLOR_ATTACHMENT_SIZE_0 = "PRE_MAIN_COLOR_SIZE_0";
|
|
6
6
|
export declare const PLAYER_OPTIONS_ENV_EDITOR = "editor";
|
|
7
7
|
export declare const HELP_LINK: {
|
|
8
|
-
'Filter not imported': string;
|
|
9
8
|
'Item duration can\'t be less than 0': string;
|
|
9
|
+
'ValueType: 21/22 is not supported': string;
|
|
10
10
|
};
|
package/dist/decorators.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
+
export type ClassConstructor = new () => any;
|
|
1
2
|
export declare const effectsClassStore: Record<string, any>;
|
|
2
|
-
export declare function
|
|
3
|
-
export declare function serialize(type?:
|
|
4
|
-
export declare function
|
|
3
|
+
export declare function effectsClass(className: string): (target: Object, context?: unknown) => void;
|
|
4
|
+
export declare function serialize(type?: ClassConstructor, sourceName?: string): (target: Object, propertyKey: string | symbol) => void;
|
|
5
|
+
export declare function getMergedStore(target: Object): Record<string, any>;
|
package/dist/effects-object.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { BaseContent, JSONScene, JSONSceneLegacy } from '@galacean/effects-specification';
|
|
1
|
+
import type { BaseContent, BinaryFile, JSONScene, JSONSceneLegacy, SpineResource, SpineContent } from '@galacean/effects-specification';
|
|
2
2
|
/**
|
|
3
3
|
* 2.1 以下版本数据适配(mars-player@2.4.0 及以上版本支持 2.1 以下数据的适配)
|
|
4
4
|
*/
|
|
@@ -16,3 +16,5 @@ export declare function version30Migration(json: JSONSceneLegacy): JSONScene;
|
|
|
16
16
|
*/
|
|
17
17
|
export declare function version24Migration(json: JSONScene): JSONScene;
|
|
18
18
|
export declare function convertParam(content?: BaseContent): void;
|
|
19
|
+
export declare function convertBinaryAsset(bins: BinaryFile[], jsonScene: JSONScene): void;
|
|
20
|
+
export declare function convertSpineData(resource: SpineResource, content: SpineContent, jsonScene: JSONScene): void;
|
package/dist/index.d.ts
CHANGED