@mapcomponents/react-maplibre 0.1.11 → 0.1.15
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/.github/workflows/storybook.yml +10 -5
- package/coverage/clover.xml +894 -747
- package/coverage/coverage-final.json +22 -17
- package/coverage/lcov-report/block-navigation.js +8 -0
- package/coverage/lcov-report/index.html +188 -122
- package/coverage/lcov-report/sorter.js +26 -0
- package/coverage/lcov-report/{components → src/components}/MapLibreMap/MapLibreMap.js.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MapLibreMap/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlCreatePdfButton/MlCreatePdfButton.js.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlCreatePdfButton/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlFeatureEditor/MlFeatureEditor.js.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlFeatureEditor/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlFillExtrusionLayer/MlFillExtrusionLayer.js.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlFillExtrusionLayer/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlFollowGps/MlFollowGps.js.html +84 -69
- package/coverage/lcov-report/{components → src/components}/MlFollowGps/index.html +27 -21
- package/coverage/lcov-report/{components → src/components}/MlGPXViewer/MlGPXViewer.js.html +73 -61
- package/coverage/lcov-report/{components → src/components}/MlGPXViewer/gpxConverter.js.html +56 -71
- package/coverage/lcov-report/{components → src/components}/MlGPXViewer/index.html +32 -26
- package/coverage/lcov-report/{components → src/components}/MlGeoJsonLayer/MlGeoJsonLayer.js.html +162 -48
- package/coverage/lcov-report/{components → src/components}/MlGeoJsonLayer/index.html +35 -29
- package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.js.html +311 -0
- package/coverage/lcov-report/{components → src/components}/MlImageMarkerLayer/index.html +35 -29
- package/coverage/lcov-report/{components/MlImageMarkerLayer/MlImageMarkerLayer.js.html → src/components/MlLayer/MlLayer.js.html} +123 -126
- package/coverage/lcov-report/src/components/MlLayer/index.html +117 -0
- package/coverage/lcov-report/{components → src/components}/MlLayerMagnify/MlLayerMagnify.js.html +48 -42
- package/coverage/lcov-report/{components → src/components}/MlLayerMagnify/index.html +31 -25
- package/coverage/lcov-report/{components → src/components}/MlLayerSwipe/MlLayerSwipe.js.html +45 -42
- package/coverage/lcov-report/{components → src/components}/MlLayerSwipe/index.html +31 -25
- package/coverage/lcov-report/src/components/MlLayerSwitcher/MlLayerSwitcher.js.html +755 -0
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/LayerBox.js.html +380 -0
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/index.html +117 -0
- package/coverage/lcov-report/src/components/MlLayerSwitcher/index.html +117 -0
- package/coverage/lcov-report/{components → src/components}/MlMarker/MlMarker.js.html +18 -12
- package/coverage/lcov-report/{components → src/components}/MlMarker/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlNavigationCompass/MlNavigationCompass.js.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlNavigationCompass/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlNavigationTools/MlNavigationTools.js.html +57 -42
- package/coverage/lcov-report/{components → src/components}/MlNavigationTools/index.html +25 -19
- package/coverage/lcov-report/{components → src/components}/MlOsmLayer/MlOsmLayer.js.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlOsmLayer/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlScaleReference/MlScaleReference.js.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlScaleReference/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlShareMapState/MlShareMapState.js.html +224 -26
- package/coverage/lcov-report/{components → src/components}/MlShareMapState/index.html +25 -19
- package/coverage/lcov-report/{components → src/components}/MlSpatialElevationProfile/MlSpatialElevationProfile.js.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlSpatialElevationProfile/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlThreeJsLayer/MlThreeJsLayer.js.html +37 -55
- package/coverage/lcov-report/{components → src/components}/MlThreeJsLayer/index.html +31 -25
- package/coverage/lcov-report/{components → src/components}/MlUseMapDebugger/MlUseMapDebugger.js.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlUseMapDebugger/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlVectorTileLayer/MlVectorTileLayer.js.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlVectorTileLayer/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlWmsFeatureInfoPopup/index.html +17 -11
- package/coverage/lcov-report/{components → src/components}/MlWmsLayer/MlWmsLayer.js.html +20 -14
- package/coverage/lcov-report/{components → src/components}/MlWmsLayer/index.html +21 -15
- package/coverage/lcov-report/{components → src/components}/MlWmsLoader/MlWmsLoader.js.html +38 -20
- package/coverage/lcov-report/{components → src/components}/MlWmsLoader/index.html +23 -17
- package/coverage/lcov-report/src/hooks/index.html +147 -0
- package/coverage/lcov-report/{components/MlLayer/MlLayer.js.html → src/hooks/useMap.js.html} +86 -119
- package/coverage/lcov-report/{hooks → src/hooks}/useMapState.js.html +98 -92
- package/coverage/lcov-report/{hooks → src/hooks}/useWms.js.html +25 -19
- package/coverage/lcov-report/src/i18n.js.html +167 -0
- package/coverage/lcov-report/src/index.html +117 -0
- package/coverage/lcov-report/src/translations/english.js.html +95 -0
- package/coverage/lcov-report/src/translations/german.js.html +95 -0
- package/coverage/lcov-report/src/translations/index.html +132 -0
- package/coverage/lcov.info +1620 -1306
- package/dist/b556faa3bc6829d2.png +0 -0
- package/dist/index.esm.js +976 -688
- package/dist/index.esm.js.map +1 -1
- package/package.json +3 -1
- package/public/assets/dop.png +0 -0
- package/public/assets/historic.png +0 -0
- package/public/assets/osm.png +0 -0
- package/public/thumbnails/MlFollowGps.png +0 -0
- package/public/thumbnails/MlThreeJsLayer.png +0 -0
- package/rollup.config.js +7 -1
- package/src/components/MapLibreMap/lib/MapLibreGlWrapper.js +53 -67
- package/src/components/MlCreatePdfButton/MlCreatePdfButton.meta.json +1 -1
- package/src/components/MlFeatureEditor/MlFeatureEditor.meta.json +2 -2
- package/src/components/MlFollowGps/MlFollowGps.js +49 -46
- package/src/components/MlFollowGps/MlFollowGps.meta.json +2 -2
- package/src/components/MlFollowGps/assets/marker.png +0 -0
- package/src/components/MlGPXViewer/MlGPXViewer.js +45 -43
- package/src/components/MlGPXViewer/gpxConverter.js +22 -29
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.js +45 -9
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.meta.json +1 -1
- package/src/components/MlImageMarkerLayer/MlImageMarkerLayer.js +21 -57
- package/src/components/MlImageMarkerLayer/MlImageMarkerLayer.test.js +6 -7
- package/src/components/MlLayer/MlLayer.js +28 -6
- package/src/components/MlLayer/MlLayer.test.js +12 -10
- package/src/components/MlLayerMagnify/MlLayerMagnify.js +3 -3
- package/src/components/MlLayerSwipe/MlLayerSwipe.js +4 -5
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.css +17 -0
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.doc.de.md +3 -0
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.js +223 -0
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.meta_.json +15 -0
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.stories.js +106 -0
- package/src/components/MlLayerSwitcher/assets/sample_1.json +26 -0
- package/src/components/MlLayerSwitcher/assets/sample_2.json +22 -0
- package/src/components/MlLayerSwitcher/components/LayerBox.js +98 -0
- package/src/components/MlMarker/MlMarker.js +1 -1
- package/src/components/MlNavigationTools/MlNavigationTools.js +29 -26
- package/src/components/MlScaleReference/MlScaleReference.meta.json +1 -1
- package/src/components/MlScaleReference/MlScaleReference.stories.js +25 -21
- package/src/components/MlShareMapState/MlShareMapState.js +73 -9
- package/src/components/MlShareMapState/MlShareMapState.stories.js +24 -1
- package/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.stories.js +12 -6
- package/src/components/MlThreeJsLayer/MlThreeJsLayer.js +8 -15
- package/src/components/MlVectorTileLayer/MlVectorTileLayer.meta.json +3 -3
- package/src/components/MlWmsLayer/MlWmsLayer.js +1 -1
- package/src/components/MlWmsLoader/MlWmsLoader.js +8 -4
- package/src/components/MlWmsLoader/MlWmsLoader.meta.json +1 -1
- package/src/components/MlWmsLoader/MlWmsLoader.stories.js +5 -4
- package/src/decorators/EmptyMapContextDecorator.js +11 -6
- package/src/decorators/MapContext3DDecorator.js +25 -20
- package/src/decorators/MapContextDashboardDecorator.js +7 -2
- package/src/decorators/MapContextDecorator.js +7 -3
- package/src/decorators/MapContextKlokantechBasicDecorator.js +8 -4
- package/src/decorators/MultiMapContextDecorator.js +2 -1
- package/src/hooks/useMap.js +36 -62
- package/src/hooks/useMapState.js +3 -3
- package/src/hooks/useWms.js +7 -6
- package/src/i18n.js +28 -0
- package/src/index.js +3 -0
- package/src/translations/english.js +4 -0
- package/src/translations/german.js +4 -0
- package/src/ui_components/ImageLoader.js +73 -0
- package/src/ui_components/Sidebar.js +76 -22
- package/src/ui_components/TopToolbar.js +18 -18
- package/coverage/lcov-report/components/MlLayer/index.html +0 -111
- package/coverage/lcov-report/hooks/index.html +0 -141
- package/coverage/lcov-report/hooks/useMap.js.html +0 -377
package/coverage/lcov-report/{components → src/components}/MlLayerMagnify/MlLayerMagnify.js.html
RENAMED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/MlLayerMagnify/MlLayerMagnify.js</title>
|
|
6
|
+
<title>Code coverage report for src/components/MlLayerMagnify/MlLayerMagnify.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/components/MlLayerMagnify</a> MlLayerMagnify.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">72.6% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>53/73</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">61.36% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>27/44</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">74.28% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>52/70</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line medium'></div>
|
|
59
65
|
<pre><table class="coverage">
|
|
@@ -278,31 +284,31 @@
|
|
|
278
284
|
<span class="cline-any cline-neutral"> </span>
|
|
279
285
|
<span class="cline-any cline-neutral"> </span>
|
|
280
286
|
<span class="cline-any cline-yes">1x</span>
|
|
281
|
-
<span class="cline-any cline-yes">
|
|
282
|
-
<span class="cline-any cline-yes">
|
|
283
|
-
<span class="cline-any cline-yes">
|
|
284
|
-
<span class="cline-any cline-neutral"> </span>
|
|
285
|
-
<span class="cline-any cline-yes">2x</span>
|
|
286
|
-
<span class="cline-any cline-yes">2x</span>
|
|
287
|
-
<span class="cline-any cline-yes">2x</span>
|
|
288
|
-
<span class="cline-any cline-yes">2x</span>
|
|
287
|
+
<span class="cline-any cline-yes">3x</span>
|
|
288
|
+
<span class="cline-any cline-yes">3x</span>
|
|
289
|
+
<span class="cline-any cline-yes">3x</span>
|
|
289
290
|
<span class="cline-any cline-neutral"> </span>
|
|
290
|
-
<span class="cline-any cline-yes">
|
|
291
|
+
<span class="cline-any cline-yes">3x</span>
|
|
292
|
+
<span class="cline-any cline-yes">3x</span>
|
|
293
|
+
<span class="cline-any cline-yes">3x</span>
|
|
294
|
+
<span class="cline-any cline-yes">3x</span>
|
|
291
295
|
<span class="cline-any cline-neutral"> </span>
|
|
292
|
-
<span class="cline-any cline-yes">
|
|
296
|
+
<span class="cline-any cline-yes">3x</span>
|
|
293
297
|
<span class="cline-any cline-neutral"> </span>
|
|
294
|
-
<span class="cline-any cline-yes">2x</span>
|
|
295
298
|
<span class="cline-any cline-yes">3x</span>
|
|
296
|
-
<span class="cline-any cline-no"> </span>
|
|
297
299
|
<span class="cline-any cline-neutral"> </span>
|
|
298
300
|
<span class="cline-any cline-yes">3x</span>
|
|
301
|
+
<span class="cline-any cline-yes">3x</span>
|
|
299
302
|
<span class="cline-any cline-no"> </span>
|
|
300
303
|
<span class="cline-any cline-neutral"> </span>
|
|
301
|
-
<span class="cline-any cline-neutral"> </span>
|
|
302
304
|
<span class="cline-any cline-yes">3x</span>
|
|
305
|
+
<span class="cline-any cline-yes">1x</span>
|
|
303
306
|
<span class="cline-any cline-neutral"> </span>
|
|
304
307
|
<span class="cline-any cline-neutral"> </span>
|
|
305
308
|
<span class="cline-any cline-yes">2x</span>
|
|
309
|
+
<span class="cline-any cline-neutral"> </span>
|
|
310
|
+
<span class="cline-any cline-neutral"> </span>
|
|
311
|
+
<span class="cline-any cline-yes">3x</span>
|
|
306
312
|
<span class="cline-any cline-no"> </span>
|
|
307
313
|
<span class="cline-any cline-neutral"> </span>
|
|
308
314
|
<span class="cline-any cline-no"> </span>
|
|
@@ -311,7 +317,7 @@
|
|
|
311
317
|
<span class="cline-any cline-neutral"> </span>
|
|
312
318
|
<span class="cline-any cline-neutral"> </span>
|
|
313
319
|
<span class="cline-any cline-neutral"> </span>
|
|
314
|
-
<span class="cline-any cline-yes">
|
|
320
|
+
<span class="cline-any cline-yes">3x</span>
|
|
315
321
|
<span class="cline-any cline-yes">1x</span>
|
|
316
322
|
<span class="cline-any cline-yes">1x</span>
|
|
317
323
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -323,7 +329,7 @@
|
|
|
323
329
|
<span class="cline-any cline-neutral"> </span>
|
|
324
330
|
<span class="cline-any cline-neutral"> </span>
|
|
325
331
|
<span class="cline-any cline-neutral"> </span>
|
|
326
|
-
<span class="cline-any cline-yes">
|
|
332
|
+
<span class="cline-any cline-yes">3x</span>
|
|
327
333
|
<span class="cline-any cline-neutral"> </span>
|
|
328
334
|
<span class="cline-any cline-yes">1x</span>
|
|
329
335
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -361,7 +367,7 @@
|
|
|
361
367
|
<span class="cline-any cline-neutral"> </span>
|
|
362
368
|
<span class="cline-any cline-neutral"> </span>
|
|
363
369
|
<span class="cline-any cline-neutral"> </span>
|
|
364
|
-
<span class="cline-any cline-yes">
|
|
370
|
+
<span class="cline-any cline-yes">3x</span>
|
|
365
371
|
<span class="cline-any cline-yes">2x</span>
|
|
366
372
|
<span class="cline-any cline-neutral"> </span>
|
|
367
373
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -398,7 +404,7 @@
|
|
|
398
404
|
<span class="cline-any cline-neutral"> </span>
|
|
399
405
|
<span class="cline-any cline-neutral"> </span>
|
|
400
406
|
<span class="cline-any cline-neutral"> </span>
|
|
401
|
-
<span class="cline-any cline-yes">
|
|
407
|
+
<span class="cline-any cline-yes">3x</span>
|
|
402
408
|
<span class="cline-any cline-no"> </span>
|
|
403
409
|
<span class="cline-any cline-no"> </span>
|
|
404
410
|
<span class="cline-any cline-no"> </span>
|
|
@@ -408,22 +414,22 @@
|
|
|
408
414
|
<span class="cline-any cline-neutral"> </span>
|
|
409
415
|
<span class="cline-any cline-neutral"> </span>
|
|
410
416
|
<span class="cline-any cline-neutral"> </span>
|
|
411
|
-
<span class="cline-any cline-yes">
|
|
417
|
+
<span class="cline-any cline-yes">3x</span>
|
|
412
418
|
<span class="cline-any cline-no"> </span>
|
|
413
419
|
<span class="cline-any cline-no"> </span>
|
|
414
420
|
<span class="cline-any cline-neutral"> </span>
|
|
415
421
|
<span class="cline-any cline-neutral"> </span>
|
|
416
|
-
<span class="cline-any cline-yes">
|
|
422
|
+
<span class="cline-any cline-yes">3x</span>
|
|
417
423
|
<span class="cline-any cline-no"> </span>
|
|
418
424
|
<span class="cline-any cline-no"> </span>
|
|
419
425
|
<span class="cline-any cline-neutral"> </span>
|
|
420
426
|
<span class="cline-any cline-neutral"> </span>
|
|
421
|
-
<span class="cline-any cline-yes">
|
|
427
|
+
<span class="cline-any cline-yes">3x</span>
|
|
422
428
|
<span class="cline-any cline-no"> </span>
|
|
423
429
|
<span class="cline-any cline-no"> </span>
|
|
424
430
|
<span class="cline-any cline-neutral"> </span>
|
|
425
431
|
<span class="cline-any cline-neutral"> </span>
|
|
426
|
-
<span class="cline-any cline-yes">
|
|
432
|
+
<span class="cline-any cline-yes">3x</span>
|
|
427
433
|
<span class="cline-any cline-neutral"> </span>
|
|
428
434
|
<span class="cline-any cline-neutral"> </span>
|
|
429
435
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -502,8 +508,8 @@ const MlLayerMagnify = (props) => {
|
|
|
502
508
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (!props.map1Id || !props.map2Id) {
|
|
503
509
|
<span class="cstat-no" title="statement not covered" > return false;</span>
|
|
504
510
|
}
|
|
505
|
-
|
|
506
|
-
|
|
511
|
+
if (!mapContext.getMap(props.map1Id) || !mapContext.getMap(props.map2Id)) {
|
|
512
|
+
return false;
|
|
507
513
|
}
|
|
508
514
|
|
|
509
515
|
return true;
|
|
@@ -573,8 +579,8 @@ const MlLayerMagnify = (props) => {
|
|
|
573
579
|
|
|
574
580
|
syncMoveInitializedRef.current = true;
|
|
575
581
|
syncCleanupFunctionRef.current = syncMove(
|
|
576
|
-
mapContext.getMap(props.map1Id),
|
|
577
|
-
mapContext.getMap(props.map2Id)
|
|
582
|
+
mapContext.getMap(props.map1Id).map,
|
|
583
|
+
mapContext.getMap(props.map2Id).map
|
|
578
584
|
);
|
|
579
585
|
|
|
580
586
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (
|
|
@@ -684,18 +690,18 @@ export default MlLayerMagnify;
|
|
|
684
690
|
</div><!-- /wrapper -->
|
|
685
691
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
686
692
|
Code coverage generated by
|
|
687
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
688
|
-
at
|
|
693
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
694
|
+
at Tue Dec 21 2021 11:51:22 GMT+0000 (Coordinated Universal Time)
|
|
689
695
|
</div>
|
|
690
696
|
</div>
|
|
691
|
-
<script src="
|
|
697
|
+
<script src="../../../prettify.js"></script>
|
|
692
698
|
<script>
|
|
693
699
|
window.onload = function () {
|
|
694
700
|
prettyPrint();
|
|
695
701
|
};
|
|
696
702
|
</script>
|
|
697
|
-
<script src="
|
|
698
|
-
<script src="
|
|
703
|
+
<script src="../../../sorter.js"></script>
|
|
704
|
+
<script src="../../../block-navigation.js"></script>
|
|
699
705
|
</body>
|
|
700
706
|
</html>
|
|
701
707
|
|
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/MlLayerMagnify</title>
|
|
6
|
+
<title>Code coverage report for src/components/MlLayerMagnify</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> src/components/MlLayerMagnify</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">72.6% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>53/73</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">61.36% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>27/44</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">74.28% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>52/70</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line medium'></div>
|
|
59
65
|
<div class="pad1">
|
|
@@ -74,17 +80,17 @@
|
|
|
74
80
|
</thead>
|
|
75
81
|
<tbody><tr>
|
|
76
82
|
<td class="file medium" data-value="MlLayerMagnify.js"><a href="MlLayerMagnify.js.html">MlLayerMagnify.js</a></td>
|
|
77
|
-
<td data-value="
|
|
78
|
-
<div class="chart"><div class="cover-fill" style="width:
|
|
83
|
+
<td data-value="72.6" class="pic medium">
|
|
84
|
+
<div class="chart"><div class="cover-fill" style="width: 72%"></div><div class="cover-empty" style="width: 28%"></div></div>
|
|
79
85
|
</td>
|
|
80
|
-
<td data-value="
|
|
81
|
-
<td data-value="73" class="abs medium">
|
|
82
|
-
<td data-value="
|
|
83
|
-
<td data-value="44" class="abs medium">
|
|
86
|
+
<td data-value="72.6" class="pct medium">72.6%</td>
|
|
87
|
+
<td data-value="73" class="abs medium">53/73</td>
|
|
88
|
+
<td data-value="61.36" class="pct medium">61.36%</td>
|
|
89
|
+
<td data-value="44" class="abs medium">27/44</td>
|
|
84
90
|
<td data-value="54.54" class="pct medium">54.54%</td>
|
|
85
91
|
<td data-value="11" class="abs medium">6/11</td>
|
|
86
|
-
<td data-value="
|
|
87
|
-
<td data-value="70" class="abs medium">
|
|
92
|
+
<td data-value="74.28" class="pct medium">74.28%</td>
|
|
93
|
+
<td data-value="70" class="abs medium">52/70</td>
|
|
88
94
|
</tr>
|
|
89
95
|
|
|
90
96
|
</tbody>
|
|
@@ -94,18 +100,18 @@
|
|
|
94
100
|
</div><!-- /wrapper -->
|
|
95
101
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
96
102
|
Code coverage generated by
|
|
97
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
98
|
-
at
|
|
103
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
104
|
+
at Tue Dec 21 2021 11:51:22 GMT+0000 (Coordinated Universal Time)
|
|
99
105
|
</div>
|
|
100
106
|
</div>
|
|
101
|
-
<script src="
|
|
107
|
+
<script src="../../../prettify.js"></script>
|
|
102
108
|
<script>
|
|
103
109
|
window.onload = function () {
|
|
104
110
|
prettyPrint();
|
|
105
111
|
};
|
|
106
112
|
</script>
|
|
107
|
-
<script src="
|
|
108
|
-
<script src="
|
|
113
|
+
<script src="../../../sorter.js"></script>
|
|
114
|
+
<script src="../../../block-navigation.js"></script>
|
|
109
115
|
</body>
|
|
110
116
|
</html>
|
|
111
117
|
|
package/coverage/lcov-report/{components → src/components}/MlLayerSwipe/MlLayerSwipe.js.html
RENAMED
|
@@ -3,15 +3,15 @@
|
|
|
3
3
|
<html lang="en">
|
|
4
4
|
|
|
5
5
|
<head>
|
|
6
|
-
<title>Code coverage report for components/MlLayerSwipe/MlLayerSwipe.js</title>
|
|
6
|
+
<title>Code coverage report for src/components/MlLayerSwipe/MlLayerSwipe.js</title>
|
|
7
7
|
<meta charset="utf-8" />
|
|
8
|
-
<link rel="stylesheet" href="
|
|
9
|
-
<link rel="stylesheet" href="
|
|
10
|
-
<link rel="shortcut icon" type="image/x-icon" href="
|
|
8
|
+
<link rel="stylesheet" href="../../../prettify.css" />
|
|
9
|
+
<link rel="stylesheet" href="../../../base.css" />
|
|
10
|
+
<link rel="shortcut icon" type="image/x-icon" href="../../../favicon.png" />
|
|
11
11
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
12
12
|
<style type='text/css'>
|
|
13
13
|
.coverage-summary .sorter {
|
|
14
|
-
background-image: url(
|
|
14
|
+
background-image: url(../../../sort-arrow-sprite.png);
|
|
15
15
|
}
|
|
16
16
|
</style>
|
|
17
17
|
</head>
|
|
@@ -19,20 +19,20 @@
|
|
|
19
19
|
<body>
|
|
20
20
|
<div class='wrapper'>
|
|
21
21
|
<div class='pad1'>
|
|
22
|
-
<h1><a href="
|
|
22
|
+
<h1><a href="../../../index.html">All files</a> / <a href="index.html">src/components/MlLayerSwipe</a> MlLayerSwipe.js</h1>
|
|
23
23
|
<div class='clearfix'>
|
|
24
24
|
|
|
25
25
|
<div class='fl pad1y space-right2'>
|
|
26
|
-
<span class="strong">
|
|
26
|
+
<span class="strong">77.55% </span>
|
|
27
27
|
<span class="quiet">Statements</span>
|
|
28
|
-
<span class='fraction'>
|
|
28
|
+
<span class='fraction'>38/49</span>
|
|
29
29
|
</div>
|
|
30
30
|
|
|
31
31
|
|
|
32
32
|
<div class='fl pad1y space-right2'>
|
|
33
|
-
<span class="strong">
|
|
33
|
+
<span class="strong">69.23% </span>
|
|
34
34
|
<span class="quiet">Branches</span>
|
|
35
|
-
<span class='fraction'>
|
|
35
|
+
<span class='fraction'>18/26</span>
|
|
36
36
|
</div>
|
|
37
37
|
|
|
38
38
|
|
|
@@ -44,9 +44,9 @@
|
|
|
44
44
|
|
|
45
45
|
|
|
46
46
|
<div class='fl pad1y space-right2'>
|
|
47
|
-
<span class="strong">
|
|
47
|
+
<span class="strong">78.72% </span>
|
|
48
48
|
<span class="quiet">Lines</span>
|
|
49
|
-
<span class='fraction'>
|
|
49
|
+
<span class='fraction'>37/47</span>
|
|
50
50
|
</div>
|
|
51
51
|
|
|
52
52
|
|
|
@@ -54,6 +54,12 @@
|
|
|
54
54
|
<p class="quiet">
|
|
55
55
|
Press <em>n</em> or <em>j</em> to go to the next uncovered block, <em>b</em>, <em>p</em> or <em>k</em> for the previous block.
|
|
56
56
|
</p>
|
|
57
|
+
<template id="filterTemplate">
|
|
58
|
+
<div class="quiet">
|
|
59
|
+
Filter:
|
|
60
|
+
<input oninput="onInput()" type="search" id="fileSearch">
|
|
61
|
+
</div>
|
|
62
|
+
</template>
|
|
57
63
|
</div>
|
|
58
64
|
<div class='status-line medium'></div>
|
|
59
65
|
<pre><table class="coverage">
|
|
@@ -194,8 +200,7 @@
|
|
|
194
200
|
<a name='L135'></a><a href='#L135'>135</a>
|
|
195
201
|
<a name='L136'></a><a href='#L136'>136</a>
|
|
196
202
|
<a name='L137'></a><a href='#L137'>137</a>
|
|
197
|
-
<a name='L138'></a><a href='#L138'>138</a>
|
|
198
|
-
<a name='L139'></a><a href='#L139'>139</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
203
|
+
<a name='L138'></a><a href='#L138'>138</a></td><td class="line-coverage quiet"><span class="cline-any cline-neutral"> </span>
|
|
199
204
|
<span class="cline-any cline-neutral"> </span>
|
|
200
205
|
<span class="cline-any cline-neutral"> </span>
|
|
201
206
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -207,32 +212,32 @@
|
|
|
207
212
|
<span class="cline-any cline-neutral"> </span>
|
|
208
213
|
<span class="cline-any cline-neutral"> </span>
|
|
209
214
|
<span class="cline-any cline-yes">1x</span>
|
|
210
|
-
<span class="cline-any cline-yes">
|
|
211
|
-
<span class="cline-any cline-yes">
|
|
212
|
-
<span class="cline-any cline-neutral"> </span>
|
|
213
|
-
<span class="cline-any cline-yes">2x</span>
|
|
214
|
-
<span class="cline-any cline-yes">2x</span>
|
|
215
|
+
<span class="cline-any cline-yes">3x</span>
|
|
216
|
+
<span class="cline-any cline-yes">3x</span>
|
|
215
217
|
<span class="cline-any cline-neutral"> </span>
|
|
216
|
-
<span class="cline-any cline-yes">
|
|
218
|
+
<span class="cline-any cline-yes">3x</span>
|
|
219
|
+
<span class="cline-any cline-yes">3x</span>
|
|
217
220
|
<span class="cline-any cline-neutral"> </span>
|
|
218
|
-
<span class="cline-any cline-yes">2x</span>
|
|
219
221
|
<span class="cline-any cline-yes">3x</span>
|
|
220
|
-
<span class="cline-any cline-no"> </span>
|
|
221
222
|
<span class="cline-any cline-neutral"> </span>
|
|
222
223
|
<span class="cline-any cline-yes">3x</span>
|
|
224
|
+
<span class="cline-any cline-yes">3x</span>
|
|
223
225
|
<span class="cline-any cline-no"> </span>
|
|
224
226
|
<span class="cline-any cline-neutral"> </span>
|
|
225
|
-
<span class="cline-any cline-neutral"> </span>
|
|
226
227
|
<span class="cline-any cline-yes">3x</span>
|
|
228
|
+
<span class="cline-any cline-yes">1x</span>
|
|
227
229
|
<span class="cline-any cline-neutral"> </span>
|
|
228
230
|
<span class="cline-any cline-neutral"> </span>
|
|
229
231
|
<span class="cline-any cline-yes">2x</span>
|
|
232
|
+
<span class="cline-any cline-neutral"> </span>
|
|
233
|
+
<span class="cline-any cline-neutral"> </span>
|
|
234
|
+
<span class="cline-any cline-yes">3x</span>
|
|
230
235
|
<span class="cline-any cline-yes">1x</span>
|
|
231
236
|
<span class="cline-any cline-yes">1x</span>
|
|
232
237
|
<span class="cline-any cline-neutral"> </span>
|
|
233
238
|
<span class="cline-any cline-neutral"> </span>
|
|
234
239
|
<span class="cline-any cline-neutral"> </span>
|
|
235
|
-
<span class="cline-any cline-yes">
|
|
240
|
+
<span class="cline-any cline-yes">3x</span>
|
|
236
241
|
<span class="cline-any cline-neutral"> </span>
|
|
237
242
|
<span class="cline-any cline-yes">1x</span>
|
|
238
243
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -250,7 +255,6 @@
|
|
|
250
255
|
<span class="cline-any cline-yes">1x</span>
|
|
251
256
|
<span class="cline-any cline-yes">1x</span>
|
|
252
257
|
<span class="cline-any cline-neutral"> </span>
|
|
253
|
-
<span class="cline-any cline-neutral"> </span>
|
|
254
258
|
<span class="cline-any cline-yes">1x</span>
|
|
255
259
|
<span class="cline-any cline-neutral"> </span>
|
|
256
260
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -259,11 +263,11 @@
|
|
|
259
263
|
<span class="cline-any cline-neutral"> </span>
|
|
260
264
|
<span class="cline-any cline-neutral"> </span>
|
|
261
265
|
<span class="cline-any cline-neutral"> </span>
|
|
262
|
-
<span class="cline-any cline-yes">
|
|
266
|
+
<span class="cline-any cline-yes">3x</span>
|
|
263
267
|
<span class="cline-any cline-yes">1x</span>
|
|
264
268
|
<span class="cline-any cline-neutral"> </span>
|
|
265
269
|
<span class="cline-any cline-neutral"> </span>
|
|
266
|
-
<span class="cline-any cline-yes">
|
|
270
|
+
<span class="cline-any cline-yes">3x</span>
|
|
267
271
|
<span class="cline-any cline-yes">2x</span>
|
|
268
272
|
<span class="cline-any cline-neutral"> </span>
|
|
269
273
|
<span class="cline-any cline-yes">1x</span>
|
|
@@ -274,7 +278,7 @@
|
|
|
274
278
|
<span class="cline-any cline-yes">1x</span>
|
|
275
279
|
<span class="cline-any cline-neutral"> </span>
|
|
276
280
|
<span class="cline-any cline-neutral"> </span>
|
|
277
|
-
<span class="cline-any cline-yes">
|
|
281
|
+
<span class="cline-any cline-yes">3x</span>
|
|
278
282
|
<span class="cline-any cline-no"> </span>
|
|
279
283
|
<span class="cline-any cline-no"> </span>
|
|
280
284
|
<span class="cline-any cline-no"> </span>
|
|
@@ -284,17 +288,17 @@
|
|
|
284
288
|
<span class="cline-any cline-neutral"> </span>
|
|
285
289
|
<span class="cline-any cline-neutral"> </span>
|
|
286
290
|
<span class="cline-any cline-neutral"> </span>
|
|
287
|
-
<span class="cline-any cline-yes">
|
|
291
|
+
<span class="cline-any cline-yes">3x</span>
|
|
288
292
|
<span class="cline-any cline-no"> </span>
|
|
289
293
|
<span class="cline-any cline-no"> </span>
|
|
290
294
|
<span class="cline-any cline-neutral"> </span>
|
|
291
295
|
<span class="cline-any cline-neutral"> </span>
|
|
292
|
-
<span class="cline-any cline-yes">
|
|
296
|
+
<span class="cline-any cline-yes">3x</span>
|
|
293
297
|
<span class="cline-any cline-no"> </span>
|
|
294
298
|
<span class="cline-any cline-no"> </span>
|
|
295
299
|
<span class="cline-any cline-neutral"> </span>
|
|
296
300
|
<span class="cline-any cline-neutral"> </span>
|
|
297
|
-
<span class="cline-any cline-yes">
|
|
301
|
+
<span class="cline-any cline-yes">3x</span>
|
|
298
302
|
<span class="cline-any cline-neutral"> </span>
|
|
299
303
|
<span class="cline-any cline-neutral"> </span>
|
|
300
304
|
<span class="cline-any cline-neutral"> </span>
|
|
@@ -357,8 +361,8 @@ const MlLayerSwipe = (props) => {
|
|
|
357
361
|
<span class="missing-if-branch" title="if path not taken" >I</span>if (!props.map1Id || !props.map2Id) {
|
|
358
362
|
<span class="cstat-no" title="statement not covered" > return false;</span>
|
|
359
363
|
}
|
|
360
|
-
|
|
361
|
-
|
|
364
|
+
if (!mapContext.getMap(props.map1Id) || !mapContext.getMap(props.map2Id)) {
|
|
365
|
+
return false;
|
|
362
366
|
}
|
|
363
367
|
|
|
364
368
|
return true;
|
|
@@ -388,8 +392,7 @@ const MlLayerSwipe = (props) => {
|
|
|
388
392
|
setSwipeX(swipeX_tmp);
|
|
389
393
|
swipeXRef.current = swipeX_tmp;
|
|
390
394
|
|
|
391
|
-
var clipA =
|
|
392
|
-
"rect(0, " + (swipeXRef.current * bounds.width) / 100 + "px, 999em, 0)";
|
|
395
|
+
var clipA = "rect(0, " + (swipeXRef.current * bounds.width) / 100 + "px, 999em, 0)";
|
|
393
396
|
|
|
394
397
|
mapContext.maps[props.map2Id].getContainer().style.clip = clipA;
|
|
395
398
|
}
|
|
@@ -406,8 +409,8 @@ const MlLayerSwipe = (props) => {
|
|
|
406
409
|
|
|
407
410
|
initializedRef.current = true;
|
|
408
411
|
syncCleanupFunctionRef.current = syncMove(
|
|
409
|
-
mapContext.getMap(props.map1Id),
|
|
410
|
-
mapContext.getMap(props.map2Id)
|
|
412
|
+
mapContext.getMap(props.map1Id).map,
|
|
413
|
+
mapContext.getMap(props.map2Id).map
|
|
411
414
|
);
|
|
412
415
|
onMove({ clientX: mapContext.maps[props.map1Id].getCanvas().clientWidth / 2 });
|
|
413
416
|
}, [mapContext.mapIds, mapContext, props, onMove, mapExists]);
|
|
@@ -477,18 +480,18 @@ export default MlLayerSwipe;
|
|
|
477
480
|
</div><!-- /wrapper -->
|
|
478
481
|
<div class='footer quiet pad2 space-top1 center small'>
|
|
479
482
|
Code coverage generated by
|
|
480
|
-
<a href="https://istanbul.js.org/" target="_blank">istanbul</a>
|
|
481
|
-
at
|
|
483
|
+
<a href="https://istanbul.js.org/" target="_blank" rel="noopener">istanbul</a>
|
|
484
|
+
at Tue Dec 21 2021 11:51:22 GMT+0000 (Coordinated Universal Time)
|
|
482
485
|
</div>
|
|
483
486
|
</div>
|
|
484
|
-
<script src="
|
|
487
|
+
<script src="../../../prettify.js"></script>
|
|
485
488
|
<script>
|
|
486
489
|
window.onload = function () {
|
|
487
490
|
prettyPrint();
|
|
488
491
|
};
|
|
489
492
|
</script>
|
|
490
|
-
<script src="
|
|
491
|
-
<script src="
|
|
493
|
+
<script src="../../../sorter.js"></script>
|
|
494
|
+
<script src="../../../block-navigation.js"></script>
|
|
492
495
|
</body>
|
|
493
496
|
</html>
|
|
494
497
|
|