Lines Matching refs:scale
19 scale: zoomLevel,
90 function magnify( rect, scale ) { argument
99 rect.x -= ( window.innerWidth - ( rect.width * scale ) ) / 2;
100 rect.y -= ( window.innerHeight - ( rect.height * scale ) ) / 2;
104 if( scale === 1 ) {
114 transform = 'translate('+ -rect.x +'px,'+ -rect.y +'px) scale('+ scale +')';
131 if( scale === 1 ) {
142 document.body.style.left = ( - ( scrollOffset.x + rect.x ) / scale ) + 'px';
143 document.body.style.top = ( - ( scrollOffset.y + rect.y ) / scale ) + 'px';
144 document.body.style.width = ( scale * 100 ) + '%';
145 document.body.style.height = ( scale * 100 ) + '%';
146 document.body.style.zoom = scale;
150 level = scale;
234 …options.scale = Math.max( Math.min( window.innerWidth / options.width, window.innerHeight / option…
237 if( options.scale > 1 ) {
238 options.x *= options.scale;
239 options.y *= options.scale;
241 magnify( options, options.scale );