@mapcomponents/react-maplibre 0.1.85 → 0.1.87
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/CHANGELOG.md +22 -0
- package/dist/components/MlCenterPosition/MlCenterPosition.d.ts +0 -2
- package/dist/components/MlCenterPosition/MlCenterPosition.stories.d.ts +0 -2
- package/dist/components/MlFeatureEditor/MlFeatureEditor.stories.d.ts +1 -0
- package/dist/components/MlFillExtrusionLayer/MlFillExtrusionLayer.d.ts +1 -1
- package/dist/components/MlFillExtrusionLayer/MlFillExtrusionLayer.stories.d.ts +26 -9
- package/dist/components/MlFollowGps/MlFollowGps.d.ts +0 -1
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.d.ts +1 -1
- package/dist/components/MlGeoJsonLayer/MlGeoJsonLayer.stories.d.ts +1 -0
- package/dist/components/MlMeasureTool/MlMeasureTool.d.ts +12 -2
- package/dist/components/MlMeasureTool/MlMeasureTool.stories.d.ts +1 -0
- package/dist/components/MlNavigationCompass/MlNavigationCompass.stories.d.ts +1 -1
- package/dist/components/MlNavigationTools/MlNavigationTools.stories.d.ts +2 -1
- package/dist/components/MlScaleReference/MlScaleReference.stories.d.ts +1 -1
- package/dist/components/MlTemporalController/MlTemporalController.stories.d.ts +1 -0
- package/dist/components/MlThreeJsLayer/MlThreeJsLayer.d.ts +1 -1
- package/dist/components/MlWmsLoader/MlWmsLoader.d.ts +2 -0
- package/dist/contexts/LayerContext.d.ts +1 -0
- package/dist/hooks/useAddImage/useAddImage.d.ts +20 -0
- package/dist/hooks/useAddImage/useAddImage.stories.d.ts +14 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +922 -681
- package/dist/index.esm.js.map +1 -1
- package/dist/ui_components/LayerList/LayerListItem.d.ts +2 -0
- package/dist/ui_components/LayerList/LayerListItemFactory.d.ts +1 -0
- package/dist/ui_components/LayerList/util/SortableContainer.d.ts +7 -0
- package/dist/ui_components/MapcomponentsTheme.d.ts +8 -0
- package/package.json +7 -5
|
@@ -11,6 +11,8 @@ interface LayerListItemProps {
|
|
|
11
11
|
showDeleteButton?: boolean;
|
|
12
12
|
listItemSx?: SxProps;
|
|
13
13
|
buttons?: JSX.Element;
|
|
14
|
+
layerId?: string;
|
|
15
|
+
sortable?: boolean;
|
|
14
16
|
}
|
|
15
17
|
declare function LayerListItem({ layerComponent, visible, type, name, description, configurable, setLayerState, ...props }: LayerListItemProps): JSX.Element;
|
|
16
18
|
declare namespace LayerListItem {
|
|
@@ -5,6 +5,7 @@ export interface LayerListItemFactoryProps {
|
|
|
5
5
|
layers: LayerConfig[];
|
|
6
6
|
setLayers?: (layers: LayerConfig[] | ((state: LayerConfig[]) => LayerConfig[])) => void;
|
|
7
7
|
insertBeforeLayer?: string;
|
|
8
|
+
sortable?: boolean;
|
|
8
9
|
}
|
|
9
10
|
declare function LayerListItemFactory(props: LayerListItemFactoryProps): JSX.Element;
|
|
10
11
|
declare namespace LayerListItemFactory {
|
|
@@ -7,9 +7,17 @@ declare module '@mui/material' {
|
|
|
7
7
|
navColor: string;
|
|
8
8
|
navHover: string;
|
|
9
9
|
};
|
|
10
|
+
GPS: {
|
|
11
|
+
GPSActiveColor: string;
|
|
12
|
+
GPSInactiveColor: string;
|
|
13
|
+
GPSActiveBackgroundColor: string;
|
|
14
|
+
};
|
|
10
15
|
compass: {
|
|
11
16
|
compColor: string;
|
|
12
17
|
compHover: string;
|
|
18
|
+
compStroke: string;
|
|
19
|
+
compNorth: string;
|
|
20
|
+
compSouth: string;
|
|
13
21
|
};
|
|
14
22
|
}
|
|
15
23
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mapcomponents/react-maplibre",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.87",
|
|
4
4
|
"main": "dist/index.esm.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"module": "dist/index.esm.js",
|
|
@@ -19,6 +19,9 @@
|
|
|
19
19
|
"create-component": "./scripts/create-map-component.sh"
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
|
+
"@dnd-kit/core": "^6.0.8",
|
|
23
|
+
"@dnd-kit/modifiers": "^6.0.1",
|
|
24
|
+
"@dnd-kit/sortable": "^7.0.2",
|
|
22
25
|
"@emotion/css": "^11.10.5",
|
|
23
26
|
"@emotion/react": "^11.10.8",
|
|
24
27
|
"@emotion/styled": "^11.10.8",
|
|
@@ -28,6 +31,7 @@
|
|
|
28
31
|
"@mui/material": "^5.12.3",
|
|
29
32
|
"@turf/turf": "^6.5.0",
|
|
30
33
|
"@types/react-color": "^3.0.6",
|
|
34
|
+
"@xmldom/xmldom": "^0.8.10",
|
|
31
35
|
"d3": "^7.8.2",
|
|
32
36
|
"jspdf": "^2.5.1",
|
|
33
37
|
"maplibre-gl": "^2.4.0",
|
|
@@ -37,8 +41,7 @@
|
|
|
37
41
|
"three": "^0.149.0",
|
|
38
42
|
"traverse": "^0.6.7",
|
|
39
43
|
"uuid": "^9.0.0",
|
|
40
|
-
"wms-capabilities": "^0.6.0"
|
|
41
|
-
"xmldom": "^0.6.0"
|
|
44
|
+
"wms-capabilities": "^0.6.0"
|
|
42
45
|
},
|
|
43
46
|
"peerDependencies": {},
|
|
44
47
|
"devDependencies": {
|
|
@@ -115,8 +118,7 @@
|
|
|
115
118
|
"sql.js": "^1.8.0",
|
|
116
119
|
"storybook-source-link": "^2.0.4",
|
|
117
120
|
"ts-jest": "^29.0.5",
|
|
118
|
-
"typescript": "^4.9.4"
|
|
119
|
-
"xmldom": "^0.6.0"
|
|
121
|
+
"typescript": "^4.9.4"
|
|
120
122
|
},
|
|
121
123
|
"jest": {
|
|
122
124
|
"roots": [
|