@mapcomponents/react-maplibre 0.1.57 → 0.1.59
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/.eslintignore +11 -0
- package/.eslintrc.js +20 -0
- package/.github/workflows/check-formatting.yml +46 -0
- package/.prettierignore +11 -0
- package/.prettierrc.json +6 -0
- package/CHANGELOG.md +18 -0
- package/coverage/clover.xml +229 -77
- package/coverage/coverage-final.json +43 -37
- package/coverage/lcov-report/index.html +65 -20
- package/coverage/lcov-report/src/components/MapLibreMap/MapLibreMap.tsx.html +83 -83
- package/coverage/lcov-report/src/components/MapLibreMap/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCenterPosition/MlCenterPosition.tsx.html +66 -66
- package/coverage/lcov-report/src/components/MlCenterPosition/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfButton/MlCreatePdfButton.tsx.html +30 -30
- package/coverage/lcov-report/src/components/MlCreatePdfButton/index.html +1 -1
- package/coverage/lcov-report/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx.html +202 -0
- package/coverage/lcov-report/src/components/MlCreatePdfForm/index.html +116 -0
- package/coverage/lcov-report/src/components/MlFeatureEditor/MlFeatureEditor.tsx.html +99 -99
- package/coverage/lcov-report/src/components/MlFeatureEditor/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.tsx.html +66 -66
- package/coverage/lcov-report/src/components/MlFillExtrusionLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlFollowGps/MlFollowGps.tsx.html +221 -221
- package/coverage/lcov-report/src/components/MlFollowGps/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGPXViewer/MlGPXViewer.tsx.html +308 -308
- package/coverage/lcov-report/src/components/MlGPXViewer/gpxConverter.js.html +497 -497
- package/coverage/lcov-report/src/components/MlGPXViewer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx.html +85 -85
- package/coverage/lcov-report/src/components/MlGeoJsonLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.tsx.html +469 -0
- package/coverage/lcov-report/src/components/MlGeojsonLayerWithSource/index.html +116 -0
- package/coverage/lcov-report/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx.html +140 -140
- package/coverage/lcov-report/src/components/MlImageMarkerLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayer/MlLayer.tsx.html +37 -37
- package/coverage/lcov-report/src/components/MlLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerMagnify/MlLayerMagnify.tsx.html +179 -179
- package/coverage/lcov-report/src/components/MlLayerMagnify/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwipe/MlLayerSwipe.tsx.html +113 -113
- package/coverage/lcov-report/src/components/MlLayerSwipe/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/MlLayerSwitcher.js.html +181 -181
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/LayerBox.js.html +58 -58
- package/coverage/lcov-report/src/components/MlLayerSwitcher/components/index.html +1 -1
- package/coverage/lcov-report/src/components/MlLayerSwitcher/index.html +1 -1
- package/coverage/lcov-report/src/components/MlMarker/MlMarker.tsx.html +108 -108
- package/coverage/lcov-report/src/components/MlMarker/index.html +1 -1
- package/coverage/lcov-report/src/components/MlMeasureTool/MlMeasureTool.tsx.html +39 -39
- package/coverage/lcov-report/src/components/MlMeasureTool/index.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationCompass/MlNavigationCompass.tsx.html +183 -183
- package/coverage/lcov-report/src/components/MlNavigationCompass/index.html +1 -1
- package/coverage/lcov-report/src/components/MlNavigationTools/MlNavigationTools.tsx.html +163 -163
- package/coverage/lcov-report/src/components/MlNavigationTools/index.html +1 -1
- package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.js.html +50 -50
- package/coverage/lcov-report/src/components/MlOsmLayer/MlOsmLayer.stories_.js.html +30 -30
- package/coverage/lcov-report/src/components/MlOsmLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlScaleReference/MlScaleReference.js.html +83 -83
- package/coverage/lcov-report/src/components/MlScaleReference/index.html +1 -1
- package/coverage/lcov-report/src/components/MlShareMapState/MlShareMapState.js.html +204 -204
- package/coverage/lcov-report/src/components/MlShareMapState/index.html +1 -1
- package/coverage/lcov-report/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js.html +180 -180
- package/coverage/lcov-report/src/components/MlSpatialElevationProfile/index.html +1 -1
- package/coverage/lcov-report/src/components/MlThreeJsLayer/MlThreeJsLayer.js.html +163 -163
- package/coverage/lcov-report/src/components/MlThreeJsLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx.html +136 -136
- package/coverage/lcov-report/src/components/MlTransitionGeoJsonLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlUseMapDebugger/MlUseMapDebugger.js.html +53 -53
- package/coverage/lcov-report/src/components/MlUseMapDebugger/index.html +1 -1
- package/coverage/lcov-report/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx.html +123 -123
- package/coverage/lcov-report/src/components/MlVectorTileLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js.html +35 -35
- package/coverage/lcov-report/src/components/MlWmsFeatureInfoPopup/index.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLayer/MlWmsLayer.tsx.html +155 -155
- package/coverage/lcov-report/src/components/MlWmsLayer/index.html +1 -1
- package/coverage/lcov-report/src/components/MlWmsLoader/MlWmsLoader.tsx.html +255 -255
- package/coverage/lcov-report/src/components/MlWmsLoader/index.html +1 -1
- package/coverage/lcov-report/src/contexts/MapContext.tsx.html +66 -66
- package/coverage/lcov-report/src/contexts/SimpleDataContext.js.html +1 -1
- package/coverage/lcov-report/src/contexts/SimpleDataProvider.js.html +48 -48
- package/coverage/lcov-report/src/contexts/index.html +1 -1
- package/coverage/lcov-report/src/hooks/exportMap/index.html +131 -0
- package/coverage/lcov-report/src/hooks/exportMap/index.ts.html +175 -0
- package/coverage/lcov-report/src/hooks/exportMap/lib.ts.html +646 -0
- package/coverage/lcov-report/src/hooks/index.html +48 -18
- package/coverage/lcov-report/src/hooks/useLayer.ts.html +230 -188
- package/coverage/lcov-report/src/hooks/useLayerEvent.js.html +232 -0
- package/coverage/lcov-report/src/hooks/useMap.ts.html +72 -69
- package/coverage/lcov-report/src/hooks/useMapState.ts.html +145 -145
- package/coverage/lcov-report/src/hooks/useSource.ts.html +337 -0
- package/coverage/lcov-report/src/hooks/useWms.js.html +72 -72
- package/coverage/lcov-report/src/index.html +1 -1
- package/coverage/lcov-report/src/index.ts.html +11 -2
- package/coverage/lcov.info +448 -151
- package/dist/components/MlCreatePdfForm/MlCreatePdfForm.d.ts +24 -0
- package/dist/components/MlCreatePdfForm/MlCreatePdfForm.stories.d.ts +13 -0
- package/dist/components/MlCreatePdfForm/lib/PdfContext.d.ts +21 -0
- package/dist/components/MlCreatePdfForm/lib/PdfForm.d.ts +10 -0
- package/dist/components/MlCreatePdfForm/lib/PdfPreview.d.ts +13 -0
- package/dist/components/MlCreatePdfForm/lib/pdf.templates.d.ts +11 -0
- package/dist/components/MlFeatureEditor/lib/create_vertex.d.ts +1 -1
- package/dist/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.d.ts +22 -0
- package/dist/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.stories.d.ts +10 -0
- package/dist/components/MlLayerSwipe/MlLayerSwipe.d.ts +1 -1
- package/dist/components/MlWmsLayer/MlWmsLayer.d.ts +2 -2
- package/dist/decorators/MapContextDecoratorHooks.d.ts +2 -0
- package/dist/hooks/exportMap/index.d.ts +11 -0
- package/dist/hooks/exportMap/lib.d.ts +36 -0
- package/dist/hooks/useLayer.d.ts +6 -5
- package/dist/hooks/useLayerEvent.d.ts +2 -0
- package/dist/hooks/useMap.d.ts +1 -1
- package/dist/hooks/useMapState.stories.d.ts +2 -2
- package/dist/hooks/useSource.d.ts +17 -0
- package/dist/hooks/useSources.stories.d.ts +13 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.esm.js +1055 -315
- package/dist/index.esm.js.map +1 -1
- package/eslintErrorTest.js +10 -0
- package/package.json +7 -1
- package/public/thumbnails/MlCreatePdfForm.png +0 -0
- package/src/components/MapLibreMap/MapLibreMap.stories.js +72 -72
- package/src/components/MapLibreMap/MapLibreMap.test.js +60 -60
- package/src/components/MapLibreMap/MapLibreMap.tsx +82 -82
- package/src/components/MapLibreMap/lib/MapLibreGlWrapper.test.js +343 -343
- package/src/components/MapLibreMap/lib/MapLibreGlWrapper.ts +619 -619
- package/src/components/MlBasicComponent.js +25 -25
- package/src/components/MlCenterPosition/MlCenterPosition.stories.js +6 -6
- package/src/components/MlCenterPosition/MlCenterPosition.tsx +65 -65
- package/src/components/MlComponentTemplate/MlComponentTemplate.stories.js +5 -5
- package/src/components/MlComponentTemplate/MlComponentTemplate.tsx +23 -23
- package/src/components/MlCreatePdfButton/{MlCreatePdfButton.meta.json → MlCreatePdfButton.meta_.json} +0 -0
- package/src/components/MlCreatePdfButton/MlCreatePdfButton.stories.js +16 -16
- package/src/components/MlCreatePdfButton/MlCreatePdfButton.tsx +29 -29
- package/src/components/MlCreatePdfButton/lib/createPdf.ts +175 -175
- package/src/components/MlCreatePdfButton/lib/nominatimMap.ts +51 -51
- package/src/components/MlCreatePdfForm/MlCreatePdfForm.doc.de.md +3 -0
- package/src/components/MlCreatePdfForm/MlCreatePdfForm.meta.json +15 -0
- package/src/components/MlCreatePdfForm/MlCreatePdfForm.stories.tsx +152 -0
- package/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx +39 -0
- package/src/components/MlCreatePdfForm/lib/PdfContext.tsx +53 -0
- package/src/components/MlCreatePdfForm/lib/PdfForm.tsx +161 -0
- package/src/components/MlCreatePdfForm/lib/PdfPreview.tsx +399 -0
- package/src/components/MlCreatePdfForm/lib/pdf.templates.ts +82 -0
- package/src/components/MlFeatureEditor/MlFeatureEditor.stories.js +55 -55
- package/src/components/MlFeatureEditor/MlFeatureEditor.test.js +105 -105
- package/src/components/MlFeatureEditor/MlFeatureEditor.tsx +119 -119
- package/src/components/MlFeatureEditor/custom-direct-select-mode.js +208 -208
- package/src/components/MlFeatureEditor/custom-polygon-mode.js +148 -148
- package/src/components/MlFeatureEditor/custom-select-mode.js +314 -314
- package/src/components/MlFeatureEditor/lib/common_selectors.js +34 -34
- package/src/components/MlFeatureEditor/lib/constants.js +61 -61
- package/src/components/MlFeatureEditor/lib/constrain_feature_movement.js +51 -51
- package/src/components/MlFeatureEditor/lib/create_midpoint.js +30 -30
- package/src/components/MlFeatureEditor/lib/create_supplementary_points.js +82 -82
- package/src/components/MlFeatureEditor/lib/create_vertex.js +16 -16
- package/src/components/MlFeatureEditor/lib/double_click_zoom.js +23 -23
- package/src/components/MlFeatureEditor/lib/euclidean_distance.js +3 -3
- package/src/components/MlFeatureEditor/lib/features_at.js +23 -23
- package/src/components/MlFeatureEditor/lib/get_features_and_set_cursor.js +15 -15
- package/src/components/MlFeatureEditor/lib/is_click.js +8 -8
- package/src/components/MlFeatureEditor/lib/is_event_at_coordinates.js +2 -2
- package/src/components/MlFeatureEditor/lib/is_tap.js +6 -6
- package/src/components/MlFeatureEditor/lib/map_event_to_bounding_box.js +4 -4
- package/src/components/MlFeatureEditor/lib/mode_handler.js +105 -105
- package/src/components/MlFeatureEditor/lib/mouse_event_point.js +5 -5
- package/src/components/MlFeatureEditor/lib/move_features.js +33 -33
- package/src/components/MlFeatureEditor/lib/sort_features.js +25 -25
- package/src/components/MlFeatureEditor/lib/string_set.js +36 -36
- package/src/components/MlFeatureEditor/lib/string_sets_are_equal.js +2 -2
- package/src/components/MlFeatureEditor/lib/theme.js +230 -230
- package/src/components/MlFeatureEditor/lib/to_dense_array.js +1 -1
- package/src/components/MlFeatureEditor/lib/utils.js +40 -40
- package/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.stories.js +9 -9
- package/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.test.js +4 -4
- package/src/components/MlFillExtrusionLayer/MlFillExtrusionLayer.tsx +65 -65
- package/src/components/MlFollowGps/MlFollowGps.stories.js +6 -6
- package/src/components/MlFollowGps/MlFollowGps.test.js +44 -44
- package/src/components/MlFollowGps/MlFollowGps.tsx +220 -220
- package/src/components/MlGPXViewer/MlGPXViewer.stories.js +15 -15
- package/src/components/MlGPXViewer/MlGPXViewer.test.js +12 -12
- package/src/components/MlGPXViewer/MlGPXViewer.tsx +345 -345
- package/src/components/MlGPXViewer/gpxConverter.js +496 -496
- package/src/components/MlGPXViewer/util/GeoJsonContext.ts +4 -4
- package/src/components/MlGPXViewer/util/GeoJsonProvider.tsx +16 -16
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.js +34 -34
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.test.js +8 -8
- package/src/components/MlGeoJsonLayer/MlGeoJsonLayer.tsx +84 -84
- package/src/components/MlGeoJsonLayer/util/getDefaultLayerTypeByGeometry.ts +21 -21
- package/src/components/MlGeoJsonLayer/util/getDefaultPaintPropsByType.ts +27 -27
- package/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.doc.de.md +3 -0
- package/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.meta_.json +15 -0
- package/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.stories.js +19 -0
- package/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.tsx +128 -0
- package/src/components/MlImageMarkerLayer/MlImageMarkerLayer.stories.js +28 -28
- package/src/components/MlImageMarkerLayer/MlImageMarkerLayer.test.js +8 -8
- package/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx +162 -162
- package/src/components/MlLayer/MlLayer.stories.js +5 -5
- package/src/components/MlLayer/MlLayer.test.js +86 -86
- package/src/components/MlLayer/MlLayer.tsx +36 -36
- package/src/components/MlLayerMagnify/MlLayerMagnify.stories.js +21 -21
- package/src/components/MlLayerMagnify/MlLayerMagnify.test.js +54 -54
- package/src/components/MlLayerMagnify/MlLayerMagnify.tsx +201 -201
- package/src/components/MlLayerSwipe/MlLayerSwipe.stories.js +20 -20
- package/src/components/MlLayerSwipe/MlLayerSwipe.test.js +54 -54
- package/src/components/MlLayerSwipe/MlLayerSwipe.tsx +130 -130
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.js +194 -194
- package/src/components/MlLayerSwitcher/MlLayerSwitcher.stories.js +85 -85
- package/src/components/MlLayerSwitcher/components/LayerBox.js +57 -57
- package/src/components/MlMarker/MlMarker.stories.js +7 -7
- package/src/components/MlMarker/MlMarker.tsx +119 -119
- package/src/components/MlMeasureTool/MlMeasureTool.stories.js +64 -64
- package/src/components/MlMeasureTool/MlMeasureTool.tsx +38 -38
- package/src/components/MlNavigationCompass/MlNavigationCompass.stories.js +45 -45
- package/src/components/MlNavigationCompass/MlNavigationCompass.test.js +40 -40
- package/src/components/MlNavigationCompass/MlNavigationCompass.tsx +192 -192
- package/src/components/MlNavigationTools/MlNavigationTools.stories.js +18 -18
- package/src/components/MlNavigationTools/MlNavigationTools.tsx +173 -173
- package/src/components/MlOsmLayer/MlOsmLayer.js +49 -49
- package/src/components/MlOsmLayer/MlOsmLayer.stories_.js +29 -29
- package/src/components/MlOsmLayer/MlOsmLayer.test.js +8 -8
- package/src/components/MlScaleReference/MlScaleReference.js +82 -82
- package/src/components/MlScaleReference/MlScaleReference.stories.js +27 -27
- package/src/components/MlShareMapState/MlShareMapState.js +203 -203
- package/src/components/MlShareMapState/MlShareMapState.stories.js +68 -68
- package/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.js +201 -201
- package/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.stories.js +35 -35
- package/src/components/MlSpatialElevationProfile/MlSpatialElevationProfile.test.js +8 -8
- package/src/components/MlThreeJsLayer/MlThreeJsLayer.js +186 -186
- package/src/components/MlThreeJsLayer/MlThreeJsLayer.stories.js +21 -21
- package/src/components/MlThreeJsLayer/MlThreeJsLayer.test.js +24 -24
- package/src/components/MlThreeJsLayer/lib/GLTFLoader.js +3327 -3327
- package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.stories.js +31 -30
- package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.test.js +8 -8
- package/src/components/MlTransitionGeoJsonLayer/MlTransitionGeoJsonLayer.tsx +146 -146
- package/src/components/MlTransitionGeoJsonLayer/util/transitionFunctions.js +207 -207
- package/src/components/MlUseMapDebugger/MlUseMapDebugger.js +52 -52
- package/src/components/MlUseMapDebugger/MlUseMapDebugger.stories.js +13 -13
- package/src/components/MlVectorTileLayer/MlVectorTileLayer.stories.js +27 -27
- package/src/components/MlVectorTileLayer/MlVectorTileLayer.test.js +27 -27
- package/src/components/MlVectorTileLayer/MlVectorTileLayer.tsx +137 -137
- package/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.js +34 -34
- package/src/components/MlWmsFeatureInfoPopup/MlWmsFeatureInfoPopup.stories.js +7 -7
- package/src/components/MlWmsLayer/MlWmsLayer.stories.js +26 -26
- package/src/components/MlWmsLayer/MlWmsLayer.test.js +8 -8
- package/src/components/MlWmsLayer/MlWmsLayer.tsx +167 -167
- package/src/components/MlWmsLoader/MlWmsLoader.stories.js +27 -27
- package/src/components/MlWmsLoader/MlWmsLoader.tsx +254 -254
- package/src/contexts/MapComponentsProvider.test.js +229 -229
- package/src/contexts/MapContext.tsx +65 -65
- package/src/contexts/SimpleDataProvider.js +47 -47
- package/src/contexts/SimpleDataProvider.test.js +29 -29
- package/src/custom.d.tsx +14 -14
- package/src/decorators/MapContextDecorator.js +22 -22
- package/src/decorators/MapContextDecoratorHooks.js +34 -0
- package/src/decorators/MultiMapContextDecorator.js +63 -63
- package/src/decorators/NoNavToolsDecorator.js +17 -17
- package/src/decorators/ThemeWrapper.jsx +1 -1
- package/src/hooks/assets/pointWG.json +13 -0
- package/src/hooks/exportMap/index.ts +30 -0
- package/src/hooks/exportMap/lib.ts +187 -0
- package/src/hooks/useLayer.test.js +188 -188
- package/src/hooks/useLayer.ts +194 -180
- package/src/hooks/useLayerEvent.js +49 -0
- package/src/hooks/useMap.ts +67 -66
- package/src/hooks/useMapState.stories.js +78 -78
- package/src/hooks/useMapState.ts +161 -161
- package/src/hooks/useSource.ts +84 -0
- package/src/hooks/useSources.stories.js +232 -0
- package/src/hooks/useWms.js +71 -71
- package/src/index.ts +3 -0
- package/src/setupTests.js +86 -86
- package/src/ui_components/ImageLoader.js +62 -62
- package/src/ui_components/Legend.js +34 -34
- package/src/ui_components/LoadingOverlay.js +29 -29
- package/src/ui_components/LoadingOverlayContext.js +68 -68
- package/src/ui_components/Sidebar.js +80 -80
- package/src/ui_components/Tooltip.js +9 -9
- package/src/ui_components/TopToolbar.js +23 -23
- package/src/util/layerRemovalTest.js +111 -111
- package/src/util/sourceRemovalTest.js +103 -103
package/.eslintignore
ADDED
package/.eslintrc.js
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
env: {
|
|
3
|
+
browser: true,
|
|
4
|
+
es2021: true,
|
|
5
|
+
},
|
|
6
|
+
extends: [
|
|
7
|
+
'eslint:recommended',
|
|
8
|
+
'plugin:react/recommended',
|
|
9
|
+
'plugin:@typescript-eslint/recommended',
|
|
10
|
+
'prettier',
|
|
11
|
+
],
|
|
12
|
+
overrides: [],
|
|
13
|
+
parser: '@typescript-eslint/parser',
|
|
14
|
+
parserOptions: {
|
|
15
|
+
ecmaVersion: 'latest',
|
|
16
|
+
sourceType: 'module',
|
|
17
|
+
},
|
|
18
|
+
plugins: ['react', '@typescript-eslint'],
|
|
19
|
+
rules: {},
|
|
20
|
+
};
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
name: formatting-check
|
|
2
|
+
on:
|
|
3
|
+
push:
|
|
4
|
+
branches:
|
|
5
|
+
- "main"
|
|
6
|
+
pull_request:
|
|
7
|
+
|
|
8
|
+
jobs:
|
|
9
|
+
check_formatting:
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
strategy:
|
|
13
|
+
matrix:
|
|
14
|
+
node-versions: [16.x]
|
|
15
|
+
|
|
16
|
+
steps:
|
|
17
|
+
- uses: actions/checkout@v2
|
|
18
|
+
|
|
19
|
+
- name: Use Node.js ${{ matrix.node-version }}
|
|
20
|
+
uses: actions/setup-node@v2
|
|
21
|
+
with:
|
|
22
|
+
node-version: ${{ matrix.node-version }}
|
|
23
|
+
|
|
24
|
+
- name: Node cache
|
|
25
|
+
id: yarn-cache
|
|
26
|
+
uses: actions/cache@v2
|
|
27
|
+
with:
|
|
28
|
+
path: "**/node_modules"
|
|
29
|
+
key: ${{ runner.os }}-modules-${{ hashFiles('**/yarn.lock') }}
|
|
30
|
+
|
|
31
|
+
- name: Install dependencies
|
|
32
|
+
if: steps.yarn-cache.outputs.cache-hit != 'true'
|
|
33
|
+
run: yarn install
|
|
34
|
+
|
|
35
|
+
- id: files
|
|
36
|
+
uses: jitterbit/get-changed-files@v1
|
|
37
|
+
with:
|
|
38
|
+
format: csv
|
|
39
|
+
|
|
40
|
+
- name: Run scoped actions
|
|
41
|
+
uses: DukeManh/scoped-actions@v1
|
|
42
|
+
with:
|
|
43
|
+
files: ${{ steps.files.outputs.added_modified}}
|
|
44
|
+
eslintTarget: "**/*.{jsx,tsx,ts,js}"
|
|
45
|
+
s0: "yarn run eslint"
|
|
46
|
+
s1: "yarn run prettier --check"
|
package/.prettierignore
ADDED
package/.prettierrc.json
ADDED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
|
|
4
|
+
## [v0.1.59] - 2022-10-04
|
|
5
|
+
|
|
6
|
+
### Fixed
|
|
7
|
+
|
|
8
|
+
- ac559c4: fix MlCreatePdfForm export
|
|
9
|
+
## [v0.1.58] - 2022-10-04
|
|
10
|
+
|
|
11
|
+
### Added
|
|
12
|
+
- 6be40b7: automatic eslint & prettier tests as GitHub action
|
|
13
|
+
- 396b1b7: useSource hook
|
|
14
|
+
- 67d88a0: add MlCreatePdfForm component & useExportMap hook providing more sophisticated control on the PDF creation process such as a preview of the PDF area with drag&drop, resize & rotation functionality as well as controlls over the paper size, quality & orientation
|
|
15
|
+
|
|
16
|
+
### Fixed
|
|
17
|
+
|
|
18
|
+
- 0cf90f7: fix useMapState story by adding an dedicated hook decorator
|
|
19
|
+
- 4c919b8: fix useMap hook typechange bug
|
|
20
|
+
|
|
3
21
|
## [v0.1.57] - 2022-08-30
|
|
4
22
|
|
|
5
23
|
### Added
|
package/coverage/clover.xml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="
|
|
3
|
-
<project timestamp="
|
|
4
|
-
<metrics statements="
|
|
2
|
+
<coverage generated="1664885473517" clover="3.2.0">
|
|
3
|
+
<project timestamp="1664885473517" name="All files">
|
|
4
|
+
<metrics statements="1772" coveredstatements="636" conditionals="1080" coveredconditionals="305" methods="326" coveredmethods="105" elements="3178" coveredelements="1046" complexity="0" loc="1772" ncloc="1772" packages="35" files="45" classes="45"/>
|
|
5
5
|
<package name="src">
|
|
6
6
|
<metrics statements="0" coveredstatements="0" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
7
7
|
<file name="index.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/index.ts">
|
|
@@ -74,6 +74,15 @@
|
|
|
74
74
|
<line num="47" count="10" type="stmt"/>
|
|
75
75
|
</file>
|
|
76
76
|
</package>
|
|
77
|
+
<package name="src.components.MlCreatePdfForm">
|
|
78
|
+
<metrics statements="3" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
|
|
79
|
+
<file name="MlCreatePdfForm.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlCreatePdfForm/MlCreatePdfForm.tsx">
|
|
80
|
+
<metrics statements="3" coveredstatements="2" conditionals="0" coveredconditionals="0" methods="1" coveredmethods="0"/>
|
|
81
|
+
<line num="25" count="10" type="stmt"/>
|
|
82
|
+
<line num="26" count="0" type="stmt"/>
|
|
83
|
+
<line num="36" count="10" type="stmt"/>
|
|
84
|
+
</file>
|
|
85
|
+
</package>
|
|
77
86
|
<package name="src.components.MlFeatureEditor">
|
|
78
87
|
<metrics statements="36" coveredstatements="29" conditionals="29" coveredconditionals="20" methods="8" coveredmethods="6"/>
|
|
79
88
|
<file name="MlFeatureEditor.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlFeatureEditor/MlFeatureEditor.tsx">
|
|
@@ -596,6 +605,27 @@
|
|
|
596
605
|
<line num="107" count="32" type="stmt"/>
|
|
597
606
|
</file>
|
|
598
607
|
</package>
|
|
608
|
+
<package name="src.components.MlGeojsonLayerWithSource">
|
|
609
|
+
<metrics statements="15" coveredstatements="0" conditionals="4" coveredconditionals="0" methods="2" coveredmethods="0"/>
|
|
610
|
+
<file name="MlGeojsonLayerWithSource.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlGeojsonLayerWithSource/MlGeojsonLayerWithSource.tsx">
|
|
611
|
+
<metrics statements="15" coveredstatements="0" conditionals="4" coveredconditionals="0" methods="2" coveredmethods="0"/>
|
|
612
|
+
<line num="22" count="0" type="stmt"/>
|
|
613
|
+
<line num="23" count="0" type="stmt"/>
|
|
614
|
+
<line num="65" count="0" type="stmt"/>
|
|
615
|
+
<line num="70" count="0" type="stmt"/>
|
|
616
|
+
<line num="72" count="0" type="stmt"/>
|
|
617
|
+
<line num="73" count="0" type="stmt"/>
|
|
618
|
+
<line num="82" count="0" type="stmt"/>
|
|
619
|
+
<line num="97" count="0" type="stmt"/>
|
|
620
|
+
<line num="112" count="0" type="stmt"/>
|
|
621
|
+
<line num="113" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
622
|
+
<line num="116" count="0" type="stmt"/>
|
|
623
|
+
<line num="118" count="0" type="stmt"/>
|
|
624
|
+
<line num="119" count="0" type="stmt"/>
|
|
625
|
+
<line num="122" count="0" type="stmt"/>
|
|
626
|
+
<line num="125" count="0" type="stmt"/>
|
|
627
|
+
</file>
|
|
628
|
+
</package>
|
|
599
629
|
<package name="src.components.MlImageMarkerLayer">
|
|
600
630
|
<metrics statements="59" coveredstatements="31" conditionals="59" coveredconditionals="21" methods="10" coveredmethods="6"/>
|
|
601
631
|
<file name="MlImageMarkerLayer.tsx" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/components/MlImageMarkerLayer/MlImageMarkerLayer.tsx">
|
|
@@ -1675,69 +1705,96 @@
|
|
|
1675
1705
|
</file>
|
|
1676
1706
|
</package>
|
|
1677
1707
|
<package name="src.hooks">
|
|
1678
|
-
<metrics statements="
|
|
1708
|
+
<metrics statements="223" coveredstatements="101" conditionals="152" coveredconditionals="60" methods="37" coveredmethods="16"/>
|
|
1679
1709
|
<file name="useLayer.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useLayer.ts">
|
|
1680
|
-
<metrics statements="
|
|
1681
|
-
<line num="
|
|
1682
|
-
<line num="
|
|
1683
|
-
<line num="51" count="102" type="stmt"/>
|
|
1710
|
+
<metrics statements="63" coveredstatements="47" conditionals="68" coveredconditionals="44" methods="8" coveredmethods="7"/>
|
|
1711
|
+
<line num="34" count="13" type="stmt"/>
|
|
1712
|
+
<line num="47" count="102" type="stmt"/>
|
|
1684
1713
|
<line num="52" count="102" type="stmt"/>
|
|
1685
1714
|
<line num="53" count="102" type="stmt"/>
|
|
1686
|
-
<line num="
|
|
1687
|
-
<line num="
|
|
1715
|
+
<line num="54" count="102" type="stmt"/>
|
|
1716
|
+
<line num="56" count="102" type="stmt"/>
|
|
1688
1717
|
<line num="58" count="102" type="stmt"/>
|
|
1689
|
-
<line num="
|
|
1690
|
-
<line num="63" count="
|
|
1691
|
-
<line num="
|
|
1692
|
-
<line num="66" count="
|
|
1693
|
-
<line num="
|
|
1694
|
-
<line num="69" count="
|
|
1695
|
-
<line num="
|
|
1696
|
-
<line num="73" count="26" type="
|
|
1697
|
-
<line num="
|
|
1698
|
-
<line num="
|
|
1699
|
-
<line num="
|
|
1700
|
-
<line num="
|
|
1701
|
-
<line num="
|
|
1702
|
-
<line num="
|
|
1703
|
-
<line num="
|
|
1704
|
-
<line num="
|
|
1705
|
-
<line num="
|
|
1706
|
-
<line num="
|
|
1707
|
-
<line num="
|
|
1708
|
-
<line num="120" count="26" type="stmt"/>
|
|
1709
|
-
<line num="121" count="26" type="stmt"/>
|
|
1718
|
+
<line num="59" count="102" type="stmt"/>
|
|
1719
|
+
<line num="63" count="102" type="stmt"/>
|
|
1720
|
+
<line num="64" count="26" type="cond" truecount="1" falsecount="1"/>
|
|
1721
|
+
<line num="66" count="26" type="cond" truecount="2" falsecount="0"/>
|
|
1722
|
+
<line num="67" count="3" type="stmt"/>
|
|
1723
|
+
<line num="69" count="26" type="cond" truecount="1" falsecount="1"/>
|
|
1724
|
+
<line num="70" count="0" type="stmt"/>
|
|
1725
|
+
<line num="73" count="26" type="cond" truecount="1" falsecount="1"/>
|
|
1726
|
+
<line num="74" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1727
|
+
<line num="75" count="0" type="stmt"/>
|
|
1728
|
+
<line num="79" count="26" type="stmt"/>
|
|
1729
|
+
<line num="81" count="26" type="stmt"/>
|
|
1730
|
+
<line num="107" count="26" type="stmt"/>
|
|
1731
|
+
<line num="109" count="26" type="cond" truecount="2" falsecount="0"/>
|
|
1732
|
+
<line num="110" count="6" type="stmt"/>
|
|
1733
|
+
<line num="113" count="26" type="cond" truecount="2" falsecount="0"/>
|
|
1734
|
+
<line num="114" count="4" type="stmt"/>
|
|
1735
|
+
<line num="117" count="26" type="cond" truecount="2" falsecount="0"/>
|
|
1736
|
+
<line num="118" count="2" type="stmt"/>
|
|
1710
1737
|
<line num="122" count="26" type="stmt"/>
|
|
1711
|
-
<line num="125" count="
|
|
1712
|
-
<line num="126" count="
|
|
1713
|
-
<line num="
|
|
1714
|
-
<line num="
|
|
1715
|
-
<line num="
|
|
1716
|
-
<line num="
|
|
1717
|
-
<line num="
|
|
1718
|
-
<line num="
|
|
1719
|
-
<line num="
|
|
1720
|
-
<line num="
|
|
1721
|
-
<line num="
|
|
1722
|
-
<line num="
|
|
1723
|
-
<line num="
|
|
1724
|
-
<line num="
|
|
1725
|
-
<line num="
|
|
1726
|
-
<line num="
|
|
1727
|
-
<line num="
|
|
1728
|
-
<line num="
|
|
1729
|
-
<line num="
|
|
1730
|
-
<line num="
|
|
1731
|
-
<line num="
|
|
1732
|
-
<line num="
|
|
1733
|
-
<line num="174" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1734
|
-
<line num="175" count="0" type="stmt"/>
|
|
1738
|
+
<line num="125" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1739
|
+
<line num="126" count="0" type="stmt"/>
|
|
1740
|
+
<line num="127" count="0" type="stmt"/>
|
|
1741
|
+
<line num="133" count="26" type="stmt"/>
|
|
1742
|
+
<line num="134" count="26" type="stmt"/>
|
|
1743
|
+
<line num="135" count="26" type="stmt"/>
|
|
1744
|
+
<line num="138" count="102" type="stmt"/>
|
|
1745
|
+
<line num="139" count="102" type="cond" truecount="2" falsecount="0"/>
|
|
1746
|
+
<line num="141" count="56" type="cond" truecount="2" falsecount="0"/>
|
|
1747
|
+
<line num="147" count="30" type="stmt"/>
|
|
1748
|
+
<line num="150" count="26" type="stmt"/>
|
|
1749
|
+
<line num="153" count="102" type="stmt"/>
|
|
1750
|
+
<line num="154" count="49" type="cond" truecount="4" falsecount="0"/>
|
|
1751
|
+
<line num="158" count="12" type="stmt"/>
|
|
1752
|
+
<line num="161" count="102" type="stmt"/>
|
|
1753
|
+
<line num="162" count="102" type="cond" truecount="2" falsecount="0"/>
|
|
1754
|
+
<line num="168" count="46" type="stmt"/>
|
|
1755
|
+
<line num="172" count="56" type="stmt"/>
|
|
1756
|
+
<line num="173" count="56" type="cond" truecount="3" falsecount="1"/>
|
|
1757
|
+
<line num="174" count="0" type="stmt"/>
|
|
1758
|
+
<line num="176" count="0" type="stmt"/>
|
|
1759
|
+
<line num="177" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1735
1760
|
<line num="178" count="0" type="stmt"/>
|
|
1736
|
-
<line num="
|
|
1737
|
-
<line num="
|
|
1738
|
-
<line num="
|
|
1739
|
-
<line num="
|
|
1740
|
-
<line num="
|
|
1761
|
+
<line num="181" count="0" type="stmt"/>
|
|
1762
|
+
<line num="184" count="56" type="stmt"/>
|
|
1763
|
+
<line num="185" count="56" type="cond" truecount="1" falsecount="1"/>
|
|
1764
|
+
<line num="186" count="0" type="stmt"/>
|
|
1765
|
+
<line num="187" count="0" type="stmt"/>
|
|
1766
|
+
<line num="188" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1767
|
+
<line num="189" count="0" type="stmt"/>
|
|
1768
|
+
<line num="192" count="0" type="stmt"/>
|
|
1769
|
+
<line num="196" count="102" type="stmt"/>
|
|
1770
|
+
<line num="197" count="23" type="stmt"/>
|
|
1771
|
+
<line num="198" count="10" type="stmt"/>
|
|
1772
|
+
<line num="199" count="10" type="stmt"/>
|
|
1773
|
+
<line num="203" count="102" type="stmt"/>
|
|
1774
|
+
</file>
|
|
1775
|
+
<file name="useLayerEvent.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useLayerEvent.js">
|
|
1776
|
+
<metrics statements="21" coveredstatements="2" conditionals="16" coveredconditionals="0" methods="3" coveredmethods="0"/>
|
|
1777
|
+
<line num="6" count="10" type="stmt"/>
|
|
1778
|
+
<line num="11" count="10" type="stmt"/>
|
|
1779
|
+
<line num="13" count="0" type="stmt"/>
|
|
1780
|
+
<line num="14" count="0" type="stmt"/>
|
|
1781
|
+
<line num="16" count="0" type="stmt"/>
|
|
1782
|
+
<line num="17" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1783
|
+
<line num="18" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1784
|
+
<line num="22" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1785
|
+
<line num="24" count="0" type="stmt"/>
|
|
1786
|
+
<line num="25" count="0" type="stmt"/>
|
|
1787
|
+
<line num="26" count="0" type="stmt"/>
|
|
1788
|
+
<line num="29" count="0" type="stmt"/>
|
|
1789
|
+
<line num="30" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1790
|
+
<line num="31" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1791
|
+
<line num="32" count="0" type="stmt"/>
|
|
1792
|
+
<line num="35" count="0" type="stmt"/>
|
|
1793
|
+
<line num="36" count="0" type="stmt"/>
|
|
1794
|
+
<line num="37" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1795
|
+
<line num="38" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1796
|
+
<line num="39" count="0" type="stmt"/>
|
|
1797
|
+
<line num="46" count="0" type="stmt"/>
|
|
1741
1798
|
</file>
|
|
1742
1799
|
<file name="useMap.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useMap.ts">
|
|
1743
1800
|
<metrics statements="30" coveredstatements="24" conditionals="14" coveredconditionals="8" methods="6" coveredmethods="5"/>
|
|
@@ -1745,32 +1802,32 @@
|
|
|
1745
1802
|
<line num="18" count="211" type="stmt"/>
|
|
1746
1803
|
<line num="20" count="211" type="stmt"/>
|
|
1747
1804
|
<line num="32" count="211" type="stmt"/>
|
|
1748
|
-
<line num="
|
|
1749
|
-
<line num="
|
|
1750
|
-
<line num="
|
|
1751
|
-
<line num="
|
|
1752
|
-
<line num="
|
|
1753
|
-
<line num="41" count="29" type="stmt"/>
|
|
1805
|
+
<line num="34" count="211" type="stmt"/>
|
|
1806
|
+
<line num="36" count="211" type="stmt"/>
|
|
1807
|
+
<line num="38" count="211" type="stmt"/>
|
|
1808
|
+
<line num="40" count="211" type="stmt"/>
|
|
1809
|
+
<line num="41" count="39" type="cond" truecount="2" falsecount="0"/>
|
|
1754
1810
|
<line num="42" count="29" type="stmt"/>
|
|
1755
1811
|
<line num="44" count="39" type="stmt"/>
|
|
1756
1812
|
<line num="47" count="211" type="stmt"/>
|
|
1757
1813
|
<line num="48" count="57" type="stmt"/>
|
|
1758
1814
|
<line num="49" count="26" type="stmt"/>
|
|
1759
1815
|
<line num="50" count="26" type="stmt"/>
|
|
1760
|
-
<line num="
|
|
1761
|
-
<line num="55" count="
|
|
1762
|
-
<line num="
|
|
1763
|
-
<line num="60" count="
|
|
1764
|
-
<line num="
|
|
1765
|
-
<line num="63" count="0" type="
|
|
1766
|
-
<line num="64" count="0" type="
|
|
1767
|
-
<line num="
|
|
1768
|
-
<line num="68" count="0" type="
|
|
1769
|
-
<line num="
|
|
1816
|
+
<line num="51" count="26" type="stmt"/>
|
|
1817
|
+
<line num="55" count="211" type="stmt"/>
|
|
1818
|
+
<line num="56" count="114" type="cond" truecount="4" falsecount="0"/>
|
|
1819
|
+
<line num="60" count="57" type="cond" truecount="1" falsecount="1"/>
|
|
1820
|
+
<line num="61" count="0" type="stmt"/>
|
|
1821
|
+
<line num="63" count="0" type="stmt"/>
|
|
1822
|
+
<line num="64" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1823
|
+
<line num="65" count="0" type="stmt"/>
|
|
1824
|
+
<line num="68" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1825
|
+
<line num="69" count="0" type="stmt"/>
|
|
1770
1826
|
<line num="74" count="57" type="stmt"/>
|
|
1771
1827
|
<line num="75" count="57" type="stmt"/>
|
|
1772
1828
|
<line num="76" count="57" type="stmt"/>
|
|
1773
|
-
<line num="
|
|
1829
|
+
<line num="77" count="57" type="stmt"/>
|
|
1830
|
+
<line num="80" count="211" type="stmt"/>
|
|
1774
1831
|
</file>
|
|
1775
1832
|
<file name="useMapState.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useMapState.ts">
|
|
1776
1833
|
<metrics statements="48" coveredstatements="27" conditionals="26" coveredconditionals="8" methods="7" coveredmethods="4"/>
|
|
@@ -1823,6 +1880,35 @@
|
|
|
1823
1880
|
<line num="152" count="15" type="stmt"/>
|
|
1824
1881
|
<line num="164" count="15" type="stmt"/>
|
|
1825
1882
|
</file>
|
|
1883
|
+
<file name="useSource.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useSource.ts">
|
|
1884
|
+
<metrics statements="26" coveredstatements="0" conditionals="20" coveredconditionals="0" methods="6" coveredmethods="0"/>
|
|
1885
|
+
<line num="20" count="0" type="stmt"/>
|
|
1886
|
+
<line num="24" count="0" type="stmt"/>
|
|
1887
|
+
<line num="25" count="0" type="stmt"/>
|
|
1888
|
+
<line num="26" count="0" type="stmt"/>
|
|
1889
|
+
<line num="30" count="0" type="stmt"/>
|
|
1890
|
+
<line num="31" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1891
|
+
<line num="32" count="0" type="stmt"/>
|
|
1892
|
+
<line num="34" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1893
|
+
<line num="35" count="0" type="stmt"/>
|
|
1894
|
+
<line num="38" count="0" type="stmt"/>
|
|
1895
|
+
<line num="42" count="0" type="stmt"/>
|
|
1896
|
+
<line num="45" count="0" type="stmt"/>
|
|
1897
|
+
<line num="46" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1898
|
+
<line num="47" count="0" type="stmt"/>
|
|
1899
|
+
<line num="50" count="0" type="stmt"/>
|
|
1900
|
+
<line num="51" count="0" type="cond" truecount="0" falsecount="4"/>
|
|
1901
|
+
<line num="55" count="0" type="stmt"/>
|
|
1902
|
+
<line num="61" count="0" type="stmt"/>
|
|
1903
|
+
<line num="62" count="0" type="stmt"/>
|
|
1904
|
+
<line num="63" count="0" type="stmt"/>
|
|
1905
|
+
<line num="64" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1906
|
+
<line num="65" count="0" type="stmt"/>
|
|
1907
|
+
<line num="66" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1908
|
+
<line num="67" count="0" type="stmt"/>
|
|
1909
|
+
<line num="71" count="0" type="stmt"/>
|
|
1910
|
+
<line num="76" count="0" type="stmt"/>
|
|
1911
|
+
</file>
|
|
1826
1912
|
<file name="useWms.js" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/useWms.js">
|
|
1827
1913
|
<metrics statements="35" coveredstatements="1" conditionals="8" coveredconditionals="0" methods="7" coveredmethods="0"/>
|
|
1828
1914
|
<line num="6" count="0" type="stmt"/>
|
|
@@ -1862,5 +1948,71 @@
|
|
|
1862
1948
|
<line num="82" count="10" type="stmt"/>
|
|
1863
1949
|
</file>
|
|
1864
1950
|
</package>
|
|
1951
|
+
<package name="src.hooks.exportMap">
|
|
1952
|
+
<metrics statements="57" coveredstatements="1" conditionals="14" coveredconditionals="0" methods="15" coveredmethods="0"/>
|
|
1953
|
+
<file name="index.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/exportMap/index.ts">
|
|
1954
|
+
<metrics statements="7" coveredstatements="0" conditionals="2" coveredconditionals="0" methods="3" coveredmethods="0"/>
|
|
1955
|
+
<line num="14" count="0" type="stmt"/>
|
|
1956
|
+
<line num="16" count="0" type="stmt"/>
|
|
1957
|
+
<line num="17" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1958
|
+
<line num="18" count="0" type="stmt"/>
|
|
1959
|
+
<line num="21" count="0" type="stmt"/>
|
|
1960
|
+
<line num="24" count="0" type="stmt"/>
|
|
1961
|
+
<line num="27" count="0" type="stmt"/>
|
|
1962
|
+
</file>
|
|
1963
|
+
<file name="lib.ts" path="/home/runner/work/react-map-components-maplibre/react-map-components-maplibre/src/hooks/exportMap/lib.ts">
|
|
1964
|
+
<metrics statements="50" coveredstatements="1" conditionals="12" coveredconditionals="0" methods="12" coveredmethods="0"/>
|
|
1965
|
+
<line num="20" count="10" type="stmt"/>
|
|
1966
|
+
<line num="21" count="0" type="stmt"/>
|
|
1967
|
+
<line num="22" count="0" type="stmt"/>
|
|
1968
|
+
<line num="25" count="0" type="stmt"/>
|
|
1969
|
+
<line num="26" count="0" type="stmt"/>
|
|
1970
|
+
<line num="27" count="0" type="stmt"/>
|
|
1971
|
+
<line num="28" count="0" type="stmt"/>
|
|
1972
|
+
<line num="29" count="0" type="stmt"/>
|
|
1973
|
+
<line num="30" count="0" type="stmt"/>
|
|
1974
|
+
<line num="31" count="0" type="stmt"/>
|
|
1975
|
+
<line num="33" count="0" type="stmt"/>
|
|
1976
|
+
<line num="36" count="0" type="stmt"/>
|
|
1977
|
+
<line num="37" count="0" type="stmt"/>
|
|
1978
|
+
<line num="39" count="0" type="stmt"/>
|
|
1979
|
+
<line num="42" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1980
|
+
<line num="43" count="0" type="stmt"/>
|
|
1981
|
+
<line num="49" count="0" type="stmt"/>
|
|
1982
|
+
<line num="62" count="0" type="stmt"/>
|
|
1983
|
+
<line num="68" count="0" type="stmt"/>
|
|
1984
|
+
<line num="71" count="0" type="stmt"/>
|
|
1985
|
+
<line num="76" count="0" type="stmt"/>
|
|
1986
|
+
<line num="81" count="0" type="stmt"/>
|
|
1987
|
+
<line num="83" count="0" type="stmt"/>
|
|
1988
|
+
<line num="84" count="0" type="stmt"/>
|
|
1989
|
+
<line num="85" count="0" type="stmt"/>
|
|
1990
|
+
<line num="86" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1991
|
+
<line num="87" count="0" type="stmt"/>
|
|
1992
|
+
<line num="89" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1993
|
+
<line num="90" count="0" type="stmt"/>
|
|
1994
|
+
<line num="92" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1995
|
+
<line num="93" count="0" type="stmt"/>
|
|
1996
|
+
<line num="95" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
1997
|
+
<line num="96" count="0" type="stmt"/>
|
|
1998
|
+
<line num="99" count="0" type="stmt"/>
|
|
1999
|
+
<line num="100" count="0" type="stmt"/>
|
|
2000
|
+
<line num="105" count="0" type="stmt"/>
|
|
2001
|
+
<line num="108" count="0" type="stmt"/>
|
|
2002
|
+
<line num="129" count="0" type="stmt"/>
|
|
2003
|
+
<line num="135" count="0" type="stmt"/>
|
|
2004
|
+
<line num="137" count="0" type="stmt"/>
|
|
2005
|
+
<line num="141" count="0" type="stmt"/>
|
|
2006
|
+
<line num="143" count="0" type="stmt"/>
|
|
2007
|
+
<line num="155" count="0" type="stmt"/>
|
|
2008
|
+
<line num="156" count="0" type="stmt"/>
|
|
2009
|
+
<line num="158" count="0" type="stmt"/>
|
|
2010
|
+
<line num="161" count="0" type="stmt"/>
|
|
2011
|
+
<line num="164" count="0" type="stmt"/>
|
|
2012
|
+
<line num="180" count="0" type="stmt"/>
|
|
2013
|
+
<line num="182" count="0" type="stmt"/>
|
|
2014
|
+
<line num="183" count="0" type="stmt"/>
|
|
2015
|
+
</file>
|
|
2016
|
+
</package>
|
|
1865
2017
|
</project>
|
|
1866
2018
|
</coverage>
|