@ifc-lite/viewer 1.19.0 → 1.21.0
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/.turbo/turbo-build.log +59 -43
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +496 -0
- package/dist/assets/basketViewActivator-Bzw51jhm.js +71 -0
- package/dist/assets/{bcf-DOG9_WPX.js → bcf-4K724hw0.js} +18 -18
- package/dist/assets/decode-worker-t2EGKAxO.js +1708 -0
- package/dist/assets/drawing-2d-Bjy8YPrg.js +257 -0
- package/dist/assets/exporters-u0sz2Upj.js +259119 -0
- package/dist/assets/geometry-controller.worker-NH8pZmrU.js +7 -0
- package/dist/assets/geometry.worker-Bp4rW_R1.js +1 -0
- package/dist/assets/ids-B7AXEv7h.js +4067 -0
- package/dist/assets/ifc-lite-DfZHk36-.js +7 -0
- package/dist/assets/ifc-lite_bg-DlKs5-yM.wasm +0 -0
- package/dist/assets/ifc-lite_bg-PqmRe3Ph.wasm +0 -0
- package/dist/assets/index-CSWgTe1s.css +1 -0
- package/dist/assets/{index-BOi3BuUI.js → index-DVNSvEMh.js} +49877 -28410
- package/dist/assets/laz-perf-Cvr_Lepg.js +1 -0
- package/dist/assets/laz-perf-DnSyzVYH.wasm +0 -0
- package/dist/assets/{native-bridge-CpBeOPQa.js → native-bridge-BiD01jI9.js} +2 -2
- package/dist/assets/parser.worker-Bnbrl6gy.js +182 -0
- package/dist/assets/{sandbox-Baez7n-t.js → sandbox-DPD1ROr0.js} +548 -530
- package/dist/assets/{server-client-BB6cMAXE.js → server-client-DP8fMPY9.js} +1 -1
- package/dist/assets/three-CDRZThFA.js +4057 -0
- package/dist/assets/{wasm-bridge-CAYCUHbE.js → wasm-bridge-CErti6zX.js} +1 -1
- package/dist/assets/workerHelpers-CBbWSJmd.js +36 -0
- package/dist/index.html +10 -9
- package/dist/samples/building-architecture.ifc +453 -0
- package/dist/samples/hello-wall.ifc +1054 -0
- package/dist/samples/infra-bridge.ifc +962 -0
- package/index.html +1 -1
- package/package.json +15 -10
- package/public/samples/building-architecture.ifc +453 -0
- package/public/samples/hello-wall.ifc +1054 -0
- package/public/samples/infra-bridge.ifc +962 -0
- package/src/App.tsx +37 -3
- package/src/components/mcp/HeroScene.tsx +876 -0
- package/src/components/mcp/McpLanding.tsx +1318 -0
- package/src/components/mcp/McpPlayground.tsx +524 -0
- package/src/components/mcp/PlaygroundChat.tsx +1097 -0
- package/src/components/mcp/PlaygroundViewer.tsx +815 -0
- package/src/components/mcp/README.md +171 -0
- package/src/components/mcp/data.ts +659 -0
- package/src/components/mcp/playground-dispatcher.ts +1649 -0
- package/src/components/mcp/playground-files.ts +107 -0
- package/src/components/mcp/playground-uploads.ts +122 -0
- package/src/components/mcp/types.ts +65 -0
- package/src/components/mcp/use-mcp-page.ts +109 -0
- package/src/components/viewer/BasketPresentationDock.tsx +3 -0
- package/src/components/viewer/CesiumOverlay.tsx +165 -120
- package/src/components/viewer/DeviationPanel.tsx +172 -0
- package/src/components/viewer/HierarchyPanel.tsx +29 -3
- package/src/components/viewer/HoverTooltip.tsx +5 -0
- package/src/components/viewer/IDSAuditSummary.tsx +389 -0
- package/src/components/viewer/IDSPanel.tsx +80 -26
- package/src/components/viewer/MainToolbar.tsx +79 -7
- package/src/components/viewer/MergeLayersBanner.tsx +108 -0
- package/src/components/viewer/MobileToolbar.tsx +326 -0
- package/src/components/viewer/PointCloudClasses.tsx +111 -0
- package/src/components/viewer/PointCloudLegend.tsx +119 -0
- package/src/components/viewer/PointCloudPanel.tsx +52 -1
- package/src/components/viewer/PropertiesPanel.tsx +37 -6
- package/src/components/viewer/RectSelectionOverlay.tsx +48 -0
- package/src/components/viewer/StatusBar.tsx +14 -0
- package/src/components/viewer/ViewerLayout.tsx +288 -95
- package/src/components/viewer/Viewport.tsx +86 -18
- package/src/components/viewer/ViewportContainer.tsx +60 -15
- package/src/components/viewer/ViewportOverlays.tsx +41 -26
- package/src/components/viewer/mouseHandlerTypes.ts +22 -0
- package/src/components/viewer/properties/GeoreferencingPanel.tsx +77 -8
- package/src/components/viewer/properties/MaterialCard.tsx +2 -2
- package/src/components/viewer/selectionHandlers.ts +41 -0
- package/src/components/viewer/tools/SectionPanel.tsx +181 -24
- package/src/components/viewer/tools/SectionVisualization.tsx +384 -3
- package/src/components/viewer/useAnimationLoop.ts +22 -0
- package/src/components/viewer/useMouseControls.ts +296 -3
- package/src/components/viewer/usePointCloudSync.ts +8 -1
- package/src/components/viewer/useRenderUpdates.ts +21 -1
- package/src/components/viewer/useTouchControls.ts +100 -41
- package/src/generated/mcp-catalog.json +82 -0
- package/src/hooks/federationLoadGate.test.ts +90 -0
- package/src/hooks/federationLoadGate.ts +127 -0
- package/src/hooks/ids/idsDataAccessor.ts +11 -259
- package/src/hooks/ingest/pointCloudIngest.ts +127 -16
- package/src/hooks/useDrawingGeneration.ts +81 -8
- package/src/hooks/useIDS.ts +90 -10
- package/src/hooks/useIfcFederation.ts +94 -16
- package/src/hooks/useIfcLoader.ts +289 -64
- package/src/hooks/useViewerSelectors.ts +10 -0
- package/src/lib/geo/cesium-bridge.ts +84 -67
- package/src/lib/geo/clamp-anchor.test.ts +80 -0
- package/src/lib/geo/clamp-anchor.ts +57 -0
- package/src/lib/geo/effective-georef.test.ts +79 -1
- package/src/lib/geo/effective-georef.ts +83 -0
- package/src/lib/geo/reproject.ts +26 -13
- package/src/lib/geo/terrain-elevation.ts +166 -0
- package/src/lib/lens/adapter.ts +1 -1
- package/src/lib/llm/context-builder.ts +1 -1
- package/src/lib/perf/memoryAccounting.test.ts +92 -0
- package/src/lib/perf/memoryAccounting.ts +235 -0
- package/src/sdk/adapters/mutation-view.ts +1 -1
- package/src/store/constants.ts +39 -2
- package/src/store/index.ts +6 -1
- package/src/store/slices/cesiumSlice.ts +1 -1
- package/src/store/slices/idsSlice.ts +24 -0
- package/src/store/slices/loadingSlice.ts +12 -0
- package/src/store/slices/pointCloudSlice.ts +72 -1
- package/src/store/slices/sectionSlice.test.ts +590 -1
- package/src/store/slices/sectionSlice.ts +344 -17
- package/src/store/slices/uiSlice.merge-layers.test.ts +217 -0
- package/src/store/slices/uiSlice.ts +60 -2
- package/src/store/types.ts +42 -0
- package/src/store.ts +13 -0
- package/src/utils/acquireFileBuffer.test.ts +231 -0
- package/src/utils/acquireFileBuffer.ts +128 -0
- package/src/utils/ifcConfig.ts +24 -0
- package/src/utils/nativeSpatialDataStore.ts +20 -2
- package/src/utils/spatialHierarchy.test.ts +116 -0
- package/src/utils/spatialHierarchy.ts +23 -0
- package/tailwind.config.js +5 -0
- package/tsconfig.json +1 -0
- package/vite.config.ts +12 -0
- package/dist/assets/basketViewActivator-RZy5c3Td.js +0 -1
- package/dist/assets/decode-worker-Collf_X_.js +0 -1320
- package/dist/assets/drawing-2d-DoxKMqbO.js +0 -257
- package/dist/assets/exporters-BraHBeoi.js +0 -81583
- package/dist/assets/geometry.worker-DQEZB2rB.js +0 -1
- package/dist/assets/ids-DQ5jY0E8.js +0 -1
- package/dist/assets/ifc-lite_bg-4yUkDRD8.wasm +0 -0
- package/dist/assets/index-0XpVr_S5.css +0 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import{s as Y}from"./workerHelpers-CBbWSJmd.js";let _;function s(r){F===f.length&&f.push(f.length+1);const t=F;return F=f[t],f[t]=r,t}const D=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>r.dtor(r.a,r.b));function H(r){r<132||(f[r]=F,F=r)}function v(r,t){return r=r>>>0,J().subarray(r/4,r/4+t)}function Z(r,t){return r=r>>>0,K().subarray(r/4,r/4+t)}let y=null;function g(){return(y===null||y.buffer!==_.memory.buffer)&&(y=new DataView(_.memory.buffer)),y}let m=null;function J(){return(m===null||m.buffer!==_.memory.buffer)&&(m=new Float32Array(_.memory.buffer)),m}function w(r,t){return r=r>>>0,$(r,t)}let h=null;function K(){return(h===null||h.buffer!==_.memory.buffer)&&(h=new Uint32Array(_.memory.buffer)),h}let R=null;function T(){return(R===null||R.buffer!==_.memory.buffer)&&(R=new Uint8Array(_.memory.buffer)),R}function o(r){return f[r]}function l(r,t){try{return r.apply(this,t)}catch(e){_.__wbindgen_export(s(e))}}let f=new Array(128).fill(void 0);f.push(void 0,null,!0,!1);let F=f.length;function p(r){return r==null}function U(r,t,e,n){const i={a:r,b:t,cnt:1,dtor:e},a=(...c)=>{i.cnt++;const u=i.a;i.a=0;try{return n(u,i.b,...c)}finally{i.a=u,a._wbg_cb_unref()}};return a._wbg_cb_unref=()=>{--i.cnt===0&&(i.dtor(i.a,i.b),i.a=0,D.unregister(i))},D.register(a,i,i),a}function W(r,t,e){if(e===void 0){const u=z.encode(r),d=t(u.length,1)>>>0;return T().subarray(d,d+u.length).set(u),k=u.length,d}let n=r.length,i=t(n,1)>>>0;const a=T();let c=0;for(;c<n;c++){const u=r.charCodeAt(c);if(u>127)break;a[i+c]=u}if(c!==n){c!==0&&(r=r.slice(c)),i=e(i,n,n=c+r.length*3,1)>>>0;const u=T().subarray(i+c,i+n),d=z.encodeInto(r,u);c+=d.written,i=e(i,n,c,1)>>>0}return k=c,i}function b(r){const t=o(r);return H(r),t}let x=typeof TextDecoder<"u"?new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}):void 0;x&&x.decode();const Q=2146435072;let E=0;function $(r,t){return E+=t,E>=Q&&(x=new TextDecoder("utf-8",{ignoreBOM:!0,fatal:!0}),x.decode(),E=t),x.decode(T().slice(r,r+t))}const z=typeof TextEncoder<"u"?new TextEncoder:void 0;z&&(z.encodeInto=function(r,t){const e=z.encode(r);return t.set(e),{read:r.length,written:e.length}});let k=0;function B(r,t,e){_.__wasm_bindgen_func_elem_1177(r,t,s(e))}function ee(r,t,e,n){_.__wasm_bindgen_func_elem_1449(r,t,s(e),s(n))}typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_georeferencejs_free(r>>>0,1));const L=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>_.__wbg_gpugeometry_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_gpuinstancedgeometry_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_gpuinstancedgeometrycollection_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_gpuinstancedgeometryref_free(r>>>0,1));const P=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>_.__wbg_gpumeshmetadata_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_ifcapi_free(r>>>0,1));const N=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>_.__wbg_instancedata_free(r>>>0,1)),q=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>_.__wbg_instancedgeometry_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_instancedmeshcollection_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_meshcollection_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_meshcollectionwithrtc_free(r>>>0,1));const G=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>_.__wbg_meshdatajs_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_profilecollection_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_profileentryjs_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_rtcoffsetjs_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_symboliccircle_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_symbolicpolyline_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_symbolicrepresentationcollection_free(r>>>0,1));typeof FinalizationRegistry>"u"||new FinalizationRegistry(r=>_.__wbg_zerocopymesh_free(r>>>0,1));const V=typeof FinalizationRegistry>"u"?{register:()=>{},unregister:()=>{}}:new FinalizationRegistry(r=>_.__wbg_wbg_rayon_poolbuilder_free(r>>>0,1));class A{static __wrap(t){t=t>>>0;const e=Object.create(A.prototype);return e.__wbg_ptr=t,L.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,L.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_gpugeometry_free(t,0)}get meshCount(){return _.gpugeometry_meshCount(this.__wbg_ptr)>>>0}get indicesLen(){return _.gpugeometry_indicesLen(this.__wbg_ptr)>>>0}get indicesPtr(){return _.gpugeometry_indicesPtr(this.__wbg_ptr)>>>0}get rtcOffsetX(){return _.gpugeometry_rtcOffsetX(this.__wbg_ptr)}get rtcOffsetY(){return _.gpugeometry_rtcOffsetY(this.__wbg_ptr)}get rtcOffsetZ(){return _.gpugeometry_rtcOffsetZ(this.__wbg_ptr)}get hasRtcOffset(){return _.gpugeometry_hasRtcOffset(this.__wbg_ptr)!==0}set_rtc_offset(t,e,n){_.gpugeometry_set_rtc_offset(this.__wbg_ptr,t,e,n)}get vertexDataLen(){return _.gpugeometry_vertexDataLen(this.__wbg_ptr)>>>0}get vertexDataPtr(){return _.gpugeometry_vertexDataPtr(this.__wbg_ptr)>>>0}getIfcTypeName(t){try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.gpugeometry_getIfcTypeName(i,this.__wbg_ptr,t);var e=g().getInt32(i+4*0,!0),n=g().getInt32(i+4*1,!0);let a;return e!==0&&(a=w(e,n).slice(),_.__wbindgen_export2(e,n*1,1)),a}finally{_.__wbindgen_add_to_stack_pointer(16)}}getMeshMetadata(t){const e=_.gpugeometry_getMeshMetadata(this.__wbg_ptr,t);return e===0?void 0:j.__wrap(e)}get totalVertexCount(){return _.gpugeometry_totalVertexCount(this.__wbg_ptr)>>>0}get indicesByteLength(){return _.gpugeometry_indicesByteLength(this.__wbg_ptr)>>>0}get totalTriangleCount(){return _.gpugeometry_totalTriangleCount(this.__wbg_ptr)>>>0}get vertexDataByteLength(){return _.gpugeometry_vertexDataByteLength(this.__wbg_ptr)>>>0}constructor(){const t=_.gpugeometry_new();return this.__wbg_ptr=t>>>0,L.register(this,this.__wbg_ptr,this),this}get isEmpty(){return _.gpugeometry_isEmpty(this.__wbg_ptr)!==0}}Symbol.dispose&&(A.prototype[Symbol.dispose]=A.prototype.free);class j{static __wrap(t){t=t>>>0;const e=Object.create(j.prototype);return e.__wbg_ptr=t,P.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,P.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_gpumeshmetadata_free(t,0)}get expressId(){return _.gpumeshmetadata_expressId(this.__wbg_ptr)>>>0}get indexCount(){return _.gpumeshmetadata_indexCount(this.__wbg_ptr)>>>0}get ifcTypeIdx(){return _.gpumeshmetadata_ifcTypeIdx(this.__wbg_ptr)}get indexOffset(){return _.gpumeshmetadata_indexOffset(this.__wbg_ptr)>>>0}get vertexCount(){return _.gpumeshmetadata_vertexCount(this.__wbg_ptr)>>>0}get vertexOffset(){return _.gpumeshmetadata_vertexOffset(this.__wbg_ptr)>>>0}get color(){try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.gpumeshmetadata_color(i,this.__wbg_ptr);var t=g().getInt32(i+4*0,!0),e=g().getInt32(i+4*1,!0),n=v(t,e).slice();return _.__wbindgen_export2(t,e*4,4),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}}Symbol.dispose&&(j.prototype[Symbol.dispose]=j.prototype.free);class I{static __wrap(t){t=t>>>0;const e=Object.create(I.prototype);return e.__wbg_ptr=t,N.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,N.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_instancedata_free(t,0)}get expressId(){return _.instancedata_expressId(this.__wbg_ptr)>>>0}get color(){try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.instancedata_color(i,this.__wbg_ptr);var t=g().getInt32(i+4*0,!0),e=g().getInt32(i+4*1,!0),n=v(t,e).slice();return _.__wbindgen_export2(t,e*4,4),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}get transform(){const t=_.instancedata_transform(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(I.prototype[Symbol.dispose]=I.prototype.free);class O{static __wrap(t){t=t>>>0;const e=Object.create(O.prototype);return e.__wbg_ptr=t,q.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,q.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_instancedgeometry_free(t,0)}get geometryId(){const t=_.gpuinstancedgeometry_geometryId(this.__wbg_ptr);return BigInt.asUintN(64,t)}get_instance(t){const e=_.instancedgeometry_get_instance(this.__wbg_ptr,t);return e===0?void 0:I.__wrap(e)}get instance_count(){return _.instancedgeometry_instance_count(this.__wbg_ptr)>>>0}get indices(){const t=_.instancedgeometry_indices(this.__wbg_ptr);return b(t)}get normals(){const t=_.instancedgeometry_normals(this.__wbg_ptr);return b(t)}get positions(){const t=_.instancedgeometry_positions(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(O.prototype[Symbol.dispose]=O.prototype.free);class M{static __wrap(t){t=t>>>0;const e=Object.create(M.prototype);return e.__wbg_ptr=t,G.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,G.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_meshdatajs_free(t,0)}get expressId(){return _.meshdatajs_expressId(this.__wbg_ptr)>>>0}get vertexCount(){return _.meshdatajs_vertexCount(this.__wbg_ptr)>>>0}get triangleCount(){return _.meshdatajs_triangleCount(this.__wbg_ptr)>>>0}get color(){try{const i=_.__wbindgen_add_to_stack_pointer(-16);_.meshdatajs_color(i,this.__wbg_ptr);var t=g().getInt32(i+4*0,!0),e=g().getInt32(i+4*1,!0),n=v(t,e).slice();return _.__wbindgen_export2(t,e*4,4),n}finally{_.__wbindgen_add_to_stack_pointer(16)}}get indices(){const t=_.meshdatajs_indices(this.__wbg_ptr);return b(t)}get normals(){const t=_.meshdatajs_normals(this.__wbg_ptr);return b(t)}get ifcType(){let t,e;try{const a=_.__wbindgen_add_to_stack_pointer(-16);_.meshdatajs_ifcType(a,this.__wbg_ptr);var n=g().getInt32(a+4*0,!0),i=g().getInt32(a+4*1,!0);return t=n,e=i,w(n,i)}finally{_.__wbindgen_add_to_stack_pointer(16),_.__wbindgen_export2(t,e,1)}}get positions(){const t=_.meshdatajs_positions(this.__wbg_ptr);return b(t)}}Symbol.dispose&&(M.prototype[Symbol.dispose]=M.prototype.free);class S{static __wrap(t){t=t>>>0;const e=Object.create(S.prototype);return e.__wbg_ptr=t,V.register(e,e.__wbg_ptr,e),e}__destroy_into_raw(){const t=this.__wbg_ptr;return this.__wbg_ptr=0,V.unregister(this),t}free(){const t=this.__destroy_into_raw();_.__wbg_wbg_rayon_poolbuilder_free(t,0)}numThreads(){return _.wbg_rayon_poolbuilder_numThreads(this.__wbg_ptr)>>>0}build(){_.wbg_rayon_poolbuilder_build(this.__wbg_ptr)}receiver(){return _.wbg_rayon_poolbuilder_receiver(this.__wbg_ptr)>>>0}}Symbol.dispose&&(S.prototype[Symbol.dispose]=S.prototype.free);function oe(r){_.wbg_rayon_start_worker(r)}const te=new Set(["basic","cors","default"]);async function ne(r,t){if(typeof Response=="function"&&r instanceof Response){if(typeof WebAssembly.instantiateStreaming=="function")try{return await WebAssembly.instantiateStreaming(r,t)}catch(n){if(r.ok&&te.has(r.type)&&r.headers.get("Content-Type")!=="application/wasm")console.warn("`WebAssembly.instantiateStreaming` failed because your server does not serve Wasm with `application/wasm` MIME type. Falling back to `WebAssembly.instantiate` which is slower. Original error:\n",n);else throw n}const e=await r.arrayBuffer();return await WebAssembly.instantiate(e,t)}else{const e=await WebAssembly.instantiate(r,t);return e instanceof WebAssembly.Instance?{instance:e,module:r}:e}}function re(r){const t={};return t.wbg={},t.wbg.__wbg_Error_52673b7de5a0ca89=function(e,n){const i=Error(w(e,n));return s(i)},t.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd=function(e){return typeof o(e)=="function"},t.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269=function(e){return o(e)===void 0},t.wbg.__wbg___wbindgen_memory_a342e963fbcabd68=function(){const e=_.memory;return s(e)},t.wbg.__wbg___wbindgen_module_967adef62ea6cbf8=function(){const e=X.__wbindgen_wasm_module;return s(e)},t.wbg.__wbg___wbindgen_number_get_9619185a74197f95=function(e,n){const i=o(n),a=typeof i=="number"?i:void 0;g().setFloat64(e+8*1,p(a)?0:a,!0),g().setInt32(e+4*0,!p(a),!0)},t.wbg.__wbg___wbindgen_rethrow_78714972834ecdf1=function(e){throw b(e)},t.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e=function(e,n){throw new Error(w(e,n))},t.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7=function(e){o(e)._wbg_cb_unref()},t.wbg.__wbg_async_bba5a2ac54b734df=function(e){return o(e).async},t.wbg.__wbg_buffer_063cd102cc769a1c=function(e){const n=o(e).buffer;return s(n)},t.wbg.__wbg_call_3020136f7a2d6e44=function(){return l(function(e,n,i){const a=o(e).call(o(n),o(i));return s(a)},arguments)},t.wbg.__wbg_call_abb4ff46ce38be40=function(){return l(function(e,n){const i=o(e).call(o(n));return s(i)},arguments)},t.wbg.__wbg_call_c8baa5c5e72d274e=function(){return l(function(e,n,i,a){const c=o(e).call(o(n),o(i),o(a));return s(c)},arguments)},t.wbg.__wbg_data_8bf4ae669a78a688=function(e){const n=o(e).data;return s(n)},t.wbg.__wbg_debug_9d0c87ddda3dc485=function(e){console.debug(o(e))},t.wbg.__wbg_error_7534b8e9a36f1ab4=function(e,n){let i,a;try{i=e,a=n,console.error(w(e,n))}finally{_.__wbindgen_export2(i,a,1)}},t.wbg.__wbg_get_af9dab7e9603ea93=function(){return l(function(e,n){const i=Reflect.get(o(e),o(n));return s(i)},arguments)},t.wbg.__wbg_gpugeometry_new=function(e){const n=A.__wrap(e);return s(n)},t.wbg.__wbg_info_ce6bcc489c22f6f0=function(e){console.info(o(e))},t.wbg.__wbg_instancedgeometry_new=function(e){const n=O.__wrap(e);return s(n)},t.wbg.__wbg_instanceof_Window_b5cf7783caa68180=function(e){let n;try{n=o(e)instanceof Window}catch{n=!1}return n},t.wbg.__wbg_length_86ce4877baf913bb=function(e){return o(e).length},t.wbg.__wbg_length_d45040a40c570362=function(e){return o(e).length},t.wbg.__wbg_log_1d990106d99dacb7=function(e){console.log(o(e))},t.wbg.__wbg_meshdatajs_new=function(e){const n=M.__wrap(e);return s(n)},t.wbg.__wbg_new_1ba21ce319a06297=function(){const e=new Object;return s(e)},t.wbg.__wbg_new_25f239778d6112b9=function(){const e=new Array;return s(e)},t.wbg.__wbg_new_53cb1e86c1ef5d2a=function(){return l(function(e,n){const i=new Worker(w(e,n));return s(i)},arguments)},t.wbg.__wbg_new_8a6f238a6ece86ea=function(){const e=new Error;return s(e)},t.wbg.__wbg_new_de1e660b88fc921f=function(e){const n=new Int32Array(o(e));return s(n)},t.wbg.__wbg_new_ff12d2b041fb48f1=function(e,n){try{var i={a:e,b:n},a=(u,d)=>{const C=i.a;i.a=0;try{return ee(C,i.b,u,d)}finally{i.a=C}};const c=new Promise(a);return s(c)}finally{i.a=i.b=0}},t.wbg.__wbg_new_from_slice_41e2764a343e3cb1=function(e,n){const i=new Float32Array(v(e,n));return s(i)},t.wbg.__wbg_new_from_slice_db0691b69e9d3891=function(e,n){const i=new Uint32Array(Z(e,n));return s(i)},t.wbg.__wbg_new_no_args_cb138f77cf6151ee=function(e,n){const i=new Function(w(e,n));return s(i)},t.wbg.__wbg_new_with_length_202b3db94ba5fc86=function(e){const n=new Uint32Array(e>>>0);return s(n)},t.wbg.__wbg_new_with_length_806b9e5b8290af7c=function(e){const n=new Float64Array(e>>>0);return s(n)},t.wbg.__wbg_new_with_length_aa5eaf41d35235e5=function(e){const n=new Uint8Array(e>>>0);return s(n)},t.wbg.__wbg_now_69d776cd24f5215b=function(){return Date.now()},t.wbg.__wbg_of_7779827fa663eec8=function(e,n,i){const a=Array.of(o(e),o(n),o(i));return s(a)},t.wbg.__wbg_postMessage_07504dbe15265d5c=function(){return l(function(e,n){o(e).postMessage(o(n))},arguments)},t.wbg.__wbg_prototypesetcall_96cc7097487b926d=function(e,n,i){Float32Array.prototype.set.call(v(e,n),o(i))},t.wbg.__wbg_push_7d9be8f38fc13975=function(e,n){return o(e).push(o(n))},t.wbg.__wbg_queueMicrotask_9b549dfce8865860=function(e){const n=o(e).queueMicrotask;return s(n)},t.wbg.__wbg_queueMicrotask_fca69f5bfad613a5=function(e){queueMicrotask(o(e))},t.wbg.__wbg_resolve_fd5bfbaa4ce36e1e=function(e){const n=Promise.resolve(o(e));return s(n)},t.wbg.__wbg_set_3f1d0b984ed272ed=function(e,n,i){o(e)[b(n)]=b(i)},t.wbg.__wbg_set_781438a03c0c3c81=function(){return l(function(e,n,i){return Reflect.set(o(e),o(n),o(i))},arguments)},t.wbg.__wbg_set_7df433eea03a5c14=function(e,n,i){o(e)[n>>>0]=b(i)},t.wbg.__wbg_set_index_021489b2916af13e=function(e,n,i){o(e)[n>>>0]=i},t.wbg.__wbg_set_index_04c4b93e64d08a52=function(e,n,i){o(e)[n>>>0]=i},t.wbg.__wbg_set_index_42abe35f117e614e=function(e,n,i){o(e)[n>>>0]=i>>>0},t.wbg.__wbg_set_onmessage_deb94985de696ac7=function(e,n){o(e).onmessage=o(n)},t.wbg.__wbg_stack_0ed75d68575b0f3c=function(e,n){const i=o(n).stack,a=W(i,_.__wbindgen_export3,_.__wbindgen_export4),c=k;g().setInt32(e+4*1,c,!0),g().setInt32(e+4*0,a,!0)},t.wbg.__wbg_startWorkers_2ca11761e08ff5d5=function(e,n,i){const a=Y(b(e),b(n),S.__wrap(i));return s(a)},t.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335=function(){const e=typeof global>"u"?null:global;return p(e)?0:s(e)},t.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1=function(){const e=typeof globalThis>"u"?null:globalThis;return p(e)?0:s(e)},t.wbg.__wbg_static_accessor_SELF_08f5a74c69739274=function(){const e=typeof self>"u"?null:self;return p(e)?0:s(e)},t.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024=function(){const e=typeof window>"u"?null:window;return p(e)?0:s(e)},t.wbg.__wbg_then_4f95312d68691235=function(e,n){const i=o(e).then(o(n));return s(i)},t.wbg.__wbg_value_4cd497eeadba94bd=function(e){const n=o(e).value;return s(n)},t.wbg.__wbg_waitAsync_8afec80ffd213eca=function(e,n,i){const a=Atomics.waitAsync(o(e),n>>>0,i);return s(a)},t.wbg.__wbg_waitAsync_c186cb97ffacd552=function(){const e=Atomics.waitAsync;return s(e)},t.wbg.__wbg_warn_6e567d0d926ff881=function(e){console.warn(o(e))},t.wbg.__wbindgen_cast_2241b6af4c4b2941=function(e,n){const i=w(e,n);return s(i)},t.wbg.__wbindgen_cast_4625c577ab2ec9ee=function(e){const n=BigInt.asUintN(64,e);return s(n)},t.wbg.__wbindgen_cast_5981c93f1c3e6401=function(e,n){const i=U(e,n,_.__wasm_bindgen_func_elem_1176,B);return s(i)},t.wbg.__wbindgen_cast_c66ca3e1e2ec9281=function(e,n){const i=U(e,n,_.__wasm_bindgen_func_elem_1176,B);return s(i)},t.wbg.__wbindgen_cast_d6cd19b81560fd6e=function(e){return s(e)},t.wbg.__wbindgen_link_203404ece0e9bab9=function(e){const n=`onmessage = function (ev) {
|
|
2
|
+
let [ia, index, value] = ev.data;
|
|
3
|
+
ia = new Int32Array(ia.buffer);
|
|
4
|
+
let result = Atomics.wait(ia, index, value);
|
|
5
|
+
postMessage(result);
|
|
6
|
+
};
|
|
7
|
+
`,i=typeof URL.createObjectURL>"u"?"data:application/javascript,"+encodeURIComponent(n):URL.createObjectURL(new Blob([n],{type:"text/javascript"})),a=W(i,_.__wbindgen_export3,_.__wbindgen_export4),c=k;g().setInt32(e+4*1,c,!0),g().setInt32(e+4*0,a,!0)},t.wbg.__wbindgen_object_clone_ref=function(e){const n=o(e);return s(n)},t.wbg.__wbindgen_object_drop_ref=function(e){b(e)},t.wbg.memory=r||new WebAssembly.Memory({initial:132,maximum:65536,shared:!0}),t}function _e(r,t,e){if(_=r.exports,X.__wbindgen_wasm_module=t,y=null,m=null,h=null,R=null,typeof e<"u"&&(typeof e!="number"||e===0||e%65536!==0))throw"invalid stack size";return _.__wbindgen_start(e),_}async function X(r,t){if(_!==void 0)return _;let e;typeof r<"u"&&(Object.getPrototypeOf(r)===Object.prototype?{module_or_path:r,memory:t,thread_stack_size:e}=r:console.warn("using deprecated parameters for the initialization function; pass a single object instead")),typeof r>"u"&&(r=new URL("/assets/ifc-lite_bg-PqmRe3Ph.wasm",import.meta.url));const n=re(t);(typeof r=="string"||typeof Request=="function"&&r instanceof Request||typeof URL=="function"&&r instanceof URL)&&(r=fetch(r));const{instance:i,module:a}=await ne(await r,n);return _e(i,a,e)}export{A as GpuGeometry,j as GpuMeshMetadata,I as InstanceData,O as InstancedGeometry,M as MeshDataJs,X as default,S as wbg_rayon_PoolBuilder,oe as wbg_rayon_start_worker};
|
|
Binary file
|
|
Binary file
|