@tomtom-org/maps-sdk-plugin-agent-toolkit 0.2.6 → 0.2.7
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/index.d.ts +12 -13
- package/dist/index.es.js +1 -1
- package/dist/index.es.js.map +1 -1
- package/package.json +3 -3
package/dist/index.d.ts
CHANGED
|
@@ -918,14 +918,13 @@ export declare type PlacesEntry = {
|
|
|
918
918
|
/** Lazy place-id → boundary polygon index, built on first lookup through PlacesState.getGeometryForPlace. */
|
|
919
919
|
_geometryByPlaceId?: Record<string, PolygonFeature<CommonPlaceProps>>;
|
|
920
920
|
/**
|
|
921
|
-
* Per-entry display modules.
|
|
922
|
-
*
|
|
923
|
-
*
|
|
921
|
+
* Per-entry display modules. An entry is rendered under at most one marker theme at a time,
|
|
922
|
+
* so a single PlacesModule covers all themes — `_showEntryAs` rethemes it via `applyTheme`.
|
|
923
|
+
* A dedicated GeometriesModule renders the entry's boundary polygons.
|
|
924
|
+
* Lazy-initialised via PlacesState helpers — undefined until first show.
|
|
924
925
|
*/
|
|
925
926
|
_modules?: {
|
|
926
|
-
|
|
927
|
-
baseMap?: PlacesModule;
|
|
928
|
-
pinClustered?: PlacesModule;
|
|
927
|
+
places?: PlacesModule;
|
|
929
928
|
geometries?: GeometriesModule;
|
|
930
929
|
};
|
|
931
930
|
/** The marker theme currently rendering this entry, or undefined when hidden. */
|
|
@@ -939,10 +938,10 @@ declare type PlacesMarkerType = 'pin' | 'base-map' | 'pin-clustered';
|
|
|
939
938
|
* State for the places layer: an append-only history of place results plus per-entry display
|
|
940
939
|
* modules.
|
|
941
940
|
*
|
|
942
|
-
* Each entry owns
|
|
943
|
-
*
|
|
944
|
-
*
|
|
945
|
-
* side under different themes without sharing a single source.
|
|
941
|
+
* Each entry owns a single PlacesModule (rethemed in-place via `applyTheme` when the marker
|
|
942
|
+
* type changes — an entry only renders under one theme at a time) and a dedicated
|
|
943
|
+
* GeometriesModule, lazy-initialised on first show. Display state lives on the entry, so two
|
|
944
|
+
* entries can be rendered side by side under different themes without sharing a single source.
|
|
946
945
|
*
|
|
947
946
|
* @group Agent Toolkit
|
|
948
947
|
*/
|
|
@@ -966,9 +965,9 @@ declare class PlacesState implements StateSlice {
|
|
|
966
965
|
*/
|
|
967
966
|
setEntryMode(mode: EntryMode): Promise<void>;
|
|
968
967
|
/**
|
|
969
|
-
* Lazy-init and return the entry's PlacesModule
|
|
970
|
-
*
|
|
971
|
-
*
|
|
968
|
+
* Lazy-init and return the entry's PlacesModule, rethemed to `markerType`. An entry only
|
|
969
|
+
* ever renders under one theme at a time, so the same module is reused — flipping themes
|
|
970
|
+
* calls `applyTheme` in place. Throws when the entry id is unknown.
|
|
972
971
|
*/
|
|
973
972
|
getEntryPlacesModule(entryId: string, markerType: PlacesMarkerType): Promise<PlacesModule>;
|
|
974
973
|
/**
|