@xtctwins/tctwins-core 1.0.29 → 1.0.31
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/tctwins-core.es.js +41197 -29345
- package/dist/tctwins-core.min.es.js +5639 -36
- package/dist/web-ifc-api.js +74136 -0
- package/package.json +2 -2
- package/types/extras/PointerLens/PointerLens.d.ts +100 -98
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +195 -187
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsMouseControl.d.ts +4 -4
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +7 -0
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsTouchControl.d.ts +4 -4
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +241 -233
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +8 -0
- package/types/plugins/WebIFCLoaderPlugin/WebIFCLoaderPlugin.d.ts +217 -211
- package/types/plugins/XTCLoaderPlugin/XTCLoaderPlugin.d.ts +287 -0
- package/types/plugins/XTCLoaderPlugin/index.d.ts +1 -0
- package/types/plugins/index.d.ts +12 -12
- package/types/viewer/Plugin.d.ts +54 -54
- package/types/viewer/Viewer.d.ts +2 -0
- package/types/viewer/scene/Entity.d.ts +392 -392
- package/types/viewer/scene/LineSet/LineSet.d.ts +55 -58
- package/types/viewer/scene/models/SceneModelEntity.d.ts +408 -409
- package/types/plugins/XKTLoaderPlugin/XKTLoaderPlugin.d.ts +0 -281
- package/types/plugins/XKTLoaderPlugin/index.d.ts +0 -1
|
@@ -24,6 +24,13 @@ export declare class AngleMeasurementsPlugin extends Plugin {
|
|
|
24
24
|
*/
|
|
25
25
|
constructor(viewer: Viewer, cfg?: AngleMeasurementsPluginConfiguration);
|
|
26
26
|
|
|
27
|
+
/**
|
|
28
|
+
* 设置精度
|
|
29
|
+
* @param {number} precision
|
|
30
|
+
*/
|
|
31
|
+
set precision(precision: number);
|
|
32
|
+
get precision(): number;
|
|
33
|
+
get measureNum(): number;
|
|
27
34
|
/**
|
|
28
35
|
* Gets the {@link AngleMeasurementsControl}, which creates {@link AngleMeasurement}s from user input.
|
|
29
36
|
*
|
|
@@ -6,7 +6,7 @@ import { PointerCircle } from "../../extras/PointerCircle/PointerCircle.js";
|
|
|
6
6
|
* Creates {@link AngleMeasurement}s in an {@link AngleMeasurementsPlugin} from mouse input.
|
|
7
7
|
*
|
|
8
8
|
* @example
|
|
9
|
-
* import { Viewer,
|
|
9
|
+
* import { Viewer, XTCLoaderPlugin, AngleMeasurementsPlugin, AngleMeasurementsMouseControl, PointerLens } from "xeokit-sdk.es.js";
|
|
10
10
|
*
|
|
11
11
|
* const viewer = new Viewer({
|
|
12
12
|
* canvasId: "myCanvas",
|
|
@@ -16,11 +16,11 @@ import { PointerCircle } from "../../extras/PointerCircle/PointerCircle.js";
|
|
|
16
16
|
* viewer.camera.look = [4.40, 3.72, 8.89];
|
|
17
17
|
* viewer.camera.up = [-0.01, 0.99, 0.039];
|
|
18
18
|
*
|
|
19
|
-
* const
|
|
19
|
+
* const xtcLoader = new XTCLoaderPlugin(viewer);
|
|
20
20
|
*
|
|
21
|
-
* const sceneModel =
|
|
21
|
+
* const sceneModel = xtcLoader.load({
|
|
22
22
|
* id: "myModel",
|
|
23
|
-
* src: "Duplex.
|
|
23
|
+
* src: "Duplex.xtc"
|
|
24
24
|
* });
|
|
25
25
|
*
|
|
26
26
|
* const angleMeasurements = new AngleMeasurementsPlugin(viewer);
|
|
@@ -6,237 +6,245 @@ import { Marker } from "../../viewer/scene/marker";
|
|
|
6
6
|
* @desc Measures the distance between two 3D points.
|
|
7
7
|
*/
|
|
8
8
|
export declare class DistanceMeasurement extends Component {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
9
|
+
/**
|
|
10
|
+
* The {@link DistanceMeasurementsPlugin} that owns this DistanceMeasurement.
|
|
11
|
+
* @type {DistanceMeasurementsPlugin}
|
|
12
|
+
*/
|
|
13
|
+
plugin: DistanceMeasurementsPlugin;
|
|
14
|
+
|
|
15
|
+
/**
|
|
16
|
+
* 设置精度
|
|
17
|
+
* @param {number} precision
|
|
18
|
+
*/
|
|
19
|
+
set precision(precision: number);
|
|
20
|
+
|
|
21
|
+
get precision(): number;
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Sets whether this DistanceMeasurement 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
|
+
/**
|
|
33
|
+
* Gets whether this DistanceMeasurement indicates that its measurement is approximate.
|
|
34
|
+
*
|
|
35
|
+
* This is ````true```` by default.
|
|
36
|
+
*
|
|
37
|
+
* @type {Boolean}
|
|
38
|
+
*/
|
|
39
|
+
get approximate(): boolean;
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Sets whether this DistanceMeasurement is visible or not.
|
|
43
|
+
*
|
|
44
|
+
* @type {Boolean}
|
|
45
|
+
*/
|
|
46
|
+
set visible(arg: boolean);
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Gets whether this DistanceMeasurement is visible or not.
|
|
50
|
+
*
|
|
51
|
+
* @type {Boolean}
|
|
52
|
+
*/
|
|
53
|
+
get visible(): boolean;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Sets if the origin {@link Marker} is visible.
|
|
57
|
+
*
|
|
58
|
+
* @type {Boolean}
|
|
59
|
+
*/
|
|
60
|
+
set originVisible(arg: boolean);
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Gets if the origin {@link Marker} is visible.
|
|
64
|
+
*
|
|
65
|
+
* @type {Boolean}
|
|
66
|
+
*/
|
|
67
|
+
get originVisible(): boolean;
|
|
68
|
+
|
|
69
|
+
/**
|
|
70
|
+
* Sets if the target {@link Marker} is visible.
|
|
71
|
+
*
|
|
72
|
+
* @type {Boolean}
|
|
73
|
+
*/
|
|
74
|
+
set targetVisible(arg: boolean);
|
|
75
|
+
|
|
76
|
+
/**
|
|
77
|
+
* Gets if the target {@link Marker} is visible.
|
|
78
|
+
*
|
|
79
|
+
* @type {Boolean}
|
|
80
|
+
*/
|
|
81
|
+
get targetVisible(): boolean;
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* Sets if the axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are enabled.
|
|
85
|
+
*
|
|
86
|
+
* Wires are only shown if enabled and visible.
|
|
87
|
+
*
|
|
88
|
+
* @type {Boolean}
|
|
89
|
+
*/
|
|
90
|
+
set axisEnabled(value: boolean);
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Gets if the axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are enabled.
|
|
94
|
+
*
|
|
95
|
+
* Wires are only shown if enabled and visible.
|
|
96
|
+
*
|
|
97
|
+
* @type {Boolean}
|
|
98
|
+
*/
|
|
99
|
+
get axisEnabled();
|
|
100
|
+
/**
|
|
101
|
+
* Sets if the direct point-to-point wire between {@link DistanceMeasurement.origin} and {@link DistanceMeasurement.target} is visible.
|
|
102
|
+
*
|
|
103
|
+
* @type {Boolean}
|
|
104
|
+
*/
|
|
105
|
+
set wireVisible(arg: boolean);
|
|
106
|
+
|
|
107
|
+
/**
|
|
108
|
+
* Gets if the direct point-to-point wire between {@link DistanceMeasurement.origin} and {@link DistanceMeasurement.target} is visible.
|
|
109
|
+
*
|
|
110
|
+
* @type {Boolean}
|
|
111
|
+
*/
|
|
112
|
+
get wireVisible(): boolean;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Sets if the axis-aligned wires between {@link DistanceMeasurement.origin} and {@link DistanceMeasurement.target} are visible.
|
|
116
|
+
*
|
|
117
|
+
* @type {Boolean}
|
|
118
|
+
*/
|
|
119
|
+
set axisVisible(arg: boolean);
|
|
120
|
+
|
|
121
|
+
/**
|
|
122
|
+
* Gets if the axis-aligned wires between {@link DistanceMeasurement.origin} and {@link DistanceMeasurement.target} are visible.
|
|
123
|
+
*
|
|
124
|
+
* @type {Boolean}
|
|
125
|
+
*/
|
|
126
|
+
get axisVisible(): boolean;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* Sets if the X-axis-aligned wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} is visible.
|
|
130
|
+
*
|
|
131
|
+
* Wires are only shown if enabled and visible.
|
|
132
|
+
*
|
|
133
|
+
* @type {Boolean}
|
|
134
|
+
*/
|
|
135
|
+
set xAxisVisible(value: boolean);
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* Gets if the X-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are visible.
|
|
139
|
+
*
|
|
140
|
+
* Wires are only shown if enabled and visible.
|
|
141
|
+
*
|
|
142
|
+
* @type {Boolean}
|
|
143
|
+
*/
|
|
144
|
+
get xAxisVisible();
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* Sets if the Y-axis-aligned wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} is visible.
|
|
148
|
+
*
|
|
149
|
+
* Wires are only shown if enabled and visible.
|
|
150
|
+
*
|
|
151
|
+
* @type {Boolean}
|
|
152
|
+
*/
|
|
153
|
+
set yAxisVisible(value: boolean);
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Gets if the Y-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are visible.
|
|
157
|
+
*
|
|
158
|
+
* Wires are only shown if enabled and visible.
|
|
159
|
+
*
|
|
160
|
+
* @type {Boolean}
|
|
161
|
+
*/
|
|
162
|
+
get yAxisVisible();
|
|
163
|
+
|
|
164
|
+
/**
|
|
165
|
+
* Sets if the Z-axis-aligned wire between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} is visible.
|
|
166
|
+
*
|
|
167
|
+
* Wires are only shown if enabled and visible.
|
|
168
|
+
*
|
|
169
|
+
* @type {Boolean}
|
|
170
|
+
*/
|
|
171
|
+
set zAxisVisible(value: boolean);
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Gets if the Z-axis-aligned wires between {@link DistanceMeasurement#origin} and {@link DistanceMeasurement#target} are visible.
|
|
175
|
+
*
|
|
176
|
+
* Wires are only shown if enabled and visible.
|
|
177
|
+
*
|
|
178
|
+
* @type {Boolean}
|
|
179
|
+
*/
|
|
180
|
+
get zAxisVisible();
|
|
181
|
+
|
|
182
|
+
/**
|
|
183
|
+
* Sets if the labels are visible.
|
|
184
|
+
*
|
|
185
|
+
* @type {Boolean}
|
|
186
|
+
*/
|
|
187
|
+
set labelsVisible(value: boolean);
|
|
188
|
+
|
|
189
|
+
/**
|
|
190
|
+
* Gets if the labels are visible.
|
|
191
|
+
*
|
|
192
|
+
* @type {Boolean}
|
|
193
|
+
*/
|
|
194
|
+
get labelsVisible();
|
|
195
|
+
|
|
196
|
+
/**
|
|
197
|
+
* Sets if this DistanceMeasurement appears highlighted.
|
|
198
|
+
* @param highlighted
|
|
199
|
+
*/
|
|
200
|
+
setHighlighted(highlighted: boolean): any;
|
|
201
|
+
|
|
202
|
+
/**
|
|
203
|
+
* Sets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events, or ignore mouse events altogether.
|
|
204
|
+
*
|
|
205
|
+
* @type {Boolean}
|
|
206
|
+
*/
|
|
207
|
+
set clickable(value: boolean);
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Gets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.
|
|
211
|
+
*
|
|
212
|
+
* @type {Boolean}
|
|
213
|
+
*/
|
|
214
|
+
get clickable();
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* Gets the origin {@link Marker}.
|
|
218
|
+
*
|
|
219
|
+
* @type {Marker}
|
|
220
|
+
*/
|
|
221
|
+
get origin(): Marker;
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Gets the target {@link Marker}.
|
|
225
|
+
*
|
|
226
|
+
* @type {Marker}
|
|
227
|
+
*/
|
|
228
|
+
get target(): Marker;
|
|
229
|
+
|
|
230
|
+
/**
|
|
231
|
+
* Gets the World-space direct point-to-point distance between {@link DistanceMeasurement.origin} and {@link DistanceMeasurement.target}.
|
|
232
|
+
*
|
|
233
|
+
* @type {Number}
|
|
234
|
+
*/
|
|
235
|
+
get length(): number;
|
|
236
|
+
|
|
237
|
+
/**
|
|
238
|
+
* Sets the color.
|
|
239
|
+
*
|
|
240
|
+
* @type {String}
|
|
241
|
+
*/
|
|
242
|
+
set color(arg: string);
|
|
243
|
+
|
|
244
|
+
/**
|
|
245
|
+
* Gets the color.
|
|
246
|
+
*
|
|
247
|
+
* @type {String}
|
|
248
|
+
*/
|
|
249
|
+
get color(): string;
|
|
242
250
|
}
|
|
@@ -36,6 +36,14 @@ export declare class DistanceMeasurementsPlugin extends Plugin {
|
|
|
36
36
|
*/
|
|
37
37
|
constructor(viewer: Viewer, cfg?: DistanceMeasurementsPluginConfiguration);
|
|
38
38
|
|
|
39
|
+
/**
|
|
40
|
+
* 设置精度
|
|
41
|
+
* @param {number} precision
|
|
42
|
+
*/
|
|
43
|
+
set precision(precision: number);
|
|
44
|
+
get precision(): number;
|
|
45
|
+
get measureNum(): number;
|
|
46
|
+
|
|
39
47
|
/**
|
|
40
48
|
* Sets the minimum length, in pixels, of an axis wire beyond which its label is shown.
|
|
41
49
|
*
|