UNPKG

@babylonjs/viewer

Version:

The Babylon Viewer aims to simplify a specific but common Babylon.js use case: loading, viewing, and interacting with a 3D model.

3 lines (2 loc) 474 B
import{ak as n,T as e,j as t}from"./index-DFZFpUG-.esm.min.js";function o(o){const s=new n(o);1179937895!==s.getUint32(0,!0)&&e(93);let i=12;const c=s.getUint32(i,!0);1313821514!==s.getUint32(i+4,!0)&&e(94);const r=(new TextDecoder).decode(new t(o,i+8,c)),a=JSON.parse(r);i+=8+c;const g=s.getUint32(i,!0);5130562!==s.getUint32(i+4,!0)&&e(95);return{json:a,binChunk:new n(o,i+8,g)}}export{o as parseGlbContainer}; //# sourceMappingURL=gltf-glb-parser-6HPAM8jv.esm.min.js.map