soonspacejs 2.6.37 → 2.6.38
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "soonspacejs",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.38",
|
|
4
4
|
"homepage": "http://www.xwbuilders.com:8800/",
|
|
5
5
|
"description": "soonspacejs 2.x",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"three-mesh-bvh": "0.5.23"
|
|
29
29
|
},
|
|
30
30
|
"peerDependencies": {
|
|
31
|
-
"three": ">=0.
|
|
31
|
+
"three": ">=0.152.2"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "94dd9eb1afbabdd3a46e71b66c8cb135286e4dc9"
|
|
34
34
|
}
|
package/types/Library/Poi.d.ts
CHANGED
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { BaseObject3D, BaseObject3DInfo } from './BaseObject3D';
|
|
2
2
|
import { Icon, IconInfo } from './Icon';
|
|
3
3
|
import { SpriteMaterial, Box3 } from 'three';
|
|
4
|
-
import {
|
|
4
|
+
import { ClonePoiInfo, IVector3, PoiType } from '../Interface';
|
|
5
5
|
interface PoiInfo extends BaseObject3DInfo {
|
|
6
6
|
url: string;
|
|
7
7
|
type?: PoiType;
|
|
8
|
-
|
|
8
|
+
namePosition?: IVector3;
|
|
9
|
+
nameScale?: IVector3;
|
|
9
10
|
}
|
|
10
11
|
interface CanvasTextInfo {
|
|
11
12
|
fontFamily?: string;
|
|
@@ -15,12 +16,13 @@ interface CanvasTextInfo {
|
|
|
15
16
|
textBaseline?: CanvasTextBaseline;
|
|
16
17
|
}
|
|
17
18
|
declare class Poi extends BaseObject3D {
|
|
18
|
-
readonly
|
|
19
|
+
readonly params: PoiInfo;
|
|
20
|
+
readonly iconType: PoiType;
|
|
19
21
|
icon: Icon;
|
|
20
22
|
text: Icon | null;
|
|
21
|
-
constructor(material: SpriteMaterial,
|
|
23
|
+
constructor(material: SpriteMaterial, params: PoiInfo);
|
|
22
24
|
getBoundingBox(padding?: number): Box3;
|
|
23
|
-
sClone<T extends BaseObject3D>(recursive?: boolean,
|
|
25
|
+
sClone<T extends BaseObject3D>(recursive?: boolean, params?: ClonePoiInfo): T;
|
|
24
26
|
_createIcon(material: SpriteMaterial): Icon;
|
|
25
27
|
_createText(info: IconInfo): Icon;
|
|
26
28
|
_createTextMaterial(info: IconInfo): SpriteMaterial;
|
|
@@ -17,7 +17,7 @@ export declare const getTextureName: (dataView: DataView, strLength: number, str
|
|
|
17
17
|
* @param modelUrl 模型资源路径
|
|
18
18
|
* @param name 贴图名称
|
|
19
19
|
*/
|
|
20
|
-
export declare const getTextureUrl: (url: string,
|
|
20
|
+
export declare const getTextureUrl: (url: string, textureName: string) => string;
|
|
21
21
|
/**
|
|
22
22
|
* 生成 sbm 纹理
|
|
23
23
|
* @param url
|