@galacean/effects-threejs 2.0.0-alpha.30 → 2.0.0-alpha.32
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/index.js +302 -123
- package/dist/index.js.map +1 -1
- package/dist/index.min.js +2 -2
- package/dist/index.min.js.map +1 -1
- package/dist/index.mjs +302 -124
- package/dist/index.mjs.map +1 -1
- package/dist/three-composition.d.ts +1 -22
- package/dist/three-display-object.d.ts +4 -2
- package/package.json +2 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Scene, ShaderLibrary, Transform, MeshRendererOptions, EventSystem,
|
|
1
|
+
import type { Scene, ShaderLibrary, Transform, MeshRendererOptions, EventSystem, CompositionProps } from '@galacean/effects-core';
|
|
2
2
|
import { Composition } from '@galacean/effects-core';
|
|
3
3
|
import type THREE from 'three';
|
|
4
4
|
/**
|
|
@@ -28,27 +28,6 @@ export interface CompositionBaseProps {
|
|
|
28
28
|
* Shader 库
|
|
29
29
|
*/
|
|
30
30
|
shaderLibrary?: ShaderLibrary;
|
|
31
|
-
/**
|
|
32
|
-
* end 状态监听函数
|
|
33
|
-
*
|
|
34
|
-
* @param composition - composition 对象
|
|
35
|
-
* @returns
|
|
36
|
-
*/
|
|
37
|
-
onEnd?: (composition: Composition) => void;
|
|
38
|
-
/**
|
|
39
|
-
* 交互元素监听函数
|
|
40
|
-
*
|
|
41
|
-
* @param item
|
|
42
|
-
* @returns
|
|
43
|
-
*/
|
|
44
|
-
onMessageItem?: (item: MessageItem) => void;
|
|
45
|
-
/**
|
|
46
|
-
* player 暂停监听函授
|
|
47
|
-
*
|
|
48
|
-
* @param item
|
|
49
|
-
* @returns
|
|
50
|
-
*/
|
|
51
|
-
onPlayerPause?: (item: VFXItem) => void;
|
|
52
31
|
}
|
|
53
32
|
export interface ThreeCompositionProps extends CompositionProps {
|
|
54
33
|
/**
|
|
@@ -25,11 +25,11 @@ export declare class ThreeDisplayObject extends THREE.Group {
|
|
|
25
25
|
compositions: ThreeComposition[];
|
|
26
26
|
camera?: THREE.Camera;
|
|
27
27
|
renderer: Renderer;
|
|
28
|
+
assetManager: AssetManager;
|
|
29
|
+
env: string;
|
|
28
30
|
readonly width: number;
|
|
29
31
|
readonly height: number;
|
|
30
|
-
assetManager: AssetManager;
|
|
31
32
|
private baseCompositionIndex;
|
|
32
|
-
env: string;
|
|
33
33
|
/**
|
|
34
34
|
*
|
|
35
35
|
* @param context
|
|
@@ -47,6 +47,8 @@ export declare class ThreeDisplayObject extends THREE.Group {
|
|
|
47
47
|
*/
|
|
48
48
|
loadScene(scene: SceneLoadType, options?: SceneLoadOptions): Promise<Composition>;
|
|
49
49
|
loadScene(scene: SceneLoadType[], options?: SceneLoadOptions): Promise<Composition[]>;
|
|
50
|
+
pause(): void;
|
|
51
|
+
resume(): void;
|
|
50
52
|
private createComposition;
|
|
51
53
|
/**
|
|
52
54
|
*
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-threejs",
|
|
3
|
-
"version": "2.0.0-alpha.
|
|
3
|
+
"version": "2.0.0-alpha.32",
|
|
4
4
|
"description": "Galacean Effects runtime threejs plugin for the web",
|
|
5
5
|
"module": "./dist/index.mjs",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"registry": "https://registry.npmjs.org"
|
|
44
44
|
},
|
|
45
45
|
"dependencies": {
|
|
46
|
-
"@galacean/effects-core": "2.0.0-alpha.
|
|
46
|
+
"@galacean/effects-core": "2.0.0-alpha.32"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"three": "^0.149.0",
|