mirror of
https://github.com/futurepress/epub.js.git
synced 2025-10-03 14:59:18 +02:00
Add direction to Layout
This commit is contained in:
parent
9b6e864ae4
commit
a42f758559
6 changed files with 10 additions and 19 deletions
|
@ -171,6 +171,10 @@ class Layout {
|
|||
format(contents){
|
||||
var formating;
|
||||
|
||||
if (this.settings.direction) {
|
||||
contents.direction(this.settings.direction);
|
||||
}
|
||||
|
||||
if (this.name === "pre-paginated") {
|
||||
formating = contents.fit(this.columnWidth, this.height);
|
||||
} else if (this._flow === "paginated") {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue