gps-plus-slam-app-framework 1.1.0 → 1.2.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/{app-selectors-CR9OWodf.d.ts → app-selectors-CcZ5UV-8.d.ts} +1 -1
- package/dist/ar/bresenham3d.d.ts +2 -0
- package/dist/ar/bresenham3d.js +81 -0
- package/dist/ar/camera-blit-capture.d.ts +1 -1
- package/dist/ar/camera-blit-capture.js +30 -2
- 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-sampler.d.ts +3 -3
- package/dist/ar/depth-sampler.js +63 -8
- package/dist/ar/depth-unprojection.d.ts +2 -0
- package/dist/ar/depth-unprojection.js +94 -0
- 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/image-capture.d.ts +1 -1
- package/dist/ar/image-capture.js +2 -1
- package/dist/ar/index.d.ts +19 -16
- package/dist/ar/index.js +7 -4
- package/dist/ar/occupancy-grid.d.ts +2 -0
- package/dist/ar/occupancy-grid.js +164 -0
- 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 +2 -0
- package/dist/{webxr-nue-basis-BbdqhqY6.js → ar/webxr-nue-basis.js} +1 -1
- package/dist/ar/webxr-session.d.ts +3 -3
- package/dist/ar/webxr-session.js +1 -969
- 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-types-isPsQptb.d.ts → ar-types-Dan1MVTi.d.ts} +28 -5
- package/dist/{ar-world-group-alignment-Dn4rQk_c.d.ts → ar-world-group-alignment-ColHB_5A.d.ts} +1 -1
- package/dist/bresenham3d-CFfd7n6B.d.ts +59 -0
- package/dist/{camera-blit-capture-75WWa9Xb.d.ts → camera-blit-capture-D5_mNhla.d.ts} +20 -0
- package/dist/core/index.d.ts +1 -1
- package/dist/{create-slam-app-store-B76AGaI0.d.ts → create-slam-app-store-qNXQ-tq5.d.ts} +5 -5
- package/dist/depth-sampler-Bhanfwla.d.ts +169 -0
- package/dist/depth-unprojection-Y6i_mJuT.d.ts +52 -0
- package/dist/{enable-gps-ar-DNbO0zbg.d.ts → enable-gps-ar-CapmADVN.d.ts} +4 -4
- package/dist/{file-system-TIsDfamK.d.ts → file-system-C_eqiEA8.d.ts} +1 -1
- package/dist/{frame-conversions-D2EYjeNa.d.ts → frame-conversions-BfsafGWR.d.ts} +1 -1
- package/dist/{fused-path-BdVHmDW9.d.ts → fused-path-DJoVu98b.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-CISLPQIb.d.ts → gps-anchor-dYeCvvp5.d.ts} +1 -1
- package/dist/{gps-ar-pose-sampler-BypXZUqC.d.ts → gps-ar-pose-sampler-DVb96iOy.d.ts} +1 -1
- package/dist/{gps-event-coordinator-BKVZbS1M.d.ts → gps-event-coordinator-BDIQde2x.d.ts} +3 -3
- package/dist/{image-capture-BXZUmj7j.d.ts → image-capture-DZ4HFRgS.d.ts} +15 -2
- package/dist/{index-BB2KEWbN2.d.ts → index-KJq2amHF.d.ts} +1 -1
- package/dist/index.d.ts +67 -64
- package/dist/index.js +7 -4
- package/dist/{leaflet-map-overlay-jNt-kcUr.d.ts → leaflet-map-overlay-6CJC-E1l.d.ts} +1 -1
- package/dist/{map-data-BGIBM5rv.d.ts → map-data-CkloBxIl.d.ts} +1 -1
- package/dist/{map-overlay-draw-DcGs9UV3.d.ts → map-overlay-draw-krOKwDAq.d.ts} +1 -1
- package/dist/{null-storage-backend-BPQJSaMw.d.ts → null-storage-backend-CxEjZHRW.d.ts} +2 -2
- package/dist/occupancy-grid-BRNRaPyT.d.ts +72 -0
- package/dist/{opfs-storage-backend-u4QKvgvP.d.ts → opfs-storage-backend-CjSAuqg_.d.ts} +2 -2
- package/dist/{persistence-middleware-xB5sTllJ.d.ts → persistence-middleware-DwyzgfWr.d.ts} +1 -1
- package/dist/{recording-options-BSFpBSZH.d.ts → recording-options-DJBXuMxV.d.ts} +12 -2
- package/dist/{recording-replayer-CTL2cUE0.d.ts → recording-replayer-BL-x-7k0.d.ts} +2 -2
- package/dist/{recording-slice-Cb888P6d.d.ts → recording-slice-89O07ebs.d.ts} +10 -2
- package/dist/{replay-engine-B-5GIZtc.d.ts → replay-engine-BRqszuQ9.d.ts} +1 -1
- package/dist/{replay-scene-DkNfldPh.d.ts → replay-scene-Bw58VL6p.d.ts} +3 -3
- package/dist/sensors/gps-error-handler.d.ts +1 -1
- package/dist/sensors/gps.d.ts +1 -1
- package/dist/sensors/index.d.ts +3 -3
- 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/gps-ar-pose-sampler.d.ts +3 -3
- package/dist/state/gps-event-coordinator.d.ts +1 -1
- package/dist/state/index.d.ts +16 -16
- package/dist/state/persistence-middleware.d.ts +1 -1
- package/dist/state/recording-options.d.ts +1 -1
- package/dist/state/recording-options.js +5 -3
- package/dist/state/recording-replayer.d.ts +2 -2
- package/dist/state/recording-slice.d.ts +1 -1
- package/dist/state/recording-slice.js +11 -2
- package/dist/state/replay-engine.d.ts +1 -1
- package/dist/state/store-subscribers.d.ts +2 -2
- 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 +1 -1
- package/dist/state/tracking-slice.d.ts +1 -1
- package/dist/storage/file-system-utils.d.ts +1 -1
- package/dist/storage/file-system.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/storage-backend.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-yDSKafAQ.d.ts → storage-backend-C9HLFtgz.d.ts} +1 -1
- package/dist/{store-subscribers-swlbtg_z.d.ts → store-subscribers-rrkLkFTt.d.ts} +2 -2
- package/dist/{subscribe-to-selector--KQpgLXG.d.ts → subscribe-to-selector-CP3BKSbF.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-CDREeoZ_.d.ts → tracking-slice-CdK8c-8P.d.ts} +1 -1
- package/dist/types/ar-types.d.ts +2 -2
- package/dist/types/geo-types.d.ts +1 -1
- package/dist/types/index.d.ts +3 -3
- 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 +6 -6
- 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/alignment-lerper.d.ts +1 -1
- package/dist/visualization/ar-world-group-alignment.d.ts +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/hit-test-reticle.js +1 -1
- package/dist/visualization/index.d.ts +18 -18
- package/dist/visualization/leaflet-map-overlay.d.ts +1 -1
- package/dist/visualization/lerp-utils.d.ts +1 -1
- package/dist/visualization/map-data.d.ts +1 -1
- package/dist/visualization/map-overlay-draw.d.ts +1 -1
- package/dist/visualization/map-overlay.d.ts +1 -1
- package/dist/visualization/three-dispose.d.ts +1 -1
- package/dist/visualization/vis-colors.d.ts +1 -1
- package/dist/{webxr-session-BnArFCew.d.ts → webxr-session-DtAG9srK.d.ts} +21 -10
- package/dist/webxr-session-QhcSSub5.js +1041 -0
- package/package.json +1 -1
- package/dist/depth-sampler-CqrkRr2N.d.ts +0 -108
- /package/dist/{accuracy-circles-DEKr0Hoh.d.ts → accuracy-circles-BpwWAs8G.d.ts} +0 -0
- /package/dist/{alignment-lerper-CCZJf-Xb.d.ts → alignment-lerper-Dm9G7JJO.d.ts} +0 -0
- /package/dist/{camera-follower-B-nS1sr6.d.ts → camera-follower-C2mwEn7c.d.ts} +0 -0
- /package/dist/{capability-checker-BTCmZRL4.d.ts → capability-checker-CQXJHxXg.d.ts} +0 -0
- /package/dist/{capture-failure-tracker-D4HYJNOj.d.ts → capture-failure-tracker-CUeU3L_M.d.ts} +0 -0
- /package/dist/{chromium-camera-access-workaround-MifIwK9x.d.ts → chromium-camera-access-workaround-Jqbn0apH.d.ts} +0 -0
- /package/dist/{concurrency-Bsmv53qw.d.ts → concurrency-CO1FQvs3.d.ts} +0 -0
- /package/dist/{css3d-renderer-manager-EDED3nvg.d.ts → css3d-renderer-manager-ptu_t3B3.d.ts} +0 -0
- /package/dist/{failure-tracker-D7ELffm0.d.ts → failure-tracker-Cn8Fo9D4.d.ts} +0 -0
- /package/dist/{file-system-utils-BH6uIs2i.d.ts → file-system-utils-DyAmcuvX.d.ts} +0 -0
- /package/dist/{format-file-size-B7gJb3Md.d.ts → format-file-size-CLCZz3lC.d.ts} +0 -0
- /package/dist/{frame-loop-BTeRpDm4.d.ts → frame-loop-CMewS8cY.d.ts} +0 -0
- /package/dist/{frustum-visibility-DGnJqls0.d.ts → frustum-visibility-CmI96ESS.d.ts} +0 -0
- /package/dist/{geo-types-clgzl8b5.d.ts → geo-types-SaPnIEUM.d.ts} +0 -0
- /package/dist/{gps-B7AlMPz5.d.ts → gps-VuezJWK3.d.ts} +0 -0
- /package/dist/{gps-compass-cubes-Ys6Hf1nc.d.ts → gps-compass-cubes-BM1uGiYV.d.ts} +0 -0
- /package/dist/{gps-error-handler-BLDhUlw5.d.ts → gps-error-handler-CJl_2MVm.d.ts} +0 -0
- /package/dist/{gps-event-markers-BlHq3jYV.d.ts → gps-event-markers-Dc9FT-q1.d.ts} +0 -0
- /package/dist/{h3-proximity-DJnghtir.d.ts → h3-proximity-I1msGPgE.d.ts} +0 -0
- /package/dist/{hit-test-reticle-BGXOxrUh.d.ts → hit-test-reticle-BEzEybxZ.d.ts} +0 -0
- /package/dist/{index--ldLph4V.d.ts → index-CF05QV2m.d.ts} +0 -0
- /package/dist/{lerp-utils-DNcSmKVX.d.ts → lerp-utils-BpV-0Dtk.d.ts} +0 -0
- /package/dist/{list-formatter-CsqcU4v5.d.ts → list-formatter-RRcBe8Vg.d.ts} +0 -0
- /package/dist/{logger-BZ44Dhd3.d.ts → logger-BEHXsnnq.d.ts} +0 -0
- /package/dist/{map-overlay-yrFsUtGv.d.ts → map-overlay-bcogY5fK.d.ts} +0 -0
- /package/dist/{opfs-storage-LsLY6VZV.d.ts → opfs-storage-DYm8WHq7.d.ts} +0 -0
- /package/dist/{permission-checker-CfV7INCa.d.ts → permission-checker-GpAiSCwd.d.ts} +0 -0
- /package/dist/{scene-node-names-IHW7HR4S.d.ts → scene-node-names-Bu0S66H1.d.ts} +0 -0
- /package/dist/{three-dispose-WTBAfaWU.d.ts → three-dispose-D950t71B.d.ts} +0 -0
- /package/dist/{vis-colors-Djnyg_UH.d.ts → vis-colors-D6omC64K.d.ts} +0 -0
- /package/dist/{index-22v8MXJX.d.ts → webxr-nue-basis-CqKQmZzT.d.ts} +0 -0
- /package/dist/{xr-camera-texture-BU5YvKAM.d.ts → xr-camera-texture-DBwCaKTd.d.ts} +0 -0
- /package/dist/{xr-error-handler-DcUFshNF.d.ts → xr-error-handler-C0AQRmxs.d.ts} +0 -0
- /package/dist/{xr-frame-loop-BKckC7xC.d.ts → xr-frame-loop-BtYytZJg.d.ts} +0 -0
- /package/dist/{zip-export-C0_ErAqT.d.ts → zip-export-D_5HAvFz.d.ts} +0 -0
- /package/dist/{zip-reader-B2lzN8F5.d.ts → zip-reader-DSEXt7K6.d.ts} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "gps-plus-slam-app-framework",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.2.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": [
|
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
import { i as DepthSample, t as ARPose } from "./ar-types-isPsQptb.js";
|
|
2
|
-
|
|
3
|
-
//#region ../src/ar/depth-sampler.d.ts
|
|
4
|
-
/**
|
|
5
|
-
* Configuration for depth sampling behavior.
|
|
6
|
-
*/
|
|
7
|
-
interface DepthSamplerConfig {
|
|
8
|
-
/** Interval between samples in milliseconds. Default: 1000ms */
|
|
9
|
-
intervalMs: number;
|
|
10
|
-
/** Number of points per dimension (gridSize x gridSize). Default: 3 */
|
|
11
|
-
gridSize: number;
|
|
12
|
-
/** Time in ms to wait before declaring depth unavailable. Default: 5000ms */
|
|
13
|
-
unavailabilityThresholdMs: number;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Callbacks for depth sampler events.
|
|
17
|
-
*/
|
|
18
|
-
interface DepthSamplerCallbacks {
|
|
19
|
-
/** Called when a depth sample is captured */
|
|
20
|
-
onSampleCaptured: (sample: DepthSample) => void;
|
|
21
|
-
/** Returns the current AR pose, or null if not available */
|
|
22
|
-
getCurrentPose: () => ARPose | null;
|
|
23
|
-
/**
|
|
24
|
-
* Called once when depth is determined to be unavailable.
|
|
25
|
-
* Triggered after unavailabilityThresholdMs with no depth data.
|
|
26
|
-
* Field Test Readiness Issue #8.
|
|
27
|
-
*/
|
|
28
|
-
onDepthUnavailable?: () => void;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* WebXR depth info interface (subset of XRDepthInformation).
|
|
32
|
-
*/
|
|
33
|
-
interface DepthInfo {
|
|
34
|
-
width: number;
|
|
35
|
-
height: number;
|
|
36
|
-
getDepthInMeters: (x: number, y: number) => number;
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Samples sparse depth points from WebXR depth sensing.
|
|
40
|
-
*
|
|
41
|
-
* Usage:
|
|
42
|
-
* ```ts
|
|
43
|
-
* const sampler = new DepthSampler({
|
|
44
|
-
* onSampleCaptured: (sample) => saveSample(sample),
|
|
45
|
-
* getCurrentPose: () => arSession.getCurrentPose(),
|
|
46
|
-
* });
|
|
47
|
-
* sampler.start();
|
|
48
|
-
* // In frame loop:
|
|
49
|
-
* sampler.onFrame(timestamp, depthInfo);
|
|
50
|
-
* ```
|
|
51
|
-
*/
|
|
52
|
-
declare class DepthSampler {
|
|
53
|
-
private readonly callbacks;
|
|
54
|
-
private readonly config;
|
|
55
|
-
private running;
|
|
56
|
-
private sampleCount;
|
|
57
|
-
private lastSampleTime;
|
|
58
|
-
/** Timestamp when sampling started (for unavailability detection) */
|
|
59
|
-
private startTime;
|
|
60
|
-
/** Whether we've ever received valid depth data */
|
|
61
|
-
private depthReceived;
|
|
62
|
-
/** Whether we've already fired the unavailable callback */
|
|
63
|
-
private unavailableCallbackFired;
|
|
64
|
-
constructor(callbacks: DepthSamplerCallbacks, config?: Partial<DepthSamplerConfig>);
|
|
65
|
-
/**
|
|
66
|
-
* Start depth sampling.
|
|
67
|
-
*/
|
|
68
|
-
start(): void;
|
|
69
|
-
/**
|
|
70
|
-
* Stop depth sampling.
|
|
71
|
-
*/
|
|
72
|
-
stop(): void;
|
|
73
|
-
/**
|
|
74
|
-
* Check if sampler is currently running.
|
|
75
|
-
*/
|
|
76
|
-
isRunning(): boolean;
|
|
77
|
-
/**
|
|
78
|
-
* Get the number of samples captured since start.
|
|
79
|
-
*/
|
|
80
|
-
getSampleCount(): number;
|
|
81
|
-
/**
|
|
82
|
-
* Get the current configuration.
|
|
83
|
-
*/
|
|
84
|
-
getConfig(): DepthSamplerConfig;
|
|
85
|
-
/**
|
|
86
|
-
* Called each frame with depth information.
|
|
87
|
-
*
|
|
88
|
-
* @param timestamp - Current frame timestamp in milliseconds
|
|
89
|
-
* @param depthInfo - WebXR depth information, or null if unavailable
|
|
90
|
-
*/
|
|
91
|
-
onFrame(timestamp: number, depthInfo: DepthInfo | null): void;
|
|
92
|
-
/**
|
|
93
|
-
* Sample a grid of depth points from the depth buffer.
|
|
94
|
-
*/
|
|
95
|
-
private sampleGrid;
|
|
96
|
-
/**
|
|
97
|
-
* Check if depth has been unavailable for longer than the threshold.
|
|
98
|
-
* If so, fire the onDepthUnavailable callback (once).
|
|
99
|
-
*/
|
|
100
|
-
private checkDepthUnavailability;
|
|
101
|
-
/**
|
|
102
|
-
* Check if depth data has ever been received.
|
|
103
|
-
* Useful for testing and status display.
|
|
104
|
-
*/
|
|
105
|
-
hasReceivedDepth(): boolean;
|
|
106
|
-
}
|
|
107
|
-
//#endregion
|
|
108
|
-
export { DepthSamplerConfig as i, DepthSampler as n, DepthSamplerCallbacks as r, DepthInfo as t };
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
/package/dist/{capture-failure-tracker-D4HYJNOj.d.ts → capture-failure-tracker-CUeU3L_M.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
|