@seatmap.pro/renderer 1.69.4 → 1.69.5
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/lib/index.d.ts +9 -8
- package/lib/index.js +1 -1
- package/package.json +1 -1
package/lib/index.d.ts
CHANGED
|
@@ -1391,8 +1391,9 @@ type InteractionZoomStrategyType = 'default' | 'section' | 'next-scale';
|
|
|
1391
1391
|
* When an array is provided, strategies are tried in order until one succeeds.
|
|
1392
1392
|
* If all strategies fail, falls back to default zoom behavior (scale 1).
|
|
1393
1393
|
*
|
|
1394
|
-
* The `'section'` strategy
|
|
1395
|
-
* it
|
|
1394
|
+
* The `'section'` strategy applies while the current scale is below the clicked section's
|
|
1395
|
+
* zoom target. Once that target is reached it falls through to the next strategy,
|
|
1396
|
+
* enabling progressive zoom behavior.
|
|
1396
1397
|
*
|
|
1397
1398
|
* @example
|
|
1398
1399
|
* ```typescript
|
|
@@ -1401,7 +1402,7 @@ type InteractionZoomStrategyType = 'default' | 'section' | 'next-scale';
|
|
|
1401
1402
|
*
|
|
1402
1403
|
* // Progressive zoom with fallback
|
|
1403
1404
|
* interactionZoomStrategy: ['section', 'next-scale']
|
|
1404
|
-
* // First click (
|
|
1405
|
+
* // First click (zoomed out): zooms to section
|
|
1405
1406
|
* // Second click (at section): zooms to next scale step
|
|
1406
1407
|
* ```
|
|
1407
1408
|
*
|
|
@@ -1707,16 +1708,16 @@ interface IRendererSettings {
|
|
|
1707
1708
|
*
|
|
1708
1709
|
* Available strategies:
|
|
1709
1710
|
* - `'default'`: Zoom to scale 1.0 (current behavior)
|
|
1710
|
-
* - `'section'`: Zoom to the clicked section using adaptive fit
|
|
1711
|
+
* - `'section'`: Zoom to the clicked section using adaptive fit
|
|
1711
1712
|
* - `'next-scale'`: Zoom to the next scale step in zoom presets
|
|
1712
1713
|
*
|
|
1713
1714
|
* When multiple strategies are provided, they are tried in order.
|
|
1714
1715
|
* The first strategy that can be applied is executed.
|
|
1715
1716
|
* If all strategies fail, falls back to default zoom behavior.
|
|
1716
1717
|
*
|
|
1717
|
-
* **Note:** The `'section'` strategy
|
|
1718
|
-
*
|
|
1719
|
-
* allowing progressive zoom (e.g., section → next-scale → deeper zoom).
|
|
1718
|
+
* **Note:** The `'section'` strategy applies while the current scale is below the clicked
|
|
1719
|
+
* section's zoom target. Once that target is reached, clicking again falls through to the
|
|
1720
|
+
* next strategy, allowing progressive zoom (e.g., section → next-scale → deeper zoom).
|
|
1720
1721
|
*
|
|
1721
1722
|
* @example Single strategy
|
|
1722
1723
|
* ```typescript
|
|
@@ -1726,7 +1727,7 @@ interface IRendererSettings {
|
|
|
1726
1727
|
* @example Multiple strategies with progressive zoom
|
|
1727
1728
|
* ```typescript
|
|
1728
1729
|
* interactionZoomStrategy: ['section', 'next-scale']
|
|
1729
|
-
* // First click: zooms to section (
|
|
1730
|
+
* // First click: zooms to section (below the section's target scale)
|
|
1730
1731
|
* // Second click: zooms to next scale (already at section, falls through)
|
|
1731
1732
|
* ```
|
|
1732
1733
|
*
|