CesiumJS filtering layer

Hi guys, I’m developing a FrontEnd in Angular written in TS and I need to develop a filter that ensures that by passing a rectangle over a Cesium map containing some layers I’m able to see only the selected layers in this transparent rectangle by filtering the others. Do you have any suggestions on how to proceed?