/iiiframe

IIIF Manifest -> A-Frame Entities

Primary LanguageTypeScriptMIT LicenseMIT

IIIF Manifest -> A-Frame Entities

iiiframe on npm

document.addEventListener('DOMContentLoaded', async (evt) => {
    const entities = await iiiframe('https://iiif-3d-manifests.netlify.com/collection/gltf/woody/index.json');
    const sceneEl = document.querySelector('a-scene');
    await iiiframe.utils.appendEntities(entities, sceneEl);
    iiiframe.utils.scaleAndPositionObject(entities[0]);
    iiiframe.utils.createOrbitCamera(sceneEl, entities[0]);
});

Examples

npm start