@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
|
@@ -23,47 +23,104 @@ export declare class SectionPlane extends Component {
|
|
|
23
23
|
constructor(owner?: Component, cfg?: SectionPlaneConfiguration);
|
|
24
24
|
|
|
25
25
|
/**
|
|
26
|
-
*
|
|
26
|
+
* Sets if 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.
|
|
29
49
|
*/
|
|
30
|
-
|
|
50
|
+
set pos(arg: number[]);
|
|
31
51
|
|
|
32
52
|
/**
|
|
33
|
-
*
|
|
53
|
+
* Gets the World-space position of this SectionPlane's plane.
|
|
34
54
|
*
|
|
35
55
|
* 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.
|
|
36
67
|
*/
|
|
37
|
-
|
|
68
|
+
set quaternion(value: number[]);
|
|
38
69
|
|
|
39
70
|
/**
|
|
40
|
-
*
|
|
71
|
+
* Gets the quaternion of this SectionPlane's plane.
|
|
41
72
|
*
|
|
42
73
|
* 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.
|
|
43
85
|
*/
|
|
44
|
-
|
|
86
|
+
set roll(value: number[]);
|
|
45
87
|
|
|
46
88
|
/**
|
|
47
|
-
*
|
|
89
|
+
* Gets the roll of this SectionPlane's plane.
|
|
48
90
|
*
|
|
49
91
|
* Default value is ````0````.
|
|
92
|
+
*
|
|
93
|
+
* @returns {Number[]} value Current roll.
|
|
50
94
|
*/
|
|
51
|
-
roll: number[];
|
|
95
|
+
get roll(): number[];
|
|
52
96
|
|
|
53
97
|
/**
|
|
54
|
-
*
|
|
98
|
+
* Sets the direction of this SectionPlane's plane.
|
|
55
99
|
*
|
|
56
100
|
* Default value is ````[0, 0, -1]````.
|
|
101
|
+
*
|
|
102
|
+
* @param {Number[]} value New direction.
|
|
57
103
|
*/
|
|
58
|
-
dir: number[];
|
|
104
|
+
set dir(arg: number[]);
|
|
59
105
|
|
|
60
106
|
/**
|
|
61
|
-
*
|
|
107
|
+
* Gets the direction of this SectionPlane's plane.
|
|
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.
|
|
62
117
|
*
|
|
63
118
|
* This is the dot product of {@link SectionPlane.pos} and {@link SectionPlane.dir} and is automatically re-calculated
|
|
64
119
|
* each time either of two properties are updated.
|
|
120
|
+
*
|
|
121
|
+
* @returns {Number}
|
|
65
122
|
*/
|
|
66
|
-
|
|
123
|
+
get dist(): number;
|
|
67
124
|
|
|
68
125
|
/**
|
|
69
126
|
* Inverts the direction of {@link SectionPlane.dir}.
|
|
@@ -2,12 +2,22 @@ import { Component } from "../Component";
|
|
|
2
2
|
|
|
3
3
|
export declare class Viewport extends Component {
|
|
4
4
|
/**
|
|
5
|
-
*
|
|
5
|
+
* Sets the canvas-space boundary of this Viewport, indicated as ````[min, max, width, height]````.
|
|
6
6
|
*/
|
|
7
|
-
boundary: number[];
|
|
7
|
+
set boundary(arg: number[]);
|
|
8
8
|
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
10
|
+
* Gets the canvas-space boundary of this Viewport, indicated as ````[min, max, width, height]````.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
get boundary(): number[];
|
|
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;
|
|
13
23
|
}
|
|
@@ -41,75 +41,90 @@ export declare class PickResult {
|
|
|
41
41
|
|
|
42
42
|
/**
|
|
43
43
|
* Canvas coordinates when picking with a 2D pointer.
|
|
44
|
+
* @property canvasPos
|
|
45
|
+
* @type {Number[]}
|
|
44
46
|
*/
|
|
45
|
-
|
|
47
|
+
get canvasPos(): number[];
|
|
46
48
|
|
|
47
49
|
/**
|
|
48
50
|
* World-space 3D ray origin when raypicked.
|
|
51
|
+
* @type {Number[]}
|
|
49
52
|
*/
|
|
50
|
-
|
|
53
|
+
get origin(): number[];
|
|
51
54
|
|
|
52
55
|
/**
|
|
53
56
|
* World-space 3D ray direction when raypicked.
|
|
57
|
+
* @type {Number[]}
|
|
54
58
|
*/
|
|
55
|
-
|
|
59
|
+
get direction(): number[];
|
|
56
60
|
|
|
57
61
|
/**
|
|
58
62
|
* Picked triangle's vertex indices.
|
|
59
63
|
* Only defined when an entity and triangle was picked.
|
|
64
|
+
* @type {Int32Array}
|
|
60
65
|
*/
|
|
61
|
-
|
|
66
|
+
get indices(): Int32Array;
|
|
62
67
|
|
|
63
68
|
/**
|
|
64
69
|
* Picked Local-space point on surface.
|
|
65
70
|
* Only defined when an entity and a point on its surface was picked.
|
|
71
|
+
* @type {Number[]}
|
|
66
72
|
*/
|
|
67
|
-
|
|
73
|
+
get localPos(): number[];
|
|
68
74
|
|
|
69
75
|
/**
|
|
70
76
|
* Canvas cursor coordinates, snapped when snap picking, otherwise same as {@link PickResult#pointerPos}.
|
|
77
|
+
* @property snappedCanvasPos
|
|
78
|
+
* @type {Number[]}
|
|
71
79
|
*/
|
|
72
|
-
|
|
80
|
+
get snappedCanvasPos(): number[];
|
|
73
81
|
|
|
74
82
|
/**
|
|
75
83
|
* Picked World-space point on surface.
|
|
76
84
|
* Only defined when an entity and a point on its surface was picked.
|
|
85
|
+
* @type {Number[]}
|
|
77
86
|
*/
|
|
78
|
-
|
|
87
|
+
get worldPos(): number[];
|
|
79
88
|
|
|
80
89
|
/**
|
|
81
90
|
* Picked View-space point on surface.
|
|
82
91
|
* Only defined when an entity and a point on its surface was picked.
|
|
92
|
+
* @type {Number[]}
|
|
83
93
|
*/
|
|
84
|
-
|
|
94
|
+
get viewPos(): number[];
|
|
85
95
|
|
|
86
96
|
/**
|
|
87
97
|
* Barycentric coordinate within picked triangle.
|
|
88
98
|
* Only defined when an entity and a point on its surface was picked.
|
|
99
|
+
* @type {Number[]}
|
|
89
100
|
*/
|
|
90
|
-
|
|
101
|
+
get bary(): number[];
|
|
91
102
|
|
|
92
103
|
/**
|
|
93
104
|
* Normal vector at picked position on surface.
|
|
94
105
|
* Only defined when an entity and a point on its surface was picked.
|
|
106
|
+
* @type {Number[]}
|
|
95
107
|
*/
|
|
96
|
-
|
|
108
|
+
get worldNormal(): number[];
|
|
97
109
|
|
|
98
110
|
/**
|
|
99
111
|
* UV coordinates at picked position on surface.
|
|
100
112
|
* Only defined when an entity and a point on its surface was picked.
|
|
113
|
+
* @type {Number[]}
|
|
101
114
|
*/
|
|
102
|
-
|
|
115
|
+
get uv(): number[];
|
|
103
116
|
|
|
104
117
|
/**
|
|
105
118
|
* True if snapped to edge or vertex.
|
|
119
|
+
* @returns {boolean}
|
|
106
120
|
*/
|
|
107
|
-
|
|
121
|
+
get snapped(): boolean;
|
|
108
122
|
|
|
109
123
|
/**
|
|
110
124
|
* True when snapped to the nearest vertex position.
|
|
125
|
+
* @type {boolean}
|
|
111
126
|
*/
|
|
112
|
-
snappedToVertex:
|
|
127
|
+
snappedToVertex : false;
|
|
113
128
|
|
|
114
129
|
/**
|
|
115
130
|
* True when snapped to the nearest edge.
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xeokit-sdk.es5.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"xeokit-sdk.min.es5.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
|