@minmaps-dev/mm-web-sdk 1.0.0-rc.46 → 1.0.0-rc.48
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/README.md +1 -1
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.ts +420 -34
- 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 +15 -2
- package/dist/react.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +1 -1
- package/src/themes/alt3-hybrid-style.json +61 -2
package/dist/react.d.ts
CHANGED
|
@@ -96,7 +96,7 @@ type BoundsPadding = number | {
|
|
|
96
96
|
* `options.theme` init option. Pass a `StyleSpecification` directly for
|
|
97
97
|
* custom themes.
|
|
98
98
|
*/
|
|
99
|
-
type ThemeName = 'default' | 'high-contrast';
|
|
99
|
+
type ThemeName = 'default' | 'high-contrast' | 'color-blind';
|
|
100
100
|
/**
|
|
101
101
|
* Style of the disc + ring rendered behind each amenity icon. The SDK
|
|
102
102
|
* composites this into the icon bitmap at registration time, so badge +
|
|
@@ -127,7 +127,10 @@ interface SDKOptions {
|
|
|
127
127
|
debugGlobal?: string | false;
|
|
128
128
|
/**
|
|
129
129
|
* Initial theme. `'default'` uses the bundled hybrid 3D theme.
|
|
130
|
-
* `'high-contrast'` uses the WCAG-AA tuned theme.
|
|
130
|
+
* `'high-contrast'` uses the WCAG-AA tuned theme. `'color-blind'` keeps the
|
|
131
|
+
* default look but swaps the colors that red-green and blue-yellow color
|
|
132
|
+
* blindness merge (the route, room categories and department zones,
|
|
133
|
+
* restrooms, parks). Pass a
|
|
131
134
|
* `StyleSpecification` for fully custom styling.
|
|
132
135
|
*/
|
|
133
136
|
theme?: ThemeName | any;
|
|
@@ -232,6 +235,16 @@ interface SDKOptions {
|
|
|
232
235
|
* zoom.
|
|
233
236
|
*/
|
|
234
237
|
initialZoom?: number;
|
|
238
|
+
/**
|
|
239
|
+
* Zoom floor for selecting a place — a map tap or `selectPOI` (default
|
|
240
|
+
* `19.25`, one level into the Kiosk view). A selection made from further out
|
|
241
|
+
* zooms in to this; a closer zoom is kept. At the Kiosk view's edge (18.25)
|
|
242
|
+
* the selected dot and name are drawn but still lose collision to their
|
|
243
|
+
* neighbours, and in the Building view (a room tapped from 16.5 up) they
|
|
244
|
+
* aren't drawn at all — either way the visitor selects a place they can't
|
|
245
|
+
* see. `0` keeps the current zoom on every selection.
|
|
246
|
+
*/
|
|
247
|
+
selectionZoom?: number;
|
|
235
248
|
/**
|
|
236
249
|
* Clamp zoom-out relative to the opening view. When set, the map's
|
|
237
250
|
* `minZoom` becomes `(initialZoom − this)`, so visitors can nudge out by
|