@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/package.json CHANGED
@@ -1,13 +1,13 @@
1
1
  {
2
2
  "name": "@xtctwins/tctwins-core",
3
- "version": "1.0.28",
3
+ "version": "1.0.30",
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 && rollup --config rollup.minified.config.js && cp node_modules/web-ifc/web-ifc.wasm dist/.",
10
+ "build": "rollup --config rollup.config.js && rollup --config rollup.minified.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",
@@ -61,6 +61,7 @@
61
61
  "eslint": "^8.13.0",
62
62
  "parse5": "^7.0.0",
63
63
  "rollup": "^2.70.2",
64
+ "rollup-plugin-livereload": "^2.0.5",
64
65
  "rollup-plugin-terser": "^7.0.2",
65
66
  "typedoc": "^0.22.15"
66
67
  },
@@ -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
- * The {@link AngleMeasurementsPlugin} that owns this AngleMeasurement.
11
- * @type {AngleMeasurementsPlugin}
12
- */
13
- plugin: AngleMeasurementsPlugin;
14
-
15
- /**
16
- * Sets whether this AngleMeasurement indicates that its measurement is approximate.
17
- *
18
- * This is ````true```` by default.
19
- *
20
- * @type {Boolean}
21
- */
22
- set approximate(arg: boolean);
23
- /**
24
- * Gets whether this AngleMeasurement indicates that its measurement is approximate.
25
- *
26
- * This is ````true```` by default.
27
- *
28
- * @type {Boolean}
29
- */
30
- get approximate(): boolean;
31
-
32
- /**
33
- * Sets whether this AngleMeasurement is visible or not.
34
- *
35
- * @type {Boolean}
36
- */
37
- set visible(arg: boolean);
38
- /**
39
- * Gets whether this AngleMeasurement is visible or not.
40
- *
41
- * @type {Boolean}
42
- */
43
- get visible(): boolean;
44
- /**
45
- * Sets if the origin {@link Marker} is visible.
46
- *
47
- * @type {Boolean}
48
- */
49
- set originVisible(arg: boolean);
50
- /**
51
- * Gets if the origin {@link Marker} is visible.
52
- *
53
- * @type {Boolean}
54
- */
55
- get originVisible(): boolean;
56
- /**
57
- * Sets if the corner {@link Marker} is visible.
58
- *
59
- * @type {Boolean}
60
- */
61
- set cornerVisible(arg: boolean);
62
- /**
63
- * Gets if the corner {@link Marker} is visible.
64
- *
65
- * @type {Boolean}
66
- */
67
- get cornerVisible(): boolean;
68
- /**
69
- * Sets if the target {@link Marker} is visible.
70
- *
71
- * @type {Boolean}
72
- */
73
- set targetVisible(arg: boolean);
74
- /**
75
- * Gets if the target {@link Marker} is visible.
76
- *
77
- * @type {Boolean}
78
- */
79
- get targetVisible(): boolean;
80
- /**
81
- * Sets if the wire between the origin and the corner is visible.
82
- *
83
- * @type {Boolean}
84
- */
85
- set originWireVisible(arg: boolean);
86
- /**
87
- * Gets if the wire between the origin and the corner is visible.
88
- *
89
- * @type {Boolean}
90
- */
91
- get originWireVisible(): boolean;
92
- /**
93
- * Sets if the wire between the target and the corner is visible.
94
- *
95
- * @type {Boolean}
96
- */
97
- set targetWireVisible(arg: boolean);
98
- /**
99
- * Gets if the wire between the target and the corner is visible.
100
- *
101
- * @type {Boolean}
102
- */
103
- get targetWireVisible(): boolean;
104
- /**
105
- * Sets if the angle label is visible.
106
- *
107
- * @type {Boolean}
108
- */
109
- set angleVisible(arg: boolean);
110
- /**
111
- * Gets if the angle label is visible.
112
- *
113
- * @type {Boolean}
114
- */
115
- get angleVisible(): boolean;
116
-
117
- /**
118
- * Sets if the labels are visible.
119
- *
120
- * @type {Boolean}
121
- */
122
- set labelsVisible(value: Boolean);
123
-
124
- /**
125
- * Gets if the labels are visible.
126
- *
127
- * @type {Boolean}
128
- */
129
- get labelsVisible();
130
-
131
- /**
132
- * Sets if this DistanceMeasurement appears highlighted.
133
- * @param highlighted
134
- */
135
- setHighlighted(highlighted: Boolean): any;
136
-
137
- /**
138
- * Sets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.
139
- *
140
- * @type {Boolean}
141
- */
142
- set clickable(value: Boolean);
143
-
144
- /**
145
- * Gets if the wires, dots ad labels will fire "mouseOver" "mouseLeave" and "contextMenu" events.
146
- *
147
- * @type {Boolean}
148
- */
149
- get clickable();
150
-
151
- /**
152
- * Gets the origin {@link Marker}.
153
- *
154
- * @type {Marker}
155
- */
156
- get origin(): Marker;
157
-
158
- /**
159
- * Gets the corner {@link Marker}.
160
- *
161
- * @type {Marker}
162
- */
163
- get corner(): Marker;
164
-
165
- /**
166
- * Gets the target {@link Marker}.
167
- *
168
- * @type {Marker}
169
- */
170
- get target(): Marker;
171
-
172
- /**
173
- * Gets the angle between two connected 3D line segments, given
174
- * as three positions on the surface(s) of one or more {@link Entity}s.
175
- *
176
- * @type {Number}
177
- */
178
- get angle(): number;
179
-
180
- /**
181
- * Gets the color of the angle measurement.
182
- *
183
- * The color is an HTML string representation, eg. "#00BBFF" and "blue".
184
- *
185
- * @type {String}
186
- */
187
- get color(): string;
188
-
189
- /** Sets the color of the angle measurement.
190
- *
191
- * The color is given as an HTML string representation, eg. "#00BBFF" and "blue".
192
- *
193
- * @type {String}
194
- */
195
- set color(value);
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
  }
@@ -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
  *