File tree Expand file tree Collapse file tree 1 file changed +11
-11
lines changed
viewer/src/components/display/dimensions Expand file tree Collapse file tree 1 file changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -153,17 +153,6 @@ export class IfcDimensions extends IfcComponent {
153
153
} ) ;
154
154
}
155
155
156
- set unitsTextContent ( units : string ) {
157
- if ( ! units ) return ;
158
- if ( units === "mm" ) {
159
- IfcDimensionLine . units = units ;
160
- IfcDimensionLine . scale = 1000 ;
161
- } else if ( units === "m" ) {
162
- IfcDimensionLine . units = units ;
163
- IfcDimensionLine . scale = 1 ;
164
- }
165
- }
166
-
167
156
create ( ) {
168
157
if ( ! this . enabled ) return ;
169
158
if ( ! this . dragging ) {
@@ -208,6 +197,17 @@ export class IfcDimensions extends IfcComponent {
208
197
this . currentDimension = undefined ;
209
198
}
210
199
200
+ unitsTextContent ( units : string ) {
201
+ if ( ! units ) return ;
202
+ if ( units === "mm" ) {
203
+ IfcDimensionLine . units = units ;
204
+ IfcDimensionLine . scale = 1000 ;
205
+ } else if ( units === "m" ) {
206
+ IfcDimensionLine . units = units ;
207
+ IfcDimensionLine . scale = 1 ;
208
+ }
209
+ }
210
+
211
211
private drawStart ( ) {
212
212
this . dragging = true ;
213
213
const intersects = this . context . castRayIfc ( ) ;
You can’t perform that action at this time.
0 commit comments