Skip to content

Commit 4956e28

Browse files
authored
make margins optional (#16)
1 parent 3c7eaa9 commit 4956e28

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,3 +15,4 @@ docs
1515
test.js
1616
cache.json
1717
token.txt
18+
pnpm-lock.yaml

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -630,7 +630,7 @@ export interface DocumentContent {
630630
* The reMarkable uses three built-in margins: 50, 125, 200, but other margins
631631
* are possible. The reMarkable used to default to margins of 180.
632632
*/
633-
margins: number;
633+
margins?: number;
634634
/** the document orientation */
635635
orientation: Orientation;
636636
/** this specifies the number of pages, it's not clear how this is different than pageCount */
@@ -748,7 +748,6 @@ const documentContent = properties(
748748
fontName: string(),
749749
formatVersion: uint8(),
750750
lineHeight: int32(),
751-
margins: uint32(),
752751
orientation: enumeration("portrait", "landscape"),
753752
pageCount: uint32(),
754753
sizeInBytes: string(),
@@ -773,6 +772,7 @@ const documentContent = properties(
773772
true,
774773
),
775774
lastOpenedPage: uint32(),
775+
margins: uint32(),
776776
originalPageCount: int32(),
777777
pages: elements(string()),
778778
pageTags: elements(pageTag),

0 commit comments

Comments
 (0)