Home | History | Annotate | Download | only in pdf

Lines Matching refs:zoom

65  * Predefined zoom factors to be used when zooming in/out. These are in
79 * Returns true if the document needs scrollbars at the given zoom level.
80 * @param {number} zoom compute whether scrollbars are needed at this zoom
85 documentNeedsScrollbars_: function(zoom) {
86 var documentWidth = this.documentDimensions_.width * zoom;
87 var documentHeight = this.documentDimensions_.height * zoom;
95 * Returns true if the document needs scrollbars at the current zoom level.
170 * @type {number} the zoom level of the viewport.
172 get zoom() {
178 * Sets the zoom of the viewport.
179 * @param {number} newZoom the zoom level to zoom to.
270 * Compute the zoom level for fit-to-page or fit-to-width. |pageDimensions| is
272 * that fit-to-page zoom should be computed rather than fit-to-page.
276 * @return {number} the zoom to use
279 // First compute the zoom without scrollbars.
281 var zoom;
283 zoom = zoomWidth;
286 zoom = Math.min(zoomWidth, zoomHeight);
289 var needsScrollbars = this.documentNeedsScrollbars_(zoom);
291 // If the document fits, just return the zoom.
293 return zoom;
296 width: this.documentDimensions_.width * zoom,
297 height: this.documentDimensions_.height * zoom
321 // Recompute the zoom.
324 zoom = zoomWidth;
327 zoom = Math.min(zoomWidth, zoomHeight);
329 return zoom;
333 * Zoom the viewport so that the page-width consumes the entire viewport.
350 * Zoom the viewport so that a page consumes the entire viewport. Also scrolls
370 * Zoom out to the next predefined zoom level.
384 * Zoom in to the next predefined zoom level.