gps-plus-slam-app-framework 1.7.0 → 1.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{accuracy-circles-BtqOP_v1.d.ts → accuracy-circles-DkWBkF5g.d.ts} +16 -6
- package/dist/{app-selectors-ikTUQZpe.d.ts → app-selectors-JqydaUMN.d.ts} +1 -1
- package/dist/ar/bresenham3d.d.ts +1 -1
- package/dist/ar/camera-blit-capture.d.ts +1 -1
- package/dist/ar/capability-checker.d.ts +1 -1
- package/dist/ar/capture-failure-tracker.d.ts +1 -1
- package/dist/ar/chromium-camera-access-workaround.d.ts +1 -1
- package/dist/ar/depth-grid-lookup.d.ts +1 -1
- package/dist/ar/depth-occluder.d.ts +127 -0
- package/dist/ar/depth-occluder.js +299 -0
- package/dist/ar/depth-sampler.d.ts +2 -2
- package/dist/ar/depth-sampler.js +24 -4
- package/dist/ar/depth-unprojection.d.ts +1 -1
- package/dist/ar/depth-unprojection.js +52 -21
- package/dist/ar/enable-gps-ar.d.ts +1 -1
- package/dist/ar/enable-gps-ar.js +1 -1
- package/dist/ar/frame-loop.d.ts +1 -1
- package/dist/ar/frame-loop.js +12 -2
- package/dist/ar/image-capture.d.ts +1 -1
- package/dist/ar/image-capture.js +1 -1
- package/dist/ar/image-quality.d.ts +1 -1
- package/dist/ar/image-quality.js +2 -1
- package/dist/ar/index.d.ts +32 -31
- package/dist/ar/index.js +5 -4
- package/dist/ar/occlusion-mesh-worker.d.ts +58 -0
- package/dist/ar/occlusion-mesh-worker.js +129 -0
- package/dist/ar/occupancy-grid.d.ts +2 -2
- package/dist/ar/occupancy-grid.js +287 -31
- package/dist/ar/occupancy-mesher.d.ts +2 -0
- package/dist/ar/occupancy-mesher.js +638 -0
- package/dist/ar/planar-pnp.d.ts +1 -1
- package/dist/ar/qr-debug-view.d.ts +1 -1
- package/dist/ar/qr-derived-pose.d.ts +1 -1
- package/dist/ar/qr-detection-controller.d.ts +1 -1
- package/dist/ar/qr-frontend.d.ts +1 -1
- package/dist/ar/qr-pose.d.ts +1 -1
- package/dist/ar/qr-size-depth-context.d.ts +2 -2
- package/dist/ar/qr-size-measurer.d.ts +1 -1
- package/dist/ar/replay-scene.d.ts +1 -1
- package/dist/ar/replay-scene.js +1 -1
- package/dist/ar/scene-node-names.d.ts +1 -1
- package/dist/ar/webxr-nue-basis.d.ts +1 -1
- package/dist/ar/webxr-session.d.ts +4 -4
- package/dist/ar/webxr-session.js +2 -2
- package/dist/ar/xr-camera-texture.d.ts +1 -1
- package/dist/ar/xr-error-handler.d.ts +1 -1
- package/dist/ar/xr-frame-loop.d.ts +1 -1
- package/dist/ar/xr-frame-loop.js +12 -2
- package/dist/{ar-MFpFlV7j.js → ar-BqCudtqE.js} +3 -2
- package/dist/{ar-world-group-alignment-69fgnB39.d.ts → ar-world-group-alignment-BlvGcIAk.d.ts} +1 -1
- package/dist/{capture-motion-gate-4EscNZCw.js → capture-motion-gate-_NdTSwKi.js} +17 -5
- package/dist/cell-key-DIB4rOTV.js +51 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/{create-slam-app-store-n_VF63D5.d.ts → create-slam-app-store-D3nzh9Wb.d.ts} +4 -4
- package/dist/{create-slam-app-store-DkCHOpvb.js → create-slam-app-store-DXiAnJwR.js} +9 -2
- package/dist/{depth-grid-lookup-DQ-IYhO3.d.ts → depth-grid-lookup-D5atpNZ3.d.ts} +1 -1
- package/dist/{depth-sampler-asc8exHt.d.ts → depth-sampler-CwObAwEA.d.ts} +33 -1
- package/dist/{depth-unprojection-DjsbJW9L.d.ts → depth-unprojection-DRdBU90S.d.ts} +1 -1
- package/dist/{enable-gps-ar-DkNhFv4Y.d.ts → enable-gps-ar-DvGzBOrp.d.ts} +4 -4
- package/dist/{frame-conversions-DObhj8Wf.d.ts → frame-conversions-C4bnNOEY.d.ts} +1 -1
- package/dist/{fused-path-v6eOmLl3.d.ts → fused-path-C5pp0PJU.d.ts} +1 -1
- package/dist/geo/h3-proximity.d.ts +1 -1
- package/dist/geo/index.d.ts +1 -1
- package/dist/{gps-anchor-BeFO2RYa.d.ts → gps-anchor-BjECcYnD.d.ts} +1 -1
- package/dist/{gps-ar-pose-sampler-DHMZmYAc.d.ts → gps-ar-pose-sampler-DEGNk2CI.d.ts} +1 -1
- package/dist/{gps-event-coordinator-CjWW636x.d.ts → gps-event-coordinator-CHtIkhb7.d.ts} +4 -4
- package/dist/{image-capture-CNZDrQXG.d.ts → image-capture-Bp6Pd4Md.d.ts} +3 -3
- package/dist/{image-capture-B2-b6tKK.js → image-capture-DVcuqMtX.js} +1 -1
- package/dist/{index-BODDUTvD.d.ts → index-DlsOo2IB.d.ts} +1 -1
- package/dist/{index-BneSj4_5.d.ts → index-cCQWuYqy.d.ts} +3 -3
- package/dist/index.d.ts +82 -80
- package/dist/index.js +10 -8
- package/dist/{leaflet-map-overlay-CmIyiE8n.d.ts → leaflet-map-overlay-BOZFW5kT.d.ts} +64 -10
- package/dist/leaflet-map-overlay-CBWPvaX9.js +452 -0
- package/dist/lerp-utils-Qs8OhumS.d.ts +42 -0
- package/dist/map-data-D7rpMC6f.js +120 -0
- package/dist/{map-data-B4oEehUh.d.ts → map-data-PNfGKGWx.d.ts} +22 -2
- package/dist/{map-overlay-draw-ymz1s7fG.d.ts → map-overlay-draw-DiroaJed.d.ts} +1 -1
- package/dist/{null-storage-backend-B9rtyDfG.d.ts → null-storage-backend-B1-jlpin.d.ts} +2 -2
- package/dist/occlusion-mesh-b28lRJ6S.d.ts +194 -0
- package/dist/occupancy-grid-BV7RhB7I.d.ts +194 -0
- package/dist/occupancy-mesher-C2ecWhNp.d.ts +100 -0
- package/dist/{opfs-storage-3VZh-qH6.d.ts → opfs-storage-CTkxvxN4.d.ts} +5 -0
- package/dist/{opfs-storage-backend-JJiUJo-3.d.ts → opfs-storage-backend-D6Z03fML.d.ts} +2 -2
- package/dist/{persistence-middleware-DAPTTwB2.d.ts → persistence-middleware-CG-t08X4.d.ts} +1 -1
- package/dist/{planar-pnp-my9bqULS.d.ts → planar-pnp-D7bc_rLX.d.ts} +1 -1
- package/dist/{qr-debug-view-Brl73HGO.d.ts → qr-debug-view-BJooqbiP.d.ts} +1 -1
- package/dist/{qr-derived-pose-CmxTP2m4.d.ts → qr-derived-pose-BwNWn8oV.d.ts} +2 -2
- package/dist/{qr-detected-slice-VQssZmQJ.d.ts → qr-detected-slice-TzVb8bij.d.ts} +4 -4
- package/dist/{qr-detection-controller-CDurHv8E.d.ts → qr-detection-controller-Bo4XfQTP.d.ts} +3 -3
- package/dist/{qr-frontend--fFX25mV.d.ts → qr-frontend-BPURlh3S.d.ts} +1 -1
- package/dist/{qr-pose-aggregation-B7tWJq7j.d.ts → qr-pose-aggregation-CypnmjA-.d.ts} +1 -1
- package/dist/{qr-size-depth-context-CeAG53fy.d.ts → qr-size-depth-context-apAOmbrZ.d.ts} +2 -2
- package/dist/{qr-size-measurer-DQdAsid1.d.ts → qr-size-measurer-DxiMqRUw.d.ts} +3 -3
- package/dist/{recording-options-BPCpMHLK.d.ts → recording-options-vASCFzc5.d.ts} +177 -24
- package/dist/{recording-replayer-DQKpAGyQ.d.ts → recording-replayer-D0V9WkmY.d.ts} +2 -2
- package/dist/{recording-slice-DaxHZvNu.d.ts → recording-slice-DTUtSVgd.d.ts} +2 -2
- package/dist/{replay-engine-CmKh_4wf.d.ts → replay-engine-xdrUgWJi.d.ts} +1 -1
- package/dist/{replay-scene-DBlDrV_x.d.ts → replay-scene-zJ8SFDjE.d.ts} +3 -3
- package/dist/sensors/absolute-orientation.d.ts +1 -1
- package/dist/sensors/absolute-orientation.js +23 -6
- package/dist/sensors/gps-error-handler.d.ts +1 -1
- package/dist/sensors/gps.d.ts +1 -1
- package/dist/sensors/index.d.ts +4 -4
- package/dist/sensors/permission-checker.d.ts +1 -1
- package/dist/state/app-selectors.d.ts +1 -1
- package/dist/state/combined-root-state.d.ts +1 -1
- package/dist/state/create-slam-app-store.d.ts +1 -1
- package/dist/state/create-slam-app-store.js +1 -1
- package/dist/state/gps-ar-pose-sampler.d.ts +3 -3
- package/dist/state/gps-event-coordinator.d.ts +1 -1
- package/dist/state/index.d.ts +19 -19
- package/dist/state/index.js +2 -2
- package/dist/state/persistence-middleware.d.ts +1 -1
- package/dist/state/qr-detected-slice.d.ts +3 -3
- package/dist/state/recording-options.d.ts +2 -2
- package/dist/state/recording-options.js +134 -15
- package/dist/state/recording-replayer.d.ts +2 -2
- package/dist/state/recording-replayer.js +1 -1
- package/dist/state/recording-slice.d.ts +1 -1
- package/dist/state/replay-engine.d.ts +1 -1
- package/dist/state/store-subscribers.d.ts +2 -2
- package/dist/state/store-subscribers.js +2 -1
- package/dist/state/subscribe-to-selector.d.ts +1 -1
- package/dist/state/tracking-quality.d.ts +1 -1
- package/dist/state/tracking-quality.js +10 -1
- package/dist/state/tracking-slice.d.ts +1 -1
- package/dist/{state-E51QT_-j.js → state-BeKvn4B-.js} +1 -1
- package/dist/storage/file-system-utils.d.ts +1 -1
- package/dist/storage/index.d.ts +8 -8
- package/dist/storage/null-storage-backend.d.ts +1 -1
- package/dist/storage/opfs-storage-backend.d.ts +1 -1
- package/dist/storage/opfs-storage.d.ts +1 -1
- package/dist/storage/opfs-storage.js +25 -1
- package/dist/storage/storage-backend.d.ts +1 -1
- package/dist/storage/zip-coverage-embed.d.ts +1 -1
- package/dist/storage/zip-export.d.ts +1 -1
- package/dist/storage/zip-reader.d.ts +1 -1
- package/dist/{storage-backend-BdVLD0dU.d.ts → storage-backend-sEtmM4yW.d.ts} +1 -1
- package/dist/{store-subscribers-CA6AJH_8.d.ts → store-subscribers-DScA7tdT.d.ts} +2 -2
- package/dist/{subscribe-to-selector-B6EUmQ3I.d.ts → subscribe-to-selector-B9ylM5Oh.d.ts} +1 -1
- package/dist/test-utils/browser-mocks.d.ts +1 -1
- package/dist/test-utils/zip-round-trip-helpers.d.ts +1 -1
- package/dist/{tracking-slice-BuAZxXZ5.d.ts → tracking-slice-DMkHlbny.d.ts} +1 -1
- package/dist/types/ar-types.d.ts +1 -1
- package/dist/types/geo-types.d.ts +1 -1
- package/dist/types/index.d.ts +2 -2
- package/dist/utils/concurrency.d.ts +1 -1
- package/dist/utils/failure-tracker.d.ts +1 -1
- package/dist/utils/format-file-size.d.ts +1 -1
- package/dist/utils/fused-path.d.ts +1 -1
- package/dist/utils/index.d.ts +7 -7
- package/dist/utils/list-formatter.d.ts +1 -1
- package/dist/utils/logger.d.ts +1 -1
- package/dist/visualization/accuracy-circles.d.ts +1 -1
- package/dist/visualization/accuracy-circles.js +17 -8
- package/dist/visualization/alignment-lerper.d.ts +1 -1
- package/dist/visualization/ar-world-group-alignment.d.ts +1 -1
- package/dist/visualization/ar-world-group-alignment.js +1 -1
- package/dist/visualization/camera-follower.d.ts +1 -1
- package/dist/visualization/css3d-renderer-manager.d.ts +1 -1
- package/dist/visualization/frame-conversions.d.ts +1 -1
- package/dist/visualization/frustum-visibility.d.ts +1 -1
- package/dist/visualization/gps-anchor.d.ts +1 -1
- package/dist/visualization/gps-compass-cubes.d.ts +1 -1
- package/dist/visualization/gps-event-markers.d.ts +1 -1
- package/dist/visualization/gps-event-markers.js +1 -1
- package/dist/visualization/hit-test-reticle.d.ts +1 -1
- package/dist/visualization/index.d.ts +20 -19
- package/dist/visualization/index.js +4 -3
- package/dist/visualization/leaflet-map-overlay.d.ts +1 -1
- package/dist/visualization/leaflet-map-overlay.js +1 -282
- package/dist/visualization/lerp-utils.d.ts +2 -2
- package/dist/visualization/lerp-utils.js +27 -3
- package/dist/visualization/map-data.d.ts +1 -1
- package/dist/visualization/map-data.js +1 -32
- package/dist/visualization/map-overlay-draw.d.ts +1 -1
- package/dist/visualization/map-overlay-draw.js +24 -2
- package/dist/visualization/map-overlay.d.ts +1 -1
- package/dist/visualization/occluder-mesh-driver.d.ts +130 -0
- package/dist/visualization/occluder-mesh-driver.js +219 -0
- package/dist/visualization/occlusion-mesh.d.ts +2 -0
- package/dist/visualization/occlusion-mesh.js +437 -0
- package/dist/visualization/three-dispose.d.ts +1 -1
- package/dist/visualization/vis-colors.d.ts +1 -1
- package/dist/{webxr-session-DG-eNfny.js → webxr-session-BCP2XK7k.js} +88 -13
- package/dist/{webxr-session-Do5L6G3B.d.ts → webxr-session-cRG2SYAQ.d.ts} +73 -10
- package/package.json +4 -4
- package/dist/lerp-utils-BLmHhkVe.d.ts +0 -20
- package/dist/occupancy-grid-DnOc-6PU.d.ts +0 -82
- /package/dist/{absolute-orientation-CAEh840t.d.ts → absolute-orientation-BAxc15J6.d.ts} +0 -0
- /package/dist/{alignment-lerper-Bil6vbVw.d.ts → alignment-lerper-gD70k7Fq.d.ts} +0 -0
- /package/dist/{ar-types-BFX2r1wk.d.ts → ar-types-Cc5yvBwn.d.ts} +0 -0
- /package/dist/{bresenham3d-CU1Gv2W4.d.ts → bresenham3d-DGc4nIb-.d.ts} +0 -0
- /package/dist/{camera-blit-capture-NKT9H5-e.d.ts → camera-blit-capture-BimSdyih.d.ts} +0 -0
- /package/dist/{camera-follower-CqJJ7zRj.d.ts → camera-follower-DfBm2J5i.d.ts} +0 -0
- /package/dist/{capability-checker-DUQLg6gq.d.ts → capability-checker-BTTpygvZ.d.ts} +0 -0
- /package/dist/{capture-failure-tracker-gsm8q7yi.d.ts → capture-failure-tracker-_BVfhpxv.d.ts} +0 -0
- /package/dist/{capture-motion-gate-0Yl2NpQG.d.ts → capture-motion-gate-BGoAMkmf.d.ts} +0 -0
- /package/dist/{chromium-camera-access-workaround-D4K2uwwQ.d.ts → chromium-camera-access-workaround-C6yJLXz9.d.ts} +0 -0
- /package/dist/{concurrency-By0oOTZt.d.ts → concurrency-DPeGBH0X.d.ts} +0 -0
- /package/dist/{css3d-renderer-manager-B3kGNtcn.d.ts → css3d-renderer-manager-CPpVtvgs.d.ts} +0 -0
- /package/dist/{failure-tracker-BO7M7jF_.d.ts → failure-tracker-CeKf5HIc.d.ts} +0 -0
- /package/dist/{file-system-utils-DOajnMm-.d.ts → file-system-utils-DueXHxo9.d.ts} +0 -0
- /package/dist/{format-file-size-Dc98ulzB.d.ts → format-file-size-DxN-EBLc.d.ts} +0 -0
- /package/dist/{frame-loop-CpVjQ1dH.d.ts → frame-loop-7GBMBu68.d.ts} +0 -0
- /package/dist/{frustum-visibility-CeoCZchO.d.ts → frustum-visibility-CokkgS_i.d.ts} +0 -0
- /package/dist/{geo-types-3Ip1NzVR.d.ts → geo-types-DrGVu8nS.d.ts} +0 -0
- /package/dist/{gps-BBO3hKfT.d.ts → gps-CDKDQokE.d.ts} +0 -0
- /package/dist/{gps-compass-cubes-DSN87L8p.d.ts → gps-compass-cubes-1mooS3BS.d.ts} +0 -0
- /package/dist/{gps-error-handler-BbPsfw-_.d.ts → gps-error-handler-C34GQuTu.d.ts} +0 -0
- /package/dist/{gps-event-markers-Cz9RMA2k.d.ts → gps-event-markers-Di2nBzx-.d.ts} +0 -0
- /package/dist/{h3-proximity-C-j0pw1j.d.ts → h3-proximity-D0GTHQmr.d.ts} +0 -0
- /package/dist/{hit-test-reticle-DV-2TpB9.d.ts → hit-test-reticle-CaQbrhbk.d.ts} +0 -0
- /package/dist/{image-quality-smCBoFj1.d.ts → image-quality-BMx2ko9-.d.ts} +0 -0
- /package/dist/{index-_Rhgoqkh.d.ts → index-D4vrgV4b.d.ts} +0 -0
- /package/dist/{index-BAPokxMb.d.ts → index-D74JTX4I.d.ts} +0 -0
- /package/dist/{list-formatter-KNMS0ay2.d.ts → list-formatter-DLFDnS70.d.ts} +0 -0
- /package/dist/{logger-CLnPrHiD.d.ts → logger-CqTd5Kpk.d.ts} +0 -0
- /package/dist/{map-overlay-Dh2B97MP.d.ts → map-overlay-BCQgvIgU.d.ts} +0 -0
- /package/dist/{permission-checker-CDuI8BwC.d.ts → permission-checker-B-VtjnBA.d.ts} +0 -0
- /package/dist/{qr-pose-D2rfu5DA.d.ts → qr-pose-y3vaEd6x.d.ts} +0 -0
- /package/dist/{scene-node-names-BiShOQDB.d.ts → scene-node-names-CGb-ylBd.d.ts} +0 -0
- /package/dist/{session-disposers-zv9OGXPB.js → session-disposers-BPrMplIC.js} +0 -0
- /package/dist/{three-dispose-Bt1k7WKh.d.ts → three-dispose-BMOAmPhb.d.ts} +0 -0
- /package/dist/{vis-colors-Obw2pLqT.d.ts → vis-colors-C7HI0u9_.d.ts} +0 -0
- /package/dist/{webxr-nue-basis-3nfjDJJp.d.ts → webxr-nue-basis-CaCnYxuq.d.ts} +0 -0
- /package/dist/{xr-camera-texture-Cva1q3Qj.d.ts → xr-camera-texture-q0eIDSRg.d.ts} +0 -0
- /package/dist/{xr-error-handler-CtvHpjfm.d.ts → xr-error-handler-uVGDu9IX.d.ts} +0 -0
- /package/dist/{xr-frame-loop-DIYtRcUa.d.ts → xr-frame-loop-DX3JPpAU.d.ts} +0 -0
- /package/dist/{zip-coverage-embed-DCAREVmw.d.ts → zip-coverage-embed-ncVbaZAz.d.ts} +0 -0
- /package/dist/{zip-export-ol0S_Ofd.d.ts → zip-export-CtiUnAlJ.d.ts} +0 -0
- /package/dist/{zip-reader-D9iPQwdQ.d.ts → zip-reader-CvruaGvD.d.ts} +0 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { i as DepthSample, t as ARPose } from "./ar-types-
|
|
2
|
-
import { i as DepthSamplerConfig } from "./depth-sampler-
|
|
3
|
-
import { t as ArCrashIsolationOptions } from "./recording-options-
|
|
4
|
-
import { i as FrameQualityVerdict, n as CapturedImage, o as ImageCaptureConfig, t as CapturedFrame } from "./image-capture-
|
|
5
|
-
import { a as TrackingSliceState, r as ResetTransformData } from "./tracking-slice-
|
|
6
|
-
import { o as RgbaImage } from "./qr-frontend
|
|
7
|
-
import { t as Css3dRendererManager } from "./css3d-renderer-manager-
|
|
8
|
-
import { r as XRCameraLike } from "./xr-camera-texture-
|
|
1
|
+
import { i as DepthSample, t as ARPose } from "./ar-types-Cc5yvBwn.js";
|
|
2
|
+
import { i as DepthSamplerConfig, t as DepthInfo } from "./depth-sampler-CwObAwEA.js";
|
|
3
|
+
import { t as ArCrashIsolationOptions } from "./recording-options-vASCFzc5.js";
|
|
4
|
+
import { i as FrameQualityVerdict, n as CapturedImage, o as ImageCaptureConfig, t as CapturedFrame } from "./image-capture-Bp6Pd4Md.js";
|
|
5
|
+
import { a as TrackingSliceState, r as ResetTransformData } from "./tracking-slice-DMkHlbny.js";
|
|
6
|
+
import { o as RgbaImage } from "./qr-frontend-BPURlh3S.js";
|
|
7
|
+
import { t as Css3dRendererManager } from "./css3d-renderer-manager-CPpVtvgs.js";
|
|
8
|
+
import { r as XRCameraLike } from "./xr-camera-texture-q0eIDSRg.js";
|
|
9
9
|
import * as THREE from "three";
|
|
10
10
|
import { OdometryTrackingRestartedPayload } from "gps-plus-slam-js";
|
|
11
11
|
|
|
@@ -69,6 +69,16 @@ declare function shouldLogCameraAccessDiagnostic(pose: XRViewerPose | null, alre
|
|
|
69
69
|
* @internal
|
|
70
70
|
*/
|
|
71
71
|
declare function resetWebXRState(): void;
|
|
72
|
+
/**
|
|
73
|
+
* Info passed to the session-end callback (F3, 2026-07-04 user feedback).
|
|
74
|
+
* `requestedByApp` discriminates the app's own `endARSession()` from a
|
|
75
|
+
* system-initiated end (e.g. the Android back gesture, which ends an
|
|
76
|
+
* immersive XRSession directly — no popstate, no beforeunload, not
|
|
77
|
+
* cancelable).
|
|
78
|
+
*/
|
|
79
|
+
interface SessionEndInfo {
|
|
80
|
+
requestedByApp: boolean;
|
|
81
|
+
}
|
|
72
82
|
/**
|
|
73
83
|
* Default longer-edge resolution (px) for the camera-frame blit the QR / CV
|
|
74
84
|
* detector sees. The on-device capture-resolution sweep (2026-06-17, via the
|
|
@@ -129,6 +139,18 @@ interface SessionFeatureOptions {
|
|
|
129
139
|
* existing recorder/anchor sessions are unaffected.
|
|
130
140
|
*/
|
|
131
141
|
requestHitTest?: boolean;
|
|
142
|
+
/**
|
|
143
|
+
* Request `depth-sensing` (cpu-optimized) for the **live depth occluder**
|
|
144
|
+
* even when crash-isolation's `enableDepthSensingFeature` is off. Consumer
|
|
145
|
+
* apps (AnchorStarter / MinimalExample) want occlusion without the recorder's
|
|
146
|
+
* depth-capture wiring, so the occluder owns its own session-feature switch.
|
|
147
|
+
* Both flags resolve the **same** cpu-optimized usage — setting both is valid
|
|
148
|
+
* (no conflict, no throw): the grid sampler and the occluder are two consumers
|
|
149
|
+
* of one depth read. Default `false`.
|
|
150
|
+
*
|
|
151
|
+
* @see GpsPlusSlamJs_Docs/docs/2026-06-14-webxr-depth-occlusion-plan.md §6/§8
|
|
152
|
+
*/
|
|
153
|
+
requestDepthOcclusion?: boolean;
|
|
132
154
|
}
|
|
133
155
|
/**
|
|
134
156
|
* Build XR session init options.
|
|
@@ -138,7 +160,7 @@ interface SessionFeatureOptions {
|
|
|
138
160
|
* @param isolationOptions - Crash-isolation diagnostic flags (DOM overlay,
|
|
139
161
|
* depth-sensing, camera-access)
|
|
140
162
|
* @param sessionFeatures - Opt-in standard WebXR features that are independent
|
|
141
|
-
* of crash isolation (
|
|
163
|
+
* of crash isolation (`requestHitTest`, `requestDepthOcclusion`)
|
|
142
164
|
* @returns XRSessionInit options
|
|
143
165
|
* @throws Error if rootElement is null
|
|
144
166
|
*/
|
|
@@ -147,6 +169,23 @@ declare function buildSessionOptions(rootElement: Element | null, isolationOptio
|
|
|
147
169
|
* Check if WebXR immersive-ar is supported
|
|
148
170
|
*/
|
|
149
171
|
declare function isWebXRSupported(): Promise<boolean>;
|
|
172
|
+
/**
|
|
173
|
+
* AR camera frustum constants — the single source of truth for live AR and
|
|
174
|
+
* replay (both build their camera via {@link createSceneHierarchy}).
|
|
175
|
+
*
|
|
176
|
+
* F2 (2026-07-04 user feedback): far raised 100 → 200 m so objects in the
|
|
177
|
+
* reported 100–200 m range are no longer frustum-culled. The far-plane
|
|
178
|
+
* distance itself is essentially free at this app's object counts; the real
|
|
179
|
+
* constraint is depth precision — far/near = 2×10⁴ is comfortable for a
|
|
180
|
+
* 24-bit depth buffer. Revisit the ratio if AR_CAMERA_NEAR ever shrinks.
|
|
181
|
+
*
|
|
182
|
+
* Note: these apply to WebGL content only. The CSS3D minimap is composited by
|
|
183
|
+
* the browser from the camera fov alone — near/far do not clip it (F1 in the
|
|
184
|
+
* same feedback doc).
|
|
185
|
+
*/
|
|
186
|
+
declare const AR_CAMERA_FOV = 70;
|
|
187
|
+
declare const AR_CAMERA_NEAR = 0.01;
|
|
188
|
+
declare const AR_CAMERA_FAR = 200;
|
|
150
189
|
/**
|
|
151
190
|
* Create the scene hierarchy with proper AR/GPS frame separation.
|
|
152
191
|
* This is a pure function for testability.
|
|
@@ -196,6 +235,18 @@ declare function createSceneHierarchy(): {
|
|
|
196
235
|
* `requestHitTest`) forwarded to the session negotiation.
|
|
197
236
|
*/
|
|
198
237
|
declare function initAR(container: HTMLElement, isolationOptions?: Partial<ArCrashIsolationOptions>, sessionFeatures?: SessionFeatureOptions): Promise<void>;
|
|
238
|
+
/**
|
|
239
|
+
* Extract depth information from an XR frame. Returns `null` if depth sensing is
|
|
240
|
+
* not available (no pose/view, no `getDepthInformation`, or the call throws).
|
|
241
|
+
*
|
|
242
|
+
* Exported so a consumer can feed the **live depth occluder** from a
|
|
243
|
+
* `registerXrFrameUpdate` callback — the callback has the live `frame` +
|
|
244
|
+
* `referenceSpace`, computes `pose = frame.getViewerPose(referenceSpace)`, and
|
|
245
|
+
* passes both here to obtain the per-frame {@link DepthInfo} (with the widened
|
|
246
|
+
* `data` / `rawValueToMeters` / `normDepthBufferFromNormView` / `projectionMatrix`
|
|
247
|
+
* the occluder needs). The same wrapped depth the sparse grid sampler consumes.
|
|
248
|
+
*/
|
|
249
|
+
declare function getDepthInfoFromFrame(frame: XRFrame, pose: XRViewerPose | null): DepthInfo | null;
|
|
199
250
|
/**
|
|
200
251
|
* Get the current Three.js scene (for adding objects like map)
|
|
201
252
|
*/
|
|
@@ -284,6 +335,18 @@ declare function nuePositionToWebXR(nue: readonly number[]): readonly [number, n
|
|
|
284
335
|
* NUE [x, y, z, w] → WebXR [z, y, -x, w]
|
|
285
336
|
*/
|
|
286
337
|
declare function nueQuaternionToWebXR$1(nue: readonly number[]): readonly [number, number, number, number];
|
|
338
|
+
/**
|
|
339
|
+
* Register a host callback fired exactly once whenever the XRSession ends —
|
|
340
|
+
* app-initiated ({@link endARSession}) AND system-initiated (e.g. the Android
|
|
341
|
+
* back gesture, which ends an immersive session directly and uncancelably).
|
|
342
|
+
* `info.requestedByApp` discriminates the two. Fired AFTER the full teardown,
|
|
343
|
+
* so the host can immediately start a fresh session from inside the callback.
|
|
344
|
+
*
|
|
345
|
+
* Cleared by resetWebXRState() (i.e. after every session end) like the other
|
|
346
|
+
* module-level callbacks — re-register before/with each new session.
|
|
347
|
+
* Pass `null` to unregister. F3, 2026-07-04 user feedback.
|
|
348
|
+
*/
|
|
349
|
+
declare function setSessionEndCallback(cb: ((info: SessionEndInfo) => void) | null): void;
|
|
287
350
|
/**
|
|
288
351
|
* End the current XR session and clean up all resources.
|
|
289
352
|
*
|
|
@@ -464,4 +527,4 @@ declare function setFrameCallback(callback: (() => void) | null): void;
|
|
|
464
527
|
*/
|
|
465
528
|
declare function getLiveCss3dManager(): Css3dRendererManager | null;
|
|
466
529
|
//#endregion
|
|
467
|
-
export {
|
|
530
|
+
export { stopImageCapture as $, nuePositionToWebXR as A, setImageQualityAnalyzer as B, getImageCaptureFrameCount as C, initAR as D, getXrCameraFromPose as E, setCamera as F, setTrackingRecoveredCallback as G, setSessionEndCallback as H, setCameraFrameCallback as I, startCameraFrameCapture as J, setTrackingStore as K, setDepthCaptureCallback as L, resetWebXRState as M, setArPose as N, isWebXRSupported as O, setArWorldGroup as P, stopDepthCapture as Q, setFrameCallback as R, getDepthSampleCount as S, getScene as T, setTrackingCallbacks as U, setScene as V, setTrackingLostCallback as W, startImageCapture as X, startDepthCapture as Y, stopCameraFrameCapture as Z, getCamera as _, DEFAULT_CAMERA_FRAME_CAPTURE_SIZE as a, getCurrentArPose as b, TrackingSubscribableStore as c, createSceneHierarchy as d, endARSession as f, getArWorldGroup as g, getArPose as h, CameraFrameCaptureConfig as i, nueQuaternionToWebXR$1 as j, isXRCameraLike as k, applyAlignmentMatrix as l, extractResetTransformData as m, AR_CAMERA_FOV as n, SessionEndInfo as o, extractPoseFromViewer as p, shouldLogCameraAccessDiagnostic as q, AR_CAMERA_NEAR as r, SessionFeatureOptions as s, AR_CAMERA_FAR as t, buildSessionOptions as u, getCameraFrameCaptureSize as v, getLiveCss3dManager as w, getDepthInfoFromFrame as x, getCameraFrameCount as y, setImageCaptureCallback as z };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gps-plus-slam-app-framework",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.8.0",
|
|
4
4
|
"description": "Reusable AR+GPS app framework layer — WebXR session management, Three.js visualization, GPS sensors, storage abstractions, replay engine, and store wiring for gps-plus-slam-js.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"files": [
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@reduxjs/toolkit": "^2.11.2",
|
|
38
38
|
"gl-matrix": "3.4.4",
|
|
39
|
-
"gps-plus-slam-js": "^1.
|
|
39
|
+
"gps-plus-slam-js": "^1.8.0"
|
|
40
40
|
},
|
|
41
41
|
"peerDependencies": {
|
|
42
42
|
"@sentry/browser": ">=10.0.0",
|
|
@@ -104,10 +104,10 @@
|
|
|
104
104
|
"build": "tsdown --config config/tsdown.config.ts",
|
|
105
105
|
"verify:pack": "pnpm pack --dry-run",
|
|
106
106
|
"verify:community-key-lifetime": "node scripts/verify-community-key-lifetime.mjs",
|
|
107
|
-
"test:unit": "vitest run --coverage --config
|
|
107
|
+
"test:unit": "node ../scripts/run-vitest-scoped.mjs run --coverage --config=config/vitest.config.ts",
|
|
108
108
|
"typecheck": "tsc -p tsconfig.app.json --noEmit",
|
|
109
109
|
"typecheck:tests": "tsc -p tsconfig.vitest.json --noEmit",
|
|
110
|
-
"lint": "eslint . --config config/eslint.config.mjs",
|
|
110
|
+
"lint": "eslint . --config config/eslint.config.mjs --max-warnings 37",
|
|
111
111
|
"test:watch": "vitest --config config/vitest.config.ts",
|
|
112
112
|
"check:cycles": "dpdm -T --exit-code circular:1 --no-warning --no-tree ./src/index.ts",
|
|
113
113
|
"setup": "bash ./scripts/setup.sh"
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
//#region ../src/visualization/lerp-utils.d.ts
|
|
2
|
-
/**
|
|
3
|
-
* Shared lerp utilities for visualization modules.
|
|
4
|
-
*
|
|
5
|
-
* Both alignment-lerper and camera-follower need the same smoothing
|
|
6
|
-
* rate constant and clamped-alpha formula. Centralised here (R3) to
|
|
7
|
-
* keep the two modules in sync.
|
|
8
|
-
*/
|
|
9
|
-
/** Default speed multiplier — ~90 % convergence in ~0.3 s at 60 fps. */
|
|
10
|
-
declare const DEFAULT_LERP_RATE = 8;
|
|
11
|
-
/**
|
|
12
|
-
* Compute a frame-rate-independent lerp/slerp factor clamped to [0, 1].
|
|
13
|
-
*
|
|
14
|
-
* @param lerpRate Speed multiplier (higher = faster convergence).
|
|
15
|
-
* @param dt Delta time in seconds since last frame.
|
|
16
|
-
* @returns The interpolation alpha, guaranteed ≤ 1.0.
|
|
17
|
-
*/
|
|
18
|
-
declare function clampedAlpha(lerpRate: number, dt: number): number;
|
|
19
|
-
//#endregion
|
|
20
|
-
export { clampedAlpha as n, DEFAULT_LERP_RATE as t };
|
|
@@ -1,82 +0,0 @@
|
|
|
1
|
-
import { t as GridCell } from "./bresenham3d-CU1Gv2W4.js";
|
|
2
|
-
import { a as RgbTuple, i as DepthSample } from "./ar-types-BFX2r1wk.js";
|
|
3
|
-
import { Vector3 } from "gps-plus-slam-js";
|
|
4
|
-
|
|
5
|
-
//#region ../src/ar/occupancy-grid.d.ts
|
|
6
|
-
interface OccupancyGridOptions {
|
|
7
|
-
/** Edge length of a cubic grid cell in meters. Default 0.15 (Unity parity). */
|
|
8
|
-
readonly cellSizeM?: number;
|
|
9
|
-
/**
|
|
10
|
-
* Dominant-axis steps before a ray's endpoint at which free-space
|
|
11
|
-
* carving stops, to respect depth noise. Default 2 (Unity parity).
|
|
12
|
-
*/
|
|
13
|
-
readonly carveStopCells?: number;
|
|
14
|
-
}
|
|
15
|
-
declare class OccupancyGrid {
|
|
16
|
-
readonly cellSizeM: number;
|
|
17
|
-
readonly carveStopCells: number;
|
|
18
|
-
private readonly cells;
|
|
19
|
-
constructor(options?: OccupancyGridOptions);
|
|
20
|
-
/** Number of occupied cells. */
|
|
21
|
-
get size(): number;
|
|
22
|
-
/**
|
|
23
|
-
* Fold one depth sample into the grid: unproject each point, carve free
|
|
24
|
-
* space from the camera cell to the point cell, then count the point's
|
|
25
|
-
* cell as occupied. Points that cannot be unprojected (no
|
|
26
|
-
* projectionMatrix on old recordings, invalid depth/coords) are skipped.
|
|
27
|
-
*
|
|
28
|
-
* Carving and incrementing run as two separate passes over the sample's
|
|
29
|
-
* points: all rays are carved first, then every endpoint is incremented.
|
|
30
|
-
* A single interleaved pass would be order-dependent — a deeper point's
|
|
31
|
-
* carve could erase the endpoint a nearer point added earlier in the same
|
|
32
|
-
* sample. Splitting the passes makes the result deterministic and lets an
|
|
33
|
-
* endpoint observed within a sample survive other rays in that same
|
|
34
|
-
* sample. (Deeper-carves-nearer still applies ACROSS samples: a later
|
|
35
|
-
* sample's ray carves an earlier sample's endpoint as before.)
|
|
36
|
-
*
|
|
37
|
-
* @returns the number of points actually added.
|
|
38
|
-
*/
|
|
39
|
-
addSample(sample: DepthSample): number;
|
|
40
|
-
/** Occupied cells observed at least `minObservations` times (default 1). */
|
|
41
|
-
getOccupiedCells(minObservations?: number): GridCell[];
|
|
42
|
-
/** Quantize a raw-WebXR position to its grid cell (round per axis). */
|
|
43
|
-
cellForPosition(pos: Vector3): GridCell;
|
|
44
|
-
/** Center of a cell in raw WebXR space (round-consistent: cell · cellSizeM). */
|
|
45
|
-
getCellCenter(cell: GridCell): Vector3;
|
|
46
|
-
/**
|
|
47
|
-
* Running-average of the EXACT unprojected surface points observed in this
|
|
48
|
-
* cell (raw WebXR space), or null for an unknown cell. Unlike
|
|
49
|
-
* {@link getCellCenter} (the geometric 15 cm-lattice center) this hugs the
|
|
50
|
-
* real measured surface and noise-averages across viewpoints — used by the
|
|
51
|
-
* COLMAP `points3D` export and the debug cubes (follow-up Item A). Being a
|
|
52
|
-
* centroid of points that fell in the cell, it always lies within
|
|
53
|
-
* `cellSizeM/2` of the cell center per axis.
|
|
54
|
-
*/
|
|
55
|
-
getCellPoint(cell: GridCell): Vector3 | null;
|
|
56
|
-
/**
|
|
57
|
-
* Running-average color of the cell's colored observations (Iter 8), or
|
|
58
|
-
* null when the cell is unknown or was only ever observed without color
|
|
59
|
-
* (rgb option off / pre-Iter-8 recordings) — consumers fall back to
|
|
60
|
-
* height-based coloring. Channels are rounded and clamped to 0–255.
|
|
61
|
-
*/
|
|
62
|
-
getCellColor(cell: GridCell): RgbTuple | null;
|
|
63
|
-
/**
|
|
64
|
-
* Walk the grid from `startPos` to `endPos` and return the center of the
|
|
65
|
-
* first cell occupied at least `minObservations` times, or null.
|
|
66
|
-
* Port of Unity's `TryRaycast` (hook for cursor/floor-detection parity).
|
|
67
|
-
*/
|
|
68
|
-
raycast(startPos: Vector3, endPos: Vector3, minObservations?: number): Vector3 | null;
|
|
69
|
-
/** Remove all occupied cells (e.g. on store swap / new session). */
|
|
70
|
-
clear(): void;
|
|
71
|
-
/**
|
|
72
|
-
* Delete occupied cells along the camera→point ray (the space was seen
|
|
73
|
-
* through, so it must be free), stopping `carveStopCells` dominant-axis
|
|
74
|
-
* steps before the endpoint. The endpoint cell itself is additionally
|
|
75
|
-
* protected so a current observation is never erased (relevant for
|
|
76
|
-
* carveStopCells = 0 and for the unconditional start-cell visit).
|
|
77
|
-
*/
|
|
78
|
-
private carve;
|
|
79
|
-
private increment;
|
|
80
|
-
}
|
|
81
|
-
//#endregion
|
|
82
|
-
export { OccupancyGridOptions as n, OccupancyGrid as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{capture-failure-tracker-gsm8q7yi.d.ts → capture-failure-tracker-_BVfhpxv.d.ts}
RENAMED
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|