Merge thumbnail view feature contributed by scollett
authorMichael Ang <mang@archive.org>
Tue, 9 Mar 2010 23:55:37 +0000 (23:55 +0000)
committerMichael Ang <mang@archive.org>
Tue, 9 Mar 2010 23:55:37 +0000 (23:55 +0000)
Merge commit 'scollett/master' into 0.9.22

Conflicts:
BookReader/BookReader.js

1  2 
BookReader/BookReader.js

@@@ -38,10 -38,12 +38,15 @@@ This file is part of BookReader
  function BookReader() {
      this.reduce  = 4;
      this.padding = 10;
-     this.mode    = 1; //1 or 2
+     this.mode    = 1; //1, 2, 3
      this.ui = 'full'; // UI mode
 -    this.displayedIndices = [];       
++
++    // thumbnail mode
+     this.thumbWidth = 100;
+     this.thumbRowBuffer = 3; // number of rows to pre-cache out a view
+     this.displayedRows=[];
 +    
 +    this.displayedIndices = [];
      //this.indicesToDisplay = [];
      this.imgs = {};
      this.prefetchedImgs = {}; //an object with numeric keys cooresponding to page index