soonspacejs 2.6.31 → 2.6.33
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.esm.js +4 -4
- package/package.json +2 -2
- package/types/Loader/SbmLoader/SbkDecoder.d.ts +1 -0
- package/types/Loader/SbmLoader/SbmPrivateLoader.d.ts +0 -7
- package/types/Loader/SbmLoader/SbmPublicLoader.d.ts +0 -7
- package/types/Loader/SbmLoader/utils/generateSbm.d.ts +14 -0
- package/types/Shared/map.d.ts +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "soonspacejs",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.33",
|
|
4
4
|
"homepage": "http://www.xwbuilders.com:8800/",
|
|
5
5
|
"description": "soonspacejs 2.x",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"peerDependencies": {
|
|
31
31
|
"three": ">=0.151.3"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "2db4ab083d914bbd93ad273f406a40b6ee3a88e8"
|
|
34
34
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function decodeSbk(buffer: ArrayBuffer): ArrayBuffer | undefined;
|
|
@@ -34,13 +34,6 @@ declare class SbmPrivateLoader {
|
|
|
34
34
|
model: Model;
|
|
35
35
|
caches: SbmCache;
|
|
36
36
|
}>;
|
|
37
|
-
/**
|
|
38
|
-
* 获取材质贴图路径
|
|
39
|
-
* @param modelUrl 模型资源路径
|
|
40
|
-
* @param name 贴图名称
|
|
41
|
-
* @param isPlatform 是否是平台资源
|
|
42
|
-
*/
|
|
43
|
-
getTextureUrl(url: string, textureName: string, isPlatform?: boolean): string;
|
|
44
37
|
}
|
|
45
38
|
export { ModelLoadingProgress, ModelLoadingProgressCallback, };
|
|
46
39
|
export { SbmPrivateLoader, };
|
|
@@ -34,12 +34,5 @@ declare class SbmPublicLoader {
|
|
|
34
34
|
model: Model;
|
|
35
35
|
caches: SbmCache;
|
|
36
36
|
}>;
|
|
37
|
-
/**
|
|
38
|
-
* 获取材质贴图路径
|
|
39
|
-
* @param modelUrl 模型资源路径
|
|
40
|
-
* @param name 贴图名称
|
|
41
|
-
* @param isPlatform 是否是平台资源
|
|
42
|
-
*/
|
|
43
|
-
getTextureUrl(url: string, textureName: string, isPlatform?: boolean): string;
|
|
44
37
|
}
|
|
45
38
|
export { SbmPublicLoader, };
|
|
@@ -5,6 +5,20 @@ import { MeshStandardMaterial } from 'three';
|
|
|
5
5
|
* @returns
|
|
6
6
|
*/
|
|
7
7
|
export declare const isPNG: (textureUrl?: string) => boolean;
|
|
8
|
+
/**
|
|
9
|
+
* 获取材质贴图名称
|
|
10
|
+
* @param dataView 二进制数据视图表
|
|
11
|
+
* @param strLength 名称字符长度
|
|
12
|
+
* @param strOffset 名称字符偏移量
|
|
13
|
+
*/
|
|
14
|
+
export declare const getTextureName: (dataView: DataView, strLength: number, strOffset: number) => string;
|
|
15
|
+
/**
|
|
16
|
+
* 获取材质贴图路径
|
|
17
|
+
* @param modelUrl 模型资源路径
|
|
18
|
+
* @param name 贴图名称
|
|
19
|
+
* @param isPlatform 是否是平台资源
|
|
20
|
+
*/
|
|
21
|
+
export declare const getTextureUrl: (url: string, textureName: string, isPlatform?: boolean) => string;
|
|
8
22
|
/**
|
|
9
23
|
* 生成 sbm 纹理
|
|
10
24
|
* @param url
|
package/types/Shared/map.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Texture } from 'three';
|
|
1
|
+
import { Texture, CubeTexture, DataTexture } from 'three';
|
|
2
2
|
import { GetTextureOptions, IColor } from '../Interface';
|
|
3
|
-
declare function getTexture({ path, file, }: GetTextureOptions): Promise<Texture>;
|
|
3
|
+
declare function getTexture({ path, file, }: GetTextureOptions): Promise<CubeTexture | DataTexture | Texture>;
|
|
4
4
|
export { getTexture, };
|
|
5
5
|
interface GradientTextureOptions {
|
|
6
6
|
colors: IColor[];
|