Skip to content

Commit

Permalink
Rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
xeolabs committed Jun 4, 2024
1 parent 5d84d49 commit e842ad8
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 7 deletions.
4 changes: 3 additions & 1 deletion dist/xeokit-sdk.cjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -10639,6 +10639,9 @@ class Marker extends Component {
return;
}
this._occludable = occludable;
if (this._occludable) {
this._renderer.markerWorldPosUpdated(this);
}
}

/**
Expand Down Expand Up @@ -17212,7 +17215,6 @@ class OcclusionTester {
markerWorldPosUpdated(marker) {
const occlusionLayer = this._markersToOcclusionLayersMap[marker.id];
if (!occlusionLayer) {
marker.error("Marker has not been added to OcclusionTester");
return;
}
const originHash = marker.origin.join();
Expand Down
4 changes: 3 additions & 1 deletion dist/xeokit-sdk.es.js
Original file line number Diff line number Diff line change
Expand Up @@ -10635,6 +10635,9 @@ class Marker extends Component {
return;
}
this._occludable = occludable;
if (this._occludable) {
this._renderer.markerWorldPosUpdated(this);
}
}

/**
Expand Down Expand Up @@ -17208,7 +17211,6 @@ class OcclusionTester {
markerWorldPosUpdated(marker) {
const occlusionLayer = this._markersToOcclusionLayersMap[marker.id];
if (!occlusionLayer) {
marker.error("Marker has not been added to OcclusionTester");
return;
}
const originHash = marker.origin.join();
Expand Down
4 changes: 2 additions & 2 deletions dist/xeokit-sdk.es5.js
Original file line number Diff line number Diff line change
Expand Up @@ -2704,7 +2704,7 @@ _this14._onEntityModelDestroyed=null;});}else{this._onEntityDestroyed=this._enti
* Fires a "worldPos" event with new World position.
*
* @type {Number[]}
*/,set:function set(occludable){occludable=!!occludable;if(occludable===this._occludable){return;}this._occludable=occludable;}},{key:"worldPos",get:/**
*/,set:function set(occludable){occludable=!!occludable;if(occludable===this._occludable){return;}this._occludable=occludable;if(this._occludable){this._renderer.markerWorldPosUpdated(this);}}},{key:"worldPos",get:/**
* Gets the World-space 3D position of this Marker.
*
* @type {Number[]}
Expand Down Expand Up @@ -4685,7 +4685,7 @@ this._markersToOcclusionLayersMap={};this._onCameraViewMatrix=scene.camera.on("v
*/_createClass(OcclusionTester,[{key:"addMarker",value:function addMarker(marker){var originHash=marker.origin.join();var occlusionLayer=this._occlusionLayers[originHash];if(!occlusionLayer){occlusionLayer=new OcclusionLayer(this._scene,marker.origin);this._occlusionLayers[occlusionLayer.originHash]=occlusionLayer;this._occlusionLayersListDirty=true;}occlusionLayer.addMarker(marker);this._markersToOcclusionLayersMap[marker.id]=occlusionLayer;this._occlusionTestListDirty=true;}/**
* Notifies OcclusionTester that a Marker has updated its World-space position.
* @param marker
*/},{key:"markerWorldPosUpdated",value:function markerWorldPosUpdated(marker){var occlusionLayer=this._markersToOcclusionLayersMap[marker.id];if(!occlusionLayer){marker.error("Marker has not been added to OcclusionTester");return;}var originHash=marker.origin.join();if(originHash!==occlusionLayer.originHash){if(occlusionLayer.numMarkers===1){occlusionLayer.destroy();delete this._occlusionLayers[occlusionLayer.originHash];this._occlusionLayersListDirty=true;}else{occlusionLayer.removeMarker(marker);}var newOcclusionLayer=this._occlusionLayers[originHash];if(!newOcclusionLayer){newOcclusionLayer=new OcclusionLayer(this._scene,marker.origin);this._occlusionLayers[originHash]=occlusionLayer;this._occlusionLayersListDirty=true;}newOcclusionLayer.addMarker(marker);this._markersToOcclusionLayersMap[marker.id]=newOcclusionLayer;}else{occlusionLayer.markerWorldPosUpdated(marker);}}/**
*/},{key:"markerWorldPosUpdated",value:function markerWorldPosUpdated(marker){var occlusionLayer=this._markersToOcclusionLayersMap[marker.id];if(!occlusionLayer){return;}var originHash=marker.origin.join();if(originHash!==occlusionLayer.originHash){if(occlusionLayer.numMarkers===1){occlusionLayer.destroy();delete this._occlusionLayers[occlusionLayer.originHash];this._occlusionLayersListDirty=true;}else{occlusionLayer.removeMarker(marker);}var newOcclusionLayer=this._occlusionLayers[originHash];if(!newOcclusionLayer){newOcclusionLayer=new OcclusionLayer(this._scene,marker.origin);this._occlusionLayers[originHash]=occlusionLayer;this._occlusionLayersListDirty=true;}newOcclusionLayer.addMarker(marker);this._markersToOcclusionLayersMap[marker.id]=newOcclusionLayer;}else{occlusionLayer.markerWorldPosUpdated(marker);}}/**
* Removes a Marker from occlusion testing.
* @param marker
*/},{key:"removeMarker",value:function removeMarker(marker){var originHash=marker.origin.join();var occlusionLayer=this._occlusionLayers[originHash];if(!occlusionLayer){return;}if(occlusionLayer.numMarkers===1){occlusionLayer.destroy();delete this._occlusionLayers[occlusionLayer.originHash];this._occlusionLayersListDirty=true;}else{occlusionLayer.removeMarker(marker);}delete this._markersToOcclusionLayersMap[marker.id];}/**
Expand Down
2 changes: 1 addition & 1 deletion dist/xeokit-sdk.min.cjs.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/xeokit-sdk.min.es.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/xeokit-sdk.min.es5.js

Large diffs are not rendered by default.

0 comments on commit e842ad8

Please sign in to comment.