soonspacejs 2.6.36 → 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
|
}
|
|
@@ -50,7 +50,7 @@ declare class OrbitControls extends EventDispatcher implements OrbitControlsProp
|
|
|
50
50
|
};
|
|
51
51
|
target0: Vector3;
|
|
52
52
|
position0: Vector3;
|
|
53
|
-
zoom0:
|
|
53
|
+
zoom0: number;
|
|
54
54
|
_domElementKeyEvents: HTMLElement | null;
|
|
55
55
|
constructor(object: PerspectiveCamera | OrthographicCamera, domElement: HTMLElement);
|
|
56
56
|
}
|
|
@@ -93,6 +93,7 @@ interface ViewportOptions {
|
|
|
93
93
|
}
|
|
94
94
|
interface ViewportState {
|
|
95
95
|
useFreq: number;
|
|
96
|
+
delta: number;
|
|
96
97
|
/**
|
|
97
98
|
* 是否启用后处理
|
|
98
99
|
*/
|
|
@@ -135,7 +136,6 @@ export interface SSAOOptions {
|
|
|
135
136
|
aoSamples?: number;
|
|
136
137
|
denoiseSamples?: number;
|
|
137
138
|
denoiseRadius?: number;
|
|
138
|
-
halfRes?: boolean;
|
|
139
139
|
color?: IColor;
|
|
140
140
|
}
|
|
141
141
|
export interface SSGIOptions {
|
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;
|