Skip to content

Commit a9dcc87

Browse files
authored
update documentation (#21)
1 parent 1faf62c commit a9dcc87

File tree

2 files changed

+26
-6
lines changed

2 files changed

+26
-6
lines changed

bun.lockb

0 Bytes
Binary file not shown.

src/raw.ts

Lines changed: 26 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -384,17 +384,37 @@ export interface DocumentContent {
384384
* values outside of this range are valid.
385385
*/
386386
textScale: number;
387-
/** [speculative] the center of the zoom for zoomed in documents */
387+
/**
388+
* the center of the zoom for customFit zoom
389+
*
390+
* This is an absolute offset from the center of the page. Negative numbers
391+
* indicate shifted left and positive numbers indicate shifted right. The
392+
* units are relative to the document pixels, but it's not sure how the
393+
* document size is calculated.
394+
*/
388395
customZoomCenterX?: number;
389-
/** [speculative] the center of the zoom for zoomed in documents */
396+
/**
397+
* the center of the zoom for customFit documents
398+
*
399+
* This is an absolute number relative to the top of the page. Negative
400+
* numbers indicate shifted up, while positive numbers indicate shifted down.
401+
* The units are relative to the document pixels, but it's not sure how the
402+
* document size is calculated.
403+
*/
390404
customZoomCenterY?: number;
391-
/** [speculative] the orientation */
405+
/** this seems unused */
392406
customZoomOrientation?: Orientation;
393-
/** [speculative] the zoom height for zoomed in pages */
407+
/** this seems unused */
394408
customZoomPageHeight?: number;
395-
/** [speculative] the zoom width for zoomed in pages */
409+
/** this seems unused */
396410
customZoomPageWidth?: number;
397-
/** [speculative] the scale for zoomed in pages */
411+
/**
412+
* the scale for customFit documents
413+
*
414+
* 1 indicates no zoom, smaller numbers indicate zoomed out, larger numbers
415+
* indicate zoomed in. reMarkable generally allows setting this from 0.5 to 5,
416+
* but values outside that bound are still supported.
417+
*/
398418
customZoomScale?: number;
399419
/** what zoom mode is set for the page */
400420
zoomMode?: ZoomMode;

0 commit comments

Comments
 (0)