gps-plus-slam-app-framework 1.0.7 → 1.1.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.
Files changed (167) hide show
  1. package/README.md +69 -15
  2. package/dist/{app-selectors-BeU0_ab8.d.ts → app-selectors-CR9OWodf.d.ts} +1 -1
  3. package/dist/ar/camera-blit-capture.d.ts +1 -1
  4. package/dist/ar/capability-checker.d.ts +2 -0
  5. package/dist/ar/capability-checker.js +25 -0
  6. package/dist/ar/capture-failure-tracker.d.ts +1 -1
  7. package/dist/ar/chromium-camera-access-workaround.d.ts +2 -2
  8. package/dist/ar/chromium-camera-access-workaround.js +197 -8
  9. package/dist/ar/depth-sampler.d.ts +2 -2
  10. package/dist/ar/enable-gps-ar.d.ts +2 -0
  11. package/dist/ar/enable-gps-ar.js +137 -0
  12. package/dist/ar/frame-loop.d.ts +1 -1
  13. package/dist/ar/frame-loop.js +24 -1
  14. package/dist/ar/image-capture.d.ts +1 -1
  15. package/dist/ar/index.d.ts +15 -11
  16. package/dist/ar/index.js +7 -3
  17. package/dist/ar/replay-scene.d.ts +1 -1
  18. package/dist/ar/scene-node-names.d.ts +1 -1
  19. package/dist/ar/webxr-session.d.ts +4 -4
  20. package/dist/ar/webxr-session.js +23 -38
  21. package/dist/ar/xr-error-handler.d.ts +1 -1
  22. package/dist/ar/xr-frame-loop.d.ts +2 -0
  23. package/dist/ar/xr-frame-loop.js +69 -0
  24. package/dist/ar-world-group-alignment-Dn4rQk_c.d.ts +43 -0
  25. package/dist/capability-checker-BTCmZRL4.d.ts +43 -0
  26. package/dist/chromium-camera-access-workaround-MifIwK9x.d.ts +137 -0
  27. package/dist/core/index.d.ts +1 -1
  28. package/dist/{create-slam-app-store-CNsZ3rcX.d.ts → create-slam-app-store-B76AGaI0.d.ts} +5 -5
  29. package/dist/{depth-sampler-xg8vna6c.d.ts → depth-sampler-CqrkRr2N.d.ts} +1 -1
  30. package/dist/enable-gps-ar-DNbO0zbg.d.ts +95 -0
  31. package/dist/{file-system-DTApEv_Q.d.ts → file-system-TIsDfamK.d.ts} +1 -1
  32. package/dist/frame-conversions-D2EYjeNa.d.ts +54 -0
  33. package/dist/{frame-loop-QJIxLin0.d.ts → frame-loop-BTeRpDm4.d.ts} +5 -0
  34. package/dist/{fused-path-CB4DwWOG.d.ts → fused-path-BdVHmDW9.d.ts} +1 -1
  35. package/dist/geo/h3-proximity.d.ts +1 -1
  36. package/dist/geo/index.d.ts +1 -1
  37. package/dist/{gps-anchor-CnWY61XK.d.ts → gps-anchor-CISLPQIb.d.ts} +12 -1
  38. package/dist/{gps-ar-pose-sampler-DsM1Kb2N.d.ts → gps-ar-pose-sampler-BypXZUqC.d.ts} +1 -1
  39. package/dist/{gps-event-coordinator-DBx9I1YX.d.ts → gps-event-coordinator-BKVZbS1M.d.ts} +3 -3
  40. package/dist/hit-test-reticle-BGXOxrUh.d.ts +45 -0
  41. package/dist/{image-capture-DZLxHDN9.d.ts → image-capture-BXZUmj7j.d.ts} +1 -1
  42. package/dist/index-22v8MXJX.d.ts +23 -0
  43. package/dist/index-BB2KEWbN2.d.ts +37 -0
  44. package/dist/index.d.ts +63 -57
  45. package/dist/index.js +14 -7
  46. package/dist/{leaflet-map-overlay-Cew7XAoO.d.ts → leaflet-map-overlay-jNt-kcUr.d.ts} +1 -1
  47. package/dist/{map-data-sih4g64v.d.ts → map-data-BGIBM5rv.d.ts} +1 -1
  48. package/dist/{map-overlay-draw-B3R1c9Xp.d.ts → map-overlay-draw-DcGs9UV3.d.ts} +1 -1
  49. package/dist/{null-storage-backend-BKOS7JpL.d.ts → null-storage-backend-BPQJSaMw.d.ts} +2 -2
  50. package/dist/{opfs-storage-backend-Cj_7PWoq.d.ts → opfs-storage-backend-u4QKvgvP.d.ts} +2 -2
  51. package/dist/{persistence-middleware-BkHIqvaA.d.ts → persistence-middleware-xB5sTllJ.d.ts} +1 -1
  52. package/dist/{recording-options-Dq6IsKAv.d.ts → recording-options-BSFpBSZH.d.ts} +10 -4
  53. package/dist/{recording-replayer-CmCIIZ02.d.ts → recording-replayer-CTL2cUE0.d.ts} +2 -2
  54. package/dist/{recording-slice-d6OtCrza.d.ts → recording-slice-Cb888P6d.d.ts} +2 -2
  55. package/dist/{replay-engine-BGBRQyXs.d.ts → replay-engine-B-5GIZtc.d.ts} +1 -1
  56. package/dist/{replay-scene-DpAGcAKY.d.ts → replay-scene-DkNfldPh.d.ts} +3 -3
  57. package/dist/sensors/gps-error-handler.d.ts +1 -1
  58. package/dist/sensors/gps.d.ts +1 -1
  59. package/dist/sensors/index.d.ts +3 -3
  60. package/dist/sensors/index.js +1 -1
  61. package/dist/sensors/permission-checker.d.ts +1 -1
  62. package/dist/session-disposers-M-oashRH.js +57 -0
  63. package/dist/state/app-selectors.d.ts +1 -1
  64. package/dist/state/combined-root-state.d.ts +1 -1
  65. package/dist/state/create-slam-app-store.d.ts +1 -1
  66. package/dist/state/gps-ar-pose-sampler.d.ts +3 -3
  67. package/dist/state/gps-event-coordinator.d.ts +1 -1
  68. package/dist/state/index.d.ts +17 -17
  69. package/dist/state/index.js +2 -2
  70. package/dist/state/persistence-middleware.d.ts +1 -1
  71. package/dist/state/persistence-middleware.js +9 -3
  72. package/dist/state/recording-options.d.ts +1 -1
  73. package/dist/state/recording-replayer.d.ts +2 -2
  74. package/dist/state/recording-slice.d.ts +1 -1
  75. package/dist/state/replay-engine.d.ts +1 -1
  76. package/dist/state/store-subscribers.d.ts +2 -2
  77. package/dist/state/subscribe-to-selector.d.ts +1 -1
  78. package/dist/state/tracking-quality.d.ts +1 -1
  79. package/dist/state/tracking-slice.d.ts +1 -1
  80. package/dist/state-BkIfpiyA.js +87 -0
  81. package/dist/storage/file-system-utils.d.ts +1 -1
  82. package/dist/storage/file-system.d.ts +1 -1
  83. package/dist/storage/index.d.ts +8 -8
  84. package/dist/storage/null-storage-backend.d.ts +1 -1
  85. package/dist/storage/opfs-storage-backend.d.ts +1 -1
  86. package/dist/storage/opfs-storage.d.ts +1 -1
  87. package/dist/storage/storage-backend.d.ts +1 -1
  88. package/dist/storage/zip-export.d.ts +1 -1
  89. package/dist/storage/zip-reader.d.ts +1 -1
  90. package/dist/{storage-backend-CT0Il_AB.d.ts → storage-backend-yDSKafAQ.d.ts} +1 -1
  91. package/dist/{store-subscribers-Dce_CoJF.d.ts → store-subscribers-swlbtg_z.d.ts} +2 -2
  92. package/dist/{subscribe-to-selector-DIHm3BRZ.d.ts → subscribe-to-selector--KQpgLXG.d.ts} +1 -1
  93. package/dist/test-utils/browser-mocks.d.ts +1 -1
  94. package/dist/test-utils/zip-round-trip-helpers.d.ts +1 -1
  95. package/dist/{tracking-slice-utCNND8t.d.ts → tracking-slice-CDREeoZ_.d.ts} +1 -1
  96. package/dist/types/ar-types.d.ts +1 -1
  97. package/dist/types/geo-types.d.ts +1 -1
  98. package/dist/types/index.d.ts +2 -2
  99. package/dist/utils/concurrency.d.ts +1 -1
  100. package/dist/utils/failure-tracker.d.ts +1 -1
  101. package/dist/utils/format-file-size.d.ts +1 -1
  102. package/dist/utils/fused-path.d.ts +1 -1
  103. package/dist/utils/index.d.ts +6 -6
  104. package/dist/utils/list-formatter.d.ts +1 -1
  105. package/dist/utils/logger.d.ts +1 -1
  106. package/dist/visualization/accuracy-circles.d.ts +1 -1
  107. package/dist/visualization/alignment-lerper.d.ts +1 -1
  108. package/dist/visualization/ar-world-group-alignment.d.ts +2 -0
  109. package/dist/visualization/ar-world-group-alignment.js +51 -0
  110. package/dist/visualization/camera-follower.d.ts +1 -1
  111. package/dist/visualization/css3d-renderer-manager.d.ts +1 -1
  112. package/dist/visualization/frame-conversions.d.ts +2 -0
  113. package/dist/visualization/frame-conversions.js +88 -0
  114. package/dist/visualization/frustum-visibility.d.ts +1 -1
  115. package/dist/visualization/gps-anchor.d.ts +1 -1
  116. package/dist/visualization/gps-anchor.js +216 -1
  117. package/dist/visualization/gps-compass-cubes.d.ts +1 -1
  118. package/dist/visualization/gps-event-markers.d.ts +1 -1
  119. package/dist/visualization/hit-test-reticle.d.ts +2 -0
  120. package/dist/visualization/hit-test-reticle.js +81 -0
  121. package/dist/visualization/index.d.ts +19 -17
  122. package/dist/visualization/index.js +5 -2
  123. package/dist/visualization/leaflet-map-overlay.d.ts +1 -1
  124. package/dist/visualization/lerp-utils.d.ts +1 -1
  125. package/dist/visualization/map-data.d.ts +1 -1
  126. package/dist/visualization/map-overlay-draw.d.ts +1 -1
  127. package/dist/visualization/map-overlay.d.ts +1 -1
  128. package/dist/visualization/three-dispose.d.ts +1 -1
  129. package/dist/visualization/vis-colors.d.ts +1 -1
  130. package/dist/webxr-nue-basis-BbdqhqY6.js +54 -0
  131. package/dist/{webxr-session-DB5cIZnN.d.ts → webxr-session-BnArFCew.d.ts} +29 -8
  132. package/dist/xr-frame-loop-BKckC7xC.d.ts +70 -0
  133. package/package.json +1 -1
  134. package/dist/chromium-camera-access-workaround-NvChXsi8.d.ts +0 -61
  135. package/dist/gps-anchor-DjC_3MoT.js +0 -257
  136. package/dist/index-pOjUCKEP.d.ts +0 -24
  137. /package/dist/{accuracy-circles-CsxE_7x1.d.ts → accuracy-circles-DEKr0Hoh.d.ts} +0 -0
  138. /package/dist/{alignment-lerper-L1RbWHQ4.d.ts → alignment-lerper-CCZJf-Xb.d.ts} +0 -0
  139. /package/dist/{ar-types-Ck8LEq8k.d.ts → ar-types-isPsQptb.d.ts} +0 -0
  140. /package/dist/{camera-blit-capture-C1V9I1Z6.d.ts → camera-blit-capture-75WWa9Xb.d.ts} +0 -0
  141. /package/dist/{camera-follower-1k8mnw5J.d.ts → camera-follower-B-nS1sr6.d.ts} +0 -0
  142. /package/dist/{capture-failure-tracker-JKb1ST8E.d.ts → capture-failure-tracker-D4HYJNOj.d.ts} +0 -0
  143. /package/dist/{concurrency-CMw8pSaG.d.ts → concurrency-Bsmv53qw.d.ts} +0 -0
  144. /package/dist/{css3d-renderer-manager-CkjCb2HW.d.ts → css3d-renderer-manager-EDED3nvg.d.ts} +0 -0
  145. /package/dist/{failure-tracker-DnHXOIRa.d.ts → failure-tracker-D7ELffm0.d.ts} +0 -0
  146. /package/dist/{file-system-utils-CtKiiw27.d.ts → file-system-utils-BH6uIs2i.d.ts} +0 -0
  147. /package/dist/{format-file-size-BTS5H62-.d.ts → format-file-size-B7gJb3Md.d.ts} +0 -0
  148. /package/dist/{frustum-visibility-BHnFrSKQ.d.ts → frustum-visibility-DGnJqls0.d.ts} +0 -0
  149. /package/dist/{geo-types-CTuF23gG.d.ts → geo-types-clgzl8b5.d.ts} +0 -0
  150. /package/dist/{gps-DXoQb9Kf.d.ts → gps-B7AlMPz5.d.ts} +0 -0
  151. /package/dist/{gps-compass-cubes-CsLtFv4B.d.ts → gps-compass-cubes-Ys6Hf1nc.d.ts} +0 -0
  152. /package/dist/{gps-error-handler-Dg3ziRVY.d.ts → gps-error-handler-BLDhUlw5.d.ts} +0 -0
  153. /package/dist/{gps-event-markers-BGr-iLvi.d.ts → gps-event-markers-BlHq3jYV.d.ts} +0 -0
  154. /package/dist/{h3-proximity-BhfgNbdW.d.ts → h3-proximity-DJnghtir.d.ts} +0 -0
  155. /package/dist/{index-gzWJMVpo.d.ts → index--ldLph4V.d.ts} +0 -0
  156. /package/dist/{lerp-utils-B8MM8zCR.d.ts → lerp-utils-DNcSmKVX.d.ts} +0 -0
  157. /package/dist/{list-formatter-CNqi-E2j.d.ts → list-formatter-CsqcU4v5.d.ts} +0 -0
  158. /package/dist/{logger-C9vugiQb.d.ts → logger-BZ44Dhd3.d.ts} +0 -0
  159. /package/dist/{map-overlay-DAmreyA3.d.ts → map-overlay-yrFsUtGv.d.ts} +0 -0
  160. /package/dist/{opfs-storage-DOPkzgeT.d.ts → opfs-storage-LsLY6VZV.d.ts} +0 -0
  161. /package/dist/{permission-checker-DPJl_RU6.d.ts → permission-checker-CfV7INCa.d.ts} +0 -0
  162. /package/dist/{scene-node-names-6LBjPmwz.d.ts → scene-node-names-IHW7HR4S.d.ts} +0 -0
  163. /package/dist/{three-dispose-C2drkp6f.d.ts → three-dispose-WTBAfaWU.d.ts} +0 -0
  164. /package/dist/{vis-colors-CHQhjal3.d.ts → vis-colors-Djnyg_UH.d.ts} +0 -0
  165. /package/dist/{xr-error-handler-CDY5QxGb.d.ts → xr-error-handler-DcUFshNF.d.ts} +0 -0
  166. /package/dist/{zip-export-QO4iLIi7.d.ts → zip-export-C0_ErAqT.d.ts} +0 -0
  167. /package/dist/{zip-reader-D1105idz.d.ts → zip-reader-B2lzN8F5.d.ts} +0 -0
@@ -0,0 +1,95 @@
1
+ import { t as ArCrashIsolationOptions } from "./recording-options-BSFpBSZH.js";
2
+ import { n as RawDeviceOrientation, t as GpsPosition } from "./gps-B7AlMPz5.js";
3
+ import { n as PermissionStatus } from "./permission-checker-CfV7INCa.js";
4
+ import { t as SessionFeatureOptions } from "./webxr-session-BnArFCew.js";
5
+
6
+ //#region ../src/ar/enable-gps-ar.d.ts
7
+ /**
8
+ * Lifecycle status of the controller. The app maps these onto its button:
9
+ * - `checking` — support probe in flight (initial / after `refreshSupport`)
10
+ * - `unsupported`— WebXR immersive-ar is unavailable; button stays disabled
11
+ * - `ready` — supported and idle; button is the live "Enable GPS AR" CTA
12
+ * - `starting` — in-gesture orchestration in flight (button shows progress)
13
+ * - `running` — AR session started; button reflects the durable end state
14
+ * - `stopping` — teardown in flight (watches stopping, session ending)
15
+ * - `error` — orchestration failed; button reverts to a retryable CTA
16
+ */
17
+ type EnableGpsArStatus = 'checking' | 'unsupported' | 'ready' | 'starting' | 'running' | 'stopping' | 'error';
18
+ /** Observable controller state. */
19
+ interface EnableGpsArState {
20
+ readonly status: EnableGpsArStatus;
21
+ /** Human-readable failure reason when `status === 'error'`. */
22
+ readonly error?: string;
23
+ }
24
+ /** Per-`enable()` configuration. */
25
+ interface EnableGpsArConfig {
26
+ /** DOM element hosting the AR canvas / dom-overlay (passed to `initAR`). */
27
+ container: HTMLElement;
28
+ /**
29
+ * Opt-in to the depth ("3D map") permission probe. Default `false` — the
30
+ * minimal default set is WebXR + geolocation + orientation only.
31
+ */
32
+ requestDepth?: boolean;
33
+ /**
34
+ * Forward `requestHitTest` to `initAR` so the session requests the WebXR
35
+ * `hit-test` feature (the minimal AR example needs this for its reticle).
36
+ */
37
+ requestHitTest?: boolean;
38
+ /** Crash-isolation diagnostic flags forwarded verbatim to `initAR`. */
39
+ isolationOptions?: Partial<ArCrashIsolationOptions>;
40
+ /** Receives every GPS fix from the started watch. */
41
+ onGpsPosition?: (position: GpsPosition) => void;
42
+ /** Receives every device-orientation sample from the started watch. */
43
+ onOrientation?: (orientation: RawDeviceOrientation) => void;
44
+ }
45
+ /** Result of a single `enable()` attempt. */
46
+ interface EnableGpsArResult {
47
+ readonly ok: boolean;
48
+ /** Failure reason when `ok === false`. */
49
+ readonly error?: string;
50
+ }
51
+ /** Injectable collaborators (default to the real framework functions). */
52
+ interface EnableGpsArDeps {
53
+ isWebXRSupported: () => Promise<boolean>;
54
+ requestGeolocationPermission: () => Promise<PermissionStatus>;
55
+ requestOrientationPermission: () => Promise<PermissionStatus>;
56
+ requestWebXRWithDepthPermission: () => Promise<PermissionStatus>;
57
+ startGpsWatch: (onPosition: (position: GpsPosition) => void, onError?: (error: GeolocationPositionError) => void) => void;
58
+ startOrientationWatch: (onOrientation: (orientation: RawDeviceOrientation) => void) => void;
59
+ initAR: (container: HTMLElement, isolationOptions?: Partial<ArCrashIsolationOptions>, sessionFeatures?: SessionFeatureOptions) => Promise<void>;
60
+ stopGpsWatch: () => void;
61
+ stopOrientationWatch: () => void;
62
+ endARSession: () => Promise<void>;
63
+ }
64
+ /** Public controller surface the app drives from its button. */
65
+ interface EnableGpsArController {
66
+ /** Current observable state (button derives its label/disabled from this). */
67
+ getState: () => EnableGpsArState;
68
+ /** Subscribe to state changes; returns an unsubscribe function. */
69
+ subscribe: (listener: (state: EnableGpsArState) => void) => () => void;
70
+ /**
71
+ * Probe WebXR support and move `checking → ready | unsupported`. Call once on
72
+ * boot (and optionally on resume). No-op effect on permissions.
73
+ */
74
+ refreshSupport: () => Promise<void>;
75
+ /**
76
+ * In-gesture orchestration: request the configured permissions, start the
77
+ * sensor watches and `initAR`. Must be called synchronously from a user
78
+ * gesture so the permission prompts are allowed. Idempotent while
79
+ * `starting`/`running`/`stopping`.
80
+ */
81
+ enable: (config: EnableGpsArConfig) => Promise<EnableGpsArResult>;
82
+ /**
83
+ * Tear down the running AR session: stop sensor watches, end the WebXR
84
+ * session, and transition `running → stopping → ready` so the user can
85
+ * re-enter AR. No-op when not `running`.
86
+ */
87
+ disable: () => Promise<void>;
88
+ }
89
+ /**
90
+ * Create an "Enable GPS AR" controller. Pass partial `deps` in tests to inject
91
+ * fakes; production callers use the defaults.
92
+ */
93
+ declare function createEnableGpsArController(deps?: Partial<EnableGpsArDeps>): EnableGpsArController;
94
+ //#endregion
95
+ export { EnableGpsArState as a, EnableGpsArResult as i, EnableGpsArController as n, EnableGpsArStatus as o, EnableGpsArDeps as r, createEnableGpsArController as s, EnableGpsArConfig as t };
@@ -1,4 +1,4 @@
1
- import { n as SessionMetadata } from "./opfs-storage-DOPkzgeT.js";
1
+ import { n as SessionMetadata } from "./opfs-storage-LsLY6VZV.js";
2
2
 
3
3
  //#region ../src/storage/file-system.d.ts
4
4
  /**
@@ -0,0 +1,54 @@
1
+ import { i as LatLongAlt, r as LatLong } from "./index--ldLph4V.js";
2
+ import * as THREE from "three";
3
+
4
+ //#region ../src/visualization/frame-conversions.d.ts
5
+ /**
6
+ * Convert a GPS-world NUE point into the AR-local position to write into a
7
+ * direct child of `arWorldGroup`, given the current alignment matrix.
8
+ *
9
+ * Computes `alignment⁻¹ · nue`. When the result is later composed back by the
10
+ * group's matrix (the same `alignment`), the child's WORLD position equals
11
+ * `nue` exactly.
12
+ *
13
+ * @param alignment - The alignment matrix as a 16-element **column-major**
14
+ * array (AR-odometry NUE → GPS-world NUE), e.g. from `getAlignmentMatrix()`
15
+ * or `THREE.Matrix4.toArray()`. Not mutated.
16
+ * @param nue - The GPS-world NUE point `[north, up, east]` in metres. Not
17
+ * mutated.
18
+ * @param out - Optional target vector to write into and return (pass a reused
19
+ * scratch to avoid allocation on hot paths). Defaults to a fresh
20
+ * `THREE.Vector3`.
21
+ * @returns `out`, set to the AR-local position.
22
+ */
23
+ declare function nueToArLocal(alignment: readonly number[], nue: readonly [number, number, number], out?: THREE.Vector3): THREE.Vector3;
24
+ /**
25
+ * Convert an object's **GPS-world NUE world position** back into a GPS
26
+ * coordinate, for the GPS-anchor bootstrap that medians where an object was
27
+ * actually placed (mirrors the C# `DetermineAndStoreGpsWorldPose`, which
28
+ * medians the object's world pose and converts via `zero.CalcGpsCoordsOf`).
29
+ *
30
+ * Precondition: `worldNue` must already be in GPS-world NUE — i.e. the object
31
+ * lives under an `arWorldGroup` whose `.matrix` carries the alignment (see
32
+ * `enableArWorldGroupAlignment`), so `object3D.getWorldPosition()` is the
33
+ * GPS-world position. Sampling a pure-VIO (identity-`arWorldGroup`) world
34
+ * position would yield a wrong GPS coordinate.
35
+ *
36
+ * Altitude round-trip: `calcGpsCoords` returns only `lat`/`lon` (it derives
37
+ * them from the North/East axes and ignores Up). The Up axis (`worldNue.y`,
38
+ * NUE index 1) is carried through verbatim as `altitude`, so a later
39
+ * `calcRelativeCoordsInMeters(zero, result, result.altitude, 0)` reproduces the
40
+ * same Up value — keeping the steady-state vertical target consistent with
41
+ * where the object was sampled.
42
+ *
43
+ * @param worldNue - The object's world position in GPS-world NUE metres
44
+ * (`x = North`, `y = Up`, `z = East`). A `THREE.Vector3` satisfies this.
45
+ * @param zero - The GPS zero reference (origin for the conversion).
46
+ * @returns The GPS coordinate of `worldNue`, with `altitude = worldNue.y`.
47
+ */
48
+ declare function worldNueToGps(worldNue: {
49
+ readonly x: number;
50
+ readonly y: number;
51
+ readonly z: number;
52
+ }, zero: LatLong): LatLongAlt;
53
+ //#endregion
54
+ export { worldNueToGps as n, nueToArLocal as t };
@@ -30,6 +30,11 @@ declare function registerFrameUpdate(fn: FrameUpdate): () => void;
30
30
  * same frame are deferred to the next tick. Iterating the live `Set`
31
31
  * would otherwise skip a not-yet-visited entry that an earlier handler
32
32
  * unregistered — a hard-to-debug source of non-determinism.
33
+ *
34
+ * Each callback is invoked in its own `try/catch` so a throwing handler is
35
+ * isolated: it cannot abort the remaining callbacks nor propagate up through
36
+ * `onXRFrame` and kill the scene render for the whole frame. Failures are
37
+ * logged and the loop continues — mirrored by `runXrFrameUpdates`.
33
38
  */
34
39
  declare function runFrameUpdates(dt: number, elapsed: number): void;
35
40
  /**
@@ -1,4 +1,4 @@
1
- import { t as GpsCoord } from "./geo-types-CTuF23gG.js";
1
+ import { t as GpsCoord } from "./geo-types-clgzl8b5.js";
2
2
  import { LatLong, Matrix4, Vector3, fusedGpsFromOdom } from "gps-plus-slam-js";
3
3
 
4
4
  //#region ../src/utils/fused-path.d.ts
@@ -1,2 +1,2 @@
1
- import { a as gpsToH3, i as findNearbyGeoAnchor, n as KnownGeoAnchor, o as h3CellsMatch, r as approxDistanceMetres, s as isH3Index, t as H3_RESOLUTION } from "../h3-proximity-BhfgNbdW.js";
1
+ import { a as gpsToH3, i as findNearbyGeoAnchor, n as KnownGeoAnchor, o as h3CellsMatch, r as approxDistanceMetres, s as isH3Index, t as H3_RESOLUTION } from "../h3-proximity-DJnghtir.js";
2
2
  export { H3_RESOLUTION, KnownGeoAnchor, approxDistanceMetres, findNearbyGeoAnchor, gpsToH3, h3CellsMatch, isH3Index };
@@ -1,2 +1,2 @@
1
- import { a as gpsToH3, i as findNearbyGeoAnchor, n as KnownGeoAnchor, o as h3CellsMatch, r as approxDistanceMetres, s as isH3Index, t as H3_RESOLUTION } from "../h3-proximity-BhfgNbdW.js";
1
+ import { a as gpsToH3, i as findNearbyGeoAnchor, n as KnownGeoAnchor, o as h3CellsMatch, r as approxDistanceMetres, s as isH3Index, t as H3_RESOLUTION } from "../h3-proximity-DJnghtir.js";
2
2
  export { H3_RESOLUTION, type KnownGeoAnchor, approxDistanceMetres, findNearbyGeoAnchor, gpsToH3, h3CellsMatch, isH3Index };
@@ -1,4 +1,4 @@
1
- import { i as LatLongAlt, r as LatLong } from "./index-gzWJMVpo.js";
1
+ import { i as LatLongAlt, r as LatLong } from "./index--ldLph4V.js";
2
2
  import * as THREE from "three";
3
3
 
4
4
  //#region ../src/visualization/gps-anchor.d.ts
@@ -21,6 +21,17 @@ interface GpsAnchorOptions {
21
21
  readonly getGpsZeroRef: () => LatLong | null;
22
22
  /** Returns the current GPS reading at "now", or null when no fix yet. */
23
23
  readonly getCurrentGpsPoint: () => GpsAnchorSamplePoint | null;
24
+ /**
25
+ * Optional callback invoked whenever the bootstrap median is committed (the
26
+ * anchor's GPS reference is (re)assigned). Receives the exact committed point
27
+ * — the same value assigned to `gpsPoint`. Fires once after the initial
28
+ * bootstrap and again after every re-bootstrap (`markMovedExternally` →
29
+ * re-accumulate → commit). Never fires when `skipBootstrap` is true (there is
30
+ * no bootstrap to complete). Lets a host persist the committed reference (e.g.
31
+ * AnchorStarter writing `?show=`) so the persisted link equals the committed
32
+ * reference by construction.
33
+ */
34
+ readonly onBootstrapComplete?: (gpsPoint: LatLong | LatLongAlt) => void;
24
35
  readonly mode?: GpsAnchorMode;
25
36
  readonly floorY?: () => number | null;
26
37
  readonly distanceThreshold?: number;
@@ -1,4 +1,4 @@
1
- import { t as ARPose } from "./ar-types-Ck8LEq8k.js";
1
+ import { t as ARPose } from "./ar-types-isPsQptb.js";
2
2
  import { Quaternion, Vector3 } from "gps-plus-slam-js";
3
3
 
4
4
  //#region ../src/state/gps-ar-pose-sampler.d.ts
@@ -1,6 +1,6 @@
1
- import { t as ARPose } from "./ar-types-Ck8LEq8k.js";
2
- import { n as RawDeviceOrientation, t as GpsPosition } from "./gps-DXoQb9Kf.js";
3
- import { i as SlamAppStore } from "./create-slam-app-store-CNsZ3rcX.js";
1
+ import { t as ARPose } from "./ar-types-isPsQptb.js";
2
+ import { n as RawDeviceOrientation, t as GpsPosition } from "./gps-B7AlMPz5.js";
3
+ import { i as SlamAppStore } from "./create-slam-app-store-B76AGaI0.js";
4
4
  import { Quaternion, RawGpsPoint, RecordGpsEventPayload, Vector3, eulerToQuaternion } from "gps-plus-slam-js";
5
5
  import { ReducersMapObject } from "@reduxjs/toolkit";
6
6
 
@@ -0,0 +1,45 @@
1
+ import { Mesh, Object3D } from "three";
2
+
3
+ //#region ../src/visualization/hit-test-reticle.d.ts
4
+ /** A column-major 4x4 transform, as produced by `XRPose.transform.matrix`. */
5
+ type HitMatrix = Float32Array | number[];
6
+ /**
7
+ * Build the reticle mesh: a thin ring oriented flat (rotated to lie in the
8
+ * XZ plane) so it reads as a marker on the ground/wall.
9
+ *
10
+ * `matrixAutoUpdate` is disabled because the reticle's world transform is
11
+ * written wholesale from the hit-test pose every frame; letting Three.js
12
+ * recompose it from position/quaternion/scale would discard that pose.
13
+ *
14
+ * The mesh starts hidden (`visible = false`) — there is no surface yet.
15
+ */
16
+ declare function createReticleMesh(): Mesh;
17
+ /**
18
+ * Apply the latest hit-test pose to the reticle.
19
+ *
20
+ * - When `matrix` is a 16-element transform, the reticle adopts it (after the
21
+ * WebXR→NUE basis change, see below) and becomes visible.
22
+ * - When `matrix` is `null` (no surface under the screen centre, or the
23
+ * hit-test source is not ready yet), the reticle is hidden.
24
+ *
25
+ * Frame handling — the part a porting developer must not get wrong. The
26
+ * hit-test pose is expressed in the **WebXR reference space** (`X=East, Y=Up,
27
+ * Z=South`), the same frame as the live camera pose. The reticle, however, is
28
+ * parented under `getArWorldGroup()`, whose local space is **NUE** (`X=North,
29
+ * Y=Up, Z=East`) — the camera reaches that frame through the static
30
+ * `basisChangeNode` that holds `WEBXR_TO_NUE`. The reticle has no such
31
+ * intermediate node, so we apply the same basis change here:
32
+ * `reticle.matrix = WEBXR_TO_NUE · hitPose`. The reticle's resulting world pose
33
+ * is then `arWorldGroup.matrix · WEBXR_TO_NUE · hitPose` — identical to the
34
+ * transform chain the camera rides, so it stays pinned under the screen centre.
35
+ *
36
+ * Without the basis change the WebXR coordinates were interpreted as NUE: the
37
+ * Up axis matched (both are Y) but East/North were swapped, so the reticle
38
+ * drifted sideways instead of tracking the screen centre.
39
+ *
40
+ * Works on any `Object3D` (not just the mesh from `createReticleMesh`) so it can
41
+ * be unit tested without a WebGL context.
42
+ */
43
+ declare function updateReticle(reticle: Object3D, matrix: HitMatrix | null): void;
44
+ //#endregion
45
+ export { createReticleMesh as n, updateReticle as r, HitMatrix as t };
@@ -1,4 +1,4 @@
1
- import { a as WebXRQuaternion, o as WebXRVec3, t as ARPose } from "./ar-types-Ck8LEq8k.js";
1
+ import { a as WebXRQuaternion, o as WebXRVec3, t as ARPose } from "./ar-types-isPsQptb.js";
2
2
 
3
3
  //#region ../src/ar/image-capture.d.ts
4
4
  /**
@@ -0,0 +1,23 @@
1
+ import { Matrix4 } from "three";
2
+
3
+ //#region ../src/ar/webxr-nue-basis.d.ts
4
+ /**
5
+ * Constant matrix converting WebXR local-floor coordinates to the internal
6
+ * NUE (North-Up-East) convention.
7
+ *
8
+ * WebXR: X=East, Y=Up, Z=South (right-handed, toward viewer)
9
+ * NUE: X=North, Y=Up, Z=East (right-handed)
10
+ *
11
+ * Mapping: NUE_X = -WebXR_Z, NUE_Y = WebXR_Y, NUE_Z = WebXR_X
12
+ *
13
+ * Row-major:
14
+ * [ 0 0 -1 0 ]
15
+ * [ 0 1 0 0 ]
16
+ * [ 1 0 0 0 ]
17
+ * [ 0 0 0 1 ]
18
+ *
19
+ * Stored column-major (Three.js / gl-matrix convention).
20
+ */
21
+ declare const WEBXR_TO_NUE: Matrix4;
22
+ //#endregion
23
+ export { WEBXR_TO_NUE as t };
@@ -0,0 +1,37 @@
1
+ import { L as CombinedRootState, h as TrackingQualityReport } from "./create-slam-app-store-B76AGaI0.js";
2
+ import { Add2dImagePayload, GpsPoint as GpsPoint$1, LatLong as LatLong$1, RawDeviceOrientation, RawGpsPoint as RawGpsPoint$1, RecordGpsEventPayload as RecordGpsEventPayload$1, add2dImage, calcRelativeCoordsInMeters, recordGpsEvent as recordGpsEvent$1, setZeroPos as setZeroPos$1 } from "gps-plus-slam-js";
3
+
4
+ //#region ../src/state/onboarding-guidance.d.ts
5
+ /**
6
+ * Coaching phase derived from the tracking-quality `state`. Ordered from
7
+ * "no signal yet" to "ready to place an anchor". The order matters: it is
8
+ * the basis for the monotonic {@link OnboardingGuidance.percentReady}.
9
+ */
10
+ type OnboardingPhase = 'initializing' | 'ar-lost' | 'move-around' | 'almost-ready' | 'ready';
11
+ interface OnboardingGuidance {
12
+ /** Coaching phase — maps 1:1 onto the tracking-quality state (+ null). */
13
+ phase: OnboardingPhase;
14
+ /**
15
+ * 0..1 readiness for placing an anchor. Monotonic across phases
16
+ * (`initializing` = `ar-lost` ≤ `move-around` ≤ `almost-ready` ≤ `ready`)
17
+ * and, within `move-around`, monotonic in `subScores.coverage`; within
18
+ * `almost-ready`, monotonic in `confidence`.
19
+ */
20
+ percentReady: number;
21
+ /** Short, user-facing coaching line. */
22
+ hint: string;
23
+ }
24
+ /**
25
+ * Map a tracking-quality report (or `null` when none has been produced yet)
26
+ * to a single onboarding instruction. Never throws; a `null` or malformed
27
+ * report degrades to the `initializing` phase.
28
+ */
29
+ declare function computeOnboardingGuidance(report: TrackingQualityReport | null): OnboardingGuidance;
30
+ /**
31
+ * Store-bound convenience wrapper: read the current tracking-quality report
32
+ * and map it to onboarding guidance. Returns the `initializing` guidance
33
+ * when no report exists yet.
34
+ */
35
+ declare function selectOnboardingGuidance(state: CombinedRootState): OnboardingGuidance;
36
+ //#endregion
37
+ export { RawGpsPoint$1 as a, calcRelativeCoordsInMeters as c, OnboardingGuidance as d, OnboardingPhase as f, RawDeviceOrientation as i, recordGpsEvent$1 as l, selectOnboardingGuidance as m, GpsPoint$1 as n, RecordGpsEventPayload$1 as o, computeOnboardingGuidance as p, LatLong$1 as r, add2dImage as s, Add2dImagePayload as t, setZeroPos$1 as u };
package/dist/index.d.ts CHANGED
@@ -1,59 +1,65 @@
1
- import { i as computeCaptureSize, n as CameraBlitCaptureConfig, r as DEFAULT_BLIT_CONFIG, t as CameraBlitCapture } from "./camera-blit-capture-C1V9I1Z6.js";
2
- import { a as createCaptureFailureTracker, i as DEFAULT_CAPTURE_TRACKER_CONFIG, n as CaptureFailureTracker, r as CaptureFailureTrackerConfig, t as CAPTURE_FAILURE_WARNING } from "./capture-failure-tracker-JKb1ST8E.js";
3
- import { n as applyChromiumProjectionLayerWorkaround, t as ChromiumProjectionLayerWorkaroundResult } from "./chromium-camera-access-workaround-NvChXsi8.js";
4
- import { a as WebXRQuaternion, i as DepthSample, n as ArPoseTuples, o as WebXRVec3, r as DepthPoint, t as ARPose } from "./ar-types-Ck8LEq8k.js";
5
- import { i as DepthSamplerConfig, n as DepthSampler, r as DepthSamplerCallbacks, t as DepthInfo } from "./depth-sampler-xg8vna6c.js";
6
- import { r as registerFrameUpdate, t as FrameUpdate } from "./frame-loop-QJIxLin0.js";
7
- import { a as ImageCaptureManager, i as ImageCaptureConfig, n as DEFAULT_CAPTURE_CONFIG, o as MIN_VALID_IMAGE_BYTES, r as ImageCaptureCallbacks, t as CapturedImage } from "./image-capture-DZLxHDN9.js";
8
- import { n as createCameraFollower, t as CameraFollower } from "./camera-follower-1k8mnw5J.js";
9
- import { n as createAlignmentLerper, t as AlignmentLerper } from "./alignment-lerper-L1RbWHQ4.js";
10
- import { n as createCss3dRendererManager, t as Css3dRendererManager } from "./css3d-renderer-manager-CkjCb2HW.js";
11
- import { a as getCameraFollower, c as getReplayState, d as updateOrbitTarget, i as getAlignmentLerper, l as initReplayScene, n as ReplaySceneState, o as getCameraMode, r as disposeReplayScene, t as CameraMode, u as toggleCameraMode } from "./replay-scene-DpAGcAKY.js";
12
- import { t as SCENE_NODE } from "./scene-node-names-6LBjPmwz.js";
13
- import { a as TrackingSliceState, c as poseLost, d as selectLastRestartedPayload, f as selectLastSensorOrientation, g as trackingReducer, h as selectTrackingPhase, i as TrackingPhase, l as poseReceived, m as selectLostFrameCount, n as PoseReceivedPayload, o as clearLastRestartedPayload, p as selectLastValidPose, s as originReset, u as resetTracking } from "./tracking-slice-utCNND8t.js";
14
- import { _ as validateRecordingOptions, a as IMAGE_CONSTRAINTS, c as RecordingOptionsInput, d as loadRecordingOptions, f as resetRecordingOptions, g as validateImageOptions, h as validateDepthOptions, i as DepthCaptureOptions, l as STORAGE_KEY, n as DEFAULT_RECORDING_OPTIONS, o as ImageCaptureOptions, p as saveRecordingOptions, r as DEPTH_CONSTRAINTS, u as cloneRecordingOptions } from "./recording-options-Dq6IsKAv.js";
1
+ import { i as computeCaptureSize, n as CameraBlitCaptureConfig, r as DEFAULT_BLIT_CONFIG, t as CameraBlitCapture } from "./camera-blit-capture-75WWa9Xb.js";
2
+ import { i as isFullySupported, n as CapabilitySupport, r as capabilityMessage, t as CapabilityMessageOptions } from "./capability-checker-BTCmZRL4.js";
3
+ import { a as createCaptureFailureTracker, i as DEFAULT_CAPTURE_TRACKER_CONFIG, n as CaptureFailureTracker, r as CaptureFailureTrackerConfig, t as CAPTURE_FAILURE_WARNING } from "./capture-failure-tracker-D4HYJNOj.js";
4
+ import { a as applyChromiumProjectionLayerWorkaround, i as ChromiumProjectionLayerWorkaroundResult, n as BASELAYER_WINDOW_MIN, o as needsBaseLayerPersistence, r as ChromeVersion, s as parseChromeVersion, t as BASELAYER_WINDOW_MAX } from "./chromium-camera-access-workaround-MifIwK9x.js";
5
+ import { a as WebXRQuaternion, i as DepthSample, n as ArPoseTuples, o as WebXRVec3, r as DepthPoint, t as ARPose } from "./ar-types-isPsQptb.js";
6
+ import { i as DepthSamplerConfig, n as DepthSampler, r as DepthSamplerCallbacks, t as DepthInfo } from "./depth-sampler-CqrkRr2N.js";
7
+ import { _ as validateRecordingOptions, a as IMAGE_CONSTRAINTS, c as RecordingOptionsInput, d as loadRecordingOptions, f as resetRecordingOptions, g as validateImageOptions, h as validateDepthOptions, i as DepthCaptureOptions, l as STORAGE_KEY, n as DEFAULT_RECORDING_OPTIONS, o as ImageCaptureOptions, p as saveRecordingOptions, r as DEPTH_CONSTRAINTS, u as cloneRecordingOptions } from "./recording-options-BSFpBSZH.js";
8
+ import { a as startOrientationWatch, i as startGpsWatch, n as RawDeviceOrientation, o as stopGpsWatch, r as requestOrientationPermission, s as stopOrientationWatch, t as GpsPosition } from "./gps-B7AlMPz5.js";
9
+ import { a as checkCameraPermission, c as checkOrientationPermission, d as requestCameraPermission, f as requestGeolocationPermission, g as setFileSystemState, h as resetFileSystemState, i as checkAllPermissions, l as checkWebXRSupport, m as requestWebXRWithDepthPermission, n as PermissionStatus, o as checkFileSystemPermission, p as requestOrientationPermission$1, s as checkGeolocationPermission, t as PermissionCheckResult, u as requestAllPermissions } from "./permission-checker-CfV7INCa.js";
10
+ import { a as ImageCaptureManager, i as ImageCaptureConfig, n as DEFAULT_CAPTURE_CONFIG, o as MIN_VALID_IMAGE_BYTES, r as ImageCaptureCallbacks, t as CapturedImage } from "./image-capture-BXZUmj7j.js";
11
+ import { a as TrackingSliceState, c as poseLost, d as selectLastRestartedPayload, f as selectLastSensorOrientation, g as trackingReducer, h as selectTrackingPhase, i as TrackingPhase, l as poseReceived, m as selectLostFrameCount, n as PoseReceivedPayload, o as clearLastRestartedPayload, p as selectLastValidPose, s as originReset, u as resetTracking } from "./tracking-slice-CDREeoZ_.js";
12
+ import { n as createCss3dRendererManager, t as Css3dRendererManager } from "./css3d-renderer-manager-EDED3nvg.js";
15
13
  import { i as acquireCameraTexture, n as RendererLike, r as XRCameraLike, t as CameraTextureResult } from "./xr-camera-texture-BU5YvKAM.js";
16
- import { A as setTrackingCallbacks, D as setFrameCallback, E as setDepthCaptureCallback, F as startDepthCapture, I as startImageCapture, L as stopDepthCapture, N as setTrackingStore, O as setImageCaptureCallback, R as stopImageCapture, _ as initAR, a as endARSession, f as getDepthSampleCount, j as setTrackingLostCallback, m as getLiveCss3dManager, p as getImageCaptureFrameCount } from "./webxr-session-DB5cIZnN.js";
17
- import { n as XR_ERROR_MESSAGE_UNKNOWN, r as getXrErrorMessage, t as XR_ERROR_MESSAGES } from "./xr-error-handler-CDY5QxGb.js";
18
- import { a as gpsToH3, i as findNearbyGeoAnchor, n as KnownGeoAnchor, o as h3CellsMatch, r as approxDistanceMetres, s as isH3Index, t as H3_RESOLUTION } from "./h3-proximity-BhfgNbdW.js";
19
- import { a as startOrientationWatch, i as startGpsWatch, n as RawDeviceOrientation, o as stopGpsWatch, r as requestOrientationPermission, s as stopOrientationWatch, t as GpsPosition } from "./gps-DXoQb9Kf.js";
20
- import { a as getGpsErrorMessage, i as createGpsErrorHandler, n as GPS_ERROR_MESSAGES, r as GPS_ERROR_MESSAGE_UNKNOWN, t as GPS_ERROR_CODES } from "./gps-error-handler-Dg3ziRVY.js";
21
- import { a as checkCameraPermission, c as checkOrientationPermission, d as requestCameraPermission, f as requestGeolocationPermission, g as setFileSystemState, h as resetFileSystemState, i as checkAllPermissions, l as checkWebXRSupport, m as requestWebXRWithDepthPermission, n as PermissionStatus, o as checkFileSystemPermission, p as requestOrientationPermission$1, s as checkGeolocationPermission, t as PermissionCheckResult, u as requestAllPermissions } from "./permission-checker-DPJl_RU6.js";
22
- import { a as createLogger, c as setGlobalLogLevel, i as clearLogBuffer, l as subscribeToLogs, n as LogLevel, o as getGlobalLogLevel, r as Logger, s as getLogBuffer, t as LogEntry } from "./logger-C9vugiQb.js";
23
- import { n as RawGpsSample, r as RefPointMarker, t as GpsCoord } from "./geo-types-CTuF23gG.js";
24
- import { n as computeFusedPath, r as fusedGpsFromOdom, t as FusedPathInput } from "./fused-path-CB4DwWOG.js";
25
- import { n as FailureTrackerConfig, r as createFailureTracker, t as FailureTracker } from "./failure-tracker-DnHXOIRa.js";
26
- import { t as mapWithConcurrencyLimit } from "./concurrency-CMw8pSaG.js";
27
- import { t as formatFileSize } from "./format-file-size-BTS5H62-.js";
28
- import { t as listFormatter } from "./list-formatter-CNqi-E2j.js";
29
- import { a as recordWriteFailure, i as recordDepthSample, o as recordingReducer, r as endSession, s as startSession, t as RecordingState } from "./recording-slice-d6OtCrza.js";
30
- import { a as getAppRootHandle, c as initOpfsStorage, d as resetSessionHandles, i as createSession, l as listSessions, o as getSessionHandle, r as checkStorageQuota, s as getSessionsRootHandle, u as resetOpfsStorage } from "./opfs-storage-DOPkzgeT.js";
31
- import { n as StorageBackend, t as CreateSessionResult } from "./storage-backend-CT0Il_AB.js";
32
- import { A as resetTrackingQuality, C as computeResidualConsensus, D as firstAgreementReached, F as snapshotsTrimmed, I as trackingQualityReducer, M as selectRecentAlignments, N as selectTrackingQuality, O as matrixDelta, P as snapshotPushed, S as computeGpsVsFusedDivergence, T as createTrackingQualityListenerMiddleware, _ as TrackingQualityState, a as SlamAppStoreOptions, b as computeCoverage, d as DEFAULT_TRACKING_QUALITY_OPTIONS, g as TrackingQualitySliceState, h as TrackingQualityReport, i as SlamAppStore, j as selectFirstAgreementObservationIndex, k as reportUpdated, m as TrackingQualityOptions, n as SlamAppMiddleware, o as createSlamAppStore, r as SlamAppRootState, s as AlignmentSnapshot, t as SlamAppCombinedState, v as computeCompassAgreement, w as computeTrackingQualityReport, x as computeGpsAccuracy, y as computeConvergence } from "./create-slam-app-store-CNsZ3rcX.js";
33
- import { a as eulerToQuaternion, c as getLastDeviceOrientation, i as createGpsPositionHandler, l as resetCoordinatorState, n as buildRawGpsPoint, o as extractOdomPosition, r as buildRecordGpsEventPayload, s as extractOdomRotation, t as RecordingCoordinatorConfig, u as updateDeviceOrientation } from "./gps-event-coordinator-DBx9I1YX.js";
34
- import { a as ZipActionEntry, d as loadSessionMetadataFromBlob, f as readZipEntries, i as RecordedAction, l as loadGpsPathFromBlob, n as GpsPathCoord, r as MAX_ACTION_FILE_SIZE, s as loadActionsFromZip } from "./zip-reader-D1105idz.js";
35
- import { n as replayRecording } from "./recording-replayer-CmCIIZ02.js";
36
- import { a as ReplayAction, c as computeInterActionDelay, i as ProgressCallback, l as extractActionTimestamp, n as DEFAULT_MAX_DELAY_MS, o as ReplayEngine, r as ErrorCallback, s as ReplayState, t as CompleteCallback } from "./replay-engine-BGBRQyXs.js";
37
- import { n as MapDataInput, r as buildMapData, t as MapData } from "./map-data-sih4g64v.js";
38
- import { t as SubscribableStore } from "./subscribe-to-selector-DIHm3BRZ.js";
39
- import { n as wireStoreSubscribers, t as StoreSubscriberDeps } from "./store-subscribers-Dce_CoJF.js";
40
- import { add2dImage, calcRelativeCoordsInMeters, recordGpsEvent, setZeroPos } from "./state/index.js";
41
- import { t as NullStorageBackend } from "./null-storage-backend-BKOS7JpL.js";
42
- import { t as OpfsStorageBackend } from "./opfs-storage-backend-Cj_7PWoq.js";
43
- import { c as resetForNewSession, d as startSession$1, f as verifyWriteAccess, l as resetStorageState, m as writeFrame, n as WriteAccessResult, o as initStorage, p as writeAction } from "./file-system-DTApEv_Q.js";
44
- import { n as formatFrameFilename, r as formatTimestamp, t as formatActionFilename } from "./file-system-utils-CtKiiw27.js";
45
- import { a as downloadZip, c as syncToExternalZip, i as ZipExportResult, n as ZipContributorAddFile, o as exportAndDownloadSession, r as ZipExportContributor, s as exportSessionAsZip, t as ExportSessionAsZipOptions } from "./zip-export-QO4iLIi7.js";
46
- import { i as createGpsCompassCubes, n as COMPASS_CUBE_SIZE, r as GpsCompassCubes, t as COMPASS_CUBE_DISTANCE } from "./gps-compass-cubes-CsLtFv4B.js";
47
- import { i as isSphereInCameraFrustum, n as isObjectInCameraFrustum, r as isPointInCameraFrustum, t as buildCameraFrustum } from "./frustum-visibility-BHnFrSKQ.js";
48
- import { t as nueToArLocal } from "./index-pOjUCKEP.js";
49
- import { a as GpsAnchorSamplePoint, i as GpsAnchorPhase, n as GpsAnchorMode, o as createGpsAnchor, r as GpsAnchorOptions, t as GpsAnchor } from "./gps-anchor-CnWY61XK.js";
50
- import { n as GpsEventVisualizer, r as gpsEventVisualizer } from "./gps-event-markers-BGr-iLvi.js";
51
- import { a as DEFAULT_Z_OFFSET, n as DEFAULT_LEAFLET_MAP_SIZE_PX, o as LeafletMapOverlay, r as DEFAULT_WORLD_SIZE, s as LeafletMapOverlayOptions } from "./leaflet-map-overlay-Cew7XAoO.js";
52
- import { n as clampedAlpha, t as DEFAULT_LERP_RATE } from "./lerp-utils-B8MM8zCR.js";
53
- import { a as addAccuracyCircles, i as AccuracyCircleSample, n as ACCURACY_CIRCLE_STROKE_OPACITY, r as ACCURACY_CIRCLE_WEIGHT, t as ACCURACY_CIRCLE_FILL_OPACITY } from "./accuracy-circles-CsxE_7x1.js";
54
- import { a as MAP_PATH_POLYLINE_OPACITY, c as USER_POSITION_COLOR, i as FUSED_PATH_COLOR, l as drawMapData, n as DrawMapDataOptions, o as MAP_PATH_POLYLINE_WEIGHT, r as DrawnMapData, s as RAW_GPS_COLOR, t as ALIGNMENT_SNAPSHOT_COLOR } from "./map-overlay-draw-B3R1c9Xp.js";
55
- import { a as MapOverlayOptions, c as tileXYToLatLon, i as MapOverlay, n as DEFAULT_MAP_SIZE, o as TextureLoaderInterface, r as DEFAULT_ZOOM, s as latLonToTileXY, t as DEFAULT_HEIGHT_OFFSET } from "./map-overlay-DAmreyA3.js";
56
- import { n as disposeMeshArray, r as disposeObject3D, t as DisposeOptions } from "./three-dispose-C2drkp6f.js";
57
- import { t as VIS_COLORS } from "./vis-colors-CHQhjal3.js";
14
+ import { D as setDepthCaptureCallback, I as startDepthCapture, L as startImageCapture, M as setTrackingLostCallback, O as setFrameCallback, P as setTrackingStore, R as stopDepthCapture, d as getCamera, f as getCurrentArPose, g as getScene, h as getLiveCss3dManager, j as setTrackingCallbacks, k as setImageCaptureCallback, m as getImageCaptureFrameCount, o as endARSession, p as getDepthSampleCount, t as SessionFeatureOptions, u as getArWorldGroup, v as initAR, z as stopImageCapture } from "./webxr-session-BnArFCew.js";
15
+ import { a as EnableGpsArState, i as EnableGpsArResult, n as EnableGpsArController, o as EnableGpsArStatus, r as EnableGpsArDeps, s as createEnableGpsArController, t as EnableGpsArConfig } from "./enable-gps-ar-DNbO0zbg.js";
16
+ import { r as registerFrameUpdate, t as FrameUpdate } from "./frame-loop-BTeRpDm4.js";
17
+ import { i as registerXrFrameUpdate, n as XrFrameUpdate, t as XrFrameContext } from "./xr-frame-loop-BKckC7xC.js";
18
+ import { n as createCameraFollower, t as CameraFollower } from "./camera-follower-B-nS1sr6.js";
19
+ import { n as createAlignmentLerper, t as AlignmentLerper } from "./alignment-lerper-CCZJf-Xb.js";
20
+ import { a as getCameraFollower, c as getReplayState, d as updateOrbitTarget, i as getAlignmentLerper, l as initReplayScene, n as ReplaySceneState, o as getCameraMode, r as disposeReplayScene, t as CameraMode, u as toggleCameraMode } from "./replay-scene-DkNfldPh.js";
21
+ import { t as SCENE_NODE } from "./scene-node-names-IHW7HR4S.js";
22
+ import { t as WEBXR_TO_NUE } from "./index-22v8MXJX.js";
23
+ import { n as XR_ERROR_MESSAGE_UNKNOWN, r as getXrErrorMessage, t as XR_ERROR_MESSAGES } from "./xr-error-handler-DcUFshNF.js";
24
+ import { a as gpsToH3, i as findNearbyGeoAnchor, n as KnownGeoAnchor, o as h3CellsMatch, r as approxDistanceMetres, s as isH3Index, t as H3_RESOLUTION } from "./h3-proximity-DJnghtir.js";
25
+ import { a as getGpsErrorMessage, i as createGpsErrorHandler, n as GPS_ERROR_MESSAGES, r as GPS_ERROR_MESSAGE_UNKNOWN, t as GPS_ERROR_CODES } from "./gps-error-handler-BLDhUlw5.js";
26
+ import { a as createLogger, c as setGlobalLogLevel, i as clearLogBuffer, l as subscribeToLogs, n as LogLevel, o as getGlobalLogLevel, r as Logger, s as getLogBuffer, t as LogEntry } from "./logger-BZ44Dhd3.js";
27
+ import { n as RawGpsSample, r as RefPointMarker, t as GpsCoord } from "./geo-types-clgzl8b5.js";
28
+ import { n as computeFusedPath, r as fusedGpsFromOdom, t as FusedPathInput } from "./fused-path-BdVHmDW9.js";
29
+ import { n as FailureTrackerConfig, r as createFailureTracker, t as FailureTracker } from "./failure-tracker-D7ELffm0.js";
30
+ import { t as mapWithConcurrencyLimit } from "./concurrency-Bsmv53qw.js";
31
+ import { t as formatFileSize } from "./format-file-size-B7gJb3Md.js";
32
+ import { t as listFormatter } from "./list-formatter-CsqcU4v5.js";
33
+ import { a as recordWriteFailure, i as recordDepthSample, o as recordingReducer, r as endSession, s as startSession, t as RecordingState } from "./recording-slice-Cb888P6d.js";
34
+ import { a as getAppRootHandle, c as initOpfsStorage, d as resetSessionHandles, i as createSession, l as listSessions, o as getSessionHandle, r as checkStorageQuota, s as getSessionsRootHandle, u as resetOpfsStorage } from "./opfs-storage-LsLY6VZV.js";
35
+ import { n as StorageBackend, t as CreateSessionResult } from "./storage-backend-yDSKafAQ.js";
36
+ import { A as resetTrackingQuality, C as computeResidualConsensus, D as firstAgreementReached, F as snapshotsTrimmed, I as trackingQualityReducer, M as selectRecentAlignments, N as selectTrackingQuality, O as matrixDelta, P as snapshotPushed, S as computeGpsVsFusedDivergence, T as createTrackingQualityListenerMiddleware, _ as TrackingQualityState, a as SlamAppStoreOptions, b as computeCoverage, d as DEFAULT_TRACKING_QUALITY_OPTIONS, g as TrackingQualitySliceState, h as TrackingQualityReport, i as SlamAppStore, j as selectFirstAgreementObservationIndex, k as reportUpdated, m as TrackingQualityOptions, n as SlamAppMiddleware, o as createSlamAppStore, r as SlamAppRootState, s as AlignmentSnapshot, t as SlamAppCombinedState, v as computeCompassAgreement, w as computeTrackingQualityReport, x as computeGpsAccuracy, y as computeConvergence } from "./create-slam-app-store-B76AGaI0.js";
37
+ import { a as eulerToQuaternion, c as getLastDeviceOrientation, i as createGpsPositionHandler, l as resetCoordinatorState, n as buildRawGpsPoint, o as extractOdomPosition, r as buildRecordGpsEventPayload, s as extractOdomRotation, t as RecordingCoordinatorConfig, u as updateDeviceOrientation } from "./gps-event-coordinator-BKVZbS1M.js";
38
+ import { a as ZipActionEntry, d as loadSessionMetadataFromBlob, f as readZipEntries, i as RecordedAction, l as loadGpsPathFromBlob, n as GpsPathCoord, r as MAX_ACTION_FILE_SIZE, s as loadActionsFromZip } from "./zip-reader-B2lzN8F5.js";
39
+ import { n as replayRecording } from "./recording-replayer-CTL2cUE0.js";
40
+ import { a as ReplayAction, c as computeInterActionDelay, i as ProgressCallback, l as extractActionTimestamp, n as DEFAULT_MAX_DELAY_MS, o as ReplayEngine, r as ErrorCallback, s as ReplayState, t as CompleteCallback } from "./replay-engine-B-5GIZtc.js";
41
+ import { n as MapDataInput, r as buildMapData, t as MapData } from "./map-data-BGIBM5rv.js";
42
+ import { t as SubscribableStore } from "./subscribe-to-selector--KQpgLXG.js";
43
+ import { n as wireStoreSubscribers, t as StoreSubscriberDeps } from "./store-subscribers-swlbtg_z.js";
44
+ import { c as calcRelativeCoordsInMeters, d as OnboardingGuidance, f as OnboardingPhase, l as recordGpsEvent, m as selectOnboardingGuidance, p as computeOnboardingGuidance, s as add2dImage, u as setZeroPos } from "./index-BB2KEWbN2.js";
45
+ import { t as NullStorageBackend } from "./null-storage-backend-BPQJSaMw.js";
46
+ import { t as OpfsStorageBackend } from "./opfs-storage-backend-u4QKvgvP.js";
47
+ import { c as resetForNewSession, d as startSession$1, f as verifyWriteAccess, l as resetStorageState, m as writeFrame, n as WriteAccessResult, o as initStorage, p as writeAction } from "./file-system-TIsDfamK.js";
48
+ import { n as formatFrameFilename, r as formatTimestamp, t as formatActionFilename } from "./file-system-utils-BH6uIs2i.js";
49
+ import { a as downloadZip, c as syncToExternalZip, i as ZipExportResult, n as ZipContributorAddFile, o as exportAndDownloadSession, r as ZipExportContributor, s as exportSessionAsZip, t as ExportSessionAsZipOptions } from "./zip-export-C0_ErAqT.js";
50
+ import { n as ArWorldGroupAlignmentOptions, r as enableArWorldGroupAlignment, t as ArWorldGroupAlignmentHandle } from "./ar-world-group-alignment-Dn4rQk_c.js";
51
+ import { i as createGpsCompassCubes, n as COMPASS_CUBE_SIZE, r as GpsCompassCubes, t as COMPASS_CUBE_DISTANCE } from "./gps-compass-cubes-Ys6Hf1nc.js";
52
+ import { i as isSphereInCameraFrustum, n as isObjectInCameraFrustum, r as isPointInCameraFrustum, t as buildCameraFrustum } from "./frustum-visibility-DGnJqls0.js";
53
+ import { n as worldNueToGps, t as nueToArLocal } from "./frame-conversions-D2EYjeNa.js";
54
+ import { n as createReticleMesh, r as updateReticle, t as HitMatrix } from "./hit-test-reticle-BGXOxrUh.js";
55
+ import { a as GpsAnchorSamplePoint, i as GpsAnchorPhase, n as GpsAnchorMode, o as createGpsAnchor, r as GpsAnchorOptions, t as GpsAnchor } from "./gps-anchor-CISLPQIb.js";
56
+ import { n as GpsEventVisualizer, r as gpsEventVisualizer } from "./gps-event-markers-BlHq3jYV.js";
57
+ import { a as DEFAULT_Z_OFFSET, n as DEFAULT_LEAFLET_MAP_SIZE_PX, o as LeafletMapOverlay, r as DEFAULT_WORLD_SIZE, s as LeafletMapOverlayOptions } from "./leaflet-map-overlay-jNt-kcUr.js";
58
+ import { n as clampedAlpha, t as DEFAULT_LERP_RATE } from "./lerp-utils-DNcSmKVX.js";
59
+ import { a as addAccuracyCircles, i as AccuracyCircleSample, n as ACCURACY_CIRCLE_STROKE_OPACITY, r as ACCURACY_CIRCLE_WEIGHT, t as ACCURACY_CIRCLE_FILL_OPACITY } from "./accuracy-circles-DEKr0Hoh.js";
60
+ import { a as MAP_PATH_POLYLINE_OPACITY, c as USER_POSITION_COLOR, i as FUSED_PATH_COLOR, l as drawMapData, n as DrawMapDataOptions, o as MAP_PATH_POLYLINE_WEIGHT, r as DrawnMapData, s as RAW_GPS_COLOR, t as ALIGNMENT_SNAPSHOT_COLOR } from "./map-overlay-draw-DcGs9UV3.js";
61
+ import { a as MapOverlayOptions, c as tileXYToLatLon, i as MapOverlay, n as DEFAULT_MAP_SIZE, o as TextureLoaderInterface, r as DEFAULT_ZOOM, s as latLonToTileXY, t as DEFAULT_HEIGHT_OFFSET } from "./map-overlay-yrFsUtGv.js";
62
+ import { n as disposeMeshArray, r as disposeObject3D, t as DisposeOptions } from "./three-dispose-WTBAfaWU.js";
63
+ import { t as VIS_COLORS } from "./vis-colors-Djnyg_UH.js";
58
64
  import { COMMUNITY_LICENSE_KEY } from "./licensing/index.js";
59
- export { ACCURACY_CIRCLE_FILL_OPACITY, ACCURACY_CIRCLE_STROKE_OPACITY, ACCURACY_CIRCLE_WEIGHT, ALIGNMENT_SNAPSHOT_COLOR, ARPose, AccuracyCircleSample, AlignmentLerper, type AlignmentSnapshot, ArPoseTuples, CAPTURE_FAILURE_WARNING, COMMUNITY_LICENSE_KEY, COMPASS_CUBE_DISTANCE, COMPASS_CUBE_SIZE, CameraBlitCapture, CameraBlitCaptureConfig, CameraFollower, CameraMode, CameraTextureResult, CaptureFailureTracker, CaptureFailureTrackerConfig, CapturedImage, ChromiumProjectionLayerWorkaroundResult, type CompleteCallback, type CreateSessionResult, Css3dRendererManager, DEFAULT_BLIT_CONFIG, DEFAULT_CAPTURE_CONFIG, DEFAULT_CAPTURE_TRACKER_CONFIG, DEFAULT_HEIGHT_OFFSET, DEFAULT_LEAFLET_MAP_SIZE_PX, DEFAULT_LERP_RATE, DEFAULT_MAP_SIZE, DEFAULT_MAX_DELAY_MS, DEFAULT_RECORDING_OPTIONS, DEFAULT_TRACKING_QUALITY_OPTIONS, DEFAULT_WORLD_SIZE, DEFAULT_ZOOM, DEFAULT_Z_OFFSET, DEPTH_CONSTRAINTS, type DepthCaptureOptions, DepthInfo, DepthPoint, DepthSample, DepthSampler, DepthSamplerCallbacks, DepthSamplerConfig, DisposeOptions, DrawMapDataOptions, DrawnMapData, type ErrorCallback, type ExportSessionAsZipOptions, FUSED_PATH_COLOR, FailureTracker, FailureTrackerConfig, FrameUpdate, FusedPathInput, GPS_ERROR_CODES, GPS_ERROR_MESSAGES, GPS_ERROR_MESSAGE_UNKNOWN, GpsAnchor, GpsAnchorMode, GpsAnchorOptions, GpsAnchorPhase, GpsAnchorSamplePoint, GpsCompassCubes, GpsCoord, GpsEventVisualizer, type GpsPathCoord, GpsPosition, H3_RESOLUTION, IMAGE_CONSTRAINTS, ImageCaptureCallbacks, ImageCaptureConfig, ImageCaptureManager, type ImageCaptureOptions, KnownGeoAnchor, LeafletMapOverlay, LeafletMapOverlayOptions, LogEntry, LogLevel, Logger, MAP_PATH_POLYLINE_OPACITY, MAP_PATH_POLYLINE_WEIGHT, MAX_ACTION_FILE_SIZE, MIN_VALID_IMAGE_BYTES, MapData, MapDataInput, MapOverlay, MapOverlayOptions, NullStorageBackend, OpfsStorageBackend, PermissionCheckResult, PermissionStatus, type PoseReceivedPayload, type ProgressCallback, RAW_GPS_COLOR, RawDeviceOrientation, RawGpsSample, type RecordedAction, type RecordingCoordinatorConfig, type RecordingOptionsInput, type RecordingState, RefPointMarker, RendererLike, type ReplayAction, ReplayEngine, ReplaySceneState, type ReplayState, SCENE_NODE, STORAGE_KEY, type SlamAppCombinedState, type SlamAppMiddleware, type SlamAppRootState, type SlamAppStore, type SlamAppStoreOptions, type StorageBackend, type StoreSubscriberDeps, type SubscribableStore, TextureLoaderInterface, type TrackingPhase, type TrackingQualityOptions, type TrackingQualityReport, type TrackingQualitySliceState, type TrackingQualityState, type TrackingSliceState, USER_POSITION_COLOR, VIS_COLORS, WebXRQuaternion, WebXRVec3, type WriteAccessResult, XRCameraLike, XR_ERROR_MESSAGES, XR_ERROR_MESSAGE_UNKNOWN, type ZipActionEntry, type ZipContributorAddFile, type ZipExportContributor, type ZipExportResult, acquireCameraTexture, add2dImage, addAccuracyCircles, applyChromiumProjectionLayerWorkaround, approxDistanceMetres, buildCameraFrustum, buildMapData, buildRawGpsPoint, buildRecordGpsEventPayload, calcRelativeCoordsInMeters, checkAllPermissions, checkCameraPermission, checkFileSystemPermission, checkGeolocationPermission, checkOrientationPermission, checkStorageQuota, checkWebXRSupport, clampedAlpha, clearLastRestartedPayload, clearLogBuffer, cloneRecordingOptions, computeCaptureSize, computeCompassAgreement, computeConvergence, computeCoverage, computeFusedPath, computeGpsAccuracy, computeGpsVsFusedDivergence, computeInterActionDelay, computeResidualConsensus, computeTrackingQualityReport, createAlignmentLerper, createCameraFollower, createCaptureFailureTracker, createCss3dRendererManager, createFailureTracker, createGpsAnchor, createGpsCompassCubes, createGpsErrorHandler, createGpsPositionHandler, createLogger, createSession, createSlamAppStore, createTrackingQualityListenerMiddleware, disposeMeshArray, disposeObject3D, disposeReplayScene, downloadZip, drawMapData, endARSession, endSession, eulerToQuaternion, exportAndDownloadSession, exportSessionAsZip, extractActionTimestamp, extractOdomPosition, extractOdomRotation, findNearbyGeoAnchor, firstAgreementReached, formatActionFilename, formatFileSize, formatFrameFilename, formatTimestamp, fusedGpsFromOdom, getAlignmentLerper, getAppRootHandle, getCameraFollower, getCameraMode, getDepthSampleCount, getGlobalLogLevel, getGpsErrorMessage, getImageCaptureFrameCount, getLastDeviceOrientation, getLiveCss3dManager, getLogBuffer, getReplayState, getSessionHandle, getSessionsRootHandle, getXrErrorMessage, gpsEventVisualizer, gpsToH3, h3CellsMatch, initAR, initOpfsStorage, initReplayScene, initStorage, isH3Index, isObjectInCameraFrustum, isPointInCameraFrustum, isSphereInCameraFrustum, latLonToTileXY, listFormatter, listSessions, loadActionsFromZip, loadGpsPathFromBlob, loadRecordingOptions, loadSessionMetadataFromBlob, mapWithConcurrencyLimit, matrixDelta, nueToArLocal, originReset, poseLost, poseReceived, readZipEntries, recordDepthSample, recordGpsEvent, recordWriteFailure, recordingReducer, registerFrameUpdate, replayRecording, reportUpdated, requestAllPermissions, requestCameraPermission, requestOrientationPermission as requestDeviceOrientationPermission, requestGeolocationPermission, requestOrientationPermission$1 as requestOrientationPermission, requestWebXRWithDepthPermission, resetCoordinatorState, resetFileSystemState, resetForNewSession, resetOpfsStorage, resetRecordingOptions, resetSessionHandles, resetStorageState, resetTracking, resetTrackingQuality, saveRecordingOptions, selectFirstAgreementObservationIndex, selectLastRestartedPayload, selectLastSensorOrientation, selectLastValidPose, selectLostFrameCount, selectRecentAlignments, selectTrackingPhase, selectTrackingQuality, setDepthCaptureCallback, setFileSystemState, setFrameCallback, setGlobalLogLevel, setImageCaptureCallback, setTrackingCallbacks, setTrackingLostCallback, setTrackingStore, setZeroPos, snapshotPushed, snapshotsTrimmed, startDepthCapture, startGpsWatch, startImageCapture, startOrientationWatch, startSession, startSession$1 as startStorageSession, stopDepthCapture, stopGpsWatch, stopImageCapture, stopOrientationWatch, subscribeToLogs, syncToExternalZip, tileXYToLatLon, toggleCameraMode, trackingQualityReducer, trackingReducer, updateDeviceOrientation, updateOrbitTarget, validateDepthOptions, validateImageOptions, validateRecordingOptions, verifyWriteAccess, wireStoreSubscribers, writeAction, writeFrame };
65
+ export { ACCURACY_CIRCLE_FILL_OPACITY, ACCURACY_CIRCLE_STROKE_OPACITY, ACCURACY_CIRCLE_WEIGHT, ALIGNMENT_SNAPSHOT_COLOR, ARPose, AccuracyCircleSample, AlignmentLerper, type AlignmentSnapshot, ArPoseTuples, ArWorldGroupAlignmentHandle, ArWorldGroupAlignmentOptions, BASELAYER_WINDOW_MAX, BASELAYER_WINDOW_MIN, CAPTURE_FAILURE_WARNING, COMMUNITY_LICENSE_KEY, COMPASS_CUBE_DISTANCE, COMPASS_CUBE_SIZE, CameraBlitCapture, CameraBlitCaptureConfig, CameraFollower, CameraMode, CameraTextureResult, CapabilityMessageOptions, CapabilitySupport, CaptureFailureTracker, CaptureFailureTrackerConfig, CapturedImage, ChromeVersion, ChromiumProjectionLayerWorkaroundResult, type CompleteCallback, type CreateSessionResult, Css3dRendererManager, DEFAULT_BLIT_CONFIG, DEFAULT_CAPTURE_CONFIG, DEFAULT_CAPTURE_TRACKER_CONFIG, DEFAULT_HEIGHT_OFFSET, DEFAULT_LEAFLET_MAP_SIZE_PX, DEFAULT_LERP_RATE, DEFAULT_MAP_SIZE, DEFAULT_MAX_DELAY_MS, DEFAULT_RECORDING_OPTIONS, DEFAULT_TRACKING_QUALITY_OPTIONS, DEFAULT_WORLD_SIZE, DEFAULT_ZOOM, DEFAULT_Z_OFFSET, DEPTH_CONSTRAINTS, type DepthCaptureOptions, DepthInfo, DepthPoint, DepthSample, DepthSampler, DepthSamplerCallbacks, DepthSamplerConfig, DisposeOptions, DrawMapDataOptions, DrawnMapData, EnableGpsArConfig, EnableGpsArController, EnableGpsArDeps, EnableGpsArResult, EnableGpsArState, EnableGpsArStatus, type ErrorCallback, type ExportSessionAsZipOptions, FUSED_PATH_COLOR, FailureTracker, FailureTrackerConfig, FrameUpdate, FusedPathInput, GPS_ERROR_CODES, GPS_ERROR_MESSAGES, GPS_ERROR_MESSAGE_UNKNOWN, GpsAnchor, GpsAnchorMode, GpsAnchorOptions, GpsAnchorPhase, GpsAnchorSamplePoint, GpsCompassCubes, GpsCoord, GpsEventVisualizer, type GpsPathCoord, GpsPosition, H3_RESOLUTION, HitMatrix, IMAGE_CONSTRAINTS, ImageCaptureCallbacks, ImageCaptureConfig, ImageCaptureManager, type ImageCaptureOptions, KnownGeoAnchor, LeafletMapOverlay, LeafletMapOverlayOptions, LogEntry, LogLevel, Logger, MAP_PATH_POLYLINE_OPACITY, MAP_PATH_POLYLINE_WEIGHT, MAX_ACTION_FILE_SIZE, MIN_VALID_IMAGE_BYTES, MapData, MapDataInput, MapOverlay, MapOverlayOptions, NullStorageBackend, type OnboardingGuidance, type OnboardingPhase, OpfsStorageBackend, PermissionCheckResult, PermissionStatus, type PoseReceivedPayload, type ProgressCallback, RAW_GPS_COLOR, RawDeviceOrientation, RawGpsSample, type RecordedAction, type RecordingCoordinatorConfig, type RecordingOptionsInput, type RecordingState, RefPointMarker, RendererLike, type ReplayAction, ReplayEngine, ReplaySceneState, type ReplayState, SCENE_NODE, STORAGE_KEY, SessionFeatureOptions, type SlamAppCombinedState, type SlamAppMiddleware, type SlamAppRootState, type SlamAppStore, type SlamAppStoreOptions, type StorageBackend, type StoreSubscriberDeps, type SubscribableStore, TextureLoaderInterface, type TrackingPhase, type TrackingQualityOptions, type TrackingQualityReport, type TrackingQualitySliceState, type TrackingQualityState, type TrackingSliceState, USER_POSITION_COLOR, VIS_COLORS, WEBXR_TO_NUE, WebXRQuaternion, WebXRVec3, type WriteAccessResult, XRCameraLike, XR_ERROR_MESSAGES, XR_ERROR_MESSAGE_UNKNOWN, XrFrameContext, XrFrameUpdate, type ZipActionEntry, type ZipContributorAddFile, type ZipExportContributor, type ZipExportResult, acquireCameraTexture, add2dImage, addAccuracyCircles, applyChromiumProjectionLayerWorkaround, approxDistanceMetres, buildCameraFrustum, buildMapData, buildRawGpsPoint, buildRecordGpsEventPayload, calcRelativeCoordsInMeters, capabilityMessage, checkAllPermissions, checkCameraPermission, checkFileSystemPermission, checkGeolocationPermission, checkOrientationPermission, checkStorageQuota, checkWebXRSupport, clampedAlpha, clearLastRestartedPayload, clearLogBuffer, cloneRecordingOptions, computeCaptureSize, computeCompassAgreement, computeConvergence, computeCoverage, computeFusedPath, computeGpsAccuracy, computeGpsVsFusedDivergence, computeInterActionDelay, computeOnboardingGuidance, computeResidualConsensus, computeTrackingQualityReport, createAlignmentLerper, createCameraFollower, createCaptureFailureTracker, createCss3dRendererManager, createEnableGpsArController, createFailureTracker, createGpsAnchor, createGpsCompassCubes, createGpsErrorHandler, createGpsPositionHandler, createLogger, createReticleMesh, createSession, createSlamAppStore, createTrackingQualityListenerMiddleware, disposeMeshArray, disposeObject3D, disposeReplayScene, downloadZip, drawMapData, enableArWorldGroupAlignment, endARSession, endSession, eulerToQuaternion, exportAndDownloadSession, exportSessionAsZip, extractActionTimestamp, extractOdomPosition, extractOdomRotation, findNearbyGeoAnchor, firstAgreementReached, formatActionFilename, formatFileSize, formatFrameFilename, formatTimestamp, fusedGpsFromOdom, getAlignmentLerper, getAppRootHandle, getArWorldGroup, getCamera, getCameraFollower, getCameraMode, getCurrentArPose, getDepthSampleCount, getGlobalLogLevel, getGpsErrorMessage, getImageCaptureFrameCount, getLastDeviceOrientation, getLiveCss3dManager, getLogBuffer, getReplayState, getScene, getSessionHandle, getSessionsRootHandle, getXrErrorMessage, gpsEventVisualizer, gpsToH3, h3CellsMatch, initAR, initOpfsStorage, initReplayScene, initStorage, isFullySupported, isH3Index, isObjectInCameraFrustum, isPointInCameraFrustum, isSphereInCameraFrustum, latLonToTileXY, listFormatter, listSessions, loadActionsFromZip, loadGpsPathFromBlob, loadRecordingOptions, loadSessionMetadataFromBlob, mapWithConcurrencyLimit, matrixDelta, needsBaseLayerPersistence, nueToArLocal, originReset, parseChromeVersion, poseLost, poseReceived, readZipEntries, recordDepthSample, recordGpsEvent, recordWriteFailure, recordingReducer, registerFrameUpdate, registerXrFrameUpdate, replayRecording, reportUpdated, requestAllPermissions, requestCameraPermission, requestOrientationPermission as requestDeviceOrientationPermission, requestGeolocationPermission, requestOrientationPermission$1 as requestOrientationPermission, requestWebXRWithDepthPermission, resetCoordinatorState, resetFileSystemState, resetForNewSession, resetOpfsStorage, resetRecordingOptions, resetSessionHandles, resetStorageState, resetTracking, resetTrackingQuality, saveRecordingOptions, selectFirstAgreementObservationIndex, selectLastRestartedPayload, selectLastSensorOrientation, selectLastValidPose, selectLostFrameCount, selectOnboardingGuidance, selectRecentAlignments, selectTrackingPhase, selectTrackingQuality, setDepthCaptureCallback, setFileSystemState, setFrameCallback, setGlobalLogLevel, setImageCaptureCallback, setTrackingCallbacks, setTrackingLostCallback, setTrackingStore, setZeroPos, snapshotPushed, snapshotsTrimmed, startDepthCapture, startGpsWatch, startImageCapture, startOrientationWatch, startSession, startSession$1 as startStorageSession, stopDepthCapture, stopGpsWatch, stopImageCapture, stopOrientationWatch, subscribeToLogs, syncToExternalZip, tileXYToLatLon, toggleCameraMode, trackingQualityReducer, trackingReducer, updateDeviceOrientation, updateOrbitTarget, updateReticle, validateDepthOptions, validateImageOptions, validateRecordingOptions, verifyWriteAccess, wireStoreSubscribers, worldNueToGps, writeAction, writeFrame };