@ifc-lite/viewer 1.17.3 → 1.17.4
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 +39 -30
- package/.turbo/turbo-typecheck.log +1 -1
- package/CHANGELOG.md +15 -0
- package/DESKTOP_CONTRACT_VERSION +1 -0
- package/dist/assets/arrow-CZ5kQ26f.js +20 -0
- package/dist/assets/basketViewActivator-BmnNtVfZ.js +1 -0
- package/dist/assets/{bcf-D5-QWGO9.js → bcf-DOG9_WPX.js} +1 -1
- package/dist/assets/{browser-CKs-FY1P.js → browser-C5TFR7sH.js} +1 -1
- package/dist/assets/cesium-ADbP7waU.css +1 -0
- package/dist/assets/cesium-DUOzBlqv.js +17817 -0
- package/dist/assets/{exporters-C_6J153K.js → exporters-ChAtBmlj.js} +2225 -1754
- package/dist/assets/geometry.worker-BQ0rzNo-.js +1 -0
- package/dist/assets/ifc-lite_bg-BX4E7TX8.wasm +0 -0
- package/dist/assets/{index-jhBr1wbn.js → index-Co8E2-FE.js} +28959 -24612
- package/dist/assets/index-DckuDqlv.css +1 -0
- package/dist/assets/{maplibre-gl-BpvwNKKy.js → maplibre-gl-CGLcoNXc.js} +1 -1
- package/dist/assets/native-bridge-BRvbckFQ.js +429 -0
- package/dist/assets/{sandbox-B79eavQ3.js → sandbox-DZiNLNMk.js} +5 -5
- package/dist/assets/{server-client-D3bUPJJc.js → server-client-BV8zHZ7Y.js} +4 -4
- package/dist/assets/tauri-core-stub-D8Fa-u43.js +1 -0
- package/dist/assets/tauri-dialog-stub-r7Wksg7o.js +1 -0
- package/dist/assets/tauri-fs-stub-BdeRC7aK.js +1 -0
- package/dist/assets/wasm-bridge-g01g7T9b.js +1 -0
- package/dist/assets/{zip-B-jFFAGa.js → zip-DBEtpeu6.js} +3 -3
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_0.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_1.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_10.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_11.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_12.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_13.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_14.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_15.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_16.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_17.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_18.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_19.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_2.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_20.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_21.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_22.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_23.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_24.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_25.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_26.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_27.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_3.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_4.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_5.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_6.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_7.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_8.json +1 -0
- package/dist/cesium/Assets/IAU2006_XYS/IAU2006_XYS_9.json +1 -0
- package/dist/cesium/Assets/Images/bing_maps_credit.png +0 -0
- package/dist/cesium/Assets/Images/cesium_credit.png +0 -0
- package/dist/cesium/Assets/Images/google_earth_credit.png +0 -0
- package/dist/cesium/Assets/Images/ion-credit.png +0 -0
- package/dist/cesium/Assets/Textures/LensFlare/DirtMask.jpg +0 -0
- package/dist/cesium/Assets/Textures/LensFlare/StarBurst.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/0/0/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/0/1/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/0/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/0/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/1/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/1/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/2/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/2/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/3/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/1/3/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/0/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/1/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/2/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/3/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/4/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/5/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/6/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/0.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/1.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/2.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/2/7/3.jpg +0 -0
- package/dist/cesium/Assets/Textures/NaturalEarthII/tilemapresource.xml +14 -0
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_mx.jpg +0 -0
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_my.jpg +0 -0
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_mz.jpg +0 -0
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_px.jpg +0 -0
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_py.jpg +0 -0
- package/dist/cesium/Assets/Textures/SkyBox/tycho2t3_80_pz.jpg +0 -0
- package/dist/cesium/Assets/Textures/maki/airfield.png +0 -0
- package/dist/cesium/Assets/Textures/maki/airport.png +0 -0
- package/dist/cesium/Assets/Textures/maki/alcohol-shop.png +0 -0
- package/dist/cesium/Assets/Textures/maki/america-football.png +0 -0
- package/dist/cesium/Assets/Textures/maki/art-gallery.png +0 -0
- package/dist/cesium/Assets/Textures/maki/bakery.png +0 -0
- package/dist/cesium/Assets/Textures/maki/bank.png +0 -0
- package/dist/cesium/Assets/Textures/maki/bar.png +0 -0
- package/dist/cesium/Assets/Textures/maki/baseball.png +0 -0
- package/dist/cesium/Assets/Textures/maki/basketball.png +0 -0
- package/dist/cesium/Assets/Textures/maki/beer.png +0 -0
- package/dist/cesium/Assets/Textures/maki/bicycle.png +0 -0
- package/dist/cesium/Assets/Textures/maki/building.png +0 -0
- package/dist/cesium/Assets/Textures/maki/bus.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cafe.png +0 -0
- package/dist/cesium/Assets/Textures/maki/camera.png +0 -0
- package/dist/cesium/Assets/Textures/maki/campsite.png +0 -0
- package/dist/cesium/Assets/Textures/maki/car.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cemetery.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cesium.png +0 -0
- package/dist/cesium/Assets/Textures/maki/chemist.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cinema.png +0 -0
- package/dist/cesium/Assets/Textures/maki/circle-stroked.png +0 -0
- package/dist/cesium/Assets/Textures/maki/circle.png +0 -0
- package/dist/cesium/Assets/Textures/maki/city.png +0 -0
- package/dist/cesium/Assets/Textures/maki/clothing-store.png +0 -0
- package/dist/cesium/Assets/Textures/maki/college.png +0 -0
- package/dist/cesium/Assets/Textures/maki/commercial.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cricket.png +0 -0
- package/dist/cesium/Assets/Textures/maki/cross.png +0 -0
- package/dist/cesium/Assets/Textures/maki/dam.png +0 -0
- package/dist/cesium/Assets/Textures/maki/danger.png +0 -0
- package/dist/cesium/Assets/Textures/maki/disability.png +0 -0
- package/dist/cesium/Assets/Textures/maki/dog-park.png +0 -0
- package/dist/cesium/Assets/Textures/maki/embassy.png +0 -0
- package/dist/cesium/Assets/Textures/maki/emergency-telephone.png +0 -0
- package/dist/cesium/Assets/Textures/maki/entrance.png +0 -0
- package/dist/cesium/Assets/Textures/maki/farm.png +0 -0
- package/dist/cesium/Assets/Textures/maki/fast-food.png +0 -0
- package/dist/cesium/Assets/Textures/maki/ferry.png +0 -0
- package/dist/cesium/Assets/Textures/maki/fire-station.png +0 -0
- package/dist/cesium/Assets/Textures/maki/fuel.png +0 -0
- package/dist/cesium/Assets/Textures/maki/garden.png +0 -0
- package/dist/cesium/Assets/Textures/maki/gift.png +0 -0
- package/dist/cesium/Assets/Textures/maki/golf.png +0 -0
- package/dist/cesium/Assets/Textures/maki/grocery.png +0 -0
- package/dist/cesium/Assets/Textures/maki/hairdresser.png +0 -0
- package/dist/cesium/Assets/Textures/maki/harbor.png +0 -0
- package/dist/cesium/Assets/Textures/maki/heart.png +0 -0
- package/dist/cesium/Assets/Textures/maki/heliport.png +0 -0
- package/dist/cesium/Assets/Textures/maki/hospital.png +0 -0
- package/dist/cesium/Assets/Textures/maki/ice-cream.png +0 -0
- package/dist/cesium/Assets/Textures/maki/industrial.png +0 -0
- package/dist/cesium/Assets/Textures/maki/land-use.png +0 -0
- package/dist/cesium/Assets/Textures/maki/laundry.png +0 -0
- package/dist/cesium/Assets/Textures/maki/library.png +0 -0
- package/dist/cesium/Assets/Textures/maki/lighthouse.png +0 -0
- package/dist/cesium/Assets/Textures/maki/lodging.png +0 -0
- package/dist/cesium/Assets/Textures/maki/logging.png +0 -0
- package/dist/cesium/Assets/Textures/maki/london-underground.png +0 -0
- package/dist/cesium/Assets/Textures/maki/marker-stroked.png +0 -0
- package/dist/cesium/Assets/Textures/maki/marker.png +0 -0
- package/dist/cesium/Assets/Textures/maki/minefield.png +0 -0
- package/dist/cesium/Assets/Textures/maki/mobilephone.png +0 -0
- package/dist/cesium/Assets/Textures/maki/monument.png +0 -0
- package/dist/cesium/Assets/Textures/maki/museum.png +0 -0
- package/dist/cesium/Assets/Textures/maki/music.png +0 -0
- package/dist/cesium/Assets/Textures/maki/oil-well.png +0 -0
- package/dist/cesium/Assets/Textures/maki/park.png +0 -0
- package/dist/cesium/Assets/Textures/maki/park2.png +0 -0
- package/dist/cesium/Assets/Textures/maki/parking-garage.png +0 -0
- package/dist/cesium/Assets/Textures/maki/parking.png +0 -0
- package/dist/cesium/Assets/Textures/maki/pharmacy.png +0 -0
- package/dist/cesium/Assets/Textures/maki/pitch.png +0 -0
- package/dist/cesium/Assets/Textures/maki/place-of-worship.png +0 -0
- package/dist/cesium/Assets/Textures/maki/playground.png +0 -0
- package/dist/cesium/Assets/Textures/maki/police.png +0 -0
- package/dist/cesium/Assets/Textures/maki/polling-place.png +0 -0
- package/dist/cesium/Assets/Textures/maki/post.png +0 -0
- package/dist/cesium/Assets/Textures/maki/prison.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rail-above.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rail-light.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rail-metro.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rail-underground.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rail.png +0 -0
- package/dist/cesium/Assets/Textures/maki/religious-christian.png +0 -0
- package/dist/cesium/Assets/Textures/maki/religious-jewish.png +0 -0
- package/dist/cesium/Assets/Textures/maki/religious-muslim.png +0 -0
- package/dist/cesium/Assets/Textures/maki/restaurant.png +0 -0
- package/dist/cesium/Assets/Textures/maki/roadblock.png +0 -0
- package/dist/cesium/Assets/Textures/maki/rocket.png +0 -0
- package/dist/cesium/Assets/Textures/maki/school.png +0 -0
- package/dist/cesium/Assets/Textures/maki/scooter.png +0 -0
- package/dist/cesium/Assets/Textures/maki/shop.png +0 -0
- package/dist/cesium/Assets/Textures/maki/skiing.png +0 -0
- package/dist/cesium/Assets/Textures/maki/slaughterhouse.png +0 -0
- package/dist/cesium/Assets/Textures/maki/soccer.png +0 -0
- package/dist/cesium/Assets/Textures/maki/square-stroked.png +0 -0
- package/dist/cesium/Assets/Textures/maki/square.png +0 -0
- package/dist/cesium/Assets/Textures/maki/star-stroked.png +0 -0
- package/dist/cesium/Assets/Textures/maki/star.png +0 -0
- package/dist/cesium/Assets/Textures/maki/suitcase.png +0 -0
- package/dist/cesium/Assets/Textures/maki/swimming.png +0 -0
- package/dist/cesium/Assets/Textures/maki/telephone.png +0 -0
- package/dist/cesium/Assets/Textures/maki/tennis.png +0 -0
- package/dist/cesium/Assets/Textures/maki/theatre.png +0 -0
- package/dist/cesium/Assets/Textures/maki/toilets.png +0 -0
- package/dist/cesium/Assets/Textures/maki/town-hall.png +0 -0
- package/dist/cesium/Assets/Textures/maki/town.png +0 -0
- package/dist/cesium/Assets/Textures/maki/triangle-stroked.png +0 -0
- package/dist/cesium/Assets/Textures/maki/triangle.png +0 -0
- package/dist/cesium/Assets/Textures/maki/village.png +0 -0
- package/dist/cesium/Assets/Textures/maki/warehouse.png +0 -0
- package/dist/cesium/Assets/Textures/maki/waste-basket.png +0 -0
- package/dist/cesium/Assets/Textures/maki/water.png +0 -0
- package/dist/cesium/Assets/Textures/maki/wetland.png +0 -0
- package/dist/cesium/Assets/Textures/maki/zoo.png +0 -0
- package/dist/cesium/Assets/Textures/moonSmall.jpg +0 -0
- package/dist/cesium/Assets/Textures/pin.svg +1 -0
- package/dist/cesium/Assets/Textures/waterNormals.jpg +0 -0
- package/dist/cesium/Assets/Textures/waterNormalsSmall.jpg +0 -0
- package/dist/cesium/Assets/approximateTerrainHeights.json +1 -0
- package/dist/cesium/ThirdParty/Workers/package.json +1 -0
- package/dist/cesium/ThirdParty/Workers/zip-web-worker.js +1 -0
- package/dist/cesium/ThirdParty/basis_transcoder.wasm +0 -0
- package/dist/cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/cesium/ThirdParty/google-earth-dbroot-parser.js +1 -0
- package/dist/cesium/ThirdParty/wasm_splats_bg.wasm +0 -0
- package/dist/cesium/ThirdParty/zip-module.wasm +0 -0
- package/dist/cesium/Widgets/Animation/Animation.css +127 -0
- package/dist/cesium/Widgets/Animation/lighter.css +70 -0
- package/dist/cesium/Widgets/BaseLayerPicker/BaseLayerPicker.css +108 -0
- package/dist/cesium/Widgets/BaseLayerPicker/lighter.css +22 -0
- package/dist/cesium/Widgets/Cesium3DTilesInspector/Cesium3DTilesInspector.css +102 -0
- package/dist/cesium/Widgets/CesiumInspector/CesiumInspector.css +113 -0
- package/dist/cesium/Widgets/CesiumWidget/CesiumWidget.css +119 -0
- package/dist/cesium/Widgets/CesiumWidget/lighter.css +14 -0
- package/dist/cesium/Widgets/FullscreenButton/FullscreenButton.css +8 -0
- package/dist/cesium/Widgets/Geocoder/Geocoder.css +70 -0
- package/dist/cesium/Widgets/Geocoder/lighter.css +17 -0
- package/dist/cesium/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldHillshade.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldImagery.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/ArcGisMapServiceWorldOcean.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/azureAerial.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/azureRoads.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/bingAerial.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/bingAerialLabels.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/bingRoads.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/blueMarble.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/earthAtNight.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/googleContour.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/googleRoadmap.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/googleSatellite.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/googleSatelliteLabels.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/mapQuestOpenStreetMap.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/mapboxSatellite.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/mapboxStreets.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/mapboxTerrain.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/naturalEarthII.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/openStreetMap.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/sentinel-2.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmooth.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/stadiaAlidadeSmoothDark.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/stamenToner.png +0 -0
- package/dist/cesium/Widgets/Images/ImageryProviders/stamenWatercolor.png +0 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/Mouse.svg +84 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/MouseLeft.svg +76 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/MouseMiddle.svg +76 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/MouseRight.svg +76 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/Touch.svg +120 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchDrag.svg +129 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchRotate.svg +76 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchTilt.svg +135 -0
- package/dist/cesium/Widgets/Images/NavigationHelp/TouchZoom.svg +74 -0
- package/dist/cesium/Widgets/Images/TerrainProviders/CesiumWorldTerrain.png +0 -0
- package/dist/cesium/Widgets/Images/TerrainProviders/Ellipsoid.png +0 -0
- package/dist/cesium/Widgets/Images/TimelineIcons.png +0 -0
- package/dist/cesium/Widgets/Images/info-loading.gif +0 -0
- package/dist/cesium/Widgets/InfoBox/InfoBox.css +92 -0
- package/dist/cesium/Widgets/InfoBox/InfoBoxDescription.css +178 -0
- package/dist/cesium/Widgets/NavigationHelpButton/NavigationHelpButton.css +93 -0
- package/dist/cesium/Widgets/NavigationHelpButton/lighter.css +38 -0
- package/dist/cesium/Widgets/PerformanceWatchdog/PerformanceWatchdog.css +15 -0
- package/dist/cesium/Widgets/ProjectionPicker/ProjectionPicker.css +38 -0
- package/dist/cesium/Widgets/SceneModePicker/SceneModePicker.css +56 -0
- package/dist/cesium/Widgets/SelectionIndicator/SelectionIndicator.css +20 -0
- package/dist/cesium/Widgets/Timeline/Timeline.css +103 -0
- package/dist/cesium/Widgets/Timeline/lighter.css +23 -0
- package/dist/cesium/Widgets/VRButton/VRButton.css +8 -0
- package/dist/cesium/Widgets/Viewer/Viewer.css +107 -0
- package/dist/cesium/Widgets/VoxelInspector/VoxelInspector.css +16 -0
- package/dist/cesium/Widgets/lighter.css +237 -0
- package/dist/cesium/Widgets/lighterShared.css +46 -0
- package/dist/cesium/Widgets/shared.css +103 -0
- package/dist/cesium/Widgets/widgets.css +1342 -0
- package/dist/cesium/Workers/chunk-23ZQ2IVV.js +29 -0
- package/dist/cesium/Workers/chunk-2EQO3Q56.js +26 -0
- package/dist/cesium/Workers/chunk-2MJIIVP4.js +26 -0
- package/dist/cesium/Workers/chunk-2TE5NTVD.js +26 -0
- package/dist/cesium/Workers/chunk-2ZBHLJST.js +26 -0
- package/dist/cesium/Workers/chunk-5TJMAQVL.js +26 -0
- package/dist/cesium/Workers/chunk-6BD4U3VO.js +26 -0
- package/dist/cesium/Workers/chunk-7TVGLKQF.js +26 -0
- package/dist/cesium/Workers/chunk-BTSYJ5XU.js +26 -0
- package/dist/cesium/Workers/chunk-BXMEEOCS.js +63 -0
- package/dist/cesium/Workers/chunk-BYLCY7GP.js +29 -0
- package/dist/cesium/Workers/chunk-CTHM3W6I.js +26 -0
- package/dist/cesium/Workers/chunk-CUUSNIVQ.js +26 -0
- package/dist/cesium/Workers/chunk-E3JOOS3S.js +26 -0
- package/dist/cesium/Workers/chunk-E7KYDCM5.js +26 -0
- package/dist/cesium/Workers/chunk-EDVBB7SS.js +27 -0
- package/dist/cesium/Workers/chunk-EFBN7QNX.js +26 -0
- package/dist/cesium/Workers/chunk-EQ4YRVWL.js +26 -0
- package/dist/cesium/Workers/chunk-F6PRE7D6.js +26 -0
- package/dist/cesium/Workers/chunk-FC4ZZ65J.js +26 -0
- package/dist/cesium/Workers/chunk-FFBVWF2L.js +26 -0
- package/dist/cesium/Workers/chunk-GBAA6GVX.js +26 -0
- package/dist/cesium/Workers/chunk-ICALLYLG.js +26 -0
- package/dist/cesium/Workers/chunk-ILRYTWTP.js +26 -0
- package/dist/cesium/Workers/chunk-IRNLBSEJ.js +26 -0
- package/dist/cesium/Workers/chunk-IX4VMHEV.js +26 -0
- package/dist/cesium/Workers/chunk-L6QHHACZ.js +26 -0
- package/dist/cesium/Workers/chunk-LI2ZSORM.js +26 -0
- package/dist/cesium/Workers/chunk-LSLE2RL4.js +26 -0
- package/dist/cesium/Workers/chunk-M4HLDBCG.js +26 -0
- package/dist/cesium/Workers/chunk-MJHHSGEH.js +26 -0
- package/dist/cesium/Workers/chunk-NMVKML6W.js +26 -0
- package/dist/cesium/Workers/chunk-OCWJRAXS.js +26 -0
- package/dist/cesium/Workers/chunk-OIRKANTH.js +26 -0
- package/dist/cesium/Workers/chunk-OIT7J4IC.js +26 -0
- package/dist/cesium/Workers/chunk-OLZ3FYUM.js +26 -0
- package/dist/cesium/Workers/chunk-Q5BPHJQF.js +26 -0
- package/dist/cesium/Workers/chunk-QFM5DCMQ.js +26 -0
- package/dist/cesium/Workers/chunk-QKUIYMGC.js +28 -0
- package/dist/cesium/Workers/chunk-S44JILQT.js +26 -0
- package/dist/cesium/Workers/chunk-SLT4J352.js +26 -0
- package/dist/cesium/Workers/chunk-SQMIIXB7.js +26 -0
- package/dist/cesium/Workers/chunk-TJ4XLGBQ.js +26 -0
- package/dist/cesium/Workers/chunk-TNSUQXWK.js +27 -0
- package/dist/cesium/Workers/chunk-UBOGZS7F.js +26 -0
- package/dist/cesium/Workers/chunk-V3OSTMM6.js +26 -0
- package/dist/cesium/Workers/chunk-V7QEYVP3.js +26 -0
- package/dist/cesium/Workers/chunk-VUKYSU4H.js +26 -0
- package/dist/cesium/Workers/chunk-W37FE5GR.js +26 -0
- package/dist/cesium/Workers/chunk-WBOV35NL.js +26 -0
- package/dist/cesium/Workers/chunk-WPMZLB3Y.js +26 -0
- package/dist/cesium/Workers/chunk-WWWZVEEH.js +26 -0
- package/dist/cesium/Workers/chunk-XFIQ5DEQ.js +28 -0
- package/dist/cesium/Workers/chunk-XQHLGIO7.js +26 -0
- package/dist/cesium/Workers/chunk-XUSCFAVF.js +26 -0
- package/dist/cesium/Workers/chunk-YP7I5QBZ.js +26 -0
- package/dist/cesium/Workers/chunk-Z3QF2EHT.js +26 -0
- package/dist/cesium/Workers/combineGeometry.js +26 -0
- package/dist/cesium/Workers/createBoxGeometry.js +26 -0
- package/dist/cesium/Workers/createBoxOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createCircleGeometry.js +26 -0
- package/dist/cesium/Workers/createCircleOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createCoplanarPolygonGeometry.js +26 -0
- package/dist/cesium/Workers/createCoplanarPolygonOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createCorridorGeometry.js +26 -0
- package/dist/cesium/Workers/createCorridorOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createCylinderGeometry.js +26 -0
- package/dist/cesium/Workers/createCylinderOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createEllipseGeometry.js +26 -0
- package/dist/cesium/Workers/createEllipseOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createEllipsoidGeometry.js +26 -0
- package/dist/cesium/Workers/createEllipsoidOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createFrustumGeometry.js +26 -0
- package/dist/cesium/Workers/createFrustumOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createGeometry.js +26 -0
- package/dist/cesium/Workers/createGroundPolylineGeometry.js +26 -0
- package/dist/cesium/Workers/createPlaneGeometry.js +26 -0
- package/dist/cesium/Workers/createPlaneOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createPolygonGeometry.js +26 -0
- package/dist/cesium/Workers/createPolygonOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createPolylineGeometry.js +26 -0
- package/dist/cesium/Workers/createPolylineVolumeGeometry.js +26 -0
- package/dist/cesium/Workers/createPolylineVolumeOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createRectangleGeometry.js +26 -0
- package/dist/cesium/Workers/createRectangleOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createSimplePolylineGeometry.js +26 -0
- package/dist/cesium/Workers/createSphereGeometry.js +26 -0
- package/dist/cesium/Workers/createSphereOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/createTaskProcessorWorker.js +26 -0
- package/dist/cesium/Workers/createVectorTileClampedPolylines.js +26 -0
- package/dist/cesium/Workers/createVectorTileGeometries.js +26 -0
- package/dist/cesium/Workers/createVectorTilePoints.js +26 -0
- package/dist/cesium/Workers/createVectorTilePolygons.js +26 -0
- package/dist/cesium/Workers/createVectorTilePolylines.js +26 -0
- package/dist/cesium/Workers/createVerticesFromCesium3DTilesTerrain.js +26 -0
- package/dist/cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +26 -0
- package/dist/cesium/Workers/createVerticesFromHeightmap.js +26 -0
- package/dist/cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +26 -0
- package/dist/cesium/Workers/createWallGeometry.js +26 -0
- package/dist/cesium/Workers/createWallOutlineGeometry.js +26 -0
- package/dist/cesium/Workers/decodeDraco.js +26 -0
- package/dist/cesium/Workers/decodeGoogleEarthEnterprisePacket.js +26 -0
- package/dist/cesium/Workers/decodeI3S.js +26 -0
- package/dist/cesium/Workers/gaussianSplatSorter.js +26 -0
- package/dist/cesium/Workers/gaussianSplatTextureGenerator.js +26 -0
- package/dist/cesium/Workers/incrementallyBuildTerrainPicker.js +26 -0
- package/dist/cesium/Workers/transcodeKTX2.js +56 -0
- package/dist/cesium/Workers/transferTypedArrayTest.js +26 -0
- package/dist/cesium/Workers/upsampleQuantizedTerrainMesh.js +26 -0
- package/dist/cesium/Workers/upsampleVerticesFromCesium3DTilesTerrain.js +26 -0
- package/dist/index.html +10 -8
- package/package.json +15 -12
- package/src/App.tsx +1 -17
- package/src/components/viewer/BCFPanel.tsx +46 -4
- package/src/components/viewer/CesiumOverlay.tsx +672 -0
- package/src/components/viewer/CesiumSettingsDialog.tsx +100 -0
- package/src/components/viewer/ChatPanel.tsx +54 -16
- package/src/components/viewer/CommandPalette.tsx +6 -1
- package/src/components/viewer/DesktopEntitlementBanner.tsx +74 -0
- package/src/components/viewer/ExportChangesButton.tsx +6 -1
- package/src/components/viewer/ExportDialog.tsx +22 -6
- package/src/components/viewer/HierarchyPanel.tsx +196 -0
- package/src/components/viewer/IDSPanel.tsx +52 -3
- package/src/components/viewer/KeyboardShortcutsDialog.tsx +1 -1
- package/src/components/viewer/MainToolbar.tsx +353 -27
- package/src/components/viewer/PropertiesPanel.tsx +218 -79
- package/src/components/viewer/ScriptPanel.tsx +34 -8
- package/src/components/viewer/SettingsPage.tsx +430 -0
- package/src/components/viewer/StatusBar.tsx +17 -1
- package/src/components/viewer/UpgradePage.tsx +6 -4
- package/src/components/viewer/ViewerLayout.tsx +47 -6
- package/src/components/viewer/Viewport.tsx +49 -8
- package/src/components/viewer/ViewportContainer.tsx +280 -28
- package/src/components/viewer/ViewportOverlays.tsx +129 -27
- package/src/components/viewer/properties/GeoreferencingPanel.tsx +117 -5
- package/src/components/viewer/properties/LocationMap.tsx +458 -17
- package/src/components/viewer/selectionHandlers.ts +4 -3
- package/src/components/viewer/useAnimationLoop.ts +4 -0
- package/src/components/viewer/useGeometryStreaming.ts +127 -40
- package/src/components/viewer/useMouseControls.ts +4 -1
- package/src/hooks/ingest/viewerModelIngest.ts +275 -0
- package/src/hooks/useIDS.ts +1 -1
- package/src/hooks/useIfc.ts +7 -1
- package/src/hooks/useIfcCache.ts +28 -15
- package/src/hooks/useIfcFederation.ts +57 -225
- package/src/hooks/useIfcLoader.ts +1656 -130
- package/src/hooks/useIfcServer.ts +0 -69
- package/src/lib/desktop/ClerkDesktopEntitlementSync.tsx +175 -0
- package/src/lib/desktop/desktopEntitlementEvents.ts +39 -0
- package/src/lib/desktop-entitlement.ts +45 -0
- package/src/lib/desktop-product.ts +124 -0
- package/src/lib/geo/cesium-bridge.ts +310 -0
- package/src/lib/geo/reproject.ts +151 -25
- package/src/lib/recent-files.ts +2 -1
- package/src/services/analysis-extensions.ts +125 -0
- package/src/services/app-navigation.ts +13 -0
- package/src/services/bsdd.ts +53 -4
- package/src/services/cacheService.ts +1 -1
- package/src/services/desktop-cache.ts +43 -0
- package/src/services/desktop-export.ts +77 -0
- package/src/services/desktop-harness.ts +196 -0
- package/src/services/desktop-logger.ts +20 -0
- package/src/services/desktop-native-metadata.ts +207 -0
- package/src/services/desktop-panel-actions.ts +43 -0
- package/src/services/desktop-preferences.ts +44 -0
- package/src/services/file-dialog.ts +147 -0
- package/src/services/tauri-core-stub.ts +7 -0
- package/src/services/tauri-dialog-stub.ts +7 -0
- package/src/services/tauri-fs-stub.ts +7 -0
- package/src/store/index.ts +40 -2
- package/src/store/slices/cesiumSlice.ts +122 -0
- package/src/store/slices/chatSlice.ts +5 -1
- package/src/store/slices/dataSlice.ts +139 -28
- package/src/store/slices/desktopEntitlementSlice.ts +86 -0
- package/src/store/slices/loadingSlice.ts +14 -2
- package/src/store/slices/modelSlice.ts +58 -3
- package/src/store/types.ts +96 -2
- package/src/store.ts +1 -1
- package/src/utils/desktopModelSnapshot.ts +358 -0
- package/src/utils/ifcConfig.ts +6 -1
- package/src/utils/nativeSpatialDataStore.ts +250 -0
- package/src/utils/serverDataModel.ts +4 -0
- package/src/utils/spatialHierarchy.ts +10 -11
- package/vite.config.ts +24 -0
- package/dist/assets/arrow-DJf2ErbF.js +0 -20
- package/dist/assets/basketViewActivator-aojwdomq.js +0 -1
- package/dist/assets/desktop-cache-oPzaWXYE.js +0 -1
- package/dist/assets/geometry.worker-Nz9_YIqh.js +0 -1
- package/dist/assets/ifc-lite_bg-eSkBTizQ.wasm +0 -0
- package/dist/assets/index-pbE7itQS.css +0 -1
- package/dist/assets/native-bridge-DSIyEYXG.js +0 -113
- package/dist/assets/wasm-bridge-B0J07fZZ.js +0 -1
|
@@ -0,0 +1,429 @@
|
|
|
1
|
+
import { _ as $, __tla as __tla_0 } from "./exporters-ChAtBmlj.js";
|
|
2
|
+
import "./bcf-DOG9_WPX.js";
|
|
3
|
+
import "./zip-DBEtpeu6.js";
|
|
4
|
+
import "./cesium-DUOzBlqv.js";
|
|
5
|
+
import "./arrow-CZ5kQ26f.js";
|
|
6
|
+
let K;
|
|
7
|
+
let __tla = Promise.all([
|
|
8
|
+
(()=>{
|
|
9
|
+
try {
|
|
10
|
+
return __tla_0;
|
|
11
|
+
} catch {}
|
|
12
|
+
})()
|
|
13
|
+
]).then(async ()=>{
|
|
14
|
+
const W = 4, Y = 8192, G = 10;
|
|
15
|
+
function P() {
|
|
16
|
+
const t = globalThis.scheduler;
|
|
17
|
+
return typeof t?.yield == "function" ? t.yield() : new Promise((i)=>{
|
|
18
|
+
const r = new MessageChannel;
|
|
19
|
+
r.port1.onmessage = ()=>i(), r.port2.postMessage(null);
|
|
20
|
+
});
|
|
21
|
+
}
|
|
22
|
+
K = class {
|
|
23
|
+
initialized = !1;
|
|
24
|
+
invoke = null;
|
|
25
|
+
listen = null;
|
|
26
|
+
async init() {
|
|
27
|
+
if (this.initialized) return;
|
|
28
|
+
const i = globalThis;
|
|
29
|
+
if (!i.__TAURI_INTERNALS__?.invoke) throw new Error("Tauri API not available - this bridge should only be used in Tauri apps");
|
|
30
|
+
this.invoke = i.__TAURI_INTERNALS__.invoke;
|
|
31
|
+
try {
|
|
32
|
+
const r = await $(()=>import("./event-DIOks52T.js"), []);
|
|
33
|
+
this.listen = r.listen;
|
|
34
|
+
} catch {
|
|
35
|
+
console.warn("[NativeBridge] Event API not available, streaming will be limited");
|
|
36
|
+
}
|
|
37
|
+
this.initialized = !0;
|
|
38
|
+
}
|
|
39
|
+
isInitialized() {
|
|
40
|
+
return this.initialized;
|
|
41
|
+
}
|
|
42
|
+
toNativeBuffer(i) {
|
|
43
|
+
if (i instanceof Uint8Array) return Array.from(i);
|
|
44
|
+
const r = new TextEncoder;
|
|
45
|
+
return Array.from(r.encode(i));
|
|
46
|
+
}
|
|
47
|
+
async drainDeferredBatches(i, r, o) {
|
|
48
|
+
let s = 0, c = 0, a = performance.now();
|
|
49
|
+
for(; i.length > 0;){
|
|
50
|
+
const n = i.shift(), m = n.type === "mesh-array" ? {
|
|
51
|
+
meshes: n.meshes.map(k),
|
|
52
|
+
progress: {
|
|
53
|
+
processed: n.progress.processed,
|
|
54
|
+
total: n.progress.total,
|
|
55
|
+
currentType: n.progress.currentType
|
|
56
|
+
},
|
|
57
|
+
nativeTelemetry: R(n.telemetry, performance.now() - o)
|
|
58
|
+
} : {
|
|
59
|
+
meshes: q(n.payload),
|
|
60
|
+
progress: {
|
|
61
|
+
processed: n.payload.progress.processed,
|
|
62
|
+
total: n.payload.progress.total,
|
|
63
|
+
currentType: n.payload.progress.currentType
|
|
64
|
+
},
|
|
65
|
+
nativeTelemetry: R(n.payload.telemetry, performance.now() - o)
|
|
66
|
+
};
|
|
67
|
+
r.onBatch?.(m), s += 1, c += m.meshes.length, i.length > 0 && (s >= W || c >= Y || performance.now() - a >= G) && (await P(), s = 0, c = 0, a = performance.now());
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
async processEventDrivenNativeStream(i, r, o, s) {
|
|
71
|
+
if (!this.listen) throw new Error(`Event API unavailable, ${i} requires Tauri event support`);
|
|
72
|
+
const c = [];
|
|
73
|
+
let a = null, n = null;
|
|
74
|
+
const m = ()=>{
|
|
75
|
+
a || (a = (async ()=>{
|
|
76
|
+
try {
|
|
77
|
+
await this.drainDeferredBatches(c, o, s);
|
|
78
|
+
} catch (e) {
|
|
79
|
+
n = e instanceof Error ? e : new Error(String(e));
|
|
80
|
+
} finally{
|
|
81
|
+
a = null, c.length > 0 && !n && m();
|
|
82
|
+
}
|
|
83
|
+
})());
|
|
84
|
+
}, d = await this.listen("geometry-batch", (e)=>{
|
|
85
|
+
c.push({
|
|
86
|
+
type: "mesh-array",
|
|
87
|
+
meshes: e.payload.meshes,
|
|
88
|
+
progress: e.payload.progress,
|
|
89
|
+
telemetry: e.payload.telemetry
|
|
90
|
+
}), m();
|
|
91
|
+
}), p = await this.listen("geometry-packed-batch", (e)=>{
|
|
92
|
+
c.push({
|
|
93
|
+
type: "packed",
|
|
94
|
+
payload: e.payload
|
|
95
|
+
}), m();
|
|
96
|
+
}), y = await this.listen("geometry-color-update", (e)=>{
|
|
97
|
+
const l = new Map;
|
|
98
|
+
for (const h of e.payload.updates)l.set(h.expressId, h.color);
|
|
99
|
+
l.size > 0 && o.onColorUpdate?.(l);
|
|
100
|
+
});
|
|
101
|
+
try {
|
|
102
|
+
const e = await this.invoke(i, r), l = {
|
|
103
|
+
totalMeshes: e.totalMeshes,
|
|
104
|
+
totalVertices: e.totalVertices,
|
|
105
|
+
totalTriangles: e.totalTriangles,
|
|
106
|
+
parseTimeMs: e.parseTimeMs,
|
|
107
|
+
entityScanTimeMs: e.entityScanTimeMs,
|
|
108
|
+
lookupTimeMs: e.lookupTimeMs,
|
|
109
|
+
preprocessTimeMs: e.preprocessTimeMs,
|
|
110
|
+
geometryTimeMs: e.geometryTimeMs,
|
|
111
|
+
totalTimeMs: e.totalTimeMs,
|
|
112
|
+
firstChunkReadyTimeMs: e.firstChunkReadyTimeMs,
|
|
113
|
+
firstChunkPackTimeMs: e.firstChunkPackTimeMs,
|
|
114
|
+
firstChunkEmittedTimeMs: e.firstChunkEmittedTimeMs,
|
|
115
|
+
firstChunkEmitTimeMs: e.firstChunkEmitTimeMs
|
|
116
|
+
};
|
|
117
|
+
for(; a;)await a;
|
|
118
|
+
if (n) throw n;
|
|
119
|
+
return l;
|
|
120
|
+
} finally{
|
|
121
|
+
d(), p(), y();
|
|
122
|
+
}
|
|
123
|
+
}
|
|
124
|
+
async processGeometry(i) {
|
|
125
|
+
(!this.initialized || !this.invoke) && await this.init();
|
|
126
|
+
const r = this.toNativeBuffer(i), o = await this.invoke("get_geometry", {
|
|
127
|
+
buffer: r
|
|
128
|
+
}), s = o.meshes.map(k), c = B(o.coordinateInfo);
|
|
129
|
+
return {
|
|
130
|
+
meshes: s,
|
|
131
|
+
totalVertices: o.totalVertices,
|
|
132
|
+
totalTriangles: o.totalTriangles,
|
|
133
|
+
coordinateInfo: c
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
async processGeometryPath(i) {
|
|
137
|
+
(!this.initialized || !this.invoke) && await this.init();
|
|
138
|
+
const r = await this.invoke("get_geometry_from_path", {
|
|
139
|
+
path: i
|
|
140
|
+
});
|
|
141
|
+
return {
|
|
142
|
+
meshes: r.meshes.map(k),
|
|
143
|
+
totalVertices: r.totalVertices,
|
|
144
|
+
totalTriangles: r.totalTriangles,
|
|
145
|
+
coordinateInfo: B(r.coordinateInfo)
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
async processGeometryStreaming(i, r) {
|
|
149
|
+
if ((!this.initialized || !this.invoke) && await this.init(), !this.listen) {
|
|
150
|
+
console.warn("[NativeBridge] Event API unavailable, falling back to non-streaming mode");
|
|
151
|
+
const e = await this.processGeometry(i), l = {
|
|
152
|
+
totalMeshes: e.meshes.length,
|
|
153
|
+
totalVertices: e.totalVertices,
|
|
154
|
+
totalTriangles: e.totalTriangles,
|
|
155
|
+
parseTimeMs: 0,
|
|
156
|
+
entityScanTimeMs: 0,
|
|
157
|
+
lookupTimeMs: 0,
|
|
158
|
+
preprocessTimeMs: 0,
|
|
159
|
+
geometryTimeMs: 0,
|
|
160
|
+
totalTimeMs: 0,
|
|
161
|
+
firstChunkReadyTimeMs: 0,
|
|
162
|
+
firstChunkPackTimeMs: 0,
|
|
163
|
+
firstChunkEmittedTimeMs: 0,
|
|
164
|
+
firstChunkEmitTimeMs: 0
|
|
165
|
+
};
|
|
166
|
+
return r.onBatch?.({
|
|
167
|
+
meshes: e.meshes,
|
|
168
|
+
progress: {
|
|
169
|
+
processed: e.meshes.length,
|
|
170
|
+
total: e.meshes.length,
|
|
171
|
+
currentType: "complete"
|
|
172
|
+
}
|
|
173
|
+
}), r.onComplete?.(l), l;
|
|
174
|
+
}
|
|
175
|
+
const o = this.toNativeBuffer(i), s = performance.now(), c = [];
|
|
176
|
+
let a = null, n = null;
|
|
177
|
+
const m = ()=>{
|
|
178
|
+
a || (a = (async ()=>{
|
|
179
|
+
try {
|
|
180
|
+
await this.drainDeferredBatches(c, r, s);
|
|
181
|
+
} catch (e) {
|
|
182
|
+
n = e instanceof Error ? e : new Error(String(e));
|
|
183
|
+
} finally{
|
|
184
|
+
a = null, c.length > 0 && !n && m();
|
|
185
|
+
}
|
|
186
|
+
})());
|
|
187
|
+
}, d = await this.listen("geometry-batch", (e)=>{
|
|
188
|
+
c.push({
|
|
189
|
+
type: "mesh-array",
|
|
190
|
+
meshes: e.payload.meshes,
|
|
191
|
+
progress: e.payload.progress,
|
|
192
|
+
telemetry: e.payload.telemetry
|
|
193
|
+
}), m();
|
|
194
|
+
}), p = await this.listen("geometry-packed-batch", (e)=>{
|
|
195
|
+
c.push({
|
|
196
|
+
type: "packed",
|
|
197
|
+
payload: e.payload
|
|
198
|
+
}), m();
|
|
199
|
+
}), y = await this.listen("geometry-color-update", (e)=>{
|
|
200
|
+
const l = new Map;
|
|
201
|
+
for (const h of e.payload.updates)l.set(h.expressId, h.color);
|
|
202
|
+
l.size > 0 && r.onColorUpdate?.(l);
|
|
203
|
+
});
|
|
204
|
+
try {
|
|
205
|
+
const e = await this.invoke("get_geometry_streaming", {
|
|
206
|
+
buffer: o
|
|
207
|
+
}), l = {
|
|
208
|
+
totalMeshes: e.totalMeshes,
|
|
209
|
+
totalVertices: e.totalVertices,
|
|
210
|
+
totalTriangles: e.totalTriangles,
|
|
211
|
+
parseTimeMs: e.parseTimeMs,
|
|
212
|
+
entityScanTimeMs: e.entityScanTimeMs,
|
|
213
|
+
lookupTimeMs: e.lookupTimeMs,
|
|
214
|
+
preprocessTimeMs: e.preprocessTimeMs,
|
|
215
|
+
geometryTimeMs: e.geometryTimeMs,
|
|
216
|
+
totalTimeMs: e.totalTimeMs,
|
|
217
|
+
firstChunkReadyTimeMs: e.firstChunkReadyTimeMs,
|
|
218
|
+
firstChunkPackTimeMs: e.firstChunkPackTimeMs,
|
|
219
|
+
firstChunkEmittedTimeMs: e.firstChunkEmittedTimeMs,
|
|
220
|
+
firstChunkEmitTimeMs: e.firstChunkEmitTimeMs
|
|
221
|
+
};
|
|
222
|
+
for(; a;)await a;
|
|
223
|
+
if (n) throw n;
|
|
224
|
+
return r.onComplete?.(l), l;
|
|
225
|
+
} catch (e) {
|
|
226
|
+
throw r.onError?.(e instanceof Error ? e : new Error(String(e))), e;
|
|
227
|
+
} finally{
|
|
228
|
+
d(), p(), y();
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
async processGeometryStreamingPath(i, r, o) {
|
|
232
|
+
(!this.initialized || !this.invoke) && await this.init();
|
|
233
|
+
const s = performance.now();
|
|
234
|
+
if (!o) throw new Error("Packed shard path streaming requires a cache key");
|
|
235
|
+
return this.processPackedShardPathStream(i, o, r, s);
|
|
236
|
+
}
|
|
237
|
+
async processGeometryStreamingCache(i, r) {
|
|
238
|
+
(!this.initialized || !this.invoke) && await this.init();
|
|
239
|
+
const o = performance.now();
|
|
240
|
+
try {
|
|
241
|
+
const s = await this.invoke("get_native_geometry_cache_manifest", {
|
|
242
|
+
cacheKey: i
|
|
243
|
+
});
|
|
244
|
+
if (!s) throw new Error(`Native geometry cache manifest missing for ${i}`);
|
|
245
|
+
let c = 0;
|
|
246
|
+
for(let n = 0; n < s.shardCount; n += 1){
|
|
247
|
+
const m = await this.invoke("get_native_geometry_cache_packed_shard", {
|
|
248
|
+
cacheKey: i,
|
|
249
|
+
shardIndex: n
|
|
250
|
+
}), d = b(m, performance.now() - o, n + 1);
|
|
251
|
+
c = d.progress.processed, r.onBatch?.(d), n + 1 < s.shardCount && await P();
|
|
252
|
+
}
|
|
253
|
+
const a = {
|
|
254
|
+
totalMeshes: s.totalMeshes,
|
|
255
|
+
totalVertices: s.totalVertices,
|
|
256
|
+
totalTriangles: s.totalTriangles,
|
|
257
|
+
parseTimeMs: 0,
|
|
258
|
+
entityScanTimeMs: 0,
|
|
259
|
+
lookupTimeMs: 0,
|
|
260
|
+
preprocessTimeMs: 0,
|
|
261
|
+
geometryTimeMs: Math.round(performance.now() - o),
|
|
262
|
+
totalTimeMs: Math.round(performance.now() - o),
|
|
263
|
+
firstChunkReadyTimeMs: 0,
|
|
264
|
+
firstChunkPackTimeMs: 0,
|
|
265
|
+
firstChunkEmittedTimeMs: 0,
|
|
266
|
+
firstChunkEmitTimeMs: 0
|
|
267
|
+
};
|
|
268
|
+
return c !== s.totalMeshes && console.warn(`[NativeBridge] Cached packed shard stream mesh mismatch for ${i}: received=${c} expected=${s.totalMeshes}`), r.onComplete?.(a), a;
|
|
269
|
+
} catch (s) {
|
|
270
|
+
throw r.onError?.(s instanceof Error ? s : new Error(String(s))), s;
|
|
271
|
+
}
|
|
272
|
+
}
|
|
273
|
+
async processPackedShardPathStream(i, r, o, s) {
|
|
274
|
+
const c = this.invoke("get_geometry_streaming_from_path", {
|
|
275
|
+
path: i,
|
|
276
|
+
cacheKey: r,
|
|
277
|
+
preferPackedShards: !0
|
|
278
|
+
});
|
|
279
|
+
let a = 0, n = performance.now(), m = 0, d = null;
|
|
280
|
+
const p = this.listen ? await this.listen("native-shard-ready", ()=>{
|
|
281
|
+
if (d) {
|
|
282
|
+
const h = d;
|
|
283
|
+
d = null, h();
|
|
284
|
+
}
|
|
285
|
+
}) : null;
|
|
286
|
+
function y(h) {
|
|
287
|
+
return new Promise((T)=>{
|
|
288
|
+
const g = setTimeout(T, h);
|
|
289
|
+
d = ()=>{
|
|
290
|
+
clearTimeout(g), T();
|
|
291
|
+
};
|
|
292
|
+
});
|
|
293
|
+
}
|
|
294
|
+
try {
|
|
295
|
+
for(;;){
|
|
296
|
+
const h = await this.invoke("get_native_geometry_cache_stream_status", {
|
|
297
|
+
cacheKey: r
|
|
298
|
+
});
|
|
299
|
+
if (h?.failed) throw new Error(h.errorMessage ?? `Packed shard stream failed for ${r}`);
|
|
300
|
+
const T = h?.readyShardCount ?? 0;
|
|
301
|
+
for(; a < T;){
|
|
302
|
+
const g = await this.invoke("get_native_geometry_cache_packed_shard", {
|
|
303
|
+
cacheKey: r,
|
|
304
|
+
shardIndex: a
|
|
305
|
+
}), M = b(g, performance.now() - s, a + 1);
|
|
306
|
+
m = Math.max(m, M.progress.processed), n = performance.now(), o.onBatch?.(M), a += 1;
|
|
307
|
+
}
|
|
308
|
+
if (h?.done && a >= T) break;
|
|
309
|
+
if (performance.now() - n > 6e4) throw new Error(`Packed shard path stream stalled for ${r}: shards=${a}/${T} processed=${m}`);
|
|
310
|
+
await y(50);
|
|
311
|
+
}
|
|
312
|
+
} finally{
|
|
313
|
+
p && p();
|
|
314
|
+
}
|
|
315
|
+
const e = await c, l = {
|
|
316
|
+
totalMeshes: e.totalMeshes,
|
|
317
|
+
totalVertices: e.totalVertices,
|
|
318
|
+
totalTriangles: e.totalTriangles,
|
|
319
|
+
parseTimeMs: e.parseTimeMs,
|
|
320
|
+
entityScanTimeMs: e.entityScanTimeMs,
|
|
321
|
+
lookupTimeMs: e.lookupTimeMs,
|
|
322
|
+
preprocessTimeMs: e.preprocessTimeMs,
|
|
323
|
+
geometryTimeMs: e.geometryTimeMs,
|
|
324
|
+
totalTimeMs: e.totalTimeMs,
|
|
325
|
+
firstChunkReadyTimeMs: e.firstChunkReadyTimeMs,
|
|
326
|
+
firstChunkPackTimeMs: e.firstChunkPackTimeMs,
|
|
327
|
+
firstChunkEmittedTimeMs: e.firstChunkEmittedTimeMs,
|
|
328
|
+
firstChunkEmitTimeMs: e.firstChunkEmitTimeMs
|
|
329
|
+
};
|
|
330
|
+
return o.onComplete?.(l), l;
|
|
331
|
+
}
|
|
332
|
+
getApi() {
|
|
333
|
+
return null;
|
|
334
|
+
}
|
|
335
|
+
};
|
|
336
|
+
function k(t) {
|
|
337
|
+
return {
|
|
338
|
+
expressId: t.expressId,
|
|
339
|
+
ifcType: t.ifcType,
|
|
340
|
+
positions: new Float32Array(t.positions),
|
|
341
|
+
normals: new Float32Array(t.normals),
|
|
342
|
+
indices: new Uint32Array(t.indices),
|
|
343
|
+
color: t.color
|
|
344
|
+
};
|
|
345
|
+
}
|
|
346
|
+
function q(t) {
|
|
347
|
+
const i = Float32Array.from(t.positions), r = Float32Array.from(t.normals), o = Uint32Array.from(t.indices);
|
|
348
|
+
return t.meshes.map((s)=>({
|
|
349
|
+
expressId: s.expressId,
|
|
350
|
+
ifcType: s.ifcType,
|
|
351
|
+
positions: i.subarray(s.positionsOffset, s.positionsOffset + s.positionsLen),
|
|
352
|
+
normals: r.subarray(s.normalsOffset, s.normalsOffset + s.normalsLen),
|
|
353
|
+
indices: o.subarray(s.indicesOffset, s.indicesOffset + s.indicesLen),
|
|
354
|
+
color: s.color
|
|
355
|
+
}));
|
|
356
|
+
}
|
|
357
|
+
function X(t) {
|
|
358
|
+
if (t instanceof ArrayBuffer) return t;
|
|
359
|
+
if (t instanceof Uint8Array) return t.byteOffset === 0 && t.byteLength === t.buffer.byteLength && t.buffer instanceof ArrayBuffer ? t.buffer : t.slice().buffer;
|
|
360
|
+
if (Array.isArray(t)) return Uint8Array.from(t).buffer;
|
|
361
|
+
throw new Error(`Unsupported packed geometry shard payload: ${typeof t}`);
|
|
362
|
+
}
|
|
363
|
+
function b(t, i, r) {
|
|
364
|
+
const o = X(t), s = new Uint32Array(o, 0, 8), [c, a, n, m, d, p, y, e] = s;
|
|
365
|
+
if (c !== 1229341506) throw new Error("Invalid packed geometry cache shard magic");
|
|
366
|
+
if (a !== 1) throw new Error(`Unsupported packed geometry cache shard version: ${a}`);
|
|
367
|
+
const l = 11, h = 8, T = n * l, g = (h + T) * Uint32Array.BYTES_PER_ELEMENT, M = m * Float32Array.BYTES_PER_ELEMENT, L = d * Float32Array.BYTES_PER_ELEMENT, E = g, _ = E + M, I = _ + L, N = new Float32Array(o, E, m), U = new Float32Array(o, _, d), x = new Uint32Array(o, I, p), f = new DataView(o, h * Uint32Array.BYTES_PER_ELEMENT, T * Uint32Array.BYTES_PER_ELEMENT), C = [];
|
|
368
|
+
for(let w = 0; w < n; w += 1){
|
|
369
|
+
const u = w * l * Uint32Array.BYTES_PER_ELEMENT, D = f.getUint32(u, !0), v = f.getUint32(u + 4, !0), O = f.getUint32(u + 8, !0), S = f.getUint32(u + 12, !0), V = f.getUint32(u + 16, !0), A = f.getUint32(u + 20, !0), F = f.getUint32(u + 24, !0), z = [
|
|
370
|
+
f.getFloat32(u + 28, !0),
|
|
371
|
+
f.getFloat32(u + 32, !0),
|
|
372
|
+
f.getFloat32(u + 36, !0),
|
|
373
|
+
f.getFloat32(u + 40, !0)
|
|
374
|
+
];
|
|
375
|
+
C.push({
|
|
376
|
+
expressId: D,
|
|
377
|
+
positions: N.subarray(v, v + O),
|
|
378
|
+
normals: U.subarray(S, S + V),
|
|
379
|
+
indices: x.subarray(A, A + F),
|
|
380
|
+
color: z
|
|
381
|
+
});
|
|
382
|
+
}
|
|
383
|
+
return {
|
|
384
|
+
meshes: C,
|
|
385
|
+
progress: {
|
|
386
|
+
processed: y,
|
|
387
|
+
total: e,
|
|
388
|
+
currentType: "cached"
|
|
389
|
+
},
|
|
390
|
+
nativeTelemetry: {
|
|
391
|
+
batchSequence: r,
|
|
392
|
+
payloadKind: "packed-cache-shard",
|
|
393
|
+
meshCount: n,
|
|
394
|
+
positionsLen: m,
|
|
395
|
+
normalsLen: d,
|
|
396
|
+
indicesLen: p,
|
|
397
|
+
chunkReadyTimeMs: 0,
|
|
398
|
+
packTimeMs: 0,
|
|
399
|
+
emitTimeMs: 0,
|
|
400
|
+
emittedTimeMs: 0,
|
|
401
|
+
jsReceivedTimeMs: i
|
|
402
|
+
}
|
|
403
|
+
};
|
|
404
|
+
}
|
|
405
|
+
function R(t, i) {
|
|
406
|
+
if (t) return {
|
|
407
|
+
batchSequence: t.batchSequence,
|
|
408
|
+
payloadKind: t.payloadKind,
|
|
409
|
+
meshCount: t.meshCount,
|
|
410
|
+
positionsLen: t.positionsLen,
|
|
411
|
+
normalsLen: t.normalsLen,
|
|
412
|
+
indicesLen: t.indicesLen,
|
|
413
|
+
chunkReadyTimeMs: t.chunkReadyTimeMs,
|
|
414
|
+
packTimeMs: t.packTimeMs,
|
|
415
|
+
emitTimeMs: t.emitTimeMs,
|
|
416
|
+
emittedTimeMs: t.emittedTimeMs,
|
|
417
|
+
jsReceivedTimeMs: i
|
|
418
|
+
};
|
|
419
|
+
}
|
|
420
|
+
function B(t) {
|
|
421
|
+
return {
|
|
422
|
+
originShift: t.originShift,
|
|
423
|
+
originalBounds: t.originalBounds,
|
|
424
|
+
shiftedBounds: t.shiftedBounds,
|
|
425
|
+
hasLargeCoordinates: t.hasLargeCoordinates
|
|
426
|
+
};
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
export { K as NativeBridge, __tla };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-
|
|
1
|
+
const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/index-Co8E2-FE.js","assets/cesium-DUOzBlqv.js","assets/arrow-CZ5kQ26f.js","assets/cesium-ADbP7waU.css","assets/exporters-ChAtBmlj.js","assets/bcf-DOG9_WPX.js","assets/zip-DBEtpeu6.js","assets/drawing-2d-gWfpdfYe.js","assets/lens-CSASnhAL.js","assets/server-client-BV8zHZ7Y.js","assets/ids-B4jTqB1O.js","assets/index-DckuDqlv.css","assets/browser-C5TFR7sH.js"])))=>i.map(i=>d[i]);
|
|
2
2
|
import { h as Ee, B as it } from "./lens-CSASnhAL.js";
|
|
3
|
-
import { _ as J, __tla as __tla_0 } from "./exporters-
|
|
3
|
+
import { _ as J, __tla as __tla_0 } from "./exporters-ChAtBmlj.js";
|
|
4
4
|
let $i, Me, si, Ei, ni, wi, oi, Ti;
|
|
5
5
|
let __tla = Promise.all([
|
|
6
6
|
(()=>{
|
|
@@ -5706,10 +5706,10 @@ Attempted to suspend at:`);
|
|
|
5706
5706
|
let t = he(await i), [e, s, { QuickJSWASMModule: n }] = await Promise.all([
|
|
5707
5707
|
t.importModuleLoader().then(he),
|
|
5708
5708
|
t.importFFI(),
|
|
5709
|
-
J(()=>import("./index-
|
|
5709
|
+
J(()=>import("./index-Co8E2-FE.js").then(async (m)=>{
|
|
5710
5710
|
await m.__tla;
|
|
5711
5711
|
return m;
|
|
5712
|
-
}).then((a)=>a.m), __vite__mapDeps([0,1,2,3,4,5,6,7,8,9])).then(he)
|
|
5712
|
+
}).then((a)=>a.m), __vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11])).then(he)
|
|
5713
5713
|
]), o = await e();
|
|
5714
5714
|
o.type = "sync";
|
|
5715
5715
|
let r = new s(o);
|
|
@@ -5781,7 +5781,7 @@ Attempted to suspend at:`);
|
|
|
5781
5781
|
function hi() {
|
|
5782
5782
|
return ee || (ee = (async ()=>{
|
|
5783
5783
|
try {
|
|
5784
|
-
const i = await J(()=>import("./browser-
|
|
5784
|
+
const i = await J(()=>import("./browser-C5TFR7sH.js").then((s)=>s.b), __vite__mapDeps([12,1,2,3])), t = i.default ?? i;
|
|
5785
5785
|
let e;
|
|
5786
5786
|
try {
|
|
5787
5787
|
e = (await J(()=>import("./esbuild-COv63sf-.js"), [])).default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as de, __tla as __tla_0 } from "./exporters-
|
|
1
|
+
import { _ as de, __tla as __tla_0 } from "./exporters-ChAtBmlj.js";
|
|
2
2
|
let We, je;
|
|
3
3
|
let __tla = Promise.all([
|
|
4
4
|
(()=>{
|
|
@@ -53,7 +53,7 @@ let __tla = Promise.all([
|
|
|
53
53
|
r += i;
|
|
54
54
|
const c = o.getUint32(r, !0);
|
|
55
55
|
r += 4;
|
|
56
|
-
const m = new Uint8Array(n, r, c), y = e.readParquet(t), f = e.readParquet(l), b = e.readParquet(m), u = await de(()=>import("./arrow-
|
|
56
|
+
const m = new Uint8Array(n, r, c), y = e.readParquet(t), f = e.readParquet(l), b = e.readParquet(m), u = await de(()=>import("./arrow-CZ5kQ26f.js").then((_)=>_.A), []), d = u.tableFromIPC(y.intoIPCStream()), q = u.tableFromIPC(f.intoIPCStream()), $ = u.tableFromIPC(b.intoIPCStream()), E = d.getChild("express_id")?.toArray(), C = d.getChild("ifc_type"), S = d.getChild("vertex_start")?.toArray(), F = d.getChild("vertex_count")?.toArray(), T = d.getChild("index_start")?.toArray(), x = d.getChild("index_count")?.toArray(), D = d.getChild("color_r")?.toArray(), I = d.getChild("color_g")?.toArray(), v = d.getChild("color_b")?.toArray(), P = d.getChild("color_a")?.toArray(), w = q.getChild("x")?.toArray(), K = q.getChild("y")?.toArray(), N = q.getChild("z")?.toArray(), z = q.getChild("nx")?.toArray(), G = q.getChild("ny")?.toArray(), R = q.getChild("nz")?.toArray(), X = $.getChild("i0")?.toArray(), O = $.getChild("i1")?.toArray(), H = $.getChild("i2")?.toArray(), ae = E.length, L = new Array(ae);
|
|
57
57
|
for(let _ = 0; _ < ae; _++){
|
|
58
58
|
const ne = S[_], J = F[_], me = T[_], se = x[_], Y = new Float32Array(J * 3);
|
|
59
59
|
for(let h = 0; h < J; h++){
|
|
@@ -94,7 +94,7 @@ let __tla = Promise.all([
|
|
|
94
94
|
}
|
|
95
95
|
}
|
|
96
96
|
async function Re(n, e = 1e4) {
|
|
97
|
-
const o = await _e(), r = await de(()=>import("./arrow-
|
|
97
|
+
const o = await _e(), r = await de(()=>import("./arrow-CZ5kQ26f.js").then((M)=>M.A), []), a = new DataView(n);
|
|
98
98
|
let t = 0;
|
|
99
99
|
const i = a.getUint8(t);
|
|
100
100
|
if (t += 1, i !== 2) throw new Error(`Unsupported optimized Parquet version: ${i}`);
|
|
@@ -485,7 +485,7 @@ let __tla = Promise.all([
|
|
|
485
485
|
}
|
|
486
486
|
};
|
|
487
487
|
je = async function(n) {
|
|
488
|
-
const e = await _e(), o = await de(()=>import("./arrow-
|
|
488
|
+
const e = await _e(), o = await de(()=>import("./arrow-CZ5kQ26f.js").then((s)=>s.A), []), r = new DataView(n);
|
|
489
489
|
let a = 0;
|
|
490
490
|
const t = r.getUint32(a, !0);
|
|
491
491
|
a += 4;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function r(){throw new Error("Tauri core API is unavailable in the browser build")}export{r as invoke};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function n(){return null}export{n as open};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
async function r(e){throw new Error("Tauri file system API is unavailable in the browser benchmark build")}export{r as readFile};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{I as f,a as m}from"./exporters-ChAtBmlj.js";import"./bcf-DOG9_WPX.js";import"./zip-DBEtpeu6.js";import"./cesium-DUOzBlqv.js";import"./arrow-CZ5kQ26f.js";class b{bridge;initialized=!1;constructor(){this.bridge=new f}async init(){this.initialized||(await this.bridge.init(),this.initialized=!0)}isInitialized(){return this.initialized}toIfcContent(e){return typeof e=="string"?e:new TextDecoder().decode(e)}async processGeometry(e){this.initialized||await this.init(),performance.now();const i=new m(this.bridge.getApi(),this.toIfcContent(e)),r=i.collectMeshes(),s=i.getBuildingRotation();performance.now();let o=0,n=0;for(const a of r)o+=a.positions.length/3,n+=a.indices.length/3;return{meshes:r,totalVertices:o,totalTriangles:n,coordinateInfo:{originShift:{x:0,y:0,z:0},originalBounds:{min:{x:0,y:0,z:0},max:{x:0,y:0,z:0}},shiftedBounds:{min:{x:0,y:0,z:0},max:{x:0,y:0,z:0}},hasLargeCoordinates:!1,buildingRotation:s}}}async processGeometryStreaming(e,i){this.initialized||await this.init();const r=performance.now(),s=new m(this.bridge.getApi(),this.toIfcContent(e));let o=0,n=0,c=0;try{for await(const t of s.collectMeshesStreaming(50)){if(t&&typeof t=="object"&&"type"in t&&t.type==="colorUpdate")continue;const l=t;o+=l.length;for(const g of l)n+=g.positions.length/3,c+=g.indices.length/3;i.onBatch?.({meshes:l,progress:{processed:o,total:o,currentType:"processing"}})}}catch(t){throw i.onError?.(t instanceof Error?t:new Error(String(t))),t}const d=performance.now()-r,h={totalMeshes:o,totalVertices:n,totalTriangles:c,parseTimeMs:d*.3,geometryTimeMs:d*.7};return i.onComplete?.(h),h}getApi(){return this.bridge.getApi()}}export{b as WasmBridge};
|