@ifc-lite/viewer 1.22.0 → 1.22.1
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 +71 -44
- package/CHANGELOG.md +23 -0
- package/dist/assets/__vite-browser-external-B1O5LaIO.js +1 -0
- package/dist/assets/{arrow-fie-E7fe.js → arrow-CXWhTnNT.js} +1 -1
- package/dist/assets/{basketViewActivator-EHAhHlwN.js → basketViewActivator--cFpU2Q9.js} +10 -10
- package/dist/assets/{bcf-Bhx-K17f.js → bcf-Ba2CjHib.js} +2 -2
- package/dist/assets/browser-DXS29_v9.js +695 -0
- package/dist/assets/{cesium-B4ZIU9jS.js → cesium-BoVuJvTC.js} +5838 -5730
- package/dist/assets/{decode-worker-CYqSjk1n.js → decode-worker-CgM1iNSK.js} +1 -1
- package/dist/assets/deflate-DCLbV4UE.js +1 -0
- package/dist/assets/{drawing-2d-Bjy8YPrg.js → drawing-2d-C71b8Ugx.js} +1 -1
- package/dist/assets/emscripten-module-B1g2L2eS.wasm +0 -0
- package/dist/assets/emscripten-module-DHbYPfAp.wasm +0 -0
- package/dist/assets/emscripten-module-ZrHFMo7O.wasm +0 -0
- package/dist/assets/emscripten-module-uFzwHH0Y.wasm +0 -0
- package/dist/assets/emscripten-module.browser-BLJD5hhE.js +1 -0
- package/dist/assets/{esbuild-Cpd5nU_H.wasm → esbuild-CzsZLPr0.wasm} +0 -0
- package/dist/assets/esbuild-FgU11_Eg.js +1 -0
- package/dist/assets/event-B0kAzHa-.js +1 -0
- package/dist/assets/{exporters-KTio0Tdm.js → exporters-Bf6PTtdW.js} +1011 -1011
- package/dist/assets/ffi-Boa1QuFa.js +1 -0
- package/dist/assets/{geometry-controller.worker-Cm2P_EJr.js → geometry-controller.worker-CEr00X3X.js} +2 -2
- package/dist/assets/{geometry.worker-DchLBqZ8.js → geometry.worker-B4VPDkmL.js} +1 -1
- package/dist/assets/geotiff-BN4J8Vt9.js +3354 -0
- package/dist/assets/{ids-CS7VCFin.js → ids-XwxE1tK3.js} +6 -6
- package/dist/assets/{ifc-lite-C6wEhXa6.js → ifc-lite-DNzkEkIb.js} +2 -2
- package/dist/assets/ifc-lite_bg-1IiJN0Zg.wasm +0 -0
- package/dist/assets/ifc-lite_bg-B_eUD1Wy.wasm +0 -0
- package/dist/assets/index-DMho-JA0.js +6 -0
- package/dist/assets/index-DS_xJQfP.css +1 -0
- package/dist/assets/{index-8k9h-ANq.js → index-j2x5R7fb.js} +66047 -55202
- package/dist/assets/jpeg-BUTmr0Bp.js +1 -0
- package/dist/assets/{laz-perf-DnSyzVYH.wasm → laz-perf-CFJp03W6.wasm} +0 -0
- package/dist/assets/laz-perf-DgUOSLeU.js +1 -0
- package/dist/assets/{laz-source-jj3xI5Y4.js → laz-source-BWjza0Iw.js} +2 -2
- package/dist/assets/{lens-CSASnhAL.js → lens-CpjUdqpw.js} +1 -1
- package/dist/assets/lerc-DmzRHXn3.js +1 -0
- package/dist/assets/lzw-CgyIIzii.js +1 -0
- package/dist/assets/maplibre-gl-Do6O5tDc.js +800 -0
- package/dist/assets/{native-bridge-DNrEhx2R.js → native-bridge-Q5ACp4QY.js} +3 -3
- package/dist/assets/packbits-C1r4AzHj.js +1 -0
- package/dist/assets/pako.esm-Cram60i4.js +1 -0
- package/dist/assets/parquet_wasm_bg-DcKVfvto.wasm +0 -0
- package/dist/assets/{parser.worker-BcjkIo89.js → parser.worker-Cl6XQcXA.js} +2 -2
- package/dist/assets/raw-ZqLh7kVQ.js +1 -0
- package/dist/assets/{sandbox-BSn5MyEJ.js → sandbox-Bju6ZKJK.js} +1664 -1542
- package/dist/assets/{server-client-D-kU2XAF.js → server-client-B8wi3CGx.js} +4 -4
- package/dist/assets/three-CQBzFWY2.js +4104 -0
- package/dist/assets/wasm-bridge-X-mWRA9Z.js +1 -0
- package/dist/assets/webimage-D0MbRMkU.js +1 -0
- package/dist/assets/{workerHelpers-pUUnk9Wc.js → workerHelpers-DnNedVRr.js} +1 -1
- package/dist/assets/zstd-DA4VQ-ji.js +1 -0
- package/dist/cesium/{Workers/chunk-V7QEYVP3.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-236YIEYT.js} +2 -2
- package/dist/cesium/{Workers/chunk-5TJMAQVL.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-2ZYB3DYT.js} +2 -2
- package/dist/cesium/{Workers/chunk-UBOGZS7F.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-4M56RRIL.js} +2 -2
- package/dist/cesium/{Workers/chunk-OCWJRAXS.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-5BC2Q3QW.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-5XHUDY37.js +26 -0
- package/dist/cesium/{Workers/chunk-Z3QF2EHT.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-6WMLAJJP.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-72KUXMWU.js +26 -0
- package/dist/cesium/{Workers/chunk-EQ4YRVWL.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-7NQYTTAU.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-A35GG5WJ.js +26 -0
- package/dist/cesium/{Workers/chunk-FC4ZZ65J.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-AXNBHUAG.js} +2 -2
- package/dist/cesium/{Workers/chunk-BTSYJ5XU.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-DC3K7YTH.js} +2 -2
- package/dist/cesium/{Workers/chunk-SLT4J352.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-DRBPXGI7.js} +2 -2
- package/dist/cesium/{Workers/chunk-2MJIIVP4.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-EARRZPMO.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-EHC3BDVP.js +26 -0
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-EYZUSGKM.js +26 -0
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-EZSKHVA2.js +26 -0
- package/dist/cesium/{Workers/chunk-ICALLYLG.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-F3WJIFOO.js} +2 -2
- package/dist/cesium/{Workers/chunk-LSLE2RL4.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-FB7UV5BI.js} +2 -2
- package/dist/cesium/{Workers/chunk-CUUSNIVQ.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-FC6IYMYF.js} +2 -2
- package/dist/cesium/{Workers/chunk-TNSUQXWK.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-GF67PEXE.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-GXEQRH2R.js +26 -0
- package/dist/cesium/{Workers/chunk-M4HLDBCG.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-I5NKQIWE.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-IH7GXIUB.js +26 -0
- package/dist/cesium/{Workers/chunk-OIT7J4IC.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-IPP3UFGH.js} +2 -2
- package/dist/cesium/{Workers/chunk-WWWZVEEH.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-IYRGNBSH.js} +2 -2
- package/dist/cesium/{Workers/chunk-WPMZLB3Y.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-J6BM74AD.js} +2 -2
- package/dist/cesium/{Workers/chunk-QFM5DCMQ.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-KG2GJUJT.js} +1 -1
- package/dist/cesium/{Workers/chunk-XQHLGIO7.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-L7UE5MMF.js} +2 -2
- package/dist/cesium/{Workers/chunk-EFBN7QNX.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-LBZ34MHQ.js} +2 -2
- package/dist/cesium/{Workers/chunk-YP7I5QBZ.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-LOQDTQMX.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-LYLRYC4L.js +29 -0
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-MGPRMLLW.js +26 -0
- package/dist/cesium/{Workers/chunk-LI2ZSORM.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-NP26LKQA.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-OMUAZ3NM.js +26 -0
- package/dist/cesium/{Workers/chunk-S44JILQT.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-PPFUDJN4.js} +2 -2
- package/dist/cesium/{Workers/chunk-EDVBB7SS.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-PQ3V63XF.js} +2 -2
- package/dist/cesium/{Workers/chunk-Q5BPHJQF.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-PWBQN4GK.js} +2 -2
- package/dist/cesium/{Workers/chunk-E7KYDCM5.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-QOTMLO2T.js} +2 -2
- package/dist/cesium/{Workers/chunk-XUSCFAVF.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-SP35IT73.js} +2 -2
- package/dist/cesium/{Workers/chunk-6BD4U3VO.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-T3ZGSZKA.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-TM6SYYHO.js +28 -0
- package/dist/cesium/{Workers/chunk-VUKYSU4H.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-TSGIJVWH.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-U3YGOX3C.js +63 -0
- package/dist/cesium/{Workers/chunk-7TVGLKQF.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-VBYOXOSM.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-VCOHJNKB.js +26 -0
- package/dist/cesium/{Workers/chunk-WBOV35NL.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-VXAZXMUX.js} +2 -2
- package/dist/cesium/{Workers/chunk-IX4VMHEV.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-VXCJOT4W.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-WPD3MB6X.js +26 -0
- package/dist/cesium/{Workers/chunk-V3OSTMM6.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-X4D5KUN5.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-XEC656IT.js +26 -0
- package/dist/cesium/{Workers/chunk-MJHHSGEH.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-XR53QRQS.js} +2 -2
- package/dist/cesium/{Workers/chunk-XFIQ5DEQ.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-XR7MN4PJ.js} +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-XU6O4MRS.js +26 -0
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-XZBHEBLF.js +29 -0
- package/dist/cesium/{Workers/chunk-OLZ3FYUM.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-Z2M4BF4E.js} +2 -2
- package/dist/cesium/{Workers/chunk-2ZBHLJST.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-Z4ERBZFB.js} +2 -2
- package/dist/cesium/{Workers/chunk-W37FE5GR.js → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/chunk-ZY2KCIWI.js} +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/combineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createBoxGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createBoxOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createCircleGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createCircleOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createCoplanarPolygonGeometry.js +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +26 -0
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createCorridorGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createCorridorOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createCylinderGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createCylinderOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createEllipseGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createEllipseOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createEllipsoidGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createEllipsoidOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createFrustumGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createFrustumOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createGeometry.js +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/createGroundPolylineGeometry.js +26 -0
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createPlaneGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createPlaneOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createPolygonGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createPolygonOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createPolylineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createPolylineVolumeGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createPolylineVolumeOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createRectangleGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createRectangleOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createSimplePolylineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createSphereGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createSphereOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createTaskProcessorWorker.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createVectorTileClampedPolylines.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createVectorTileGeometries.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createVectorTilePoints.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createVectorTilePolygons.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createVectorTilePolylines.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createVerticesFromCesium3DTilesTerrain.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createVerticesFromHeightmap.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createVerticesFromQuantizedTerrainMesh.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createWallGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/createWallOutlineGeometry.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/decodeDraco.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/decodeI3S.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/gaussianSplatSorter.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/gaussianSplatTextureGenerator.js +2 -2
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/incrementallyBuildTerrainPicker.js +2 -2
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/transcodeKTX2.js +56 -0
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/transferTypedArrayTest.js +1 -1
- package/dist/cesium/node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers/upsampleQuantizedTerrainMesh.js +26 -0
- package/dist/cesium/{Workers → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Workers}/upsampleVerticesFromCesium3DTilesTerrain.js +2 -2
- package/dist/index.html +11 -11
- package/package.json +52 -45
- package/src/components/mcp/McpLanding.tsx +1 -1
- package/src/components/mcp/McpPlayground.tsx +1 -1
- package/src/components/viewer/AddElementPanel.tsx +2 -2
- package/src/components/viewer/BasepointOverlay.tsx +239 -0
- package/src/components/viewer/CesiumOverlay.tsx +15 -59
- package/src/components/viewer/CesiumPlacementEditor.tsx +16 -1
- package/src/components/viewer/CommandPalette.tsx +25 -0
- package/src/components/viewer/GeometryAxisRow.tsx +54 -0
- package/src/components/viewer/GeometryEditCard.tsx +392 -0
- package/src/components/viewer/HierarchyPanel.tsx +2 -2
- package/src/components/viewer/IDSAuditSummary.tsx +2 -2
- package/src/components/viewer/KeyboardShortcutsDialog.tsx +58 -4
- package/src/components/viewer/MainToolbar.tsx +275 -4
- package/src/components/viewer/PropertiesPanel.tsx +28 -31
- package/src/components/viewer/StatusBar.tsx +12 -0
- package/src/components/viewer/ToolOverlays.tsx +36 -0
- package/src/components/viewer/ViewerLayout.tsx +27 -0
- package/src/components/viewer/Viewport.tsx +49 -4
- package/src/components/viewer/ViewportContainer.tsx +88 -17
- package/src/components/viewer/ViewportOverlays.tsx +50 -11
- package/src/components/viewer/chat/ByokKeyModal.tsx +1 -1
- package/src/components/viewer/properties/FederationAlignmentControls.tsx +180 -0
- package/src/components/viewer/properties/GeoreferencingPanel.tsx +6 -0
- package/src/components/viewer/properties/PrecisionGridBadge.tsx +125 -0
- package/src/components/viewer/properties/raw-step-format.ts +5 -3
- package/src/components/viewer/selectionHandlers.ts +301 -10
- package/src/components/viewer/tools/GizmoOverlay.tsx +322 -0
- package/src/components/viewer/tools/SplitNumericInput.tsx +225 -0
- package/src/components/viewer/tools/SplitOverlay.tsx +242 -0
- package/src/components/viewer/tools/WallEndpointOverlay.tsx +252 -0
- package/src/components/viewer/useGeometryStreaming.ts +100 -1
- package/src/components/viewer/useMouseControls.ts +8 -1
- package/src/hooks/useBCF.ts +6 -6
- package/src/hooks/useCameraTickSubscription.ts +62 -0
- package/src/hooks/useIfc.ts +4 -0
- package/src/hooks/useIfcFederation.ts +368 -20
- package/src/hooks/useKeyboardShortcuts.ts +86 -0
- package/src/hooks/useLevelDisplayEffect.ts +160 -0
- package/src/hooks/useViewerSelectors.ts +8 -0
- package/src/lib/__test__/stubs.ts +110 -0
- package/src/lib/geo/cesium-bridge.ts +3 -3
- package/src/lib/geo/cesium-placement.test.ts +28 -12
- package/src/lib/geo/cesium-placement.ts +16 -10
- package/src/lib/geo/effective-georef.test.ts +23 -7
- package/src/lib/geo/geo-scale.ts +58 -2
- package/src/lib/geo/ifc-origin.test.ts +176 -0
- package/src/lib/geo/ifc-origin.ts +144 -0
- package/src/lib/geo/precision-grids.ts +444 -0
- package/src/lib/geo/reproject.test.ts +88 -0
- package/src/lib/geo/reproject.ts +168 -36
- package/src/lib/level-offsets.test.ts +153 -0
- package/src/lib/level-offsets.ts +140 -0
- package/src/lib/linear-element-edit.test.ts +220 -0
- package/src/lib/linear-element-edit.ts +327 -0
- package/src/lib/metadata-clone.test.ts +173 -0
- package/src/lib/metadata-clone.ts +124 -0
- package/src/lib/placement-core.ts +340 -0
- package/src/lib/placement-edit.boot.ts +21 -0
- package/src/lib/placement-edit.test.ts +464 -0
- package/src/lib/placement-edit.ts +47 -0
- package/src/lib/polygon-clip.test.ts +193 -0
- package/src/lib/polygon-clip.ts +199 -0
- package/src/lib/slab-edit.test.ts +169 -0
- package/src/lib/slab-edit.ts +312 -0
- package/src/lib/wall-edit.ts +342 -0
- package/src/lib/wall-opening-reassign.test.ts +291 -0
- package/src/lib/wall-opening-reassign.ts +241 -0
- package/src/main.tsx +4 -0
- package/src/store/index.ts +7 -0
- package/src/store/slices/cesiumSlice.ts +61 -8
- package/src/store/slices/dataSlice.ts +80 -0
- package/src/store/slices/levelDisplaySlice.ts +105 -0
- package/src/store/slices/modelSlice.test.ts +19 -0
- package/src/store/slices/mutationSlice.ts +1138 -1
- package/src/store/slices/splitToolSlice.ts +165 -0
- package/src/store/slices/uiSlice.edit-mode.test.ts +210 -0
- package/src/store/slices/uiSlice.ts +78 -1
- package/src/store/types.ts +57 -2
- package/src/utils/createBlankIfc.ts +37 -0
- package/tsconfig.json +1 -0
- package/.turbo/turbo-typecheck.log +0 -4
- package/dist/assets/arrow2_bg-BoXCojjR.wasm +0 -0
- package/dist/assets/browser-CVf8ATeW.js +0 -694
- package/dist/assets/emscripten-module-BTRCZGcB.wasm +0 -0
- package/dist/assets/emscripten-module-CGIn_cMh.wasm +0 -0
- package/dist/assets/emscripten-module-DYvzWiHh.wasm +0 -0
- package/dist/assets/emscripten-module-NWak2PoB.wasm +0 -0
- package/dist/assets/emscripten-module.browser-DcFZLAUx.js +0 -1
- package/dist/assets/esbuild-COv63sf-.js +0 -1
- package/dist/assets/event-DIOks52T.js +0 -1
- package/dist/assets/ffi-DlhRHxHv.js +0 -1
- package/dist/assets/ifc-lite_bg-CSeT3fNI.wasm +0 -0
- package/dist/assets/ifc-lite_bg-ns4cSnX2.wasm +0 -0
- package/dist/assets/index-BZC2YaOP.css +0 -1
- package/dist/assets/index-HqAIQkr6.js +0 -22
- package/dist/assets/laz-perf-Cvr_Lepg.js +0 -1
- package/dist/assets/maplibre-gl-C4LXKM6c.js +0 -808
- package/dist/assets/three-DwNDHx9-.js +0 -4049
- package/dist/assets/wasm-bridge-Cha08LdC.js +0 -1
- package/dist/cesium/Workers/chunk-23ZQ2IVV.js +0 -29
- package/dist/cesium/Workers/chunk-2EQO3Q56.js +0 -26
- package/dist/cesium/Workers/chunk-2TE5NTVD.js +0 -26
- package/dist/cesium/Workers/chunk-BXMEEOCS.js +0 -63
- package/dist/cesium/Workers/chunk-BYLCY7GP.js +0 -29
- package/dist/cesium/Workers/chunk-CTHM3W6I.js +0 -26
- package/dist/cesium/Workers/chunk-E3JOOS3S.js +0 -26
- package/dist/cesium/Workers/chunk-F6PRE7D6.js +0 -26
- package/dist/cesium/Workers/chunk-FFBVWF2L.js +0 -26
- package/dist/cesium/Workers/chunk-GBAA6GVX.js +0 -26
- package/dist/cesium/Workers/chunk-ILRYTWTP.js +0 -26
- package/dist/cesium/Workers/chunk-IRNLBSEJ.js +0 -26
- package/dist/cesium/Workers/chunk-L6QHHACZ.js +0 -26
- package/dist/cesium/Workers/chunk-NMVKML6W.js +0 -26
- package/dist/cesium/Workers/chunk-OIRKANTH.js +0 -26
- package/dist/cesium/Workers/chunk-QKUIYMGC.js +0 -28
- package/dist/cesium/Workers/chunk-SQMIIXB7.js +0 -26
- package/dist/cesium/Workers/chunk-TJ4XLGBQ.js +0 -26
- package/dist/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +0 -26
- package/dist/cesium/Workers/createGroundPolylineGeometry.js +0 -26
- package/dist/cesium/Workers/transcodeKTX2.js +0 -56
- package/dist/cesium/Workers/upsampleQuantizedTerrainMesh.js +0 -26
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_0.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_1.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_10.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_11.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_12.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_13.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_14.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_15.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_16.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_17.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_18.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_19.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_2.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_20.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_21.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_22.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_23.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_24.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_25.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_26.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_27.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_3.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_4.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_5.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_6.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_7.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_8.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/IAU2006_XYS/IAU2006_XYS_9.json +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Images/bing_maps_credit.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Images/cesium_credit.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Images/google_earth_credit.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Images/ion-credit.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/LensFlare/DirtMask.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/LensFlare/StarBurst.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/NaturalEarthII/tilemapresource.xml +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/airfield.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/airport.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/alcohol-shop.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/america-football.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/art-gallery.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/bakery.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/bank.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/bar.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/baseball.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/basketball.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/beer.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/bicycle.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/building.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/bus.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/cafe.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/camera.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/campsite.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/car.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/cemetery.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/cesium.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/chemist.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/cinema.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/circle-stroked.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/circle.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/city.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/clothing-store.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/college.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/commercial.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/cricket.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/cross.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/dam.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/danger.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/disability.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/dog-park.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/embassy.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/emergency-telephone.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/entrance.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/farm.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/fast-food.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/ferry.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/fire-station.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/fuel.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/garden.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/gift.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/golf.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/grocery.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/hairdresser.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/harbor.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/heart.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/heliport.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/hospital.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/ice-cream.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/industrial.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/land-use.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/laundry.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/library.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/lighthouse.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/lodging.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/logging.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/london-underground.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/marker-stroked.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/marker.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/minefield.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/mobilephone.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/monument.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/museum.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/music.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/oil-well.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/park.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/park2.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/parking-garage.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/parking.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/pharmacy.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/pitch.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/place-of-worship.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/playground.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/police.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/polling-place.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/post.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/prison.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/rail-above.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/rail-light.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/rail-metro.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/rail-underground.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/rail.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/religious-christian.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/religious-jewish.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/religious-muslim.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/restaurant.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/roadblock.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/rocket.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/school.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/scooter.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/shop.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/skiing.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/slaughterhouse.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/soccer.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/square-stroked.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/square.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/star-stroked.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/star.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/suitcase.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/swimming.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/telephone.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/tennis.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/theatre.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/toilets.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/town-hall.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/town.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/triangle-stroked.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/triangle.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/village.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/warehouse.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/waste-basket.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/water.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/wetland.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/maki/zoo.png +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/moonSmall.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/pin.svg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/waterNormals.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/Textures/waterNormalsSmall.jpg +0 -0
- /package/dist/cesium/{Assets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Assets}/approximateTerrainHeights.json +0 -0
- /package/dist/cesium/{ThirdParty → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/ThirdParty}/Workers/package.json +0 -0
- /package/dist/cesium/{ThirdParty → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/ThirdParty}/Workers/zip-web-worker.js +0 -0
- /package/dist/cesium/{ThirdParty → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/ThirdParty}/basis_transcoder.wasm +0 -0
- /package/dist/cesium/{ThirdParty → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/ThirdParty}/draco_decoder.wasm +0 -0
- /package/dist/cesium/{ThirdParty → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/ThirdParty}/google-earth-dbroot-parser.js +0 -0
- /package/dist/cesium/{ThirdParty → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/ThirdParty}/wasm_splats_bg.wasm +0 -0
- /package/dist/cesium/{ThirdParty → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/ThirdParty}/zip-module.wasm +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Animation/Animation.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Animation/lighter.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/BaseLayerPicker/BaseLayerPicker.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/BaseLayerPicker/lighter.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Cesium3DTilesInspector/Cesium3DTilesInspector.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/CesiumInspector/CesiumInspector.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/CesiumWidget/CesiumWidget.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/CesiumWidget/lighter.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/FullscreenButton/FullscreenButton.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Geocoder/Geocoder.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Geocoder/lighter.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/azureAerial.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/azureRoads.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/bingAerial.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/bingAerialLabels.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/bingRoads.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/blueMarble.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/earthAtNight.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/googleContour.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/googleRoadmap.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/googleSatellite.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/mapboxSatellite.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/mapboxStreets.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/mapboxTerrain.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/naturalEarthII.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/openStreetMap.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/sentinel-2.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/stamenToner.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/ImageryProviders/stamenWatercolor.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/NavigationHelp/Mouse.svg +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/NavigationHelp/MouseLeft.svg +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/NavigationHelp/MouseMiddle.svg +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/NavigationHelp/MouseRight.svg +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/NavigationHelp/Touch.svg +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/NavigationHelp/TouchDrag.svg +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/NavigationHelp/TouchRotate.svg +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/NavigationHelp/TouchTilt.svg +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/NavigationHelp/TouchZoom.svg +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/TerrainProviders/Ellipsoid.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/TimelineIcons.png +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Images/info-loading.gif +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/InfoBox/InfoBox.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/InfoBox/InfoBoxDescription.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/NavigationHelpButton/NavigationHelpButton.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/NavigationHelpButton/lighter.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/PerformanceWatchdog/PerformanceWatchdog.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/ProjectionPicker/ProjectionPicker.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/SceneModePicker/SceneModePicker.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/SelectionIndicator/SelectionIndicator.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Timeline/Timeline.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Timeline/lighter.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/VRButton/VRButton.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/Viewer/Viewer.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/VoxelInspector/VoxelInspector.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/lighter.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/lighterShared.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/shared.css +0 -0
- /package/dist/cesium/{Widgets → node_modules/.pnpm/cesium@1.141.0/node_modules/cesium/Build/Cesium/Widgets}/widgets.css +0 -0
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-bridge-
|
|
2
|
-
import {
|
|
3
|
-
let
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-bridge-Q5ACp4QY.js","assets/sandbox-Bju6ZKJK.js","assets/lens-CpjUdqpw.js","assets/wasm-bridge-X-mWRA9Z.js"])))=>i.map(i=>d[i]);
|
|
2
|
+
import { J as on, _ as Ae, aD as Z, a1 as gn, a2 as hn, j as et, k as Et, aG as an, E as In, ab as me, af as yn, ac as mn, az as bn, K as En, i as be, h as wn, __tla as __tla_0 } from "./sandbox-Bju6ZKJK.js";
|
|
3
|
+
let xs, Os, rn, Ls, Es, dn, we, $n, Bs, Ee, Un, ee, As, Ms, Ns;
|
|
4
4
|
let __tla = Promise.all([
|
|
5
5
|
(()=>{
|
|
6
6
|
try {
|
|
@@ -9,23 +9,23 @@ let __tla = Promise.all([
|
|
|
9
9
|
})()
|
|
10
10
|
]).then(async ()=>{
|
|
11
11
|
let o;
|
|
12
|
-
function
|
|
13
|
-
Ut ===
|
|
12
|
+
function B(i) {
|
|
13
|
+
Ut === it.length && it.push(it.length + 1);
|
|
14
14
|
const t = Ut;
|
|
15
|
-
return Ut =
|
|
15
|
+
return Ut = it[t], it[t] = i, t;
|
|
16
16
|
}
|
|
17
|
-
function
|
|
18
|
-
if (
|
|
19
|
-
return
|
|
17
|
+
function Oe(i) {
|
|
18
|
+
if (vt == 1) throw new Error("out of js stack");
|
|
19
|
+
return it[--vt] = i, vt;
|
|
20
20
|
}
|
|
21
|
-
const
|
|
21
|
+
const xe = typeof FinalizationRegistry > "u" ? {
|
|
22
22
|
register: ()=>{},
|
|
23
23
|
unregister: ()=>{}
|
|
24
24
|
} : new FinalizationRegistry((i)=>i.dtor(i.a, i.b));
|
|
25
25
|
function Cn(i) {
|
|
26
|
-
i < 132 || (
|
|
26
|
+
i < 132 || (it[i] = Ut, Ut = i);
|
|
27
27
|
}
|
|
28
|
-
function
|
|
28
|
+
function gt(i, t) {
|
|
29
29
|
return i = i >>> 0, Tn().subarray(i / 4, i / 4 + t);
|
|
30
30
|
}
|
|
31
31
|
function Bt(i, t) {
|
|
@@ -34,19 +34,19 @@ let __tla = Promise.all([
|
|
|
34
34
|
function cn(i, t) {
|
|
35
35
|
return i = i >>> 0, ln().subarray(i / 4, i / 4 + t);
|
|
36
36
|
}
|
|
37
|
-
let
|
|
38
|
-
function
|
|
39
|
-
return (
|
|
37
|
+
let pt = null;
|
|
38
|
+
function S() {
|
|
39
|
+
return (pt === null || pt.buffer.detached === !0 || pt.buffer.detached === void 0 && pt.buffer !== o.memory.buffer) && (pt = new DataView(o.memory.buffer)), pt;
|
|
40
40
|
}
|
|
41
|
-
let
|
|
41
|
+
let Ot = null;
|
|
42
42
|
function Tn() {
|
|
43
|
-
return (
|
|
43
|
+
return (Ot === null || Ot.byteLength === 0) && (Ot = new Float32Array(o.memory.buffer)), Ot;
|
|
44
44
|
}
|
|
45
|
-
let
|
|
45
|
+
let xt = null;
|
|
46
46
|
function Fn() {
|
|
47
|
-
return (
|
|
47
|
+
return (xt === null || xt.byteLength === 0) && (xt = new Float64Array(o.memory.buffer)), xt;
|
|
48
48
|
}
|
|
49
|
-
function
|
|
49
|
+
function tt(i, t) {
|
|
50
50
|
return i = i >>> 0, Nn(i, t);
|
|
51
51
|
}
|
|
52
52
|
let Mt = null;
|
|
@@ -57,19 +57,19 @@ let __tla = Promise.all([
|
|
|
57
57
|
function Pt() {
|
|
58
58
|
return (Lt === null || Lt.byteLength === 0) && (Lt = new Uint8Array(o.memory.buffer)), Lt;
|
|
59
59
|
}
|
|
60
|
-
function
|
|
61
|
-
return
|
|
60
|
+
function L(i) {
|
|
61
|
+
return it[i];
|
|
62
62
|
}
|
|
63
63
|
function Nt(i, t) {
|
|
64
64
|
try {
|
|
65
65
|
return i.apply(this, t);
|
|
66
66
|
} catch (e) {
|
|
67
|
-
o.__wbindgen_export(
|
|
67
|
+
o.__wbindgen_export(B(e));
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
let
|
|
71
|
-
|
|
72
|
-
let Ut =
|
|
70
|
+
let it = new Array(128).fill(void 0);
|
|
71
|
+
it.push(void 0, null, !0, !1);
|
|
72
|
+
let Ut = it.length;
|
|
73
73
|
function wt(i) {
|
|
74
74
|
return i == null;
|
|
75
75
|
}
|
|
@@ -90,21 +90,21 @@ let __tla = Promise.all([
|
|
|
90
90
|
}
|
|
91
91
|
};
|
|
92
92
|
return r._wbg_cb_unref = ()=>{
|
|
93
|
-
--s.cnt === 0 && (s.dtor(s.a, s.b), s.a = 0,
|
|
94
|
-
},
|
|
93
|
+
--s.cnt === 0 && (s.dtor(s.a, s.b), s.a = 0, xe.unregister(s));
|
|
94
|
+
}, xe.register(r, s, s), r;
|
|
95
95
|
}
|
|
96
|
-
function
|
|
96
|
+
function ct(i, t) {
|
|
97
97
|
const e = t(i.length * 4, 4) >>> 0;
|
|
98
|
-
return ln().set(i, e / 4),
|
|
98
|
+
return ln().set(i, e / 4), x = i.length, e;
|
|
99
99
|
}
|
|
100
|
-
function
|
|
100
|
+
function lt(i, t) {
|
|
101
101
|
const e = t(i.length * 1, 1) >>> 0;
|
|
102
|
-
return Pt().set(i, e / 1),
|
|
102
|
+
return Pt().set(i, e / 1), x = i.length, e;
|
|
103
103
|
}
|
|
104
|
-
function
|
|
104
|
+
function J(i, t, e) {
|
|
105
105
|
if (e === void 0) {
|
|
106
|
-
const c =
|
|
107
|
-
return Pt().subarray(l, l + c.length).set(c),
|
|
106
|
+
const c = Dt.encode(i), l = t(c.length, 1) >>> 0;
|
|
107
|
+
return Pt().subarray(l, l + c.length).set(c), x = c.length, l;
|
|
108
108
|
}
|
|
109
109
|
let n = i.length, s = t(n, 1) >>> 0;
|
|
110
110
|
const r = Pt();
|
|
@@ -116,14 +116,14 @@ let __tla = Promise.all([
|
|
|
116
116
|
}
|
|
117
117
|
if (a !== n) {
|
|
118
118
|
a !== 0 && (i = i.slice(a)), s = e(s, n, n = a + i.length * 3, 1) >>> 0;
|
|
119
|
-
const c = Pt().subarray(s + a, s + n), l =
|
|
119
|
+
const c = Pt().subarray(s + a, s + n), l = Dt.encodeInto(i, c);
|
|
120
120
|
a += l.written, s = e(s, n, a, 1) >>> 0;
|
|
121
121
|
}
|
|
122
|
-
return
|
|
122
|
+
return x = a, s;
|
|
123
123
|
}
|
|
124
|
-
let
|
|
125
|
-
function
|
|
126
|
-
const t =
|
|
124
|
+
let vt = 128;
|
|
125
|
+
function D(i) {
|
|
126
|
+
const t = L(i);
|
|
127
127
|
return Cn(i), t;
|
|
128
128
|
}
|
|
129
129
|
let se = new TextDecoder("utf-8", {
|
|
@@ -139,20 +139,20 @@ let __tla = Promise.all([
|
|
|
139
139
|
fatal: !0
|
|
140
140
|
}), se.decode(), ce = t), se.decode(Pt().subarray(i, i + t));
|
|
141
141
|
}
|
|
142
|
-
const
|
|
143
|
-
"encodeInto" in
|
|
144
|
-
const e =
|
|
142
|
+
const Dt = new TextEncoder;
|
|
143
|
+
"encodeInto" in Dt || (Dt.encodeInto = function(i, t) {
|
|
144
|
+
const e = Dt.encode(i);
|
|
145
145
|
return t.set(e), {
|
|
146
146
|
read: i.length,
|
|
147
147
|
written: e.length
|
|
148
148
|
};
|
|
149
149
|
});
|
|
150
|
-
let
|
|
150
|
+
let x = 0;
|
|
151
151
|
function An(i, t, e) {
|
|
152
|
-
o.
|
|
152
|
+
o.__wasm_bindgen_func_elem_1480(i, t, B(e));
|
|
153
153
|
}
|
|
154
|
-
function
|
|
155
|
-
o.
|
|
154
|
+
function On(i, t, e, n) {
|
|
155
|
+
o.__wasm_bindgen_func_elem_1520(i, t, B(e), B(n));
|
|
156
156
|
}
|
|
157
157
|
const Me = typeof FinalizationRegistry > "u" ? {
|
|
158
158
|
register: ()=>{},
|
|
@@ -178,10 +178,10 @@ let __tla = Promise.all([
|
|
|
178
178
|
} : new FinalizationRegistry((i)=>o.__wbg_ifcapi_free(i >>> 0, 1)), Ue = typeof FinalizationRegistry > "u" ? {
|
|
179
179
|
register: ()=>{},
|
|
180
180
|
unregister: ()=>{}
|
|
181
|
-
} : new FinalizationRegistry((i)=>o.__wbg_instancedata_free(i >>> 0, 1)),
|
|
181
|
+
} : new FinalizationRegistry((i)=>o.__wbg_instancedata_free(i >>> 0, 1)), ve = typeof FinalizationRegistry > "u" ? {
|
|
182
182
|
register: ()=>{},
|
|
183
183
|
unregister: ()=>{}
|
|
184
|
-
} : new FinalizationRegistry((i)=>o.__wbg_instancedgeometry_free(i >>> 0, 1)),
|
|
184
|
+
} : new FinalizationRegistry((i)=>o.__wbg_instancedgeometry_free(i >>> 0, 1)), De = typeof FinalizationRegistry > "u" ? {
|
|
185
185
|
register: ()=>{},
|
|
186
186
|
unregister: ()=>{}
|
|
187
187
|
} : new FinalizationRegistry((i)=>o.__wbg_instancedmeshcollection_free(i >>> 0, 1)), Ge = typeof FinalizationRegistry > "u" ? {
|
|
@@ -233,7 +233,7 @@ let __tla = Promise.all([
|
|
|
233
233
|
try {
|
|
234
234
|
const c = o.__wbindgen_add_to_stack_pointer(-16);
|
|
235
235
|
o.georeferencejs_localToMap(c, this.__wbg_ptr, t, e, n);
|
|
236
|
-
var s =
|
|
236
|
+
var s = S().getInt32(c + 0, !0), r = S().getInt32(c + 4, !0), a = Bt(s, r).slice();
|
|
237
237
|
return o.__wbindgen_export2(s, r * 8, 8), a;
|
|
238
238
|
} finally{
|
|
239
239
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -243,7 +243,7 @@ let __tla = Promise.all([
|
|
|
243
243
|
try {
|
|
244
244
|
const c = o.__wbindgen_add_to_stack_pointer(-16);
|
|
245
245
|
o.georeferencejs_mapToLocal(c, this.__wbg_ptr, t, e, n);
|
|
246
|
-
var s =
|
|
246
|
+
var s = S().getInt32(c + 0, !0), r = S().getInt32(c + 4, !0), a = Bt(s, r).slice();
|
|
247
247
|
return o.__wbindgen_export2(s, r * 8, 8), a;
|
|
248
248
|
} finally{
|
|
249
249
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -253,9 +253,9 @@ let __tla = Promise.all([
|
|
|
253
253
|
try {
|
|
254
254
|
const n = o.__wbindgen_add_to_stack_pointer(-16);
|
|
255
255
|
o.georeferencejs_crsName(n, this.__wbg_ptr);
|
|
256
|
-
var t =
|
|
256
|
+
var t = S().getInt32(n + 0, !0), e = S().getInt32(n + 4, !0);
|
|
257
257
|
let s;
|
|
258
|
-
return t !== 0 && (s =
|
|
258
|
+
return t !== 0 && (s = tt(t, e).slice(), o.__wbindgen_export2(t, e * 1, 1)), s;
|
|
259
259
|
} finally{
|
|
260
260
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
261
261
|
}
|
|
@@ -267,7 +267,7 @@ let __tla = Promise.all([
|
|
|
267
267
|
try {
|
|
268
268
|
const s = o.__wbindgen_add_to_stack_pointer(-16);
|
|
269
269
|
o.georeferencejs_toMatrix(s, this.__wbg_ptr);
|
|
270
|
-
var t =
|
|
270
|
+
var t = S().getInt32(s + 0, !0), e = S().getInt32(s + 4, !0), n = Bt(t, e).slice();
|
|
271
271
|
return o.__wbindgen_export2(t, e * 8, 8), n;
|
|
272
272
|
} finally{
|
|
273
273
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -359,9 +359,9 @@ let __tla = Promise.all([
|
|
|
359
359
|
try {
|
|
360
360
|
const s = o.__wbindgen_add_to_stack_pointer(-16);
|
|
361
361
|
o.gpugeometry_getIfcTypeName(s, this.__wbg_ptr, t);
|
|
362
|
-
var e =
|
|
362
|
+
var e = S().getInt32(s + 0, !0), n = S().getInt32(s + 4, !0);
|
|
363
363
|
let r;
|
|
364
|
-
return e !== 0 && (r =
|
|
364
|
+
return e !== 0 && (r = tt(e, n).slice(), o.__wbindgen_export2(e, n * 1, 1)), r;
|
|
365
365
|
} finally{
|
|
366
366
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
367
367
|
}
|
|
@@ -574,7 +574,7 @@ let __tla = Promise.all([
|
|
|
574
574
|
try {
|
|
575
575
|
const s = o.__wbindgen_add_to_stack_pointer(-16);
|
|
576
576
|
o.gpumeshmetadata_color(s, this.__wbg_ptr);
|
|
577
|
-
var t =
|
|
577
|
+
var t = S().getInt32(s + 0, !0), e = S().getInt32(s + 4, !0), n = gt(t, e).slice();
|
|
578
578
|
return o.__wbindgen_export2(t, e * 4, 4), n;
|
|
579
579
|
} finally{
|
|
580
580
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -592,90 +592,90 @@ let __tla = Promise.all([
|
|
|
592
592
|
o.__wbg_ifcapi_free(t, 0);
|
|
593
593
|
}
|
|
594
594
|
parseMeshes(t) {
|
|
595
|
-
const e =
|
|
596
|
-
return
|
|
595
|
+
const e = J(t, o.__wbindgen_export3, o.__wbindgen_export4), n = x, s = o.ifcapi_parseMeshes(this.__wbg_ptr, e, n);
|
|
596
|
+
return _t.__wrap(s);
|
|
597
597
|
}
|
|
598
598
|
parseMeshesAsync(t, e) {
|
|
599
|
-
const n =
|
|
600
|
-
return
|
|
599
|
+
const n = J(t, o.__wbindgen_export3, o.__wbindgen_export4), s = x, r = o.ifcapi_parseMeshesAsync(this.__wbg_ptr, n, s, B(e));
|
|
600
|
+
return D(r);
|
|
601
601
|
}
|
|
602
602
|
buildPrePassFast(t) {
|
|
603
|
-
const e =
|
|
604
|
-
return
|
|
603
|
+
const e = lt(t, o.__wbindgen_export3), n = x, s = o.ifcapi_buildPrePassFast(this.__wbg_ptr, e, n);
|
|
604
|
+
return D(s);
|
|
605
605
|
}
|
|
606
606
|
buildPrePassOnce(t) {
|
|
607
|
-
const e =
|
|
608
|
-
return
|
|
607
|
+
const e = lt(t, o.__wbindgen_export3), n = x, s = o.ifcapi_buildPrePassOnce(this.__wbg_ptr, e, n);
|
|
608
|
+
return D(s);
|
|
609
609
|
}
|
|
610
610
|
parseMeshesSubset(t, e, n, s) {
|
|
611
|
-
const r =
|
|
612
|
-
return
|
|
611
|
+
const r = J(t, o.__wbindgen_export3, o.__wbindgen_export4), a = x, c = o.ifcapi_parseMeshesSubset(this.__wbg_ptr, r, a, e, n, s);
|
|
612
|
+
return _t.__wrap(c);
|
|
613
613
|
}
|
|
614
614
|
parseToGpuGeometry(t) {
|
|
615
|
-
const e =
|
|
615
|
+
const e = J(t, o.__wbindgen_export3, o.__wbindgen_export4), n = x, s = o.ifcapi_parseToGpuGeometry(this.__wbg_ptr, e, n);
|
|
616
616
|
return Tt.__wrap(s);
|
|
617
617
|
}
|
|
618
618
|
parseMeshesInstanced(t) {
|
|
619
|
-
const e =
|
|
619
|
+
const e = J(t, o.__wbindgen_export3, o.__wbindgen_export4), n = x, s = o.ifcapi_parseMeshesInstanced(this.__wbg_ptr, e, n);
|
|
620
620
|
return Rt.__wrap(s);
|
|
621
621
|
}
|
|
622
622
|
processGeometryBatch(t, e, n, s, r, a, c, l, d, _, f, p) {
|
|
623
|
-
const g =
|
|
624
|
-
return
|
|
623
|
+
const g = lt(t, o.__wbindgen_export3), u = x, h = ct(e, o.__wbindgen_export3), b = x, C = ct(l, o.__wbindgen_export3), w = x, A = ct(d, o.__wbindgen_export3), M = x, z = ct(_, o.__wbindgen_export3), m = x, N = ct(f, o.__wbindgen_export3), I = x, F = lt(p, o.__wbindgen_export3), R = x, E = o.ifcapi_processGeometryBatch(this.__wbg_ptr, g, u, h, b, n, s, r, a, c, C, w, A, M, z, m, N, I, F, R);
|
|
624
|
+
return _t.__wrap(E);
|
|
625
625
|
}
|
|
626
626
|
scanEntityIndexShard(t, e, n, s) {
|
|
627
627
|
try {
|
|
628
|
-
const l = o.__wbindgen_add_to_stack_pointer(-16), d =
|
|
629
|
-
o.ifcapi_scanEntityIndexShard(l, this.__wbg_ptr, d, _,
|
|
630
|
-
var r =
|
|
631
|
-
if (c) throw
|
|
632
|
-
return
|
|
628
|
+
const l = o.__wbindgen_add_to_stack_pointer(-16), d = lt(t, o.__wbindgen_export3), _ = x;
|
|
629
|
+
o.ifcapi_scanEntityIndexShard(l, this.__wbg_ptr, d, _, Oe(e), n, s);
|
|
630
|
+
var r = S().getInt32(l + 0, !0), a = S().getInt32(l + 4, !0), c = S().getInt32(l + 8, !0);
|
|
631
|
+
if (c) throw D(a);
|
|
632
|
+
return D(r);
|
|
633
633
|
} finally{
|
|
634
|
-
o.__wbindgen_add_to_stack_pointer(16),
|
|
634
|
+
o.__wbindgen_add_to_stack_pointer(16), it[vt++] = void 0;
|
|
635
635
|
}
|
|
636
636
|
}
|
|
637
637
|
buildPrePassStreaming(t, e, n) {
|
|
638
638
|
try {
|
|
639
|
-
const c = o.__wbindgen_add_to_stack_pointer(-16), l =
|
|
640
|
-
o.ifcapi_buildPrePassStreaming(c, this.__wbg_ptr, l, d,
|
|
641
|
-
var s =
|
|
642
|
-
if (a) throw
|
|
643
|
-
return
|
|
639
|
+
const c = o.__wbindgen_add_to_stack_pointer(-16), l = lt(t, o.__wbindgen_export3), d = x;
|
|
640
|
+
o.ifcapi_buildPrePassStreaming(c, this.__wbg_ptr, l, d, Oe(e), n);
|
|
641
|
+
var s = S().getInt32(c + 0, !0), r = S().getInt32(c + 4, !0), a = S().getInt32(c + 8, !0);
|
|
642
|
+
if (a) throw D(r);
|
|
643
|
+
return D(s);
|
|
644
644
|
} finally{
|
|
645
|
-
o.__wbindgen_add_to_stack_pointer(16),
|
|
645
|
+
o.__wbindgen_add_to_stack_pointer(16), it[vt++] = void 0;
|
|
646
646
|
}
|
|
647
647
|
}
|
|
648
648
|
parseToGpuGeometryAsync(t, e) {
|
|
649
|
-
const n =
|
|
650
|
-
return
|
|
649
|
+
const n = J(t, o.__wbindgen_export3, o.__wbindgen_export4), s = x, r = o.ifcapi_parseToGpuGeometryAsync(this.__wbg_ptr, n, s, B(e));
|
|
650
|
+
return D(r);
|
|
651
651
|
}
|
|
652
652
|
parseMeshesInstancedAsync(t, e) {
|
|
653
|
-
const n =
|
|
654
|
-
return
|
|
653
|
+
const n = J(t, o.__wbindgen_export3, o.__wbindgen_export4), s = x, r = o.ifcapi_parseMeshesInstancedAsync(this.__wbg_ptr, n, s, B(e));
|
|
654
|
+
return D(r);
|
|
655
655
|
}
|
|
656
656
|
parseToGpuInstancedGeometry(t) {
|
|
657
|
-
const e =
|
|
657
|
+
const e = J(t, o.__wbindgen_export3, o.__wbindgen_export4), n = x, s = o.ifcapi_parseToGpuInstancedGeometry(this.__wbg_ptr, e, n);
|
|
658
658
|
return zt.__wrap(s);
|
|
659
659
|
}
|
|
660
660
|
processInstancedGeometryBatch(t, e, n, s, r, a, c, l, d) {
|
|
661
|
-
const _ =
|
|
662
|
-
return Rt.__wrap(
|
|
661
|
+
const _ = lt(t, o.__wbindgen_export3), f = x, p = ct(e, o.__wbindgen_export3), g = x, u = ct(l, o.__wbindgen_export3), h = x, b = lt(d, o.__wbindgen_export3), C = x, w = o.ifcapi_processInstancedGeometryBatch(this.__wbg_ptr, _, f, p, g, n, s, r, a, c, u, h, b, C);
|
|
662
|
+
return Rt.__wrap(w);
|
|
663
663
|
}
|
|
664
664
|
parseZeroCopy(t) {
|
|
665
|
-
const e =
|
|
666
|
-
return
|
|
665
|
+
const e = J(t, o.__wbindgen_export3, o.__wbindgen_export4), n = x, s = o.ifcapi_parseZeroCopy(this.__wbg_ptr, e, n);
|
|
666
|
+
return Kt.__wrap(s);
|
|
667
667
|
}
|
|
668
668
|
extractProfiles(t, e) {
|
|
669
|
-
const n =
|
|
669
|
+
const n = J(t, o.__wbindgen_export3, o.__wbindgen_export4), s = x, r = o.ifcapi_extractProfiles(this.__wbg_ptr, n, s, e);
|
|
670
670
|
return Yt.__wrap(r);
|
|
671
671
|
}
|
|
672
672
|
debugProcessEntity953(t) {
|
|
673
673
|
let e, n;
|
|
674
674
|
try {
|
|
675
|
-
const a = o.__wbindgen_add_to_stack_pointer(-16), c =
|
|
675
|
+
const a = o.__wbindgen_add_to_stack_pointer(-16), c = J(t, o.__wbindgen_export3, o.__wbindgen_export4), l = x;
|
|
676
676
|
o.ifcapi_debugProcessEntity953(a, this.__wbg_ptr, c, l);
|
|
677
|
-
var s =
|
|
678
|
-
return e = s, n = r,
|
|
677
|
+
var s = S().getInt32(a + 0, !0), r = S().getInt32(a + 4, !0);
|
|
678
|
+
return e = s, n = r, tt(s, r);
|
|
679
679
|
} finally{
|
|
680
680
|
o.__wbindgen_add_to_stack_pointer(16), o.__wbindgen_export2(e, n, 1);
|
|
681
681
|
}
|
|
@@ -683,20 +683,20 @@ let __tla = Promise.all([
|
|
|
683
683
|
debugProcessFirstWall(t) {
|
|
684
684
|
let e, n;
|
|
685
685
|
try {
|
|
686
|
-
const a = o.__wbindgen_add_to_stack_pointer(-16), c =
|
|
686
|
+
const a = o.__wbindgen_add_to_stack_pointer(-16), c = J(t, o.__wbindgen_export3, o.__wbindgen_export4), l = x;
|
|
687
687
|
o.ifcapi_debugProcessFirstWall(a, this.__wbg_ptr, c, l);
|
|
688
|
-
var s =
|
|
689
|
-
return e = s, n = r,
|
|
688
|
+
var s = S().getInt32(a + 0, !0), r = S().getInt32(a + 4, !0);
|
|
689
|
+
return e = s, n = r, tt(s, r);
|
|
690
690
|
} finally{
|
|
691
691
|
o.__wbindgen_add_to_stack_pointer(16), o.__wbindgen_export2(e, n, 1);
|
|
692
692
|
}
|
|
693
693
|
}
|
|
694
694
|
getMemory() {
|
|
695
695
|
const t = o.ifcapi_getMemory(this.__wbg_ptr);
|
|
696
|
-
return
|
|
696
|
+
return D(t);
|
|
697
697
|
}
|
|
698
698
|
setEntityIndex(t, e, n) {
|
|
699
|
-
const s =
|
|
699
|
+
const s = ct(t, o.__wbindgen_export3), r = x, a = ct(e, o.__wbindgen_export3), c = x, l = ct(n, o.__wbindgen_export3), d = x;
|
|
700
700
|
o.ifcapi_setEntityIndex(this.__wbg_ptr, s, r, a, c, l, d);
|
|
701
701
|
}
|
|
702
702
|
setMergeLayers(t) {
|
|
@@ -714,8 +714,8 @@ let __tla = Promise.all([
|
|
|
714
714
|
try {
|
|
715
715
|
const r = o.__wbindgen_add_to_stack_pointer(-16);
|
|
716
716
|
o.ifcapi_version(r, this.__wbg_ptr);
|
|
717
|
-
var n =
|
|
718
|
-
return t = n, e = s,
|
|
717
|
+
var n = S().getInt32(r + 0, !0), s = S().getInt32(r + 4, !0);
|
|
718
|
+
return t = n, e = s, tt(n, s);
|
|
719
719
|
} finally{
|
|
720
720
|
o.__wbindgen_add_to_stack_pointer(16), o.__wbindgen_export2(t, e, 1);
|
|
721
721
|
}
|
|
@@ -724,40 +724,40 @@ let __tla = Promise.all([
|
|
|
724
724
|
return o.ifcapi_is_ready(this.__wbg_ptr) !== 0;
|
|
725
725
|
}
|
|
726
726
|
getGeoReference(t) {
|
|
727
|
-
const e =
|
|
727
|
+
const e = J(t, o.__wbindgen_export3, o.__wbindgen_export4), n = x, s = o.ifcapi_getGeoReference(this.__wbg_ptr, e, n);
|
|
728
728
|
return s === 0 ? void 0 : Gt.__wrap(s);
|
|
729
729
|
}
|
|
730
730
|
parseMeshesWithRtc(t) {
|
|
731
|
-
const e =
|
|
731
|
+
const e = J(t, o.__wbindgen_export3, o.__wbindgen_export4), n = x, s = o.ifcapi_parseMeshesWithRtc(this.__wbg_ptr, e, n);
|
|
732
732
|
return Wt.__wrap(s);
|
|
733
733
|
}
|
|
734
734
|
parseStreaming(t, e) {
|
|
735
|
-
const n =
|
|
736
|
-
return
|
|
735
|
+
const n = J(t, o.__wbindgen_export3, o.__wbindgen_export4), s = x, r = o.ifcapi_parseStreaming(this.__wbg_ptr, n, s, B(e));
|
|
736
|
+
return D(r);
|
|
737
737
|
}
|
|
738
738
|
scanEntitiesFast(t) {
|
|
739
|
-
const e =
|
|
740
|
-
return
|
|
739
|
+
const e = J(t, o.__wbindgen_export3, o.__wbindgen_export4), n = x, s = o.ifcapi_scanEntitiesFast(this.__wbg_ptr, e, n);
|
|
740
|
+
return D(s);
|
|
741
741
|
}
|
|
742
742
|
scanEntitiesFastBytes(t) {
|
|
743
|
-
const e =
|
|
744
|
-
return
|
|
743
|
+
const e = lt(t, o.__wbindgen_export3), n = x, s = o.ifcapi_scanEntitiesFastBytes(this.__wbg_ptr, e, n);
|
|
744
|
+
return D(s);
|
|
745
745
|
}
|
|
746
746
|
scanGeometryEntitiesFast(t) {
|
|
747
|
-
const e =
|
|
748
|
-
return
|
|
747
|
+
const e = J(t, o.__wbindgen_export3, o.__wbindgen_export4), n = x, s = o.ifcapi_scanGeometryEntitiesFast(this.__wbg_ptr, e, n);
|
|
748
|
+
return D(s);
|
|
749
749
|
}
|
|
750
750
|
scanRelevantEntitiesFastBytes(t) {
|
|
751
|
-
const e =
|
|
752
|
-
return
|
|
751
|
+
const e = lt(t, o.__wbindgen_export3), n = x, s = o.ifcapi_scanRelevantEntitiesFastBytes(this.__wbg_ptr, e, n);
|
|
752
|
+
return D(s);
|
|
753
753
|
}
|
|
754
754
|
parse(t) {
|
|
755
|
-
const e =
|
|
756
|
-
return
|
|
755
|
+
const e = J(t, o.__wbindgen_export3, o.__wbindgen_export4), n = x, s = o.ifcapi_parse(this.__wbg_ptr, e, n);
|
|
756
|
+
return D(s);
|
|
757
757
|
}
|
|
758
758
|
parseSymbolicRepresentations(t) {
|
|
759
|
-
const e =
|
|
760
|
-
return
|
|
759
|
+
const e = J(t, o.__wbindgen_export3, o.__wbindgen_export4), n = x, s = o.ifcapi_parseSymbolicRepresentations(this.__wbg_ptr, e, n);
|
|
760
|
+
return qt.__wrap(s);
|
|
761
761
|
}
|
|
762
762
|
};
|
|
763
763
|
Symbol.dispose && (Ee.prototype[Symbol.dispose] = Ee.prototype.free);
|
|
@@ -782,7 +782,7 @@ let __tla = Promise.all([
|
|
|
782
782
|
try {
|
|
783
783
|
const s = o.__wbindgen_add_to_stack_pointer(-16);
|
|
784
784
|
o.instancedata_color(s, this.__wbg_ptr);
|
|
785
|
-
var t =
|
|
785
|
+
var t = S().getInt32(s + 0, !0), e = S().getInt32(s + 4, !0), n = gt(t, e).slice();
|
|
786
786
|
return o.__wbindgen_export2(t, e * 4, 4), n;
|
|
787
787
|
} finally{
|
|
788
788
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -790,7 +790,7 @@ let __tla = Promise.all([
|
|
|
790
790
|
}
|
|
791
791
|
get transform() {
|
|
792
792
|
const t = o.instancedata_transform(this.__wbg_ptr);
|
|
793
|
-
return
|
|
793
|
+
return D(t);
|
|
794
794
|
}
|
|
795
795
|
}
|
|
796
796
|
Symbol.dispose && (kt.prototype[Symbol.dispose] = kt.prototype.free);
|
|
@@ -798,11 +798,11 @@ let __tla = Promise.all([
|
|
|
798
798
|
static __wrap(t) {
|
|
799
799
|
t = t >>> 0;
|
|
800
800
|
const e = Object.create(Ft.prototype);
|
|
801
|
-
return e.__wbg_ptr = t,
|
|
801
|
+
return e.__wbg_ptr = t, ve.register(e, e.__wbg_ptr, e), e;
|
|
802
802
|
}
|
|
803
803
|
__destroy_into_raw() {
|
|
804
804
|
const t = this.__wbg_ptr;
|
|
805
|
-
return this.__wbg_ptr = 0,
|
|
805
|
+
return this.__wbg_ptr = 0, ve.unregister(this), t;
|
|
806
806
|
}
|
|
807
807
|
free() {
|
|
808
808
|
const t = this.__destroy_into_raw();
|
|
@@ -821,15 +821,15 @@ let __tla = Promise.all([
|
|
|
821
821
|
}
|
|
822
822
|
get indices() {
|
|
823
823
|
const t = o.instancedgeometry_indices(this.__wbg_ptr);
|
|
824
|
-
return
|
|
824
|
+
return D(t);
|
|
825
825
|
}
|
|
826
826
|
get normals() {
|
|
827
827
|
const t = o.instancedgeometry_normals(this.__wbg_ptr);
|
|
828
|
-
return
|
|
828
|
+
return D(t);
|
|
829
829
|
}
|
|
830
830
|
get positions() {
|
|
831
831
|
const t = o.instancedgeometry_positions(this.__wbg_ptr);
|
|
832
|
-
return
|
|
832
|
+
return D(t);
|
|
833
833
|
}
|
|
834
834
|
}
|
|
835
835
|
Symbol.dispose && (Ft.prototype[Symbol.dispose] = Ft.prototype.free);
|
|
@@ -837,11 +837,11 @@ let __tla = Promise.all([
|
|
|
837
837
|
static __wrap(t) {
|
|
838
838
|
t = t >>> 0;
|
|
839
839
|
const e = Object.create(Rt.prototype);
|
|
840
|
-
return e.__wbg_ptr = t,
|
|
840
|
+
return e.__wbg_ptr = t, De.register(e, e.__wbg_ptr, e), e;
|
|
841
841
|
}
|
|
842
842
|
__destroy_into_raw() {
|
|
843
843
|
const t = this.__wbg_ptr;
|
|
844
|
-
return this.__wbg_ptr = 0,
|
|
844
|
+
return this.__wbg_ptr = 0, De.unregister(this), t;
|
|
845
845
|
}
|
|
846
846
|
free() {
|
|
847
847
|
const t = this.__destroy_into_raw();
|
|
@@ -862,10 +862,10 @@ let __tla = Promise.all([
|
|
|
862
862
|
}
|
|
863
863
|
}
|
|
864
864
|
Symbol.dispose && (Rt.prototype[Symbol.dispose] = Rt.prototype.free);
|
|
865
|
-
class
|
|
865
|
+
class _t {
|
|
866
866
|
static __wrap(t) {
|
|
867
867
|
t = t >>> 0;
|
|
868
|
-
const e = Object.create(
|
|
868
|
+
const e = Object.create(_t.prototype);
|
|
869
869
|
return e.__wbg_ptr = t, Ge.register(e, e.__wbg_ptr, e), e;
|
|
870
870
|
}
|
|
871
871
|
__destroy_into_raw() {
|
|
@@ -892,7 +892,7 @@ let __tla = Promise.all([
|
|
|
892
892
|
try {
|
|
893
893
|
const c = o.__wbindgen_add_to_stack_pointer(-16);
|
|
894
894
|
o.meshcollection_localToWorld(c, this.__wbg_ptr, t, e, n);
|
|
895
|
-
var s =
|
|
895
|
+
var s = S().getInt32(c + 0, !0), r = S().getInt32(c + 4, !0), a = Bt(s, r).slice();
|
|
896
896
|
return o.__wbindgen_export2(s, r * 8, 8), a;
|
|
897
897
|
} finally{
|
|
898
898
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -908,7 +908,7 @@ let __tla = Promise.all([
|
|
|
908
908
|
try {
|
|
909
909
|
const n = o.__wbindgen_add_to_stack_pointer(-16);
|
|
910
910
|
o.meshcollection_buildingRotation(n, this.__wbg_ptr);
|
|
911
|
-
var t =
|
|
911
|
+
var t = S().getInt32(n + 0, !0), e = S().getFloat64(n + 8, !0);
|
|
912
912
|
return t === 0 ? void 0 : e;
|
|
913
913
|
} finally{
|
|
914
914
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -916,13 +916,13 @@ let __tla = Promise.all([
|
|
|
916
916
|
}
|
|
917
917
|
get(t) {
|
|
918
918
|
const e = o.meshcollection_get(this.__wbg_ptr, t);
|
|
919
|
-
return e === 0 ? void 0 :
|
|
919
|
+
return e === 0 ? void 0 : ht.__wrap(e);
|
|
920
920
|
}
|
|
921
921
|
get length() {
|
|
922
922
|
return o.meshcollection_length(this.__wbg_ptr) >>> 0;
|
|
923
923
|
}
|
|
924
924
|
}
|
|
925
|
-
Symbol.dispose && (
|
|
925
|
+
Symbol.dispose && (_t.prototype[Symbol.dispose] = _t.prototype.free);
|
|
926
926
|
class Wt {
|
|
927
927
|
static __wrap(t) {
|
|
928
928
|
t = t >>> 0;
|
|
@@ -943,21 +943,21 @@ let __tla = Promise.all([
|
|
|
943
943
|
}
|
|
944
944
|
get(t) {
|
|
945
945
|
const e = o.meshcollectionwithrtc_get(this.__wbg_ptr, t);
|
|
946
|
-
return e === 0 ? void 0 :
|
|
946
|
+
return e === 0 ? void 0 : ht.__wrap(e);
|
|
947
947
|
}
|
|
948
948
|
get length() {
|
|
949
949
|
return o.meshcollection_length(this.__wbg_ptr) >>> 0;
|
|
950
950
|
}
|
|
951
951
|
get meshes() {
|
|
952
952
|
const t = o.meshcollectionwithrtc_meshes(this.__wbg_ptr);
|
|
953
|
-
return
|
|
953
|
+
return _t.__wrap(t);
|
|
954
954
|
}
|
|
955
955
|
}
|
|
956
956
|
Symbol.dispose && (Wt.prototype[Symbol.dispose] = Wt.prototype.free);
|
|
957
|
-
class
|
|
957
|
+
class ht {
|
|
958
958
|
static __wrap(t) {
|
|
959
959
|
t = t >>> 0;
|
|
960
|
-
const e = Object.create(
|
|
960
|
+
const e = Object.create(ht.prototype);
|
|
961
961
|
return e.__wbg_ptr = t, ze.register(e, e.__wbg_ptr, e), e;
|
|
962
962
|
}
|
|
963
963
|
__destroy_into_raw() {
|
|
@@ -981,7 +981,7 @@ let __tla = Promise.all([
|
|
|
981
981
|
try {
|
|
982
982
|
const s = o.__wbindgen_add_to_stack_pointer(-16);
|
|
983
983
|
o.meshdatajs_color(s, this.__wbg_ptr);
|
|
984
|
-
var t =
|
|
984
|
+
var t = S().getInt32(s + 0, !0), e = S().getInt32(s + 4, !0), n = gt(t, e).slice();
|
|
985
985
|
return o.__wbindgen_export2(t, e * 4, 4), n;
|
|
986
986
|
} finally{
|
|
987
987
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -989,29 +989,29 @@ let __tla = Promise.all([
|
|
|
989
989
|
}
|
|
990
990
|
get indices() {
|
|
991
991
|
const t = o.meshdatajs_indices(this.__wbg_ptr);
|
|
992
|
-
return
|
|
992
|
+
return D(t);
|
|
993
993
|
}
|
|
994
994
|
get normals() {
|
|
995
995
|
const t = o.meshdatajs_normals(this.__wbg_ptr);
|
|
996
|
-
return
|
|
996
|
+
return D(t);
|
|
997
997
|
}
|
|
998
998
|
get ifcType() {
|
|
999
999
|
let t, e;
|
|
1000
1000
|
try {
|
|
1001
1001
|
const r = o.__wbindgen_add_to_stack_pointer(-16);
|
|
1002
1002
|
o.meshdatajs_ifcType(r, this.__wbg_ptr);
|
|
1003
|
-
var n =
|
|
1004
|
-
return t = n, e = s,
|
|
1003
|
+
var n = S().getInt32(r + 0, !0), s = S().getInt32(r + 4, !0);
|
|
1004
|
+
return t = n, e = s, tt(n, s);
|
|
1005
1005
|
} finally{
|
|
1006
1006
|
o.__wbindgen_add_to_stack_pointer(16), o.__wbindgen_export2(t, e, 1);
|
|
1007
1007
|
}
|
|
1008
1008
|
}
|
|
1009
1009
|
get positions() {
|
|
1010
1010
|
const t = o.meshdatajs_positions(this.__wbg_ptr);
|
|
1011
|
-
return
|
|
1011
|
+
return D(t);
|
|
1012
1012
|
}
|
|
1013
1013
|
}
|
|
1014
|
-
Symbol.dispose && (
|
|
1014
|
+
Symbol.dispose && (ht.prototype[Symbol.dispose] = ht.prototype.free);
|
|
1015
1015
|
class Yt {
|
|
1016
1016
|
static __wrap(t) {
|
|
1017
1017
|
t = t >>> 0;
|
|
@@ -1054,22 +1054,22 @@ let __tla = Promise.all([
|
|
|
1054
1054
|
}
|
|
1055
1055
|
get holeCounts() {
|
|
1056
1056
|
const t = o.profileentryjs_holeCounts(this.__wbg_ptr);
|
|
1057
|
-
return
|
|
1057
|
+
return D(t);
|
|
1058
1058
|
}
|
|
1059
1059
|
get holePoints() {
|
|
1060
1060
|
const t = o.profileentryjs_holePoints(this.__wbg_ptr);
|
|
1061
|
-
return
|
|
1061
|
+
return D(t);
|
|
1062
1062
|
}
|
|
1063
1063
|
get modelIndex() {
|
|
1064
1064
|
return o.profileentryjs_modelIndex(this.__wbg_ptr) >>> 0;
|
|
1065
1065
|
}
|
|
1066
1066
|
get outerPoints() {
|
|
1067
1067
|
const t = o.profileentryjs_outerPoints(this.__wbg_ptr);
|
|
1068
|
-
return
|
|
1068
|
+
return D(t);
|
|
1069
1069
|
}
|
|
1070
1070
|
get extrusionDir() {
|
|
1071
1071
|
const t = o.profileentryjs_extrusionDir(this.__wbg_ptr);
|
|
1072
|
-
return
|
|
1072
|
+
return D(t);
|
|
1073
1073
|
}
|
|
1074
1074
|
get extrusionDepth() {
|
|
1075
1075
|
return o.profileentryjs_extrusionDepth(this.__wbg_ptr);
|
|
@@ -1079,15 +1079,15 @@ let __tla = Promise.all([
|
|
|
1079
1079
|
try {
|
|
1080
1080
|
const r = o.__wbindgen_add_to_stack_pointer(-16);
|
|
1081
1081
|
o.profileentryjs_ifcType(r, this.__wbg_ptr);
|
|
1082
|
-
var n =
|
|
1083
|
-
return t = n, e = s,
|
|
1082
|
+
var n = S().getInt32(r + 0, !0), s = S().getInt32(r + 4, !0);
|
|
1083
|
+
return t = n, e = s, tt(n, s);
|
|
1084
1084
|
} finally{
|
|
1085
1085
|
o.__wbindgen_add_to_stack_pointer(16), o.__wbindgen_export2(t, e, 1);
|
|
1086
1086
|
}
|
|
1087
1087
|
}
|
|
1088
1088
|
get transform() {
|
|
1089
1089
|
const t = o.profileentryjs_transform(this.__wbg_ptr);
|
|
1090
|
-
return
|
|
1090
|
+
return D(t);
|
|
1091
1091
|
}
|
|
1092
1092
|
}
|
|
1093
1093
|
Symbol.dispose && (Ht.prototype[Symbol.dispose] = Ht.prototype.free);
|
|
@@ -1112,7 +1112,7 @@ let __tla = Promise.all([
|
|
|
1112
1112
|
try {
|
|
1113
1113
|
const c = o.__wbindgen_add_to_stack_pointer(-16);
|
|
1114
1114
|
o.rtcoffsetjs_toWorld(c, this.__wbg_ptr, t, e, n);
|
|
1115
|
-
var s =
|
|
1115
|
+
var s = S().getInt32(c + 0, !0), r = S().getInt32(c + 4, !0), a = Bt(s, r).slice();
|
|
1116
1116
|
return o.__wbindgen_export2(s, r * 8, 8), a;
|
|
1117
1117
|
} finally{
|
|
1118
1118
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -1166,8 +1166,8 @@ let __tla = Promise.all([
|
|
|
1166
1166
|
try {
|
|
1167
1167
|
const r = o.__wbindgen_add_to_stack_pointer(-16);
|
|
1168
1168
|
o.symboliccircle_repIdentifier(r, this.__wbg_ptr);
|
|
1169
|
-
var n =
|
|
1170
|
-
return t = n, e = s,
|
|
1169
|
+
var n = S().getInt32(r + 0, !0), s = S().getInt32(r + 4, !0);
|
|
1170
|
+
return t = n, e = s, tt(n, s);
|
|
1171
1171
|
} finally{
|
|
1172
1172
|
o.__wbindgen_add_to_stack_pointer(16), o.__wbindgen_export2(t, e, 1);
|
|
1173
1173
|
}
|
|
@@ -1186,8 +1186,8 @@ let __tla = Promise.all([
|
|
|
1186
1186
|
try {
|
|
1187
1187
|
const r = o.__wbindgen_add_to_stack_pointer(-16);
|
|
1188
1188
|
o.symboliccircle_ifcType(r, this.__wbg_ptr);
|
|
1189
|
-
var n =
|
|
1190
|
-
return t = n, e = s,
|
|
1189
|
+
var n = S().getInt32(r + 0, !0), s = S().getInt32(r + 4, !0);
|
|
1190
|
+
return t = n, e = s, tt(n, s);
|
|
1191
1191
|
} finally{
|
|
1192
1192
|
o.__wbindgen_add_to_stack_pointer(16), o.__wbindgen_export2(t, e, 1);
|
|
1193
1193
|
}
|
|
@@ -1197,10 +1197,10 @@ let __tla = Promise.all([
|
|
|
1197
1197
|
}
|
|
1198
1198
|
}
|
|
1199
1199
|
Symbol.dispose && (Jt.prototype[Symbol.dispose] = Jt.prototype.free);
|
|
1200
|
-
class
|
|
1200
|
+
class Qt {
|
|
1201
1201
|
static __wrap(t) {
|
|
1202
1202
|
t = t >>> 0;
|
|
1203
|
-
const e = Object.create(
|
|
1203
|
+
const e = Object.create(Qt.prototype);
|
|
1204
1204
|
return e.__wbg_ptr = t, Ye.register(e, e.__wbg_ptr, e), e;
|
|
1205
1205
|
}
|
|
1206
1206
|
__destroy_into_raw() {
|
|
@@ -1222,23 +1222,23 @@ let __tla = Promise.all([
|
|
|
1222
1222
|
try {
|
|
1223
1223
|
const r = o.__wbindgen_add_to_stack_pointer(-16);
|
|
1224
1224
|
o.symbolicpolyline_repIdentifier(r, this.__wbg_ptr);
|
|
1225
|
-
var n =
|
|
1226
|
-
return t = n, e = s,
|
|
1225
|
+
var n = S().getInt32(r + 0, !0), s = S().getInt32(r + 4, !0);
|
|
1226
|
+
return t = n, e = s, tt(n, s);
|
|
1227
1227
|
} finally{
|
|
1228
1228
|
o.__wbindgen_add_to_stack_pointer(16), o.__wbindgen_export2(t, e, 1);
|
|
1229
1229
|
}
|
|
1230
1230
|
}
|
|
1231
1231
|
get points() {
|
|
1232
1232
|
const t = o.symbolicpolyline_points(this.__wbg_ptr);
|
|
1233
|
-
return
|
|
1233
|
+
return D(t);
|
|
1234
1234
|
}
|
|
1235
1235
|
get ifcType() {
|
|
1236
1236
|
let t, e;
|
|
1237
1237
|
try {
|
|
1238
1238
|
const r = o.__wbindgen_add_to_stack_pointer(-16);
|
|
1239
1239
|
o.symbolicpolyline_ifcType(r, this.__wbg_ptr);
|
|
1240
|
-
var n =
|
|
1241
|
-
return t = n, e = s,
|
|
1240
|
+
var n = S().getInt32(r + 0, !0), s = S().getInt32(r + 4, !0);
|
|
1241
|
+
return t = n, e = s, tt(n, s);
|
|
1242
1242
|
} finally{
|
|
1243
1243
|
o.__wbindgen_add_to_stack_pointer(16), o.__wbindgen_export2(t, e, 1);
|
|
1244
1244
|
}
|
|
@@ -1247,11 +1247,11 @@ let __tla = Promise.all([
|
|
|
1247
1247
|
return o.symbolicpolyline_isClosed(this.__wbg_ptr) !== 0;
|
|
1248
1248
|
}
|
|
1249
1249
|
}
|
|
1250
|
-
Symbol.dispose && (
|
|
1251
|
-
class
|
|
1250
|
+
Symbol.dispose && (Qt.prototype[Symbol.dispose] = Qt.prototype.free);
|
|
1251
|
+
class qt {
|
|
1252
1252
|
static __wrap(t) {
|
|
1253
1253
|
t = t >>> 0;
|
|
1254
|
-
const e = Object.create(
|
|
1254
|
+
const e = Object.create(qt.prototype);
|
|
1255
1255
|
return e.__wbg_ptr = t, He.register(e, e.__wbg_ptr, e), e;
|
|
1256
1256
|
}
|
|
1257
1257
|
__destroy_into_raw() {
|
|
@@ -1274,7 +1274,7 @@ let __tla = Promise.all([
|
|
|
1274
1274
|
}
|
|
1275
1275
|
getPolyline(t) {
|
|
1276
1276
|
const e = o.symbolicrepresentationcollection_getPolyline(this.__wbg_ptr, t);
|
|
1277
|
-
return e === 0 ? void 0 :
|
|
1277
|
+
return e === 0 ? void 0 : Qt.__wrap(e);
|
|
1278
1278
|
}
|
|
1279
1279
|
get polylineCount() {
|
|
1280
1280
|
return o.symbolicrepresentationcollection_polylineCount(this.__wbg_ptr) >>> 0;
|
|
@@ -1283,7 +1283,7 @@ let __tla = Promise.all([
|
|
|
1283
1283
|
try {
|
|
1284
1284
|
const s = o.__wbindgen_add_to_stack_pointer(-16);
|
|
1285
1285
|
o.symbolicrepresentationcollection_getExpressIds(s, this.__wbg_ptr);
|
|
1286
|
-
var t =
|
|
1286
|
+
var t = S().getInt32(s + 0, !0), e = S().getInt32(s + 4, !0), n = cn(t, e).slice();
|
|
1287
1287
|
return o.__wbindgen_export2(t, e * 4, 4), n;
|
|
1288
1288
|
} finally{
|
|
1289
1289
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -1293,11 +1293,11 @@ let __tla = Promise.all([
|
|
|
1293
1293
|
return o.symbolicrepresentationcollection_isEmpty(this.__wbg_ptr) !== 0;
|
|
1294
1294
|
}
|
|
1295
1295
|
}
|
|
1296
|
-
Symbol.dispose && (
|
|
1297
|
-
class
|
|
1296
|
+
Symbol.dispose && (qt.prototype[Symbol.dispose] = qt.prototype.free);
|
|
1297
|
+
class Kt {
|
|
1298
1298
|
static __wrap(t) {
|
|
1299
1299
|
t = t >>> 0;
|
|
1300
|
-
const e = Object.create(
|
|
1300
|
+
const e = Object.create(Kt.prototype);
|
|
1301
1301
|
return e.__wbg_ptr = t, fe.register(e, e.__wbg_ptr, e), e;
|
|
1302
1302
|
}
|
|
1303
1303
|
__destroy_into_raw() {
|
|
@@ -1312,7 +1312,7 @@ let __tla = Promise.all([
|
|
|
1312
1312
|
try {
|
|
1313
1313
|
const s = o.__wbindgen_add_to_stack_pointer(-16);
|
|
1314
1314
|
o.zerocopymesh_bounds_max(s, this.__wbg_ptr);
|
|
1315
|
-
var t =
|
|
1315
|
+
var t = S().getInt32(s + 0, !0), e = S().getInt32(s + 4, !0), n = gt(t, e).slice();
|
|
1316
1316
|
return o.__wbindgen_export2(t, e * 4, 4), n;
|
|
1317
1317
|
} finally{
|
|
1318
1318
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -1322,7 +1322,7 @@ let __tla = Promise.all([
|
|
|
1322
1322
|
try {
|
|
1323
1323
|
const s = o.__wbindgen_add_to_stack_pointer(-16);
|
|
1324
1324
|
o.zerocopymesh_bounds_min(s, this.__wbg_ptr);
|
|
1325
|
-
var t =
|
|
1325
|
+
var t = S().getInt32(s + 0, !0), e = S().getInt32(s + 4, !0), n = gt(t, e).slice();
|
|
1326
1326
|
return o.__wbindgen_export2(t, e * 4, 4), n;
|
|
1327
1327
|
} finally{
|
|
1328
1328
|
o.__wbindgen_add_to_stack_pointer(16);
|
|
@@ -1360,8 +1360,8 @@ let __tla = Promise.all([
|
|
|
1360
1360
|
return o.zerocopymesh_is_empty(this.__wbg_ptr) !== 0;
|
|
1361
1361
|
}
|
|
1362
1362
|
}
|
|
1363
|
-
Symbol.dispose && (
|
|
1364
|
-
const
|
|
1363
|
+
Symbol.dispose && (Kt.prototype[Symbol.dispose] = Kt.prototype.free);
|
|
1364
|
+
const xn = new Set([
|
|
1365
1365
|
"basic",
|
|
1366
1366
|
"cors",
|
|
1367
1367
|
"default"
|
|
@@ -1371,7 +1371,7 @@ let __tla = Promise.all([
|
|
|
1371
1371
|
if (typeof WebAssembly.instantiateStreaming == "function") try {
|
|
1372
1372
|
return await WebAssembly.instantiateStreaming(i, t);
|
|
1373
1373
|
} catch (n) {
|
|
1374
|
-
if (i.ok &&
|
|
1374
|
+
if (i.ok && xn.has(i.type) && i.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);
|
|
1375
1375
|
else throw n;
|
|
1376
1376
|
}
|
|
1377
1377
|
const e = await i.arrayBuffer();
|
|
@@ -1387,75 +1387,75 @@ let __tla = Promise.all([
|
|
|
1387
1387
|
function Ln() {
|
|
1388
1388
|
const i = {};
|
|
1389
1389
|
return i.wbg = {}, i.wbg.__wbg_Error_52673b7de5a0ca89 = function(t, e) {
|
|
1390
|
-
const n = Error(
|
|
1391
|
-
return
|
|
1390
|
+
const n = Error(tt(t, e));
|
|
1391
|
+
return B(n);
|
|
1392
1392
|
}, i.wbg.__wbg___wbindgen_is_function_8d400b8b1af978cd = function(t) {
|
|
1393
|
-
return typeof
|
|
1393
|
+
return typeof L(t) == "function";
|
|
1394
1394
|
}, i.wbg.__wbg___wbindgen_is_undefined_f6b95eab589e0269 = function(t) {
|
|
1395
|
-
return
|
|
1395
|
+
return L(t) === void 0;
|
|
1396
1396
|
}, i.wbg.__wbg___wbindgen_memory_a342e963fbcabd68 = function() {
|
|
1397
1397
|
const t = o.memory;
|
|
1398
|
-
return
|
|
1398
|
+
return B(t);
|
|
1399
1399
|
}, i.wbg.__wbg___wbindgen_number_get_9619185a74197f95 = function(t, e) {
|
|
1400
|
-
const n =
|
|
1401
|
-
|
|
1400
|
+
const n = L(e), s = typeof n == "number" ? n : void 0;
|
|
1401
|
+
S().setFloat64(t + 8, wt(s) ? 0 : s, !0), S().setInt32(t + 0, !wt(s), !0);
|
|
1402
1402
|
}, i.wbg.__wbg___wbindgen_throw_dd24417ed36fc46e = function(t, e) {
|
|
1403
|
-
throw new Error(
|
|
1403
|
+
throw new Error(tt(t, e));
|
|
1404
1404
|
}, i.wbg.__wbg__wbg_cb_unref_87dfb5aaa0cbcea7 = function(t) {
|
|
1405
|
-
|
|
1405
|
+
L(t)._wbg_cb_unref();
|
|
1406
1406
|
}, i.wbg.__wbg_call_3020136f7a2d6e44 = function() {
|
|
1407
1407
|
return Nt(function(t, e, n) {
|
|
1408
|
-
const s =
|
|
1409
|
-
return
|
|
1408
|
+
const s = L(t).call(L(e), L(n));
|
|
1409
|
+
return B(s);
|
|
1410
1410
|
}, arguments);
|
|
1411
1411
|
}, i.wbg.__wbg_call_abb4ff46ce38be40 = function() {
|
|
1412
1412
|
return Nt(function(t, e) {
|
|
1413
|
-
const n =
|
|
1414
|
-
return
|
|
1413
|
+
const n = L(t).call(L(e));
|
|
1414
|
+
return B(n);
|
|
1415
1415
|
}, arguments);
|
|
1416
1416
|
}, i.wbg.__wbg_call_c8baa5c5e72d274e = function() {
|
|
1417
1417
|
return Nt(function(t, e, n, s) {
|
|
1418
|
-
const r =
|
|
1419
|
-
return
|
|
1418
|
+
const r = L(t).call(L(e), L(n), L(s));
|
|
1419
|
+
return B(r);
|
|
1420
1420
|
}, arguments);
|
|
1421
1421
|
}, i.wbg.__wbg_debug_9d0c87ddda3dc485 = function(t) {
|
|
1422
|
-
console.debug(
|
|
1422
|
+
console.debug(L(t));
|
|
1423
1423
|
}, i.wbg.__wbg_error_7534b8e9a36f1ab4 = function(t, e) {
|
|
1424
1424
|
let n, s;
|
|
1425
1425
|
try {
|
|
1426
|
-
n = t, s = e, console.error(
|
|
1426
|
+
n = t, s = e, console.error(tt(t, e));
|
|
1427
1427
|
} finally{
|
|
1428
1428
|
o.__wbindgen_export2(n, s, 1);
|
|
1429
1429
|
}
|
|
1430
1430
|
}, i.wbg.__wbg_get_af9dab7e9603ea93 = function() {
|
|
1431
1431
|
return Nt(function(t, e) {
|
|
1432
|
-
const n = Reflect.get(
|
|
1433
|
-
return
|
|
1432
|
+
const n = Reflect.get(L(t), L(e));
|
|
1433
|
+
return B(n);
|
|
1434
1434
|
}, arguments);
|
|
1435
1435
|
}, i.wbg.__wbg_gpugeometry_new = function(t) {
|
|
1436
1436
|
const e = Tt.__wrap(t);
|
|
1437
|
-
return
|
|
1437
|
+
return B(e);
|
|
1438
1438
|
}, i.wbg.__wbg_info_ce6bcc489c22f6f0 = function(t) {
|
|
1439
|
-
console.info(
|
|
1439
|
+
console.info(L(t));
|
|
1440
1440
|
}, i.wbg.__wbg_instancedgeometry_new = function(t) {
|
|
1441
1441
|
const e = Ft.__wrap(t);
|
|
1442
|
-
return
|
|
1442
|
+
return B(e);
|
|
1443
1443
|
}, i.wbg.__wbg_length_86ce4877baf913bb = function(t) {
|
|
1444
|
-
return
|
|
1444
|
+
return L(t).length;
|
|
1445
1445
|
}, i.wbg.__wbg_length_d45040a40c570362 = function(t) {
|
|
1446
|
-
return
|
|
1446
|
+
return L(t).length;
|
|
1447
1447
|
}, i.wbg.__wbg_meshdatajs_new = function(t) {
|
|
1448
|
-
const e =
|
|
1449
|
-
return
|
|
1448
|
+
const e = ht.__wrap(t);
|
|
1449
|
+
return B(e);
|
|
1450
1450
|
}, i.wbg.__wbg_new_1ba21ce319a06297 = function() {
|
|
1451
1451
|
const t = new Object;
|
|
1452
|
-
return
|
|
1452
|
+
return B(t);
|
|
1453
1453
|
}, i.wbg.__wbg_new_25f239778d6112b9 = function() {
|
|
1454
1454
|
const t = new Array;
|
|
1455
|
-
return
|
|
1455
|
+
return B(t);
|
|
1456
1456
|
}, i.wbg.__wbg_new_8a6f238a6ece86ea = function() {
|
|
1457
1457
|
const t = new Error;
|
|
1458
|
-
return
|
|
1458
|
+
return B(t);
|
|
1459
1459
|
}, i.wbg.__wbg_new_ff12d2b041fb48f1 = function(t, e) {
|
|
1460
1460
|
try {
|
|
1461
1461
|
var n = {
|
|
@@ -1465,110 +1465,110 @@ let __tla = Promise.all([
|
|
|
1465
1465
|
const l = n.a;
|
|
1466
1466
|
n.a = 0;
|
|
1467
1467
|
try {
|
|
1468
|
-
return
|
|
1468
|
+
return On(l, n.b, a, c);
|
|
1469
1469
|
} finally{
|
|
1470
1470
|
n.a = l;
|
|
1471
1471
|
}
|
|
1472
1472
|
};
|
|
1473
1473
|
const r = new Promise(s);
|
|
1474
|
-
return
|
|
1474
|
+
return B(r);
|
|
1475
1475
|
} finally{
|
|
1476
1476
|
n.a = n.b = 0;
|
|
1477
1477
|
}
|
|
1478
1478
|
}, i.wbg.__wbg_new_from_slice_41e2764a343e3cb1 = function(t, e) {
|
|
1479
|
-
const n = new Float32Array(
|
|
1480
|
-
return
|
|
1479
|
+
const n = new Float32Array(gt(t, e));
|
|
1480
|
+
return B(n);
|
|
1481
1481
|
}, i.wbg.__wbg_new_from_slice_db0691b69e9d3891 = function(t, e) {
|
|
1482
1482
|
const n = new Uint32Array(cn(t, e));
|
|
1483
|
-
return
|
|
1483
|
+
return B(n);
|
|
1484
1484
|
}, i.wbg.__wbg_new_no_args_cb138f77cf6151ee = function(t, e) {
|
|
1485
|
-
const n = new Function(
|
|
1486
|
-
return
|
|
1485
|
+
const n = new Function(tt(t, e));
|
|
1486
|
+
return B(n);
|
|
1487
1487
|
}, i.wbg.__wbg_new_with_length_202b3db94ba5fc86 = function(t) {
|
|
1488
1488
|
const e = new Uint32Array(t >>> 0);
|
|
1489
|
-
return
|
|
1489
|
+
return B(e);
|
|
1490
1490
|
}, i.wbg.__wbg_new_with_length_806b9e5b8290af7c = function(t) {
|
|
1491
1491
|
const e = new Float64Array(t >>> 0);
|
|
1492
|
-
return
|
|
1492
|
+
return B(e);
|
|
1493
1493
|
}, i.wbg.__wbg_new_with_length_aa5eaf41d35235e5 = function(t) {
|
|
1494
1494
|
const e = new Uint8Array(t >>> 0);
|
|
1495
|
-
return
|
|
1495
|
+
return B(e);
|
|
1496
1496
|
}, i.wbg.__wbg_prototypesetcall_96cc7097487b926d = function(t, e, n) {
|
|
1497
|
-
Float32Array.prototype.set.call(
|
|
1497
|
+
Float32Array.prototype.set.call(gt(t, e), L(n));
|
|
1498
1498
|
}, i.wbg.__wbg_push_7d9be8f38fc13975 = function(t, e) {
|
|
1499
|
-
return
|
|
1499
|
+
return L(t).push(L(e));
|
|
1500
1500
|
}, i.wbg.__wbg_queueMicrotask_9b549dfce8865860 = function(t) {
|
|
1501
|
-
const e =
|
|
1502
|
-
return
|
|
1501
|
+
const e = L(t).queueMicrotask;
|
|
1502
|
+
return B(e);
|
|
1503
1503
|
}, i.wbg.__wbg_queueMicrotask_fca69f5bfad613a5 = function(t) {
|
|
1504
|
-
queueMicrotask(
|
|
1504
|
+
queueMicrotask(L(t));
|
|
1505
1505
|
}, i.wbg.__wbg_resolve_fd5bfbaa4ce36e1e = function(t) {
|
|
1506
|
-
const e = Promise.resolve(
|
|
1507
|
-
return
|
|
1506
|
+
const e = Promise.resolve(L(t));
|
|
1507
|
+
return B(e);
|
|
1508
1508
|
}, i.wbg.__wbg_set_3f1d0b984ed272ed = function(t, e, n) {
|
|
1509
|
-
|
|
1509
|
+
L(t)[D(e)] = D(n);
|
|
1510
1510
|
}, i.wbg.__wbg_set_781438a03c0c3c81 = function() {
|
|
1511
1511
|
return Nt(function(t, e, n) {
|
|
1512
|
-
return Reflect.set(
|
|
1512
|
+
return Reflect.set(L(t), L(e), L(n));
|
|
1513
1513
|
}, arguments);
|
|
1514
1514
|
}, i.wbg.__wbg_set_7df433eea03a5c14 = function(t, e, n) {
|
|
1515
|
-
|
|
1515
|
+
L(t)[e >>> 0] = D(n);
|
|
1516
1516
|
}, i.wbg.__wbg_set_index_021489b2916af13e = function(t, e, n) {
|
|
1517
|
-
|
|
1517
|
+
L(t)[e >>> 0] = n;
|
|
1518
1518
|
}, i.wbg.__wbg_set_index_04c4b93e64d08a52 = function(t, e, n) {
|
|
1519
|
-
|
|
1519
|
+
L(t)[e >>> 0] = n;
|
|
1520
1520
|
}, i.wbg.__wbg_set_index_42abe35f117e614e = function(t, e, n) {
|
|
1521
|
-
|
|
1521
|
+
L(t)[e >>> 0] = n >>> 0;
|
|
1522
1522
|
}, i.wbg.__wbg_stack_0ed75d68575b0f3c = function(t, e) {
|
|
1523
|
-
const n =
|
|
1524
|
-
|
|
1523
|
+
const n = L(e).stack, s = J(n, o.__wbindgen_export3, o.__wbindgen_export4), r = x;
|
|
1524
|
+
S().setInt32(t + 4, r, !0), S().setInt32(t + 0, s, !0);
|
|
1525
1525
|
}, i.wbg.__wbg_static_accessor_GLOBAL_769e6b65d6557335 = function() {
|
|
1526
1526
|
const t = typeof global > "u" ? null : global;
|
|
1527
|
-
return wt(t) ? 0 :
|
|
1527
|
+
return wt(t) ? 0 : B(t);
|
|
1528
1528
|
}, i.wbg.__wbg_static_accessor_GLOBAL_THIS_60cf02db4de8e1c1 = function() {
|
|
1529
1529
|
const t = typeof globalThis > "u" ? null : globalThis;
|
|
1530
|
-
return wt(t) ? 0 :
|
|
1530
|
+
return wt(t) ? 0 : B(t);
|
|
1531
1531
|
}, i.wbg.__wbg_static_accessor_SELF_08f5a74c69739274 = function() {
|
|
1532
1532
|
const t = typeof self > "u" ? null : self;
|
|
1533
|
-
return wt(t) ? 0 :
|
|
1533
|
+
return wt(t) ? 0 : B(t);
|
|
1534
1534
|
}, i.wbg.__wbg_static_accessor_WINDOW_a8924b26aa92d024 = function() {
|
|
1535
1535
|
const t = typeof window > "u" ? null : window;
|
|
1536
|
-
return wt(t) ? 0 :
|
|
1536
|
+
return wt(t) ? 0 : B(t);
|
|
1537
1537
|
}, i.wbg.__wbg_then_4f95312d68691235 = function(t, e) {
|
|
1538
|
-
const n =
|
|
1539
|
-
return
|
|
1538
|
+
const n = L(t).then(L(e));
|
|
1539
|
+
return B(n);
|
|
1540
1540
|
}, i.wbg.__wbg_warn_6e567d0d926ff881 = function(t) {
|
|
1541
|
-
console.warn(
|
|
1541
|
+
console.warn(L(t));
|
|
1542
1542
|
}, i.wbg.__wbindgen_cast_2241b6af4c4b2941 = function(t, e) {
|
|
1543
|
-
const n =
|
|
1544
|
-
return
|
|
1543
|
+
const n = tt(t, e);
|
|
1544
|
+
return B(n);
|
|
1545
1545
|
}, i.wbg.__wbindgen_cast_4625c577ab2ec9ee = function(t) {
|
|
1546
1546
|
const e = BigInt.asUintN(64, t);
|
|
1547
|
-
return
|
|
1548
|
-
}, i.wbg.
|
|
1549
|
-
const n = Rn(t, e, o.
|
|
1550
|
-
return
|
|
1547
|
+
return B(e);
|
|
1548
|
+
}, i.wbg.__wbindgen_cast_73cbb7b49382c492 = function(t, e) {
|
|
1549
|
+
const n = Rn(t, e, o.__wasm_bindgen_func_elem_1479, An);
|
|
1550
|
+
return B(n);
|
|
1551
1551
|
}, i.wbg.__wbindgen_cast_d6cd19b81560fd6e = function(t) {
|
|
1552
|
-
return
|
|
1552
|
+
return B(t);
|
|
1553
1553
|
}, i.wbg.__wbindgen_object_clone_ref = function(t) {
|
|
1554
|
-
const e =
|
|
1555
|
-
return
|
|
1554
|
+
const e = L(t);
|
|
1555
|
+
return B(e);
|
|
1556
1556
|
}, i.wbg.__wbindgen_object_drop_ref = function(t) {
|
|
1557
|
-
|
|
1557
|
+
D(t);
|
|
1558
1558
|
}, i;
|
|
1559
1559
|
}
|
|
1560
1560
|
function Bn(i, t) {
|
|
1561
|
-
return o = i.exports, dn.__wbindgen_wasm_module = t,
|
|
1561
|
+
return o = i.exports, dn.__wbindgen_wasm_module = t, pt = null, Ot = null, xt = null, Mt = null, Lt = null, o.__wbindgen_start(), o;
|
|
1562
1562
|
}
|
|
1563
1563
|
dn = async function(i) {
|
|
1564
1564
|
if (o !== void 0) return o;
|
|
1565
|
-
typeof i < "u" && (Object.getPrototypeOf(i) === Object.prototype ? { module_or_path: i } = i : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), typeof i > "u" && (i = new URL("/assets/ifc-lite_bg-
|
|
1565
|
+
typeof i < "u" && (Object.getPrototypeOf(i) === Object.prototype ? { module_or_path: i } = i : console.warn("using deprecated parameters for the initialization function; pass a single object instead")), typeof i > "u" && (i = new URL("/assets/ifc-lite_bg-B_eUD1Wy.wasm", import.meta.url));
|
|
1566
1566
|
const t = Ln();
|
|
1567
1567
|
(typeof i == "string" || typeof Request == "function" && i instanceof Request || typeof URL == "function" && i instanceof URL) && (i = fetch(i));
|
|
1568
1568
|
const { instance: e, module: n } = await Mn(await i, t);
|
|
1569
1569
|
return Bn(e, n);
|
|
1570
1570
|
};
|
|
1571
|
-
const
|
|
1571
|
+
const q = on("Geometry"), Pn = "IFC-Lite WASM cannot recover from a fatal runtime error within the same document lifetime. Reload the page or recreate the worker process before calling init() again.";
|
|
1572
1572
|
let ue = null;
|
|
1573
1573
|
Un = class {
|
|
1574
1574
|
ifcApi = null;
|
|
@@ -1584,9 +1584,9 @@ let __tla = Promise.all([
|
|
|
1584
1584
|
if (!this.initialized) {
|
|
1585
1585
|
if (ue) throw ue;
|
|
1586
1586
|
try {
|
|
1587
|
-
await dn(),
|
|
1587
|
+
await dn(), q.warn("Geometry processing: single-threaded mode (thread pool disabled for Vite compatibility)"), this.ifcApi = new Ee, this.applyMergeLayers(), this.initialized = !0, q.info("WASM geometry engine initialized");
|
|
1588
1588
|
} catch (t) {
|
|
1589
|
-
throw
|
|
1589
|
+
throw q.error("Failed to initialize WASM geometry engine", t, {
|
|
1590
1590
|
operation: "init"
|
|
1591
1591
|
}), this.isWasmRuntimeError(t) ? this.markFatalWasmRuntimeError() : this.reset(), t;
|
|
1592
1592
|
}
|
|
@@ -1599,11 +1599,11 @@ let __tla = Promise.all([
|
|
|
1599
1599
|
if (!this.ifcApi) throw new Error("IFC-Lite not initialized. Call init() first.");
|
|
1600
1600
|
try {
|
|
1601
1601
|
const e = this.ifcApi.parseMeshes(t);
|
|
1602
|
-
return
|
|
1602
|
+
return q.debug(`Parsed ${e.length} meshes`, {
|
|
1603
1603
|
operation: "parseMeshes"
|
|
1604
1604
|
}), e;
|
|
1605
1605
|
} catch (e) {
|
|
1606
|
-
throw
|
|
1606
|
+
throw q.error("Failed to parse IFC geometry", e, {
|
|
1607
1607
|
operation: "parseMeshes",
|
|
1608
1608
|
data: {
|
|
1609
1609
|
contentLength: t.length
|
|
@@ -1615,11 +1615,11 @@ let __tla = Promise.all([
|
|
|
1615
1615
|
if (!this.ifcApi) throw new Error("IFC-Lite not initialized. Call init() first.");
|
|
1616
1616
|
try {
|
|
1617
1617
|
const e = this.ifcApi.parseMeshesInstanced(t);
|
|
1618
|
-
return
|
|
1618
|
+
return q.debug(`Parsed ${e.length} instanced geometries`, {
|
|
1619
1619
|
operation: "parseMeshesInstanced"
|
|
1620
1620
|
}), e;
|
|
1621
1621
|
} catch (e) {
|
|
1622
|
-
throw
|
|
1622
|
+
throw q.error("Failed to parse instanced IFC geometry", e, {
|
|
1623
1623
|
operation: "parseMeshesInstanced",
|
|
1624
1624
|
data: {
|
|
1625
1625
|
contentLength: t.length
|
|
@@ -1632,7 +1632,7 @@ let __tla = Promise.all([
|
|
|
1632
1632
|
try {
|
|
1633
1633
|
return await this.ifcApi.parseMeshesAsync(t, e);
|
|
1634
1634
|
} catch (n) {
|
|
1635
|
-
throw
|
|
1635
|
+
throw q.error("Failed to parse IFC geometry (streaming)", n, {
|
|
1636
1636
|
operation: "parseMeshesAsync",
|
|
1637
1637
|
data: {
|
|
1638
1638
|
contentLength: t.length
|
|
@@ -1645,7 +1645,7 @@ let __tla = Promise.all([
|
|
|
1645
1645
|
try {
|
|
1646
1646
|
return await this.ifcApi.parseMeshesInstancedAsync(t, e);
|
|
1647
1647
|
} catch (n) {
|
|
1648
|
-
throw
|
|
1648
|
+
throw q.error("Failed to parse instanced IFC geometry (streaming)", n, {
|
|
1649
1649
|
operation: "parseMeshesInstancedAsync",
|
|
1650
1650
|
data: {
|
|
1651
1651
|
contentLength: t.length
|
|
@@ -1657,11 +1657,11 @@ let __tla = Promise.all([
|
|
|
1657
1657
|
if (!this.ifcApi) throw new Error("IFC-Lite not initialized. Call init() first.");
|
|
1658
1658
|
try {
|
|
1659
1659
|
const e = this.ifcApi.parseSymbolicRepresentations(t);
|
|
1660
|
-
return
|
|
1660
|
+
return q.debug(`Parsed ${e.totalCount} symbolic items (${e.polylineCount} polylines, ${e.circleCount} circles)`, {
|
|
1661
1661
|
operation: "parseSymbolicRepresentations"
|
|
1662
1662
|
}), e;
|
|
1663
1663
|
} catch (e) {
|
|
1664
|
-
throw
|
|
1664
|
+
throw q.error("Failed to parse symbolic representations", e, {
|
|
1665
1665
|
operation: "parseSymbolicRepresentations",
|
|
1666
1666
|
data: {
|
|
1667
1667
|
contentLength: t.length
|
|
@@ -1673,11 +1673,11 @@ let __tla = Promise.all([
|
|
|
1673
1673
|
if (!this.ifcApi) throw new Error("IFC-Lite not initialized. Call init() first.");
|
|
1674
1674
|
try {
|
|
1675
1675
|
const n = this.ifcApi.extractProfiles(t, e);
|
|
1676
|
-
return
|
|
1676
|
+
return q.debug(`Extracted ${n.length} profiles`, {
|
|
1677
1677
|
operation: "extractProfiles"
|
|
1678
1678
|
}), n;
|
|
1679
1679
|
} catch (n) {
|
|
1680
|
-
throw
|
|
1680
|
+
throw q.error("Failed to extract profiles", n, {
|
|
1681
1681
|
operation: "extractProfiles",
|
|
1682
1682
|
data: {
|
|
1683
1683
|
contentLength: t.length
|
|
@@ -1689,11 +1689,11 @@ let __tla = Promise.all([
|
|
|
1689
1689
|
if (!this.ifcApi) throw new Error("IFC-Lite not initialized. Call init() first.");
|
|
1690
1690
|
try {
|
|
1691
1691
|
const r = this.ifcApi.parseMeshesSubset(t, e, n, s);
|
|
1692
|
-
return
|
|
1692
|
+
return q.debug(`Parsed subset [${e}, ${n}) → ${r.length} meshes`, {
|
|
1693
1693
|
operation: "parseMeshesSubset"
|
|
1694
1694
|
}), r;
|
|
1695
1695
|
} catch (r) {
|
|
1696
|
-
throw
|
|
1696
|
+
throw q.error("Failed to parse IFC geometry subset", r, {
|
|
1697
1697
|
operation: "parseMeshesSubset",
|
|
1698
1698
|
data: {
|
|
1699
1699
|
contentLength: t.length,
|
|
@@ -1723,7 +1723,7 @@ let __tla = Promise.all([
|
|
|
1723
1723
|
if (!this.ifcApi) return;
|
|
1724
1724
|
const t = this.ifcApi;
|
|
1725
1725
|
if (typeof t.setMergeLayers != "function") {
|
|
1726
|
-
|
|
1726
|
+
q.warn("setMergeLayers not present on WASM API — flag tracked but suppression is a no-op until WASM is rebuilt", {
|
|
1727
1727
|
operation: "setMergeLayers",
|
|
1728
1728
|
data: {
|
|
1729
1729
|
requested: this.mergeLayers
|
|
@@ -1731,12 +1731,12 @@ let __tla = Promise.all([
|
|
|
1731
1731
|
});
|
|
1732
1732
|
return;
|
|
1733
1733
|
}
|
|
1734
|
-
t.setMergeLayers(this.mergeLayers),
|
|
1734
|
+
t.setMergeLayers(this.mergeLayers), q.debug(`mergeLayers=${this.mergeLayers}`, {
|
|
1735
1735
|
operation: "setMergeLayers"
|
|
1736
1736
|
});
|
|
1737
1737
|
}
|
|
1738
1738
|
};
|
|
1739
|
-
const
|
|
1739
|
+
const ot = on("MeshCollector");
|
|
1740
1740
|
ee = class {
|
|
1741
1741
|
ifcApi;
|
|
1742
1742
|
content;
|
|
@@ -1772,7 +1772,7 @@ let __tla = Promise.all([
|
|
|
1772
1772
|
try {
|
|
1773
1773
|
t = this.ifcApi.parseMeshes(this.content);
|
|
1774
1774
|
} catch (r) {
|
|
1775
|
-
throw
|
|
1775
|
+
throw ot.error("WASM mesh parsing failed", r, {
|
|
1776
1776
|
operation: "collectMeshes"
|
|
1777
1777
|
}), r;
|
|
1778
1778
|
}
|
|
@@ -1800,7 +1800,7 @@ let __tla = Promise.all([
|
|
|
1800
1800
|
color: l
|
|
1801
1801
|
}), a.free(), a = null;
|
|
1802
1802
|
} catch (c) {
|
|
1803
|
-
if (n++,
|
|
1803
|
+
if (n++, ot.caught(`Failed to process mesh ${r}`, c, {
|
|
1804
1804
|
operation: "collectMeshes"
|
|
1805
1805
|
}), a) try {
|
|
1806
1806
|
a.free();
|
|
@@ -1808,9 +1808,9 @@ let __tla = Promise.all([
|
|
|
1808
1808
|
}
|
|
1809
1809
|
}
|
|
1810
1810
|
const s = t.buildingRotation ?? void 0;
|
|
1811
|
-
return t.free(), n > 0 &&
|
|
1811
|
+
return t.free(), n > 0 && ot.warn(`Skipped ${n} meshes due to errors`, {
|
|
1812
1812
|
operation: "collectMeshes"
|
|
1813
|
-
}),
|
|
1813
|
+
}), ot.debug(`Collected ${e.length} meshes`, {
|
|
1814
1814
|
operation: "collectMeshes"
|
|
1815
1815
|
}), this._buildingRotation = s, e;
|
|
1816
1816
|
}
|
|
@@ -1846,22 +1846,22 @@ let __tla = Promise.all([
|
|
|
1846
1846
|
onBatch: (f, p)=>{
|
|
1847
1847
|
const g = [];
|
|
1848
1848
|
for (const u of f)try {
|
|
1849
|
-
const
|
|
1849
|
+
const h = u.expressId, b = a.get(h) ?? [
|
|
1850
1850
|
u.color[0],
|
|
1851
1851
|
u.color[1],
|
|
1852
1852
|
u.color[2],
|
|
1853
1853
|
u.color[3]
|
|
1854
1854
|
];
|
|
1855
1855
|
g.push({
|
|
1856
|
-
expressId:
|
|
1856
|
+
expressId: h,
|
|
1857
1857
|
ifcType: u.ifcType,
|
|
1858
1858
|
positions: u.positions,
|
|
1859
1859
|
normals: u.normals,
|
|
1860
1860
|
indices: u.indices,
|
|
1861
|
-
color:
|
|
1861
|
+
color: b
|
|
1862
1862
|
}), u.free(), c++;
|
|
1863
|
-
} catch (
|
|
1864
|
-
l++,
|
|
1863
|
+
} catch (h) {
|
|
1864
|
+
l++, ot.caught(`Failed to process mesh #${u.expressId}`, h, {
|
|
1865
1865
|
operation: "collectMeshesStreaming",
|
|
1866
1866
|
entityId: u.expressId
|
|
1867
1867
|
});
|
|
@@ -1872,9 +1872,9 @@ let __tla = Promise.all([
|
|
|
1872
1872
|
g.length > 0 && e.push(g), n && (n(), n = null);
|
|
1873
1873
|
},
|
|
1874
1874
|
onComplete: (f)=>{
|
|
1875
|
-
s = !0, f.buildingRotation !== void 0 && (this._buildingRotation = f.buildingRotation),
|
|
1875
|
+
s = !0, f.buildingRotation !== void 0 && (this._buildingRotation = f.buildingRotation), ot.debug(`Streaming complete: ${f.totalMeshes} meshes, ${f.totalVertices} vertices, ${f.totalTriangles} triangles`, {
|
|
1876
1876
|
operation: "collectMeshesStreaming"
|
|
1877
|
-
}), l > 0 &&
|
|
1877
|
+
}), l > 0 && ot.warn(`Skipped ${l} meshes due to errors`, {
|
|
1878
1878
|
operation: "collectMeshesStreaming"
|
|
1879
1879
|
});
|
|
1880
1880
|
const p = f.csgDiagnostics;
|
|
@@ -1888,7 +1888,7 @@ let __tla = Promise.all([
|
|
|
1888
1888
|
n && (n(), n = null);
|
|
1889
1889
|
}
|
|
1890
1890
|
}).catch((f)=>{
|
|
1891
|
-
r = f instanceof Error ? f : new Error(String(f)),
|
|
1891
|
+
r = f instanceof Error ? f : new Error(String(f)), ot.error("WASM streaming parsing failed", r, {
|
|
1892
1892
|
operation: "collectMeshesStreaming"
|
|
1893
1893
|
}), s = !0, n && (n(), n = null);
|
|
1894
1894
|
});
|
|
@@ -1903,7 +1903,7 @@ let __tla = Promise.all([
|
|
|
1903
1903
|
}
|
|
1904
1904
|
if (_ === 0 && this.content.length > 1e3) {
|
|
1905
1905
|
const f = (this.content.length / 1048576).toFixed(1);
|
|
1906
|
-
|
|
1906
|
+
ot.warn(`WASM streaming returned 0 batches for ${f}MB file - this may indicate insufficient memory for large file processing`, {
|
|
1907
1907
|
operation: "collectMeshesStreaming",
|
|
1908
1908
|
data: {
|
|
1909
1909
|
contentLength: this.content.length
|
|
@@ -1936,7 +1936,7 @@ let __tla = Promise.all([
|
|
|
1936
1936
|
s = !0, n && (n(), n = null);
|
|
1937
1937
|
}
|
|
1938
1938
|
}).catch((l)=>{
|
|
1939
|
-
r = l instanceof Error ? l : new Error(String(l)),
|
|
1939
|
+
r = l instanceof Error ? l : new Error(String(l)), ot.error("WASM instanced streaming parsing failed", r, {
|
|
1940
1940
|
operation: "collectInstancedGeometryStreaming"
|
|
1941
1941
|
}), s = !0, n && (n(), n = null);
|
|
1942
1942
|
});
|
|
@@ -1951,7 +1951,7 @@ let __tla = Promise.all([
|
|
|
1951
1951
|
}
|
|
1952
1952
|
if (c === 0 && this.content.length > 1e3) {
|
|
1953
1953
|
const l = (this.content.length / 1048576).toFixed(1);
|
|
1954
|
-
|
|
1954
|
+
ot.warn(`WASM instanced streaming returned 0 batches for ${l}MB file - this may indicate insufficient memory for large file processing`, {
|
|
1955
1955
|
operation: "collectInstancedGeometryStreaming",
|
|
1956
1956
|
data: {
|
|
1957
1957
|
contentLength: this.content.length
|
|
@@ -1964,10 +1964,10 @@ let __tla = Promise.all([
|
|
|
1964
1964
|
function _n() {
|
|
1965
1965
|
return typeof window < "u" && "__TAURI_INTERNALS__" in window;
|
|
1966
1966
|
}
|
|
1967
|
-
async function
|
|
1967
|
+
async function vn() {
|
|
1968
1968
|
if (_n()) {
|
|
1969
1969
|
const { NativeBridge: i } = await Ae(async ()=>{
|
|
1970
|
-
const { NativeBridge: t } = await import("./native-bridge-
|
|
1970
|
+
const { NativeBridge: t } = await import("./native-bridge-Q5ACp4QY.js").then(async (m)=>{
|
|
1971
1971
|
await m.__tla;
|
|
1972
1972
|
return m;
|
|
1973
1973
|
});
|
|
@@ -1978,7 +1978,7 @@ let __tla = Promise.all([
|
|
|
1978
1978
|
return new i;
|
|
1979
1979
|
} else {
|
|
1980
1980
|
const { WasmBridge: i } = await Ae(async ()=>{
|
|
1981
|
-
const { WasmBridge: t } = await import("./wasm-bridge-
|
|
1981
|
+
const { WasmBridge: t } = await import("./wasm-bridge-X-mWRA9Z.js");
|
|
1982
1982
|
return {
|
|
1983
1983
|
WasmBridge: t
|
|
1984
1984
|
};
|
|
@@ -1986,7 +1986,7 @@ let __tla = Promise.all([
|
|
|
1986
1986
|
return new i;
|
|
1987
1987
|
}
|
|
1988
1988
|
}
|
|
1989
|
-
class
|
|
1989
|
+
class Dn {
|
|
1990
1990
|
buildInterleavedBuffer(t) {
|
|
1991
1991
|
const e = t.positions.length / 3, n = new Float32Array(e * 6);
|
|
1992
1992
|
for(let s = 0; s < e; s++){
|
|
@@ -2051,8 +2051,8 @@ let __tla = Promise.all([
|
|
|
2051
2051
|
if (_ < 3) continue;
|
|
2052
2052
|
const f = d[0], p = d[1], g = d[2];
|
|
2053
2053
|
if (f < e && (e = f), p < n && (n = p), g < s && (s = g), f > r && (r = f), p > a && (a = p), g > c && (c = g), _ >= 6) {
|
|
2054
|
-
const u = d[_ - 3],
|
|
2055
|
-
u < e && (e = u),
|
|
2054
|
+
const u = d[_ - 3], h = d[_ - 2], b = d[_ - 1];
|
|
2055
|
+
u < e && (e = u), h < n && (n = h), b < s && (s = b), u > r && (r = u), h > a && (a = h), b > c && (c = b);
|
|
2056
2056
|
}
|
|
2057
2057
|
}
|
|
2058
2058
|
return {
|
|
@@ -2194,8 +2194,8 @@ let __tla = Promise.all([
|
|
|
2194
2194
|
for (const g of t){
|
|
2195
2195
|
const u = g.positions;
|
|
2196
2196
|
if (u.length >= 3) {
|
|
2197
|
-
const
|
|
2198
|
-
Math.max(
|
|
2197
|
+
const h = Math.abs(u[0]), b = Math.abs(u[1]), C = Math.abs(u[2]);
|
|
2198
|
+
Math.max(h, b, C) < _ ? l++ : d++;
|
|
2199
2199
|
}
|
|
2200
2200
|
}
|
|
2201
2201
|
const f = l + d, p = f > 0 && l / f > .5;
|
|
@@ -2279,7 +2279,7 @@ let __tla = Promise.all([
|
|
|
2279
2279
|
};
|
|
2280
2280
|
let l;
|
|
2281
2281
|
e >= 16 && s >= 16 ? l = Math.min(c, Math.floor(e / 2)) : e >= 12 && s >= 8 ? l = t > 512 ? 4 : 5 : e >= 10 && s >= 8 ? l = t > 512 ? 3 : 4 : e >= 8 && s >= 8 ? l = t > 512 ? 2 : 3 : l = Math.max(1, Math.min(2, Math.floor(e / 2)));
|
|
2282
|
-
const d = s * 1024, _ = Math.max(1024, d * .25), f = t * 2.5, p = Math.max(64, t * 1.5), g = d - _ - f, u = g > 0 ? Math.max(1, Math.floor(g / p)) : 1,
|
|
2282
|
+
const d = s * 1024, _ = Math.max(1024, d * .25), f = t * 2.5, p = Math.max(64, t * 1.5), g = d - _ - f, u = g > 0 ? Math.max(1, Math.floor(g / p)) : 1, h = [
|
|
2283
2283
|
{
|
|
2284
2284
|
value: l,
|
|
2285
2285
|
reason: "cores"
|
|
@@ -2297,25 +2297,25 @@ let __tla = Promise.all([
|
|
|
2297
2297
|
reason: "max"
|
|
2298
2298
|
}
|
|
2299
2299
|
];
|
|
2300
|
-
let
|
|
2301
|
-
for(let C = 1; C <
|
|
2302
|
-
return
|
|
2300
|
+
let b = h[0];
|
|
2301
|
+
for(let C = 1; C < h.length; C++)h[C].value < b.value && (b = h[C]);
|
|
2302
|
+
return b.value < a ? {
|
|
2303
2303
|
count: a,
|
|
2304
2304
|
reason: "min"
|
|
2305
2305
|
} : {
|
|
2306
|
-
count:
|
|
2307
|
-
reason:
|
|
2306
|
+
count: b.value,
|
|
2307
|
+
reason: b.reason
|
|
2308
2308
|
};
|
|
2309
2309
|
}
|
|
2310
2310
|
function Vn(i) {
|
|
2311
2311
|
return zn(i).count;
|
|
2312
2312
|
}
|
|
2313
|
-
const jn = 3e4, kn = 15e3, Wn = 15e3, Yn = 5e3, Hn = 60, Xn = 30, Jn = 30,
|
|
2313
|
+
const jn = 3e4, kn = 15e3, Wn = 15e3, Yn = 5e3, Hn = 60, Xn = 30, Jn = 30, Qn = 15;
|
|
2314
2314
|
Ns = function(i) {
|
|
2315
|
-
const t = i.desktopStableWasm === !0, e = Math.max(0, Math.floor(i.batchCount)), n = Math.max(0, i.fileSizeMB), s = e > 0 ? t ? Yn : Wn : t ? kn : jn, r = e > 0 ? t ?
|
|
2315
|
+
const t = i.desktopStableWasm === !0, e = Math.max(0, Math.floor(i.batchCount)), n = Math.max(0, i.fileSizeMB), s = e > 0 ? t ? Yn : Wn : t ? kn : jn, r = e > 0 ? t ? Qn : Jn : t ? Xn : Hn;
|
|
2316
2316
|
return Math.max(s, Math.round(s + n * r));
|
|
2317
2317
|
};
|
|
2318
|
-
function
|
|
2318
|
+
function qn(i, t) {
|
|
2319
2319
|
const e = [
|
|
2320
2320
|
i.length,
|
|
2321
2321
|
t.length
|
|
@@ -2332,7 +2332,7 @@ let __tla = Promise.all([
|
|
|
2332
2332
|
As = function(i) {
|
|
2333
2333
|
const t = new Map;
|
|
2334
2334
|
for (const e of i){
|
|
2335
|
-
const n =
|
|
2335
|
+
const n = qn(e.positions, e.indices), s = t.get(n);
|
|
2336
2336
|
s ? s.instances.push({
|
|
2337
2337
|
expressId: e.expressId,
|
|
2338
2338
|
color: e.color
|
|
@@ -2356,7 +2356,7 @@ let __tla = Promise.all([
|
|
|
2356
2356
|
const e = t.fileSizeMB ? t.fileSizeMB : i.length / (1024 * 1024);
|
|
2357
2357
|
return e < 10 ? 100 : e < 50 ? 200 : e < 100 ? 300 : e < 300 ? 500 : e < 500 ? 1500 : 3e3;
|
|
2358
2358
|
}
|
|
2359
|
-
function
|
|
2359
|
+
function Kn(i) {
|
|
2360
2360
|
const t = [];
|
|
2361
2361
|
try {
|
|
2362
2362
|
for(let e = 0; e < i.length; e++){
|
|
@@ -2384,7 +2384,7 @@ let __tla = Promise.all([
|
|
|
2384
2384
|
}
|
|
2385
2385
|
return t;
|
|
2386
2386
|
}
|
|
2387
|
-
function
|
|
2387
|
+
function Zn(i) {
|
|
2388
2388
|
const t = [];
|
|
2389
2389
|
try {
|
|
2390
2390
|
for(let e = 0; e < i.length; e++){
|
|
@@ -2426,7 +2426,7 @@ let __tla = Promise.all([
|
|
|
2426
2426
|
} else i.push(t);
|
|
2427
2427
|
e.queuedMeshes += t.meshes.length;
|
|
2428
2428
|
}
|
|
2429
|
-
async function*
|
|
2429
|
+
async function* Qe(i, t, e, n) {
|
|
2430
2430
|
e.reset(), yield {
|
|
2431
2431
|
type: "start",
|
|
2432
2432
|
totalEstimate: t
|
|
@@ -2463,7 +2463,7 @@ let __tla = Promise.all([
|
|
|
2463
2463
|
}
|
|
2464
2464
|
});
|
|
2465
2465
|
for(; !c || s.length > 0;){
|
|
2466
|
-
let u = 0,
|
|
2466
|
+
let u = 0, h = 0, b = performance.now();
|
|
2467
2467
|
for(; s.length > 0;){
|
|
2468
2468
|
const C = s.shift();
|
|
2469
2469
|
if (C.type === "colorUpdate") {
|
|
@@ -2474,14 +2474,14 @@ let __tla = Promise.all([
|
|
|
2474
2474
|
continue;
|
|
2475
2475
|
}
|
|
2476
2476
|
r.queuedMeshes = Math.max(0, r.queuedMeshes - C.meshes.length), e.processTrustedMeshesIncremental(C.meshes), _ += C.meshes.length;
|
|
2477
|
-
const
|
|
2477
|
+
const w = e.getCurrentCoordinateInfo();
|
|
2478
2478
|
yield {
|
|
2479
2479
|
type: "batch",
|
|
2480
2480
|
meshes: C.meshes,
|
|
2481
2481
|
totalSoFar: _,
|
|
2482
|
-
coordinateInfo:
|
|
2482
|
+
coordinateInfo: w || void 0,
|
|
2483
2483
|
nativeTelemetry: C.nativeTelemetry
|
|
2484
|
-
}, u += 1,
|
|
2484
|
+
}, u += 1, h += C.meshes.length, s.length > 0 && (u >= ns || h >= ss || performance.now() - b >= rs) && (await Xe(), u = 0, h = 0, b = performance.now());
|
|
2485
2485
|
}
|
|
2486
2486
|
if (l) throw l;
|
|
2487
2487
|
c || await new Promise((C)=>{
|
|
@@ -2507,166 +2507,166 @@ let __tla = Promise.all([
|
|
|
2507
2507
|
let r;
|
|
2508
2508
|
const a = i.buffer;
|
|
2509
2509
|
n && n.byteLength === i.byteLength ? r = n : typeof SharedArrayBuffer < "u" && a instanceof SharedArrayBuffer && i.byteOffset === 0 && i.byteLength === a.byteLength ? r = a : (r = new SharedArrayBuffer(i.byteLength), new Uint8Array(r).set(i));
|
|
2510
|
-
const c = s?.useSingleController === !0, l = ()=>c ? new Worker(new URL("/assets/geometry-controller.worker-
|
|
2510
|
+
const c = s?.useSingleController === !0, l = ()=>c ? new Worker(new URL("/assets/geometry-controller.worker-CEr00X3X.js", import.meta.url), {
|
|
2511
2511
|
type: "module"
|
|
2512
|
-
}) : new Worker(new URL("/assets/geometry.worker-
|
|
2512
|
+
}) : new Worker(new URL("/assets/geometry.worker-B4VPDkmL.js", import.meta.url), {
|
|
2513
2513
|
type: "module"
|
|
2514
|
-
}), d = ()=>new Worker(new URL("/assets/geometry.worker-
|
|
2514
|
+
}), d = ()=>new Worker(new URL("/assets/geometry.worker-B4VPDkmL.js", import.meta.url), {
|
|
2515
2515
|
type: "module"
|
|
2516
2516
|
}), _ = [];
|
|
2517
2517
|
let f = null;
|
|
2518
2518
|
const p = ()=>{
|
|
2519
2519
|
f && (f(), f = null);
|
|
2520
2520
|
};
|
|
2521
|
-
let g = null, u = 0,
|
|
2522
|
-
const
|
|
2523
|
-
let
|
|
2524
|
-
const F = [],
|
|
2525
|
-
|
|
2526
|
-
const
|
|
2527
|
-
if (
|
|
2528
|
-
console.log(`[stream] worker[${j}] WASM ready @ ${
|
|
2521
|
+
let g = null, u = 0, h = !1, b = null, C = null, w = 0, A = 0, M = !1, z = !1;
|
|
2522
|
+
const m = [];
|
|
2523
|
+
let N = !1, I = !1;
|
|
2524
|
+
const F = [], R = (P, j)=>{
|
|
2525
|
+
P.onmessage = (G)=>{
|
|
2526
|
+
const v = G.data;
|
|
2527
|
+
if (v.type === "ready") {
|
|
2528
|
+
console.log(`[stream] worker[${j}] WASM ready @ ${st()}ms`);
|
|
2529
2529
|
return;
|
|
2530
2530
|
}
|
|
2531
|
-
if (
|
|
2531
|
+
if (v.type === "memory") {
|
|
2532
2532
|
_.push({
|
|
2533
2533
|
type: "workerMemory",
|
|
2534
2534
|
workerIndex: j,
|
|
2535
|
-
wasmHeapBytes:
|
|
2536
|
-
meshBytes:
|
|
2535
|
+
wasmHeapBytes: v.wasmHeapBytes,
|
|
2536
|
+
meshBytes: v.meshBytes
|
|
2537
2537
|
}), p();
|
|
2538
2538
|
return;
|
|
2539
2539
|
}
|
|
2540
|
-
if (
|
|
2541
|
-
F[j] === void 0 && (F[j] =
|
|
2542
|
-
const Y =
|
|
2543
|
-
expressId:
|
|
2544
|
-
ifcType:
|
|
2545
|
-
positions:
|
|
2546
|
-
normals:
|
|
2547
|
-
indices:
|
|
2548
|
-
color:
|
|
2540
|
+
if (v.type === "batch") {
|
|
2541
|
+
F[j] === void 0 && (F[j] = st(), console.log(`[stream] worker[${j}] first batch @ ${st()}ms (${v.meshes?.length ?? 0} meshes)`));
|
|
2542
|
+
const Y = v.meshes.map(($)=>({
|
|
2543
|
+
expressId: $.expressId,
|
|
2544
|
+
ifcType: $.ifcType,
|
|
2545
|
+
positions: $.positions instanceof Float32Array ? $.positions : new Float32Array($.positions),
|
|
2546
|
+
normals: $.normals instanceof Float32Array ? $.normals : new Float32Array($.normals),
|
|
2547
|
+
indices: $.indices instanceof Uint32Array ? $.indices : new Uint32Array($.indices),
|
|
2548
|
+
color: $.color
|
|
2549
2549
|
}));
|
|
2550
2550
|
if (Y.length > 0) {
|
|
2551
|
-
|
|
2552
|
-
const
|
|
2551
|
+
A += Y.length, t.processMeshesIncremental(Y);
|
|
2552
|
+
const $ = t.getCurrentCoordinateInfo();
|
|
2553
2553
|
_.push({
|
|
2554
2554
|
type: "batch",
|
|
2555
2555
|
meshes: Y,
|
|
2556
|
-
totalSoFar:
|
|
2557
|
-
coordinateInfo:
|
|
2556
|
+
totalSoFar: A,
|
|
2557
|
+
coordinateInfo: $ || void 0
|
|
2558
2558
|
}), p();
|
|
2559
2559
|
}
|
|
2560
2560
|
return;
|
|
2561
2561
|
}
|
|
2562
|
-
if (
|
|
2563
|
-
|
|
2562
|
+
if (v.type === "complete") {
|
|
2563
|
+
w++, P.terminate(), p();
|
|
2564
2564
|
return;
|
|
2565
2565
|
}
|
|
2566
|
-
if (
|
|
2567
|
-
C = new Error(`Geometry worker error: ${
|
|
2566
|
+
if (v.type === "error") {
|
|
2567
|
+
C = new Error(`Geometry worker error: ${v.message}`), w++, P.terminate(), p();
|
|
2568
2568
|
return;
|
|
2569
2569
|
}
|
|
2570
|
-
},
|
|
2571
|
-
C = new Error(`Geometry worker failed: ${
|
|
2570
|
+
}, P.onerror = (G)=>{
|
|
2571
|
+
C = new Error(`Geometry worker failed: ${G.message}`), w++, P.terminate(), p();
|
|
2572
2572
|
};
|
|
2573
|
-
}, E = typeof navigator < "u" ? navigator.hardwareConcurrency ?? 2 : 2,
|
|
2574
|
-
fileSizeMB:
|
|
2573
|
+
}, E = typeof navigator < "u" ? navigator.hardwareConcurrency ?? 2 : 2, y = typeof navigator < "u" ? navigator.deviceMemory ?? 8 : 8, T = i.byteLength / (1024 * 1024), O = Math.max(1, Math.ceil(T * 100)), V = c ? 1 : Vn({
|
|
2574
|
+
fileSizeMB: T,
|
|
2575
2575
|
cores: E,
|
|
2576
|
-
deviceMemoryGB:
|
|
2577
|
-
totalJobs:
|
|
2578
|
-
}),
|
|
2579
|
-
for(let
|
|
2576
|
+
deviceMemoryGB: y,
|
|
2577
|
+
totalJobs: O
|
|
2578
|
+
}), U = [];
|
|
2579
|
+
for(let P = 0; P < V; P++){
|
|
2580
2580
|
const j = l();
|
|
2581
|
-
|
|
2582
|
-
const
|
|
2581
|
+
U.push(j), R(j, P);
|
|
2582
|
+
const G = c ? s?.wasmUrls?.wasmThreaded : s?.wasmUrls?.wasm;
|
|
2583
2583
|
j.postMessage({
|
|
2584
2584
|
type: "init",
|
|
2585
|
-
|
|
2586
|
-
wasmUrl:
|
|
2585
|
+
...G ? {
|
|
2586
|
+
wasmUrl: G
|
|
2587
2587
|
} : {}
|
|
2588
2588
|
}), j.postMessage({
|
|
2589
2589
|
type: "set-merge-layers",
|
|
2590
2590
|
enabled: s?.mergeLayers === !0
|
|
2591
2591
|
});
|
|
2592
2592
|
}
|
|
2593
|
-
const
|
|
2594
|
-
if (!
|
|
2595
|
-
|
|
2596
|
-
for (const
|
|
2597
|
-
|
|
2593
|
+
const Q = ()=>{
|
|
2594
|
+
if (!M) {
|
|
2595
|
+
M = !0;
|
|
2596
|
+
for (const P of U)try {
|
|
2597
|
+
P.postMessage({
|
|
2598
2598
|
type: "stream-end"
|
|
2599
2599
|
});
|
|
2600
2600
|
} catch {}
|
|
2601
2601
|
}
|
|
2602
|
-
},
|
|
2603
|
-
if (
|
|
2604
|
-
|
|
2605
|
-
const
|
|
2602
|
+
}, H = ()=>{
|
|
2603
|
+
if (z || !g) return;
|
|
2604
|
+
z = !0;
|
|
2605
|
+
const P = e != null, j = P ? e.x : g.rtcOffset[0], G = P ? e.y : g.rtcOffset[1], v = P ? e.z : g.rtcOffset[2], Y = P ? !0 : g.needsShift;
|
|
2606
2606
|
_.push({
|
|
2607
2607
|
type: "rtcOffset",
|
|
2608
2608
|
rtcOffset: {
|
|
2609
2609
|
x: j,
|
|
2610
|
-
y:
|
|
2611
|
-
z:
|
|
2610
|
+
y: G,
|
|
2611
|
+
z: v
|
|
2612
2612
|
},
|
|
2613
2613
|
hasRtc: Y
|
|
2614
2614
|
}), p();
|
|
2615
|
-
const
|
|
2616
|
-
for (const
|
|
2615
|
+
const $ = new Uint32Array(0), rt = new Uint8Array(0);
|
|
2616
|
+
for (const ut of U)ut.postMessage({
|
|
2617
2617
|
type: "stream-start",
|
|
2618
2618
|
sharedBuffer: r,
|
|
2619
2619
|
unitScale: g.unitScale,
|
|
2620
2620
|
rtcX: j,
|
|
2621
|
-
rtcY:
|
|
2622
|
-
rtcZ:
|
|
2621
|
+
rtcY: G,
|
|
2622
|
+
rtcZ: v,
|
|
2623
2623
|
needsShift: Y,
|
|
2624
|
-
voidKeys:
|
|
2625
|
-
voidCounts:
|
|
2626
|
-
voidValues:
|
|
2627
|
-
styleIds:
|
|
2628
|
-
styleColors:
|
|
2624
|
+
voidKeys: $,
|
|
2625
|
+
voidCounts: $,
|
|
2626
|
+
voidValues: $,
|
|
2627
|
+
styleIds: $,
|
|
2628
|
+
styleColors: rt
|
|
2629
2629
|
});
|
|
2630
2630
|
};
|
|
2631
|
-
function k(
|
|
2632
|
-
if (
|
|
2633
|
-
const j = Math.floor(
|
|
2631
|
+
function k(P) {
|
|
2632
|
+
if (U.length === 0 || P.length === 0) return;
|
|
2633
|
+
const j = Math.floor(P.length / 3);
|
|
2634
2634
|
if (j === 0) return;
|
|
2635
|
-
const
|
|
2635
|
+
const G = Math.ceil(j / U.length);
|
|
2636
2636
|
try {
|
|
2637
|
-
for(let
|
|
2638
|
-
const Y =
|
|
2639
|
-
if (Y >=
|
|
2640
|
-
const
|
|
2641
|
-
|
|
2637
|
+
for(let v = 0; v < U.length; v++){
|
|
2638
|
+
const Y = v * G * 3, $ = Math.min(Y + G * 3, P.length);
|
|
2639
|
+
if (Y >= $) continue;
|
|
2640
|
+
const rt = P.slice(Y, $);
|
|
2641
|
+
U[v].postMessage({
|
|
2642
2642
|
type: "stream-chunk",
|
|
2643
|
-
jobsFlat:
|
|
2643
|
+
jobsFlat: rt
|
|
2644
2644
|
}, [
|
|
2645
|
-
|
|
2645
|
+
rt.buffer
|
|
2646
2646
|
]);
|
|
2647
2647
|
}
|
|
2648
|
-
} catch (
|
|
2649
|
-
C = new Error(`Failed to dispatch jobs chunk: ${
|
|
2648
|
+
} catch (v) {
|
|
2649
|
+
C = new Error(`Failed to dispatch jobs chunk: ${v instanceof Error ? v.message : String(v)}`), p();
|
|
2650
2650
|
}
|
|
2651
2651
|
}
|
|
2652
|
-
const W = (
|
|
2653
|
-
if (!
|
|
2654
|
-
|
|
2652
|
+
const W = (P)=>{
|
|
2653
|
+
if (!z || !N || !I) {
|
|
2654
|
+
m.push(P);
|
|
2655
2655
|
return;
|
|
2656
2656
|
}
|
|
2657
|
-
k(
|
|
2658
|
-
},
|
|
2659
|
-
if (!(!
|
|
2660
|
-
},
|
|
2661
|
-
console.log(`[stream] processParallel start, fileSizeMB=${
|
|
2662
|
-
const
|
|
2663
|
-
s?.wasmUrls?.wasm &&
|
|
2657
|
+
k(P);
|
|
2658
|
+
}, X = ()=>{
|
|
2659
|
+
if (!(!z || !N || !I)) for(; m.length > 0;)k(m.shift());
|
|
2660
|
+
}, ft = performance.now(), st = ()=>Math.round(performance.now() - ft);
|
|
2661
|
+
console.log(`[stream] processParallel start, fileSizeMB=${T.toFixed(1)} workerCount=${V}`);
|
|
2662
|
+
const at = d();
|
|
2663
|
+
s?.wasmUrls?.wasm && at.postMessage({
|
|
2664
2664
|
type: "init",
|
|
2665
2665
|
wasmUrl: s.wasmUrls.wasm
|
|
2666
2666
|
});
|
|
2667
|
-
let
|
|
2668
|
-
|
|
2669
|
-
const j =
|
|
2667
|
+
let It = 0, Zt = 0, St = -1;
|
|
2668
|
+
at.onmessage = (P)=>{
|
|
2669
|
+
const j = P.data;
|
|
2670
2670
|
if (j.type === "prepass-progress") {
|
|
2671
2671
|
_.push({
|
|
2672
2672
|
type: "progress",
|
|
@@ -2675,91 +2675,91 @@ let __tla = Promise.all([
|
|
|
2675
2675
|
return;
|
|
2676
2676
|
}
|
|
2677
2677
|
if (j.type === "prepass-stream") {
|
|
2678
|
-
const
|
|
2679
|
-
if (
|
|
2680
|
-
unitScale:
|
|
2681
|
-
rtcOffset:
|
|
2682
|
-
needsShift:
|
|
2683
|
-
buildingRotation:
|
|
2684
|
-
}, console.log(`[stream] meta @ ${
|
|
2685
|
-
else if (
|
|
2686
|
-
const
|
|
2687
|
-
|
|
2688
|
-
} else if (
|
|
2689
|
-
const
|
|
2690
|
-
console.log(`[stream] styles @ ${
|
|
2691
|
-
for (const ae of
|
|
2692
|
-
const
|
|
2678
|
+
const G = j.event;
|
|
2679
|
+
if (G.type === "meta") g = {
|
|
2680
|
+
unitScale: G.unitScale,
|
|
2681
|
+
rtcOffset: G.rtcOffset,
|
|
2682
|
+
needsShift: G.needsShift,
|
|
2683
|
+
buildingRotation: G.buildingRotation ?? null
|
|
2684
|
+
}, console.log(`[stream] meta @ ${st()}ms unitScale=${g.unitScale} rtc=[${g.rtcOffset[0].toFixed(0)},${g.rtcOffset[1].toFixed(0)},${g.rtcOffset[2].toFixed(0)}]`), H(), p();
|
|
2685
|
+
else if (G.type === "jobs") {
|
|
2686
|
+
const v = G.jobs, Y = Math.floor(v.length / 3);
|
|
2687
|
+
It++, Zt += Y, St < 0 && (St = st(), console.log(`[stream] first jobs chunk @ ${St}ms (${Y} jobs)`)), (It % 10 === 1 || Y < 1e3) && console.log(`[stream] chunk #${It} @ ${st()}ms (+${Y} jobs, total ${Zt})`), W(v);
|
|
2688
|
+
} else if (G.type === "styles") {
|
|
2689
|
+
const v = G.styleIds, Y = G.styleColors, $ = G.voidKeys, rt = G.voidCounts, ut = G.voidValues;
|
|
2690
|
+
console.log(`[stream] styles @ ${st()}ms (${v.length} styled, ${$.length} void hosts), draining ${m.length} queued chunks`);
|
|
2691
|
+
for (const ae of U)try {
|
|
2692
|
+
const dt = v.slice(), yt = Y.slice(), mt = $.slice(), bt = rt.slice(), te = ut.slice();
|
|
2693
2693
|
ae.postMessage({
|
|
2694
2694
|
type: "set-styles",
|
|
2695
|
-
styleIds:
|
|
2696
|
-
styleColors:
|
|
2697
|
-
voidKeys:
|
|
2698
|
-
voidCounts:
|
|
2695
|
+
styleIds: dt,
|
|
2696
|
+
styleColors: yt,
|
|
2697
|
+
voidKeys: mt,
|
|
2698
|
+
voidCounts: bt,
|
|
2699
2699
|
voidValues: te
|
|
2700
2700
|
}, [
|
|
2701
|
-
|
|
2702
|
-
It.buffer,
|
|
2701
|
+
dt.buffer,
|
|
2703
2702
|
yt.buffer,
|
|
2704
2703
|
mt.buffer,
|
|
2704
|
+
bt.buffer,
|
|
2705
2705
|
te.buffer
|
|
2706
2706
|
]);
|
|
2707
|
-
} catch (
|
|
2708
|
-
console.warn("[stream] set-styles dispatch failed:",
|
|
2707
|
+
} catch (dt) {
|
|
2708
|
+
console.warn("[stream] set-styles dispatch failed:", dt);
|
|
2709
2709
|
}
|
|
2710
|
-
|
|
2711
|
-
} else if (
|
|
2712
|
-
const
|
|
2713
|
-
if (console.log(`[stream] entity-index @ ${
|
|
2714
|
-
const
|
|
2715
|
-
new Uint32Array(
|
|
2716
|
-
for (const
|
|
2717
|
-
|
|
2710
|
+
N = !0, X();
|
|
2711
|
+
} else if (G.type === "entity-index") {
|
|
2712
|
+
const v = G.ids, Y = G.starts, $ = G.lengths;
|
|
2713
|
+
if (console.log(`[stream] entity-index @ ${st()}ms (${v.length} entries)`), typeof SharedArrayBuffer < "u") {
|
|
2714
|
+
const rt = v.byteLength, ut = Y.byteLength, ae = $.byteLength, dt = new SharedArrayBuffer(rt), yt = new SharedArrayBuffer(ut), mt = new SharedArrayBuffer(ae);
|
|
2715
|
+
new Uint32Array(dt).set(v), new Uint32Array(yt).set(Y), new Uint32Array(mt).set($);
|
|
2716
|
+
for (const bt of U)try {
|
|
2717
|
+
bt.postMessage({
|
|
2718
2718
|
type: "set-entity-index",
|
|
2719
|
-
ids: new Uint32Array(
|
|
2720
|
-
starts: new Uint32Array(
|
|
2721
|
-
lengths: new Uint32Array(
|
|
2719
|
+
ids: new Uint32Array(dt),
|
|
2720
|
+
starts: new Uint32Array(yt),
|
|
2721
|
+
lengths: new Uint32Array(mt)
|
|
2722
2722
|
});
|
|
2723
2723
|
} catch (te) {
|
|
2724
2724
|
console.warn("[stream] set-entity-index dispatch failed:", te);
|
|
2725
2725
|
}
|
|
2726
2726
|
if (s?.onEntityIndex) try {
|
|
2727
|
-
s.onEntityIndex(new Uint32Array(
|
|
2728
|
-
} catch (
|
|
2729
|
-
console.warn("[stream] onEntityIndex callback failed:",
|
|
2727
|
+
s.onEntityIndex(new Uint32Array(dt), new Uint32Array(yt), new Uint32Array(mt));
|
|
2728
|
+
} catch (bt) {
|
|
2729
|
+
console.warn("[stream] onEntityIndex callback failed:", bt);
|
|
2730
2730
|
}
|
|
2731
2731
|
} else {
|
|
2732
|
-
for (const
|
|
2733
|
-
|
|
2732
|
+
for (const rt of U)try {
|
|
2733
|
+
rt.postMessage({
|
|
2734
2734
|
type: "set-entity-index",
|
|
2735
|
-
ids:
|
|
2735
|
+
ids: v.slice(),
|
|
2736
2736
|
starts: Y.slice(),
|
|
2737
|
-
lengths:
|
|
2737
|
+
lengths: $.slice()
|
|
2738
2738
|
});
|
|
2739
|
-
} catch (
|
|
2740
|
-
console.warn("[stream] set-entity-index dispatch failed:",
|
|
2739
|
+
} catch (ut) {
|
|
2740
|
+
console.warn("[stream] set-entity-index dispatch failed:", ut);
|
|
2741
2741
|
}
|
|
2742
2742
|
if (s?.onEntityIndex) try {
|
|
2743
|
-
s.onEntityIndex(
|
|
2744
|
-
} catch (
|
|
2745
|
-
console.warn("[stream] onEntityIndex callback failed:",
|
|
2743
|
+
s.onEntityIndex(v.slice(), Y.slice(), $.slice());
|
|
2744
|
+
} catch (rt) {
|
|
2745
|
+
console.warn("[stream] onEntityIndex callback failed:", rt);
|
|
2746
2746
|
}
|
|
2747
2747
|
}
|
|
2748
|
-
|
|
2749
|
-
} else
|
|
2748
|
+
I = !0, X();
|
|
2749
|
+
} else G.type === "complete" && (u = G.totalJobs, console.log(`[stream] prepass complete @ ${st()}ms totalJobs=${u} chunks=${It}`), Ne || (Ne = !0, oe()));
|
|
2750
2750
|
return;
|
|
2751
2751
|
}
|
|
2752
2752
|
if (j.type === "error") {
|
|
2753
|
-
|
|
2753
|
+
b = new Error(j.message), h = !0, at.terminate(), p();
|
|
2754
2754
|
return;
|
|
2755
2755
|
}
|
|
2756
|
-
},
|
|
2757
|
-
|
|
2756
|
+
}, at.onerror = (P)=>{
|
|
2757
|
+
b = new Error(`Pre-pass worker failed: ${P.message}`), h = !0, at.terminate(), p();
|
|
2758
2758
|
};
|
|
2759
2759
|
const oe = ()=>{
|
|
2760
|
-
|
|
2760
|
+
h = !0, z && Q(), at.terminate(), p();
|
|
2761
2761
|
};
|
|
2762
|
-
|
|
2762
|
+
at.postMessage({
|
|
2763
2763
|
type: "prepass-streaming",
|
|
2764
2764
|
sharedBuffer: r,
|
|
2765
2765
|
chunkSize: 5e4
|
|
@@ -2768,22 +2768,22 @@ let __tla = Promise.all([
|
|
|
2768
2768
|
for(;;){
|
|
2769
2769
|
for(; _.length > 0;)yield _.shift();
|
|
2770
2770
|
if (C) {
|
|
2771
|
-
for (const
|
|
2772
|
-
|
|
2771
|
+
for (const P of U)try {
|
|
2772
|
+
P.terminate();
|
|
2773
2773
|
} catch {}
|
|
2774
2774
|
try {
|
|
2775
|
-
|
|
2775
|
+
at.terminate();
|
|
2776
2776
|
} catch {}
|
|
2777
2777
|
throw C;
|
|
2778
2778
|
}
|
|
2779
|
-
if (
|
|
2780
|
-
for (const
|
|
2781
|
-
|
|
2779
|
+
if (b) {
|
|
2780
|
+
for (const P of U)try {
|
|
2781
|
+
P.terminate();
|
|
2782
2782
|
} catch {}
|
|
2783
|
-
throw
|
|
2783
|
+
throw b;
|
|
2784
2784
|
}
|
|
2785
|
-
if (
|
|
2786
|
-
for (const j of
|
|
2785
|
+
if (h && !z && u === 0) {
|
|
2786
|
+
for (const j of U)try {
|
|
2787
2787
|
j.terminate();
|
|
2788
2788
|
} catch {}
|
|
2789
2789
|
yield {
|
|
@@ -2793,20 +2793,20 @@ let __tla = Promise.all([
|
|
|
2793
2793
|
};
|
|
2794
2794
|
return;
|
|
2795
2795
|
}
|
|
2796
|
-
if (
|
|
2797
|
-
await new Promise((
|
|
2798
|
-
f =
|
|
2796
|
+
if (h && z && w >= U.length && _.length === 0) break;
|
|
2797
|
+
await new Promise((P)=>{
|
|
2798
|
+
f = P;
|
|
2799
2799
|
});
|
|
2800
2800
|
}
|
|
2801
2801
|
const pn = t.getFinalCoordinateInfo();
|
|
2802
2802
|
yield {
|
|
2803
2803
|
type: "complete",
|
|
2804
|
-
totalMeshes:
|
|
2804
|
+
totalMeshes: A,
|
|
2805
2805
|
coordinateInfo: pn
|
|
2806
2806
|
};
|
|
2807
2807
|
}
|
|
2808
2808
|
let At = null;
|
|
2809
|
-
function
|
|
2809
|
+
function qe(i) {
|
|
2810
2810
|
if (At) throw new Error(`GeometryProcessor ${i} cannot start while ${At} is still running. Wait for the active stream to finish, or cancel it before starting another geometry operation.`);
|
|
2811
2811
|
return At = i, ()=>{
|
|
2812
2812
|
At === i && (At = null);
|
|
@@ -2822,10 +2822,10 @@ let __tla = Promise.all([
|
|
|
2822
2822
|
lastNativeStats = null;
|
|
2823
2823
|
mergeLayers;
|
|
2824
2824
|
constructor(t = {}){
|
|
2825
|
-
this.bufferBuilder = new
|
|
2825
|
+
this.bufferBuilder = new Dn, this.coordinateHandler = new Gn, this.isNative = t.preferNative !== !1 && _n(), this.mergeLayers = t.mergeLayers === !0, t.quality, this.isNative || (this.bridge = new Un, this.bridge.setMergeLayers(this.mergeLayers));
|
|
2826
2826
|
}
|
|
2827
2827
|
async init() {
|
|
2828
|
-
this.isNative ? (this.platformBridge = await
|
|
2828
|
+
this.isNative ? (this.platformBridge = await vn(), await this.platformBridge.init(), console.log("[GeometryProcessor] Native bridge initialized")) : this.bridge && await this.bridge.init();
|
|
2829
2829
|
}
|
|
2830
2830
|
async process(t, e) {
|
|
2831
2831
|
let n;
|
|
@@ -2866,7 +2866,7 @@ let __tla = Promise.all([
|
|
|
2866
2866
|
}
|
|
2867
2867
|
async collectMeshesMainThread(t, e) {
|
|
2868
2868
|
if (!this.bridge) throw new Error("WASM bridge not initialized");
|
|
2869
|
-
const n =
|
|
2869
|
+
const n = Z(t), s = new ee(this.bridge.getApi(), n, {
|
|
2870
2870
|
mergeLayers: this.mergeLayers
|
|
2871
2871
|
}), r = s.collectMeshes(), a = s.getBuildingRotation();
|
|
2872
2872
|
return {
|
|
@@ -2901,19 +2901,19 @@ let __tla = Promise.all([
|
|
|
2901
2901
|
const a = pe(t, e), l = Math.max(a, Math.ceil(s.totalJobs / 30));
|
|
2902
2902
|
let d = 0;
|
|
2903
2903
|
for(let f = 0; f < s.totalJobs; f += l){
|
|
2904
|
-
const p = Math.min(f + l, s.totalJobs), g = s.jobs.slice(f * 3, p * 3), u = n.processGeometryBatch(t, g, s.unitScale, s.rtcOffset?.[0] ?? 0, s.rtcOffset?.[1] ?? 0, s.rtcOffset?.[2] ?? 0, s.needsShift, s.voidKeys, s.voidCounts, s.voidValues, s.styleIds, s.styleColors),
|
|
2905
|
-
if (
|
|
2906
|
-
await new Promise((
|
|
2904
|
+
const p = Math.min(f + l, s.totalJobs), g = s.jobs.slice(f * 3, p * 3), u = n.processGeometryBatch(t, g, s.unitScale, s.rtcOffset?.[0] ?? 0, s.rtcOffset?.[1] ?? 0, s.rtcOffset?.[2] ?? 0, s.needsShift, s.voidKeys, s.voidCounts, s.voidValues, s.styleIds, s.styleColors), h = Kn(u);
|
|
2905
|
+
if (h.length === 0) {
|
|
2906
|
+
await new Promise((w)=>setTimeout(w, 0));
|
|
2907
2907
|
continue;
|
|
2908
2908
|
}
|
|
2909
|
-
this.coordinateHandler.processMeshesIncremental(
|
|
2910
|
-
const
|
|
2909
|
+
this.coordinateHandler.processMeshesIncremental(h), d += h.length;
|
|
2910
|
+
const b = this.coordinateHandler.getCurrentCoordinateInfo(), C = b ? Ct(b, r) : null;
|
|
2911
2911
|
yield {
|
|
2912
2912
|
type: "batch",
|
|
2913
|
-
meshes:
|
|
2913
|
+
meshes: h,
|
|
2914
2914
|
totalSoFar: d,
|
|
2915
2915
|
coordinateInfo: C || void 0
|
|
2916
|
-
}, await new Promise((
|
|
2916
|
+
}, await new Promise((w)=>setTimeout(w, 0));
|
|
2917
2917
|
}
|
|
2918
2918
|
n.clearPrePassCache?.();
|
|
2919
2919
|
const _ = Ct(this.coordinateHandler.getFinalCoordinateInfo(), r);
|
|
@@ -2941,41 +2941,41 @@ let __tla = Promise.all([
|
|
|
2941
2941
|
let a = 0, c = 0;
|
|
2942
2942
|
const d = Math.max(e, Math.ceil(s.totalJobs / 30));
|
|
2943
2943
|
for(let f = 0; f < s.totalJobs; f += d){
|
|
2944
|
-
const p = Math.min(f + d, s.totalJobs), g = s.jobs.slice(f * 3, p * 3), u = n.processInstancedGeometryBatch(t, g, s.unitScale, s.rtcOffset?.[0] ?? 0, s.rtcOffset?.[1] ?? 0, s.rtcOffset?.[2] ?? 0, s.needsShift, s.styleIds, s.styleColors),
|
|
2945
|
-
if (
|
|
2946
|
-
await new Promise((
|
|
2944
|
+
const p = Math.min(f + d, s.totalJobs), g = s.jobs.slice(f * 3, p * 3), u = n.processInstancedGeometryBatch(t, g, s.unitScale, s.rtcOffset?.[0] ?? 0, s.rtcOffset?.[1] ?? 0, s.rtcOffset?.[2] ?? 0, s.needsShift, s.styleIds, s.styleColors), h = Zn(u);
|
|
2945
|
+
if (h.length === 0) {
|
|
2946
|
+
await new Promise((A)=>setTimeout(A, 0));
|
|
2947
2947
|
continue;
|
|
2948
2948
|
}
|
|
2949
|
-
const
|
|
2950
|
-
for (const
|
|
2951
|
-
const
|
|
2952
|
-
if (
|
|
2953
|
-
const
|
|
2954
|
-
if (
|
|
2955
|
-
const
|
|
2956
|
-
|
|
2957
|
-
expressId:
|
|
2958
|
-
positions:
|
|
2959
|
-
normals:
|
|
2960
|
-
indices:
|
|
2949
|
+
const b = [];
|
|
2950
|
+
for (const A of h){
|
|
2951
|
+
const M = A.positions, z = A.normals, m = A.indices;
|
|
2952
|
+
if (A.instance_count > 0) {
|
|
2953
|
+
const N = A.get_instance(0);
|
|
2954
|
+
if (N) {
|
|
2955
|
+
const I = N.color;
|
|
2956
|
+
b.push({
|
|
2957
|
+
expressId: N.expressId,
|
|
2958
|
+
positions: M,
|
|
2959
|
+
normals: z,
|
|
2960
|
+
indices: m,
|
|
2961
2961
|
color: [
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
|
|
2962
|
+
I[0],
|
|
2963
|
+
I[1],
|
|
2964
|
+
I[2],
|
|
2965
|
+
I[3]
|
|
2966
2966
|
]
|
|
2967
2967
|
});
|
|
2968
2968
|
}
|
|
2969
2969
|
}
|
|
2970
2970
|
}
|
|
2971
|
-
|
|
2972
|
-
const C = this.coordinateHandler.getCurrentCoordinateInfo(),
|
|
2971
|
+
b.length > 0 && this.coordinateHandler.processMeshesIncremental(b), a += h.length, c += h.reduce((A, M)=>A + M.instance_count, 0);
|
|
2972
|
+
const C = this.coordinateHandler.getCurrentCoordinateInfo(), w = C ? Ct(C, r) : null;
|
|
2973
2973
|
yield {
|
|
2974
2974
|
type: "batch",
|
|
2975
|
-
geometries:
|
|
2975
|
+
geometries: h,
|
|
2976
2976
|
totalSoFar: a,
|
|
2977
|
-
coordinateInfo:
|
|
2978
|
-
}, await new Promise((
|
|
2977
|
+
coordinateInfo: w || void 0
|
|
2978
|
+
}, await new Promise((A)=>setTimeout(A, 0));
|
|
2979
2979
|
}
|
|
2980
2980
|
n.clearPrePassCache?.();
|
|
2981
2981
|
const _ = Ct(this.coordinateHandler.getFinalCoordinateInfo(), r);
|
|
@@ -2987,7 +2987,7 @@ let __tla = Promise.all([
|
|
|
2987
2987
|
};
|
|
2988
2988
|
}
|
|
2989
2989
|
async *processStreaming(t, e, n = 25, s) {
|
|
2990
|
-
const r = this.isNative ? null :
|
|
2990
|
+
const r = this.isNative ? null : qe("processStreaming");
|
|
2991
2991
|
try {
|
|
2992
2992
|
yield* this.processStreamingUnlocked(t, e, n, s);
|
|
2993
2993
|
} finally{
|
|
@@ -3039,12 +3039,12 @@ let __tla = Promise.all([
|
|
|
3039
3039
|
continue;
|
|
3040
3040
|
}
|
|
3041
3041
|
this.coordinateHandler.processMeshesIncremental(u.meshes), _ += u.meshes.length;
|
|
3042
|
-
const
|
|
3042
|
+
const h = this.coordinateHandler.getCurrentCoordinateInfo();
|
|
3043
3043
|
yield {
|
|
3044
3044
|
type: "batch",
|
|
3045
3045
|
meshes: u.meshes,
|
|
3046
3046
|
totalSoFar: _,
|
|
3047
|
-
coordinateInfo:
|
|
3047
|
+
coordinateInfo: h || void 0,
|
|
3048
3048
|
nativeTelemetry: u.nativeTelemetry
|
|
3049
3049
|
};
|
|
3050
3050
|
}
|
|
@@ -3066,7 +3066,7 @@ let __tla = Promise.all([
|
|
|
3066
3066
|
yield* this.processStreamingBytes(t, n);
|
|
3067
3067
|
return;
|
|
3068
3068
|
}
|
|
3069
|
-
const r =
|
|
3069
|
+
const r = Z(t);
|
|
3070
3070
|
yield {
|
|
3071
3071
|
type: "model-open",
|
|
3072
3072
|
modelID: 0
|
|
@@ -3085,17 +3085,17 @@ let __tla = Promise.all([
|
|
|
3085
3085
|
continue;
|
|
3086
3086
|
}
|
|
3087
3087
|
if (p && typeof p == "object" && "type" in p && p.type === "rtcOffset") {
|
|
3088
|
-
const
|
|
3088
|
+
const b = p;
|
|
3089
3089
|
yield {
|
|
3090
3090
|
type: "rtcOffset",
|
|
3091
|
-
rtcOffset:
|
|
3092
|
-
hasRtc:
|
|
3091
|
+
rtcOffset: b.rtcOffset,
|
|
3092
|
+
hasRtc: b.hasRtc
|
|
3093
3093
|
};
|
|
3094
3094
|
continue;
|
|
3095
3095
|
}
|
|
3096
3096
|
const g = p;
|
|
3097
3097
|
this.coordinateHandler.processMeshesIncremental(g), c += g.length;
|
|
3098
|
-
const u = this.coordinateHandler.getCurrentCoordinateInfo(),
|
|
3098
|
+
const u = this.coordinateHandler.getCurrentCoordinateInfo(), h = u && l !== void 0 ? {
|
|
3099
3099
|
...u,
|
|
3100
3100
|
buildingRotation: l
|
|
3101
3101
|
} : u;
|
|
@@ -3103,7 +3103,7 @@ let __tla = Promise.all([
|
|
|
3103
3103
|
type: "batch",
|
|
3104
3104
|
meshes: g,
|
|
3105
3105
|
totalSoFar: c,
|
|
3106
|
-
coordinateInfo:
|
|
3106
|
+
coordinateInfo: h || void 0
|
|
3107
3107
|
};
|
|
3108
3108
|
}
|
|
3109
3109
|
l = a.getBuildingRotation();
|
|
@@ -3121,19 +3121,19 @@ let __tla = Promise.all([
|
|
|
3121
3121
|
async *processStreamingPath(t, e = 0, n) {
|
|
3122
3122
|
if (!this.isNative) throw new Error("File-path geometry streaming is only available in native desktop builds");
|
|
3123
3123
|
if (this.platformBridge || await this.init(), !this.platformBridge?.processGeometryStreamingPath) throw new Error("Native platform bridge does not support file-path streaming");
|
|
3124
|
-
yield*
|
|
3124
|
+
yield* Qe((s)=>this.platformBridge.processGeometryStreamingPath(t, s, n), e > 0 ? e / 1e3 : 0, this.coordinateHandler, (s)=>{
|
|
3125
3125
|
this.lastNativeStats = s;
|
|
3126
3126
|
});
|
|
3127
3127
|
}
|
|
3128
3128
|
async *processStreamingCache(t) {
|
|
3129
3129
|
if (!this.isNative) throw new Error("Native cached geometry streaming is only available in native desktop builds");
|
|
3130
3130
|
if (this.platformBridge || await this.init(), !this.platformBridge?.processGeometryStreamingCache) throw new Error("Native platform bridge does not support cached geometry streaming");
|
|
3131
|
-
yield*
|
|
3131
|
+
yield* Qe((e)=>this.platformBridge.processGeometryStreamingCache(t, e), 0, this.coordinateHandler, (e)=>{
|
|
3132
3132
|
this.lastNativeStats = e;
|
|
3133
3133
|
});
|
|
3134
3134
|
}
|
|
3135
3135
|
async *processInstancedStreaming(t, e = 25) {
|
|
3136
|
-
const n = this.isNative ? null :
|
|
3136
|
+
const n = this.isNative ? null : qe("processInstancedStreaming");
|
|
3137
3137
|
try {
|
|
3138
3138
|
yield* this.processInstancedStreamingUnlocked(t, e);
|
|
3139
3139
|
} finally{
|
|
@@ -3150,7 +3150,7 @@ let __tla = Promise.all([
|
|
|
3150
3150
|
yield* this.processInstancedStreamingBytes(t, r);
|
|
3151
3151
|
return;
|
|
3152
3152
|
}
|
|
3153
|
-
const a =
|
|
3153
|
+
const a = Z(t);
|
|
3154
3154
|
yield {
|
|
3155
3155
|
type: "model-open",
|
|
3156
3156
|
modelID: 0
|
|
@@ -3162,27 +3162,27 @@ let __tla = Promise.all([
|
|
|
3162
3162
|
for await (const f of c.collectInstancedGeometryStreaming(s)){
|
|
3163
3163
|
const p = [];
|
|
3164
3164
|
for (const u of f){
|
|
3165
|
-
const
|
|
3165
|
+
const h = u.positions, b = u.normals, C = u.indices;
|
|
3166
3166
|
if (u.instance_count > 0) {
|
|
3167
|
-
const
|
|
3168
|
-
if (
|
|
3169
|
-
const
|
|
3167
|
+
const w = u.get_instance(0);
|
|
3168
|
+
if (w) {
|
|
3169
|
+
const A = w.color;
|
|
3170
3170
|
p.push({
|
|
3171
|
-
expressId:
|
|
3172
|
-
positions:
|
|
3173
|
-
normals:
|
|
3171
|
+
expressId: w.expressId,
|
|
3172
|
+
positions: h,
|
|
3173
|
+
normals: b,
|
|
3174
3174
|
indices: C,
|
|
3175
3175
|
color: [
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3176
|
+
A[0],
|
|
3177
|
+
A[1],
|
|
3178
|
+
A[2],
|
|
3179
|
+
A[3]
|
|
3180
3180
|
]
|
|
3181
3181
|
});
|
|
3182
3182
|
}
|
|
3183
3183
|
}
|
|
3184
3184
|
}
|
|
3185
|
-
p.length > 0 && this.coordinateHandler.processMeshesIncremental(p), l += f.length, d += f.reduce((u,
|
|
3185
|
+
p.length > 0 && this.coordinateHandler.processMeshesIncremental(p), l += f.length, d += f.reduce((u, h)=>u + h.instance_count, 0);
|
|
3186
3186
|
const g = this.coordinateHandler.getCurrentCoordinateInfo();
|
|
3187
3187
|
yield {
|
|
3188
3188
|
type: "batch",
|
|
@@ -3220,7 +3220,7 @@ let __tla = Promise.all([
|
|
|
3220
3220
|
let r;
|
|
3221
3221
|
if (this.isNative && this.platformBridge) console.time("[GeometryProcessor] native-adaptive-sync"), r = (await this.platformBridge.processGeometry(t)).meshes, console.timeEnd("[GeometryProcessor] native-adaptive-sync");
|
|
3222
3222
|
else {
|
|
3223
|
-
const c =
|
|
3223
|
+
const c = Z(t);
|
|
3224
3224
|
r = new ee(this.bridge.getApi(), c, {
|
|
3225
3225
|
mergeLayers: this.mergeLayers
|
|
3226
3226
|
}).collectMeshes();
|
|
@@ -3247,17 +3247,17 @@ let __tla = Promise.all([
|
|
|
3247
3247
|
}
|
|
3248
3248
|
parseSymbolicRepresentations(t) {
|
|
3249
3249
|
if (!this.bridge || !this.bridge.isInitialized()) return null;
|
|
3250
|
-
const e =
|
|
3250
|
+
const e = Z(t);
|
|
3251
3251
|
return this.bridge.parseSymbolicRepresentations(e);
|
|
3252
3252
|
}
|
|
3253
3253
|
extractProfiles(t, e = 0) {
|
|
3254
3254
|
if (!this.bridge || !this.bridge.isInitialized()) return null;
|
|
3255
|
-
const n =
|
|
3255
|
+
const n = Z(t);
|
|
3256
3256
|
return this.bridge.extractProfiles(n, e);
|
|
3257
3257
|
}
|
|
3258
3258
|
dispose() {}
|
|
3259
3259
|
};
|
|
3260
|
-
|
|
3260
|
+
Os = class {
|
|
3261
3261
|
geometryResult;
|
|
3262
3262
|
constructor(t){
|
|
3263
3263
|
this.geometryResult = t;
|
|
@@ -3301,17 +3301,17 @@ let __tla = Promise.all([
|
|
|
3301
3301
|
triangleCount: this.geometryResult.totalTriangles
|
|
3302
3302
|
});
|
|
3303
3303
|
const s = new Map, r = [];
|
|
3304
|
-
function a(
|
|
3305
|
-
const
|
|
3306
|
-
if (
|
|
3304
|
+
function a(m) {
|
|
3305
|
+
const N = `${Math.round(m[0] * 100)},${Math.round(m[1] * 100)},${Math.round(m[2] * 100)},${Math.round(m[3] * 100)}`, I = s.get(N);
|
|
3306
|
+
if (I !== void 0) return I;
|
|
3307
3307
|
const F = r.length;
|
|
3308
3308
|
return r.push({
|
|
3309
3309
|
pbrMetallicRoughness: {
|
|
3310
3310
|
baseColorFactor: [
|
|
3311
|
-
|
|
3312
|
-
|
|
3313
|
-
|
|
3314
|
-
|
|
3311
|
+
m[0],
|
|
3312
|
+
m[1],
|
|
3313
|
+
m[2],
|
|
3314
|
+
m[3]
|
|
3315
3315
|
],
|
|
3316
3316
|
metallicFactor: 0,
|
|
3317
3317
|
roughnessFactor: 1
|
|
@@ -3319,75 +3319,75 @@ let __tla = Promise.all([
|
|
|
3319
3319
|
extensions: {
|
|
3320
3320
|
KHR_materials_unlit: {}
|
|
3321
3321
|
},
|
|
3322
|
-
...
|
|
3322
|
+
...m[3] < 1 ? {
|
|
3323
3323
|
alphaMode: "BLEND"
|
|
3324
3324
|
} : {}
|
|
3325
|
-
}), s.set(
|
|
3325
|
+
}), s.set(N, F), F;
|
|
3326
3326
|
}
|
|
3327
3327
|
const c = [];
|
|
3328
3328
|
let l = 0, d = 0, _ = 0;
|
|
3329
|
-
for(let
|
|
3330
|
-
const
|
|
3331
|
-
if (!
|
|
3332
|
-
let E =
|
|
3333
|
-
for(let
|
|
3334
|
-
const
|
|
3335
|
-
|
|
3329
|
+
for(let m = 0; m < e.length; m++){
|
|
3330
|
+
const N = e[m], I = N.positions, F = N.normals, R = N.indices;
|
|
3331
|
+
if (!I.length || !F.length || !R.length || I.length % 3 !== 0 || F.length % 3 !== 0 || I.length !== F.length) continue;
|
|
3332
|
+
let E = I[0], y = I[1], T = I[2], O = I[0], V = I[1], U = I[2];
|
|
3333
|
+
for(let Q = 3; Q < I.length; Q += 3){
|
|
3334
|
+
const H = I[Q], k = I[Q + 1], W = I[Q + 2];
|
|
3335
|
+
H < E && (E = H), H > O && (O = H), k < y && (y = k), k > V && (V = k), W < T && (T = W), W > U && (U = W);
|
|
3336
3336
|
}
|
|
3337
3337
|
c.push({
|
|
3338
|
-
meshIndex:
|
|
3339
|
-
posCount:
|
|
3338
|
+
meshIndex: m,
|
|
3339
|
+
posCount: I.length,
|
|
3340
3340
|
normCount: F.length,
|
|
3341
|
-
idxCount:
|
|
3341
|
+
idxCount: R.length,
|
|
3342
3342
|
posByteOffset: l * 4,
|
|
3343
3343
|
normByteOffset: d * 4,
|
|
3344
3344
|
idxByteOffset: _ * 4,
|
|
3345
3345
|
bounds: {
|
|
3346
3346
|
min: [
|
|
3347
3347
|
E,
|
|
3348
|
-
|
|
3349
|
-
|
|
3348
|
+
y,
|
|
3349
|
+
T
|
|
3350
3350
|
],
|
|
3351
3351
|
max: [
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3352
|
+
O,
|
|
3353
|
+
V,
|
|
3354
|
+
U
|
|
3355
3355
|
]
|
|
3356
3356
|
},
|
|
3357
|
-
materialIdx:
|
|
3358
|
-
}), l +=
|
|
3357
|
+
materialIdx: N.color ? a(N.color) : void 0
|
|
3358
|
+
}), l += I.length, d += F.length, _ += R.length;
|
|
3359
3359
|
}
|
|
3360
3360
|
if (l === 0 || d === 0 || _ === 0) throw new Error("Cannot export GLB: no valid geometry data found");
|
|
3361
3361
|
const f = new Float32Array(l), p = new Float32Array(d), g = new Uint32Array(_);
|
|
3362
|
-
let u = 0,
|
|
3362
|
+
let u = 0, h = 0, b = 0;
|
|
3363
3363
|
const C = [];
|
|
3364
|
-
for (const
|
|
3365
|
-
const
|
|
3366
|
-
f.set(
|
|
3367
|
-
const
|
|
3364
|
+
for (const m of c){
|
|
3365
|
+
const N = e[m.meshIndex];
|
|
3366
|
+
f.set(N.positions, u), p.set(N.normals, h), g.set(N.indices, b), u += m.posCount, h += m.normCount, b += m.idxCount;
|
|
3367
|
+
const I = n.accessors.length;
|
|
3368
3368
|
n.accessors.push({
|
|
3369
3369
|
bufferView: 0,
|
|
3370
|
-
byteOffset:
|
|
3370
|
+
byteOffset: m.posByteOffset,
|
|
3371
3371
|
componentType: 5126,
|
|
3372
|
-
count:
|
|
3372
|
+
count: m.posCount / 3,
|
|
3373
3373
|
type: "VEC3",
|
|
3374
|
-
min:
|
|
3375
|
-
max:
|
|
3374
|
+
min: m.bounds.min,
|
|
3375
|
+
max: m.bounds.max
|
|
3376
3376
|
});
|
|
3377
3377
|
const F = n.accessors.length;
|
|
3378
3378
|
n.accessors.push({
|
|
3379
3379
|
bufferView: 1,
|
|
3380
|
-
byteOffset:
|
|
3380
|
+
byteOffset: m.normByteOffset,
|
|
3381
3381
|
componentType: 5126,
|
|
3382
|
-
count:
|
|
3382
|
+
count: m.normCount / 3,
|
|
3383
3383
|
type: "VEC3"
|
|
3384
3384
|
});
|
|
3385
|
-
const
|
|
3385
|
+
const R = n.accessors.length;
|
|
3386
3386
|
n.accessors.push({
|
|
3387
3387
|
bufferView: 2,
|
|
3388
|
-
byteOffset:
|
|
3388
|
+
byteOffset: m.idxByteOffset,
|
|
3389
3389
|
componentType: 5125,
|
|
3390
|
-
count:
|
|
3390
|
+
count: m.idxCount,
|
|
3391
3391
|
type: "SCALAR"
|
|
3392
3392
|
});
|
|
3393
3393
|
const E = n.meshes.length;
|
|
@@ -3395,71 +3395,71 @@ let __tla = Promise.all([
|
|
|
3395
3395
|
primitives: [
|
|
3396
3396
|
{
|
|
3397
3397
|
attributes: {
|
|
3398
|
-
POSITION:
|
|
3398
|
+
POSITION: I,
|
|
3399
3399
|
NORMAL: F
|
|
3400
3400
|
},
|
|
3401
|
-
indices:
|
|
3402
|
-
...
|
|
3403
|
-
material:
|
|
3401
|
+
indices: R,
|
|
3402
|
+
...m.materialIdx !== void 0 ? {
|
|
3403
|
+
material: m.materialIdx
|
|
3404
3404
|
} : {}
|
|
3405
3405
|
}
|
|
3406
3406
|
]
|
|
3407
3407
|
});
|
|
3408
|
-
const
|
|
3408
|
+
const y = n.nodes.length, T = {
|
|
3409
3409
|
mesh: E
|
|
3410
3410
|
};
|
|
3411
|
-
t.includeMetadata &&
|
|
3412
|
-
expressId:
|
|
3413
|
-
modelIndex:
|
|
3411
|
+
t.includeMetadata && N.expressId !== void 0 && (T.extras = N.modelIndex !== void 0 ? {
|
|
3412
|
+
expressId: N.expressId,
|
|
3413
|
+
modelIndex: N.modelIndex
|
|
3414
3414
|
} : {
|
|
3415
|
-
expressId:
|
|
3416
|
-
}), n.nodes.push(
|
|
3415
|
+
expressId: N.expressId
|
|
3416
|
+
}), n.nodes.push(T), C.push(y);
|
|
3417
3417
|
}
|
|
3418
3418
|
n.scenes[0].nodes = C, r.length > 0 && (n.materials = r, n.extensionsUsed = [
|
|
3419
3419
|
"KHR_materials_unlit"
|
|
3420
3420
|
]);
|
|
3421
|
-
const
|
|
3421
|
+
const w = f.buffer, A = p.buffer, M = g.buffer, z = w.byteLength + A.byteLength + M.byteLength;
|
|
3422
3422
|
n.bufferViews.push({
|
|
3423
3423
|
buffer: 0,
|
|
3424
3424
|
byteOffset: 0,
|
|
3425
|
-
byteLength:
|
|
3425
|
+
byteLength: w.byteLength,
|
|
3426
3426
|
byteStride: 12,
|
|
3427
3427
|
target: 34962
|
|
3428
3428
|
}), n.bufferViews.push({
|
|
3429
3429
|
buffer: 0,
|
|
3430
|
-
byteOffset:
|
|
3431
|
-
byteLength:
|
|
3430
|
+
byteOffset: w.byteLength,
|
|
3431
|
+
byteLength: A.byteLength,
|
|
3432
3432
|
byteStride: 12,
|
|
3433
3433
|
target: 34962
|
|
3434
3434
|
}), n.bufferViews.push({
|
|
3435
3435
|
buffer: 0,
|
|
3436
|
-
byteOffset:
|
|
3437
|
-
byteLength:
|
|
3436
|
+
byteOffset: w.byteLength + A.byteLength,
|
|
3437
|
+
byteLength: M.byteLength,
|
|
3438
3438
|
target: 34963
|
|
3439
|
-
}), n.buffers[0].byteLength =
|
|
3440
|
-
for (const
|
|
3441
|
-
const
|
|
3442
|
-
if (!
|
|
3443
|
-
let
|
|
3444
|
-
if (
|
|
3445
|
-
else if (
|
|
3446
|
-
else if (
|
|
3447
|
-
else if (
|
|
3448
|
-
else throw new Error(`Unsupported component type: ${
|
|
3439
|
+
}), n.buffers[0].byteLength = z;
|
|
3440
|
+
for (const m of n.accessors){
|
|
3441
|
+
const N = n.bufferViews[m.bufferView];
|
|
3442
|
+
if (!N) throw new Error(`Accessor references invalid bufferView ${m.bufferView}`);
|
|
3443
|
+
let I = 0;
|
|
3444
|
+
if (m.componentType === 5126) I = 4;
|
|
3445
|
+
else if (m.componentType === 5125) I = 4;
|
|
3446
|
+
else if (m.componentType === 5123) I = 2;
|
|
3447
|
+
else if (m.componentType === 5120) I = 1;
|
|
3448
|
+
else throw new Error(`Unsupported component type: ${m.componentType}`);
|
|
3449
3449
|
let F = 1;
|
|
3450
|
-
if (
|
|
3451
|
-
else if (
|
|
3452
|
-
else if (
|
|
3453
|
-
else throw new Error(`Unsupported accessor type: ${
|
|
3454
|
-
const
|
|
3455
|
-
if (E >
|
|
3450
|
+
if (m.type === "VEC3") F = 3;
|
|
3451
|
+
else if (m.type === "VEC2") F = 2;
|
|
3452
|
+
else if (m.type === "SCALAR") F = 1;
|
|
3453
|
+
else throw new Error(`Unsupported accessor type: ${m.type}`);
|
|
3454
|
+
const R = m.count * F * I, E = (m.byteOffset || 0) + R;
|
|
3455
|
+
if (E > N.byteLength) throw new Error(`Accessor exceeds bufferView bounds: accessor byteOffset=${m.byteOffset || 0}, length=${R}, bufferView byteLength=${N.byteLength}, end=${E}`);
|
|
3456
3456
|
}
|
|
3457
3457
|
return {
|
|
3458
3458
|
json: n,
|
|
3459
3459
|
buffers: [
|
|
3460
|
-
new Uint8Array(
|
|
3461
|
-
new Uint8Array(
|
|
3462
|
-
new Uint8Array(
|
|
3460
|
+
new Uint8Array(w),
|
|
3461
|
+
new Uint8Array(A),
|
|
3462
|
+
new Uint8Array(M)
|
|
3463
3463
|
]
|
|
3464
3464
|
};
|
|
3465
3465
|
}
|
|
@@ -3473,11 +3473,11 @@ let __tla = Promise.all([
|
|
|
3473
3473
|
const n = JSON.stringify(t), s = new TextEncoder().encode(n), r = (4 - s.byteLength % 4) % 4, a = s.byteLength + r, c = this.combineBuffers(e), l = (4 - c.byteLength % 4) % 4, d = c.byteLength + l, _ = 20 + a + 8 + d, f = new ArrayBuffer(_), p = new DataView(f), g = new Uint8Array(f);
|
|
3474
3474
|
let u = 0;
|
|
3475
3475
|
p.setUint32(u, 1179937895, !0), u += 4, p.setUint32(u, 2, !0), u += 4, p.setUint32(u, _, !0), u += 4, p.setUint32(u, a, !0), u += 4, p.setUint32(u, 1313821514, !0), u += 4, g.set(s, u), u += s.byteLength;
|
|
3476
|
-
for(let
|
|
3476
|
+
for(let h = 0; h < r; h++)g[u++] = 32;
|
|
3477
3477
|
return p.setUint32(u, d, !0), u += 4, p.setUint32(u, 5130562, !0), u += 4, g.set(c, u), new Uint8Array(f);
|
|
3478
3478
|
}
|
|
3479
3479
|
};
|
|
3480
|
-
|
|
3480
|
+
xs = class {
|
|
3481
3481
|
store;
|
|
3482
3482
|
constructor(t){
|
|
3483
3483
|
this.store = t;
|
|
@@ -3525,12 +3525,12 @@ let __tla = Promise.all([
|
|
|
3525
3525
|
if (s && r) {
|
|
3526
3526
|
const p = this.getPropertiesForEntity(_), g = new Map;
|
|
3527
3527
|
for (const u of p){
|
|
3528
|
-
const
|
|
3529
|
-
for (const
|
|
3530
|
-
g.set(u.name,
|
|
3528
|
+
const h = new Map;
|
|
3529
|
+
for (const b of u.properties)h.set(b.name, b.value);
|
|
3530
|
+
g.set(u.name, h);
|
|
3531
3531
|
}
|
|
3532
|
-
for (const [u,
|
|
3533
|
-
const C = g.get(u)?.get(
|
|
3532
|
+
for (const [u, h] of c)for (const b of h){
|
|
3533
|
+
const C = g.get(u)?.get(b) ?? "";
|
|
3534
3534
|
f.push(this.escapeValue(C));
|
|
3535
3535
|
}
|
|
3536
3536
|
}
|
|
@@ -3591,7 +3591,7 @@ let __tla = Promise.all([
|
|
|
3591
3591
|
if (!d || d.length === 0) continue;
|
|
3592
3592
|
const _ = this.store.entities.getGlobalId(l) || "", f = this.store.entities.getName(l) || "", p = this.store.entities.getTypeName(l) || "";
|
|
3593
3593
|
for (const g of d)if (!(!g.quantities || g.quantities.length === 0)) for (const u of g.quantities){
|
|
3594
|
-
const
|
|
3594
|
+
const h = [
|
|
3595
3595
|
this.escapeValue(l),
|
|
3596
3596
|
this.escapeValue(_),
|
|
3597
3597
|
this.escapeValue(f),
|
|
@@ -3601,7 +3601,7 @@ let __tla = Promise.all([
|
|
|
3601
3601
|
this.escapeValue(u.value),
|
|
3602
3602
|
this.escapeValue(u.type ?? "")
|
|
3603
3603
|
];
|
|
3604
|
-
a.push(this.joinRow(
|
|
3604
|
+
a.push(this.joinRow(h, n));
|
|
3605
3605
|
}
|
|
3606
3606
|
}
|
|
3607
3607
|
return a.join(`
|
|
@@ -3648,7 +3648,7 @@ let __tla = Promise.all([
|
|
|
3648
3648
|
return t.join(e);
|
|
3649
3649
|
}
|
|
3650
3650
|
};
|
|
3651
|
-
const os = 35, ne = 48,
|
|
3651
|
+
const os = 35, ne = 48, Ke = 57, as = new Set([
|
|
3652
3652
|
"IFCOWNERHISTORY",
|
|
3653
3653
|
"IFCAPPLICATION",
|
|
3654
3654
|
"IFCPERSON",
|
|
@@ -3897,9 +3897,9 @@ let __tla = Promise.all([
|
|
|
3897
3897
|
const s = t + e;
|
|
3898
3898
|
let r = t;
|
|
3899
3899
|
for(; r < s;)if (i[r] === os) {
|
|
3900
|
-
if (r++, r < s && i[r] >= ne && i[r] <=
|
|
3900
|
+
if (r++, r < s && i[r] >= ne && i[r] <= Ke) {
|
|
3901
3901
|
let a = i[r] - ne;
|
|
3902
|
-
for(r++; r < s && i[r] >= ne && i[r] <=
|
|
3902
|
+
for(r++; r < s && i[r] >= ne && i[r] <= Ke;)a = a * 10 + (i[r] - ne), r++;
|
|
3903
3903
|
n.push(a);
|
|
3904
3904
|
}
|
|
3905
3905
|
} else r++;
|
|
@@ -4003,7 +4003,7 @@ let __tla = Promise.all([
|
|
|
4003
4003
|
}
|
|
4004
4004
|
}
|
|
4005
4005
|
}
|
|
4006
|
-
const
|
|
4006
|
+
const Ze = new Map([
|
|
4007
4007
|
[
|
|
4008
4008
|
"IFCELECTRICDISTRIBUTIONPOINT",
|
|
4009
4009
|
"IFCELECTRICDISTRIBUTIONBOARD"
|
|
@@ -4382,7 +4382,7 @@ let __tla = Promise.all([
|
|
|
4382
4382
|
return fs(t, e)?.get(n) ?? n;
|
|
4383
4383
|
}
|
|
4384
4384
|
function fs(i, t) {
|
|
4385
|
-
return i === "IFC2X3" && t === "IFC4" ?
|
|
4385
|
+
return i === "IFC2X3" && t === "IFC4" ? Ze : i === "IFC4" && t === "IFC2X3" ? tn : i === "IFC4" && t === "IFC4X3" ? ge : i === "IFC4X3" && t === "IFC4" ? he : i === "IFC5" && t === "IFC4X3" || i === "IFC4X3" && t === "IFC5" ? null : i === "IFC5" && t === "IFC4" ? he : i === "IFC4" && t === "IFC5" ? ge : i === "IFC2X3" && (t === "IFC4X3" || t === "IFC5") ? en(Ze, ge) : (i === "IFC4X3" || i === "IFC5") && t === "IFC2X3" ? en(he, tn) : null;
|
|
4386
4386
|
}
|
|
4387
4387
|
function en(i, t) {
|
|
4388
4388
|
const e = new Map;
|
|
@@ -4443,10 +4443,10 @@ let __tla = Promise.all([
|
|
|
4443
4443
|
for(let s = 0; s < 16; s++)e += i[n % 64], n = Math.floor(n / 64) + s;
|
|
4444
4444
|
return e;
|
|
4445
4445
|
}
|
|
4446
|
-
function
|
|
4446
|
+
function nt(i) {
|
|
4447
4447
|
return i.replace(/\\/g, "\\\\").replace(/'/g, "''");
|
|
4448
4448
|
}
|
|
4449
|
-
function
|
|
4449
|
+
function K(i) {
|
|
4450
4450
|
if (!Number.isFinite(i)) return "0.";
|
|
4451
4451
|
const t = i.toString();
|
|
4452
4452
|
return t.includes(".") ? t : t + ".";
|
|
@@ -4472,28 +4472,28 @@ let __tla = Promise.all([
|
|
|
4472
4472
|
function un(i, t) {
|
|
4473
4473
|
if (i == null) return "$";
|
|
4474
4474
|
switch(t){
|
|
4475
|
-
case
|
|
4476
|
-
case
|
|
4477
|
-
case
|
|
4478
|
-
return `IFCLABEL('${
|
|
4479
|
-
case
|
|
4480
|
-
return `IFCIDENTIFIER('${
|
|
4481
|
-
case
|
|
4475
|
+
case et.String:
|
|
4476
|
+
case et.Label:
|
|
4477
|
+
case et.Text:
|
|
4478
|
+
return `IFCLABEL('${nt(String(i))}')`;
|
|
4479
|
+
case et.Identifier:
|
|
4480
|
+
return `IFCIDENTIFIER('${nt(String(i))}')`;
|
|
4481
|
+
case et.Real:
|
|
4482
4482
|
{
|
|
4483
4483
|
const e = Number(i);
|
|
4484
4484
|
return Number.isFinite(e) ? `IFCREAL(${e.toString().includes(".") ? e : e + "."})` : "$";
|
|
4485
4485
|
}
|
|
4486
|
-
case
|
|
4486
|
+
case et.Integer:
|
|
4487
4487
|
return `IFCINTEGER(${Math.round(Number(i))})`;
|
|
4488
|
-
case
|
|
4489
|
-
case
|
|
4488
|
+
case et.Boolean:
|
|
4489
|
+
case et.Logical:
|
|
4490
4490
|
return i === !0 ? "IFCBOOLEAN(.T.)" : i === !1 ? "IFCBOOLEAN(.F.)" : "IFCLOGICAL(.U.)";
|
|
4491
|
-
case
|
|
4491
|
+
case et.Enum:
|
|
4492
4492
|
return `.${String(i).toUpperCase()}.`;
|
|
4493
|
-
case
|
|
4494
|
-
return Array.isArray(i) ? `(${i.map((n)=>un(n,
|
|
4493
|
+
case et.List:
|
|
4494
|
+
return Array.isArray(i) ? `(${i.map((n)=>un(n, et.String)).join(",")})` : "$";
|
|
4495
4495
|
default:
|
|
4496
|
-
return `IFCLABEL('${
|
|
4496
|
+
return `IFCLABEL('${nt(String(i))}')`;
|
|
4497
4497
|
}
|
|
4498
4498
|
}
|
|
4499
4499
|
function ys(i, t) {
|
|
@@ -4507,17 +4507,17 @@ let __tla = Promise.all([
|
|
|
4507
4507
|
}
|
|
4508
4508
|
if (/^-?\d+(?:\.\d+)?(?:E[+-]?\d+)?$/i.test(e) && /^-?\d/.test(n)) {
|
|
4509
4509
|
const s = Number(e);
|
|
4510
|
-
return Number.isFinite(s) ? n.includes(".") || /E/i.test(n) ?
|
|
4510
|
+
return Number.isFinite(s) ? n.includes(".") || /E/i.test(n) ? K(s) : String(s) : "$";
|
|
4511
4511
|
}
|
|
4512
4512
|
return an(i);
|
|
4513
4513
|
}
|
|
4514
4514
|
function Se(i) {
|
|
4515
4515
|
if (i == null) return "$";
|
|
4516
4516
|
if (typeof i == "boolean") return i ? ".T." : ".F.";
|
|
4517
|
-
if (typeof i == "number") return Number.isFinite(i) ? Number.isInteger(i) ? String(i) :
|
|
4517
|
+
if (typeof i == "number") return Number.isFinite(i) ? Number.isInteger(i) ? String(i) : K(i) : "$";
|
|
4518
4518
|
if (Array.isArray(i)) return `(${i.map(Se).join(",")})`;
|
|
4519
4519
|
const t = String(i).trim();
|
|
4520
|
-
return t === "$" || t === "*" || /^#\d+$/.test(t) ? t : /^\.[A-Z0-9_]+\.$/i.test(t) ? t.toUpperCase() : `'${
|
|
4520
|
+
return t === "$" || t === "*" || /^#\d+$/.test(t) ? t : /^\.[A-Z0-9_]+\.$/i.test(t) ? t.toUpperCase() : `'${nt(String(i))}'`;
|
|
4521
4521
|
}
|
|
4522
4522
|
function ms(i) {
|
|
4523
4523
|
return i.map(Se).join(",");
|
|
@@ -4594,178 +4594,178 @@ let __tla = Promise.all([
|
|
|
4594
4594
|
organization: t.organization || "",
|
|
4595
4595
|
application: t.application || "ifc-lite",
|
|
4596
4596
|
filename: t.filename || "export.ifc"
|
|
4597
|
-
}), d = new Set, _ = new Map, f = new Map, p = [], g = [], u = new Map,
|
|
4597
|
+
}), d = new Set, _ = new Map, f = new Map, p = [], g = [], u = new Map, h = new Map, b = new Set, C = new Map, w = new Set, A = new Set;
|
|
4598
4598
|
if (this.mutationView && t.applyMutations !== !1) {
|
|
4599
|
-
const
|
|
4600
|
-
for (const
|
|
4601
|
-
if (
|
|
4602
|
-
d.add(
|
|
4599
|
+
const I = this.mutationView.getMutations(), F = new Map, R = new Map;
|
|
4600
|
+
for (const y of I){
|
|
4601
|
+
if (y.type === "UPDATE_ATTRIBUTE" && y.attributeName) {
|
|
4602
|
+
d.add(y.entityId), f.has(y.entityId) || f.set(y.entityId, new Map), f.get(y.entityId).set(y.attributeName, y.newValue == null ? "" : String(y.newValue));
|
|
4603
4603
|
continue;
|
|
4604
4604
|
}
|
|
4605
|
-
if (!
|
|
4606
|
-
const
|
|
4607
|
-
|
|
4605
|
+
if (!y.psetName) continue;
|
|
4606
|
+
const O = y.type === "CREATE_QUANTITY" || y.type === "UPDATE_QUANTITY" || y.type === "DELETE_QUANTITY" ? R : F;
|
|
4607
|
+
O.has(y.entityId) || O.set(y.entityId, new Set), O.get(y.entityId).add(y.psetName);
|
|
4608
4608
|
}
|
|
4609
4609
|
const E = this.buildRelDefinesByPropertiesIndex();
|
|
4610
|
-
for (const [
|
|
4611
|
-
d.add(
|
|
4612
|
-
const
|
|
4613
|
-
|
|
4614
|
-
entityId:
|
|
4615
|
-
psets:
|
|
4610
|
+
for (const [y, T] of F){
|
|
4611
|
+
d.add(y), _.set(y, T), s++;
|
|
4612
|
+
const V = this.mutationView.getForEntity(y).filter((H)=>T.has(H.name)), U = new Set;
|
|
4613
|
+
V.length > 0 && p.push({
|
|
4614
|
+
entityId: y,
|
|
4615
|
+
psets: V
|
|
4616
4616
|
});
|
|
4617
|
-
const
|
|
4618
|
-
if (
|
|
4617
|
+
const Q = E.get(y);
|
|
4618
|
+
if (Q) for (const { relId: H, psetId: k } of Q){
|
|
4619
4619
|
const W = this.getPropertySetName(k);
|
|
4620
|
-
if (W &&
|
|
4621
|
-
|
|
4622
|
-
const
|
|
4623
|
-
for (const
|
|
4620
|
+
if (W && U.add(W), W && T.has(W)) {
|
|
4621
|
+
A.add(H), w.add(k);
|
|
4622
|
+
const X = this.getPropertyIdsInSet(k);
|
|
4623
|
+
for (const ft of X)w.add(ft);
|
|
4624
4624
|
}
|
|
4625
4625
|
}
|
|
4626
|
-
if (this.isTypeEntity(
|
|
4627
|
-
const
|
|
4628
|
-
for (const W of
|
|
4629
|
-
const
|
|
4630
|
-
if (!
|
|
4631
|
-
k.add(
|
|
4632
|
-
const
|
|
4633
|
-
for (const
|
|
4626
|
+
if (this.isTypeEntity(y)) {
|
|
4627
|
+
const H = this.getTypeOwnedHasPropertySetIds(y), k = new Set;
|
|
4628
|
+
for (const W of H){
|
|
4629
|
+
const X = this.getPropertySetName(W);
|
|
4630
|
+
if (!X || !T.has(X)) continue;
|
|
4631
|
+
k.add(X), w.add(W);
|
|
4632
|
+
const ft = this.getPropertyIdsInSet(W);
|
|
4633
|
+
for (const st of ft)w.add(st);
|
|
4634
4634
|
}
|
|
4635
|
-
for (const W of
|
|
4636
|
-
k.size > 0 && (u.set(
|
|
4635
|
+
for (const W of T)U.has(W) || k.add(W);
|
|
4636
|
+
k.size > 0 && (u.set(y, k), h.set(y, H), b.add(y));
|
|
4637
4637
|
}
|
|
4638
4638
|
}
|
|
4639
|
-
t.includeQuantities === !1 &&
|
|
4640
|
-
for (const [
|
|
4641
|
-
d.add(
|
|
4642
|
-
const
|
|
4643
|
-
|
|
4644
|
-
entityId:
|
|
4645
|
-
qsets:
|
|
4639
|
+
t.includeQuantities === !1 && R.clear();
|
|
4640
|
+
for (const [y, T] of R){
|
|
4641
|
+
d.add(y), _.has(y) || s++;
|
|
4642
|
+
const V = this.mutationView.getQuantitiesForEntity(y).filter((Q)=>T.has(Q.name));
|
|
4643
|
+
V.length > 0 && g.push({
|
|
4644
|
+
entityId: y,
|
|
4645
|
+
qsets: V
|
|
4646
4646
|
});
|
|
4647
|
-
const
|
|
4648
|
-
if (
|
|
4649
|
-
const k = this.getElementQuantityName(
|
|
4650
|
-
if (k &&
|
|
4651
|
-
|
|
4652
|
-
const W = this.getPropertyIdsInSet(
|
|
4653
|
-
for (const
|
|
4647
|
+
const U = E.get(y);
|
|
4648
|
+
if (U) for (const { relId: Q, psetId: H } of U){
|
|
4649
|
+
const k = this.getElementQuantityName(H);
|
|
4650
|
+
if (k && T.has(k)) {
|
|
4651
|
+
A.add(Q), w.add(H);
|
|
4652
|
+
const W = this.getPropertyIdsInSet(H);
|
|
4653
|
+
for (const X of W)w.add(X);
|
|
4654
4654
|
}
|
|
4655
4655
|
}
|
|
4656
4656
|
}
|
|
4657
|
-
for (const [
|
|
4657
|
+
for (const [y] of f)!F.has(y) && !R.has(y) && s++;
|
|
4658
4658
|
}
|
|
4659
|
-
const
|
|
4659
|
+
const M = [];
|
|
4660
4660
|
if (t.applyMutations !== !1 && t.georefMutations) {
|
|
4661
|
-
const
|
|
4662
|
-
if (
|
|
4661
|
+
const I = t.georefMutations, F = this.dataStore.entityIndex.byType.get("IFCPROJECTEDCRS"), R = this.dataStore.entityIndex.byType.get("IFCMAPCONVERSION");
|
|
4662
|
+
if (I.projectedCRS && F?.length) {
|
|
4663
4663
|
const E = F[0];
|
|
4664
4664
|
f.has(E) || f.set(E, new Map);
|
|
4665
|
-
const
|
|
4666
|
-
let
|
|
4667
|
-
if (
|
|
4668
|
-
const
|
|
4669
|
-
|
|
4665
|
+
const y = f.get(E), T = I.projectedCRS;
|
|
4666
|
+
let O = !1;
|
|
4667
|
+
if (T.name !== void 0 && (y.set("Name", String(T.name)), O = !0), T.description !== void 0 && (y.set("Description", String(T.description)), O = !0), T.geodeticDatum !== void 0 && (y.set("GeodeticDatum", String(T.geodeticDatum)), O = !0), T.verticalDatum !== void 0 && (y.set("VerticalDatum", String(T.verticalDatum)), O = !0), T.mapProjection !== void 0 && (y.set("MapProjection", String(T.mapProjection)), O = !0), T.mapZone !== void 0 && (y.set("MapZone", String(T.mapZone)), O = !0), T.mapUnit !== void 0) {
|
|
4668
|
+
const V = this.resolveMapUnitReference(String(T.mapUnit), M);
|
|
4669
|
+
y.set("MapUnit", `#${V}`), O = !0;
|
|
4670
4670
|
}
|
|
4671
|
-
|
|
4671
|
+
O && !d.has(E) && (d.add(E), s++);
|
|
4672
4672
|
}
|
|
4673
|
-
if (
|
|
4674
|
-
const E =
|
|
4673
|
+
if (I.mapConversion && R?.length) {
|
|
4674
|
+
const E = R[0];
|
|
4675
4675
|
f.has(E) || f.set(E, new Map);
|
|
4676
|
-
const
|
|
4677
|
-
let
|
|
4678
|
-
|
|
4676
|
+
const y = f.get(E), T = I.mapConversion;
|
|
4677
|
+
let O = !1;
|
|
4678
|
+
T.eastings !== void 0 && (y.set("Eastings", String(T.eastings)), O = !0), T.northings !== void 0 && (y.set("Northings", String(T.northings)), O = !0), T.orthogonalHeight !== void 0 && (y.set("OrthogonalHeight", String(T.orthogonalHeight)), O = !0), T.xAxisAbscissa !== void 0 && (y.set("XAxisAbscissa", String(T.xAxisAbscissa)), O = !0), T.xAxisOrdinate !== void 0 && (y.set("XAxisOrdinate", String(T.xAxisOrdinate)), O = !0), T.scale !== void 0 && (y.set("Scale", String(T.scale)), O = !0), O && !d.has(E) && (d.add(E), s++);
|
|
4679
4679
|
}
|
|
4680
|
-
if (
|
|
4681
|
-
const E =
|
|
4682
|
-
|
|
4680
|
+
if (I.projectedCRS && !F?.length) {
|
|
4681
|
+
const E = I.projectedCRS, y = this.nextExpressId++, T = E.name ? `'${nt(String(E.name))}'` : "$", O = E.description ? `'${nt(String(E.description))}'` : "$", V = E.geodeticDatum ? `'${nt(String(E.geodeticDatum))}'` : "$", U = E.verticalDatum ? `'${nt(String(E.verticalDatum))}'` : "$", Q = E.mapProjection ? `'${nt(String(E.mapProjection))}'` : "$", H = E.mapZone ? `'${nt(String(E.mapZone))}'` : "$", k = E.mapUnit ? `#${this.resolveMapUnitReference(String(E.mapUnit), M)}` : "$";
|
|
4682
|
+
M.push(`#${y}=IFCPROJECTEDCRS(${T},${O},${V},${U},${Q},${H},${k});`), n++;
|
|
4683
4683
|
const W = this.findPreferredGeometricRepresentationContextId();
|
|
4684
4684
|
if (W) {
|
|
4685
|
-
const
|
|
4686
|
-
|
|
4685
|
+
const X = I.mapConversion || {}, ft = this.nextExpressId++, st = K(Number(X.eastings) || 0), at = K(Number(X.northings) || 0), It = K(Number(X.orthogonalHeight) || 0), Zt = X.xAxisAbscissa !== void 0 ? K(Number(X.xAxisAbscissa)) : "$", St = X.xAxisOrdinate !== void 0 ? K(Number(X.xAxisOrdinate)) : "$", oe = X.scale !== void 0 ? K(Number(X.scale)) : "$";
|
|
4686
|
+
M.push(`#${ft}=IFCMAPCONVERSION(#${W},#${y},${st},${at},${It},${Zt},${St},${oe});`), n++;
|
|
4687
4687
|
} else console.warn("[StepExporter] Cannot create IfcMapConversion: no IfcGeometricRepresentationContext found in source file");
|
|
4688
|
-
} else if (
|
|
4688
|
+
} else if (I.mapConversion && !R?.length && F?.length) {
|
|
4689
4689
|
const E = this.findPreferredGeometricRepresentationContextId();
|
|
4690
4690
|
if (E) {
|
|
4691
|
-
const
|
|
4692
|
-
|
|
4691
|
+
const y = I.mapConversion, T = this.nextExpressId++, O = K(Number(y.eastings) || 0), V = K(Number(y.northings) || 0), U = K(Number(y.orthogonalHeight) || 0), Q = y.xAxisAbscissa !== void 0 ? K(Number(y.xAxisAbscissa)) : "$", H = y.xAxisOrdinate !== void 0 ? K(Number(y.xAxisOrdinate)) : "$", k = y.scale !== void 0 ? K(Number(y.scale)) : "$";
|
|
4692
|
+
M.push(`#${T}=IFCMAPCONVERSION(#${E},#${F[0]},${O},${V},${U},${Q},${H},${k});`), n++;
|
|
4693
4693
|
} else console.warn("[StepExporter] Cannot create IfcMapConversion: no IfcGeometricRepresentationContext found in source file");
|
|
4694
4694
|
}
|
|
4695
4695
|
}
|
|
4696
|
-
const
|
|
4697
|
-
if (t.deltaOnly && d.size === 0 &&
|
|
4698
|
-
const
|
|
4696
|
+
const z = this.mutationView && t.applyMutations !== !1 && typeof this.mutationView.getNewEntities == "function" ? this.mutationView.getNewEntities().length : 0;
|
|
4697
|
+
if (t.deltaOnly && d.size === 0 && z === 0 && M.length === 0) {
|
|
4698
|
+
const I = new TextEncoder().encode(l + `DATA;
|
|
4699
4699
|
ENDSEC;
|
|
4700
4700
|
END-ISO-10303-21;
|
|
4701
4701
|
`);
|
|
4702
4702
|
return {
|
|
4703
|
-
content:
|
|
4703
|
+
content: I,
|
|
4704
4704
|
stats: {
|
|
4705
4705
|
entityCount: 0,
|
|
4706
4706
|
newEntityCount: 0,
|
|
4707
4707
|
modifiedEntityCount: 0,
|
|
4708
|
-
fileSize:
|
|
4708
|
+
fileSize: I.byteLength
|
|
4709
4709
|
}
|
|
4710
4710
|
};
|
|
4711
4711
|
}
|
|
4712
|
-
let
|
|
4712
|
+
let m = null;
|
|
4713
4713
|
if (t.visibleOnly && this.dataStore.source) {
|
|
4714
|
-
const { roots:
|
|
4715
|
-
|
|
4714
|
+
const { roots: I, hiddenProductIds: F } = Te(this.dataStore, t.hiddenEntityIds ?? new Set, t.isolatedEntityIds ?? null);
|
|
4715
|
+
m = Ce(I, this.dataStore.source, this.dataStore.entityIndex.byId, F), Fe(m, this.dataStore.source, this.dataStore.entityIndex);
|
|
4716
4716
|
}
|
|
4717
4717
|
if (!t.deltaOnly && this.dataStore.source) {
|
|
4718
|
-
const
|
|
4719
|
-
for (const [
|
|
4720
|
-
if (
|
|
4721
|
-
const
|
|
4722
|
-
if (t.includeGeometry === !1 && this.isGeometryEntity(
|
|
4723
|
-
const
|
|
4724
|
-
let
|
|
4725
|
-
const
|
|
4726
|
-
if (
|
|
4727
|
-
const
|
|
4728
|
-
|
|
4729
|
-
} else e.push(
|
|
4718
|
+
const I = this.dataStore.source, F = !!this.mutationView && t.applyMutations !== !1;
|
|
4719
|
+
for (const [R, E] of this.dataStore.entityIndex.byId){
|
|
4720
|
+
if (F && typeof this.mutationView.isDeleted == "function" && this.mutationView.isDeleted(R) || E.byteLength === 0 || E.byteOffset < 0 || m !== null && !m.has(R) || w.has(R) || A.has(R) || b.has(R)) continue;
|
|
4721
|
+
const y = E.type.toUpperCase();
|
|
4722
|
+
if (t.includeGeometry === !1 && this.isGeometryEntity(y)) continue;
|
|
4723
|
+
const T = Z(I, E.byteOffset, E.byteOffset + E.byteLength);
|
|
4724
|
+
let O = f.has(R) ? this.applyAttributeMutations(T, y, f.get(R)) : T;
|
|
4725
|
+
const V = F && typeof this.mutationView.getPositionalMutationsForEntity == "function" ? this.mutationView.getPositionalMutationsForEntity(R) : null;
|
|
4726
|
+
if (V && V.size > 0 && (O = this.applyPositionalMutations(O, V), d.has(R) || (d.add(R), s++)), c) {
|
|
4727
|
+
const U = ie(O, a, r);
|
|
4728
|
+
U !== null && e.push(U);
|
|
4729
|
+
} else e.push(O);
|
|
4730
4730
|
}
|
|
4731
4731
|
}
|
|
4732
|
-
for (const { entityId:
|
|
4733
|
-
const
|
|
4734
|
-
e.push(...
|
|
4735
|
-
const E = u.get(
|
|
4732
|
+
for (const { entityId: I, psets: F } of p){
|
|
4733
|
+
const R = this.generatePropertySetEntities(I, F, u.get(I));
|
|
4734
|
+
e.push(...R.lines), n += R.count;
|
|
4735
|
+
const E = u.get(I);
|
|
4736
4736
|
if (E && E.size > 0) {
|
|
4737
|
-
const
|
|
4738
|
-
|
|
4737
|
+
const y = this.rewriteTypeEntityHasPropertySets(I, h.get(I) ?? [], E, R.generatedTypeOwnedPsetIds);
|
|
4738
|
+
y && C.set(I, y);
|
|
4739
4739
|
}
|
|
4740
4740
|
}
|
|
4741
|
-
for (const [
|
|
4742
|
-
if (C.has(
|
|
4743
|
-
const
|
|
4744
|
-
|
|
4745
|
-
}
|
|
4746
|
-
for (const { entityId:
|
|
4747
|
-
const
|
|
4748
|
-
e.push(...
|
|
4749
|
-
}
|
|
4750
|
-
for (const
|
|
4751
|
-
for (const
|
|
4752
|
-
if (this.mutationView && t.applyMutations !== !1 && typeof this.mutationView.getNewEntities == "function") for (const
|
|
4753
|
-
const F =
|
|
4754
|
-
if (t.includeGeometry === !1 && this.isGeometryEntity(F) ||
|
|
4755
|
-
const
|
|
4741
|
+
for (const [I, F] of u){
|
|
4742
|
+
if (C.has(I)) continue;
|
|
4743
|
+
const R = this.rewriteTypeEntityHasPropertySets(I, h.get(I) ?? [], F, new Map);
|
|
4744
|
+
R && C.set(I, R);
|
|
4745
|
+
}
|
|
4746
|
+
for (const { entityId: I, qsets: F } of g){
|
|
4747
|
+
const R = this.generateQuantitySetEntities(I, F);
|
|
4748
|
+
e.push(...R.lines), n += R.count;
|
|
4749
|
+
}
|
|
4750
|
+
for (const I of C.values())e.push(I);
|
|
4751
|
+
for (const I of M)e.push(I);
|
|
4752
|
+
if (this.mutationView && t.applyMutations !== !1 && typeof this.mutationView.getNewEntities == "function") for (const I of this.mutationView.getNewEntities()){
|
|
4753
|
+
const F = I.type.toUpperCase();
|
|
4754
|
+
if (t.includeGeometry === !1 && this.isGeometryEntity(F) || m !== null && !m.has(I.expressId)) continue;
|
|
4755
|
+
const R = `#${I.expressId}=${F}(${ms(I.attributes)});`;
|
|
4756
4756
|
if (c) {
|
|
4757
|
-
const E = ie(
|
|
4757
|
+
const E = ie(R, a, r);
|
|
4758
4758
|
E !== null && (e.push(E), n++);
|
|
4759
|
-
} else e.push(
|
|
4759
|
+
} else e.push(R), n++;
|
|
4760
4760
|
}
|
|
4761
|
-
const
|
|
4761
|
+
const N = ws(l, e);
|
|
4762
4762
|
return {
|
|
4763
|
-
content:
|
|
4763
|
+
content: N,
|
|
4764
4764
|
stats: {
|
|
4765
4765
|
entityCount: e.length,
|
|
4766
4766
|
newEntityCount: n,
|
|
4767
4767
|
modifiedEntityCount: s,
|
|
4768
|
-
fileSize:
|
|
4768
|
+
fileSize: N.byteLength
|
|
4769
4769
|
}
|
|
4770
4770
|
};
|
|
4771
4771
|
}
|
|
@@ -4806,18 +4806,18 @@ END-ISO-10303-21;
|
|
|
4806
4806
|
for (const g of c.properties){
|
|
4807
4807
|
const u = this.nextExpressId++;
|
|
4808
4808
|
r++;
|
|
4809
|
-
const
|
|
4810
|
-
s.push(
|
|
4809
|
+
const h = un(g.value, g.type), b = g.unit ? this.findUnitId(g.unit) : null, C = b !== null ? bn(b) : null, w = `#${u}=IFCPROPERTYSINGLEVALUE('${nt(g.name)}',$,${h},${C ? an(C) : "$"});`;
|
|
4810
|
+
s.push(w), l.push(u);
|
|
4811
4811
|
}
|
|
4812
4812
|
const d = this.nextExpressId++;
|
|
4813
4813
|
r++;
|
|
4814
|
-
const _ = l.map((g)=>`#${g}`).join(","), f = this.generateGlobalId(), p = `#${d}=IFCPROPERTYSET('${f}',$,'${
|
|
4814
|
+
const _ = l.map((g)=>`#${g}`).join(","), f = this.generateGlobalId(), p = `#${d}=IFCPROPERTYSET('${f}',$,'${nt(c.name)}',$,(${_}));`;
|
|
4815
4815
|
if (s.push(p), n?.has(c.name)) a.set(c.name, d);
|
|
4816
4816
|
else {
|
|
4817
4817
|
const g = this.nextExpressId++;
|
|
4818
4818
|
r++;
|
|
4819
|
-
const u = this.generateGlobalId(),
|
|
4820
|
-
s.push(
|
|
4819
|
+
const u = this.generateGlobalId(), h = `#${g}=IFCRELDEFINESBYPROPERTIES('${u}',$,$,$,(#${t}),#${d});`;
|
|
4820
|
+
s.push(h);
|
|
4821
4821
|
}
|
|
4822
4822
|
}
|
|
4823
4823
|
return {
|
|
@@ -4832,14 +4832,14 @@ END-ISO-10303-21;
|
|
|
4832
4832
|
for (const r of e){
|
|
4833
4833
|
const a = [];
|
|
4834
4834
|
for (const u of r.quantities){
|
|
4835
|
-
const
|
|
4835
|
+
const h = this.nextExpressId++;
|
|
4836
4836
|
s++;
|
|
4837
|
-
const
|
|
4838
|
-
n.push(
|
|
4837
|
+
const b = Is(u.type), C = K(u.value), w = `#${h}=${b}('${nt(u.name)}',$,$,${C},$);`;
|
|
4838
|
+
n.push(w), a.push(h);
|
|
4839
4839
|
}
|
|
4840
4840
|
const c = this.nextExpressId++;
|
|
4841
4841
|
s++;
|
|
4842
|
-
const l = a.map((u)=>`#${u}`).join(","), d = this.generateGlobalId(), _ = `#${c}=IFCELEMENTQUANTITY('${d}',$,'${
|
|
4842
|
+
const l = a.map((u)=>`#${u}`).join(","), d = this.generateGlobalId(), _ = `#${c}=IFCELEMENTQUANTITY('${d}',$,'${nt(r.name)}',$,$,(${l}));`;
|
|
4843
4843
|
n.push(_);
|
|
4844
4844
|
const f = this.nextExpressId++;
|
|
4845
4845
|
s++;
|
|
@@ -4881,7 +4881,7 @@ END-ISO-10303-21;
|
|
|
4881
4881
|
}
|
|
4882
4882
|
if (n === "FOOT" || n === "US SURVEY FOOT") {
|
|
4883
4883
|
const a = this.nextExpressId++, c = this.nextExpressId++, l = this.nextExpressId++, d = this.nextExpressId++, _ = n === "US SURVEY FOOT" ? 1200 / 3937 : .3048, f = n === "US SURVEY FOOT" ? "US SURVEY FOOT" : "FOOT";
|
|
4884
|
-
return e.push(`#${a}=IFCDIMENSIONALEXPONENTS(1,0,0,0,0,0,0);`), e.push(`#${c}=IFCSIUNIT(*,.LENGTHUNIT.,$,.METRE.);`), e.push(`#${l}=IFCMEASUREWITHUNIT(IFCLENGTHMEASURE(${
|
|
4884
|
+
return e.push(`#${a}=IFCDIMENSIONALEXPONENTS(1,0,0,0,0,0,0);`), e.push(`#${c}=IFCSIUNIT(*,.LENGTHUNIT.,$,.METRE.);`), e.push(`#${l}=IFCMEASUREWITHUNIT(IFCLENGTHMEASURE(${K(_)}),#${c});`), e.push(`#${d}=IFCCONVERSIONBASEDUNIT(#${a},.LENGTHUNIT.,'${f}',#${l});`), d;
|
|
4885
4885
|
}
|
|
4886
4886
|
const r = this.nextExpressId++;
|
|
4887
4887
|
return e.push(`#${r}=IFCSIUNIT(*,.LENGTHUNIT.,$,.METRE.);`), r;
|
|
@@ -4903,7 +4903,7 @@ END-ISO-10303-21;
|
|
|
4903
4903
|
const p = f.type.toUpperCase(), g = f.attributes ?? [];
|
|
4904
4904
|
if ((typeof g[1] == "string" ? g[1].replace(/\./g, "").toUpperCase() : "") === "LENGTHUNIT") {
|
|
4905
4905
|
if (p === "IFCSIUNIT") {
|
|
4906
|
-
const
|
|
4906
|
+
const h = typeof g[2] == "string" ? g[2].replace(/\./g, "").toUpperCase() : "", b = typeof g[3] == "string" ? g[3].replace(/\./g, "").toUpperCase() : "", C = h ? `${h}${b}` : b;
|
|
4907
4907
|
if (t === "METRE" && (C === "METRE" || C === "METER")) return d;
|
|
4908
4908
|
}
|
|
4909
4909
|
if (p === "IFCCONVERSIONBASEDUNIT" && (typeof g[2] == "string" ? this.normalizeMapUnitName(g[2]) : "") === t) return d;
|
|
@@ -4987,38 +4987,38 @@ END-ISO-10303-21;
|
|
|
4987
4987
|
getRelatedEntities(t) {
|
|
4988
4988
|
const e = this.dataStore.entityIndex.byId.get(t);
|
|
4989
4989
|
if (!e || !this.dataStore.source) return [];
|
|
4990
|
-
const
|
|
4991
|
-
if (!
|
|
4992
|
-
const
|
|
4993
|
-
for (const
|
|
4994
|
-
return
|
|
4990
|
+
const s = Z(this.dataStore.source, e.byteOffset, e.byteOffset + e.byteLength).match(/\(([^)]+)\)\s*,\s*#(\d+)\s*\)\s*;/);
|
|
4991
|
+
if (!s) return [];
|
|
4992
|
+
const r = s[1], a = [], c = r.matchAll(/#(\d+)/g);
|
|
4993
|
+
for (const l of c)a.push(parseInt(l[1], 10));
|
|
4994
|
+
return a;
|
|
4995
4995
|
}
|
|
4996
4996
|
getRelatedPropertySet(t) {
|
|
4997
4997
|
const e = this.dataStore.entityIndex.byId.get(t);
|
|
4998
4998
|
if (!e || !this.dataStore.source) return null;
|
|
4999
|
-
const
|
|
5000
|
-
return
|
|
4999
|
+
const s = Z(this.dataStore.source, e.byteOffset, e.byteOffset + e.byteLength).match(/,\s*#(\d+)\s*\)\s*;$/);
|
|
5000
|
+
return s ? parseInt(s[1], 10) : null;
|
|
5001
5001
|
}
|
|
5002
5002
|
getPropertySetName(t) {
|
|
5003
5003
|
const e = this.dataStore.entityIndex.byId.get(t);
|
|
5004
5004
|
if (!e || !this.dataStore.source) return null;
|
|
5005
|
-
const
|
|
5006
|
-
return
|
|
5005
|
+
const s = Z(this.dataStore.source, e.byteOffset, e.byteOffset + e.byteLength).match(/IFCPROPERTYSET\s*\([^,]*,[^,]*,'([^']*)'/i);
|
|
5006
|
+
return s ? s[1] : null;
|
|
5007
5007
|
}
|
|
5008
5008
|
getElementQuantityName(t) {
|
|
5009
5009
|
const e = this.dataStore.entityIndex.byId.get(t);
|
|
5010
5010
|
if (!e || !this.dataStore.source) return null;
|
|
5011
|
-
const
|
|
5012
|
-
return
|
|
5011
|
+
const s = Z(this.dataStore.source, e.byteOffset, e.byteOffset + e.byteLength).match(/IFCELEMENTQUANTITY\s*\([^,]*,[^,]*,'([^']*)'/i);
|
|
5012
|
+
return s ? s[1] : null;
|
|
5013
5013
|
}
|
|
5014
5014
|
getPropertyIdsInSet(t) {
|
|
5015
5015
|
const e = this.dataStore.entityIndex.byId.get(t);
|
|
5016
5016
|
if (!e || !this.dataStore.source) return [];
|
|
5017
|
-
const
|
|
5018
|
-
if (!
|
|
5019
|
-
const
|
|
5020
|
-
for (const
|
|
5021
|
-
return
|
|
5017
|
+
const s = Z(this.dataStore.source, e.byteOffset, e.byteOffset + e.byteLength).match(/\(\s*(#[^)]+)\s*\)\s*\)\s*;$/);
|
|
5018
|
+
if (!s) return [];
|
|
5019
|
+
const r = s[1], a = [], c = r.matchAll(/#(\d+)/g);
|
|
5020
|
+
for (const l of c)a.push(parseInt(l[1], 10));
|
|
5021
|
+
return a;
|
|
5022
5022
|
}
|
|
5023
5023
|
isTypeEntity(t) {
|
|
5024
5024
|
return this.dataStore.entityIndex.byId.get(t)?.type.toUpperCase().endsWith("TYPE") ?? !1;
|
|
@@ -5048,10 +5048,10 @@ END-ISO-10303-21;
|
|
|
5048
5048
|
replaceEntityAttribute(t, e, n) {
|
|
5049
5049
|
const s = this.dataStore.entityIndex.byId.get(t);
|
|
5050
5050
|
if (!s || !this.dataStore.source) return null;
|
|
5051
|
-
const
|
|
5052
|
-
if (!
|
|
5053
|
-
const [, l, d
|
|
5054
|
-
return e >=
|
|
5051
|
+
const a = Z(this.dataStore.source, s.byteOffset, s.byteOffset + s.byteLength).match(/^(#\d+\s*=\s*\w+\()([\s\S]*)(\)\s*;)\s*$/);
|
|
5052
|
+
if (!a) return null;
|
|
5053
|
+
const [, c, l, d] = a, _ = bs(l);
|
|
5054
|
+
return e >= _.length ? null : (_[e] = n, `${c}${_.join(",")}${d}`);
|
|
5055
5055
|
}
|
|
5056
5056
|
};
|
|
5057
5057
|
Ms = function(i, t) {
|
|
@@ -5095,48 +5095,48 @@ END-ISO-10303-21;
|
|
|
5095
5095
|
organization: t.organization || "",
|
|
5096
5096
|
application: t.application || "ifc-lite",
|
|
5097
5097
|
filename: t.filename || "merged.ifc"
|
|
5098
|
-
}), r = []
|
|
5099
|
-
let
|
|
5100
|
-
const
|
|
5101
|
-
for (const
|
|
5102
|
-
|
|
5103
|
-
let
|
|
5104
|
-
for (const [
|
|
5105
|
-
|
|
5106
|
-
}
|
|
5107
|
-
const
|
|
5108
|
-
let
|
|
5109
|
-
for (const
|
|
5110
|
-
const
|
|
5111
|
-
if (!
|
|
5112
|
-
let
|
|
5098
|
+
}), r = [];
|
|
5099
|
+
let a = 1;
|
|
5100
|
+
const c = new Map;
|
|
5101
|
+
for (const h of this.models){
|
|
5102
|
+
c.set(h.id, a - 1);
|
|
5103
|
+
let b = 0;
|
|
5104
|
+
for (const [C] of h.dataStore.entityIndex.byId)C > b && (b = C);
|
|
5105
|
+
a += b;
|
|
5106
|
+
}
|
|
5107
|
+
const l = this.models[0], d = c.get(l.id), _ = this.findInfrastructureEntities(l.dataStore), f = this.findEntitiesByType(l.dataStore, "IFCPROJECT"), p = this.buildSpatialLookup(l.dataStore);
|
|
5108
|
+
let g = !0;
|
|
5109
|
+
for (const h of this.models){
|
|
5110
|
+
const b = c.get(h.id), C = h.dataStore.source;
|
|
5111
|
+
if (!C || C.length === 0) continue;
|
|
5112
|
+
let w = null;
|
|
5113
5113
|
if (t.visibleOnly) {
|
|
5114
|
-
const
|
|
5115
|
-
|
|
5114
|
+
const z = t.hiddenEntityIdsByModel?.get(h.id) ?? new Set, m = t.isolatedEntityIdsByModel?.get(h.id) ?? null, { roots: N, hiddenProductIds: I } = Te(h.dataStore, z, m);
|
|
5115
|
+
w = Ce(N, C, h.dataStore.entityIndex.byId, I), Fe(w, C, h.dataStore.entityIndex);
|
|
5116
5116
|
}
|
|
5117
|
-
const
|
|
5118
|
-
if (!
|
|
5119
|
-
const
|
|
5120
|
-
if (
|
|
5121
|
-
const
|
|
5122
|
-
for (const [
|
|
5123
|
-
const
|
|
5124
|
-
|
|
5117
|
+
const A = new Map, M = new Set;
|
|
5118
|
+
if (!g) {
|
|
5119
|
+
const z = this.findEntitiesByType(h.dataStore, "IFCPROJECT");
|
|
5120
|
+
if (f.length > 0) for (const N of z)A.set(N, f[0] + d), M.add(N);
|
|
5121
|
+
const m = this.findInfrastructureEntities(h.dataStore);
|
|
5122
|
+
for (const [N, I] of _){
|
|
5123
|
+
const F = m.get(N);
|
|
5124
|
+
F && I.length > 0 && F.length > 0 && (A.set(F[0], I[0] + d), M.add(F[0]));
|
|
5125
5125
|
}
|
|
5126
|
-
this.unifySpatialEntities(
|
|
5126
|
+
this.unifySpatialEntities(h.dataStore, p, d, A, M), this.skipRedundantRelAggregates(h.dataStore, A, M);
|
|
5127
5127
|
}
|
|
5128
|
-
for (const [
|
|
5129
|
-
if (
|
|
5130
|
-
const
|
|
5131
|
-
let
|
|
5132
|
-
|
|
5133
|
-
const
|
|
5134
|
-
if (Re(
|
|
5135
|
-
const
|
|
5136
|
-
|
|
5137
|
-
} else r.push(
|
|
5128
|
+
for (const [z, m] of h.dataStore.entityIndex.byId){
|
|
5129
|
+
if (w !== null && !w.has(z) || M.has(z)) continue;
|
|
5130
|
+
const N = Z(C, m.byteOffset, m.byteOffset + m.byteLength);
|
|
5131
|
+
let I;
|
|
5132
|
+
b === 0 && A.size === 0 ? I = N : I = this.remapEntityText(N, b, A);
|
|
5133
|
+
const F = h.dataStore.schemaVersion || "IFC4";
|
|
5134
|
+
if (Re(F, n)) {
|
|
5135
|
+
const R = ie(I, F, n);
|
|
5136
|
+
R !== null && r.push(R);
|
|
5137
|
+
} else r.push(I);
|
|
5138
5138
|
}
|
|
5139
|
-
|
|
5139
|
+
g = !1;
|
|
5140
5140
|
}
|
|
5141
5141
|
e && e({
|
|
5142
5142
|
phase: "assembling",
|
|
@@ -5144,13 +5144,13 @@ END-ISO-10303-21;
|
|
|
5144
5144
|
entitiesProcessed: r.length,
|
|
5145
5145
|
entitiesTotal: r.length
|
|
5146
5146
|
});
|
|
5147
|
-
const
|
|
5147
|
+
const u = sn(s, r);
|
|
5148
5148
|
return {
|
|
5149
|
-
content:
|
|
5149
|
+
content: u,
|
|
5150
5150
|
stats: {
|
|
5151
5151
|
modelCount: this.models.length,
|
|
5152
5152
|
totalEntityCount: r.length,
|
|
5153
|
-
fileSize:
|
|
5153
|
+
fileSize: u.byteLength
|
|
5154
5154
|
}
|
|
5155
5155
|
};
|
|
5156
5156
|
}
|
|
@@ -5162,91 +5162,91 @@ END-ISO-10303-21;
|
|
|
5162
5162
|
organization: t.organization || "",
|
|
5163
5163
|
application: t.application || "ifc-lite",
|
|
5164
5164
|
filename: t.filename || "merged.ifc"
|
|
5165
|
-
}), r = []
|
|
5166
|
-
let
|
|
5167
|
-
for (const
|
|
5168
|
-
let
|
|
5169
|
-
const
|
|
5170
|
-
for (const
|
|
5171
|
-
|
|
5172
|
-
let
|
|
5173
|
-
for (const [
|
|
5174
|
-
|
|
5175
|
-
}
|
|
5176
|
-
const
|
|
5177
|
-
let
|
|
5178
|
-
const
|
|
5165
|
+
}), r = [];
|
|
5166
|
+
let a = 0;
|
|
5167
|
+
for (const w of this.models)a += w.dataStore.entityIndex.byId.size;
|
|
5168
|
+
let c = 1;
|
|
5169
|
+
const l = new Map;
|
|
5170
|
+
for (const w of this.models){
|
|
5171
|
+
l.set(w.id, c - 1);
|
|
5172
|
+
let A = 0;
|
|
5173
|
+
for (const [M] of w.dataStore.entityIndex.byId)M > A && (A = M);
|
|
5174
|
+
c += A;
|
|
5175
|
+
}
|
|
5176
|
+
const d = this.models[0], _ = l.get(d.id), f = this.findInfrastructureEntities(d.dataStore), p = this.findEntitiesByType(d.dataStore, "IFCPROJECT"), g = this.buildSpatialLookup(d.dataStore);
|
|
5177
|
+
let u = !0, h = 0;
|
|
5178
|
+
const b = 2e3;
|
|
5179
5179
|
e && e({
|
|
5180
5180
|
phase: "preparing",
|
|
5181
5181
|
percent: 0,
|
|
5182
5182
|
entitiesProcessed: 0,
|
|
5183
|
-
entitiesTotal:
|
|
5183
|
+
entitiesTotal: a
|
|
5184
5184
|
});
|
|
5185
|
-
for (const
|
|
5186
|
-
const
|
|
5187
|
-
if (!
|
|
5185
|
+
for (const w of this.models){
|
|
5186
|
+
const A = l.get(w.id), M = w.dataStore.source;
|
|
5187
|
+
if (!M || M.length === 0) continue;
|
|
5188
5188
|
e && e({
|
|
5189
5189
|
phase: "entities",
|
|
5190
|
-
percent:
|
|
5191
|
-
entitiesProcessed:
|
|
5192
|
-
entitiesTotal:
|
|
5193
|
-
currentModel:
|
|
5190
|
+
percent: a > 0 ? h / a * .85 : 0,
|
|
5191
|
+
entitiesProcessed: h,
|
|
5192
|
+
entitiesTotal: a,
|
|
5193
|
+
currentModel: w.name
|
|
5194
5194
|
});
|
|
5195
|
-
let
|
|
5195
|
+
let z = null;
|
|
5196
5196
|
if (t.visibleOnly) {
|
|
5197
|
-
const
|
|
5198
|
-
|
|
5197
|
+
const F = t.hiddenEntityIdsByModel?.get(w.id) ?? new Set, R = t.isolatedEntityIdsByModel?.get(w.id) ?? null, { roots: E, hiddenProductIds: y } = Te(w.dataStore, F, R);
|
|
5198
|
+
z = Ce(E, M, w.dataStore.entityIndex.byId, y), Fe(z, M, w.dataStore.entityIndex);
|
|
5199
5199
|
}
|
|
5200
|
-
const
|
|
5201
|
-
if (!
|
|
5202
|
-
const
|
|
5203
|
-
if (
|
|
5204
|
-
const
|
|
5205
|
-
for (const [
|
|
5206
|
-
const
|
|
5207
|
-
|
|
5200
|
+
const m = new Map, N = new Set;
|
|
5201
|
+
if (!u) {
|
|
5202
|
+
const F = this.findEntitiesByType(w.dataStore, "IFCPROJECT");
|
|
5203
|
+
if (p.length > 0) for (const E of F)m.set(E, p[0] + _), N.add(E);
|
|
5204
|
+
const R = this.findInfrastructureEntities(w.dataStore);
|
|
5205
|
+
for (const [E, y] of f){
|
|
5206
|
+
const T = R.get(E);
|
|
5207
|
+
T && y.length > 0 && T.length > 0 && (m.set(T[0], y[0] + _), N.add(T[0]));
|
|
5208
5208
|
}
|
|
5209
|
-
this.unifySpatialEntities(
|
|
5209
|
+
this.unifySpatialEntities(w.dataStore, g, _, m, N), this.skipRedundantRelAggregates(w.dataStore, m, N);
|
|
5210
5210
|
}
|
|
5211
|
-
let
|
|
5212
|
-
for (const [
|
|
5213
|
-
if (
|
|
5214
|
-
const
|
|
5215
|
-
let
|
|
5216
|
-
|
|
5217
|
-
const
|
|
5218
|
-
if (Re(
|
|
5219
|
-
const
|
|
5220
|
-
|
|
5221
|
-
} else r.push(
|
|
5222
|
-
|
|
5211
|
+
let I = 0;
|
|
5212
|
+
for (const [F, R] of w.dataStore.entityIndex.byId){
|
|
5213
|
+
if (z !== null && !z.has(F) || N.has(F)) continue;
|
|
5214
|
+
const E = Z(M, R.byteOffset, R.byteOffset + R.byteLength);
|
|
5215
|
+
let y;
|
|
5216
|
+
A === 0 && m.size === 0 ? y = E : y = this.remapEntityText(E, A, m);
|
|
5217
|
+
const T = w.dataStore.schemaVersion || "IFC4";
|
|
5218
|
+
if (Re(T, n)) {
|
|
5219
|
+
const O = ie(y, T, n);
|
|
5220
|
+
O !== null && r.push(O);
|
|
5221
|
+
} else r.push(y);
|
|
5222
|
+
I++, h++, I % b === 0 && (e && e({
|
|
5223
5223
|
phase: "entities",
|
|
5224
|
-
percent:
|
|
5225
|
-
entitiesProcessed:
|
|
5226
|
-
entitiesTotal:
|
|
5227
|
-
currentModel:
|
|
5228
|
-
}), await new Promise((
|
|
5224
|
+
percent: a > 0 ? h / a * .85 : 0,
|
|
5225
|
+
entitiesProcessed: h,
|
|
5226
|
+
entitiesTotal: a,
|
|
5227
|
+
currentModel: w.name
|
|
5228
|
+
}), await new Promise((O)=>setTimeout(O, 0)));
|
|
5229
5229
|
}
|
|
5230
|
-
|
|
5230
|
+
u = !1;
|
|
5231
5231
|
}
|
|
5232
5232
|
e && e({
|
|
5233
5233
|
phase: "assembling",
|
|
5234
5234
|
percent: .9,
|
|
5235
|
-
entitiesProcessed:
|
|
5236
|
-
entitiesTotal:
|
|
5237
|
-
}), await new Promise((
|
|
5238
|
-
const
|
|
5235
|
+
entitiesProcessed: a,
|
|
5236
|
+
entitiesTotal: a
|
|
5237
|
+
}), await new Promise((w)=>setTimeout(w, 0));
|
|
5238
|
+
const C = sn(s, r);
|
|
5239
5239
|
return e && e({
|
|
5240
5240
|
phase: "assembling",
|
|
5241
5241
|
percent: 1,
|
|
5242
|
-
entitiesProcessed:
|
|
5243
|
-
entitiesTotal:
|
|
5242
|
+
entitiesProcessed: a,
|
|
5243
|
+
entitiesTotal: a
|
|
5244
5244
|
}), {
|
|
5245
|
-
content:
|
|
5245
|
+
content: C,
|
|
5246
5246
|
stats: {
|
|
5247
5247
|
modelCount: this.models.length,
|
|
5248
5248
|
totalEntityCount: r.length,
|
|
5249
|
-
fileSize:
|
|
5249
|
+
fileSize: C.byteLength
|
|
5250
5250
|
}
|
|
5251
5251
|
};
|
|
5252
5252
|
}
|
|
@@ -5269,8 +5269,8 @@ END-ISO-10303-21;
|
|
|
5269
5269
|
findEntitiesByType(t, e) {
|
|
5270
5270
|
return t.entityIndex.byType.get(e) ?? [];
|
|
5271
5271
|
}
|
|
5272
|
-
buildSpatialLookup(t
|
|
5273
|
-
const
|
|
5272
|
+
buildSpatialLookup(t) {
|
|
5273
|
+
const e = {
|
|
5274
5274
|
sitesByName: new Map,
|
|
5275
5275
|
buildingsByName: new Map,
|
|
5276
5276
|
storeysByName: new Map,
|
|
@@ -5278,116 +5278,116 @@ END-ISO-10303-21;
|
|
|
5278
5278
|
siteIds: [],
|
|
5279
5279
|
buildingIds: []
|
|
5280
5280
|
};
|
|
5281
|
-
for (const
|
|
5282
|
-
|
|
5283
|
-
const
|
|
5284
|
-
|
|
5285
|
-
}
|
|
5286
|
-
for (const
|
|
5287
|
-
|
|
5288
|
-
const
|
|
5289
|
-
|
|
5290
|
-
}
|
|
5291
|
-
for (const
|
|
5292
|
-
const
|
|
5293
|
-
|
|
5294
|
-
const
|
|
5295
|
-
|
|
5296
|
-
expressId:
|
|
5297
|
-
elevation:
|
|
5281
|
+
for (const n of this.findEntitiesByType(t, "IFCSITE")){
|
|
5282
|
+
e.siteIds.push(n);
|
|
5283
|
+
const s = this.extractEntityName(n, t);
|
|
5284
|
+
s && e.sitesByName.set(s.toLowerCase(), n);
|
|
5285
|
+
}
|
|
5286
|
+
for (const n of this.findEntitiesByType(t, "IFCBUILDING")){
|
|
5287
|
+
e.buildingIds.push(n);
|
|
5288
|
+
const s = this.extractEntityName(n, t);
|
|
5289
|
+
s && e.buildingsByName.set(s.toLowerCase(), n);
|
|
5290
|
+
}
|
|
5291
|
+
for (const n of this.findEntitiesByType(t, "IFCBUILDINGSTOREY")){
|
|
5292
|
+
const s = this.extractEntityName(n, t);
|
|
5293
|
+
s && e.storeysByName.set(s.toLowerCase(), n);
|
|
5294
|
+
const r = this.extractStoreyElevation(n, t);
|
|
5295
|
+
r !== void 0 && e.storeysByElevation.push({
|
|
5296
|
+
expressId: n,
|
|
5297
|
+
elevation: r
|
|
5298
5298
|
});
|
|
5299
5299
|
}
|
|
5300
|
-
return
|
|
5300
|
+
return e;
|
|
5301
5301
|
}
|
|
5302
|
-
unifySpatialEntities(t, e, n, s, r
|
|
5303
|
-
const
|
|
5304
|
-
for (const
|
|
5305
|
-
const
|
|
5306
|
-
let
|
|
5307
|
-
|
|
5308
|
-
}
|
|
5309
|
-
const
|
|
5310
|
-
for (const
|
|
5311
|
-
const
|
|
5312
|
-
let
|
|
5313
|
-
|
|
5314
|
-
}
|
|
5315
|
-
const
|
|
5316
|
-
for (const
|
|
5317
|
-
const
|
|
5318
|
-
let
|
|
5319
|
-
if (
|
|
5320
|
-
const
|
|
5321
|
-
|
|
5302
|
+
unifySpatialEntities(t, e, n, s, r) {
|
|
5303
|
+
const a = this.findEntitiesByType(t, "IFCSITE");
|
|
5304
|
+
for (const d of a){
|
|
5305
|
+
const _ = this.extractEntityName(d, t);
|
|
5306
|
+
let f;
|
|
5307
|
+
_ && (f = e.sitesByName.get(_.toLowerCase())), f === void 0 && a.length === 1 && e.siteIds.length === 1 && (f = e.siteIds[0]), f !== void 0 && (s.set(d, f + n), r.add(d));
|
|
5308
|
+
}
|
|
5309
|
+
const c = this.findEntitiesByType(t, "IFCBUILDING");
|
|
5310
|
+
for (const d of c){
|
|
5311
|
+
const _ = this.extractEntityName(d, t);
|
|
5312
|
+
let f;
|
|
5313
|
+
_ && (f = e.buildingsByName.get(_.toLowerCase())), f === void 0 && c.length === 1 && e.buildingIds.length === 1 && (f = e.buildingIds[0]), f !== void 0 && (s.set(d, f + n), r.add(d));
|
|
5314
|
+
}
|
|
5315
|
+
const l = new Set;
|
|
5316
|
+
for (const d of this.findEntitiesByType(t, "IFCBUILDINGSTOREY")){
|
|
5317
|
+
const _ = this.extractEntityName(d, t);
|
|
5318
|
+
let f;
|
|
5319
|
+
if (_) {
|
|
5320
|
+
const p = e.storeysByName.get(_.toLowerCase());
|
|
5321
|
+
p !== void 0 && !l.has(p) && (f = p);
|
|
5322
5322
|
}
|
|
5323
|
-
if (
|
|
5324
|
-
const
|
|
5325
|
-
if (
|
|
5326
|
-
if (
|
|
5327
|
-
const
|
|
5328
|
-
if (Math.abs(
|
|
5329
|
-
|
|
5323
|
+
if (f === void 0) {
|
|
5324
|
+
const p = this.extractStoreyElevation(d, t);
|
|
5325
|
+
if (p !== void 0) for (const g of e.storeysByElevation){
|
|
5326
|
+
if (l.has(g.expressId)) continue;
|
|
5327
|
+
const u = Math.max(.5, Math.abs(g.elevation) * .01);
|
|
5328
|
+
if (Math.abs(p - g.elevation) <= u) {
|
|
5329
|
+
f = g.expressId;
|
|
5330
5330
|
break;
|
|
5331
5331
|
}
|
|
5332
5332
|
}
|
|
5333
5333
|
}
|
|
5334
|
-
|
|
5335
|
-
}
|
|
5336
|
-
}
|
|
5337
|
-
skipRedundantRelAggregates(t, e, n, s) {
|
|
5338
|
-
for (const r of this.findEntitiesByType(t, "IFCRELAGGREGATES")){
|
|
5339
|
-
const a = this.extractStepAttribute(r, t, e, 4);
|
|
5340
|
-
if (!a) continue;
|
|
5341
|
-
const c = a.match(/^#(\d+)$/);
|
|
5342
|
-
if (!c || !n.has(parseInt(c[1], 10))) continue;
|
|
5343
|
-
const l = this.extractStepAttribute(r, t, e, 5);
|
|
5344
|
-
if (!l) continue;
|
|
5345
|
-
const d = [], _ = /#(\d+)/g;
|
|
5346
|
-
let f;
|
|
5347
|
-
for(; (f = _.exec(l)) !== null;)d.push(parseInt(f[1], 10));
|
|
5348
|
-
d.length !== 0 && d.every((p)=>n.has(p)) && s.add(r);
|
|
5334
|
+
f !== void 0 && (l.add(f), s.set(d, f + n), r.add(d));
|
|
5349
5335
|
}
|
|
5350
5336
|
}
|
|
5351
|
-
|
|
5352
|
-
const s
|
|
5353
|
-
|
|
5354
|
-
|
|
5355
|
-
const
|
|
5356
|
-
|
|
5337
|
+
skipRedundantRelAggregates(t, e, n) {
|
|
5338
|
+
for (const s of this.findEntitiesByType(t, "IFCRELAGGREGATES")){
|
|
5339
|
+
const r = this.extractStepAttribute(s, t, 4);
|
|
5340
|
+
if (!r) continue;
|
|
5341
|
+
const a = r.match(/^#(\d+)$/);
|
|
5342
|
+
if (!a || !e.has(parseInt(a[1], 10))) continue;
|
|
5343
|
+
const c = this.extractStepAttribute(s, t, 5);
|
|
5344
|
+
if (!c) continue;
|
|
5345
|
+
const l = [], d = /#(\d+)/g;
|
|
5346
|
+
let _;
|
|
5347
|
+
for(; (_ = d.exec(c)) !== null;)l.push(parseInt(_[1], 10));
|
|
5348
|
+
l.length !== 0 && l.every((f)=>e.has(f)) && n.add(s);
|
|
5349
|
+
}
|
|
5350
|
+
}
|
|
5351
|
+
extractEntityName(t, e) {
|
|
5352
|
+
const n = this.extractStepAttribute(t, e, 2);
|
|
5353
|
+
if (!n || n === "$") return null;
|
|
5354
|
+
if (n.startsWith("'") && n.endsWith("'")) {
|
|
5355
|
+
const s = n.slice(1, -1).replace(/''/g, "'");
|
|
5356
|
+
return En(s);
|
|
5357
5357
|
}
|
|
5358
5358
|
return null;
|
|
5359
5359
|
}
|
|
5360
|
-
extractStoreyElevation(t, e
|
|
5361
|
-
const
|
|
5362
|
-
if (!
|
|
5363
|
-
const
|
|
5364
|
-
return isNaN(
|
|
5360
|
+
extractStoreyElevation(t, e) {
|
|
5361
|
+
const n = this.extractStepAttribute(t, e, 9);
|
|
5362
|
+
if (!n || n === "$") return;
|
|
5363
|
+
const s = n.match(/^[A-Z_]+\(([^)]+)\)$/i), r = s ? s[1] : n, a = parseFloat(r);
|
|
5364
|
+
return isNaN(a) ? void 0 : a;
|
|
5365
5365
|
}
|
|
5366
|
-
extractStepAttribute(t, e, n
|
|
5367
|
-
const
|
|
5366
|
+
extractStepAttribute(t, e, n) {
|
|
5367
|
+
const s = e.source;
|
|
5368
|
+
if (!s) return null;
|
|
5369
|
+
const r = e.entityIndex.byId.get(t);
|
|
5368
5370
|
if (!r) return null;
|
|
5369
|
-
const a =
|
|
5370
|
-
if (
|
|
5371
|
-
|
|
5372
|
-
|
|
5373
|
-
|
|
5374
|
-
|
|
5375
|
-
|
|
5376
|
-
|
|
5377
|
-
|
|
5378
|
-
if (g + 1 < c.length && c[g + 1] === "'") {
|
|
5379
|
-
g++;
|
|
5371
|
+
const a = Z(s, r.byteOffset, r.byteOffset + r.byteLength), c = a.indexOf("(");
|
|
5372
|
+
if (c === -1) return null;
|
|
5373
|
+
let l = 0, d = 0, _ = c + 1, f = !1;
|
|
5374
|
+
for(let p = c + 1; p < a.length; p++){
|
|
5375
|
+
const g = a[p];
|
|
5376
|
+
if (g === "'" && !f) f = !0;
|
|
5377
|
+
else if (g === "'" && f) {
|
|
5378
|
+
if (p + 1 < a.length && a[p + 1] === "'") {
|
|
5379
|
+
p++;
|
|
5380
5380
|
continue;
|
|
5381
5381
|
}
|
|
5382
|
-
|
|
5383
|
-
} else if (!
|
|
5384
|
-
if (
|
|
5385
|
-
else if (
|
|
5386
|
-
if (
|
|
5387
|
-
|
|
5388
|
-
} else if (
|
|
5389
|
-
if (
|
|
5390
|
-
|
|
5382
|
+
f = !1;
|
|
5383
|
+
} else if (!f) {
|
|
5384
|
+
if (g === "(") l++;
|
|
5385
|
+
else if (g === ")") {
|
|
5386
|
+
if (l === 0) return d === n ? a.substring(_, p).trim() : null;
|
|
5387
|
+
l--;
|
|
5388
|
+
} else if (g === "," && l === 0) {
|
|
5389
|
+
if (d === n) return a.substring(_, p).trim();
|
|
5390
|
+
d++, _ = p + 1;
|
|
5391
5391
|
}
|
|
5392
5392
|
}
|
|
5393
5393
|
}
|
|
@@ -5453,49 +5453,49 @@ END-ISO-10303-21;
|
|
|
5453
5453
|
let c = 0, l = 0;
|
|
5454
5454
|
const { entities: d, strings: _ } = this.dataStore;
|
|
5455
5455
|
let f = null;
|
|
5456
|
-
for(let
|
|
5457
|
-
const
|
|
5458
|
-
if (s && !s.has(
|
|
5459
|
-
const C = d.typeEnum[
|
|
5460
|
-
|
|
5461
|
-
const
|
|
5462
|
-
|
|
5463
|
-
code:
|
|
5464
|
-
uri: `https://identifier.buildingsmart.org/uri/buildingsmart/ifc/5/class/${
|
|
5456
|
+
for(let h = 0; h < d.count; h++){
|
|
5457
|
+
const b = d.expressId[h];
|
|
5458
|
+
if (s && !s.has(b) || r && !r.has(b)) continue;
|
|
5459
|
+
const C = d.typeEnum[h], w = be(C) || "IfcElement", A = fn(w.toUpperCase(), e, "IFC5"), M = Rs(A);
|
|
5460
|
+
M === "IfcProject" && (f = b);
|
|
5461
|
+
const z = this.entityUuids.get(b) || ye(b), m = {};
|
|
5462
|
+
m["bsi::ifc::class"] = {
|
|
5463
|
+
code: M,
|
|
5464
|
+
uri: `https://identifier.buildingsmart.org/uri/buildingsmart/ifc/5/class/${M}`
|
|
5465
5465
|
};
|
|
5466
|
-
const
|
|
5467
|
-
|
|
5468
|
-
const
|
|
5469
|
-
if (
|
|
5470
|
-
const E = this.getPropertiesForEntity(
|
|
5471
|
-
for (const [
|
|
5466
|
+
const N = _.get(d.name[h]) || this.spatialNodeNames.get(b);
|
|
5467
|
+
N && (m["bsi::ifc::prop::Name"] = N);
|
|
5468
|
+
const I = _.get(d.description[h]);
|
|
5469
|
+
if (I && (m["bsi::ifc::prop::Description"] = I), t.includeProperties !== !1) {
|
|
5470
|
+
const E = this.getPropertiesForEntity(b, t);
|
|
5471
|
+
for (const [y, T] of Object.entries(E))m[y] = T, c++;
|
|
5472
5472
|
}
|
|
5473
5473
|
const F = {
|
|
5474
|
-
path:
|
|
5475
|
-
},
|
|
5476
|
-
if (Object.keys(
|
|
5477
|
-
const E = n.get(
|
|
5474
|
+
path: z
|
|
5475
|
+
}, R = this.getChildrenForEntity(b);
|
|
5476
|
+
if (Object.keys(R).length > 0 && (F.children = R), t.includeGeometry !== !1) {
|
|
5477
|
+
const E = n.get(b);
|
|
5478
5478
|
if (E && E.length > 0) {
|
|
5479
|
-
const
|
|
5480
|
-
|
|
5481
|
-
const [
|
|
5482
|
-
|
|
5483
|
-
|
|
5484
|
-
|
|
5485
|
-
|
|
5486
|
-
],
|
|
5479
|
+
const y = this.convertToUsdMesh(E);
|
|
5480
|
+
m["usd::usdgeom::mesh"] = y;
|
|
5481
|
+
const [T, O, V, U] = E[0].color;
|
|
5482
|
+
m["bsi::ifc::presentation::diffuseColor"] = [
|
|
5483
|
+
T,
|
|
5484
|
+
O,
|
|
5485
|
+
V
|
|
5486
|
+
], U < 1 && (m["bsi::ifc::presentation::opacity"] = U), l++;
|
|
5487
5487
|
}
|
|
5488
5488
|
}
|
|
5489
|
-
Object.keys(
|
|
5489
|
+
Object.keys(m).length > 0 && (F.attributes = m), a.push(F);
|
|
5490
5490
|
}
|
|
5491
5491
|
if (f !== null) {
|
|
5492
|
-
const
|
|
5493
|
-
if (
|
|
5494
|
-
const
|
|
5492
|
+
const h = this.entityUuids.get(f);
|
|
5493
|
+
if (h) {
|
|
5494
|
+
const b = this.childNames.get(f) || _.get(d.name[this.findEntityIndex(f)]) || "Project", C = ye(0);
|
|
5495
5495
|
a.unshift({
|
|
5496
5496
|
path: C,
|
|
5497
5497
|
children: {
|
|
5498
|
-
[
|
|
5498
|
+
[b]: h
|
|
5499
5499
|
},
|
|
5500
5500
|
attributes: {}
|
|
5501
5501
|
});
|
|
@@ -5606,12 +5606,12 @@ END-ISO-10303-21;
|
|
|
5606
5606
|
convertPropertyValue(t, e) {
|
|
5607
5607
|
if (t == null) return null;
|
|
5608
5608
|
switch(e){
|
|
5609
|
-
case
|
|
5609
|
+
case et.Real:
|
|
5610
5610
|
return Number(t);
|
|
5611
|
-
case
|
|
5611
|
+
case et.Integer:
|
|
5612
5612
|
return Math.round(Number(t));
|
|
5613
|
-
case
|
|
5614
|
-
case
|
|
5613
|
+
case et.Boolean:
|
|
5614
|
+
case et.Logical:
|
|
5615
5615
|
return !!t;
|
|
5616
5616
|
default:
|
|
5617
5617
|
return t;
|
|
@@ -5720,4 +5720,4 @@ END-ISO-10303-21;
|
|
|
5720
5720
|
return n.startsWith("ifc") ? "Ifc" + n.charAt(3).toUpperCase() + n.slice(4) : i;
|
|
5721
5721
|
}
|
|
5722
5722
|
});
|
|
5723
|
-
export {
|
|
5723
|
+
export { xs as C, Os as G, rn as I, Ls as M, Es as S, dn as _, we as a, $n as b, Bs as c, Ee as d, Un as e, ee as f, As as g, Ms as h, Ns as i, __tla };
|