Include fiedl of view in annotation data

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-11-19 20:01:45 -07:00
parent e92b319a85
commit 7daaf81280
2 changed files with 7 additions and 1 deletions

View File

@@ -53,6 +53,8 @@ selectAnnotation = function(mView, annotId) {
an.classList.remove('HiddenAnnotation');
if (an.parentElement.dataset.target) {mView.cameraTarget = an.parentElement.dataset.target}
if (an.parentElement.dataset.orbit) {mView.cameraOrbit = an.parentElement.dataset.orbit}
const anFov = an.parentElement.getAttribute('field-of-view')
if (anFov) {mView.fieldOfView = anFov}
anSelected = true
} else {
an.classList.add('HiddenAnnotation');