rmapi-js 11.1.1 → 11.1.2
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 +9 -10
- package/dist/raw.d.ts +4 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -317,16 +317,15 @@ 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
|
-
*
|
|
323
|
-
*
|
|
324
|
-
*
|
|
325
|
-
* `
|
|
326
|
-
*
|
|
327
|
-
*
|
|
328
|
-
*
|
|
329
|
-
* width follows from its height and the device aspect ratio.
|
|
320
|
+
* position, not its shape. `customZoomScale = screenHeight / viewHeight` in
|
|
321
|
+
* device pixels (`screenHeight` fixed per model, see {@link deviceScreens |
|
|
322
|
+
* `deviceScreens`}), normalized to 1:1 native pixels: at `1` the view is
|
|
323
|
+
* screen-tall, showing `screenHeight / customZoomPageHeight` of the page.
|
|
324
|
+
*
|
|
325
|
+
* `customZoomCenterX` offsets the center of the view horizontally from the
|
|
326
|
+
* page center, and `customZoomCenterY` is the absolute distance of the center
|
|
327
|
+
* down from the top of the page; the view's width follows from its height and
|
|
328
|
+
* the device aspect ratio.
|
|
330
329
|
*
|
|
331
330
|
* The fields are a single document-wide setting, but `customZoomCenterY` is
|
|
332
331
|
* applied against each page's own rendered height. On a page rendered taller
|
package/dist/raw.d.ts
CHANGED
|
@@ -256,13 +256,10 @@ export interface CommonDocumentContent {
|
|
|
256
256
|
/**
|
|
257
257
|
* the scale for a customFit zoom
|
|
258
258
|
*
|
|
259
|
-
*
|
|
260
|
-
*
|
|
261
|
-
* `
|
|
262
|
-
*
|
|
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.
|
|
259
|
+
* `customZoomScale = screenHeight / viewHeight` in device pixels, normalized to
|
|
260
|
+
* 1:1 native pixels: at 1 the view is screen-tall, showing `screenHeight /
|
|
261
|
+
* customZoomPageHeight` of the page. reMarkable generally allows 0.5 to 5, but
|
|
262
|
+
* values outside that bound are still supported.
|
|
266
263
|
*/
|
|
267
264
|
customZoomScale?: number;
|
|
268
265
|
/** the zoom mode; customFit applies the customZoom* fields, the rest auto-fit */
|