Skip to content

Commit

Permalink
Option to make selected objects not appear floating in front of others
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Feb 21, 2022
1 parent 0ef55f6 commit cb782f5
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 2 deletions.
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.4.4",
"version": "2.4.5",
"description": "BIM viewer built on xeokit",
"main": "dist/xeokit-bim-viewer.es.js",
"files": [
Expand Down Expand Up @@ -47,7 +47,7 @@
"rollup-plugin-terser": "^7.0.2"
},
"dependencies": {
"@xeokit/xeokit-sdk": "2.2.2",
"@xeokit/xeokit-sdk": "2.2.5",
"http-server": "^13.0.2"
}
}
10 changes: 10 additions & 0 deletions src/BIMViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -595,6 +595,8 @@ class BIMViewer extends Controller {
"edgesEnabled": true,
"xrayContext": true,
"xrayPickable": false,
"selectedGlowThrough": true,
"highlightGlowThrough": true,
"backgroundColor": [1.0, 1.0, 1.0],
"objectColorSource": "model",
"externalMetadata": false
Expand Down Expand Up @@ -721,6 +723,14 @@ class BIMViewer extends Controller {
this._configs[name] = parseBool(value);
break;

case "selectedGlowThrough":
this.viewer.scene.selectedMaterial.glowThrough = this._configs[name] = parseBool(value);
break;

case "highlightGlowThrough":
this.viewer.scene.highlightMaterial.glowThrough = this._configs[name] = parseBool(value);
break;

case "externalMetadata":
this._configs[name] = parseBool(value);
break;
Expand Down

0 comments on commit cb782f5

Please sign in to comment.