@xeokit/xeokit-sdk 2.6.86 → 2.6.87-rc0-no-las
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/README.md +3 -3
- package/dist/xeokit-sdk.cjs.js +15512 -32635
- package/dist/xeokit-sdk.es.js +15513 -32634
- package/dist/xeokit-sdk.es5.js +31259 -29843
- package/dist/xeokit-sdk.es5.js.map +1 -0
- 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 +34 -33
- package/dist/xeokit-sdk.min.es5.js.map +1 -0
- package/package.json +7 -3
- package/src/plugins/CxConverterIFCLoaderPlugin/CxConverterIFCLoaderPlugin.js +81 -81
- package/src/plugins/CxConverterIFCLoaderPlugin/index.js +1 -1
- package/src/plugins/LASLoaderPlugin/index.js +1 -1
- package/src/plugins/NavCubePlugin/NavCubePlugin.js +63 -22
- 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/CameraControl/lib/handlers/TouchPickHandler.js +7 -6
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +26 -108
- package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +3 -14
- package/types/plugins/DotBIMLoaderPlugin/DotBIMLoaderPlugin.d.ts +5 -23
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +5 -25
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +20 -100
- package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +3 -14
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +18 -83
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +21 -106
- package/types/viewer/Configs.d.ts +6 -24
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +66 -445
- package/types/viewer/scene/Component.d.ts +1 -1
- package/types/viewer/scene/Entity.d.ts +40 -186
- package/types/viewer/scene/camera/Camera.d.ts +50 -170
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +8 -57
- package/types/viewer/scene/camera/CameraPath.d.ts +8 -13
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +4 -22
- package/types/viewer/scene/camera/CustomProjection.d.ts +6 -21
- package/types/viewer/scene/camera/Frustum.d.ts +18 -90
- package/types/viewer/scene/camera/Ortho.d.ts +14 -54
- package/types/viewer/scene/camera/Perspective.d.ts +16 -70
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +21 -25
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +7 -7
- package/types/viewer/scene/lights/AmbientLight.d.ts +4 -26
- package/types/viewer/scene/lights/DirLight.d.ts +8 -52
- package/types/viewer/scene/lights/PointLight.d.ts +14 -93
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +12 -37
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +22 -119
- package/types/viewer/scene/materials/Fresnel.d.ts +10 -50
- package/types/viewer/scene/materials/LambertMaterial.d.ts +16 -90
- package/types/viewer/scene/materials/LinesMaterial.d.ts +7 -25
- package/types/viewer/scene/materials/MetallicMaterial.d.ts +40 -127
- package/types/viewer/scene/materials/PhongMaterial.d.ts +52 -185
- package/types/viewer/scene/materials/PointsMaterial.d.ts +20 -101
- package/types/viewer/scene/materials/SpecularMaterial.d.ts +41 -117
- package/types/viewer/scene/materials/Texture.d.ts +22 -62
- package/types/viewer/scene/models/SceneModel.d.ts +76 -233
- package/types/viewer/scene/models/SceneModelEntity.d.ts +50 -211
- package/types/viewer/scene/models/SceneModelMesh.d.ts +4 -4
- package/types/viewer/scene/models/SceneModelTransform.d.ts +14 -59
- package/types/viewer/scene/paths/CubicBezierCurve.d.ts +12 -73
- package/types/viewer/scene/paths/Curve.d.ts +6 -19
- package/types/viewer/scene/paths/Path.d.ts +10 -57
- package/types/viewer/scene/paths/QuadraticBezierCurve.d.ts +10 -57
- package/types/viewer/scene/paths/SplineCurve.d.ts +6 -32
- package/types/viewer/scene/scene/Scene.d.ts +94 -196
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +12 -69
- package/types/viewer/scene/viewport/Viewport.d.ts +4 -14
- package/types/viewer/scene/webgl/PickResult.d.ts +13 -28
|
@@ -23,104 +23,47 @@ export declare class SectionPlane extends Component {
|
|
|
23
23
|
constructor(owner?: Component, cfg?: SectionPlaneConfiguration);
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Whether this SectionPlane is active or not.
|
|
27
27
|
*
|
|
28
28
|
* Default value is ````true````.
|
|
29
|
-
*
|
|
30
|
-
* @param {Boolean} value Set ````true```` to activate else ````false```` to deactivate.
|
|
31
|
-
*/
|
|
32
|
-
set active(arg: boolean);
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Gets if this SectionPlane is active or not.
|
|
36
|
-
*
|
|
37
|
-
* Default value is ````true````.
|
|
38
|
-
*
|
|
39
|
-
* @returns {Boolean} Returns ````true```` if active.
|
|
40
|
-
*/
|
|
41
|
-
get active(): boolean;
|
|
42
|
-
|
|
43
|
-
/**
|
|
44
|
-
* Sets the World-space position of this SectionPlane's plane.
|
|
45
|
-
*
|
|
46
|
-
* Default value is ````[0, 0, 0]````.
|
|
47
|
-
*
|
|
48
|
-
* @param {Number[]} value New position.
|
|
49
29
|
*/
|
|
50
|
-
|
|
30
|
+
active: boolean;
|
|
51
31
|
|
|
52
32
|
/**
|
|
53
|
-
*
|
|
33
|
+
* The World-space position of this SectionPlane's plane.
|
|
54
34
|
*
|
|
55
35
|
* Default value is ````[0, 0, 0]````.
|
|
56
|
-
*
|
|
57
|
-
* @returns {Number[]} Current position.
|
|
58
|
-
*/
|
|
59
|
-
get pos(): number[];
|
|
60
|
-
|
|
61
|
-
/**
|
|
62
|
-
* Sets the quaternion of this SectionPlane's plane.
|
|
63
|
-
*
|
|
64
|
-
* Default value is ````[0, -1, 0, 0]````.
|
|
65
|
-
*
|
|
66
|
-
* @param {Number[]} value New quaternion.
|
|
67
36
|
*/
|
|
68
|
-
|
|
37
|
+
pos: number[];
|
|
69
38
|
|
|
70
39
|
/**
|
|
71
|
-
*
|
|
40
|
+
* The quaternion of this SectionPlane's plane.
|
|
72
41
|
*
|
|
73
42
|
* Default value is ````[0, -1, 0, 0]````.
|
|
74
|
-
*
|
|
75
|
-
* @returns {Number[]} value Current quaternion.
|
|
76
|
-
*/
|
|
77
|
-
get quaternion(): number[];
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Sets the roll of this SectionPlane's plane.
|
|
81
|
-
*
|
|
82
|
-
* Default value is ````0````.
|
|
83
|
-
*
|
|
84
|
-
* @param {Number[]} value New roll.
|
|
85
43
|
*/
|
|
86
|
-
|
|
44
|
+
quaternion: number[];
|
|
87
45
|
|
|
88
46
|
/**
|
|
89
|
-
*
|
|
47
|
+
* The roll of this SectionPlane's plane.
|
|
90
48
|
*
|
|
91
49
|
* Default value is ````0````.
|
|
92
|
-
*
|
|
93
|
-
* @returns {Number[]} value Current roll.
|
|
94
50
|
*/
|
|
95
|
-
|
|
51
|
+
roll: number[];
|
|
96
52
|
|
|
97
53
|
/**
|
|
98
|
-
*
|
|
54
|
+
* The direction of this SectionPlane's plane.
|
|
99
55
|
*
|
|
100
56
|
* Default value is ````[0, 0, -1]````.
|
|
101
|
-
*
|
|
102
|
-
* @param {Number[]} value New direction.
|
|
103
57
|
*/
|
|
104
|
-
|
|
58
|
+
dir: number[];
|
|
105
59
|
|
|
106
60
|
/**
|
|
107
|
-
*
|
|
108
|
-
*
|
|
109
|
-
* Default value is ````[0, 0, -1]````.
|
|
110
|
-
*
|
|
111
|
-
* @returns {Number[]} value Current direction.
|
|
112
|
-
*/
|
|
113
|
-
get dir(): number[];
|
|
114
|
-
|
|
115
|
-
/**
|
|
116
|
-
* Gets this SectionPlane's distance to the origin of the World-space coordinate system.
|
|
61
|
+
* This SectionPlane's distance to the origin of the World-space coordinate system.
|
|
117
62
|
*
|
|
118
63
|
* This is the dot product of {@link SectionPlane.pos} and {@link SectionPlane.dir} and is automatically re-calculated
|
|
119
64
|
* each time either of two properties are updated.
|
|
120
|
-
*
|
|
121
|
-
* @returns {Number}
|
|
122
65
|
*/
|
|
123
|
-
|
|
66
|
+
readonly dist: number;
|
|
124
67
|
|
|
125
68
|
/**
|
|
126
69
|
* Inverts the direction of {@link SectionPlane.dir}.
|
|
@@ -2,22 +2,12 @@ import { Component } from "../Component";
|
|
|
2
2
|
|
|
3
3
|
export declare class Viewport extends Component {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* The canvas-space boundary of this Viewport, indicated as ````[min, max, width, height]````.
|
|
6
6
|
*/
|
|
7
|
-
|
|
7
|
+
boundary: number[];
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Whether {@link Viewport.boundary} automatically synchronizes with {@link Canvas.boundary}.
|
|
11
11
|
*/
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* Sets if {@link Viewport.boundary} automatically synchronizes with {@link Canvas.boundary}.
|
|
16
|
-
*/
|
|
17
|
-
set autoBoundary(arg: boolean);
|
|
18
|
-
|
|
19
|
-
/**
|
|
20
|
-
* Gets if {@link Viewport.boundary} automatically synchronizes with {@link Canvas.boundary}.
|
|
21
|
-
*/
|
|
22
|
-
get autoBoundary(): boolean;
|
|
12
|
+
autoBoundary: boolean;
|
|
23
13
|
}
|
|
@@ -41,90 +41,75 @@ export declare class PickResult {
|
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Canvas coordinates when picking with a 2D pointer.
|
|
44
|
-
* @property canvasPos
|
|
45
|
-
* @type {Number[]}
|
|
46
44
|
*/
|
|
47
|
-
|
|
45
|
+
readonly canvasPos: number[];
|
|
48
46
|
|
|
49
47
|
/**
|
|
50
48
|
* World-space 3D ray origin when raypicked.
|
|
51
|
-
* @type {Number[]}
|
|
52
49
|
*/
|
|
53
|
-
|
|
50
|
+
readonly origin: number[];
|
|
54
51
|
|
|
55
52
|
/**
|
|
56
53
|
* World-space 3D ray direction when raypicked.
|
|
57
|
-
* @type {Number[]}
|
|
58
54
|
*/
|
|
59
|
-
|
|
55
|
+
readonly direction: number[];
|
|
60
56
|
|
|
61
57
|
/**
|
|
62
58
|
* Picked triangle's vertex indices.
|
|
63
59
|
* Only defined when an entity and triangle was picked.
|
|
64
|
-
* @type {Int32Array}
|
|
65
60
|
*/
|
|
66
|
-
|
|
61
|
+
readonly indices: Int32Array;
|
|
67
62
|
|
|
68
63
|
/**
|
|
69
64
|
* Picked Local-space point on surface.
|
|
70
65
|
* Only defined when an entity and a point on its surface was picked.
|
|
71
|
-
* @type {Number[]}
|
|
72
66
|
*/
|
|
73
|
-
|
|
67
|
+
readonly localPos: number[];
|
|
74
68
|
|
|
75
69
|
/**
|
|
76
70
|
* Canvas cursor coordinates, snapped when snap picking, otherwise same as {@link PickResult#pointerPos}.
|
|
77
|
-
* @property snappedCanvasPos
|
|
78
|
-
* @type {Number[]}
|
|
79
71
|
*/
|
|
80
|
-
|
|
72
|
+
readonly snappedCanvasPos: number[];
|
|
81
73
|
|
|
82
74
|
/**
|
|
83
75
|
* Picked World-space point on surface.
|
|
84
76
|
* Only defined when an entity and a point on its surface was picked.
|
|
85
|
-
* @type {Number[]}
|
|
86
77
|
*/
|
|
87
|
-
|
|
78
|
+
readonly worldPos: number[];
|
|
88
79
|
|
|
89
80
|
/**
|
|
90
81
|
* Picked View-space point on surface.
|
|
91
82
|
* Only defined when an entity and a point on its surface was picked.
|
|
92
|
-
* @type {Number[]}
|
|
93
83
|
*/
|
|
94
|
-
|
|
84
|
+
readonly viewPos: number[];
|
|
95
85
|
|
|
96
86
|
/**
|
|
97
87
|
* Barycentric coordinate within picked triangle.
|
|
98
88
|
* Only defined when an entity and a point on its surface was picked.
|
|
99
|
-
* @type {Number[]}
|
|
100
89
|
*/
|
|
101
|
-
|
|
90
|
+
readonly bary: number[];
|
|
102
91
|
|
|
103
92
|
/**
|
|
104
93
|
* Normal vector at picked position on surface.
|
|
105
94
|
* Only defined when an entity and a point on its surface was picked.
|
|
106
|
-
* @type {Number[]}
|
|
107
95
|
*/
|
|
108
|
-
|
|
96
|
+
readonly worldNormal: number[];
|
|
109
97
|
|
|
110
98
|
/**
|
|
111
99
|
* UV coordinates at picked position on surface.
|
|
112
100
|
* Only defined when an entity and a point on its surface was picked.
|
|
113
|
-
* @type {Number[]}
|
|
114
101
|
*/
|
|
115
|
-
|
|
102
|
+
readonly uv: number[];
|
|
116
103
|
|
|
117
104
|
/**
|
|
118
105
|
* True if snapped to edge or vertex.
|
|
119
|
-
* @returns {boolean}
|
|
120
106
|
*/
|
|
121
|
-
|
|
107
|
+
readonly snapped: boolean;
|
|
122
108
|
|
|
123
109
|
/**
|
|
124
110
|
* True when snapped to the nearest vertex position.
|
|
125
|
-
* @type {boolean}
|
|
126
111
|
*/
|
|
127
|
-
snappedToVertex
|
|
112
|
+
snappedToVertex: boolean;
|
|
128
113
|
|
|
129
114
|
/**
|
|
130
115
|
* True when snapped to the nearest edge.
|