@minmaps-dev/mm-web-sdk 1.0.0-rc.36 → 1.0.0-rc.37

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
@@ -574,6 +574,22 @@ interface SDKOptions {
574
574
  * (matches `informationBadge`'s default green disc).
575
575
  */
576
576
  informationIconColor?: string;
577
+ /**
578
+ * Badge for the end-of-route flag (`poi-route-end-flag`) shown in place of a
579
+ * destination's dot while a route to it is displayed. Has its own defaults
580
+ * (green disc, white ring) that don't follow `amenityBadge`. Pass an object
581
+ * to tune the disc / ring, or `false` for the bare flag glyph with no badge.
582
+ * When `amenityBadge` is `false`, the flag is badge-less too unless this is
583
+ * set explicitly. Under the high-contrast theme the disc colour is forced to
584
+ * the high-contrast amenity yellow, like the amenity and connector badges.
585
+ */
586
+ routeEndBadge?: AmenityBadgeStyle | false;
587
+ /**
588
+ * Flag glyph colour on the end-of-route badge. Default white (contrasts the
589
+ * default green disc); doesn't follow `amenityIconColor`. Ignored under the
590
+ * high-contrast theme, which forces its own glyph colour.
591
+ */
592
+ routeEndIconColor?: string;
577
593
  styleMode?: 'venueStyleUrl' | 'sdkTemplate';
578
594
  templateOverrideMode?: 'colorsOnly' | 'colorsAndConstants' | 'all';
579
595
  }
@@ -1650,6 +1666,18 @@ declare class MinuteMaps {
1650
1666
  private writeActiveStepHighlight;
1651
1667
  private clearActiveStepHighlight;
1652
1668
  clearRoute(): void;
1669
+ /**
1670
+ * Put the end-of-route marker on `poi`, or take it down (`null`).
1671
+ *
1672
+ * A destination gets a flag in place of its dot; an amenity instance gets an
1673
+ * enlarged copy of its own icon (`map/routeEnd.ts`). Both are drawn from a
1674
+ * source of their own, so this never touches the POI layers — clearing the
1675
+ * route empties the source and the ordinary dot / icon are what remain.
1676
+ *
1677
+ * The routed restroom is also kept out of restroom grouping while the marker
1678
+ * is up; see `RestroomGroupManager.setExcludedKey`.
1679
+ */
1680
+ private setRouteEnd;
1653
1681
  /**
1654
1682
  * Highlight a single POI on the map — a pulsing ring — and bring it into
1655
1683
  * view. Resolves the POI across all floors, switching the active floor if
@@ -1729,6 +1757,25 @@ declare class MinuteMaps {
1729
1757
  * survive.
1730
1758
  */
1731
1759
  private setDestinationFocus;
1760
+ /**
1761
+ * Select every destination inside a tapped cluster bubble, so a consumer's
1762
+ * multi-place card lists them — the same `poiSelected` a tap on stacked pins
1763
+ * emits.
1764
+ *
1765
+ * Unlike `emitPoiSelected` this raises no room and narrows no markers. A
1766
+ * cluster spans rooms, so there is no one unit to raise or dim around, and
1767
+ * the destination focus would filter out the bubble that was just tapped
1768
+ * (its features carry no `id`) and the members hidden inside it with it.
1769
+ * Any earlier selection is cleared first, so a room left raised by the last
1770
+ * tap doesn't outlive this one. `clearHighlight` afterwards is a harmless
1771
+ * no-op for the consumer to call on dismiss.
1772
+ *
1773
+ * The leaves are read back from the cluster source (`getClusterLeaves`: a
1774
+ * promise on MapLibre v5, a callback on v4 — `peerDependencies` allows both)
1775
+ * and resolved against the floor's POIs, since a source feature only carries
1776
+ * enough identity to look the full POI (with its waypoint) back up.
1777
+ */
1778
+ private selectCluster;
1732
1779
  /** Gentle pan so the selection sits in the centre of the map area MapLibre
1733
1780
  * frames within `boundsPadding` (which the consumer sets to reserve for its
1734
1781
  * bottom-docked chrome / info card). A straight `easeTo`, current zoom kept,