@galacean/effects-threejs 2.1.0-alpha.0 → 2.1.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/index.js +21586 -18303
- 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 +23067 -19787
- package/dist/index.mjs.map +1 -1
- package/dist/three-composition.d.ts +0 -4
- package/dist/three-display-object.d.ts +4 -3
- package/dist/three-texture.d.ts +0 -5
- package/package.json +2 -2
|
@@ -48,10 +48,6 @@ export declare class ThreeComposition extends Composition {
|
|
|
48
48
|
*/
|
|
49
49
|
static shape: Record<string, number>;
|
|
50
50
|
constructor(props: ThreeCompositionProps, scene: Scene);
|
|
51
|
-
/**
|
|
52
|
-
* 更新 video texture 数据
|
|
53
|
-
*/
|
|
54
|
-
updateVideo(): void;
|
|
55
51
|
prepareRender(): void;
|
|
56
52
|
/**
|
|
57
53
|
* 获取 render 参数
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import type { EventSystem, SceneLoadOptions, Renderer, Composition
|
|
1
|
+
import type { EventSystem, SceneLoadOptions, Renderer, Composition } from '@galacean/effects-core';
|
|
2
|
+
import { Scene } from '@galacean/effects-core';
|
|
2
3
|
import { AssetManager } from '@galacean/effects-core';
|
|
3
4
|
import * as THREE from 'three';
|
|
4
5
|
import { ThreeComposition } from './three-composition';
|
|
@@ -45,8 +46,8 @@ export declare class ThreeDisplayObject extends THREE.Group {
|
|
|
45
46
|
* @param options - 加载可选参数
|
|
46
47
|
* @returns
|
|
47
48
|
*/
|
|
48
|
-
loadScene(scene:
|
|
49
|
-
loadScene(scene:
|
|
49
|
+
loadScene(scene: Scene.LoadType, options?: SceneLoadOptions): Promise<Composition>;
|
|
50
|
+
loadScene(scene: Scene.LoadType[], options?: SceneLoadOptions): Promise<Composition[]>;
|
|
50
51
|
pause(): void;
|
|
51
52
|
resume(): void;
|
|
52
53
|
private createComposition;
|
package/dist/three-texture.d.ts
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@galacean/effects-threejs",
|
|
3
|
-
"version": "2.1.0-alpha.
|
|
3
|
+
"version": "2.1.0-alpha.10",
|
|
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.1.0-alpha.
|
|
46
|
+
"@galacean/effects-core": "2.1.0-alpha.10"
|
|
47
47
|
},
|
|
48
48
|
"devDependencies": {
|
|
49
49
|
"three": "^0.149.0",
|