@glandais/vcyclist-engine 6.7.0 → 6.8.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/fit-kotlin-sdk.js +3734 -3734
- package/index.d.ts +17 -0
- package/kotlin-kotlin-stdlib.js +7 -7
- package/kotlinx-coroutines-core.js +3 -3
- package/package.json +1 -1
- package/vcyclist-elevation.js +616 -598
- package/vcyclist-elevation.js.map +1 -1
- package/vcyclist-engine.js +2011 -1780
- package/vcyclist-engine.js.map +1 -1
- package/vcyclist-fit.js +187 -187
- package/vcyclist-gpx.js +1147 -1142
- package/vcyclist-gpx.js.map +1 -1
- package/xmlutil-core.js +2373 -2373
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
|
*
|
|
@@ -373,6 +386,10 @@ export interface ElevationCorrectionsDto {
|
|
|
373
386
|
readonly tunnels: ElevationCorrectionStatus;
|
|
374
387
|
readonly tunnelsApplied: number;
|
|
375
388
|
readonly tunnelsDropped: number;
|
|
389
|
+
/**
|
|
390
|
+
* Tunnels detected but left as read: the terrain around them is not a measured model.
|
|
391
|
+
*/
|
|
392
|
+
readonly tunnelsOutOfScope: number;
|
|
376
393
|
readonly warnings: string[];
|
|
377
394
|
/**
|
|
378
395
|
* 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, [MutableIterable, KtList, Collection]);
|
|
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, MutableIterable, Collection]);
|
|
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, [MutableIterable, KtList, Collection, RandomAccess]);
|
|
185
185
|
initMetadataForClass(HashMap, 'HashMap', HashMap_init_$Create$, AbstractMutableMap, [KtMap]);
|
|
186
|
-
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [
|
|
186
|
+
initMetadataForClass(HashMapKeys, 'HashMapKeys', VOID, AbstractMutableSet, [KtSet, MutableIterable, Collection]);
|
|
187
187
|
initMetadataForClass(HashMapValues, 'HashMapValues', VOID, AbstractMutableCollection, [Collection, MutableIterable]);
|
|
188
|
-
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [
|
|
188
|
+
initMetadataForClass(HashMapEntrySetBase, 'HashMapEntrySetBase', VOID, AbstractMutableSet, [KtSet, MutableIterable, Collection]);
|
|
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, MutableIterable, Collection]);
|
|
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, MutableIterable, Collection]);
|
|
240
240
|
initMetadataForInterface(Continuation, 'Continuation');
|
|
241
241
|
initMetadataForClass(InterceptedCoroutine, 'InterceptedCoroutine', VOID, VOID, [Continuation]);
|
|
242
242
|
initMetadataForClass(CoroutineImpl, 'CoroutineImpl', VOID, InterceptedCoroutine, [Continuation]);
|
|
@@ -106,9 +106,9 @@
|
|
|
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
|
-
var KtList = kotlin_kotlin.$_$.v2;
|
|
111
109
|
var MutableIterable = kotlin_kotlin.$_$.x2;
|
|
110
|
+
var KtList = kotlin_kotlin.$_$.v2;
|
|
111
|
+
var Collection = kotlin_kotlin.$_$.u2;
|
|
112
112
|
var coerceIn = kotlin_kotlin.$_$.a9;
|
|
113
113
|
//endregion
|
|
114
114
|
//region block: pre-declaration
|
|
@@ -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, [MutableIterable, KtList, Collection]);
|
|
192
192
|
initMetadataForClass(ScheduledMessageQueue, 'ScheduledMessageQueue', VOID, MessageQueue);
|
|
193
193
|
initMetadataForClass(WindowMessageQueue, 'WindowMessageQueue', VOID, MessageQueue);
|
|
194
194
|
initMetadataForClass(UndispatchedCoroutine, 'UndispatchedCoroutine', VOID, ScopeCoroutine, VOID, [0]);
|