Created
February 11, 2022 09:00
-
-
Save wgrzr/095f18254863d98ca6bfd6398428d1c3 to your computer and use it in GitHub Desktop.
Marzipano click window for yaw and pitch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// this outputs coordinates of yaw/pitch on click | |
document.addEventListener('click', (e) => { | |
let view = viewer.view() | |
let x = e.clientX | |
let y = e.clientY | |
console.log(view.screenToCoordinates({ x, y })) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment