@xeokit/xeokit-sdk 2.6.78-rc2-no-las → 2.6.78
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/xeokit-sdk.cjs.js +32532 -15213
- package/dist/xeokit-sdk.es.js +32531 -15214
- package/dist/xeokit-sdk.es5.js +29446 -30855
- package/dist/xeokit-sdk.min.cjs.js +8 -8
- package/dist/xeokit-sdk.min.es.js +8 -8
- package/dist/xeokit-sdk.min.es5.js +33 -34
- package/package.json +4 -7
- package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +68 -68
- package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -1
- package/src/plugins/LASLoaderPlugin/index.js +1 -1
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV1.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV10.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV12.js +9 -9
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV2.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV3.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV4.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV5.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV6.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV7.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV8.js +5 -5
- package/src/plugins/XKTLoaderPlugin/parsers/ParserV9.js +5 -5
- package/src/plugins/index.js +2 -2
- package/src/viewer/scene/Entity.js +6 -0
- package/src/viewer/scene/model/SceneModelEntity.js +26 -0
- package/src/viewer/scene/model/vbo/batching/triangles/VBOBatchingTrianglesLayer.js +44 -0
- package/src/viewer/scene/model/vbo/instancing/triangles/VBOInstancingTrianglesLayer.js +58 -0
- package/src/viewer/scene/sectionCaps/SectionCaps.js +33 -27
- package/src/viewer/scene/webgl/ArrayBuf.js +20 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +108 -26
- package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +14 -3
- package/types/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.d.ts +23 -5
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +25 -5
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +100 -20
- package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +14 -3
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +83 -18
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +106 -21
- package/types/viewer/Configs.d.ts +24 -6
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +445 -66
- package/types/viewer/scene/Component.d.ts +1 -1
- package/types/viewer/scene/Entity.d.ts +191 -40
- package/types/viewer/scene/camera/Camera.d.ts +170 -50
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +57 -8
- package/types/viewer/scene/camera/CameraPath.d.ts +13 -8
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +22 -4
- package/types/viewer/scene/camera/CustomProjection.d.ts +21 -6
- package/types/viewer/scene/camera/Frustum.d.ts +90 -18
- package/types/viewer/scene/camera/Ortho.d.ts +54 -14
- package/types/viewer/scene/camera/Perspective.d.ts +70 -16
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +25 -21
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +7 -7
- package/types/viewer/scene/lights/AmbientLight.d.ts +26 -4
- package/types/viewer/scene/lights/DirLight.d.ts +52 -8
- package/types/viewer/scene/lights/PointLight.d.ts +93 -14
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +37 -12
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +119 -22
- package/types/viewer/scene/materials/Fresnel.d.ts +50 -10
- package/types/viewer/scene/materials/LambertMaterial.d.ts +90 -16
- package/types/viewer/scene/materials/LinesMaterial.d.ts +25 -7
- package/types/viewer/scene/materials/MetallicMaterial.d.ts +127 -40
- package/types/viewer/scene/materials/PhongMaterial.d.ts +185 -52
- package/types/viewer/scene/materials/PointsMaterial.d.ts +101 -20
- package/types/viewer/scene/materials/SpecularMaterial.d.ts +117 -41
- package/types/viewer/scene/materials/Texture.d.ts +62 -22
- package/types/viewer/scene/models/SceneModel.d.ts +233 -76
- package/types/viewer/scene/models/SceneModelEntity.d.ts +217 -51
- package/types/viewer/scene/models/SceneModelMesh.d.ts +4 -4
- package/types/viewer/scene/models/SceneModelTransform.d.ts +59 -14
- package/types/viewer/scene/paths/CubicBezierCurve.d.ts +73 -12
- package/types/viewer/scene/paths/Curve.d.ts +19 -6
- package/types/viewer/scene/paths/Path.d.ts +57 -10
- package/types/viewer/scene/paths/QuadraticBezierCurve.d.ts +57 -10
- package/types/viewer/scene/paths/SplineCurve.d.ts +32 -6
- package/types/viewer/scene/scene/Scene.d.ts +196 -94
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +69 -12
- package/types/viewer/scene/viewport/Viewport.d.ts +14 -4
- package/types/viewer/scene/webgl/PickResult.d.ts +28 -13
- package/dist/xeokit-sdk.es5.js.map +0 -1
- package/dist/xeokit-sdk.min.es5.js.map +0 -1
|
@@ -15,71 +15,143 @@ export declare class Frustum extends Component {
|
|
|
15
15
|
camera: Camera;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the position of the Frustum's left plane on the View-space X-axis.
|
|
19
19
|
*
|
|
20
20
|
* Fires a {@link Frustum.left:emits} emits on change.
|
|
21
|
+
*
|
|
22
|
+
* @param {Number} value New left frustum plane position.
|
|
23
|
+
*/
|
|
24
|
+
set left(arg: number);
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Gets the position of the Frustum's left plane on the View-space X-axis.
|
|
28
|
+
*
|
|
29
|
+
* @return {Number} Left frustum plane position.
|
|
30
|
+
*/
|
|
31
|
+
get left(): number;
|
|
32
|
+
|
|
33
|
+
/**
|
|
34
|
+
* Sets the position of the Frustum's right plane on the View-space X-axis.
|
|
35
|
+
*
|
|
36
|
+
* Fires a {@link Frustum.right:emits} emits on change.
|
|
37
|
+
*
|
|
38
|
+
* @param {Number} value New right frustum plane position.
|
|
21
39
|
*/
|
|
22
|
-
|
|
40
|
+
set right(arg: number);
|
|
23
41
|
|
|
24
42
|
/**
|
|
25
|
-
*
|
|
43
|
+
* Gets the position of the Frustum's right plane on the View-space X-axis.
|
|
26
44
|
*
|
|
27
45
|
* Fires a {@link Frustum.right:emits} emits on change.
|
|
46
|
+
*
|
|
47
|
+
* @return {Number} Right frustum plane position.
|
|
28
48
|
*/
|
|
29
|
-
right: number;
|
|
49
|
+
get right(): number;
|
|
30
50
|
|
|
31
51
|
/**
|
|
32
|
-
*
|
|
52
|
+
* Sets the position of the Frustum's bottom plane on the View-space Y-axis.
|
|
33
53
|
*
|
|
34
54
|
* Fires a {@link Frustum.bottom:emits} emits on change.
|
|
35
55
|
*
|
|
36
56
|
* @emits {"bottom"} event with the value of this property whenever it changes.
|
|
57
|
+
*
|
|
58
|
+
* @param {Number} value New bottom frustum plane position.
|
|
37
59
|
*/
|
|
38
|
-
bottom: number;
|
|
60
|
+
set bottom(arg: number);
|
|
39
61
|
|
|
40
62
|
/**
|
|
41
|
-
*
|
|
63
|
+
* Gets the position of the Frustum's bottom plane on the View-space Y-axis.
|
|
64
|
+
*
|
|
65
|
+
* Fires a {@link Frustum.bottom:emits} emits on change.
|
|
66
|
+
*
|
|
67
|
+
* @return {Number} Bottom frustum plane position.
|
|
68
|
+
*/
|
|
69
|
+
get bottom(): number;
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Sets the position of the Frustum's top plane on the View-space Y-axis.
|
|
42
73
|
*
|
|
43
74
|
* Fires a {@link Frustum.top:emits} emits on change.
|
|
75
|
+
*
|
|
76
|
+
* @param {Number} value New top frustum plane position.
|
|
44
77
|
*/
|
|
45
|
-
top: number;
|
|
78
|
+
set top(arg: number);
|
|
46
79
|
|
|
47
80
|
/**
|
|
48
|
-
*
|
|
81
|
+
* Gets the position of the Frustum's top plane on the View-space Y-axis.
|
|
82
|
+
*
|
|
83
|
+
* Fires a {@link Frustum.top:emits} emits on change.
|
|
84
|
+
*
|
|
85
|
+
* @return {Number} Top frustum plane position.
|
|
86
|
+
*/
|
|
87
|
+
get top(): number;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Sets the position of the Frustum's near plane on the positive View-space Z-axis.
|
|
91
|
+
*
|
|
92
|
+
* Fires a {@link Frustum.near:emits} emits on change.
|
|
93
|
+
*
|
|
94
|
+
* Default value is ````0.1````.
|
|
95
|
+
*
|
|
96
|
+
* @param {Number} value New Frustum near plane position.
|
|
97
|
+
*/
|
|
98
|
+
set near(arg: number);
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Gets the position of the Frustum's near plane on the positive View-space Z-axis.
|
|
49
102
|
*
|
|
50
103
|
* Fires a {@link Frustum.near:emits} emits on change.
|
|
51
104
|
*
|
|
52
105
|
* Default value is ````0.1````.
|
|
106
|
+
*
|
|
107
|
+
* @return {Number} Near frustum plane position.
|
|
53
108
|
*/
|
|
54
|
-
near: number;
|
|
109
|
+
get near(): number;
|
|
55
110
|
|
|
56
111
|
/**
|
|
57
|
-
*
|
|
112
|
+
* Sets the position of the Frustum's far plane on the positive View-space Z-axis.
|
|
58
113
|
*
|
|
59
114
|
* Fires a {@link Frustum.far:emits} emits on change.
|
|
60
115
|
*
|
|
61
116
|
* Default value is ````10000.0````.
|
|
117
|
+
*
|
|
118
|
+
* @param {Number} value New far frustum plane position.
|
|
62
119
|
*/
|
|
63
|
-
far: number;
|
|
120
|
+
set far(arg: number);
|
|
64
121
|
|
|
65
122
|
/**
|
|
66
|
-
*
|
|
123
|
+
* Gets the position of the Frustum's far plane on the positive View-space Z-axis.
|
|
124
|
+
*
|
|
125
|
+
* Default value is ````10000.0````.
|
|
126
|
+
*
|
|
127
|
+
* @return {Number} Far frustum plane position.
|
|
128
|
+
*/
|
|
129
|
+
get far(): number;
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Gets the Frustum's projection transform matrix.
|
|
67
133
|
*
|
|
68
134
|
* Fires a {@link Frustum.matrix:emits} emits on change.
|
|
69
135
|
*
|
|
70
136
|
* Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
|
|
137
|
+
*
|
|
138
|
+
* @returns {Number[]} The Frustum's projection matrix matrix.
|
|
71
139
|
*/
|
|
72
|
-
|
|
140
|
+
get matrix(): number[];
|
|
73
141
|
|
|
74
142
|
/**
|
|
75
|
-
*
|
|
143
|
+
* Gets the inverse of {@link Frustum.matrix}.
|
|
144
|
+
*
|
|
145
|
+
* @returns {Number[]} The inverse orthographic projection matrix.
|
|
76
146
|
*/
|
|
77
|
-
|
|
147
|
+
get inverseMatrix(): number[];
|
|
78
148
|
|
|
79
149
|
/**
|
|
80
|
-
*
|
|
150
|
+
* Gets the transpose of {@link Frustum.matrix}.
|
|
151
|
+
*
|
|
152
|
+
* @returns {Number[]} The transpose of {@link Frustum.matrix}.
|
|
81
153
|
*/
|
|
82
|
-
|
|
154
|
+
get transposedMatrix(): number[];
|
|
83
155
|
|
|
84
156
|
/**
|
|
85
157
|
* Un-projects the given Canvas-space coordinates, using this Frustum projection.
|
|
@@ -15,52 +15,92 @@ export declare class Ortho extends Component {
|
|
|
15
15
|
camera: Camera;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets scale factor for this Ortho's extents on X and Y axis.
|
|
19
19
|
*
|
|
20
|
-
* Clamps to minimum value of ````0.01
|
|
20
|
+
* Clamps to minimum value of ````0.01```.
|
|
21
21
|
*
|
|
22
22
|
* Fires a "scale" event on change.
|
|
23
23
|
*
|
|
24
24
|
* Default value is ````1.0````
|
|
25
|
+
* @param {Number} value New scale value.
|
|
25
26
|
*/
|
|
26
|
-
scale: number;
|
|
27
|
+
set scale(arg: number);
|
|
27
28
|
|
|
28
29
|
/**
|
|
29
|
-
*
|
|
30
|
+
* Gets scale factor for this Ortho's extents on X and Y axis.
|
|
31
|
+
*
|
|
32
|
+
* Clamps to minimum value of ````0.01```.
|
|
33
|
+
*
|
|
34
|
+
* Default value is ````1.0````
|
|
35
|
+
*
|
|
36
|
+
* @returns {Number} New Ortho scale value.
|
|
37
|
+
*/
|
|
38
|
+
get scale(): number;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Sets the position of the Ortho's near plane on the positive View-space Z-axis.
|
|
30
42
|
*
|
|
31
43
|
* Fires a "near" emits on change.
|
|
32
44
|
*
|
|
33
45
|
* Default value is ````0.1````.
|
|
46
|
+
*
|
|
47
|
+
* @param {Number} value New Ortho near plane position.
|
|
34
48
|
*/
|
|
35
|
-
near: number;
|
|
49
|
+
set near(arg: number);
|
|
36
50
|
|
|
37
51
|
/**
|
|
38
|
-
*
|
|
52
|
+
* Gets the position of the Ortho's near plane on the positive View-space Z-axis.
|
|
53
|
+
*
|
|
54
|
+
* Default value is ````0.1````.
|
|
55
|
+
*
|
|
56
|
+
* @returns {Number} New Ortho near plane position.
|
|
57
|
+
*/
|
|
58
|
+
get near(): number;
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* Sets the position of the Ortho's far plane on the positive View-space Z-axis.
|
|
39
62
|
*
|
|
40
63
|
* Fires a "far" event on change.
|
|
41
64
|
*
|
|
42
65
|
* Default value is ````2000.0````.
|
|
66
|
+
*
|
|
67
|
+
* @param {Number} value New far ortho plane position.
|
|
43
68
|
*/
|
|
44
|
-
far: number;
|
|
69
|
+
set far(arg: number);
|
|
45
70
|
|
|
46
71
|
/**
|
|
47
|
-
*
|
|
72
|
+
* Gets the position of the Ortho's far plane on the positive View-space Z-axis.
|
|
73
|
+
*
|
|
74
|
+
* Default value is ````10000.0````.
|
|
75
|
+
*
|
|
76
|
+
* @returns {Number} New far ortho plane position.
|
|
77
|
+
*/
|
|
78
|
+
get far(): number;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* Gets the Ortho's projection transform matrix.
|
|
48
82
|
*
|
|
49
83
|
* Fires a "matrix" event on change.
|
|
50
84
|
*
|
|
51
85
|
* Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
|
|
86
|
+
*
|
|
87
|
+
* @returns {Number[]} The Ortho's projection matrix.
|
|
52
88
|
*/
|
|
53
|
-
|
|
89
|
+
get matrix(): number[];
|
|
54
90
|
|
|
55
91
|
/**
|
|
56
|
-
*
|
|
92
|
+
* Gets the inverse of {@link Ortho.matrix}.
|
|
93
|
+
*
|
|
94
|
+
* @returns {Number[]} The inverse of {@link Ortho.matrix}.
|
|
57
95
|
*/
|
|
58
|
-
|
|
96
|
+
get inverseMatrix(): number[];
|
|
59
97
|
|
|
60
98
|
/**
|
|
61
|
-
*
|
|
99
|
+
* Gets the transpose of {@link Ortho.matrix}.
|
|
100
|
+
*
|
|
101
|
+
* @returns {Number[]} The transpose of {@link Ortho.matrix}.
|
|
62
102
|
*/
|
|
63
|
-
|
|
103
|
+
get transposedMatrix(): number[];
|
|
64
104
|
|
|
65
105
|
/**
|
|
66
106
|
* Un-projects the given Canvas-space coordinates, using this Ortho projection.
|
|
@@ -72,4 +112,4 @@ export declare class Ortho extends Component {
|
|
|
72
112
|
* @param {Number[]} worldPos Outputs un-projected 3D World-space coordinates.
|
|
73
113
|
*/
|
|
74
114
|
unproject(canvasPos: number[], screenZ: number, screenPos: number[], viewPos: number[], worldPos: number[]): number[];
|
|
75
|
-
}
|
|
115
|
+
}
|
|
@@ -15,59 +15,113 @@ export declare class Perspective extends Component {
|
|
|
15
15
|
camera: Camera;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
*
|
|
18
|
+
* Sets the Perspective's field-of-view angle (FOV).
|
|
19
19
|
*
|
|
20
20
|
* Fires an "fov" event on change.
|
|
21
|
+
|
|
22
|
+
* Default value is ````60.0````.
|
|
23
|
+
*
|
|
24
|
+
* @param {Number} value New field-of-view.
|
|
25
|
+
*/
|
|
26
|
+
set fov(arg: number);
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Gets the Perspective's field-of-view angle (FOV).
|
|
21
30
|
*
|
|
22
31
|
* Default value is ````60.0````.
|
|
32
|
+
*
|
|
33
|
+
* @returns {Number} Current field-of-view.
|
|
23
34
|
*/
|
|
24
|
-
fov: number;
|
|
35
|
+
get fov(): number;
|
|
25
36
|
|
|
26
37
|
/**
|
|
27
|
-
*
|
|
38
|
+
* Sets the Perspective's FOV axis.
|
|
28
39
|
*
|
|
29
40
|
* Options are ````"x"````, ````"y"```` or ````"min"````, to use the minimum axis.
|
|
30
41
|
*
|
|
31
42
|
* Fires an "fovAxis" event on change.
|
|
43
|
+
|
|
44
|
+
* Default value ````"min"````.
|
|
45
|
+
*
|
|
46
|
+
* @param {String} value New FOV axis value.
|
|
47
|
+
*/
|
|
48
|
+
set fovAxis(arg: string);
|
|
49
|
+
|
|
50
|
+
/**
|
|
51
|
+
* Gets the Perspective's FOV axis.
|
|
32
52
|
*
|
|
33
|
-
*
|
|
34
|
-
|
|
35
|
-
|
|
53
|
+
* Options are ````"x"````, ````"y"```` or ````"min"````, to use the minimum axis.
|
|
54
|
+
*
|
|
55
|
+
* Fires an "fovAxis" event on change.
|
|
56
|
+
|
|
57
|
+
* Default value is ````"min"````.
|
|
58
|
+
*
|
|
59
|
+
* @returns {String} The current FOV axis value.
|
|
60
|
+
*/
|
|
61
|
+
get fovAxis(): string;
|
|
36
62
|
|
|
37
63
|
/**
|
|
38
|
-
*
|
|
64
|
+
* Sets the position of the Perspective's near plane on the positive View-space Z-axis.
|
|
39
65
|
*
|
|
40
66
|
* Fires a "near" event on change.
|
|
41
67
|
*
|
|
42
68
|
* Default value is ````0.1````.
|
|
69
|
+
*
|
|
70
|
+
* @param {Number} value New Perspective near plane position.
|
|
71
|
+
*/
|
|
72
|
+
set near(arg: number);
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* Gets the position of the Perspective's near plane on the positive View-space Z-axis.
|
|
76
|
+
*
|
|
77
|
+
* Fires an "emits" emits on change.
|
|
78
|
+
*
|
|
79
|
+
* Default value is ````0.1````.
|
|
80
|
+
*
|
|
81
|
+
* @returns The Perspective's near plane position.
|
|
43
82
|
*/
|
|
44
|
-
near: number;
|
|
83
|
+
get near(): number;
|
|
45
84
|
|
|
46
85
|
/**
|
|
47
|
-
*
|
|
86
|
+
* Sets the position of this Perspective's far plane on the positive View-space Z-axis.
|
|
48
87
|
*
|
|
49
88
|
* Fires a "far" event on change.
|
|
89
|
+
*
|
|
90
|
+
* @param {Number} value New Perspective far plane position.
|
|
50
91
|
*/
|
|
51
|
-
far: number;
|
|
92
|
+
set far(arg: number);
|
|
52
93
|
|
|
53
94
|
/**
|
|
54
|
-
*
|
|
95
|
+
* Gets the position of this Perspective's far plane on the positive View-space Z-axis.
|
|
96
|
+
*
|
|
97
|
+
* @return {Number} The Perspective's far plane position.
|
|
98
|
+
*/
|
|
99
|
+
get far(): number;
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* Gets the Perspective's projection transform matrix.
|
|
55
103
|
*
|
|
56
104
|
* Fires a "matrix" event on change.
|
|
57
105
|
*
|
|
58
106
|
* Default value is ````[1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1]````.
|
|
107
|
+
*
|
|
108
|
+
* @returns {Number[]} The Perspective's projection matrix.
|
|
59
109
|
*/
|
|
60
|
-
|
|
110
|
+
get matrix(): number[];
|
|
61
111
|
|
|
62
112
|
/**
|
|
63
|
-
*
|
|
113
|
+
* Gets the inverse of {@link Perspective.matrix}.
|
|
114
|
+
*
|
|
115
|
+
* @returns {Number[]} The inverse of {@link Perspective.matrix}.
|
|
64
116
|
*/
|
|
65
|
-
|
|
117
|
+
get inverseMatrix(): number[];
|
|
66
118
|
|
|
67
119
|
/**
|
|
68
|
-
*
|
|
120
|
+
* Gets the transpose of {@link Perspective.matrix}.
|
|
121
|
+
*
|
|
122
|
+
* @returns {Number[]} The transpose of {@link Perspective.matrix}.
|
|
69
123
|
*/
|
|
70
|
-
|
|
124
|
+
get transposedMatrix(): number[];
|
|
71
125
|
|
|
72
126
|
/**
|
|
73
127
|
* Un-projects the given Canvas-space coordinates and Screen-space depth, using this Perspective projection.
|
|
@@ -40,66 +40,70 @@ export declare class ReadableGeometry extends Geometry {
|
|
|
40
40
|
constructor(owner: Component, cfg?: ReadableGeometryConfiguration);
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
|
-
* Geometry
|
|
43
|
+
* Gets the Geometry"s primitive type.
|
|
44
44
|
*/
|
|
45
|
-
|
|
45
|
+
get primitive(): "points" | "lines"| "line-loop"| "line-strip"| "triangles"| "triangle-strip" | "triangle-fan";
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
|
-
*
|
|
48
|
+
* Indicates if this Geometry is quantized.
|
|
49
49
|
*/
|
|
50
|
-
|
|
50
|
+
get compressGeometry(): boolean;
|
|
51
51
|
|
|
52
52
|
/**
|
|
53
|
-
* Geometry's vertex positions.
|
|
53
|
+
* The Geometry's vertex positions.
|
|
54
54
|
*/
|
|
55
|
-
positions: number[];
|
|
55
|
+
get positions(): number[];
|
|
56
|
+
set positions(arg: number[]);
|
|
56
57
|
|
|
57
58
|
/**
|
|
58
|
-
* Geometry's vertex normals.
|
|
59
|
+
* The Geometry's vertex normals.
|
|
59
60
|
*/
|
|
60
|
-
normals: number[];
|
|
61
|
+
get normals(): number[];
|
|
62
|
+
set normals(arg: number[]);
|
|
61
63
|
|
|
62
64
|
/**
|
|
63
|
-
|
|
65
|
+
The Geometry's UV coordinates.
|
|
64
66
|
*/
|
|
65
|
-
uv: number[];
|
|
67
|
+
get uv(): number[];
|
|
68
|
+
set uv(arg: number[]);
|
|
66
69
|
|
|
67
70
|
/**
|
|
68
|
-
* Geometry's vertex colors.
|
|
71
|
+
* The Geometry's vertex colors.
|
|
69
72
|
*/
|
|
70
|
-
colors: number[];
|
|
73
|
+
get colors(): number[];
|
|
74
|
+
set colors(arg: number[]);
|
|
71
75
|
|
|
72
76
|
/**
|
|
73
|
-
* Geometry's indices.
|
|
77
|
+
* The Geometry's indices.
|
|
74
78
|
*/
|
|
75
|
-
|
|
79
|
+
get indices(): Uint16Array | Uint32Array;
|
|
76
80
|
|
|
77
81
|
/**
|
|
78
82
|
* Local-space axis-aligned 3D boundary (AABB) of this geometry.
|
|
79
83
|
*/
|
|
80
|
-
|
|
84
|
+
get aabb(): number[];
|
|
81
85
|
|
|
82
86
|
/**
|
|
83
87
|
* Local-space oriented 3D boundary (OBB) of this geometry.
|
|
84
88
|
*/
|
|
85
|
-
|
|
89
|
+
get obb(): number[];
|
|
86
90
|
|
|
87
91
|
/**
|
|
88
|
-
*
|
|
92
|
+
* Returns the surface area of this Mesh.
|
|
89
93
|
* @returns {number}
|
|
90
94
|
*/
|
|
91
|
-
|
|
95
|
+
get surfaceArea(): number;
|
|
92
96
|
|
|
93
97
|
/**
|
|
94
|
-
*
|
|
98
|
+
* Returns the centroid of this Mesh.
|
|
95
99
|
* @returns {number}
|
|
96
100
|
*/
|
|
97
|
-
|
|
101
|
+
get centroid(): number;
|
|
98
102
|
|
|
99
103
|
/**
|
|
100
104
|
* Approximate number of triangles in this ReadableGeometry.
|
|
101
105
|
*/
|
|
102
|
-
|
|
106
|
+
get numTriangles(): number;
|
|
103
107
|
|
|
104
108
|
destroy(): void;
|
|
105
109
|
}
|
|
@@ -36,30 +36,30 @@ export declare class VBOGeometry extends Geometry {
|
|
|
36
36
|
constructor(owner: Component, cfg?: VBOGeometryConfiguration);
|
|
37
37
|
|
|
38
38
|
/**
|
|
39
|
-
*
|
|
39
|
+
* Gets the primitive type.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
get primitive(): "points" | "lines"| "line-loop"| "line-strip"| "triangles"| "triangle-strip" | "triangle-fan";
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
*
|
|
44
|
+
* Gets the local-space axis-aligned 3D boundary (AABB).
|
|
45
45
|
*
|
|
46
46
|
* The AABB is represented by a six-element Float64Array containing the min/max extents of the axis-aligned volume, ie. ````[xmin, ymin,zmin,xmax,ymax, zmax]````.
|
|
47
47
|
*/
|
|
48
|
-
|
|
48
|
+
get aabb(): Number[];
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
*
|
|
51
|
+
* Gets the local-space oriented 3D boundary (OBB).
|
|
52
52
|
*
|
|
53
53
|
* The OBB is represented by a 32-element Float64Array containing the eight vertices of the box, where each vertex is a homogeneous coordinate having [x,y,z,w] elements.
|
|
54
54
|
*/
|
|
55
|
-
|
|
55
|
+
get obb(): Number[];
|
|
56
56
|
|
|
57
57
|
/**
|
|
58
58
|
* Approximate number of triangles in this VBOGeometry.
|
|
59
59
|
*
|
|
60
60
|
* Will be zero if {@link VBOGeometry#primitive} is not 'triangles', 'triangle-strip' or 'triangle-fan'.
|
|
61
61
|
*/
|
|
62
|
-
|
|
62
|
+
get numTriangles(): Number;
|
|
63
63
|
|
|
64
64
|
destroy(): void;
|
|
65
65
|
}
|
|
@@ -18,18 +18,40 @@ export declare class AmbientLight extends Light {
|
|
|
18
18
|
constructor(owner: Component, cfg: AmbientLightConfiguration);
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
*
|
|
21
|
+
* Sets the RGB color of this AmbientLight.
|
|
22
22
|
*
|
|
23
23
|
* Default value is ````[0.7, 0.7, 0.8]````.
|
|
24
|
+
*
|
|
25
|
+
* @param {Number[]} color The AmbientLight's RGB color.
|
|
26
|
+
*/
|
|
27
|
+
set color(color: number[]);
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Gets the RGB color of this AmbientLight.
|
|
31
|
+
*
|
|
32
|
+
* Default value is ````[0.7, 0.7, 0.8]````.
|
|
33
|
+
*
|
|
34
|
+
* @returns {Number[]} The AmbientLight's RGB color.
|
|
24
35
|
*/
|
|
25
|
-
color: number
|
|
36
|
+
get color(): number;
|
|
26
37
|
|
|
27
38
|
/**
|
|
28
|
-
*
|
|
39
|
+
* Sets the intensity of this AmbientLight.
|
|
29
40
|
*
|
|
30
41
|
* Default value is ````1.0```` for maximum intensity.
|
|
42
|
+
*
|
|
43
|
+
* @param {Number} intensity The AmbientLight's intensity.
|
|
44
|
+
*/
|
|
45
|
+
set intensity(intensity: number);
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Gets the intensity of this AmbientLight.
|
|
49
|
+
*
|
|
50
|
+
* Default value is ````1.0```` for maximum intensity.
|
|
51
|
+
*
|
|
52
|
+
* @returns {Number} The AmbientLight's intensity.
|
|
31
53
|
*/
|
|
32
|
-
intensity: number;
|
|
54
|
+
get intensity(): number;
|
|
33
55
|
|
|
34
56
|
/**
|
|
35
57
|
* Destroys this AmbientLight.
|
|
@@ -24,32 +24,76 @@ export declare class DirLight extends Light {
|
|
|
24
24
|
constructor(owner: Component, cfg: DirLightConfiguration);
|
|
25
25
|
|
|
26
26
|
/**
|
|
27
|
-
*
|
|
27
|
+
* Sets the direction in which the DirLight is shining.
|
|
28
28
|
*
|
|
29
29
|
* Default value is ````[1.0, 1.0, 1.0]````.
|
|
30
|
+
*
|
|
31
|
+
* @param {Number[]} value The direction vector.
|
|
32
|
+
*/
|
|
33
|
+
set dir(value: number);
|
|
34
|
+
|
|
35
|
+
/**
|
|
36
|
+
* Gets the direction in which the DirLight is shining.
|
|
37
|
+
*
|
|
38
|
+
* Default value is ````[1.0, 1.0, 1.0]````.
|
|
39
|
+
*
|
|
40
|
+
* @returns {Number[]} The direction vector.
|
|
30
41
|
*/
|
|
31
|
-
dir: number
|
|
42
|
+
get dir(): number;
|
|
32
43
|
|
|
33
44
|
/**
|
|
34
|
-
*
|
|
45
|
+
* Sets the RGB color of this DirLight.
|
|
35
46
|
*
|
|
36
47
|
* Default value is ````[0.7, 0.7, 0.8]````.
|
|
48
|
+
*
|
|
49
|
+
* @param {Number[]} color The DirLight's RGB color.
|
|
50
|
+
*/
|
|
51
|
+
set color(color: number[]);
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Gets the RGB color of this DirLight.
|
|
55
|
+
*
|
|
56
|
+
* Default value is ````[0.7, 0.7, 0.8]````.
|
|
57
|
+
*
|
|
58
|
+
* @returns {Number[]} The DirLight's RGB color.
|
|
37
59
|
*/
|
|
38
|
-
color: number[];
|
|
60
|
+
get color(): number[];
|
|
39
61
|
|
|
40
62
|
/**
|
|
41
|
-
*
|
|
63
|
+
* Sets the intensity of this DirLight.
|
|
64
|
+
*
|
|
65
|
+
* Default intensity is ````1.0```` for maximum intensity.
|
|
66
|
+
*
|
|
67
|
+
* @param {Number} intensity The DirLight's intensity
|
|
68
|
+
*/
|
|
69
|
+
set intensity(intensity: number);
|
|
70
|
+
|
|
71
|
+
/**
|
|
72
|
+
* Gets the intensity of this DirLight.
|
|
42
73
|
*
|
|
43
74
|
* Default value is ````1.0```` for maximum intensity.
|
|
75
|
+
*
|
|
76
|
+
* @returns {Number} The DirLight's intensity.
|
|
44
77
|
*/
|
|
45
|
-
intensity: number;
|
|
78
|
+
get intensity(): number;
|
|
46
79
|
|
|
47
80
|
/**
|
|
48
|
-
*
|
|
81
|
+
* Sets if this DirLight casts a shadow.
|
|
49
82
|
*
|
|
50
83
|
* Default value is ````false````.
|
|
84
|
+
*
|
|
85
|
+
* @param {Boolean} castsShadow Set ````true```` to cast shadows.
|
|
86
|
+
*/
|
|
87
|
+
set castsShadow(castsShadow: boolean);
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Gets if this DirLight casts a shadow.
|
|
91
|
+
*
|
|
92
|
+
* Default value is ````false````.
|
|
93
|
+
*
|
|
94
|
+
* @returns {Boolean} ````true```` if this DirLight casts shadows.
|
|
51
95
|
*/
|
|
52
|
-
castsShadow: boolean;
|
|
96
|
+
get castsShadow(): boolean;
|
|
53
97
|
|
|
54
98
|
/**
|
|
55
99
|
* Destroys this DirLight.
|