@needle-tools/engine 4.7.3 → 4.8.0-next.4eaf70a
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +3 -0
- package/dist/gltf-progressive--2HtE1d8.umd.cjs +8 -0
- package/dist/gltf-progressive-CeuEsYpY.min.js +8 -0
- package/dist/gltf-progressive-DY5t1MFv.js +1370 -0
- package/dist/loader.worker-8olmVOL4.js +1 -0
- package/dist/needle-engine.bundle-1687n4dK.js +42600 -0
- package/dist/needle-engine.bundle-BayRUkg4.min.js +1607 -0
- package/dist/needle-engine.bundle-CooE_ge1.umd.cjs +1607 -0
- package/dist/needle-engine.js +591 -592
- package/dist/needle-engine.min.js +1 -1
- package/dist/needle-engine.umd.cjs +1 -1
- package/dist/{postprocessing-BzY0H7ry.min.js → postprocessing-ChsrvDkI.min.js} +54 -54
- package/dist/{postprocessing-vKBVFpSz.js → postprocessing-DElbMQgB.js} +479 -483
- package/dist/{postprocessing-Dw2OCMp4.umd.cjs → postprocessing-DtxaELce.umd.cjs} +66 -66
- package/dist/{three-examples-DUcCNw9s.umd.cjs → three-examples-BhQvv1B9.umd.cjs} +11 -11
- package/dist/{three-examples-tvuhV8Ne.js → three-examples-CM6Iip03.js} +23 -27
- package/dist/{three-examples-BMOhDaYR.min.js → three-examples-D2zemuAM.min.js} +12 -12
- package/dist/{three-mesh-ui-CxuWt7m-.js → three-mesh-ui-D6Mz5Yl7.js} +799 -810
- package/dist/three-mesh-ui-DWcMuyQ_.min.js +406 -0
- package/dist/three-mesh-ui-tt0buEDC.umd.cjs +406 -0
- package/dist/{vendor-BmYIgaS1.js → vendor-ClB-U1Hn.js} +10 -10
- package/dist/{vendor-Cavtu3CP.umd.cjs → vendor-bOWOWClg.umd.cjs} +1 -1
- package/lib/engine-components/export/usdz/extensions/behavior/Behaviour.d.ts +1 -1
- package/lib/engine-components/postprocessing/PostProcessingHandler.d.ts +1 -0
- package/lib/engine-components/postprocessing/PostProcessingHandler.js +8 -0
- package/lib/engine-components/postprocessing/PostProcessingHandler.js.map +1 -1
- package/package.json +6 -6
- package/src/engine-components/postprocessing/PostProcessingHandler.ts +14 -0
- package/dist/gltf-progressive-BMJtMiwp.js +0 -1204
- package/dist/gltf-progressive-DMJSXxbo.umd.cjs +0 -8
- package/dist/gltf-progressive-zQ2CaD2H.min.js +0 -8
- package/dist/needle-engine.bundle-BxHtcHHV.js +0 -43846
- package/dist/needle-engine.bundle-DItBuJY3.min.js +0 -1607
- package/dist/needle-engine.bundle-DM_LxEPT.umd.cjs +0 -1607
- package/dist/three-mesh-ui-B3p3gyUz.min.js +0 -406
- package/dist/three-mesh-ui-CQiIQIlA.umd.cjs +0 -406
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(l,u,x,h){"use strict";self.onmessage=e=>{const t=e.data;switch(t.type){case"init":break;case"load":f(t);break;default:console.error("[Worker] Unknown message type:",t.type);break}},self.onerror=e=>{console.error("[Worker] Error:",e)};function p(e){self.postMessage(e)}let o=null,a=null,i=null;async function f(e){o??=new l.GLTFLoader,o.setMeshoptDecoder(u.MeshoptDecoder),a??=new x.DRACOLoader,a.setDecoderConfig({type:"js"}),a.setDecoderPath(e.dracoDecoderPath),o.setDRACOLoader(a),i??=new h.KTX2Loader,i.workerConfig=e.ktx2LoaderConfig,i.setTranscoderPath(e.ktx2TranscoderPath),o.setKTX2Loader(i),o.load(e.url,t=>{const r={type:"loaded-gltf",result:{url:e.url,geometries:[],textures:[]}};m(t,r),p(r)})}function m(e,t){const{result:r}=t;for(const s of e.parser.associations.keys()){const n=e.parser.associations.get(s);if(n)if("isTexture"in s&&s.isTexture){const d=s,c=e.parser.json.textures[n.textures??-1];r.textures.push({texture:d,textureIndex:n.textures??-1,extensions:c?.extensions??{}})}else if("isMesh"in s&&s.isMesh){const d=s,c=n.meshes??-1,L=n.primitives??-1,g=e.parser.json.meshes[c];r.geometries.push({geometry:d.geometry,meshIndex:c,primitiveIndex:L,extensions:g?.extensions??{}})}else"isMaterial"in s&&s.isMaterial}}})(GLTFLoader_js,meshopt_decoder_module_js,DRACOLoader_js,KTX2Loader_js);
|