mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Documentation clean up
This commit is contained in:
parent
7ff4c8e37c
commit
77846842cd
20 changed files with 1090 additions and 8239 deletions
|
@ -1,11 +1,11 @@
|
|||
/**
|
||||
* Figures out the CSS to apply for a layout
|
||||
* Figures out the CSS values to apply for a layout
|
||||
* @class
|
||||
* @param {object} settings
|
||||
* @param {[string=reflowable]} settings.layout
|
||||
* @param {[string]} settings.spread
|
||||
* @param {[int=800]} settings.minSpreadWidth
|
||||
* @param {[boolean=false]} settings.evenSpreads
|
||||
* @param {string} [settings.layout='reflowable']
|
||||
* @param {string} [settings.spread]
|
||||
* @param {int} [settings.minSpreadWidth=800]
|
||||
* @param {boolean} [settings.evenSpreads=false]
|
||||
*/
|
||||
class Layout {
|
||||
constructor(settings) {
|
||||
|
@ -166,7 +166,7 @@ class Layout {
|
|||
/**
|
||||
* Apply Css to a Document
|
||||
* @param {Contents} contents
|
||||
* @return {[Promise]}
|
||||
* @return {Promise}
|
||||
*/
|
||||
format(contents){
|
||||
var formating;
|
||||
|
@ -184,12 +184,12 @@ class Layout {
|
|||
|
||||
/**
|
||||
* Count number of pages
|
||||
* @param {number} totalWidth
|
||||
* @return {number} spreads
|
||||
* @return {number} pages
|
||||
* @param {number} totalLength
|
||||
* @param {number} pageLength
|
||||
* @return {{spreads: Number, pages: Number}}
|
||||
*/
|
||||
count(totalLength, pageLength) {
|
||||
// var totalWidth = contents.scrollWidth();
|
||||
|
||||
let spreads, pages;
|
||||
|
||||
if (this.name === "pre-paginated") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue