soonspacejs 2.10.6 → 2.10.8
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.10.
|
|
3
|
+
"version": "2.10.8",
|
|
4
4
|
"homepage": "http://www.xwbuilders.com:8800/",
|
|
5
5
|
"description": "soonspacejs 2.x",
|
|
6
6
|
"module": "./dist/index.esm.js",
|
|
@@ -29,5 +29,5 @@
|
|
|
29
29
|
"peerDependencies": {
|
|
30
30
|
"three": ">=0.155.0"
|
|
31
31
|
},
|
|
32
|
-
"gitHead": "
|
|
32
|
+
"gitHead": "f37d84b049ee95b44c2864a8454c77c8a0b282f1"
|
|
33
33
|
}
|
package/types/Library/Poi.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Icon } from './Icon';
|
|
|
3
3
|
import { Box3 } from 'three';
|
|
4
4
|
import { BaseObject3DInfo, IVector3, PoiType, ScaleFixed } from '../Interface';
|
|
5
5
|
interface PoiInfo extends BaseObject3DInfo {
|
|
6
|
-
url
|
|
6
|
+
url?: string;
|
|
7
7
|
type?: PoiType;
|
|
8
8
|
namePosition?: IVector3;
|
|
9
9
|
nameScale?: IVector3;
|
|
@@ -12,11 +12,16 @@ interface PoiInfo extends BaseObject3DInfo {
|
|
|
12
12
|
scaleFixed?: ScaleFixed | null;
|
|
13
13
|
}
|
|
14
14
|
interface NameCanvasInfo {
|
|
15
|
+
canvasWidth?: number;
|
|
16
|
+
canvasHeight?: number;
|
|
15
17
|
font?: string;
|
|
16
18
|
fillStyle?: CanvasFillStrokeStyles['fillStyle'];
|
|
17
19
|
strokeStyle?: CanvasFillStrokeStyles['strokeStyle'];
|
|
18
20
|
textAlign?: CanvasTextAlign;
|
|
19
21
|
textBaseline?: CanvasTextBaseline;
|
|
22
|
+
backgroundStyle?: CanvasFillStrokeStyles['fillStyle'];
|
|
23
|
+
borderStyle?: CanvasFillStrokeStyles['fillStyle'];
|
|
24
|
+
borderWidth?: number;
|
|
20
25
|
}
|
|
21
26
|
declare class Poi extends BaseObject3D {
|
|
22
27
|
icon?: Icon;
|
|
@@ -18,7 +18,7 @@ declare class PoiManage extends DefaultManage {
|
|
|
18
18
|
clone(poi: Poi, poiInfo: ClonePoiInfo, parent?: Object3D | null): Poi | void;
|
|
19
19
|
createToGroup(groupInfo: GroupInfo, poiInfo: PoiInfo[]): Group;
|
|
20
20
|
addForGroup(group: Group | null, poiInfo: PoiInfo[]): Group | null;
|
|
21
|
-
_createIconMaterial({ url, type, }: PoiInfo): SpriteMaterial;
|
|
21
|
+
_createIconMaterial({ url, type, }: PoiInfo): SpriteMaterial | undefined;
|
|
22
22
|
private _copyMaterial;
|
|
23
23
|
}
|
|
24
24
|
export default PoiManage;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { BufferGeometry } from 'three';
|
|
2
|
+
import { WorkerPool } from 'three/examples/jsm/utils/WorkerPool.js';
|
|
2
3
|
import { MeshBVH } from 'three-mesh-bvh';
|
|
3
4
|
declare class GenerateMeshBVHWorker {
|
|
4
|
-
workerPool:
|
|
5
|
+
workerPool: WorkerPool;
|
|
5
6
|
constructor();
|
|
6
7
|
generate(geometry: BufferGeometry, options?: any): Promise<MeshBVH | undefined>;
|
|
7
8
|
dispose(): void;
|