@xeokit/xeokit-sdk 2.2.4 → 2.2.5-beta-2
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 +77 -40
- package/dist/xeokit-sdk.es.js +77 -40
- package/dist/xeokit-sdk.min.cjs.js +1 -1
- package/dist/xeokit-sdk.min.es.js +1 -1
- package/package.json +4 -2
- package/types/extras/ContextMenu/ContextMenu.d.ts +125 -0
- package/types/extras/ContextMenu/index.d.ts +1 -0
- package/types/extras/index.d.ts +1 -0
- package/types/index.d.ts +3 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +144 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +42 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +85 -0
- package/types/plugins/AngleMeasurementsPlugin/index.d.ts +1 -0
- package/types/plugins/AnnotationsPlugin/Annotation.d.ts +134 -0
- package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +117 -0
- package/types/plugins/AnnotationsPlugin/index.d.ts +1 -0
- package/types/plugins/AxisGizmoPlugin/AxisGizmoPlugin.d.ts +28 -0
- package/types/plugins/AxisGizmoPlugin/index.d.ts +1 -0
- package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +146 -0
- package/types/plugins/BCFViewpointsPlugin/index.d.ts +1 -0
- package/types/plugins/CityJSONLoaderPlugin/CityJSONLoaderPlugin.d.ts +81 -0
- package/types/plugins/CityJSONLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +137 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +40 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +120 -0
- package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +1 -0
- package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +203 -0
- package/types/plugins/FastNavPlugin/index.d.ts +1 -0
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +140 -0
- package/types/plugins/GLTFLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +146 -0
- package/types/plugins/LASLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +160 -0
- package/types/plugins/NavCubePlugin/index.d.ts +1 -0
- package/types/plugins/OBJLoaderPlugin/OBJLoaderPlugin.d.ts +44 -0
- package/types/plugins/OBJLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/STLLoaderPlugin/STLLoaderPlugin.d.ts +88 -0
- package/types/plugins/STLLoaderPlugin/index.d.ts +2 -0
- package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +103 -0
- package/types/plugins/SectionPlanesPlugin/index.d.ts +1 -0
- package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +34 -0
- package/types/plugins/SkyboxesPlugin/index.d.ts +1 -0
- package/types/plugins/StoreyViewsPlugin/Storey.d.ts +47 -0
- package/types/plugins/StoreyViewsPlugin/StoreyMap.d.ts +41 -0
- package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +173 -0
- package/types/plugins/StoreyViewsPlugin/index.d.ts +1 -0
- package/types/plugins/TreeViewPlugin/ModelTreeView.d.ts +24 -0
- package/types/plugins/TreeViewPlugin/TreeViewNode.d.ts +66 -0
- package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +136 -0
- package/types/plugins/TreeViewPlugin/index.d.ts +1 -0
- package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +34 -0
- package/types/plugins/ViewCullPlugin/index.d.ts +1 -0
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +230 -0
- package/types/plugins/WebIFCLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +277 -0
- package/types/plugins/XKTLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/XML3DLoaderPlugin/XML3DLoaderPlugin.d.ts +65 -0
- package/types/plugins/XML3DLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/index.d.ts +34 -0
- package/types/viewer/Configs.d.ts +20 -0
- package/types/viewer/Plugin.d.ts +69 -0
- package/types/viewer/Viewer.d.ts +212 -0
- package/types/viewer/index.d.ts +6 -0
- package/types/viewer/localization/LocaleService.d.ts +176 -0
- package/types/viewer/metadata/IFCObjectDefaults.d.ts +9 -0
- package/types/viewer/metadata/MetaModel.d.ts +65 -0
- package/types/viewer/metadata/MetaObject.d.ts +74 -0
- package/types/viewer/metadata/MetaScene.d.ts +135 -0
- package/types/viewer/metadata/Property.d.ts +29 -0
- package/types/viewer/metadata/PropertySet.d.ts +31 -0
- package/types/viewer/metadata/index.d.ts +6 -0
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +591 -0
- package/types/viewer/scene/Component.d.ts +155 -0
- package/types/viewer/scene/Entity.d.ts +394 -0
- package/types/viewer/scene/PerformanceModel/PerformanceModel.d.ts +605 -0
- package/types/viewer/scene/PerformanceModel/PerformanceNode.d.ts +302 -0
- package/types/viewer/scene/camera/Camera.d.ts +364 -0
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +167 -0
- package/types/viewer/scene/camera/CameraPath.d.ts +28 -0
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +95 -0
- package/types/viewer/scene/camera/CustomProjection.d.ts +57 -0
- package/types/viewer/scene/camera/Frustum.d.ts +166 -0
- package/types/viewer/scene/camera/Ortho.d.ts +115 -0
- package/types/viewer/scene/camera/Perspective.d.ts +136 -0
- package/types/viewer/scene/camera/index.d.ts +4 -0
- package/types/viewer/scene/geometry/Geometry.d.ts +7 -0
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +95 -0
- package/types/viewer/scene/geometry/index.d.ts +1 -0
- package/types/viewer/scene/index.d.ts +6 -0
- package/types/viewer/scene/marker/Marker.d.ts +136 -0
- package/types/viewer/scene/marker/index.d.ts +1 -0
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +83 -0
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +241 -0
- package/types/viewer/scene/materials/Fresnel.d.ts +149 -0
- package/types/viewer/scene/materials/LinesMaterial.d.ts +71 -0
- package/types/viewer/scene/materials/Material.d.ts +3 -0
- package/types/viewer/scene/materials/PhongMaterial.d.ts +468 -0
- package/types/viewer/scene/materials/PointsMaterial.d.ts +206 -0
- package/types/viewer/scene/materials/Texture.d.ts +261 -0
- package/types/viewer/scene/materials/index.d.ts +5 -0
- package/types/viewer/scene/math/math.d.ts +36 -0
- package/types/viewer/scene/postfx/SAO.d.ts +209 -0
- package/types/viewer/scene/scene/Scene.d.ts +727 -0
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +93 -0
- package/types/viewer/scene/sectionPlane/index.d.ts +1 -0
- package/types/viewer/scene/viewport/Viewport.d.ts +23 -0
- package/types/viewer/scene/webgl/PickResult.d.ts +103 -0
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
import { Component } from "../Component";
|
|
2
|
+
|
|
3
|
+
export declare type SectionPlaneConfiguration = {
|
|
4
|
+
/** Optional ID, unique among all components in the parent {@link Scene}, generated automatically when omitted. */
|
|
5
|
+
id?: string;
|
|
6
|
+
/** Indicates whether or not this SectionPlane is active. */
|
|
7
|
+
active?: boolean;
|
|
8
|
+
/** World-space position of the SectionPlane. */
|
|
9
|
+
pos?: number[];
|
|
10
|
+
/** Vector perpendicular to the plane surface, indicating the SectionPlane plane orientation. */
|
|
11
|
+
dir?: number[];
|
|
12
|
+
};
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* An arbitrarily-aligned World-space clipping plane.
|
|
16
|
+
*/
|
|
17
|
+
export class SectionPlane extends Component {
|
|
18
|
+
/**
|
|
19
|
+
* @constructor
|
|
20
|
+
* @param {Component} [owner] Owner component. When destroyed, the owner will destroy this SectionPlane as well.
|
|
21
|
+
* @param {SectionPlaneConfiguration} [cfg] SectionPlane configuration
|
|
22
|
+
*/
|
|
23
|
+
constructor(owner?: Component, cfg?: SectionPlaneConfiguration);
|
|
24
|
+
|
|
25
|
+
/**
|
|
26
|
+
* Sets if this SectionPlane is active or not.
|
|
27
|
+
*
|
|
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
|
+
*/
|
|
50
|
+
set pos(arg: number[]);
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Gets the World-space position of this SectionPlane's plane.
|
|
54
|
+
*
|
|
55
|
+
* Default value is ````[0, 0, 0]````.
|
|
56
|
+
*
|
|
57
|
+
* @returns {Number[]} Current position.
|
|
58
|
+
*/
|
|
59
|
+
get pos(): number[];
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Sets the direction of this SectionPlane's plane.
|
|
63
|
+
*
|
|
64
|
+
* Default value is ````[0, 0, -1]````.
|
|
65
|
+
*
|
|
66
|
+
* @param {Number[]} value New direction.
|
|
67
|
+
*/
|
|
68
|
+
set dir(arg: number[]);
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Gets the direction of this SectionPlane's plane.
|
|
72
|
+
*
|
|
73
|
+
* Default value is ````[0, 0, -1]````.
|
|
74
|
+
*
|
|
75
|
+
* @returns {Number[]} value Current direction.
|
|
76
|
+
*/
|
|
77
|
+
get dir(): number[];
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Gets this SectionPlane's distance to the origin of the World-space coordinate system.
|
|
81
|
+
*
|
|
82
|
+
* This is the dot product of {@link SectionPlane#pos} and {@link SectionPlane#dir} and is automatically re-calculated
|
|
83
|
+
* each time either of two properties are updated.
|
|
84
|
+
*
|
|
85
|
+
* @returns {Number}
|
|
86
|
+
*/
|
|
87
|
+
get dist(): number;
|
|
88
|
+
|
|
89
|
+
/**
|
|
90
|
+
* Inverts the direction of {@link SectionPlane#dir}.
|
|
91
|
+
*/
|
|
92
|
+
flipDir(): void;
|
|
93
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./SectionPlane";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { Component } from "../Component";
|
|
2
|
+
|
|
3
|
+
export declare class Viewport extends Component {
|
|
4
|
+
/**
|
|
5
|
+
* Sets the canvas-space boundary of this Viewport, indicated as ````[min, max, width, height]````.
|
|
6
|
+
*/
|
|
7
|
+
set boundary(arg: number[]);
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Gets the canvas-space boundary of this Viewport, indicated as ````[min, max, width, height]````.
|
|
11
|
+
*/
|
|
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;
|
|
23
|
+
}
|
|
@@ -0,0 +1,103 @@
|
|
|
1
|
+
import { Entity } from "../Entity";
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Pick result returned by {@link Scene#pick}.
|
|
5
|
+
*/
|
|
6
|
+
export declare class PickResult {
|
|
7
|
+
/**
|
|
8
|
+
* Picked entity.
|
|
9
|
+
* Null when no entity was picked.
|
|
10
|
+
* @type {Entity|*}
|
|
11
|
+
*/
|
|
12
|
+
entity: Entity | null;
|
|
13
|
+
|
|
14
|
+
/**
|
|
15
|
+
* Type of primitive that was picked - usually "triangle".
|
|
16
|
+
* Null when no primitive was picked.
|
|
17
|
+
* @type {String}
|
|
18
|
+
*/
|
|
19
|
+
primitive: string;
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Index of primitive that was picked.
|
|
23
|
+
* -1 when no entity was picked.
|
|
24
|
+
* @type {number}
|
|
25
|
+
*/
|
|
26
|
+
primIndex: number;
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* True when the picked surface position is full precision.
|
|
30
|
+
* When false, the picked surface position should be regarded as approximate.
|
|
31
|
+
* Full-precision surface picking is performed with the {@link Scene#pick} method's ````pickSurfacePrecision```` option.
|
|
32
|
+
* @type {Boolean}
|
|
33
|
+
*/
|
|
34
|
+
pickSurfacePrecision: boolean;
|
|
35
|
+
|
|
36
|
+
/**
|
|
37
|
+
* Canvas coordinates when picking with a 2D pointer.
|
|
38
|
+
* @property canvasPos
|
|
39
|
+
* @type {Number[]}
|
|
40
|
+
*/
|
|
41
|
+
get canvasPos(): number[];
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* World-space 3D ray origin when raypicked.
|
|
45
|
+
* @type {Number[]}
|
|
46
|
+
*/
|
|
47
|
+
get origin(): number[];
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* World-space 3D ray direction when raypicked.
|
|
51
|
+
* @type {Number[]}
|
|
52
|
+
*/
|
|
53
|
+
get direction(): number[];
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Picked triangle's vertex indices.
|
|
57
|
+
* Only defined when an entity and triangle was picked.
|
|
58
|
+
* @type {Int32Array}
|
|
59
|
+
*/
|
|
60
|
+
get indices(): Int32Array;
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Picked Local-space point on surface.
|
|
64
|
+
* Only defined when an entity and a point on its surface was picked.
|
|
65
|
+
* @type {Number[]}
|
|
66
|
+
*/
|
|
67
|
+
get localPos(): number[];
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Picked World-space point on surface.
|
|
71
|
+
* Only defined when an entity and a point on its surface was picked.
|
|
72
|
+
* @type {Number[]}
|
|
73
|
+
*/
|
|
74
|
+
get worldPos(): number[];
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Picked View-space point on surface.
|
|
78
|
+
* Only defined when an entity and a point on its surface was picked.
|
|
79
|
+
* @type {Number[]}
|
|
80
|
+
*/
|
|
81
|
+
get viewPos(): number[];
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Barycentric coordinate within picked triangle.
|
|
85
|
+
* Only defined when an entity and a point on its surface was picked.
|
|
86
|
+
* @type {Number[]}
|
|
87
|
+
*/
|
|
88
|
+
get bary(): number[];
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Normal vector at picked position on surface.
|
|
92
|
+
* Only defined when an entity and a point on its surface was picked.
|
|
93
|
+
* @type {Number[]}
|
|
94
|
+
*/
|
|
95
|
+
get worldNormal(): number[];
|
|
96
|
+
|
|
97
|
+
/**
|
|
98
|
+
* UV coordinates at picked position on surface.
|
|
99
|
+
* Only defined when an entity and a point on its surface was picked.
|
|
100
|
+
* @type {Number[]}
|
|
101
|
+
*/
|
|
102
|
+
get uv(): number[];
|
|
103
|
+
}
|