internetarchive / internetarchive/bookreader

Add ability to show single page while in 2 page mode

Open
#115 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
1.2k
Forks
491
Avg merge
2d 15h
Merged PRs (30d)
3

Description

If a page exists that is larger than the other pages show it as a single page spread across left and right.

```javascript
"data": [
[
{
"width": 612,
"height": 792,
"type": "cover",
"uri": "./1.png"
}
],
[
{
"width": 612,
"height": 792,
"type": "left",
"uri": "./2.png"
},
{
"width": 612,
"height": 792,
"type": "right",
"uri": "./3.png"
}
],
[
{
"width": 612,
"height": 792,
"type": "left",
"uri": "./4.png"
},
{
"width": 612,
"height": 792,
"type": "right",
"uri": "./5.png"
}
],
[
{
"width": 1224,
"height": 792,
"type": "spread",
"uri": "./6.png"
}
],
[
{
"width": 612,
"height": 792,
"type": "left",
"uri": "./7.png"
},
{
"width": 612,
"height": 792,
"type": "right",
"uri": "./8.png"
}
]
],`
```

How this is currently done
![example]

[example]: https://i.imgur.com/O0CqWew.png

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.