@xtctwins/tctwins-core 1.0.28 → 1.0.30
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 +3319 -1550
- package/dist/tctwins-core.min.es.js +5 -5
- package/package.json +3 -2
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurement.d.ts +195 -187
- package/types/plugins/AngleMeasurementsPlugin/AngleMeasurementsPlugin.d.ts +7 -0
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurement.d.ts +241 -233
- package/types/plugins/DistanceMeasurementsPlugin/DistanceMeasurementsPlugin.d.ts +8 -0
- package/types/viewer/scene/scene/Scene.d.ts +46 -15
|
@@ -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
|
*
|
|
@@ -109,6 +109,34 @@ export declare class Scene extends Component {
|
|
|
109
109
|
*/
|
|
110
110
|
get dtxEnabled(): boolean;
|
|
111
111
|
|
|
112
|
+
/**
|
|
113
|
+
* Sets whether physically-based rendering is enabled.
|
|
114
|
+
* Default is ````false````.
|
|
115
|
+
* @param {boolean} pbrEnabled
|
|
116
|
+
*/
|
|
117
|
+
set pbrEnabled(pbrEnabled: boolean);
|
|
118
|
+
|
|
119
|
+
/**
|
|
120
|
+
* Gets whether physically-based rendering is enabled.
|
|
121
|
+
* Default is ````false````.
|
|
122
|
+
* @returns {Boolean} True if quality rendering is enabled.
|
|
123
|
+
*/
|
|
124
|
+
get pbrEnabled(): boolean;
|
|
125
|
+
|
|
126
|
+
/**+
|
|
127
|
+
* Sets whether environment light rendering is enabled.
|
|
128
|
+
* Default is ````false````.
|
|
129
|
+
* @param {boolean} saoEnabled
|
|
130
|
+
*/
|
|
131
|
+
set saoEnabled(saoEnabled: boolean);
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* Gets whether environment light rendering is enabled.
|
|
135
|
+
* Default is ````false````.
|
|
136
|
+
* @returns {boolean}
|
|
137
|
+
*/
|
|
138
|
+
get saoEnabled(): boolean;
|
|
139
|
+
|
|
112
140
|
/**
|
|
113
141
|
* set showedges enable
|
|
114
142
|
* @param {boolean} edgesEnabled
|
|
@@ -120,6 +148,24 @@ export declare class Scene extends Component {
|
|
|
120
148
|
*/
|
|
121
149
|
get edgesEnabled(): boolean;
|
|
122
150
|
|
|
151
|
+
/**
|
|
152
|
+
* Sets whether basic color texture rendering is enabled.
|
|
153
|
+
*
|
|
154
|
+
* Default is ````true````.
|
|
155
|
+
*
|
|
156
|
+
* @param {Boolean} colorTextureEnabled
|
|
157
|
+
*/
|
|
158
|
+
set colorTextureEnabled(colorTextureEnabled: boolean);
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Gets whether basic color texture rendering is enabled.
|
|
162
|
+
*
|
|
163
|
+
* Default is ````true````.
|
|
164
|
+
*
|
|
165
|
+
* @returns {Boolean} True if basic color texture rendering is enabled.
|
|
166
|
+
*/
|
|
167
|
+
get colorTextureEnabled(): boolean;
|
|
168
|
+
|
|
123
169
|
/**
|
|
124
170
|
* set whether transparent of canvas background
|
|
125
171
|
* @param {boolean} trans
|
|
@@ -267,21 +313,6 @@ export declare class Scene extends Component {
|
|
|
267
313
|
*/
|
|
268
314
|
get logarithmicDepthBufferEnabled(): boolean;
|
|
269
315
|
|
|
270
|
-
/**
|
|
271
|
-
* Sets whether physically-based rendering is enabled.
|
|
272
|
-
*
|
|
273
|
-
*/
|
|
274
|
-
set pbrEnabled(value: boolean);
|
|
275
|
-
|
|
276
|
-
/**
|
|
277
|
-
* Gets whether quality rendering is enabled.
|
|
278
|
-
*
|
|
279
|
-
* Default is ````false````.
|
|
280
|
-
*
|
|
281
|
-
* @returns {Boolean} True if quality rendering is enabled.
|
|
282
|
-
*/
|
|
283
|
-
get pbrEnabled(): boolean;
|
|
284
|
-
|
|
285
316
|
/**
|
|
286
317
|
* Gets the IDs of the {@link Entity}s in {@link Scene.models}.
|
|
287
318
|
*
|