Add hotspot enhancements and improed styles

Signed-off-by: Justin Georgi <justin.georgi@gmail.com>
This commit is contained in:
2024-10-29 08:18:16 -07:00
parent 46ee8b6ee9
commit 5d4863f9be
4 changed files with 35 additions and 5 deletions

View File

@@ -160,6 +160,17 @@ slideshowAnnotations = function(mView, slideDuration = 5000) {
}
}
/**
* Toggle visibility of all annotations
*
* @param {ModelViewer} mView
*/
toggleAnnotations = function(mView) {
[...mView.querySelectorAll('button')].forEach( hs => {
hs.toggleAttribute('hidden')
})
}
/**
* Prepare to drag a hotspot
*