Rename web-view module to web-frame
This commit is contained in:
parent
4f43c41577
commit
4ccb0cccf3
13 changed files with 116 additions and 120 deletions
|
@ -1,26 +1,26 @@
|
|||
# web-view
|
||||
# web-frame
|
||||
|
||||
The `web-view` module can custom the rendering of current web page.
|
||||
The `web-frame` module can custom the rendering of current web page.
|
||||
|
||||
An example of zooming current page to 200%.
|
||||
|
||||
```javascript
|
||||
var webView = require('web-view');
|
||||
webView.setZoomFactor(2);
|
||||
var webFrame = require('web-frame');
|
||||
webFrame.setZoomFactor(2);
|
||||
```
|
||||
|
||||
## webView.setZoomFactor(factor)
|
||||
## webFrame.setZoomFactor(factor)
|
||||
|
||||
* `factor` Number - Zoom factor
|
||||
|
||||
Changes the zoom factor to the specified factor, zoom factor is
|
||||
zoom percent / 100, so 300% = 3.0.
|
||||
|
||||
## webView.getZoomFactor()
|
||||
## webFrame.getZoomFactor()
|
||||
|
||||
Returns the current zoom factor.
|
||||
|
||||
## webView.setZoomLevel(level)
|
||||
## webFrame.setZoomLevel(level)
|
||||
|
||||
* `level` Number - Zoom level
|
||||
|
||||
|
@ -28,6 +28,6 @@ Changes the zoom level to the specified level, 0 is "original size", and each
|
|||
increment above or below represents zooming 20% larger or smaller to default
|
||||
limits of 300% and 50% of original size, respectively.
|
||||
|
||||
## webView.getZoomLevel()
|
||||
## webFrame.getZoomLevel()
|
||||
|
||||
Returns the current zoom level.
|
Loading…
Add table
Add a link
Reference in a new issue