@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.
Files changed (36) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/gltf-progressive--2HtE1d8.umd.cjs +8 -0
  3. package/dist/gltf-progressive-CeuEsYpY.min.js +8 -0
  4. package/dist/gltf-progressive-DY5t1MFv.js +1370 -0
  5. package/dist/loader.worker-8olmVOL4.js +1 -0
  6. package/dist/needle-engine.bundle-1687n4dK.js +42600 -0
  7. package/dist/needle-engine.bundle-BayRUkg4.min.js +1607 -0
  8. package/dist/needle-engine.bundle-CooE_ge1.umd.cjs +1607 -0
  9. package/dist/needle-engine.js +591 -592
  10. package/dist/needle-engine.min.js +1 -1
  11. package/dist/needle-engine.umd.cjs +1 -1
  12. package/dist/{postprocessing-BzY0H7ry.min.js → postprocessing-ChsrvDkI.min.js} +54 -54
  13. package/dist/{postprocessing-vKBVFpSz.js → postprocessing-DElbMQgB.js} +479 -483
  14. package/dist/{postprocessing-Dw2OCMp4.umd.cjs → postprocessing-DtxaELce.umd.cjs} +66 -66
  15. package/dist/{three-examples-DUcCNw9s.umd.cjs → three-examples-BhQvv1B9.umd.cjs} +11 -11
  16. package/dist/{three-examples-tvuhV8Ne.js → three-examples-CM6Iip03.js} +23 -27
  17. package/dist/{three-examples-BMOhDaYR.min.js → three-examples-D2zemuAM.min.js} +12 -12
  18. package/dist/{three-mesh-ui-CxuWt7m-.js → three-mesh-ui-D6Mz5Yl7.js} +799 -810
  19. package/dist/three-mesh-ui-DWcMuyQ_.min.js +406 -0
  20. package/dist/three-mesh-ui-tt0buEDC.umd.cjs +406 -0
  21. package/dist/{vendor-BmYIgaS1.js → vendor-ClB-U1Hn.js} +10 -10
  22. package/dist/{vendor-Cavtu3CP.umd.cjs → vendor-bOWOWClg.umd.cjs} +1 -1
  23. package/lib/engine-components/export/usdz/extensions/behavior/Behaviour.d.ts +1 -1
  24. package/lib/engine-components/postprocessing/PostProcessingHandler.d.ts +1 -0
  25. package/lib/engine-components/postprocessing/PostProcessingHandler.js +8 -0
  26. package/lib/engine-components/postprocessing/PostProcessingHandler.js.map +1 -1
  27. package/package.json +6 -6
  28. package/src/engine-components/postprocessing/PostProcessingHandler.ts +14 -0
  29. package/dist/gltf-progressive-BMJtMiwp.js +0 -1204
  30. package/dist/gltf-progressive-DMJSXxbo.umd.cjs +0 -8
  31. package/dist/gltf-progressive-zQ2CaD2H.min.js +0 -8
  32. package/dist/needle-engine.bundle-BxHtcHHV.js +0 -43846
  33. package/dist/needle-engine.bundle-DItBuJY3.min.js +0 -1607
  34. package/dist/needle-engine.bundle-DM_LxEPT.umd.cjs +0 -1607
  35. package/dist/three-mesh-ui-B3p3gyUz.min.js +0 -406
  36. 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);