@mapcreator/sdk 0.0.0-uncluster.0 → 0.0.0-uncluster.1
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/dist/HighlightManager.d.ts +4 -10
- package/dist/PopupManager.d.ts +10 -14
- package/dist/constants/index.d.ts +1 -1
- package/dist/mapcreator-sdk.js +3066 -3061
- package/dist/mapcreator-sdk.umd.cjs +53 -53
- package/dist/report.html +1 -1
- package/dist/utils/helpers.d.ts +2 -0
- package/package.json +2 -2
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
import { Map } from '@mapcreator/maplibre-gl';
|
|
2
2
|
import { PopupElement } from './Registry';
|
|
3
|
-
import { PopupManager } from './PopupManager';
|
|
4
3
|
export declare class HighlightManager {
|
|
5
4
|
private map;
|
|
6
5
|
private popupElements;
|
|
6
|
+
private currentPopupElement;
|
|
7
7
|
private markerLayerIds;
|
|
8
8
|
private resizeObserver?;
|
|
9
|
-
private popupManager;
|
|
10
9
|
private hiddenCluster?;
|
|
11
10
|
private clusterCheckId;
|
|
12
|
-
constructor(map: Map, popupElements: PopupElement[]
|
|
13
|
-
highlight(popupElement: PopupElement | undefined, cycle?: boolean):
|
|
11
|
+
constructor(map: Map, popupElements: PopupElement[]);
|
|
12
|
+
highlight(popupElement: PopupElement | undefined, cycle?: boolean): void;
|
|
14
13
|
private resetCluster;
|
|
15
14
|
private setSelectedClusterState;
|
|
16
15
|
private resetHiddenCluster;
|
|
17
16
|
private checkCluster;
|
|
17
|
+
private refreshCurrentCluster;
|
|
18
18
|
private deselect;
|
|
19
19
|
private highlightGroupedMarker;
|
|
20
20
|
private fadeOtherMarkers;
|
|
@@ -22,10 +22,4 @@ export declare class HighlightManager {
|
|
|
22
22
|
private getElementBounds;
|
|
23
23
|
private flattenCoordinates;
|
|
24
24
|
private panToElement;
|
|
25
|
-
private visibleOnGlobe;
|
|
26
|
-
private lngLatToUnitVector;
|
|
27
|
-
private rotateVectorAroundAxis;
|
|
28
|
-
private rotateAroundZ;
|
|
29
|
-
private cross;
|
|
30
|
-
private normalize;
|
|
31
25
|
}
|
package/dist/PopupManager.d.ts
CHANGED
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
import { Map as MapLibre, MapGeoJSONFeature, MapLayerMouseEvent, LngLatLike } from '@mapcreator/maplibre-gl';
|
|
2
|
-
import { PopupElement } from './Registry';
|
|
3
2
|
import { JobObject, PopupPosition } from './types/jobObject';
|
|
4
3
|
import { Mode } from './types';
|
|
5
4
|
export declare class PopupManager {
|
|
6
5
|
private map;
|
|
6
|
+
private mode;
|
|
7
|
+
private language;
|
|
8
|
+
private publication;
|
|
9
|
+
private restrictMapMovement;
|
|
10
|
+
private center;
|
|
7
11
|
private popupPosition;
|
|
8
12
|
private mapContainer;
|
|
13
|
+
private highlightManager;
|
|
14
|
+
private registry;
|
|
15
|
+
private promoteIdCache;
|
|
16
|
+
private popupElements;
|
|
9
17
|
private popupContainer;
|
|
18
|
+
private floatingPopup;
|
|
10
19
|
private feature;
|
|
11
|
-
private currentFeatureId;
|
|
12
20
|
private currentModelId;
|
|
13
|
-
private popupElements;
|
|
14
|
-
private language;
|
|
15
|
-
private promoteIdCache;
|
|
16
|
-
private publication;
|
|
17
|
-
private floatingPopup;
|
|
18
|
-
private registry;
|
|
19
|
-
private highlightManager;
|
|
20
|
-
private mode;
|
|
21
|
-
private restrictMapMovement;
|
|
22
|
-
private center;
|
|
23
21
|
constructor(map: MapLibre, mode: Mode);
|
|
24
22
|
setJobObject(jobObject: JobObject): void;
|
|
25
23
|
setParams(popupPosition: PopupPosition, language: string, restrictMapMovement: boolean, center: LngLatLike): void;
|
|
26
24
|
setPublication(publication: string | undefined): void;
|
|
27
25
|
setpopupElements(): void;
|
|
28
26
|
setHighlightManager(): void;
|
|
29
|
-
setCurrentFeatureId(id: number | undefined): void;
|
|
30
27
|
private onMouseMove;
|
|
31
28
|
private onClick;
|
|
32
|
-
getPopupElementFromFeature(feature: MapGeoJSONFeature): PopupElement | undefined;
|
|
33
29
|
getInteractiveFeature(e: MapLayerMouseEvent): MapGeoJSONFeature | undefined;
|
|
34
30
|
private addPopup;
|
|
35
31
|
private addFloatingPopup;
|
|
@@ -14,7 +14,7 @@ type OpacityConfig = {
|
|
|
14
14
|
props: string[];
|
|
15
15
|
defaultValue: number;
|
|
16
16
|
};
|
|
17
|
-
export declare const opacityConfigByType:
|
|
17
|
+
export declare const opacityConfigByType: Record<StyleLayer['type'], OpacityConfig>;
|
|
18
18
|
export declare const allSlotNames: JobObjectSlotName[];
|
|
19
19
|
export declare const slotNameToLayerId: {
|
|
20
20
|
[key in JobObjectSlotName]: string;
|