Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
},
});
reAddFullScreenHandler(viewer);
// to allow margins around horizontally and vertically oriented images on home zoom
const margins = viewer.viewport.getMargins();
viewer.viewport.setMargins(
{
left: 30,
top: 10,
right: 30,
bottom: 10,
},
margins,
);
viewer.addControl(document.querySelector('#details-button'), {
anchor: OpenSeadragon.ControlAnchor.TOP_LEFT,
});
// an empty label that 508 scan doesnt like
document.querySelector('.openseadragon-container label').remove();
setViewer(viewer);
}
});
},