mirror of
https://github.com/pdf2htmlEX/pdf2htmlEX.git
synced 2024-07-05 17:48:38 +00:00
js
This commit is contained in:
parent
0774e4a063
commit
cc7babd901
|
@ -19,14 +19,10 @@ var pdf2htmlEX = (function(){
|
||||||
default_scale_ratio : 1.0,
|
default_scale_ratio : 1.0,
|
||||||
cur_scale_ratio : 1.0,
|
cur_scale_ratio : 1.0,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* Constants */
|
/* Constants */
|
||||||
render_timeout : 200,
|
render_timeout : 200,
|
||||||
scale_step : 0.9,
|
scale_step : 0.9,
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
init_before_loading_content : function() {
|
init_before_loading_content : function() {
|
||||||
/*hide all pages before loading, will reveal only visible ones later */
|
/*hide all pages before loading, will reveal only visible ones later */
|
||||||
this.pre_hide_pages();
|
this.pre_hide_pages();
|
||||||
|
@ -170,7 +166,7 @@ var pdf2htmlEX = (function(){
|
||||||
var pb = $(this.page_boxes[i]);
|
var pb = $(this.page_boxes[i]);
|
||||||
p.height(pb.height() * ratio);
|
p.height(pb.height() * ratio);
|
||||||
p.width(pb.width() * ratio);
|
p.width(pb.width() * ratio);
|
||||||
pb.css('transform', 'scale('+ratio+')');
|
pb.css('transform', 'scale('+ratio.toFixed(3)+')');
|
||||||
}
|
}
|
||||||
|
|
||||||
this.schedule_render();
|
this.schedule_render();
|
||||||
|
|
Loading…
Reference in New Issue
Block a user