@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
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@xtctwins/tctwins-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.31",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Web Programming Toolkit for 3D/2D BIM and CAD",
|
|
6
6
|
"module": "./dist/tctwins-core.es.js",
|
|
7
7
|
"main": "./dist/tctwins-core.cjs.js",
|
|
8
8
|
"types": "./types/index.d.ts",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"build": "rollup --config rollup.config.js &&
|
|
10
|
+
"build": "rollup --config rollup.config.js && webpack --config webpack.min.config.js",
|
|
11
11
|
"dev": "rollup --config rollup.dev.config.js; cp node_modules/web-ifc/web-ifc.wasm dist/.",
|
|
12
12
|
"test": "percy exec -- node ./snapshots.js",
|
|
13
13
|
"docs": "rm -Rf ./docs/*; ./node_modules/.bin/esdoc",
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import {Viewer} from "../../viewer";
|
|
1
|
+
import { Viewer } from "../../viewer";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* A PointerLens shows a magnified view of a {@link Viewer}'s canvas, centered at the position of the
|
|
5
5
|
* mouse or touch pointer.
|
|
6
6
|
*
|
|
7
7
|
* @example
|
|
8
|
-
* import { Viewer,
|
|
8
|
+
* import { Viewer, XTCLoaderPlugin, AngleMeasurementsPlugin, AngleMeasurementsMouseControl, PointerLens } from "../../dist/xeokit-sdk.es.js";
|
|
9
9
|
*
|
|
10
10
|
* const viewer = new Viewer({
|
|
11
11
|
* canvasId: "myCanvas",
|
|
@@ -16,11 +16,11 @@ import {Viewer} from "../../viewer";
|
|
|
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: "../../assets/models/
|
|
23
|
+
* src: "../../assets/models/xtc/v10/glTF-Embedded/Duplex_A_20110505.glTFEmbedded.xtc",
|
|
24
24
|
* edges: true
|
|
25
25
|
* });
|
|
26
26
|
*
|
|
@@ -35,110 +35,112 @@ import {Viewer} from "../../viewer";
|
|
|
35
35
|
* angleMeasurementsMouseControl.activate();
|
|
36
36
|
*/
|
|
37
37
|
export class PointerLens {
|
|
38
|
+
/**
|
|
39
|
+
* Constructs a new PointerLens.
|
|
40
|
+
*
|
|
41
|
+
* @param {Viewer} viewer The Viewer instance.
|
|
42
|
+
* @param {Object} [cfg] PointerLens configuration.
|
|
43
|
+
* @param {boolean} [cfg.active=true] Whether PointerLens is active. The PointerLens can only be shown when this is `true` (default).
|
|
44
|
+
* @param {number} [cfg.zoomFactor=2] The zoom factor for the lens.
|
|
45
|
+
*/
|
|
46
|
+
constructor(
|
|
47
|
+
viewer: Viewer,
|
|
48
|
+
cfg?: {
|
|
49
|
+
active?: boolean;
|
|
50
|
+
zoomFactor?: number;
|
|
51
|
+
}
|
|
52
|
+
);
|
|
38
53
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
constructor(viewer: Viewer, cfg?: {
|
|
48
|
-
active?: boolean;
|
|
49
|
-
zoomFactor?: number;
|
|
50
|
-
});
|
|
54
|
+
/**
|
|
55
|
+
* Sets the zoom factor for the lens.
|
|
56
|
+
*
|
|
57
|
+
* This is `2` by default.
|
|
58
|
+
*
|
|
59
|
+
* @param {number} zoomFactor The zoom factor for the lens.
|
|
60
|
+
*/
|
|
61
|
+
set zoomFactor(zoomFactor: number);
|
|
51
62
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
63
|
+
/**
|
|
64
|
+
* Gets the zoom factor for the lens.
|
|
65
|
+
*
|
|
66
|
+
* This is `2` by default.
|
|
67
|
+
*
|
|
68
|
+
* @returns {number} The zoom factor for the lens.
|
|
69
|
+
*/
|
|
70
|
+
get zoomFactor(): number;
|
|
60
71
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
*/
|
|
68
|
-
get zoomFactor(): number;
|
|
72
|
+
/**
|
|
73
|
+
* Sets the canvas central position of the lens.
|
|
74
|
+
*
|
|
75
|
+
* @param {number[]} centerPos The canvas central position of the lens.
|
|
76
|
+
*/
|
|
77
|
+
set centerPos(centerPos: number[]);
|
|
69
78
|
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
79
|
+
/**
|
|
80
|
+
* Gets the canvas central position of the lens.
|
|
81
|
+
*
|
|
82
|
+
* @returns {number[]} The canvas central position of the lens.
|
|
83
|
+
*/
|
|
84
|
+
get centerPos(): number[];
|
|
76
85
|
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
86
|
+
/**
|
|
87
|
+
* Sets the canvas coordinates of the pointer.
|
|
88
|
+
*
|
|
89
|
+
* @param {number[]} cursorPos The canvas coordinates of the pointer.
|
|
90
|
+
*/
|
|
91
|
+
set cursorPos(cursorPos: number[]);
|
|
83
92
|
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
93
|
+
/**
|
|
94
|
+
* Gets the canvas coordinates of the pointer.
|
|
95
|
+
*
|
|
96
|
+
* @returns {number[]} The canvas coordinates of the pointer.
|
|
97
|
+
*/
|
|
98
|
+
get cursorPos(): number[];
|
|
90
99
|
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
100
|
+
/**
|
|
101
|
+
* Sets whether the cursor has snapped to anything.
|
|
102
|
+
*
|
|
103
|
+
* @param {boolean} snapped Whether the cursor has snapped to anything.
|
|
104
|
+
*/
|
|
105
|
+
set snapped(snapped: boolean);
|
|
97
106
|
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
107
|
+
/**
|
|
108
|
+
* Gets whether the cursor has snapped to anything.
|
|
109
|
+
*
|
|
110
|
+
* @returns {boolean} Whether the cursor has snapped to anything.
|
|
111
|
+
*/
|
|
112
|
+
get snapped(): boolean;
|
|
104
113
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
114
|
+
/**
|
|
115
|
+
* Sets if this PointerLens is active.
|
|
116
|
+
*
|
|
117
|
+
* @param {boolean} active Whether this PointerLens is active.
|
|
118
|
+
*/
|
|
119
|
+
set active(active: boolean);
|
|
111
120
|
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
121
|
+
/**
|
|
122
|
+
* Gets if this PointerLens is active.
|
|
123
|
+
*
|
|
124
|
+
* @returns {boolean} Whether this PointerLens is active.
|
|
125
|
+
*/
|
|
126
|
+
get active(): boolean;
|
|
118
127
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
128
|
+
/**
|
|
129
|
+
* Sets if this PointerLens is visible.
|
|
130
|
+
*
|
|
131
|
+
* @param {boolean} visible Whether this PointerLens is visible.
|
|
132
|
+
*/
|
|
133
|
+
set visible(visible: boolean);
|
|
125
134
|
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
135
|
+
/**
|
|
136
|
+
* Gets if this PointerLens is visible.
|
|
137
|
+
*
|
|
138
|
+
* @returns {boolean} Whether this PointerLens is visible.
|
|
139
|
+
*/
|
|
140
|
+
get visible(): boolean;
|
|
132
141
|
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
*/
|
|
138
|
-
get visible(): boolean;
|
|
139
|
-
|
|
140
|
-
/**
|
|
141
|
-
* Destroys this PointerLens.
|
|
142
|
-
*/
|
|
143
|
-
destroy(): void;
|
|
142
|
+
/**
|
|
143
|
+
* Destroys this PointerLens.
|
|
144
|
+
*/
|
|
145
|
+
destroy(): void;
|
|
144
146
|
}
|
|
@@ -6,191 +6,199 @@ import { Marker } from "../../viewer/scene/marker";
|
|
|
6
6
|
* @desc Measures the angle indicated by three 3D points.
|
|
7
7
|
*/
|
|
8
8
|
export declare class AngleMeasurement 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
|
-
|
|
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);
|
|
196
204
|
}
|
|
@@ -7,7 +7,7 @@ import { PointerLens } from "../../extras/PointerLens/PointerLens";
|
|
|
7
7
|
* Creates {@link AngleMeasurement}s in an {@link AngleMeasurementsPlugin} from mouse input.
|
|
8
8
|
*
|
|
9
9
|
* @example
|
|
10
|
-
* import { Viewer,
|
|
10
|
+
* import { Viewer, XTCLoaderPlugin, AngleMeasurementsPlugin, AngleMeasurementsMouseControl, PointerLens } from "xeokit-sdk.es.js";
|
|
11
11
|
*
|
|
12
12
|
* const viewer = new Viewer({
|
|
13
13
|
* canvasId: "myCanvas",
|
|
@@ -17,11 +17,11 @@ import { PointerLens } from "../../extras/PointerLens/PointerLens";
|
|
|
17
17
|
* viewer.camera.look = [4.40, 3.72, 8.89];
|
|
18
18
|
* viewer.camera.up = [-0.01, 0.99, 0.039];
|
|
19
19
|
*
|
|
20
|
-
* const
|
|
20
|
+
* const xtcLoader = new XTCLoaderPlugin(viewer);
|
|
21
21
|
*
|
|
22
|
-
* const sceneModel =
|
|
22
|
+
* const sceneModel = xtcLoader.load({
|
|
23
23
|
* id: "myModel",
|
|
24
|
-
* src: "Duplex.
|
|
24
|
+
* src: "Duplex.xtc"
|
|
25
25
|
* });
|
|
26
26
|
*
|
|
27
27
|
* const angleMeasurements = new AngleMeasurementsPlugin(viewer);
|