Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add very simple 'auto spread' page view mode #300

Merged
merged 1 commit into from
Oct 13, 2016
Merged

Conversation

kwkbtr
Copy link
Contributor

@kwkbtr kwkbtr commented Oct 13, 2016

  • Add a new enum adapt.viewer.PageViewMode, which has three values: singlePage, spread and autoSpread.
  • Replace a boolean parameter spreadView for vivliostyle.viewer.Viewer with a new parameter pageViewMode, whose value can be one of the enum adapt.viewer.PageViewMode.
  • When PageViewMode=autoSpread, the spread view is enabled when the viewport width is at least 1.45 times of the viewport height, which is enough for a pair of pages of A/B paper sizes (which have an aspect ratio of 1:sqrt(2)).

- Add a new enum `adapt.viewer.PageViewMode`, which has three values: singlePage, spread and autoSpread.
- Replace a boolean parameter `spreadView` for `vivliostyle.viewer.Viewer` with a new parameter `pageViewMode`, whose value can be one of the enum `adapt.viewer.PageViewMode`.
- When PageViewMode=autoSpread, the spread view is enabled when the viewport width is at least 1.45 times of the viewport height, which is enough for a pair of pages of A/B paper sizes (which have an aspect ratio of 1:sqrt(2)).
@kwkbtr kwkbtr merged commit 65d4111 into master Oct 13, 2016
@kwkbtr kwkbtr deleted the spread_auto-r#81 branch October 13, 2016 07:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant