Skip to main content

xrimageloading

Description​

This event is emitted by xrweb when detection image loading begins.

imageloading.detail : { imageTargets: {name, type, metadata} }

PropertyDescription
nameThe image's name.
typeOne of 'FLAT', 'CYLINDRICAL', 'CONICAL'.
metadataUser metadata.

Example​

const componentMap = {}

const addComponents = ({detail}) => {
detail.imageTargets.forEach(({name, type, metadata}) => {
// ...
})
}

this.el.sceneEl.addEventListener('xrimageloading', addComponents)