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

Add direction to Layout

This commit is contained in:
Fred Chasen 2017-10-17 11:50:18 -07:00
parent 9b6e864ae4
commit a42f758559
6 changed files with 10 additions and 19 deletions

View file

@ -427,6 +427,7 @@ class Rendition {
var flow = this.settings.flow || metadata.flow || "auto";
var viewport = metadata.viewport || "";
var minSpreadWidth = this.settings.minSpreadWidth || metadata.minSpreadWidth || 800;
var direction = this.settings.direction || metadata.direction || "ltr";
if ((this.settings.width === 0 || this.settings.width > 0) &&
(this.settings.height === 0 || this.settings.height > 0)) {
@ -439,7 +440,8 @@ class Rendition {
orientation : orientation,
flow : flow,
viewport : viewport,
minSpreadWidth : minSpreadWidth
minSpreadWidth : minSpreadWidth,
direction: direction
};
return properties;