mirror of
https://github.com/4gray/iptvnator.git
synced 2026-10-13 12:36:15 -08:00
docs(shell): state the zoom bridge's return contract precisely
`adjustZoomLevel` steps by `stepZoomLevel`'s rules; a stored out-of-range level is never moved against the request, so the returned level is not itself guaranteed to be within `ZOOM_LEVEL_MIN..ZOOM_LEVEL_MAX`. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
1 parent
4586616d54
commit
7174d47339
2 files changed
+8
-5
No files matched your search
@@ -723,10 +723,13 @@ export interface ElectronBridgeApi {
|
||||
* Zoom shortcuts (Cmd/Ctrl and +/−/0). Synchronous and preload-local:
|
||||
* steps the FRAME-BOUND temporary zoom level through `webFrame` (never a
|
||||
* main-process `webContents.setZoomLevel`, whose per-URL entry the app's
|
||||
* `file://` path routing resets — issue #1109), clamped to
|
||||
* `ZOOM_LEVEL_MIN..ZOOM_LEVEL_MAX`, and returns the level now applied.
|
||||
* Persistence needs nothing from the caller: the main process reads the
|
||||
* live level back on close, quit and reload.
|
||||
* `file://` path routing resets — issue #1109) by `stepZoomLevel`'s
|
||||
* rules — one `ZOOM_LEVEL_STEP` inside `ZOOM_LEVEL_MIN..ZOOM_LEVEL_MAX`,
|
||||
* a stored level already outside them never moved against the request —
|
||||
* and returns the level now applied, which is therefore not itself
|
||||
* guaranteed to be within the limits. Persistence needs nothing from the
|
||||
* caller: the main process reads the live level back on close, quit and
|
||||
* reload.
|
||||
*/
|
||||
adjustZoomLevel: (action: ZoomLevelAction) => number;
|
||||
getWindowState: () => Promise<ElectronBridgeWindowState>;
|
||||
|
||||
Reference in new issue
Block a user