@xtctwins/tctwins-core 1.1.19 → 1.1.20
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 +4 -4
- package/dist/tctwins-core.es5.js +27517 -27493
- package/dist/tctwins-core.min.es5.js +4 -4
- package/package.json +84 -84
- package/types/extras/ContextMenu/ContextMenu.d.ts +127 -127
- package/types/extras/ContextMenu/index.d.ts +1 -1
- package/types/extras/PointerCircle/PointerCircle.d.ts +51 -51
- package/types/extras/PointerCircle/index.d.ts +1 -1
- package/types/extras/PointerLens/PointerLens.d.ts +146 -146
- package/types/extras/index.d.ts +3 -3
- package/types/index.d.ts +3 -3
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +204 -204
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsControl.d.ts +91 -91
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsMouseControl.d.ts +125 -125
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +151 -151
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsSimulateMouseControl.d.ts +86 -86
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +124 -124
- package/types/plugins/AngleMeasurementsPlugin/index.d.ts +5 -5
- package/types/plugins/AnnotationsPlugin/Annotation.d.ts +135 -135
- package/types/plugins/AnnotationsPlugin/AnnotationsPlugin.d.ts +172 -172
- package/types/plugins/AnnotationsPlugin/index.d.ts +2 -2
- package/types/plugins/BCFViewpointsPlugin/BCFViewpointsPlugin.d.ts +148 -148
- package/types/plugins/BCFViewpointsPlugin/index.d.ts +1 -1
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +253 -253
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsControl.d.ts +96 -96
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsMouseControl.d.ts +102 -102
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +192 -192
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsSimulateMouseControl.d.ts +83 -83
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsTouchControl.d.ts +103 -103
- package/types/plugins/DistanceMeasurementsPlugin/index.d.ts +5 -5
- package/types/plugins/FastNavPlugin/FastNavPlugin.d.ts +223 -223
- package/types/plugins/FastNavPlugin/index.d.ts +1 -1
- package/types/plugins/GLTFLoaderPlugin/GLTFLoaderPlugin.d.ts +142 -142
- package/types/plugins/GLTFLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/LASLoaderPlugin/LASLoaderPlugin.d.ts +240 -240
- package/types/plugins/LASLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/NavCubePlugin/NavCubePlugin.d.ts +177 -177
- package/types/plugins/NavCubePlugin/index.d.ts +1 -1
- package/types/plugins/ObjectEditPlugin/ObjectEditPlugin.d.ts +242 -242
- package/types/plugins/ObjectEditPlugin/index.d.ts +1 -1
- package/types/plugins/SectionPlanesPlugin/SectionBoxControl.d.ts +36 -36
- package/types/plugins/SectionPlanesPlugin/SectionPlanesPlugin.d.ts +186 -186
- package/types/plugins/SectionPlanesPlugin/index.d.ts +2 -2
- package/types/plugins/SkyboxesPlugin/SkyboxesPlugin.d.ts +66 -66
- package/types/plugins/SkyboxesPlugin/index.d.ts +1 -1
- package/types/plugins/StoreyViewsPlugin/Storey.d.ts +69 -69
- package/types/plugins/StoreyViewsPlugin/StoreyMap.d.ts +41 -41
- package/types/plugins/StoreyViewsPlugin/StoreyViewsPlugin.d.ts +180 -180
- package/types/plugins/StoreyViewsPlugin/index.d.ts +1 -1
- package/types/plugins/TreeViewPlugin/ModelTreeView.d.ts +24 -24
- package/types/plugins/TreeViewPlugin/TreeViewNode.d.ts +71 -71
- package/types/plugins/TreeViewPlugin/TreeViewPlugin.d.ts +267 -267
- package/types/plugins/TreeViewPlugin/index.d.ts +1 -1
- package/types/plugins/TreeViewPlugin/renderService.d.ts +128 -128
- package/types/plugins/ViewCullPlugin/ViewCullPlugin.d.ts +34 -34
- package/types/plugins/ViewCullPlugin/index.d.ts +1 -1
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +236 -236
- package/types/plugins/WebIFCLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/XTCLoaderPlugin/XTCLoaderPlugin.d.ts +288 -288
- package/types/plugins/XTCLoaderPlugin/index.d.ts +1 -1
- package/types/plugins/index.d.ts +30 -30
- package/types/viewer/Configs.d.ts +46 -46
- package/types/viewer/Plugin.d.ts +69 -69
- package/types/viewer/Viewer.d.ts +282 -282
- package/types/viewer/index.d.ts +6 -6
- package/types/viewer/localization/LocaleService.d.ts +183 -183
- package/types/viewer/metadata/IFCObjectDefaults.d.ts +9 -9
- package/types/viewer/metadata/MetaModel.d.ts +94 -102
- package/types/viewer/metadata/MetaObject.d.ts +74 -74
- package/types/viewer/metadata/MetaScene.d.ts +135 -135
- package/types/viewer/metadata/Property.d.ts +29 -29
- package/types/viewer/metadata/PropertySet.d.ts +31 -31
- package/types/viewer/metadata/index.d.ts +6 -6
- package/types/viewer/scene/Bitmap/Bitmap.d.ts +255 -255
- package/types/viewer/scene/CameraControl/CameraControl.d.ts +777 -777
- package/types/viewer/scene/Component.d.ts +155 -155
- package/types/viewer/scene/Entity.d.ts +401 -401
- package/types/viewer/scene/LineSet/LineSet.d.ts +111 -111
- package/types/viewer/scene/camera/Camera.d.ts +364 -364
- package/types/viewer/scene/camera/CameraFlightAnimation.d.ts +167 -167
- package/types/viewer/scene/camera/CameraPath.d.ts +28 -28
- package/types/viewer/scene/camera/CameraPathAnimation.d.ts +95 -95
- package/types/viewer/scene/camera/CustomProjection.d.ts +57 -57
- package/types/viewer/scene/camera/Frustum.d.ts +166 -166
- package/types/viewer/scene/camera/Ortho.d.ts +115 -115
- package/types/viewer/scene/camera/Perspective.d.ts +136 -136
- package/types/viewer/scene/camera/index.d.ts +4 -4
- package/types/viewer/scene/geometry/Geometry.d.ts +7 -7
- package/types/viewer/scene/geometry/ReadableGeometry.d.ts +95 -95
- package/types/viewer/scene/geometry/VBOGeometry.d.ts +62 -62
- package/types/viewer/scene/geometry/builders/buildBoxGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildBoxLinesGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildCylinderGeometry.d.ts +27 -27
- package/types/viewer/scene/geometry/builders/buildGridGeometry.d.ts +17 -17
- package/types/viewer/scene/geometry/builders/buildPlaneGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildSphereGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/buildTorusGeometry.d.ts +25 -25
- package/types/viewer/scene/geometry/builders/buildVectorTextGeometry.d.ts +21 -21
- package/types/viewer/scene/geometry/builders/index.d.ts +8 -8
- package/types/viewer/scene/geometry/index.d.ts +2 -2
- package/types/viewer/scene/index.d.ts +23 -23
- package/types/viewer/scene/input/input.d.ts +69 -69
- package/types/viewer/scene/lights/AmbientLight.d.ts +19 -19
- package/types/viewer/scene/lights/DirLight.d.ts +25 -25
- package/types/viewer/scene/lights/Light.d.ts +3 -3
- package/types/viewer/scene/lights/PointLight.d.ts +30 -30
- package/types/viewer/scene/lights/index.d.ts +2 -2
- package/types/viewer/scene/marker/Marker.d.ts +136 -136
- package/types/viewer/scene/marker/SpriteMarker.d.ts +185 -185
- package/types/viewer/scene/marker/index.d.ts +2 -2
- package/types/viewer/scene/materials/EdgeMaterial.d.ts +83 -83
- package/types/viewer/scene/materials/EmphasisMaterial.d.ts +241 -241
- package/types/viewer/scene/materials/Fresnel.d.ts +148 -148
- package/types/viewer/scene/materials/LinesMaterial.d.ts +71 -71
- package/types/viewer/scene/materials/Material.d.ts +3 -3
- package/types/viewer/scene/materials/PhongMaterial.d.ts +468 -468
- package/types/viewer/scene/materials/PointsMaterial.d.ts +206 -206
- package/types/viewer/scene/materials/Texture.d.ts +260 -260
- package/types/viewer/scene/materials/index.d.ts +6 -6
- package/types/viewer/scene/math/Frustum.d.ts +41 -41
- package/types/viewer/scene/math/index.d.ts +1 -1
- package/types/viewer/scene/math/math.d.ts +104 -104
- package/types/viewer/scene/mementos/CameraMemento.d.ts +28 -28
- package/types/viewer/scene/mementos/ModelMemento.d.ts +44 -44
- package/types/viewer/scene/mementos/ObjectsMemento.d.ts +39 -39
- package/types/viewer/scene/mementos/index.d.ts +3 -3
- package/types/viewer/scene/mesh/Mesh.d.ts +793 -793
- package/types/viewer/scene/mesh/index.d.ts +1 -1
- package/types/viewer/scene/models/PerformanceModel/PerformanceModel.d.ts +9 -9
- package/types/viewer/scene/models/PerformanceModel/index.d.ts +1 -1
- package/types/viewer/scene/models/SceneModel.d.ts +757 -762
- package/types/viewer/scene/models/SceneModelEntity.d.ts +417 -417
- package/types/viewer/scene/models/SceneModelMesh.d.ts +68 -68
- package/types/viewer/scene/models/SceneModelTexture.d.ts +16 -16
- package/types/viewer/scene/models/SceneModelTextureSet.d.ts +51 -51
- package/types/viewer/scene/models/SceneModelTransform.d.ts +197 -197
- package/types/viewer/scene/models/VBOSceneModel/VBOSceneModel.d.ts +7 -7
- package/types/viewer/scene/models/index.d.ts +7 -7
- package/types/viewer/scene/nodes/Node.d.ts +664 -664
- package/types/viewer/scene/nodes/index.d.ts +1 -1
- package/types/viewer/scene/postfx/CrossSections.d.ts +42 -42
- package/types/viewer/scene/postfx/SAO.d.ts +209 -209
- package/types/viewer/scene/scene/Scene.d.ts +1068 -1068
- package/types/viewer/scene/sectionPlane/SectionPlane.d.ts +110 -110
- package/types/viewer/scene/sectionPlane/index.d.ts +1 -1
- package/types/viewer/scene/stats.d.ts +40 -40
- package/types/viewer/scene/viewport/Viewport.d.ts +23 -23
- package/types/viewer/scene/viewport/index.d.ts +1 -1
- package/types/viewer/scene/webgl/PickResult.d.ts +115 -115
- package/types/viewer/scene/webgl/index.d.ts +1 -1
- package/dist/tctwins-core.umd.js +0 -37
|
@@ -1,110 +1,110 @@
|
|
|
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
|
-
* `mode` 为 `"inside"` 时只保留盒内片元,为 `"outside"` 时只保留盒外片元。
|
|
15
|
-
* 普通单面剖切不设置该字段。
|
|
16
|
-
*/
|
|
17
|
-
clipGroup?: { mode: "inside" | "outside" } | null;
|
|
18
|
-
};
|
|
19
|
-
|
|
20
|
-
/**
|
|
21
|
-
* An arbitrarily-aligned World-space clipping plane.
|
|
22
|
-
*/
|
|
23
|
-
export declare class SectionPlane extends Component {
|
|
24
|
-
/**
|
|
25
|
-
* @constructor
|
|
26
|
-
* @param {Component} [owner] Owner component. When destroyed, the owner will destroy this SectionPlane as well.
|
|
27
|
-
* @param {SectionPlaneConfiguration} [cfg] SectionPlane configuration
|
|
28
|
-
*/
|
|
29
|
-
constructor(owner?: Component, cfg?: SectionPlaneConfiguration);
|
|
30
|
-
|
|
31
|
-
/**
|
|
32
|
-
* 内部盒体分组标记,普通单面剖切为 `null`。
|
|
33
|
-
*
|
|
34
|
-
* 由 {@link SectionPlanesPlugin#createClippingBox} / {@link SectionPlanesPlugin#createBoxFrame}
|
|
35
|
-
* 创建的六个平面共享同一个分组对象。
|
|
36
|
-
*/
|
|
37
|
-
readonly clipGroup: { mode: "inside" | "outside" } | null;
|
|
38
|
-
|
|
39
|
-
/**
|
|
40
|
-
* Sets if this SectionPlane is active or not.
|
|
41
|
-
*
|
|
42
|
-
* Default value is ````true````.
|
|
43
|
-
*
|
|
44
|
-
* @param {Boolean} value Set ````true```` to activate else ````false```` to deactivate.
|
|
45
|
-
*/
|
|
46
|
-
set active(arg: boolean);
|
|
47
|
-
|
|
48
|
-
/**
|
|
49
|
-
* Gets if this SectionPlane is active or not.
|
|
50
|
-
*
|
|
51
|
-
* Default value is ````true````.
|
|
52
|
-
*
|
|
53
|
-
* @returns {Boolean} Returns ````true```` if active.
|
|
54
|
-
*/
|
|
55
|
-
get active(): boolean;
|
|
56
|
-
|
|
57
|
-
/**
|
|
58
|
-
* Sets the World-space position of this SectionPlane's plane.
|
|
59
|
-
*
|
|
60
|
-
* Default value is ````[0, 0, 0]````.
|
|
61
|
-
*
|
|
62
|
-
* @param {Number[]} value New position.
|
|
63
|
-
*/
|
|
64
|
-
set pos(arg: number[]);
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* Gets the World-space position of this SectionPlane's plane.
|
|
68
|
-
*
|
|
69
|
-
* Default value is ````[0, 0, 0]````.
|
|
70
|
-
*
|
|
71
|
-
* @returns {Number[]} Current position.
|
|
72
|
-
*/
|
|
73
|
-
get pos(): number[];
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* Sets the direction of this SectionPlane's plane.
|
|
77
|
-
*
|
|
78
|
-
* Default value is ````[0, 0, -1]````.
|
|
79
|
-
*
|
|
80
|
-
* @param {Number[]} value New direction.
|
|
81
|
-
*/
|
|
82
|
-
set dir(arg: number[]);
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Gets the direction of this SectionPlane's plane.
|
|
86
|
-
*
|
|
87
|
-
* Default value is ````[0, 0, -1]````.
|
|
88
|
-
*
|
|
89
|
-
* @returns {Number[]} value Current direction.
|
|
90
|
-
*/
|
|
91
|
-
get dir(): number[];
|
|
92
|
-
|
|
93
|
-
/**
|
|
94
|
-
* Gets this SectionPlane's distance to the origin of the World-space coordinate system.
|
|
95
|
-
*
|
|
96
|
-
* This is the dot product of {@link SectionPlane.pos} and {@link SectionPlane.dir} and is automatically re-calculated
|
|
97
|
-
* each time either of two properties are updated.
|
|
98
|
-
*
|
|
99
|
-
* @returns {Number}
|
|
100
|
-
*/
|
|
101
|
-
get dist(): number;
|
|
102
|
-
|
|
103
|
-
get control(): any;
|
|
104
|
-
set control(control: any);
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* Inverts the direction of {@link SectionPlane.dir}.
|
|
108
|
-
*/
|
|
109
|
-
flipDir(): void;
|
|
110
|
-
}
|
|
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
|
+
* `mode` 为 `"inside"` 时只保留盒内片元,为 `"outside"` 时只保留盒外片元。
|
|
15
|
+
* 普通单面剖切不设置该字段。
|
|
16
|
+
*/
|
|
17
|
+
clipGroup?: { mode: "inside" | "outside" } | null;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
/**
|
|
21
|
+
* An arbitrarily-aligned World-space clipping plane.
|
|
22
|
+
*/
|
|
23
|
+
export declare class SectionPlane extends Component {
|
|
24
|
+
/**
|
|
25
|
+
* @constructor
|
|
26
|
+
* @param {Component} [owner] Owner component. When destroyed, the owner will destroy this SectionPlane as well.
|
|
27
|
+
* @param {SectionPlaneConfiguration} [cfg] SectionPlane configuration
|
|
28
|
+
*/
|
|
29
|
+
constructor(owner?: Component, cfg?: SectionPlaneConfiguration);
|
|
30
|
+
|
|
31
|
+
/**
|
|
32
|
+
* 内部盒体分组标记,普通单面剖切为 `null`。
|
|
33
|
+
*
|
|
34
|
+
* 由 {@link SectionPlanesPlugin#createClippingBox} / {@link SectionPlanesPlugin#createBoxFrame}
|
|
35
|
+
* 创建的六个平面共享同一个分组对象。
|
|
36
|
+
*/
|
|
37
|
+
readonly clipGroup: { mode: "inside" | "outside" } | null;
|
|
38
|
+
|
|
39
|
+
/**
|
|
40
|
+
* Sets if this SectionPlane is active or not.
|
|
41
|
+
*
|
|
42
|
+
* Default value is ````true````.
|
|
43
|
+
*
|
|
44
|
+
* @param {Boolean} value Set ````true```` to activate else ````false```` to deactivate.
|
|
45
|
+
*/
|
|
46
|
+
set active(arg: boolean);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Gets if this SectionPlane is active or not.
|
|
50
|
+
*
|
|
51
|
+
* Default value is ````true````.
|
|
52
|
+
*
|
|
53
|
+
* @returns {Boolean} Returns ````true```` if active.
|
|
54
|
+
*/
|
|
55
|
+
get active(): boolean;
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Sets the World-space position of this SectionPlane's plane.
|
|
59
|
+
*
|
|
60
|
+
* Default value is ````[0, 0, 0]````.
|
|
61
|
+
*
|
|
62
|
+
* @param {Number[]} value New position.
|
|
63
|
+
*/
|
|
64
|
+
set pos(arg: number[]);
|
|
65
|
+
|
|
66
|
+
/**
|
|
67
|
+
* Gets the World-space position of this SectionPlane's plane.
|
|
68
|
+
*
|
|
69
|
+
* Default value is ````[0, 0, 0]````.
|
|
70
|
+
*
|
|
71
|
+
* @returns {Number[]} Current position.
|
|
72
|
+
*/
|
|
73
|
+
get pos(): number[];
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* Sets the direction of this SectionPlane's plane.
|
|
77
|
+
*
|
|
78
|
+
* Default value is ````[0, 0, -1]````.
|
|
79
|
+
*
|
|
80
|
+
* @param {Number[]} value New direction.
|
|
81
|
+
*/
|
|
82
|
+
set dir(arg: number[]);
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Gets the direction of this SectionPlane's plane.
|
|
86
|
+
*
|
|
87
|
+
* Default value is ````[0, 0, -1]````.
|
|
88
|
+
*
|
|
89
|
+
* @returns {Number[]} value Current direction.
|
|
90
|
+
*/
|
|
91
|
+
get dir(): number[];
|
|
92
|
+
|
|
93
|
+
/**
|
|
94
|
+
* Gets this SectionPlane's distance to the origin of the World-space coordinate system.
|
|
95
|
+
*
|
|
96
|
+
* This is the dot product of {@link SectionPlane.pos} and {@link SectionPlane.dir} and is automatically re-calculated
|
|
97
|
+
* each time either of two properties are updated.
|
|
98
|
+
*
|
|
99
|
+
* @returns {Number}
|
|
100
|
+
*/
|
|
101
|
+
get dist(): number;
|
|
102
|
+
|
|
103
|
+
get control(): any;
|
|
104
|
+
set control(control: any);
|
|
105
|
+
|
|
106
|
+
/**
|
|
107
|
+
* Inverts the direction of {@link SectionPlane.dir}.
|
|
108
|
+
*/
|
|
109
|
+
flipDir(): void;
|
|
110
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./SectionPlane";
|
|
1
|
+
export * from "./SectionPlane";
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
declare const stats: {
|
|
2
|
-
build: {
|
|
3
|
-
version: string;
|
|
4
|
-
};
|
|
5
|
-
client: {
|
|
6
|
-
browser: string;
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
components: {
|
|
10
|
-
scenes: number;
|
|
11
|
-
models: number;
|
|
12
|
-
meshes: number;
|
|
13
|
-
objects: number;
|
|
14
|
-
};
|
|
15
|
-
memory: {
|
|
16
|
-
meshes: number;
|
|
17
|
-
positions: number;
|
|
18
|
-
colors: number;
|
|
19
|
-
normals: number;
|
|
20
|
-
uvs: number;
|
|
21
|
-
indices: number;
|
|
22
|
-
textures: number;
|
|
23
|
-
transforms: number;
|
|
24
|
-
materials: number;
|
|
25
|
-
programs: number;
|
|
26
|
-
};
|
|
27
|
-
frame: {
|
|
28
|
-
frameCount: number;
|
|
29
|
-
fps: number;
|
|
30
|
-
useProgram: number;
|
|
31
|
-
bindTexture: number;
|
|
32
|
-
bindArray: number;
|
|
33
|
-
drawElements: number;
|
|
34
|
-
drawArrays: number;
|
|
35
|
-
tasksRun: number;
|
|
36
|
-
tasksScheduled: number;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
|
|
40
|
-
export { stats };
|
|
1
|
+
declare const stats: {
|
|
2
|
+
build: {
|
|
3
|
+
version: string;
|
|
4
|
+
};
|
|
5
|
+
client: {
|
|
6
|
+
browser: string;
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
components: {
|
|
10
|
+
scenes: number;
|
|
11
|
+
models: number;
|
|
12
|
+
meshes: number;
|
|
13
|
+
objects: number;
|
|
14
|
+
};
|
|
15
|
+
memory: {
|
|
16
|
+
meshes: number;
|
|
17
|
+
positions: number;
|
|
18
|
+
colors: number;
|
|
19
|
+
normals: number;
|
|
20
|
+
uvs: number;
|
|
21
|
+
indices: number;
|
|
22
|
+
textures: number;
|
|
23
|
+
transforms: number;
|
|
24
|
+
materials: number;
|
|
25
|
+
programs: number;
|
|
26
|
+
};
|
|
27
|
+
frame: {
|
|
28
|
+
frameCount: number;
|
|
29
|
+
fps: number;
|
|
30
|
+
useProgram: number;
|
|
31
|
+
bindTexture: number;
|
|
32
|
+
bindArray: number;
|
|
33
|
+
drawElements: number;
|
|
34
|
+
drawArrays: number;
|
|
35
|
+
tasksRun: number;
|
|
36
|
+
tasksScheduled: number;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export { stats };
|
|
@@ -1,23 +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
|
-
}
|
|
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
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./Viewport";
|
|
1
|
+
export * from "./Viewport";
|
|
@@ -1,115 +1,115 @@
|
|
|
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
|
-
|
|
104
|
-
/**
|
|
105
|
-
* True when snapped to the nearest vertex position.
|
|
106
|
-
* @type {boolean}
|
|
107
|
-
*/
|
|
108
|
-
snappedToVertex : false;
|
|
109
|
-
|
|
110
|
-
/**
|
|
111
|
-
* True when snapped to the nearest edge.
|
|
112
|
-
* @type {boolean}
|
|
113
|
-
*/
|
|
114
|
-
snappedToEdge: boolean;
|
|
115
|
-
}
|
|
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
|
+
|
|
104
|
+
/**
|
|
105
|
+
* True when snapped to the nearest vertex position.
|
|
106
|
+
* @type {boolean}
|
|
107
|
+
*/
|
|
108
|
+
snappedToVertex : false;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* True when snapped to the nearest edge.
|
|
112
|
+
* @type {boolean}
|
|
113
|
+
*/
|
|
114
|
+
snappedToEdge: boolean;
|
|
115
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from "./PickResult";
|
|
1
|
+
export * from "./PickResult";
|