Added more preference variables from the available hash parameters

This commit is contained in:
Mohammed Abu-alsaad 2014-05-30 10:44:41 +12:00
parent 34089212e0
commit e6546642db
4 changed files with 42 additions and 11 deletions

View file

@ -17,7 +17,7 @@
/* globals RenderingStates, PDFView, PDFHistory, PDFFindBar, PDFJS, mozL10n,
CustomStyle, PresentationMode, scrollIntoView, SCROLLBAR_PADDING,
CSS_UNITS, UNKNOWN_SCALE, DEFAULT_SCALE, getOutputScale,
TextLayerBuilder, cache, Stats, USE_ONLY_CSS_ZOOM */
TextLayerBuilder, cache, Stats */
'use strict';
@ -119,7 +119,7 @@ var PageView = function pageView(container, id, scale,
rotation: totalRotation
});
if (USE_ONLY_CSS_ZOOM && this.canvas) {
if (PDFJS.useOnlyCssZoom && this.canvas) {
this.cssTransform(this.canvas);
return;
} else if (this.canvas && !this.zoomLayer) {
@ -195,7 +195,7 @@ var PageView = function pageView(container, id, scale,
CustomStyle.setProp('transformOrigin', textLayerDiv, '0% 0%');
}
if (USE_ONLY_CSS_ZOOM && this.annotationLayer) {
if (PDFJS.useOnlyCssZoom && this.annotationLayer) {
setupAnnotations(div, this.pdfPage, this.viewport);
}
};
@ -492,7 +492,7 @@ var PageView = function pageView(container, id, scale,
var ctx = canvas.getContext('2d');
var outputScale = getOutputScale(ctx);
if (USE_ONLY_CSS_ZOOM) {
if (PDFJS.useOnlyCssZoom) {
var actualSizeViewport = viewport.clone({ scale: CSS_UNITS });
// Use a scale that will make the canvas be the original intended size
// of the page.