@minmaps-dev/mm-web-sdk 1.0.0-rc.30 → 1.0.0-rc.31

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 CHANGED
@@ -161,6 +161,23 @@ interface POISearchResult {
161
161
  matchedFields: string[];
162
162
  }
163
163
 
164
+ /**
165
+ * A Zone is a CMS-authored department category — a named, colored grouping
166
+ * (e.g. "Cardiology", "Surgical", "Admin"). Zones are venue-wide (not
167
+ * floor-scoped) in the JACS `/all` payload and carry no geometry of their own;
168
+ * their spatial footprint is derived from the waypoints that reference them
169
+ * (`waypoint.zoneId`), which lets the SDK color-code the room/unit polygons a
170
+ * zone covers. See `map/zones.ts` for the derivation.
171
+ */
172
+ interface Zone {
173
+ id: number;
174
+ name: string;
175
+ /** Authored hex color (e.g. "#d32f2f"); may be empty when the author
176
+ * hasn't picked one — such zones are skipped for color-coding. */
177
+ color: string;
178
+ description?: string;
179
+ }
180
+
164
181
  /** Captured camera state (center, zoom, pitch, bearing) */
165
182
  type CameraState = {
166
183
  center: [number, number];
@@ -354,6 +371,12 @@ interface SDKOptions {
354
371
  enableInteractions?: boolean;
355
372
  customSprite?: string;
356
373
  minIndoorZoom?: number;
374
+ /**
375
+ * Interior unit-wall thickness in feet (default 1). Each wall is built by
376
+ * insetting a ring into each unit by `wallThickness / 2`, so adjacent units
377
+ * share a wall (their rings abut at the common edge). Floored at 0.5 — a
378
+ * thinner value collapses the negative buffer and drops the wall.
379
+ */
357
380
  wallThickness?: number;
358
381
  boundsPadding?: BoundsPadding;
359
382
  /**
@@ -618,6 +641,7 @@ declare class MinuteMaps {
618
641
  getCurrentFloor(): Floor | null;
619
642
  getDefaultFloor(): Floor | null;
620
643
  getDestinations(floor?: Floor): Destination[];
644
+ getZones(): Zone[];
621
645
  getPolygonLayers(): any[];
622
646
  getFloorMapTemplate3d(floorId: string | number): any[];
623
647
  getAllPOIs(floor?: Floor): POI[];
@@ -901,4 +925,4 @@ declare function groupStepsIntoFloorSections(steps: WayfindStep[]): RouteFloorSe
901
925
  declare function activeSectionIndex(sections: RouteFloorSection[], activeStepIndex: number): number;
902
926
 
903
927
  export { MinuteMaps, activeSectionIndex, createMinuteMapsSDK, groupStepsIntoFloorSections };
904
- export type { Amenity, AmenityBadgeStyle, AmenityWithFloor, Bounds, BoundsPadding, CameraState, Destination, DestinationChipStyle, EventCallback, Floor, FloorMetadata, JMapAuth, JMapConfig, JacsAuth, JacsConfig, MapEvent, POI, POISearchResult, RouteFloorSection, RoutePoint, RoutingOptions, SDKConfig, SDKOptions, ThemeName, TransitionStep, ViewOptions, WayfindCenterMode, WayfindStep, Waypoint };
928
+ export type { Amenity, AmenityBadgeStyle, AmenityWithFloor, Bounds, BoundsPadding, CameraState, Destination, DestinationChipStyle, EventCallback, Floor, FloorMetadata, JMapAuth, JMapConfig, JacsAuth, JacsConfig, MapEvent, POI, POISearchResult, RouteFloorSection, RoutePoint, RoutingOptions, SDKConfig, SDKOptions, ThemeName, TransitionStep, ViewOptions, WayfindCenterMode, WayfindStep, Waypoint, Zone };