@minmaps-dev/mm-web-sdk 1.0.0-rc.49 → 1.0.0-rc.50
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.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +43 -1
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/dist/react.cjs +1 -1
- package/dist/react.cjs.map +1 -1
- package/dist/react.d.ts +8 -0
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +2 -2
- package/src/themes/alt3-hybrid-style.json +45 -27
package/dist/index.d.ts
CHANGED
|
@@ -571,6 +571,14 @@ interface SDKOptions {
|
|
|
571
571
|
* max-bounds clamping.
|
|
572
572
|
*/
|
|
573
573
|
maxBounds?: Bounds | number | false;
|
|
574
|
+
/**
|
|
575
|
+
* Hides basemap points of interest (civic and marine icons, park names) that
|
|
576
|
+
* fall within this many metres of the venue's bounds, so an OSM library or
|
|
577
|
+
* chapel on the campus isn't drawn underneath the venue's own map. Defaults
|
|
578
|
+
* to `50`. Street labels, road shields and water labels are never hidden.
|
|
579
|
+
* Pass `false` to show every basemap POI.
|
|
580
|
+
*/
|
|
581
|
+
hideBasemapPoisNearVenue?: number | false;
|
|
574
582
|
/**
|
|
575
583
|
* Whether the venue's kiosk anchors a "You are here" marker, and the opening
|
|
576
584
|
* view / default route origin. Defaults to `true`. Set `false` for non-kiosk
|
|
@@ -1580,6 +1588,9 @@ declare class MinuteMaps {
|
|
|
1580
1588
|
* spotlight, active route) to this venue's own opening view rather than an
|
|
1581
1589
|
* absolute MapLibre zoom, and the roof fill's fade-in. See `zoomViews`. */
|
|
1582
1590
|
private iconZoomBase;
|
|
1591
|
+
/** The current floor's building-label points, as written to
|
|
1592
|
+
* `MAP_LABELS_SOURCE_ID` — what a building-label tap hit-tests against. */
|
|
1593
|
+
private buildingLabelPoints;
|
|
1583
1594
|
/** Which layers show at which zoom: the Campus / Building / Kiosk views, or
|
|
1584
1595
|
* the pinned profile while the idle spotlight or a route is up. Re-applied
|
|
1585
1596
|
* after every `setTheme()` swap, since `setStyle({ diff: false })`
|
|
@@ -1760,6 +1771,20 @@ declare class MinuteMaps {
|
|
|
1760
1771
|
animate?: boolean;
|
|
1761
1772
|
duration?: number;
|
|
1762
1773
|
}): void;
|
|
1774
|
+
/** Whether the "You are here" pin, its name or its ring is drawn under
|
|
1775
|
+
* `point` — the same box the `youAreHereClicked` handler queries, so a tap
|
|
1776
|
+
* that recenters never also selects the room or pins beneath the pin.
|
|
1777
|
+
* Synchronous, and `false` if the query throws: `poi-data` doesn't show the
|
|
1778
|
+
* persistent failure `map/symbolHitTest.ts` works around, only the
|
|
1779
|
+
* one-frame one, and a dropped claim then just lets the tap select. */
|
|
1780
|
+
private isYouAreHereAt;
|
|
1781
|
+
/** The venue marker or building label drawn under `point`, as the point to
|
|
1782
|
+
* zoom in on, or `null`. */
|
|
1783
|
+
private zoomTapTargetAt;
|
|
1784
|
+
/** A venue marker or building label tap: zoom in on that symbol to the Kiosk view,
|
|
1785
|
+
* centered in the area the chrome leaves free (`boundsPadding`). Keeps the
|
|
1786
|
+
* current pitch and bearing. */
|
|
1787
|
+
private zoomToKioskView;
|
|
1763
1788
|
/**
|
|
1764
1789
|
* Content-aware re-frame: fit an active route if one is displayed,
|
|
1765
1790
|
* otherwise fit the current floor's geojson. Unlike `resetView()`, this
|
|
@@ -1777,9 +1802,20 @@ declare class MinuteMaps {
|
|
|
1777
1802
|
* Consumers measure their on-screen chrome (panels, rails) and pass the
|
|
1778
1803
|
* insets so a fit frames the path in the visible, unobscured area rather
|
|
1779
1804
|
* than under the UI. Stored; the next fit / `refit()` uses it (clamped so
|
|
1780
|
-
* a fit always lands — see `clampPadding`).
|
|
1805
|
+
* a fit always lands — see `clampPadding`). While the camera still sits on
|
|
1806
|
+
* the opening view, that view is re-framed with the new insets too (and
|
|
1807
|
+
* becomes `resetView()`'s target) — the opening fit runs before a consumer
|
|
1808
|
+
* can measure chrome that only mounts once the map is ready.
|
|
1781
1809
|
*/
|
|
1782
1810
|
setBoundsPadding(p: BoundsPadding): void;
|
|
1811
|
+
/** Whether the camera is still exactly on the opening view — no pan, zoom,
|
|
1812
|
+
* tilt or rotate since init (or since the last re-frame). */
|
|
1813
|
+
private isAtOpeningView;
|
|
1814
|
+
/** Redo the opening fit (the current floor's footprint, or the venue's
|
|
1815
|
+
* bounds without floor geometry) with the current bounds padding, then the
|
|
1816
|
+
* opening framing policy, and make the result the new `resetView()` target.
|
|
1817
|
+
* Z0 (`iconZoomBase`) is left as captured at init. */
|
|
1818
|
+
private reframeOpeningView;
|
|
1783
1819
|
private fitToBounds;
|
|
1784
1820
|
set3dEnabled(enabled: boolean): void;
|
|
1785
1821
|
toggle3d(): void;
|
|
@@ -2816,6 +2852,12 @@ declare class MinuteMaps {
|
|
|
2816
2852
|
*/
|
|
2817
2853
|
private clampPadding;
|
|
2818
2854
|
private getVenueBounds;
|
|
2855
|
+
/**
|
|
2856
|
+
* The polygon `options.hideBasemapPoisNearVenue` hides basemap POIs inside:
|
|
2857
|
+
* the venue's bounds padded outward. `null` when disabled or before the
|
|
2858
|
+
* venue loads.
|
|
2859
|
+
*/
|
|
2860
|
+
private getBasemapPoiMask;
|
|
2819
2861
|
/**
|
|
2820
2862
|
* Resolve `options.maxBounds` into the actual pan/zoom-out cap. `false`
|
|
2821
2863
|
* disables it, explicit bounds pass through as-is, and a number (or the
|