From bdaea02d8a3462f7f22fee55ebf9271a7abae029 Mon Sep 17 00:00:00 2001 From: Kevin Sawicki Date: Thu, 25 Aug 2016 14:55:01 -0700 Subject: [PATCH] Document .setZoomFactor/Level as public --- docs/api/web-view-tag.md | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/docs/api/web-view-tag.md b/docs/api/web-view-tag.md index 0ae7b6cdf801..90153d8f2513 100644 --- a/docs/api/web-view-tag.md +++ b/docs/api/web-view-tag.md @@ -492,6 +492,21 @@ Sends an input `event` to the page. See [webContents.sendInputEvent](web-contents.md#webcontentssendinputeventevent) for detailed description of `event` object. +### `.setZoomFactor(factor)` + +* `factor` Number - Zoom factor. + +Changes the zoom factor to the specified factor. Zoom factor is +zoom percent divided by 100, so 300% = 3.0. + +### `.setZoomLevel(level)` + +* `level` Number - Zoom level + +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 +limits of 300% and 50% of original size, respectively. + ### `.showDefinitionForSelection()` _macOS_ Shows pop-up dictionary that searches the selected word on the page.