Home | History | Annotate | Download | only in pdf

Lines Matching refs:zoom

27  * @param {Function} beforeZoomCallback is run before a change in zoom
28 * @param {Function} afterZoomCallback is run after a change in zoom
72 * Predefined zoom factors to be used when zooming in/out. These are in
80 * The minimum and maximum range to be used to clip zoom factor.
95 * Returns true if the document needs scrollbars at the given zoom level.
96 * @param {number} zoom compute whether scrollbars are needed at this zoom
101 documentNeedsScrollbars_: function(zoom) {
108 var documentWidth = this.documentDimensions_.width * zoom;
109 var documentHeight = this.documentDimensions_.height * zoom;
117 * Returns true if the document needs scrollbars at the current zoom level.
192 * @type {number} the zoom level of the viewport.
194 get zoom() {
215 * Sets the zoom of the viewport.
216 * @param {number} newZoom the zoom level to zoom to.
238 * Sets the zoom to the given zoom level.
239 * @param {number} newZoom the zoom level to zoom to.
324 * Compute the zoom level for fit-to-page or fit-to-width. |pageDimensions| is
326 * that fit-to-page zoom should be computed rather than fit-to-page.
330 * @return {number} the zoom to use
333 // First compute the zoom without scrollbars.
335 var zoom;
337 zoom = zoomWidth;
340 zoom = Math.min(zoomWidth, zoomHeight);
343 var needsScrollbars = this.documentNeedsScrollbars_(zoom);
345 // If the document fits, just return the zoom.
347 return zoom;
350 width: this.documentDimensions_.width * zoom,
351 height: this.documentDimensions_.height * zoom
375 // Recompute the zoom.
378 zoom = zoomWidth;
381 zoom = Math.min(zoomWidth, zoomHeight);
383 return zoom;
387 * Zoom the viewport so that the page-width consumes the entire viewport.
407 * Zoom the viewport so that a page consumes the entire viewport. Also scrolls
430 * Zoom out to the next predefined zoom level.
446 * Zoom in to the next predefined zoom level.