@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/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: `"mapterhorn"` (the default) or
243
- * `"ign-lidar-hd"` (France only, falling back to Mapterhorn where IGN has no data). Read
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.
@@ -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, [Collection, KtList, MutableIterable]);
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, [Collection, KtSet, MutableIterable]);
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, [Collection, KtList, MutableIterable, RandomAccess]);
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, [Collection, KtSet, MutableIterable]);
186
+ initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtSet, Collection, MutableIterable]);
187
187
  initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable]);
188
- initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [Collection, KtSet, MutableIterable]);
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, [Collection, KtSet, MutableIterable]);
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, [Collection, KtSet, MutableIterable]);
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, [Collection, KtList, MutableIterable]);
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]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@glandais/vcyclist-engine",
3
- "version": "6.7.0",
3
+ "version": "6.9.0",
4
4
  "main": "index.cjs",
5
5
  "types": "index.d.ts",
6
6
  "devDependencies": {