Skip to content

Commit

Permalink
Merge pull request #1492 from xeokit/clickable-distance-measurements-fix
Browse files Browse the repository at this point in the history
[FIX] Make programmatically-created distance measurements initially clickable
  • Loading branch information
xeolabs authored May 16, 2024
2 parents 8a5a8ef + 9952a99 commit b566499
Show file tree
Hide file tree
Showing 8 changed files with 385 additions and 58 deletions.
169 changes: 152 additions & 17 deletions dist/xeokit-sdk.cjs.js

Large diffs are not rendered by default.

169 changes: 152 additions & 17 deletions dist/xeokit-sdk.es.js

Large diffs are not rendered by default.

82 changes: 69 additions & 13 deletions dist/xeokit-sdk.es5.js

Large diffs are not rendered by default.

10 changes: 5 additions & 5 deletions dist/xeokit-sdk.min.cjs.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/xeokit-sdk.min.es.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions dist/xeokit-sdk.min.es5.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@xeokit/xeokit-sdk",
"version": "2.6.11",
"version": "2.6.12",
"description": "Web Programming Toolkit for 3D/2D BIM and AEC Graphics",
"module": "./dist/xeokit-sdk.es.js",
"main": "./dist/xeokit-sdk.cjs.js",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,7 @@ class DistanceMeasurementsPlugin extends Plugin {
onContextMenu: this._onContextMenu
});
this._measurements[measurement.id] = measurement;
measurement.clickable = true;
measurement.on("destroyed", () => {
delete this._measurements[measurement.id];
});
Expand Down

0 comments on commit b566499

Please sign in to comment.