This entry was added in response to #22, my question about limiting image width. The entry is no longer relevant because the feature implemented in this branch allows adjusting the image size.
Add margin around page container so that the recognized text of one page doesn't run into that of the next page. 1.2em seems like a reasonable amount for readability. Could maybe go slightly higher.
I also added some margin on the bottom of the recognized text so it's not too close to the image of the page.
I think this should play nice with horizontal pages, but am unable to test because horizontal pages aren't working quite yet.
Also changed the default setting to 800px, which is a nice medium size to be legible but not too big. Max setting now goes to 1900 px (slightly larger than the 1872 px long edge of a Nomad page).
I think this makes the setting behavior more intuitive, because the slider value now always means what it seems to mean.
Previously, setting to 0px allowed the page to go to its full 1404px width, but that's basically the same as just setting 1400px for the max width.
I set the lower bound at 100px so that a user can't accidentally make the pages disappear entirely.
Note: I know pages in landscape orientation would have a width of 1872px, but I'm going with 1400px for now because:
- This plugin doesn't seem to be parsing landscape notes correctly at the moment
- 1400px is already very wide
This adds three features to hide UI elements on the .note view:
- Toggle the TOC and page headings
- Hide export buttons (there is a command pallete tool as well)
- Collapse recognized text
Since there is no native code I am just checking all of the dependencies
in to simplify life and avoid a hard dependency on npm working on any
given day.