Skip to content

Commit

Permalink
Bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
agviegas committed Jul 5, 2023
1 parent 371bf0c commit 530c567
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 5 deletions.
14 changes: 13 additions & 1 deletion example/build/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -110278,7 +110278,7 @@
return label;
}
getTextContent() {
return `${this.length / IfcDimensionLine.scale} ${IfcDimensionLine.units}`;
return `${this.length * IfcDimensionLine.scale} ${IfcDimensionLine.units}`;
}
newBoundingBox() {
const box = new BoxGeometry(1, 1, this.length);
Expand Down Expand Up @@ -110465,6 +110465,18 @@
(_a = this.currentDimension) === null || _a === void 0 ? void 0 : _a.removeFromScene();
this.currentDimension = undefined;
}
setDimensionUnit(units) {
if (!units)
return;
if (units === "mm") {
IfcDimensionLine.units = units;
IfcDimensionLine.scale = 1000;
}
else if (units === "m") {
IfcDimensionLine.units = units;
IfcDimensionLine.scale = 1;
}
}
drawStart() {
this.dragging = true;
const intersects = this.context.castRayIfc();
Expand Down
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "web-ifc-viewer-basic-example",
"private": true,
"type": "module",
"version": "1.0.216",
"version": "1.0.218",
"description": "A basic html example for web-ifc-viewer",
"main": "main.js",
"scripts": {
Expand All @@ -29,6 +29,6 @@
"three": "0.135",
"three-mesh-bvh": "^0.5.11",
"web-ifc": "^0.0.39",
"web-ifc-viewer": "1.0.216"
"web-ifc-viewer": "1.0.218"
}
}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "web-ifc-viewer-root",
"description": "IFC viewer",
"version": "1.0.216",
"version": "1.0.218",
"private": true,
"type": "module",
"main": "viewer/src/ifc-viewer-api.ts",
Expand Down
2 changes: 1 addition & 1 deletion viewer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "web-ifc-viewer",
"version": "1.0.216",
"version": "1.0.218",
"description": "IFC viewer",
"main": "dist/index.js",
"type": "module",
Expand Down

0 comments on commit 530c567

Please sign in to comment.