Skip to content

Commit

Permalink
Merge pull request #189 from xeokit/fix-measurement-dots
Browse files Browse the repository at this point in the history
Measurement fixes; camera panning with middle button
  • Loading branch information
xeolabs authored May 8, 2024
2 parents fbdba74 + 1a91ef7 commit b71711e
Show file tree
Hide file tree
Showing 8 changed files with 770 additions and 177 deletions.
450 changes: 373 additions & 77 deletions dist/xeokit-bim-viewer.es.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/xeokit-bim-viewer.min.es.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/xeokit-bim-viewer.min.umd.js

Large diffs are not rendered by default.

450 changes: 373 additions & 77 deletions dist/xeokit-bim-viewer.umd.js

Large diffs are not rendered by default.

18 changes: 9 additions & 9 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xeokit/xeokit-bim-viewer",
"version": "2.5.1-beta-30",
"version": "2.5.1-beta-31",
"description": "BIM viewer built on xeokit",
"main": "dist/xeokit-bim-viewer.min.es.js",
"files": [
Expand Down Expand Up @@ -58,7 +58,7 @@
"auto-changelog": "^2.4.0"
},
"dependencies": {
"@xeokit/xeokit-sdk": "*",
"@xeokit/xeokit-sdk": "2.6.9",
"http-server": "^13.0.2"
}
}
2 changes: 1 addition & 1 deletion src/BIMViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -592,7 +592,7 @@ class BIMViewer extends Controller {

// Camera control

this.viewer.cameraControl.panRightClick = true;
this.viewer.cameraControl.panRightClick = false;
this.viewer.cameraControl.followPointer = true;
this.viewer.cameraControl.doublePickFlyTo = false;
this.viewer.cameraControl.smartPivot = true;
Expand Down
3 changes: 2 additions & 1 deletion src/toolbar/MeasureDistanceTool.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,8 @@ export class MeasureDistanceTool extends Controller {
});

this._distanceMeasurementsPlugin = new DistanceMeasurementsPlugin(this.viewer, {
defaultAxisVisible: false
defaultAxisVisible: false,
defaultLabelsOnWires : false
});

this._distanceMeasurementsPlugin.on("mouseOver", (e) => {
Expand Down

0 comments on commit b71711e

Please sign in to comment.