docs: setZoomLevel chromium zoom policy (#25105)
This commit is contained in:
parent
184e72fafd
commit
e0611d0946
3 changed files with 12 additions and 0 deletions
|
@ -1117,6 +1117,10 @@ increment above or below represents zooming 20% larger or smaller to default
|
||||||
limits of 300% and 50% of original size, respectively. The formula for this is
|
limits of 300% and 50% of original size, respectively. The formula for this is
|
||||||
`scale := 1.2 ^ level`.
|
`scale := 1.2 ^ level`.
|
||||||
|
|
||||||
|
> **NOTE**: The zoom policy at the Chromium level is same-origin, meaning that the
|
||||||
|
> zoom level for a specific domain propagates across all instances of windows with
|
||||||
|
> the same domain. Differentiating the window URLs will make zoom work per-window.
|
||||||
|
|
||||||
#### `contents.getZoomLevel()`
|
#### `contents.getZoomLevel()`
|
||||||
|
|
||||||
Returns `Number` - the current zoom level.
|
Returns `Number` - the current zoom level.
|
||||||
|
|
|
@ -41,6 +41,10 @@ Changes the zoom level to the specified level. The original size is 0 and each
|
||||||
increment above or below represents zooming 20% larger or smaller to default
|
increment above or below represents zooming 20% larger or smaller to default
|
||||||
limits of 300% and 50% of original size, respectively.
|
limits of 300% and 50% of original size, respectively.
|
||||||
|
|
||||||
|
> **NOTE**: The zoom policy at the Chromium level is same-origin, meaning that the
|
||||||
|
> zoom level for a specific domain propagates across all instances of windows with
|
||||||
|
> the same domain. Differentiating the window URLs will make zoom work per-window.
|
||||||
|
|
||||||
### `webFrame.getZoomLevel()`
|
### `webFrame.getZoomLevel()`
|
||||||
|
|
||||||
Returns `Number` - The current zoom level.
|
Returns `Number` - The current zoom level.
|
||||||
|
|
|
@ -648,6 +648,10 @@ increment above or below represents zooming 20% larger or smaller to default
|
||||||
limits of 300% and 50% of original size, respectively. The formula for this is
|
limits of 300% and 50% of original size, respectively. The formula for this is
|
||||||
`scale := 1.2 ^ level`.
|
`scale := 1.2 ^ level`.
|
||||||
|
|
||||||
|
> **NOTE**: The zoom policy at the Chromium level is same-origin, meaning that the
|
||||||
|
> zoom level for a specific domain propagates across all instances of windows with
|
||||||
|
> the same domain. Differentiating the window URLs will make zoom work per-window.
|
||||||
|
|
||||||
### `<webview>.getZoomFactor()`
|
### `<webview>.getZoomFactor()`
|
||||||
|
|
||||||
Returns `Number` - the current zoom factor.
|
Returns `Number` - the current zoom factor.
|
||||||
|
|
Loading…
Reference in a new issue