Last active
November 2, 2021 03:10
-
-
Save wgrzr/05e7b8b58838cdb52a0c4294f9a212cc to your computer and use it in GitHub Desktop.
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) => { | |
var 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