@neilberkman/sidereon 0.39.1 → 1.0.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/CHANGELOG.md +16 -0
- package/README.md +22 -11
- package/exact-cache.js +390 -58
- package/package.json +1 -1
- package/pkg/sidereon.d.ts +1951 -1815
- package/pkg/sidereon.js +214 -0
- package/pkg/sidereon_bg.wasm +0 -0
- package/pkg/sidereon_bg.wasm.d.ts +1795 -1784
- package/pkg-node/sidereon.d.ts +127 -2
- package/pkg-node/sidereon.js +217 -0
- package/pkg-node/sidereon_bg.wasm +0 -0
- package/pkg-node/sidereon_bg.wasm.d.ts +1795 -1784
- package/types/exact-cache.d.ts +32 -0
package/pkg/sidereon.js
CHANGED
|
@@ -4729,6 +4729,55 @@ export class ErrorEllipse2 {
|
|
|
4729
4729
|
}
|
|
4730
4730
|
if (Symbol.dispose) ErrorEllipse2.prototype[Symbol.dispose] = ErrorEllipse2.prototype.free;
|
|
4731
4731
|
|
|
4732
|
+
/**
|
|
4733
|
+
* Stateful adapter around the core's target-neutral single-flight waiter.
|
|
4734
|
+
*/
|
|
4735
|
+
export class ExactCacheSingleFlightWait {
|
|
4736
|
+
__destroy_into_raw() {
|
|
4737
|
+
const ptr = this.__wbg_ptr;
|
|
4738
|
+
this.__wbg_ptr = 0;
|
|
4739
|
+
ExactCacheSingleFlightWaitFinalization.unregister(this);
|
|
4740
|
+
return ptr;
|
|
4741
|
+
}
|
|
4742
|
+
free() {
|
|
4743
|
+
const ptr = this.__destroy_into_raw();
|
|
4744
|
+
wasm.__wbg_exactcachesingleflightwait_free(ptr, 0);
|
|
4745
|
+
}
|
|
4746
|
+
/**
|
|
4747
|
+
* Start one bounded wait at a browser-monotonic timestamp in milliseconds.
|
|
4748
|
+
* @param {number} started_ms
|
|
4749
|
+
* @param {number} poll_interval_ms
|
|
4750
|
+
* @param {number} heartbeat_interval_ms
|
|
4751
|
+
* @param {number} liveness_timeout_ms
|
|
4752
|
+
* @param {number} wait_timeout_ms
|
|
4753
|
+
*/
|
|
4754
|
+
constructor(started_ms, poll_interval_ms, heartbeat_interval_ms, liveness_timeout_ms, wait_timeout_ms) {
|
|
4755
|
+
const ret = wasm.exactcachesingleflightwait_new(started_ms, poll_interval_ms, heartbeat_interval_ms, liveness_timeout_ms, wait_timeout_ms);
|
|
4756
|
+
if (ret[2]) {
|
|
4757
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
4758
|
+
}
|
|
4759
|
+
this.__wbg_ptr = ret[0];
|
|
4760
|
+
ExactCacheSingleFlightWaitFinalization.register(this, this.__wbg_ptr, this);
|
|
4761
|
+
return this;
|
|
4762
|
+
}
|
|
4763
|
+
/**
|
|
4764
|
+
* Observe an opaque IndexedDB owner/heartbeat revision.
|
|
4765
|
+
* @param {number} now_ms
|
|
4766
|
+
* @param {Uint8Array} revision
|
|
4767
|
+
* @returns {any}
|
|
4768
|
+
*/
|
|
4769
|
+
observe(now_ms, revision) {
|
|
4770
|
+
const ptr0 = passArray8ToWasm0(revision, wasm.__wbindgen_malloc);
|
|
4771
|
+
const len0 = WASM_VECTOR_LEN;
|
|
4772
|
+
const ret = wasm.exactcachesingleflightwait_observe(this.__wbg_ptr, now_ms, ptr0, len0);
|
|
4773
|
+
if (ret[2]) {
|
|
4774
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
4775
|
+
}
|
|
4776
|
+
return takeFromExternrefTable0(ret[0]);
|
|
4777
|
+
}
|
|
4778
|
+
}
|
|
4779
|
+
if (Symbol.dispose) ExactCacheSingleFlightWait.prototype[Symbol.dispose] = ExactCacheSingleFlightWait.prototype.free;
|
|
4780
|
+
|
|
4732
4781
|
/**
|
|
4733
4782
|
* Accepted boundary convention for a validated exact SP3 product.
|
|
4734
4783
|
* @enum {0 | 1}
|
|
@@ -9889,6 +9938,57 @@ export class NmeaParseResult {
|
|
|
9889
9938
|
}
|
|
9890
9939
|
if (Symbol.dispose) NmeaParseResult.prototype[Symbol.dispose] = NmeaParseResult.prototype.free;
|
|
9891
9940
|
|
|
9941
|
+
/**
|
|
9942
|
+
* The next catalog issue nominally due at or after a UTC instant.
|
|
9943
|
+
*
|
|
9944
|
+
* This is a network-free schedule query. It does not claim the archive has
|
|
9945
|
+
* published the issue. Coverage intervals are half-open and all returned
|
|
9946
|
+
* `Date` values are UTC instants.
|
|
9947
|
+
*/
|
|
9948
|
+
export class NominalIssue {
|
|
9949
|
+
static __wrap(ptr) {
|
|
9950
|
+
const obj = Object.create(NominalIssue.prototype);
|
|
9951
|
+
obj.__wbg_ptr = ptr;
|
|
9952
|
+
NominalIssueFinalization.register(obj, obj.__wbg_ptr, obj);
|
|
9953
|
+
return obj;
|
|
9954
|
+
}
|
|
9955
|
+
__destroy_into_raw() {
|
|
9956
|
+
const ptr = this.__wbg_ptr;
|
|
9957
|
+
this.__wbg_ptr = 0;
|
|
9958
|
+
NominalIssueFinalization.unregister(this);
|
|
9959
|
+
return ptr;
|
|
9960
|
+
}
|
|
9961
|
+
free() {
|
|
9962
|
+
const ptr = this.__destroy_into_raw();
|
|
9963
|
+
wasm.__wbg_nominalissue_free(ptr, 0);
|
|
9964
|
+
}
|
|
9965
|
+
/**
|
|
9966
|
+
* Nominal observed and predicted half-open coverage intervals.
|
|
9967
|
+
* @returns {any}
|
|
9968
|
+
*/
|
|
9969
|
+
get covers() {
|
|
9970
|
+
const ret = wasm.nominalissue_covers(this.__wbg_ptr);
|
|
9971
|
+
return ret;
|
|
9972
|
+
}
|
|
9973
|
+
/**
|
|
9974
|
+
* Nominal publication deadline as a UTC JavaScript `Date`.
|
|
9975
|
+
* @returns {Date}
|
|
9976
|
+
*/
|
|
9977
|
+
get dueAt() {
|
|
9978
|
+
const ret = wasm.nominalissue_dueAt(this.__wbg_ptr);
|
|
9979
|
+
return ret;
|
|
9980
|
+
}
|
|
9981
|
+
/**
|
|
9982
|
+
* Exact product identity expected at the due time.
|
|
9983
|
+
* @returns {GnssProductIdentity}
|
|
9984
|
+
*/
|
|
9985
|
+
get identity() {
|
|
9986
|
+
const ret = wasm.nominalissue_identity(this.__wbg_ptr);
|
|
9987
|
+
return GnssProductIdentity.__wrap(ret);
|
|
9988
|
+
}
|
|
9989
|
+
}
|
|
9990
|
+
if (Symbol.dispose) NominalIssue.prototype[Symbol.dispose] = NominalIssue.prototype.free;
|
|
9991
|
+
|
|
9892
9992
|
/**
|
|
9893
9993
|
* Sans-IO NTRIP client state machine.
|
|
9894
9994
|
*/
|
|
@@ -17008,6 +17108,27 @@ export class Sp3 {
|
|
|
17008
17108
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
17009
17109
|
return v1;
|
|
17010
17110
|
}
|
|
17111
|
+
/**
|
|
17112
|
+
* Decide whether product-wide continuity findings can influence an
|
|
17113
|
+
* inclusive evaluation window through this product's interpolation
|
|
17114
|
+
* stencil.
|
|
17115
|
+
*
|
|
17116
|
+
* Omitted options use the existing defaults (`"meo_gnss"` and 1 metre).
|
|
17117
|
+
* Passing `null` disables the corresponding check. The returned object
|
|
17118
|
+
* retains both the influencing findings and the complete report.
|
|
17119
|
+
* @param {number} from_j2000_s
|
|
17120
|
+
* @param {number} through_j2000_s
|
|
17121
|
+
* @param {any} orbit_class
|
|
17122
|
+
* @param {any} residual_tolerance_m
|
|
17123
|
+
* @returns {any}
|
|
17124
|
+
*/
|
|
17125
|
+
continuityVerdict(from_j2000_s, through_j2000_s, orbit_class, residual_tolerance_m) {
|
|
17126
|
+
const ret = wasm.sp3_continuityVerdict(this.__wbg_ptr, from_j2000_s, through_j2000_s, orbit_class, residual_tolerance_m);
|
|
17127
|
+
if (ret[2]) {
|
|
17128
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
17129
|
+
}
|
|
17130
|
+
return takeFromExternrefTable0(ret[0]);
|
|
17131
|
+
}
|
|
17011
17132
|
/**
|
|
17012
17133
|
* Epoch count declared by SP3 header line 1, independent of the parsed
|
|
17013
17134
|
* body count used by [`Sp3::epochCount`].
|
|
@@ -17359,6 +17480,20 @@ export class Sp3 {
|
|
|
17359
17480
|
}
|
|
17360
17481
|
return Sp3State.__wrap(ret[0]);
|
|
17361
17482
|
}
|
|
17483
|
+
/**
|
|
17484
|
+
* Time reach of the SP3 position interpolator before and after a query.
|
|
17485
|
+
*
|
|
17486
|
+
* The core derives both values from this product's declared epoch interval
|
|
17487
|
+
* and interpolation-node count. Callers never supply a stencil duration.
|
|
17488
|
+
* @returns {any}
|
|
17489
|
+
*/
|
|
17490
|
+
stencilExtent() {
|
|
17491
|
+
const ret = wasm.sp3_stencilExtent(this.__wbg_ptr);
|
|
17492
|
+
if (ret[2]) {
|
|
17493
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
17494
|
+
}
|
|
17495
|
+
return takeFromExternrefTable0(ret[0]);
|
|
17496
|
+
}
|
|
17362
17497
|
/**
|
|
17363
17498
|
* Serialize to standard SP3 text (the version named by the header, `c` or
|
|
17364
17499
|
* `d`). Deterministic: the same product always produces byte-identical text.
|
|
@@ -18027,6 +18162,25 @@ export class Sp3MergeReport {
|
|
|
18027
18162
|
wasm.__wbindgen_free(ret[0], ret[1] * 4, 4);
|
|
18028
18163
|
return v1;
|
|
18029
18164
|
}
|
|
18165
|
+
/**
|
|
18166
|
+
* Decide whether this merge's optional continuity post-condition can
|
|
18167
|
+
* influence an inclusive evaluation window through `merged`'s derived
|
|
18168
|
+
* interpolation stencil.
|
|
18169
|
+
*
|
|
18170
|
+
* Returns `null` when `verifyContinuity` was not requested for the merge.
|
|
18171
|
+
* @param {Sp3} merged
|
|
18172
|
+
* @param {number} from_j2000_s
|
|
18173
|
+
* @param {number} through_j2000_s
|
|
18174
|
+
* @returns {any}
|
|
18175
|
+
*/
|
|
18176
|
+
continuityVerdict(merged, from_j2000_s, through_j2000_s) {
|
|
18177
|
+
_assertClass(merged, Sp3);
|
|
18178
|
+
const ret = wasm.sp3mergereport_continuityVerdict(this.__wbg_ptr, merged.__wbg_ptr, from_j2000_s, through_j2000_s);
|
|
18179
|
+
if (ret[2]) {
|
|
18180
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
18181
|
+
}
|
|
18182
|
+
return takeFromExternrefTable0(ret[0]);
|
|
18183
|
+
}
|
|
18030
18184
|
/**
|
|
18031
18185
|
* @returns {number}
|
|
18032
18186
|
*/
|
|
@@ -26504,6 +26658,28 @@ export function newestPublishedProduct(center, family, listing_body) {
|
|
|
26504
26658
|
return takeFromExternrefTable0(ret[0]);
|
|
26505
26659
|
}
|
|
26506
26660
|
|
|
26661
|
+
/**
|
|
26662
|
+
* Return the next catalog issue nominally due at or after `now`.
|
|
26663
|
+
*
|
|
26664
|
+
* Fractional milliseconds advance to the next whole second, matching the
|
|
26665
|
+
* core catalog's whole-second resolution.
|
|
26666
|
+
* @param {string} center
|
|
26667
|
+
* @param {string} content
|
|
26668
|
+
* @param {Date} now
|
|
26669
|
+
* @returns {NominalIssue}
|
|
26670
|
+
*/
|
|
26671
|
+
export function nextIssueDue(center, content, now) {
|
|
26672
|
+
const ptr0 = passStringToWasm0(center, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
26673
|
+
const len0 = WASM_VECTOR_LEN;
|
|
26674
|
+
const ptr1 = passStringToWasm0(content, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
|
|
26675
|
+
const len1 = WASM_VECTOR_LEN;
|
|
26676
|
+
const ret = wasm.nextIssueDue(ptr0, len0, ptr1, len1, now);
|
|
26677
|
+
if (ret[2]) {
|
|
26678
|
+
throw takeFromExternrefTable0(ret[1]);
|
|
26679
|
+
}
|
|
26680
|
+
return NominalIssue.__wrap(ret[0]);
|
|
26681
|
+
}
|
|
26682
|
+
|
|
26507
26683
|
/**
|
|
26508
26684
|
* Scalar normalized innovation squared statistic.
|
|
26509
26685
|
* @param {number} innovation
|
|
@@ -30730,6 +30906,34 @@ function __wbg_get_imports() {
|
|
|
30730
30906
|
const ret = Array.from(arg0);
|
|
30731
30907
|
return ret;
|
|
30732
30908
|
},
|
|
30909
|
+
__wbg_getTime_d6f070c088c9b5ed: function(arg0) {
|
|
30910
|
+
const ret = arg0.getTime();
|
|
30911
|
+
return ret;
|
|
30912
|
+
},
|
|
30913
|
+
__wbg_getUTCDate_652a2ad7beebbadf: function(arg0) {
|
|
30914
|
+
const ret = arg0.getUTCDate();
|
|
30915
|
+
return ret;
|
|
30916
|
+
},
|
|
30917
|
+
__wbg_getUTCFullYear_5af8ca4e2020c06e: function(arg0) {
|
|
30918
|
+
const ret = arg0.getUTCFullYear();
|
|
30919
|
+
return ret;
|
|
30920
|
+
},
|
|
30921
|
+
__wbg_getUTCHours_3f030631d89309ea: function(arg0) {
|
|
30922
|
+
const ret = arg0.getUTCHours();
|
|
30923
|
+
return ret;
|
|
30924
|
+
},
|
|
30925
|
+
__wbg_getUTCMinutes_03f5d6c64c8b2fb1: function(arg0) {
|
|
30926
|
+
const ret = arg0.getUTCMinutes();
|
|
30927
|
+
return ret;
|
|
30928
|
+
},
|
|
30929
|
+
__wbg_getUTCMonth_773ed3c34515d086: function(arg0) {
|
|
30930
|
+
const ret = arg0.getUTCMonth();
|
|
30931
|
+
return ret;
|
|
30932
|
+
},
|
|
30933
|
+
__wbg_getUTCSeconds_92d08d3589a8958a: function(arg0) {
|
|
30934
|
+
const ret = arg0.getUTCSeconds();
|
|
30935
|
+
return ret;
|
|
30936
|
+
},
|
|
30733
30937
|
__wbg_get_507a50627bffa49b: function(arg0, arg1) {
|
|
30734
30938
|
const ret = arg0[arg1 >>> 0];
|
|
30735
30939
|
return ret;
|
|
@@ -30890,6 +31094,10 @@ function __wbg_get_imports() {
|
|
|
30890
31094
|
const ret = new Error(getStringFromWasm0(arg0, arg1));
|
|
30891
31095
|
return ret;
|
|
30892
31096
|
},
|
|
31097
|
+
__wbg_new_cc984128914cfc6f: function(arg0) {
|
|
31098
|
+
const ret = new Date(arg0);
|
|
31099
|
+
return ret;
|
|
31100
|
+
},
|
|
30893
31101
|
__wbg_new_cd45aabdf6073e84: function(arg0) {
|
|
30894
31102
|
const ret = new Uint8Array(arg0);
|
|
30895
31103
|
return ret;
|
|
@@ -31222,6 +31430,9 @@ const ErrorEllipseFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
|
31222
31430
|
const ErrorEllipse2Finalization = (typeof FinalizationRegistry === 'undefined')
|
|
31223
31431
|
? { register: () => {}, unregister: () => {} }
|
|
31224
31432
|
: new FinalizationRegistry(ptr => wasm.__wbg_errorellipse2_free(ptr, 1));
|
|
31433
|
+
const ExactCacheSingleFlightWaitFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31434
|
+
? { register: () => {}, unregister: () => {} }
|
|
31435
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_exactcachesingleflightwait_free(ptr, 1));
|
|
31225
31436
|
const ExactSp3ParseResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31226
31437
|
? { register: () => {}, unregister: () => {} }
|
|
31227
31438
|
: new FinalizationRegistry(ptr => wasm.__wbg_exactsp3parseresult_free(ptr, 1));
|
|
@@ -31381,6 +31592,9 @@ const NmeaAccumulatorFinalization = (typeof FinalizationRegistry === 'undefined'
|
|
|
31381
31592
|
const NmeaParseResultFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31382
31593
|
? { register: () => {}, unregister: () => {} }
|
|
31383
31594
|
: new FinalizationRegistry(ptr => wasm.__wbg_nmeaparseresult_free(ptr, 1));
|
|
31595
|
+
const NominalIssueFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31596
|
+
? { register: () => {}, unregister: () => {} }
|
|
31597
|
+
: new FinalizationRegistry(ptr => wasm.__wbg_nominalissue_free(ptr, 1));
|
|
31384
31598
|
const NtripClientMachineFinalization = (typeof FinalizationRegistry === 'undefined')
|
|
31385
31599
|
? { register: () => {}, unregister: () => {} }
|
|
31386
31600
|
: new FinalizationRegistry(ptr => wasm.__wbg_ntripclientmachine_free(ptr, 1));
|
package/pkg/sidereon_bg.wasm
CHANGED
|
Binary file
|