@minmaps-dev/mm-web-sdk 1.0.0-rc.37 → 1.0.0-rc.39
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 +20 -0
- 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.js +1 -1
- package/dist/react.js.map +1 -1
- package/package.json +2 -2
- package/src/themes/alt3-hybrid-style.json +118 -91
package/dist/index.d.ts
CHANGED
|
@@ -1130,6 +1130,12 @@ declare class MinuteMaps {
|
|
|
1130
1130
|
/** Whether map labels render in OpenDyslexic, mutable via `setDyslexicFont`.
|
|
1131
1131
|
* Re-applied after every `setTheme()` swap, same reason as `iconZoomBase`. */
|
|
1132
1132
|
private dyslexicFont;
|
|
1133
|
+
/** Multiplier applied to every theme label's `text-size`, mutable via
|
|
1134
|
+
* `setTextScale`. Re-applied after every `setTheme()` swap. */
|
|
1135
|
+
private textScale;
|
|
1136
|
+
/** Each label layer's unscaled `text-size`, captured by `setTextScale`.
|
|
1137
|
+
* Cleared on `setTheme()` — the recreated layers carry new base values. */
|
|
1138
|
+
private baseTextSizes;
|
|
1133
1139
|
/** Tracks the active theme name so `setTheme()` is a no-op when re-requested. */
|
|
1134
1140
|
private activeThemeName;
|
|
1135
1141
|
/** Tracks the active locale so `setLocale()` is a no-op when re-requested.
|
|
@@ -1357,6 +1363,20 @@ declare class MinuteMaps {
|
|
|
1357
1363
|
setDyslexicFont(enabled: boolean): Promise<void>;
|
|
1358
1364
|
getDyslexicFont(): boolean;
|
|
1359
1365
|
private applyDyslexicFontToLabels;
|
|
1366
|
+
/**
|
|
1367
|
+
* Scale every map label's `text-size` by `scale` (1 = theme default; the
|
|
1368
|
+
* example kiosk passes 1.15 for its "large text" setting). Mirrors the
|
|
1369
|
+
* DOM-side text-size accommodation onto the canvas, which CSS can't reach.
|
|
1370
|
+
*
|
|
1371
|
+
* Multiplies the output values inside each layer's `text-size` (MapLibre
|
|
1372
|
+
* requires `zoom` to stay at the top of the expression, so it can't be
|
|
1373
|
+
* wrapped), so zoom interpolation and data-driven sizing keep working. Re-applied after
|
|
1374
|
+
* `setTheme()`, since `setStyle({ diff: false })` recreates every layer from
|
|
1375
|
+
* the pristine theme JSON. Non-finite or non-positive values reset to 1.
|
|
1376
|
+
*/
|
|
1377
|
+
setTextScale(scale: number): void;
|
|
1378
|
+
getTextScale(): number;
|
|
1379
|
+
private applyTextScaleToLabels;
|
|
1360
1380
|
/**
|
|
1361
1381
|
* Switch the locale used for POI / amenity / destination / floor names at
|
|
1362
1382
|
* runtime. The SDK refetches localized names from JACS (per-entity
|