@galacean/effects-core 2.0.0-alpha.0 → 2.0.0-alpha.10
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-loader.d.ts +19 -79
- package/dist/asset-manager.d.ts +6 -82
- package/dist/asset-migrations.d.ts +5 -2
- package/dist/canvas-pool.d.ts +10 -0
- package/dist/components/component.d.ts +1 -1
- package/dist/components/effect-component.d.ts +1 -1
- package/dist/composition.d.ts +11 -6
- package/dist/constants.d.ts +0 -1
- package/dist/decorators.d.ts +1 -1
- package/dist/downloader.d.ts +2 -8
- package/dist/effects-object.d.ts +2 -2
- package/dist/engine.d.ts +4 -3
- package/dist/index.d.ts +1 -1
- package/dist/index.js +17017 -19536
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +16994 -19500
- package/dist/index.mjs.map +1 -1
- package/dist/material/material.d.ts +18 -5
- package/dist/material/types.d.ts +0 -5
- package/dist/material/utils.d.ts +1 -1
- package/dist/math/bezier.d.ts +84 -0
- package/dist/math/keyframe-info.d.ts +39 -0
- package/dist/math/utils.d.ts +6 -7
- package/dist/math/value-getter.d.ts +32 -31
- package/dist/plugin-system.d.ts +1 -2
- package/dist/plugins/cal/calculate-item.d.ts +2 -2
- package/dist/plugins/cal/calculate-vfx-item.d.ts +8 -3
- package/dist/plugins/cal/playable-graph.d.ts +4 -0
- package/dist/plugins/cal/track.d.ts +3 -4
- package/dist/plugins/camera/camera-controller-node.d.ts +1 -1
- package/dist/plugins/interact/interact-mesh.d.ts +1 -1
- package/dist/plugins/particle/particle-loader.d.ts +1 -1
- package/dist/plugins/particle/particle-mesh.d.ts +6 -6
- package/dist/plugins/particle/particle-vfx-item.d.ts +1 -0
- package/dist/plugins/particle/trail-mesh.d.ts +6 -6
- package/dist/plugins/plugin.d.ts +1 -2
- package/dist/plugins/sprite/sprite-item.d.ts +13 -3
- package/dist/plugins/text/text-item.d.ts +1 -0
- package/dist/render/create-copy-shader.d.ts +1 -1
- package/dist/render/global-volume.d.ts +3 -0
- package/dist/render/index.d.ts +1 -0
- package/dist/render/render-frame.d.ts +2 -2
- package/dist/render/render-pass.d.ts +2 -2
- package/dist/{semantic-map.d.ts → render/semantic-map.d.ts} +4 -4
- package/dist/render/shader.d.ts +9 -2
- package/dist/scene.d.ts +80 -4
- package/dist/serialization-helper.d.ts +1 -0
- package/dist/shader/index.d.ts +0 -11
- package/dist/shape/sphere.d.ts +0 -3
- package/dist/template-image.d.ts +10 -0
- package/dist/texture/texture.d.ts +6 -0
- package/dist/ticker.d.ts +5 -0
- package/dist/transform.d.ts +3 -3
- package/dist/vfx-item.d.ts +2 -2
- package/package.json +4 -4
- package/dist/template-image/index.d.ts +0 -67
- package/dist/template-image/qcanvas-viewer.d.ts +0 -21
- package/dist/template-image/qtext.d.ts +0 -96
- package/dist/template-image/template-v1.d.ts +0 -27
- package/dist/template-image/text-metrics.d.ts +0 -18
package/dist/asset-loader.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as spec from '@galacean/effects-specification';
|
|
2
2
|
import type { EffectsObject } from './effects-object';
|
|
3
3
|
import type { Engine } from './engine';
|
|
4
|
+
import type { ShaderMarcos } from './render';
|
|
4
5
|
import type { VFXItemProps } from './vfx-item';
|
|
5
6
|
/**
|
|
6
7
|
* @since 2.0.0
|
|
@@ -17,87 +18,26 @@ export declare class AssetLoader {
|
|
|
17
18
|
export declare class Database {
|
|
18
19
|
loadGUID(guid: string): Promise<EffectsObject | undefined>;
|
|
19
20
|
}
|
|
20
|
-
export
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
SpriteComponent = 4,
|
|
26
|
-
ParticleSystem = 5,
|
|
27
|
-
InteractComponent = 6,
|
|
28
|
-
CameraController = 7,
|
|
29
|
-
Geometry = 8,
|
|
30
|
-
Texture = 9,
|
|
31
|
-
TextComponent = 10,
|
|
32
|
-
MeshComponent = 10000,
|
|
33
|
-
SkyboxComponent = 10001,
|
|
34
|
-
LightComponent = 10002,
|
|
35
|
-
CameraComponent = 10003,
|
|
36
|
-
ModelPluginComponent = 10004,
|
|
37
|
-
TreeComponent = 10005
|
|
21
|
+
export interface MaterialData extends spec.MaterialData {
|
|
22
|
+
/**
|
|
23
|
+
* shader的宏定义
|
|
24
|
+
*/
|
|
25
|
+
marcos?: ShaderMarcos;
|
|
38
26
|
}
|
|
39
|
-
export interface
|
|
40
|
-
|
|
27
|
+
export interface GeometryData extends spec.EffectsObjectData {
|
|
28
|
+
vertexData: spec.VertexData;
|
|
29
|
+
indexFormat: number;
|
|
30
|
+
indexOffset: number;
|
|
31
|
+
buffer: string;
|
|
41
32
|
}
|
|
42
|
-
export interface EffectsObjectData {
|
|
43
|
-
id: string;
|
|
44
|
-
name?: string;
|
|
45
|
-
dataType: number;
|
|
46
|
-
}
|
|
47
|
-
export interface MaterialData extends EffectsObjectData {
|
|
48
|
-
shader: DataPath;
|
|
49
|
-
blending?: boolean;
|
|
50
|
-
zWrite?: boolean;
|
|
51
|
-
zTest?: boolean;
|
|
52
|
-
floats: Record<string, number>;
|
|
53
|
-
ints: Record<string, number>;
|
|
54
|
-
vector2s?: Record<string, spec.vec2>;
|
|
55
|
-
vector3s?: Record<string, spec.vec3>;
|
|
56
|
-
vector4s: Record<string, {
|
|
57
|
-
x: number;
|
|
58
|
-
y: number;
|
|
59
|
-
z: number;
|
|
60
|
-
w: number;
|
|
61
|
-
}>;
|
|
62
|
-
colors: Record<string, {
|
|
63
|
-
r: number;
|
|
64
|
-
g: number;
|
|
65
|
-
b: number;
|
|
66
|
-
a: number;
|
|
67
|
-
}>;
|
|
68
|
-
matrices?: Record<string, spec.mat4>;
|
|
69
|
-
matrice3s?: Record<string, spec.mat3>;
|
|
70
|
-
textures?: Record<string, DataPath>;
|
|
71
|
-
floatArrays?: Record<string, number[]>;
|
|
72
|
-
vector4Arrays?: Record<string, number[]>;
|
|
73
|
-
matrixArrays?: Record<string, number[]>;
|
|
74
|
-
}
|
|
75
|
-
export interface GeometryData extends EffectsObjectData {
|
|
76
|
-
vertices?: number[];
|
|
77
|
-
uvs?: number[];
|
|
78
|
-
normals?: number[];
|
|
79
|
-
indices?: number[];
|
|
80
|
-
}
|
|
81
|
-
export interface ShaderData extends EffectsObjectData {
|
|
82
|
-
vertex: string;
|
|
83
|
-
fragment: string;
|
|
84
|
-
properties?: string;
|
|
85
|
-
}
|
|
86
|
-
export interface EffectComponentData extends EffectsObjectData {
|
|
33
|
+
export interface EffectComponentData extends spec.EffectsObjectData {
|
|
87
34
|
_priority: number;
|
|
88
|
-
item: DataPath;
|
|
89
|
-
materials: DataPath[];
|
|
90
|
-
geometry: DataPath;
|
|
35
|
+
item: spec.DataPath;
|
|
36
|
+
materials: spec.DataPath[];
|
|
37
|
+
geometry: spec.DataPath;
|
|
91
38
|
}
|
|
92
39
|
export type VFXItemData = VFXItemProps & {
|
|
93
|
-
dataType: DataType;
|
|
94
|
-
components: DataPath[];
|
|
40
|
+
dataType: spec.DataType;
|
|
41
|
+
components: spec.DataPath[];
|
|
95
42
|
};
|
|
96
|
-
export type SceneData = Record<string, EffectsObjectData>;
|
|
97
|
-
export interface EffectsPackageData {
|
|
98
|
-
fileSummary: {
|
|
99
|
-
guid: string;
|
|
100
|
-
assetType: string;
|
|
101
|
-
};
|
|
102
|
-
exportObjects: EffectsObjectData[];
|
|
103
|
-
}
|
|
43
|
+
export type SceneData = Record<string, spec.EffectsObjectData>;
|
package/dist/asset-manager.d.ts
CHANGED
|
@@ -1,87 +1,7 @@
|
|
|
1
|
-
import type * as spec from '@galacean/effects-specification';
|
|
2
|
-
import type { JSONValue } from './downloader';
|
|
3
1
|
import { Downloader } from './downloader';
|
|
4
|
-
import type { Scene } from './scene';
|
|
2
|
+
import type { Scene, SceneLoadOptions, SceneType } from './scene';
|
|
5
3
|
import type { Disposable } from './utils';
|
|
6
4
|
import type { Renderer } from './render';
|
|
7
|
-
/**
|
|
8
|
-
* 场景加载参数
|
|
9
|
-
*/
|
|
10
|
-
export interface SceneLoadOptions {
|
|
11
|
-
/**
|
|
12
|
-
* 动态数据的参数
|
|
13
|
-
* key 是 JSON 中配置的字段名
|
|
14
|
-
* value 是要使用的值,图片使用 url 链接
|
|
15
|
-
* 图片链接可以使用数组传递,如果第一个加载失败,将尝试使用第二个地址
|
|
16
|
-
*
|
|
17
|
-
* @example
|
|
18
|
-
* ``` ts
|
|
19
|
-
* {
|
|
20
|
-
* variables: {
|
|
21
|
-
* bg: ['url','fallback_url'], // 如果两个图片都失败,将会触发加载失败
|
|
22
|
-
* fg: 'url' // 如果图片加载失败,将会触发加载失败,
|
|
23
|
-
* amount: 88.8,
|
|
24
|
-
* name: 'abc'
|
|
25
|
-
* }
|
|
26
|
-
* }
|
|
27
|
-
* ```
|
|
28
|
-
*/
|
|
29
|
-
variables?: Record<string, number | string | string[]>;
|
|
30
|
-
/**
|
|
31
|
-
* 模板图片缩放倍数
|
|
32
|
-
* @default 1 如果图片比较糊,可以用 2(但会增大图片内存)
|
|
33
|
-
*/
|
|
34
|
-
templateScale?: number;
|
|
35
|
-
/**
|
|
36
|
-
* 是否使用压缩纹理
|
|
37
|
-
*/
|
|
38
|
-
useCompressedTexture?: boolean;
|
|
39
|
-
/**
|
|
40
|
-
* 渲染分级。
|
|
41
|
-
* 分级之后,只会加载当前渲染等级的资源。
|
|
42
|
-
* 当渲染等级被设置为 B 后,player 的 fps 会降到 30 帧
|
|
43
|
-
* @default 's'
|
|
44
|
-
*/
|
|
45
|
-
renderLevel?: spec.RenderLevel;
|
|
46
|
-
/**
|
|
47
|
-
* 资源加载超时,时间单位秒
|
|
48
|
-
* @default 10s
|
|
49
|
-
*/
|
|
50
|
-
timeout?: number;
|
|
51
|
-
/***
|
|
52
|
-
* 用于给 plugin 的加载数据
|
|
53
|
-
* key/value 的内容由 plugin 自己实现
|
|
54
|
-
*/
|
|
55
|
-
pluginData?: Record<string, any>;
|
|
56
|
-
/**
|
|
57
|
-
* 场景加载时的环境(加载后把 env 结果写入 scene)
|
|
58
|
-
* @default '' - 编辑器中为 'editor'
|
|
59
|
-
*/
|
|
60
|
-
env?: string;
|
|
61
|
-
/**
|
|
62
|
-
* 加载后是否自动播放
|
|
63
|
-
* @default true
|
|
64
|
-
*/
|
|
65
|
-
autoplay?: boolean;
|
|
66
|
-
/**
|
|
67
|
-
* 合成播放完成后是否需要再使用,是的话生命周期结束后不会 `dispose`
|
|
68
|
-
* @default false
|
|
69
|
-
*/
|
|
70
|
-
reusable?: boolean;
|
|
71
|
-
/**
|
|
72
|
-
* 播放速度,当速度为负数时,合成倒播
|
|
73
|
-
*/
|
|
74
|
-
speed?: number;
|
|
75
|
-
}
|
|
76
|
-
/**
|
|
77
|
-
* 场景类型
|
|
78
|
-
*/
|
|
79
|
-
export type SceneType = string | JSONValue | Scene;
|
|
80
|
-
export type SceneWithOptionsType = {
|
|
81
|
-
scene: SceneType;
|
|
82
|
-
options: SceneLoadOptions;
|
|
83
|
-
};
|
|
84
|
-
export type SceneLoadType = SceneType | SceneWithOptionsType;
|
|
85
5
|
/**
|
|
86
6
|
* 资源管理器
|
|
87
7
|
* 用于加载和动效中所有的资源文件,包括图片、插件、图层粒子数据等
|
|
@@ -118,6 +38,10 @@ export declare class AssetManager implements Disposable {
|
|
|
118
38
|
*/
|
|
119
39
|
constructor(options?: SceneLoadOptions, downloader?: Downloader);
|
|
120
40
|
updateOptions(options?: SceneLoadOptions): void;
|
|
41
|
+
/**
|
|
42
|
+
* 根据用户传入的参数修改场景数据
|
|
43
|
+
*/
|
|
44
|
+
private updateSceneData;
|
|
121
45
|
/**
|
|
122
46
|
* 场景创建,通过 json 创建出场景对象,并进行提前编译等工作
|
|
123
47
|
* @param url - json 的 URL 链接或者 json 对象
|
|
@@ -125,7 +49,7 @@ export declare class AssetManager implements Disposable {
|
|
|
125
49
|
* @param options - 扩展参数
|
|
126
50
|
* @returns
|
|
127
51
|
*/
|
|
128
|
-
loadScene(url:
|
|
52
|
+
loadScene(url: SceneType, renderer?: Renderer, options?: {
|
|
129
53
|
env: string;
|
|
130
54
|
}): Promise<Scene>;
|
|
131
55
|
private precompile;
|
|
@@ -1,2 +1,5 @@
|
|
|
1
|
-
import type
|
|
2
|
-
|
|
1
|
+
import type * as spec from '@galacean/effects-specification';
|
|
2
|
+
/**
|
|
3
|
+
* 提取并转换 JSON 数据中的 anchor 值
|
|
4
|
+
*/
|
|
5
|
+
export declare function convertAnchor(anchor?: spec.vec2, particleOrigin?: spec.ParticleOrigin): spec.vec2;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
declare class CanvasPool {
|
|
2
|
+
readonly elements: HTMLCanvasElement[];
|
|
3
|
+
constructor();
|
|
4
|
+
dispose(): void;
|
|
5
|
+
getCanvas(): HTMLCanvasElement;
|
|
6
|
+
saveCanvas(canvas: HTMLCanvasElement): void;
|
|
7
|
+
}
|
|
8
|
+
export declare const canvasPool: CanvasPool;
|
|
9
|
+
export declare function getDefaultTemplateCanvasPool(): CanvasPool;
|
|
10
|
+
export {};
|
|
@@ -13,7 +13,7 @@ export declare abstract class Component extends EffectsObject {
|
|
|
13
13
|
/**
|
|
14
14
|
* 附加到的 VFXItem 对象 Transform 组件
|
|
15
15
|
*/
|
|
16
|
-
get transform(): import("
|
|
16
|
+
get transform(): import("@galacean/effects-core").Transform;
|
|
17
17
|
onAttached(): void;
|
|
18
18
|
onDestroy(): void;
|
|
19
19
|
fromData(data: any): void;
|
|
@@ -4,7 +4,7 @@ import type { Engine } from '../engine';
|
|
|
4
4
|
import type { Material, MaterialDestroyOptions } from '../material';
|
|
5
5
|
import type { BoundingBoxTriangle, HitTestTriangleParams } from '../plugins';
|
|
6
6
|
import type { MeshDestroyOptions, Renderer } from '../render';
|
|
7
|
-
import { Geometry } from '../render';
|
|
7
|
+
import type { Geometry } from '../render';
|
|
8
8
|
import { DestroyOptions } from '../utils';
|
|
9
9
|
import { RendererComponent } from './renderer-component';
|
|
10
10
|
/**
|
package/dist/composition.d.ts
CHANGED
|
@@ -3,12 +3,11 @@ import * as spec from '@galacean/effects-specification';
|
|
|
3
3
|
import { Camera } from './camera';
|
|
4
4
|
import { CompositionComponent } from './comp-vfx-item';
|
|
5
5
|
import type { CompositionSourceManager } from './composition-source-manager';
|
|
6
|
-
import type { JSONValue } from './downloader';
|
|
7
6
|
import type { PluginSystem } from './plugin-system';
|
|
8
7
|
import type { EventSystem, Region } from './plugins';
|
|
9
8
|
import type { MeshRendererOptions, Renderer } from './render';
|
|
10
9
|
import { RenderFrame } from './render';
|
|
11
|
-
import type { Scene } from './scene';
|
|
10
|
+
import type { Scene, SceneType } from './scene';
|
|
12
11
|
import type { Texture } from './texture';
|
|
13
12
|
import { Transform } from './transform';
|
|
14
13
|
import type { Disposable, LostHandler } from './utils';
|
|
@@ -23,7 +22,7 @@ export interface MessageItem {
|
|
|
23
22
|
id: string;
|
|
24
23
|
name: string;
|
|
25
24
|
phrase: number;
|
|
26
|
-
compositionId:
|
|
25
|
+
compositionId: string;
|
|
27
26
|
}
|
|
28
27
|
/**
|
|
29
28
|
*
|
|
@@ -99,7 +98,7 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
99
98
|
/**
|
|
100
99
|
* 合成id
|
|
101
100
|
*/
|
|
102
|
-
readonly id:
|
|
101
|
+
readonly id: string;
|
|
103
102
|
/**
|
|
104
103
|
* 画布宽度
|
|
105
104
|
*/
|
|
@@ -139,7 +138,7 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
139
138
|
/**
|
|
140
139
|
* 合成对应的 url 或者 JSON
|
|
141
140
|
*/
|
|
142
|
-
readonly url:
|
|
141
|
+
readonly url: SceneType;
|
|
143
142
|
/**
|
|
144
143
|
* 合成根元素
|
|
145
144
|
*/
|
|
@@ -239,6 +238,12 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
239
238
|
* @param speed - 速度
|
|
240
239
|
*/
|
|
241
240
|
setSpeed(speed: number): void;
|
|
241
|
+
/**
|
|
242
|
+
* 设置合成的可见性
|
|
243
|
+
* @since 2.0.0
|
|
244
|
+
* @param visible - 是否可见
|
|
245
|
+
*/
|
|
246
|
+
setVisible(visible: boolean): void;
|
|
242
247
|
/**
|
|
243
248
|
* 获取合成的动画速度
|
|
244
249
|
* @returns
|
|
@@ -342,7 +347,7 @@ export declare class Composition implements Disposable, LostHandler {
|
|
|
342
347
|
* 获取 engine 对象
|
|
343
348
|
* @returns
|
|
344
349
|
*/
|
|
345
|
-
getEngine(): import("
|
|
350
|
+
getEngine(): import("@galacean/effects-core").Engine;
|
|
346
351
|
/**
|
|
347
352
|
* Item 求交测试,返回求交结果列表,x 和 y 是归一化到[-1, 1]区间的值,原点在左上角
|
|
348
353
|
* @param x - 鼠标或触点的 x,已经归一化到[-1, 1]
|
package/dist/constants.d.ts
CHANGED
|
@@ -4,7 +4,6 @@ export declare const SEMANTIC_PRE_COLOR_ATTACHMENT_SIZE_0 = "PRE_COLOR_SIZE_0";
|
|
|
4
4
|
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
|
-
export declare const FILTER_NAME_NONE = "none";
|
|
8
7
|
export declare const HELP_LINK: {
|
|
9
8
|
'Filter not imported': string;
|
|
10
9
|
'Item duration can\'t be less than 0': string;
|
package/dist/decorators.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export declare const effectsClassStore: Record<
|
|
1
|
+
export declare const effectsClassStore: Record<string, any>;
|
|
2
2
|
export declare function getMergedStore(target: any): any;
|
|
3
3
|
export declare function serialize(sourceName?: string): (target: any, propertyKey: any) => void;
|
|
4
4
|
export declare function effectsClass(className: any): (target: any, context?: any) => void;
|
package/dist/downloader.d.ts
CHANGED
|
@@ -3,12 +3,6 @@ type ErrorHandler = (status: number, responseText: string) => void;
|
|
|
3
3
|
/**
|
|
4
4
|
*
|
|
5
5
|
*/
|
|
6
|
-
type VideoLoadOptions = {
|
|
7
|
-
/**
|
|
8
|
-
* 视频是否循环播放
|
|
9
|
-
*/
|
|
10
|
-
loop?: boolean;
|
|
11
|
-
};
|
|
12
6
|
/**
|
|
13
7
|
* JSON 值,它可以是字符串、数字、布尔值、对象或者 JSON 值的数组。
|
|
14
8
|
*
|
|
@@ -77,7 +71,7 @@ export declare function loadBlob(url: string): Promise<Blob>;
|
|
|
77
71
|
/**
|
|
78
72
|
* 异步加载一个视频文件
|
|
79
73
|
* @param url - 视频文件的 URL 或 MediaProvider 对象
|
|
80
|
-
* @param options - 加载参数
|
|
81
74
|
*/
|
|
82
|
-
export declare function loadVideo(url: string | MediaProvider
|
|
75
|
+
export declare function loadVideo(url: string | MediaProvider): Promise<HTMLVideoElement>;
|
|
76
|
+
export declare function loadMedia(url: string | string[], loadFn: (url: string) => Promise<HTMLImageElement | HTMLVideoElement>): Promise<HTMLImageElement | HTMLVideoElement>;
|
|
83
77
|
export {};
|
package/dist/effects-object.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type
|
|
1
|
+
import type * as spec from '@galacean/effects-specification';
|
|
2
2
|
import type { Engine } from './engine';
|
|
3
3
|
/**
|
|
4
4
|
* @since 2.0.0
|
|
@@ -20,6 +20,6 @@ export declare abstract class EffectsObject {
|
|
|
20
20
|
*
|
|
21
21
|
* @param data - 对象的序列化的数据
|
|
22
22
|
*/
|
|
23
|
-
fromData(data: EffectsObjectData): void;
|
|
23
|
+
fromData(data: spec.EffectsObjectData): void;
|
|
24
24
|
dispose(): void;
|
|
25
25
|
}
|
package/dist/engine.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import
|
|
1
|
+
import * as spec from '@galacean/effects-specification';
|
|
2
|
+
import type { Database, SceneData } from './asset-loader';
|
|
2
3
|
import { AssetLoader } from './asset-loader';
|
|
3
4
|
import type { EffectsObject } from './effects-object';
|
|
4
5
|
import type { Material } from './material';
|
|
@@ -30,8 +31,8 @@ export declare class Engine implements Disposable {
|
|
|
30
31
|
*/
|
|
31
32
|
static create: (gl: WebGLRenderingContext | WebGL2RenderingContext) => Engine;
|
|
32
33
|
clearResources(): void;
|
|
33
|
-
addEffectsObjectData(data: EffectsObjectData): void;
|
|
34
|
-
findEffectsObjectData(uuid: string): EffectsObjectData;
|
|
34
|
+
addEffectsObjectData(data: spec.EffectsObjectData): void;
|
|
35
|
+
findEffectsObjectData(uuid: string): spec.EffectsObjectData;
|
|
35
36
|
addInstance(effectsObject: EffectsObject): void;
|
|
36
37
|
getInstance(id: string): EffectsObject;
|
|
37
38
|
removeInstance(id: string): void;
|
package/dist/index.d.ts
CHANGED
|
@@ -22,7 +22,6 @@ export * from './plugin-system';
|
|
|
22
22
|
export * from './plugins';
|
|
23
23
|
export * from './render';
|
|
24
24
|
export * from './scene';
|
|
25
|
-
export * from './semantic-map';
|
|
26
25
|
export * from './shader';
|
|
27
26
|
export * from './shape';
|
|
28
27
|
export * from './template-image';
|
|
@@ -32,3 +31,4 @@ export * from './ticker';
|
|
|
32
31
|
export * from './transform';
|
|
33
32
|
export * from './utils';
|
|
34
33
|
export * from './vfx-item';
|
|
34
|
+
export * from './canvas-pool';
|