Closed manzt closed 2 years ago
Refactors #162. Decouples ImJoy and standalone app from vizarr internals.
import * as vizarr from "@hms-dbmi/vizarr"; let el = document.querySelector('#root'); let viewer = vizarr.createViewer(el); viewer.addImage({ source: 'https://minio-dev.openmicroscopy.org/idr/v0.3/idr0062-blin-nuclearsegmentation/6001240.zarr' }); viewer.setViewState({ zoom: 0, target: [0, 0] }); viewer.on('viewStateChange', (viewState) => { console.log(viewState); // { zoom: ..., target: [...] } });
Refactors #162. Decouples ImJoy and standalone app from vizarr internals.