how to use the Spatial mapping of HoloLens

i found the same question Raycast in a WebXR AR Session;Can this function be implemented on the three.js?