@opengeoweb/core 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.esm.js +960 -689
- package/index.umd.js +965 -669
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/LayerRow.d.ts +1 -0
- package/lib/components/LayerManager/LayerContainerRow/{LayerManagerButton.spec.d.ts → LayerRow/LayerRowConnect.spec.d.ts} +0 -0
- package/lib/components/LayerManager/LayerManagerUtils.d.ts +2 -2
- package/lib/components/MapView/MapViewLayer.d.ts +3 -0
- package/lib/components/ReactMapView/AdagucMapDraw.d.ts +12 -7
- package/lib/components/ReactMapView/AdagucMapDraw.stories.d.ts +4 -0
- package/lib/components/ReactMapView/AdagucMapDrawContainer.d.ts +2 -1
- package/lib/components/ReactMapView/AdagucMapDrawTools.d.ts +9 -0
- package/lib/components/{LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayer.spec.d.ts → ReactMapView/AdagucMapDrawTools.spec.d.ts} +0 -0
- package/lib/components/SyncGroups/SyncGroupViewer.d.ts +2 -0
- package/lib/components/SyncGroups/SyncGroupViewerConnect.d.ts +1 -6
- package/lib/components/SyncGroups/selector.d.ts +4 -4
- package/lib/components/TimeSlider/TimeSliderButtons/PlayButton/PlayButtonConnect.d.ts +1 -0
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegend.d.ts +2 -0
- package/lib/components/TimeSlider/TimeSliderLegend/TimeSliderLegendRenderFunctions.d.ts +1 -1
- package/lib/components/TooltipSelect/TooltipSelect.d.ts +0 -1
- package/lib/store/generic/selectors.d.ts +1 -0
- package/lib/store/generic/synchronizationGroups/actions.d.ts +2 -1
- package/lib/store/generic/synchronizationGroups/constants.d.ts +1 -0
- package/lib/store/generic/synchronizationGroups/sagas.d.ts +1 -0
- package/lib/store/generic/synchronizationGroups/selectors.d.ts +13 -0
- package/lib/store/generic/synchronizationGroups/types.d.ts +11 -2
- package/lib/store/layerSelect/sagas.d.ts +2 -1
- package/lib/store/mapStore/map/selectors.d.ts +30 -0
- package/lib/store/mapStore/service/types.d.ts +2 -1
- package/lib/store/ui/types.d.ts +1 -1
- package/lib/utils/localStorage.d.ts +3 -0
- package/lib/utils/testUtils.d.ts +2 -1
- package/package.json +7 -6
- package/lib/components/LayerManager/LayerContainerRow/LayerManagerButton.d.ts +0 -13
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/DeleteLayer/DeleteLayer.d.ts +0 -8
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayer.d.ts +0 -8
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayer.spec.d.ts +0 -1
- package/lib/components/LayerManager/LayerContainerRow/LayerRow/styles.d.ts +0 -5
|
File without changes
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
export declare const LayerManagerColumnsLarge: (props?: any) => import("@mui/styles").ClassNameMap<"column1" | "column2" | "column3" | "column4" | "column5" | "column6">;
|
|
2
|
-
export declare const LayerManagerColumnsSmall: (props?: any) => import("@mui/styles").ClassNameMap<"column1" | "column2" | "column3" | "column4" | "column5" | "column6">;
|
|
1
|
+
export declare const LayerManagerColumnsLarge: (props?: any) => import("@mui/styles").ClassNameMap<"column1" | "column2" | "column3" | "column4" | "column5" | "column6" | "columns35">;
|
|
2
|
+
export declare const LayerManagerColumnsSmall: (props?: any) => import("@mui/styles").ClassNameMap<"column1" | "column2" | "column3" | "column4" | "column5" | "column6" | "columns35">;
|
|
3
3
|
export declare enum LayerManagerWidth {
|
|
4
4
|
sm = 0,
|
|
5
5
|
lg = 1
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { FeatureEvent } from '../ReactMapView/AdagucMapDraw';
|
|
2
3
|
interface MapViewLayerProps {
|
|
3
4
|
id: string;
|
|
4
5
|
onLayerReady?: (layer: any, webmap?: any) => void;
|
|
@@ -9,6 +10,8 @@ interface MapViewLayerProps {
|
|
|
9
10
|
updateGeojson?: (geoJson: any) => void;
|
|
10
11
|
exitDrawModeCallback?: () => void;
|
|
11
12
|
featureNrToEdit?: number;
|
|
13
|
+
onClickFeature?: (event: FeatureEvent) => void;
|
|
14
|
+
onHoverFeature?: (event: FeatureEvent) => void;
|
|
12
15
|
}
|
|
13
16
|
declare const MapViewLayer: React.FC<MapViewLayerProps>;
|
|
14
17
|
export default MapViewLayer;
|
|
@@ -7,8 +7,8 @@ export declare const featureMultiPoint: GeoJSON.Feature<GeoJSON.MultiPoint>;
|
|
|
7
7
|
export declare const featurePolygon: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
8
8
|
export declare const featureBox: GeoJSON.Feature<GeoJSON.Polygon>;
|
|
9
9
|
export declare const lineString: GeoJSON.FeatureCollection;
|
|
10
|
-
declare type GeoJsonFeatureType = GeoJSON.Polygon | GeoJSON.MultiPoint | GeoJSON.Point | GeoJSON.LineString;
|
|
11
|
-
declare type GeoJsonFeature = GeoJSON.Feature<GeoJsonFeatureType>;
|
|
10
|
+
export declare type GeoJsonFeatureType = GeoJSON.Polygon | GeoJSON.MultiPoint | GeoJSON.Point | GeoJSON.LineString | GeoJSON.MultiPolygon;
|
|
11
|
+
export declare type GeoJsonFeature = GeoJSON.Feature<GeoJsonFeatureType>;
|
|
12
12
|
declare type GeoFeatureStyle = {
|
|
13
13
|
stroke?: string;
|
|
14
14
|
fill?: string;
|
|
@@ -16,7 +16,7 @@ declare type GeoFeatureStyle = {
|
|
|
16
16
|
'stroke-opacity'?: number;
|
|
17
17
|
'fill-opacity'?: number;
|
|
18
18
|
};
|
|
19
|
-
declare type Coordinate = {
|
|
19
|
+
export declare type Coordinate = {
|
|
20
20
|
x: number;
|
|
21
21
|
y: number;
|
|
22
22
|
};
|
|
@@ -32,12 +32,14 @@ declare type AdagucInputEvent = {
|
|
|
32
32
|
mouseY: number;
|
|
33
33
|
rightButton: boolean;
|
|
34
34
|
};
|
|
35
|
-
export
|
|
36
|
-
|
|
35
|
+
export interface FeatureEvent {
|
|
36
|
+
coordinateIndexInFeature: number;
|
|
37
37
|
featureIndex: number;
|
|
38
38
|
mouseX: number;
|
|
39
39
|
mouseY: number;
|
|
40
|
-
|
|
40
|
+
isInEditMode: boolean;
|
|
41
|
+
feature: GeoJsonFeature;
|
|
42
|
+
}
|
|
41
43
|
export interface AdagucMapDrawProps {
|
|
42
44
|
webmapjs: WMJSMap;
|
|
43
45
|
geojson: GeoJSON.FeatureCollection;
|
|
@@ -47,7 +49,8 @@ export interface AdagucMapDrawProps {
|
|
|
47
49
|
isInEditMode: boolean;
|
|
48
50
|
isInDeleteMode: boolean;
|
|
49
51
|
featureNrToEdit: number;
|
|
50
|
-
|
|
52
|
+
onHoverFeature?: (event: FeatureEvent) => void;
|
|
53
|
+
onClickFeature?: (event: FeatureEvent) => void;
|
|
51
54
|
updateGeojson: (geoJson: GeometryObject, text: string) => void;
|
|
52
55
|
}
|
|
53
56
|
export declare enum EDITMODE {
|
|
@@ -100,10 +103,12 @@ export default class AdagucMapDraw extends React.PureComponent<AdagucMapDrawProp
|
|
|
100
103
|
mouseX?: number;
|
|
101
104
|
mouseY?: number;
|
|
102
105
|
};
|
|
106
|
+
mouseStoppedTimer: number;
|
|
103
107
|
snappedPolygonIndex: SNAPPEDFEATURE | number;
|
|
104
108
|
mouseX: number;
|
|
105
109
|
mouseY: number;
|
|
106
110
|
mouseOverPolygonFeatureIndex: number;
|
|
111
|
+
mouseOverPolygonIndex: number;
|
|
107
112
|
drawMode: string;
|
|
108
113
|
disabled: boolean;
|
|
109
114
|
static defaultProps: {
|
|
@@ -10,7 +10,8 @@ export declare type FeatureLayer = {
|
|
|
10
10
|
isInDeleteMode?: boolean;
|
|
11
11
|
geojson?: GeoJSON.FeatureCollection;
|
|
12
12
|
drawMode?: string;
|
|
13
|
-
|
|
13
|
+
onHoverFeature?: (feature: FeatureEvent) => void;
|
|
14
|
+
onClickFeature?: (feature: FeatureEvent) => void;
|
|
14
15
|
updateGeojson?: (feature: GeometryObject) => void;
|
|
15
16
|
exitDrawModeCallback?: () => void;
|
|
16
17
|
featureNrToEdit?: string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Position } from 'geojson';
|
|
2
|
+
import type { Coordinate, GeoJsonFeature } from './AdagucMapDraw';
|
|
3
|
+
export declare type CheckHoverFeaturesResult = {
|
|
4
|
+
coordinateIndexInFeature: number;
|
|
5
|
+
featureIndex: number;
|
|
6
|
+
feature: GeoJsonFeature;
|
|
7
|
+
} | null;
|
|
8
|
+
export declare const distance: (a: Coordinate, b: Coordinate) => number;
|
|
9
|
+
export declare const checkHoverFeatures: (geojson: GeoJSON.FeatureCollection, mouseX: number, mouseY: number, convertGeoCoordsToScreenCoords: (featureCoords: Position[]) => Coordinate[]) => CheckHoverFeaturesResult;
|
|
File without changes
|
|
@@ -9,6 +9,8 @@ interface SyncGroupViewerProps {
|
|
|
9
9
|
syncGroupRemoveTarget: (payload: SyncgroupTypes.SyncGroupRemoveTargetPayload) => void;
|
|
10
10
|
syncGroupAddGroup: (payload: SyncgroupTypes.SyncGroupAddGroupPayload) => void;
|
|
11
11
|
syncGroupRemoveGroup: (payload: SyncgroupTypes.SyncGroupRemoveGroupPayload) => void;
|
|
12
|
+
onMouseDown?: () => void;
|
|
13
|
+
order?: number;
|
|
12
14
|
}
|
|
13
15
|
export declare const SyncGroupViewer: React.FC<SyncGroupViewerProps>;
|
|
14
16
|
export {};
|
|
@@ -1,20 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { SynchronizationGroups, SynchronizationSources, SyncType } from '../../store/generic/synchronizationGroups/types';
|
|
2
2
|
import { SyncGroupViewState } from './types';
|
|
3
3
|
export declare const groupTypes: {
|
|
4
4
|
title: string;
|
|
5
5
|
syncType: SyncType;
|
|
6
6
|
groupType: string;
|
|
7
7
|
}[];
|
|
8
|
-
export declare const createSyncGroupViewState: (
|
|
8
|
+
export declare const createSyncGroupViewState: (groups: SynchronizationGroups, sources: SynchronizationSources) => SyncGroupViewState;
|
|
9
9
|
export declare const createSyncGroupViewStateSelector: ((state: {
|
|
10
10
|
advancedLayerStore?: import("../../store/advancedLayerStore/types").AdvancedLayerStoreState;
|
|
11
|
-
syncronizationGroupStore?: SynchronizationGroupState;
|
|
11
|
+
syncronizationGroupStore?: import("../../store/generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
12
12
|
ui?: import("../../store/ui/types").UIStoreType;
|
|
13
13
|
webmap?: import("../../store/mapStore/types").WebMapState;
|
|
14
14
|
services?: import("../../store/mapStore/types").ServiceState;
|
|
15
15
|
layers?: import("../../store/mapStore/types").LayerState;
|
|
16
16
|
layerSelect?: import("../../store/layerSelect/types").LayerSelectStoreType;
|
|
17
|
-
}) => SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0:
|
|
17
|
+
}) => SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroups, args_1: SynchronizationSources) => SyncGroupViewState & {
|
|
18
18
|
clearCache: () => void;
|
|
19
19
|
}> & {
|
|
20
20
|
clearCache: () => void;
|
|
@@ -10,6 +10,7 @@ export interface PlayButtonConnectProps {
|
|
|
10
10
|
mapStartAnimation?: typeof mapActions.mapStartAnimation;
|
|
11
11
|
mapStopAnimation?: typeof mapActions.mapStopAnimation;
|
|
12
12
|
timeStep?: number;
|
|
13
|
+
linkedMapAnimationInfo?: any;
|
|
13
14
|
}
|
|
14
15
|
declare const PlayButtonConnect: React.FC<PlayButtonConnectProps>;
|
|
15
16
|
export default PlayButtonConnect;
|
|
@@ -9,6 +9,8 @@ interface TimeSliderLegendProps {
|
|
|
9
9
|
currentTime?: number;
|
|
10
10
|
dataStartTime?: number;
|
|
11
11
|
dataEndTime?: number;
|
|
12
|
+
animationStartTime?: string;
|
|
13
|
+
animationEndTime?: string;
|
|
12
14
|
isTimeSliderHoverOn?: boolean;
|
|
13
15
|
timeStep?: number;
|
|
14
16
|
onSetNewDate?: (newDate: string) => void;
|
|
@@ -2,4 +2,4 @@ import { Theme } from '@mui/material';
|
|
|
2
2
|
import { Scale } from '../../../store/mapStore/types';
|
|
3
3
|
export declare const getRoundedStartAndEnd: (visibleTimeStart: number, visibleTimeEnd: number, scale: Scale) => [number, number];
|
|
4
4
|
export declare const getCustomRoundedStartAndEnd: (visibleTimeStart: number, visibleTimeEnd: number, unit: string) => [number, number];
|
|
5
|
-
export declare const renderTimeSliderLegend: (context: CanvasRenderingContext2D, theme: Theme, canvasWidth: number, height: number, centerTime: number, secondsPerPx: number, dataScaleToSecondsPerPx: number, selectedTimeUnix: number, scale: Scale, currentTimeUnix: number) => void;
|
|
5
|
+
export declare const renderTimeSliderLegend: (context: CanvasRenderingContext2D, theme: Theme, canvasWidth: number, height: number, centerTime: number, secondsPerPx: number, dataScaleToSecondsPerPx: number, selectedTimeUnix: number, scale: Scale, currentTimeUnix: number, animationStartTime: number, animationEndTime: number) => void;
|
|
@@ -15,6 +15,7 @@ export declare const getSynchronizationGroupStore: ((state: {
|
|
|
15
15
|
export declare const getTime: ((state: {
|
|
16
16
|
sources: import("./synchronizationGroups/types").SynchronizationSources;
|
|
17
17
|
groups: import("./synchronizationGroups/types").SynchronizationGroups;
|
|
18
|
+
viewState: import("../../components/SyncGroups/types").SyncGroupViewState;
|
|
18
19
|
}, params_0: string) => string) & import("reselect").OutputSelectorFields<(args_0: SynchronizationSource) => string & {
|
|
19
20
|
clearCache: () => void;
|
|
20
21
|
}> & {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SyncGroupAddGroupPayload, SyncGroupAddTargetPayload, SyncGroupLinkTargetPayload, SyncGroupRemoveGroupPayload, SyncGroupRemoveSourcePayload, SyncGroupRemoveTargetPayload, SyncGroupsAddSourcePayload, SynchronizationGroupActions } from './types';
|
|
1
|
+
import { SyncGroupAddGroupPayload, SyncGroupAddTargetPayload, SyncGroupLinkTargetPayload, SyncGroupRemoveGroupPayload, SyncGroupRemoveSourcePayload, SyncGroupRemoveTargetPayload, SyncGroupsAddSourcePayload, SynchronizationGroupActions, SyncGroupSetViewStatePayload } from './types';
|
|
2
2
|
/**
|
|
3
3
|
* Add a source component to the sources list.
|
|
4
4
|
*
|
|
@@ -77,3 +77,4 @@ export declare const syncGroupRemoveGroup: (payload: SyncGroupRemoveGroupPayload
|
|
|
77
77
|
* Clear syncGroups
|
|
78
78
|
*/
|
|
79
79
|
export declare const syncGroupClear: () => SynchronizationGroupActions;
|
|
80
|
+
export declare const syncGroupSetViewState: (payload: SyncGroupSetViewStatePayload) => SynchronizationGroupActions;
|
|
@@ -9,3 +9,4 @@ export declare const SYNCGROUPS_CLEAR = "SYNCGROUPS_CLEAR";
|
|
|
9
9
|
export declare const SYNCGROUPS_TYPE_SETTIME = "SYNCGROUPS_TYPE_SETTIME";
|
|
10
10
|
export declare const SYNCGROUPS_TYPE_SETBBOX = "SYNCGROUPS_TYPE_SETBBOX";
|
|
11
11
|
export declare const SYNCGROUPS_TYPE_SETLAYERACTIONS = "SYNCGROUPS_TYPE_SETLAYERACTIONS";
|
|
12
|
+
export declare const SYNCGROUPS_SET_VIEW_STATE = "SYNCGROUPS_SET_VIEW_STATE";
|
|
@@ -3,5 +3,6 @@ import { SyncGroupAddTarget, SyncGroupLinkTarget } from './types';
|
|
|
3
3
|
export declare function updateSourceValueWhenLinkingComponentToGroupSaga(groupId: string, targetToUpdate: string): SagaIterator;
|
|
4
4
|
export declare function addGroupTargetSaga({ payload, }: SyncGroupAddTarget): SagaIterator;
|
|
5
5
|
export declare function linkGroupTargetSaga({ payload, }: SyncGroupLinkTarget): SagaIterator;
|
|
6
|
+
export declare function updateViewStateSaga(): SagaIterator;
|
|
6
7
|
declare function rootSaga(): SagaIterator;
|
|
7
8
|
export default rootSaga;
|
|
@@ -27,3 +27,16 @@ export declare const getSynchronizationGroup: (state: AppStore, id: string) => S
|
|
|
27
27
|
export declare const getSynchronizationGroupSource: (state: AppStore, id: string) => SynchronizationSource;
|
|
28
28
|
export declare const getTargets: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => SetBboxSyncPayload[] | SetTimeSyncPayload[];
|
|
29
29
|
export declare const getTargetGroups: (state: AppStore, payload: GenericActionPayload, actionType: SyncType) => string[];
|
|
30
|
+
export declare const syncGroupGetViewState: ((state: {
|
|
31
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
32
|
+
syncronizationGroupStore?: SynchronizationGroupState;
|
|
33
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
34
|
+
webmap?: import("../../mapStore/types").WebMapState;
|
|
35
|
+
services?: import("../../mapStore/types").ServiceState;
|
|
36
|
+
layers?: import("../../mapStore/types").LayerState;
|
|
37
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
38
|
+
}) => import("../../../components/SyncGroups/types").SyncGroupViewState) & import("reselect").OutputSelectorFields<(args_0: SynchronizationGroupState) => import("../../../components/SyncGroups/types").SyncGroupViewState & {
|
|
39
|
+
clearCache: () => void;
|
|
40
|
+
}> & {
|
|
41
|
+
clearCache: () => void;
|
|
42
|
+
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
2
|
import { GenericActionPayload } from '../types';
|
|
3
|
-
import { SYNCGROUPS_ADD_SOURCE, SYNCGROUPS_REMOVE_SOURCE, SYNCGROUPS_TOGGLE_LINK_TARGET, SYNCGROUPS_ADD_TARGET, SYNCGROUPS_REMOVE_TARGET, SYNCGROUPS_ADD_GROUP, SYNCGROUPS_REMOVE_GROUP, SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME, SYNCGROUPS_TYPE_SETLAYERACTIONS, SYNCGROUPS_CLEAR } from './constants';
|
|
3
|
+
import { SYNCGROUPS_ADD_SOURCE, SYNCGROUPS_REMOVE_SOURCE, SYNCGROUPS_TOGGLE_LINK_TARGET, SYNCGROUPS_ADD_TARGET, SYNCGROUPS_REMOVE_TARGET, SYNCGROUPS_ADD_GROUP, SYNCGROUPS_REMOVE_GROUP, SYNCGROUPS_TYPE_SETBBOX, SYNCGROUPS_TYPE_SETTIME, SYNCGROUPS_TYPE_SETLAYERACTIONS, SYNCGROUPS_CLEAR, SYNCGROUPS_SET_VIEW_STATE } from './constants';
|
|
4
|
+
import { SyncGroupViewState } from '../../../components/SyncGroups/types';
|
|
4
5
|
export interface SynchronizationGroup {
|
|
5
6
|
type: SyncType;
|
|
6
7
|
title?: string;
|
|
@@ -28,6 +29,7 @@ export interface SynchronizationGroups {
|
|
|
28
29
|
export interface SynchronizationGroupState {
|
|
29
30
|
sources: SynchronizationSources;
|
|
30
31
|
groups: SynchronizationGroups;
|
|
32
|
+
viewState: SyncGroupViewState;
|
|
31
33
|
}
|
|
32
34
|
export interface SynchronizationGroupModuleState {
|
|
33
35
|
syncronizationGroupStore?: SynchronizationGroupState;
|
|
@@ -63,6 +65,9 @@ export interface SyncGroupAddGroupPayload {
|
|
|
63
65
|
export interface SyncGroupRemoveGroupPayload {
|
|
64
66
|
groupId: string;
|
|
65
67
|
}
|
|
68
|
+
export interface SyncGroupSetViewStatePayload {
|
|
69
|
+
viewState: SyncGroupViewState;
|
|
70
|
+
}
|
|
66
71
|
export interface SyncGroupsAddSource extends Action {
|
|
67
72
|
type: typeof SYNCGROUPS_ADD_SOURCE;
|
|
68
73
|
payload: SyncGroupsAddSourcePayload;
|
|
@@ -94,5 +99,9 @@ export interface SyncGroupRemoveGroup extends Action {
|
|
|
94
99
|
export interface SyncGroupClear extends Action {
|
|
95
100
|
type: typeof SYNCGROUPS_CLEAR;
|
|
96
101
|
}
|
|
102
|
+
export interface SyncGroupSetViewState extends Action {
|
|
103
|
+
type: typeof SYNCGROUPS_SET_VIEW_STATE;
|
|
104
|
+
payload: SyncGroupSetViewStatePayload;
|
|
105
|
+
}
|
|
97
106
|
export declare const SyncGroupTypeList: string[];
|
|
98
|
-
export declare type SynchronizationGroupActions = SyncGroupsAddSource | SyncGroupsRemoveSource | SyncGroupAddTarget | SyncGroupRemoveTarget | SyncGroupLinkTarget | SyncGroupAddGroup | SyncGroupRemoveGroup | SyncGroupClear;
|
|
107
|
+
export declare type SynchronizationGroupActions = SyncGroupsAddSource | SyncGroupsRemoveSource | SyncGroupAddTarget | SyncGroupRemoveTarget | SyncGroupLinkTarget | SyncGroupAddGroup | SyncGroupRemoveGroup | SyncGroupClear | SyncGroupSetViewState;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { SagaIterator } from 'redux-saga';
|
|
2
|
-
import { ServiceActions } from '../mapStore/types';
|
|
2
|
+
import { ServiceActions, SetLayersForService } from '../mapStore/types';
|
|
3
3
|
export declare function newServiceAddedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
4
4
|
export declare function layerSelectServiceRemovedSaga(capturedAction: ServiceActions): SagaIterator;
|
|
5
|
+
export declare function addServiceToLocalStorageSaga({ payload, }: SetLayersForService): void;
|
|
5
6
|
export declare function rootSaga(): SagaIterator;
|
|
6
7
|
export default rootSaga;
|
|
@@ -308,6 +308,36 @@ export declare const isAnimating: ((state: {
|
|
|
308
308
|
}> & {
|
|
309
309
|
clearCache: () => void;
|
|
310
310
|
};
|
|
311
|
+
/**
|
|
312
|
+
* Gets if any linked map is animating
|
|
313
|
+
*
|
|
314
|
+
* Example: linkedMapIsAnimating = linkedMapAnimationInfo(store, 'mapid_1')
|
|
315
|
+
* @param {object} store store: object - store object
|
|
316
|
+
* @param {string} mapId mapId: string - Id of the map
|
|
317
|
+
* @returns {object} returnType: object - object containing isAnimating boolean and id string
|
|
318
|
+
*/
|
|
319
|
+
export declare const linkedMapAnimationInfo: ((state: {
|
|
320
|
+
advancedLayerStore?: import("../../advancedLayerStore/types").AdvancedLayerStoreState;
|
|
321
|
+
syncronizationGroupStore?: import("../../generic/synchronizationGroups/types").SynchronizationGroupState;
|
|
322
|
+
ui?: import("../../ui/types").UIStoreType;
|
|
323
|
+
webmap?: WebMapState;
|
|
324
|
+
services?: import("../types").ServiceState;
|
|
325
|
+
layers?: import("../types").LayerState;
|
|
326
|
+
layerSelect?: import("../../layerSelect/types").LayerSelectStoreType;
|
|
327
|
+
}, params_0: string) => {
|
|
328
|
+
isAnimating: boolean;
|
|
329
|
+
id: string;
|
|
330
|
+
}) & import("reselect").OutputSelectorFields<(args_0: {
|
|
331
|
+
isAnimating: boolean;
|
|
332
|
+
id: string;
|
|
333
|
+
}) => {
|
|
334
|
+
isAnimating: boolean;
|
|
335
|
+
id: string;
|
|
336
|
+
} & {
|
|
337
|
+
clearCache: () => void;
|
|
338
|
+
}> & {
|
|
339
|
+
clearCache: () => void;
|
|
340
|
+
};
|
|
311
341
|
/**
|
|
312
342
|
* Gets start time of animation
|
|
313
343
|
*
|
|
@@ -33,8 +33,9 @@ export interface SetLayersForServicePayload {
|
|
|
33
33
|
name: string;
|
|
34
34
|
service: string;
|
|
35
35
|
layers: ServiceLayer[];
|
|
36
|
+
isUserAddedService: boolean;
|
|
36
37
|
}
|
|
37
|
-
interface SetLayersForService extends Action {
|
|
38
|
+
export interface SetLayersForService extends Action {
|
|
38
39
|
type: typeof MAP_SERVICES_SET_LAYERS;
|
|
39
40
|
payload: SetLayersForServicePayload;
|
|
40
41
|
}
|
package/lib/store/ui/types.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Action } from 'redux';
|
|
2
2
|
import { UI_SET_ACTIVE_MAPID_FOR_DIALOG, UI_REGISTER_DIALOG, UI_TOGGLE_DIALOG, UI_UNREGISTER_DIALOG, UI_ORDER_DIALOG } from './constants';
|
|
3
|
-
export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager';
|
|
3
|
+
export declare type DialogType = 'legend' | 'layerManager' | 'layerSelect' | 'dimensionSelect-elevation' | 'dimensionSelect-ensemble_member' | 'keywordFilter' | 'timeSeriesManager' | 'timeSeriesSelect' | 'syncGroups';
|
|
4
4
|
export declare type Source = 'app' | 'module';
|
|
5
5
|
export interface UIType {
|
|
6
6
|
type: DialogType;
|
package/lib/utils/testUtils.d.ts
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { WebMapState, LayerState, Dimension, Layer, WebMapStateModuleState, Scale } from '../store/mapStore/types';
|
|
2
|
+
import { AppStore } from '../types/types';
|
|
2
3
|
export declare const createWebmapState: (...mapIds: string[]) => WebMapState;
|
|
3
4
|
export declare const createLayersState: (layerId: string, props?: {}) => LayerState;
|
|
4
5
|
export declare const createMultipleLayersState: (layers: Layer[], mapId: string) => LayerState;
|
|
5
6
|
export declare const createMapDimensionsState: (dimensions?: Dimension[], ...mapIds: string[]) => WebMapState;
|
|
6
|
-
export declare const mockStateMapWithLayer: (layer: Layer, mapId: string) =>
|
|
7
|
+
export declare const mockStateMapWithLayer: (layer: Layer, mapId: string) => AppStore;
|
|
7
8
|
export declare const mockStateMapWithMultipleLayers: (layers: Layer[], mapId: string) => WebMapStateModuleState;
|
|
8
9
|
export declare const mockStateMapWithDimensions: (layer: Layer, mapId: string) => WebMapStateModuleState;
|
|
9
10
|
export declare const mockStateMapWithDimensionsWithoutLayers: (mapId: string) => WebMapStateModuleState;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/core",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.5.0",
|
|
4
4
|
"description": "GeoWeb Core library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -13,30 +13,31 @@
|
|
|
13
13
|
"dependencies": {},
|
|
14
14
|
"peerDependencies": {
|
|
15
15
|
"react": "^17.0.2",
|
|
16
|
-
"@opengeoweb/theme": "2.
|
|
16
|
+
"@opengeoweb/theme": "2.5.0",
|
|
17
17
|
"@mui/material": "^5.2.8",
|
|
18
18
|
"@mui/styles": "^5.2.3",
|
|
19
19
|
"@mui/icons-material": "^5.2.5",
|
|
20
20
|
"react-redux": "7.2.2",
|
|
21
21
|
"moment": "^2.29.0",
|
|
22
22
|
"react-intl": "^5.17.5",
|
|
23
|
-
"@opengeoweb/webmap": "2.
|
|
23
|
+
"@opengeoweb/webmap": "2.5.0",
|
|
24
24
|
"throttle-debounce": "^3.0.1",
|
|
25
25
|
"proj4": "^2.6.2",
|
|
26
26
|
"react-sortablejs": "^6.0.0",
|
|
27
|
-
"@opengeoweb/shared": "2.
|
|
27
|
+
"@opengeoweb/shared": "2.5.0",
|
|
28
28
|
"react-draggable": "^4.4.3",
|
|
29
29
|
"re-resizable": "^6.9.0",
|
|
30
30
|
"lodash": "^4.17.20",
|
|
31
|
-
"@opengeoweb/form-fields": "2.
|
|
31
|
+
"@opengeoweb/form-fields": "2.5.0",
|
|
32
32
|
"react-hook-form": "^6.12.1",
|
|
33
33
|
"moment-timezone": "^0.5.31",
|
|
34
34
|
"@mui/lab": "^5.0.0-alpha.64",
|
|
35
35
|
"axios": "^0.25.0",
|
|
36
36
|
"redux-dynamic-modules": "^5.2.0",
|
|
37
37
|
"redux": "^4.0.4",
|
|
38
|
-
"lodash.clonedeep": "^4.5.0",
|
|
39
38
|
"immer": "^9.0.6",
|
|
39
|
+
"lodash.clonedeep": "^4.5.0",
|
|
40
|
+
"@turf/turf": "^5.1.6",
|
|
40
41
|
"reselect": "^4.1.5",
|
|
41
42
|
"redux-dynamic-modules-saga": "^5.2.0",
|
|
42
43
|
"redux-saga": "^1.1.3"
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import * as React from 'react';
|
|
2
|
-
import { IconButtonProps } from '@mui/material';
|
|
3
|
-
interface LayerManagerButtonProps extends IconButtonProps {
|
|
4
|
-
tooltipTitle: string;
|
|
5
|
-
onClick?: (event: React.MouseEvent) => void;
|
|
6
|
-
isActive?: boolean;
|
|
7
|
-
isEnabled?: boolean;
|
|
8
|
-
icon: React.ReactNode;
|
|
9
|
-
testId: string;
|
|
10
|
-
isAccessible?: boolean;
|
|
11
|
-
}
|
|
12
|
-
declare const LayerManagerButton: React.FC<LayerManagerButtonProps>;
|
|
13
|
-
export default LayerManagerButton;
|
package/lib/components/LayerManager/LayerContainerRow/LayerRow/EnableLayer/EnableLayer.spec.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|