@wge/blueprint-viewer
v8.0.9
Published
Blueprint's viewer
Downloads
1
Readme
Blueprint Viewer
Install package
npm i @wge/blueprint-viewer
Run
import BlueprintViewer from '@wge/blueprint-viewer';
const container = document.getElementById('root');
const viewer = new BlueprintViewer(container);
(async () => {
const manifest = await viewer.loadManifest('assets/test/manifest.json');
await viewer.loadBlueprint(manifest.pages[0].path); // load first page
})();