1
0
Fork 0
mirror of https://github.com/futurepress/epub.js.git synced 2025-10-03 14:59:18 +02:00

Added render functions to rendition and views

This commit is contained in:
fchasen 2016-05-08 11:23:27 -04:00
parent 948c356597
commit ddb127cac5
17 changed files with 1402 additions and 679 deletions

View file

@ -14,6 +14,8 @@ function Reflowable(){
this.column = 0;
this.gap = 0;
this.divisor = 0;
this.name = "reflowable";
};
Reflowable.prototype.calculate = function(_width, _height, _gap, _devisor){
@ -107,6 +109,9 @@ Reflowable.prototype.count = function(totalWidth) {
function Fixed(_width, _height){
this.width = 0;
this.height = 0;
this.name = "pre-paginated";
};
Fixed.prototype.calculate = function(_width, _height){
@ -166,6 +171,7 @@ function Scroll(){
this.spread = 0;
this.column = 0;
this.gap = 0;
this.name = "scrolled";
};
Scroll.prototype.calculate = function(_width, _height){
@ -180,7 +186,7 @@ Scroll.prototype.format = function(contents){
// $doc.style.width = "auto";
// $doc.style.height = "auto";
contents.width("auto");
// contents.width("auto");
contents.height("auto");
};