rmapi-js 11.1.0 → 11.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +7 -3
- package/dist/raw.d.ts +7 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -317,9 +317,13 @@ export interface RemarkableApi {
|
|
|
317
317
|
* centers are in those pixels.
|
|
318
318
|
*
|
|
319
319
|
* The view always has the device's aspect ratio — you control its height and
|
|
320
|
-
* position, not its shape. `customZoomScale`
|
|
321
|
-
*
|
|
322
|
-
*
|
|
320
|
+
* position, not its shape. `customZoomScale` sets a fit-to-height zoom whose
|
|
321
|
+
* linear magnification is proportional to it: the visible page-height
|
|
322
|
+
* fraction is `sqrt(deviceAspect) / customZoomScale`, where `deviceAspect` is
|
|
323
|
+
* `screenWidth / screenHeight` (`0.75` for 3:4 models, `0.5625` for the Paper
|
|
324
|
+
* Pro Move). The page height fills the screen at
|
|
325
|
+
* `customZoomScale = sqrt(deviceAspect)` (≈`0.87` for 3:4 devices), not at
|
|
326
|
+
* `1`. `customZoomCenterX` offsets the center of the
|
|
323
327
|
* view horizontally from the page center, and `customZoomCenterY` is the
|
|
324
328
|
* absolute distance of the center down from the top of the page; the view's
|
|
325
329
|
* width follows from its height and the device aspect ratio.
|
package/dist/raw.d.ts
CHANGED
|
@@ -256,10 +256,13 @@ export interface CommonDocumentContent {
|
|
|
256
256
|
/**
|
|
257
257
|
* the scale for a customFit zoom
|
|
258
258
|
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
*
|
|
262
|
-
*
|
|
259
|
+
* The linear magnification is proportional to customZoomScale: the visible
|
|
260
|
+
* page-height fraction is `sqrt(deviceAspect) / customZoomScale`, where
|
|
261
|
+
* `deviceAspect` is `screenWidth / screenHeight` (0.75 for 3:4 models, 0.5625
|
|
262
|
+
* for the Paper Pro Move). The rendered page height fills the screen at
|
|
263
|
+
* `customZoomScale = sqrt(deviceAspect)` (≈0.87 for 3:4 devices), not at 1.
|
|
264
|
+
* reMarkable generally allows 0.5 to 5, but values outside that bound are
|
|
265
|
+
* still supported.
|
|
263
266
|
*/
|
|
264
267
|
customZoomScale?: number;
|
|
265
268
|
/** the zoom mode; customFit applies the customZoom* fields, the rest auto-fit */
|