@glandais/vcyclist-engine 6.7.0 → 6.9.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/README.md +3 -3
- package/fit-kotlin-sdk.js +3736 -3736
- package/index.d.ts +20 -2
- package/kotlin-kotlin-stdlib.js +7 -7
- package/kotlinx-coroutines-core.js +2 -2
- package/package.json +1 -1
- package/vcyclist-elevation.js +617 -598
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +2019 -1788
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +197 -197
- package/vcyclist-gpx.js +1213 -1208
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2393 -2393
package/index.d.ts
CHANGED
|
@@ -25,6 +25,11 @@ export type ElevationGainPreset =
|
|
|
25
25
|
| 'dem'
|
|
26
26
|
| 'gps';
|
|
27
27
|
|
|
28
|
+
/** The spellings every door parses, derived from the `TunnelScope` catalogue in `commonMain`. */
|
|
29
|
+
export type TunnelScope =
|
|
30
|
+
| 'measured-terrain'
|
|
31
|
+
| 'everywhere';
|
|
32
|
+
|
|
28
33
|
/** The spellings every door parses, derived from the `ElevationSource` catalogue in `commonMain`. */
|
|
29
34
|
export type ElevationSource =
|
|
30
35
|
| 'mapterhorn'
|
|
@@ -231,6 +236,14 @@ export interface EnhanceOptionsDto {
|
|
|
231
236
|
* real climb — turn it off there. Defaults to `true`.
|
|
232
237
|
*/
|
|
233
238
|
readonly tunnelsEnabled?: boolean | null;
|
|
239
|
+
/**
|
|
240
|
+
* Where the tunnel correction may flatten what it detects: `"measured-terrain"` (the default —
|
|
241
|
+
* IGN LiDAR HD, and Mapterhorn in France, where the detector's precision was measured) or
|
|
242
|
+
* `"everywhere"` (also on unmeasured terrain, where a false tunnel flattens a real climb). A
|
|
243
|
+
* tunnel left out is counted in `pathElevationCorrections`' `tunnelsOutOfScope` and located in
|
|
244
|
+
* its warnings.
|
|
245
|
+
*/
|
|
246
|
+
readonly tunnelScope?: TunnelScope | null;
|
|
234
247
|
/**
|
|
235
248
|
* Web-Mercator zoom for the DEM lookup, `0..15`, used only when `fixElevation` is on.
|
|
236
249
|
*
|
|
@@ -239,8 +252,9 @@ export interface EnhanceOptionsDto {
|
|
|
239
252
|
*/
|
|
240
253
|
readonly demZoom?: number | null;
|
|
241
254
|
/**
|
|
242
|
-
* The DEM `fixElevation` reads, by `ElevationSource` id: `"
|
|
243
|
-
*
|
|
255
|
+
* The DEM `fixElevation` reads, by `ElevationSource` id: `"ign-lidar-hd"` (the default: IGN in
|
|
256
|
+
* France, Mapterhorn wherever IGN has no data or cannot be read) or `"mapterhorn"` (worldwide,
|
|
257
|
+
* ~30 times fewer bytes on a cold cache, no bridge deck). Read
|
|
244
258
|
* where the provider is built, like `demZoom`; `demZoom` then defaults to the source's own.
|
|
245
259
|
*/
|
|
246
260
|
readonly demSource?: ElevationSource | null;
|
|
@@ -373,6 +387,10 @@ export interface ElevationCorrectionsDto {
|
|
|
373
387
|
readonly tunnels: ElevationCorrectionStatus;
|
|
374
388
|
readonly tunnelsApplied: number;
|
|
375
389
|
readonly tunnelsDropped: number;
|
|
390
|
+
/**
|
|
391
|
+
* Tunnels detected but left as read: the terrain around them is not a measured model.
|
|
392
|
+
*/
|
|
393
|
+
readonly tunnelsOutOfScope: number;
|
|
376
394
|
readonly warnings: string[];
|
|
377
395
|
/**
|
|
378
396
|
* Where the terrain was read from, in km per origin; `null` without a DEM correction.
|
package/kotlin-kotlin-stdlib.js
CHANGED
|
@@ -175,23 +175,23 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
175
175
|
initMetadataForClass(AbstractMutableCollection, 'AbstractMutableCollection', VOID, AbstractCollection, [Collection, MutableIterable]);
|
|
176
176
|
initMetadataForClass(IteratorImpl, 'IteratorImpl');
|
|
177
177
|
initMetadataForClass(ListIteratorImpl, 'ListIteratorImpl', VOID, IteratorImpl);
|
|
178
|
-
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [
|
|
178
|
+
initMetadataForClass(AbstractMutableList, 'AbstractMutableList', VOID, AbstractMutableCollection, [KtList, Collection, MutableIterable]);
|
|
179
179
|
initMetadataForClass(AbstractMap, 'AbstractMap', VOID, VOID, [KtMap]);
|
|
180
180
|
initMetadataForClass(AbstractMutableMap, 'AbstractMutableMap', VOID, AbstractMap, [KtMap]);
|
|
181
|
-
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [
|
|
181
|
+
initMetadataForClass(AbstractMutableSet, 'AbstractMutableSet', VOID, AbstractMutableCollection, [KtSet, Collection, MutableIterable]);
|
|
182
182
|
initMetadataForCompanion(Companion_2);
|
|
183
183
|
initMetadataForInterface(RandomAccess, 'RandomAccess');
|
|
184
|
-
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [
|
|
184
|
+
initMetadataForClass(ArrayList, 'ArrayList', ArrayList_init_$Create$, AbstractMutableList, [KtList, Collection, MutableIterable, RandomAccess]);
|
|
185
185
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [KtMap]);
|
|
186
|
-
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [
|
|
186
|
+
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtSet, Collection, MutableIterable]);
|
|
187
187
|
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable]);
|
|
188
|
-
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [
|
|
188
|
+
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtSet, Collection, MutableIterable]);
|
|
189
189
|
initMetadataForClass(HashMapEntrySet, 'HashMapEntrySet', VOID, HashMapEntrySetBase);
|
|
190
190
|
initMetadataForClass(HashMapKeysDefault$iterator$1);
|
|
191
191
|
initMetadataForClass(HashMapKeysDefault, 'HashMapKeysDefault', VOID, AbstractMutableSet);
|
|
192
192
|
initMetadataForClass(HashMapValuesDefault$iterator$1);
|
|
193
193
|
initMetadataForClass(HashMapValuesDefault, 'HashMapValuesDefault', VOID, AbstractMutableCollection);
|
|
194
|
-
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [
|
|
194
|
+
initMetadataForClass(HashSet, 'HashSet', HashSet_init_$Create$, AbstractMutableSet, [KtSet, Collection, MutableIterable]);
|
|
195
195
|
initMetadataForCompanion(Companion_3);
|
|
196
196
|
initMetadataForClass(Itr, 'Itr');
|
|
197
197
|
initMetadataForClass(KeysItr, 'KeysItr', VOID, Itr);
|
|
@@ -236,7 +236,7 @@ if (typeof String.prototype.startsWith === 'undefined') {
|
|
|
236
236
|
initMetadataForInterface(InternalMap, 'InternalMap');
|
|
237
237
|
initMetadataForClass(InternalHashMap, 'InternalHashMap', InternalHashMap_init_$Create$, VOID, [InternalMap]);
|
|
238
238
|
initMetadataForClass(LinkedHashMap, 'LinkedHashMap', LinkedHashMap_init_$Create$, HashMap, [KtMap]);
|
|
239
|
-
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [
|
|
239
|
+
initMetadataForClass(LinkedHashSet, 'LinkedHashSet', LinkedHashSet_init_$Create$, HashSet, [KtSet, Collection, MutableIterable]);
|
|
240
240
|
initMetadataForInterface(Continuation, 'Continuation');
|
|
241
241
|
initMetadataForClass(InterceptedCoroutine, 'InterceptedCoroutine', VOID, VOID, [Continuation]);
|
|
242
242
|
initMetadataForClass(CoroutineImpl, 'CoroutineImpl', VOID, InterceptedCoroutine, [Continuation]);
|
|
@@ -106,8 +106,8 @@
|
|
|
106
106
|
var LinkedHashSet_init_$Create$ = kotlin_kotlin.$_$.v1;
|
|
107
107
|
var stackTraceToString = kotlin_kotlin.$_$.nc;
|
|
108
108
|
var removeFirstOrNull = kotlin_kotlin.$_$.u4;
|
|
109
|
-
var Collection = kotlin_kotlin.$_$.u2;
|
|
110
109
|
var KtList = kotlin_kotlin.$_$.v2;
|
|
110
|
+
var Collection = kotlin_kotlin.$_$.u2;
|
|
111
111
|
var MutableIterable = kotlin_kotlin.$_$.x2;
|
|
112
112
|
var coerceIn = kotlin_kotlin.$_$.a9;
|
|
113
113
|
//endregion
|
|
@@ -188,7 +188,7 @@
|
|
|
188
188
|
initMetadataForClass(SemaphoreSegment, 'SemaphoreSegment', VOID, Segment);
|
|
189
189
|
initMetadataForClass(SetTimeoutBasedDispatcher, 'SetTimeoutBasedDispatcher', VOID, CoroutineDispatcher, [Delay], [1]);
|
|
190
190
|
initMetadataForObject(NodeDispatcher, 'NodeDispatcher', VOID, SetTimeoutBasedDispatcher, VOID, [1]);
|
|
191
|
-
initMetadataForClass(MessageQueue, 'MessageQueue', VOID, VOID, [
|
|
191
|
+
initMetadataForClass(MessageQueue, 'MessageQueue', VOID, VOID, [KtList, Collection, MutableIterable]);
|
|
192
192
|
initMetadataForClass(ScheduledMessageQueue, 'ScheduledMessageQueue', VOID, MessageQueue);
|
|
193
193
|
initMetadataForClass(WindowMessageQueue, 'WindowMessageQueue', VOID, MessageQueue);
|
|
194
194
|
initMetadataForClass(UndispatchedCoroutine, 'UndispatchedCoroutine', VOID, ScopeCoroutine, VOID, [0]);
|