Skip to content

Commit b68f65c

Browse files
committed
Update position unitsTextContent
1 parent 4a75d80 commit b68f65c

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

viewer/src/components/display/dimensions/dimensions.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -153,17 +153,6 @@ export class IfcDimensions extends IfcComponent {
153153
});
154154
}
155155

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-
167156
create() {
168157
if (!this.enabled) return;
169158
if (!this.dragging) {
@@ -208,6 +197,17 @@ export class IfcDimensions extends IfcComponent {
208197
this.currentDimension = undefined;
209198
}
210199

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+
211211
private drawStart() {
212212
this.dragging = true;
213213
const intersects = this.context.castRayIfc();

0 commit comments

Comments
 (0)