@xtctwins/tctwins-core 1.1.18 → 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 +27337 -27310
- package/dist/tctwins-core.min.es5.js +3 -3
- 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 -94
- 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 -757
- 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/utils.d.ts +165 -165
- 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
|
@@ -1,204 +1,204 @@
|
|
|
1
|
-
import { Component } from "../../viewer/scene/Component";
|
|
2
|
-
import { AngleMeasurementsPlugin } from "./AngleMeasurementsPlugin";
|
|
3
|
-
import { Marker } from "../../viewer/scene/marker";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* @desc Measures the angle indicated by three 3D points.
|
|
7
|
-
*/
|
|
8
|
-
export declare class AngleMeasurement extends Component {
|
|
9
|
-
/**
|
|
10
|
-
* The {@link AngleMeasurementsPlugin} that owns this AngleMeasurement.
|
|
11
|
-
* @type {AngleMeasurementsPlugin}
|
|
12
|
-
*/
|
|
13
|
-
plugin: AngleMeasurementsPlugin;
|
|
14
|
-
|
|
15
|
-
/**
|
|
16
|
-
* 设置精度
|
|
17
|
-
* @param {number} precision
|
|
18
|
-
*/
|
|
19
|
-
set precision(precision: number);
|
|
20
|
-
|
|
21
|
-
get precision(): number;
|
|
22
|
-
|
|
23
|
-
/**
|
|
24
|
-
* Sets whether this AngleMeasurement indicates that its measurement is approximate.
|
|
25
|
-
*
|
|
26
|
-
* This is ````true```` by default.
|
|
27
|
-
*
|
|
28
|
-
* @type {Boolean}
|
|
29
|
-
*/
|
|
30
|
-
set approximate(arg: boolean);
|
|
31
|
-
/**
|
|
32
|
-
* Gets whether this AngleMeasurement indicates that its measurement is approximate.
|
|
33
|
-
*
|
|
34
|
-
* This is ````true```` by default.
|
|
35
|
-
*
|
|
36
|
-
* @type {Boolean}
|
|
37
|
-
*/
|
|
38
|
-
get approximate(): boolean;
|
|
39
|
-
|
|
40
|
-
/**
|
|
41
|
-
* Sets whether this AngleMeasurement is visible or not.
|
|
42
|
-
*
|
|
43
|
-
* @type {Boolean}
|
|
44
|
-
*/
|
|
45
|
-
set visible(arg: boolean);
|
|
46
|
-
/**
|
|
47
|
-
* Gets whether this AngleMeasurement is visible or not.
|
|
48
|
-
*
|
|
49
|
-
* @type {Boolean}
|
|
50
|
-
*/
|
|
51
|
-
get visible(): boolean;
|
|
52
|
-
/**
|
|
53
|
-
* Sets if the origin {@link Marker} is visible.
|
|
54
|
-
*
|
|
55
|
-
* @type {Boolean}
|
|
56
|
-
*/
|
|
57
|
-
set originVisible(arg: boolean);
|
|
58
|
-
/**
|
|
59
|
-
* Gets if the origin {@link Marker} is visible.
|
|
60
|
-
*
|
|
61
|
-
* @type {Boolean}
|
|
62
|
-
*/
|
|
63
|
-
get originVisible(): boolean;
|
|
64
|
-
/**
|
|
65
|
-
* Sets if the corner {@link Marker} is visible.
|
|
66
|
-
*
|
|
67
|
-
* @type {Boolean}
|
|
68
|
-
*/
|
|
69
|
-
set cornerVisible(arg: boolean);
|
|
70
|
-
/**
|
|
71
|
-
* Gets if the corner {@link Marker} is visible.
|
|
72
|
-
*
|
|
73
|
-
* @type {Boolean}
|
|
74
|
-
*/
|
|
75
|
-
get cornerVisible(): boolean;
|
|
76
|
-
/**
|
|
77
|
-
* Sets if the target {@link Marker} is visible.
|
|
78
|
-
*
|
|
79
|
-
* @type {Boolean}
|
|
80
|
-
*/
|
|
81
|
-
set targetVisible(arg: boolean);
|
|
82
|
-
/**
|
|
83
|
-
* Gets if the target {@link Marker} is visible.
|
|
84
|
-
*
|
|
85
|
-
* @type {Boolean}
|
|
86
|
-
*/
|
|
87
|
-
get targetVisible(): boolean;
|
|
88
|
-
/**
|
|
89
|
-
* Sets if the wire between the origin and the corner is visible.
|
|
90
|
-
*
|
|
91
|
-
* @type {Boolean}
|
|
92
|
-
*/
|
|
93
|
-
set originWireVisible(arg: boolean);
|
|
94
|
-
/**
|
|
95
|
-
* Gets if the wire between the origin and the corner is visible.
|
|
96
|
-
*
|
|
97
|
-
* @type {Boolean}
|
|
98
|
-
*/
|
|
99
|
-
get originWireVisible(): boolean;
|
|
100
|
-
/**
|
|
101
|
-
* Sets if the wire between the target and the corner is visible.
|
|
102
|
-
*
|
|
103
|
-
* @type {Boolean}
|
|
104
|
-
*/
|
|
105
|
-
set targetWireVisible(arg: boolean);
|
|
106
|
-
/**
|
|
107
|
-
* Gets if the wire between the target and the corner is visible.
|
|
108
|
-
*
|
|
109
|
-
* @type {Boolean}
|
|
110
|
-
*/
|
|
111
|
-
get targetWireVisible(): boolean;
|
|
112
|
-
/**
|
|
113
|
-
* Sets if the angle label is visible.
|
|
114
|
-
*
|
|
115
|
-
* @type {Boolean}
|
|
116
|
-
*/
|
|
117
|
-
set angleVisible(arg: boolean);
|
|
118
|
-
/**
|
|
119
|
-
* Gets if the angle label is visible.
|
|
120
|
-
*
|
|
121
|
-
* @type {Boolean}
|
|
122
|
-
*/
|
|
123
|
-
get angleVisible(): boolean;
|
|
124
|
-
|
|
125
|
-
/**
|
|
126
|
-
* Sets if the labels are visible.
|
|
127
|
-
*
|
|
128
|
-
* @type {Boolean}
|
|
129
|
-
*/
|
|
130
|
-
set labelsVisible(value: Boolean);
|
|
131
|
-
|
|
132
|
-
/**
|
|
133
|
-
* Gets if the labels are visible.
|
|
134
|
-
*
|
|
135
|
-
* @type {Boolean}
|
|
136
|
-
*/
|
|
137
|
-
get labelsVisible();
|
|
138
|
-
|
|
139
|
-
/**
|
|
140
|
-
* Sets if this DistanceMeasurement appears highlighted.
|
|
141
|
-
* @param highlighted
|
|
142
|
-
*/
|
|
143
|
-
setHighlighted(highlighted: Boolean): any;
|
|
144
|
-
|
|
145
|
-
/**
|
|
146
|
-
* Sets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.
|
|
147
|
-
*
|
|
148
|
-
* @type {Boolean}
|
|
149
|
-
*/
|
|
150
|
-
set clickable(value: Boolean);
|
|
151
|
-
|
|
152
|
-
/**
|
|
153
|
-
* Gets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.
|
|
154
|
-
*
|
|
155
|
-
* @type {Boolean}
|
|
156
|
-
*/
|
|
157
|
-
get clickable();
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
* Gets the origin {@link Marker}.
|
|
161
|
-
*
|
|
162
|
-
* @type {Marker}
|
|
163
|
-
*/
|
|
164
|
-
get origin(): Marker;
|
|
165
|
-
|
|
166
|
-
/**
|
|
167
|
-
* Gets the corner {@link Marker}.
|
|
168
|
-
*
|
|
169
|
-
* @type {Marker}
|
|
170
|
-
*/
|
|
171
|
-
get corner(): Marker;
|
|
172
|
-
|
|
173
|
-
/**
|
|
174
|
-
* Gets the target {@link Marker}.
|
|
175
|
-
*
|
|
176
|
-
* @type {Marker}
|
|
177
|
-
*/
|
|
178
|
-
get target(): Marker;
|
|
179
|
-
|
|
180
|
-
/**
|
|
181
|
-
* Gets the angle between two connected 3D line segments, given
|
|
182
|
-
* as three positions on the surface(s) of one or more {@link Entity}s.
|
|
183
|
-
*
|
|
184
|
-
* @type {Number}
|
|
185
|
-
*/
|
|
186
|
-
get angle(): number;
|
|
187
|
-
|
|
188
|
-
/**
|
|
189
|
-
* Gets the color of the angle measurement.
|
|
190
|
-
*
|
|
191
|
-
* The color is an HTML string representation, eg. "#00BBFF" and "blue".
|
|
192
|
-
*
|
|
193
|
-
* @type {String}
|
|
194
|
-
*/
|
|
195
|
-
get color(): string;
|
|
196
|
-
|
|
197
|
-
/** Sets the color of the angle measurement.
|
|
198
|
-
*
|
|
199
|
-
* The color is given as an HTML string representation, eg. "#00BBFF" and "blue".
|
|
200
|
-
*
|
|
201
|
-
* @type {String}
|
|
202
|
-
*/
|
|
203
|
-
set color(value);
|
|
204
|
-
}
|
|
1
|
+
import { Component } from "../../viewer/scene/Component";
|
|
2
|
+
import { AngleMeasurementsPlugin } from "./AngleMeasurementsPlugin";
|
|
3
|
+
import { Marker } from "../../viewer/scene/marker";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* @desc Measures the angle indicated by three 3D points.
|
|
7
|
+
*/
|
|
8
|
+
export declare class AngleMeasurement extends Component {
|
|
9
|
+
/**
|
|
10
|
+
* The {@link AngleMeasurementsPlugin} that owns this AngleMeasurement.
|
|
11
|
+
* @type {AngleMeasurementsPlugin}
|
|
12
|
+
*/
|
|
13
|
+
plugin: AngleMeasurementsPlugin;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 设置精度
|
|
17
|
+
* @param {number} precision
|
|
18
|
+
*/
|
|
19
|
+
set precision(precision: number);
|
|
20
|
+
|
|
21
|
+
get precision(): number;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Sets whether this AngleMeasurement indicates that its measurement is approximate.
|
|
25
|
+
*
|
|
26
|
+
* This is ````true```` by default.
|
|
27
|
+
*
|
|
28
|
+
* @type {Boolean}
|
|
29
|
+
*/
|
|
30
|
+
set approximate(arg: boolean);
|
|
31
|
+
/**
|
|
32
|
+
* Gets whether this AngleMeasurement indicates that its measurement is approximate.
|
|
33
|
+
*
|
|
34
|
+
* This is ````true```` by default.
|
|
35
|
+
*
|
|
36
|
+
* @type {Boolean}
|
|
37
|
+
*/
|
|
38
|
+
get approximate(): boolean;
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* Sets whether this AngleMeasurement is visible or not.
|
|
42
|
+
*
|
|
43
|
+
* @type {Boolean}
|
|
44
|
+
*/
|
|
45
|
+
set visible(arg: boolean);
|
|
46
|
+
/**
|
|
47
|
+
* Gets whether this AngleMeasurement is visible or not.
|
|
48
|
+
*
|
|
49
|
+
* @type {Boolean}
|
|
50
|
+
*/
|
|
51
|
+
get visible(): boolean;
|
|
52
|
+
/**
|
|
53
|
+
* Sets if the origin {@link Marker} is visible.
|
|
54
|
+
*
|
|
55
|
+
* @type {Boolean}
|
|
56
|
+
*/
|
|
57
|
+
set originVisible(arg: boolean);
|
|
58
|
+
/**
|
|
59
|
+
* Gets if the origin {@link Marker} is visible.
|
|
60
|
+
*
|
|
61
|
+
* @type {Boolean}
|
|
62
|
+
*/
|
|
63
|
+
get originVisible(): boolean;
|
|
64
|
+
/**
|
|
65
|
+
* Sets if the corner {@link Marker} is visible.
|
|
66
|
+
*
|
|
67
|
+
* @type {Boolean}
|
|
68
|
+
*/
|
|
69
|
+
set cornerVisible(arg: boolean);
|
|
70
|
+
/**
|
|
71
|
+
* Gets if the corner {@link Marker} is visible.
|
|
72
|
+
*
|
|
73
|
+
* @type {Boolean}
|
|
74
|
+
*/
|
|
75
|
+
get cornerVisible(): boolean;
|
|
76
|
+
/**
|
|
77
|
+
* Sets if the target {@link Marker} is visible.
|
|
78
|
+
*
|
|
79
|
+
* @type {Boolean}
|
|
80
|
+
*/
|
|
81
|
+
set targetVisible(arg: boolean);
|
|
82
|
+
/**
|
|
83
|
+
* Gets if the target {@link Marker} is visible.
|
|
84
|
+
*
|
|
85
|
+
* @type {Boolean}
|
|
86
|
+
*/
|
|
87
|
+
get targetVisible(): boolean;
|
|
88
|
+
/**
|
|
89
|
+
* Sets if the wire between the origin and the corner is visible.
|
|
90
|
+
*
|
|
91
|
+
* @type {Boolean}
|
|
92
|
+
*/
|
|
93
|
+
set originWireVisible(arg: boolean);
|
|
94
|
+
/**
|
|
95
|
+
* Gets if the wire between the origin and the corner is visible.
|
|
96
|
+
*
|
|
97
|
+
* @type {Boolean}
|
|
98
|
+
*/
|
|
99
|
+
get originWireVisible(): boolean;
|
|
100
|
+
/**
|
|
101
|
+
* Sets if the wire between the target and the corner is visible.
|
|
102
|
+
*
|
|
103
|
+
* @type {Boolean}
|
|
104
|
+
*/
|
|
105
|
+
set targetWireVisible(arg: boolean);
|
|
106
|
+
/**
|
|
107
|
+
* Gets if the wire between the target and the corner is visible.
|
|
108
|
+
*
|
|
109
|
+
* @type {Boolean}
|
|
110
|
+
*/
|
|
111
|
+
get targetWireVisible(): boolean;
|
|
112
|
+
/**
|
|
113
|
+
* Sets if the angle label is visible.
|
|
114
|
+
*
|
|
115
|
+
* @type {Boolean}
|
|
116
|
+
*/
|
|
117
|
+
set angleVisible(arg: boolean);
|
|
118
|
+
/**
|
|
119
|
+
* Gets if the angle label is visible.
|
|
120
|
+
*
|
|
121
|
+
* @type {Boolean}
|
|
122
|
+
*/
|
|
123
|
+
get angleVisible(): boolean;
|
|
124
|
+
|
|
125
|
+
/**
|
|
126
|
+
* Sets if the labels are visible.
|
|
127
|
+
*
|
|
128
|
+
* @type {Boolean}
|
|
129
|
+
*/
|
|
130
|
+
set labelsVisible(value: Boolean);
|
|
131
|
+
|
|
132
|
+
/**
|
|
133
|
+
* Gets if the labels are visible.
|
|
134
|
+
*
|
|
135
|
+
* @type {Boolean}
|
|
136
|
+
*/
|
|
137
|
+
get labelsVisible();
|
|
138
|
+
|
|
139
|
+
/**
|
|
140
|
+
* Sets if this DistanceMeasurement appears highlighted.
|
|
141
|
+
* @param highlighted
|
|
142
|
+
*/
|
|
143
|
+
setHighlighted(highlighted: Boolean): any;
|
|
144
|
+
|
|
145
|
+
/**
|
|
146
|
+
* Sets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.
|
|
147
|
+
*
|
|
148
|
+
* @type {Boolean}
|
|
149
|
+
*/
|
|
150
|
+
set clickable(value: Boolean);
|
|
151
|
+
|
|
152
|
+
/**
|
|
153
|
+
* Gets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.
|
|
154
|
+
*
|
|
155
|
+
* @type {Boolean}
|
|
156
|
+
*/
|
|
157
|
+
get clickable();
|
|
158
|
+
|
|
159
|
+
/**
|
|
160
|
+
* Gets the origin {@link Marker}.
|
|
161
|
+
*
|
|
162
|
+
* @type {Marker}
|
|
163
|
+
*/
|
|
164
|
+
get origin(): Marker;
|
|
165
|
+
|
|
166
|
+
/**
|
|
167
|
+
* Gets the corner {@link Marker}.
|
|
168
|
+
*
|
|
169
|
+
* @type {Marker}
|
|
170
|
+
*/
|
|
171
|
+
get corner(): Marker;
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Gets the target {@link Marker}.
|
|
175
|
+
*
|
|
176
|
+
* @type {Marker}
|
|
177
|
+
*/
|
|
178
|
+
get target(): Marker;
|
|
179
|
+
|
|
180
|
+
/**
|
|
181
|
+
* Gets the angle between two connected 3D line segments, given
|
|
182
|
+
* as three positions on the surface(s) of one or more {@link Entity}s.
|
|
183
|
+
*
|
|
184
|
+
* @type {Number}
|
|
185
|
+
*/
|
|
186
|
+
get angle(): number;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Gets the color of the angle measurement.
|
|
190
|
+
*
|
|
191
|
+
* The color is an HTML string representation, eg. "#00BBFF" and "blue".
|
|
192
|
+
*
|
|
193
|
+
* @type {String}
|
|
194
|
+
*/
|
|
195
|
+
get color(): string;
|
|
196
|
+
|
|
197
|
+
/** Sets the color of the angle measurement.
|
|
198
|
+
*
|
|
199
|
+
* The color is given as an HTML string representation, eg. "#00BBFF" and "blue".
|
|
200
|
+
*
|
|
201
|
+
* @type {String}
|
|
202
|
+
*/
|
|
203
|
+
set color(value);
|
|
204
|
+
}
|
|
@@ -1,91 +1,91 @@
|
|
|
1
|
-
import { Component } from "../../viewer/scene/Component";
|
|
2
|
-
import { AngleMeasurement } from "./AngleMeasurement";
|
|
3
|
-
import { AngleMeasurementsPlugin } from "./AngleMeasurementsPlugin";
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* Creates {@link AngleMeasurement}s from mouse and touch input.
|
|
7
|
-
*
|
|
8
|
-
* Once the AngleMeasurementControl is activated, the first click on any {@link Entity} begins constructing a {@link AngleMeasurement}, fixing its origin to that Entity. The next click on any Entity will complete the AngleMeasurement, fixing its target to that second Entity. The AngleMeasurementControl will then wait for the next click on any Entity, to begin constructing another AngleMeasurement, and so on, until deactivated.
|
|
9
|
-
*/
|
|
10
|
-
export declare class AngleMeasurementsControl extends Component {
|
|
11
|
-
/**
|
|
12
|
-
* The {@link AngleMeasurementsPlugin} that owns this AngleMeasurementsControl.
|
|
13
|
-
* @type {AngleMeasurementsPlugin}
|
|
14
|
-
*/
|
|
15
|
-
plugin: AngleMeasurementsPlugin;
|
|
16
|
-
|
|
17
|
-
/**
|
|
18
|
-
* Sets whether snap-to-vertex and snap-to-edge are enabled for this AngleMeasurementsControl.
|
|
19
|
-
*
|
|
20
|
-
* This is `true` by default.
|
|
21
|
-
*
|
|
22
|
-
* Internally, this deactivates then activates the AngleMeasurementsControl when changed, which means that
|
|
23
|
-
* it will destroy any AngleMeasurements currently under construction, and incurs some overhead, since it unbinds
|
|
24
|
-
* and rebinds various input handlers.
|
|
25
|
-
*
|
|
26
|
-
* @param {boolean} snapping Whether to enable snap-to-vertex and snap-edge for this AngleMeasurementsControl.
|
|
27
|
-
*/
|
|
28
|
-
set snapping(snapping: boolean);
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* Gets whether snap-to-vertex and snap-to-edge are enabled for this AngleMeasurementsControl.
|
|
32
|
-
*
|
|
33
|
-
* This is `true` by default.
|
|
34
|
-
*
|
|
35
|
-
* @returns {boolean} Whether snap-to-vertex and snap-to-edge are enabled for this AngleMeasurementsControl.
|
|
36
|
-
*/
|
|
37
|
-
get snapping(): boolean;
|
|
38
|
-
|
|
39
|
-
/** Gets if this AngleMeasurementsControl is currently active, where it is responding to input.
|
|
40
|
-
*
|
|
41
|
-
* @returns {Boolean}
|
|
42
|
-
*/
|
|
43
|
-
get active(): boolean;
|
|
44
|
-
|
|
45
|
-
set active(active: boolean);
|
|
46
|
-
|
|
47
|
-
/**
|
|
48
|
-
* Activates this AngleMeasurementsControl, ready to respond to input.
|
|
49
|
-
*/
|
|
50
|
-
activate(): void;
|
|
51
|
-
|
|
52
|
-
/**
|
|
53
|
-
* Deactivates this AngleMeasurementsControl, making it unresponsive to input.
|
|
54
|
-
*
|
|
55
|
-
* Destroys any {@link AngleMeasurement} under construction.
|
|
56
|
-
*/
|
|
57
|
-
deactivate(): void;
|
|
58
|
-
|
|
59
|
-
/**
|
|
60
|
-
* Resets this AngleMeasurementsControl.
|
|
61
|
-
*
|
|
62
|
-
* Destroys any {@link AngleMeasurement} under construction.
|
|
63
|
-
*
|
|
64
|
-
* Does nothing if the AngleMeasurementsControl is not active.
|
|
65
|
-
*/
|
|
66
|
-
reset(): void;
|
|
67
|
-
|
|
68
|
-
/**
|
|
69
|
-
* Fires when the measurement is ended.
|
|
70
|
-
* @param event The measurementEnd event
|
|
71
|
-
* @param callback Called fired on the event
|
|
72
|
-
* @param scope Scope for the callback
|
|
73
|
-
*/
|
|
74
|
-
on(event: "measurementEnd", callback: (measurement: AngleMeasurement) => void, scope?: any): string;
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* Fires when the measurement is cancelled.
|
|
78
|
-
* @param event The measurementCancel event
|
|
79
|
-
* @param callback Called fired on the event
|
|
80
|
-
* @param scope Scope for the callback
|
|
81
|
-
*/
|
|
82
|
-
on(event: "measurementCancel", callback: (measurement: AngleMeasurement) => void, scope?: any): string;
|
|
83
|
-
|
|
84
|
-
/**
|
|
85
|
-
* Fires when the measurement is started.
|
|
86
|
-
* @param event The measurementStart event
|
|
87
|
-
* @param callback Called fired on the event
|
|
88
|
-
* @param scope Scope for the callback
|
|
89
|
-
*/
|
|
90
|
-
on(event: "measurementStart", callback: (measurement: AngleMeasurement) => void, scope?: any): string;
|
|
91
|
-
}
|
|
1
|
+
import { Component } from "../../viewer/scene/Component";
|
|
2
|
+
import { AngleMeasurement } from "./AngleMeasurement";
|
|
3
|
+
import { AngleMeasurementsPlugin } from "./AngleMeasurementsPlugin";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Creates {@link AngleMeasurement}s from mouse and touch input.
|
|
7
|
+
*
|
|
8
|
+
* Once the AngleMeasurementControl is activated, the first click on any {@link Entity} begins constructing a {@link AngleMeasurement}, fixing its origin to that Entity. The next click on any Entity will complete the AngleMeasurement, fixing its target to that second Entity. The AngleMeasurementControl will then wait for the next click on any Entity, to begin constructing another AngleMeasurement, and so on, until deactivated.
|
|
9
|
+
*/
|
|
10
|
+
export declare class AngleMeasurementsControl extends Component {
|
|
11
|
+
/**
|
|
12
|
+
* The {@link AngleMeasurementsPlugin} that owns this AngleMeasurementsControl.
|
|
13
|
+
* @type {AngleMeasurementsPlugin}
|
|
14
|
+
*/
|
|
15
|
+
plugin: AngleMeasurementsPlugin;
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Sets whether snap-to-vertex and snap-to-edge are enabled for this AngleMeasurementsControl.
|
|
19
|
+
*
|
|
20
|
+
* This is `true` by default.
|
|
21
|
+
*
|
|
22
|
+
* Internally, this deactivates then activates the AngleMeasurementsControl when changed, which means that
|
|
23
|
+
* it will destroy any AngleMeasurements currently under construction, and incurs some overhead, since it unbinds
|
|
24
|
+
* and rebinds various input handlers.
|
|
25
|
+
*
|
|
26
|
+
* @param {boolean} snapping Whether to enable snap-to-vertex and snap-edge for this AngleMeasurementsControl.
|
|
27
|
+
*/
|
|
28
|
+
set snapping(snapping: boolean);
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Gets whether snap-to-vertex and snap-to-edge are enabled for this AngleMeasurementsControl.
|
|
32
|
+
*
|
|
33
|
+
* This is `true` by default.
|
|
34
|
+
*
|
|
35
|
+
* @returns {boolean} Whether snap-to-vertex and snap-to-edge are enabled for this AngleMeasurementsControl.
|
|
36
|
+
*/
|
|
37
|
+
get snapping(): boolean;
|
|
38
|
+
|
|
39
|
+
/** Gets if this AngleMeasurementsControl is currently active, where it is responding to input.
|
|
40
|
+
*
|
|
41
|
+
* @returns {Boolean}
|
|
42
|
+
*/
|
|
43
|
+
get active(): boolean;
|
|
44
|
+
|
|
45
|
+
set active(active: boolean);
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Activates this AngleMeasurementsControl, ready to respond to input.
|
|
49
|
+
*/
|
|
50
|
+
activate(): void;
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
* Deactivates this AngleMeasurementsControl, making it unresponsive to input.
|
|
54
|
+
*
|
|
55
|
+
* Destroys any {@link AngleMeasurement} under construction.
|
|
56
|
+
*/
|
|
57
|
+
deactivate(): void;
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Resets this AngleMeasurementsControl.
|
|
61
|
+
*
|
|
62
|
+
* Destroys any {@link AngleMeasurement} under construction.
|
|
63
|
+
*
|
|
64
|
+
* Does nothing if the AngleMeasurementsControl is not active.
|
|
65
|
+
*/
|
|
66
|
+
reset(): void;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* Fires when the measurement is ended.
|
|
70
|
+
* @param event The measurementEnd event
|
|
71
|
+
* @param callback Called fired on the event
|
|
72
|
+
* @param scope Scope for the callback
|
|
73
|
+
*/
|
|
74
|
+
on(event: "measurementEnd", callback: (measurement: AngleMeasurement) => void, scope?: any): string;
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Fires when the measurement is cancelled.
|
|
78
|
+
* @param event The measurementCancel event
|
|
79
|
+
* @param callback Called fired on the event
|
|
80
|
+
* @param scope Scope for the callback
|
|
81
|
+
*/
|
|
82
|
+
on(event: "measurementCancel", callback: (measurement: AngleMeasurement) => void, scope?: any): string;
|
|
83
|
+
|
|
84
|
+
/**
|
|
85
|
+
* Fires when the measurement is started.
|
|
86
|
+
* @param event The measurementStart event
|
|
87
|
+
* @param callback Called fired on the event
|
|
88
|
+
* @param scope Scope for the callback
|
|
89
|
+
*/
|
|
90
|
+
on(event: "measurementStart", callback: (measurement: AngleMeasurement) => void, scope?: any): string;
|
|
91
|
+
}
|