@abyss-project/commons-front-core 11.1.0 → 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.
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
/** Smallest scale the zoom-out control reaches. */
|
|
2
|
+
export declare const MIN_SCALE: number;
|
|
3
|
+
/** Largest scale, for the zoom-in control and for fit-to-width alike. */
|
|
4
|
+
export declare const MAX_SCALE: number;
|
|
5
|
+
/** Factor of one zoom-in or zoom-out step. */
|
|
6
|
+
export declare const ZOOM_STEP = 1.25;
|
|
7
|
+
/**
|
|
8
|
+
* Scale at which the widest page (`maxPageWidthPt`, in PDF points) fills `availablePx`.
|
|
9
|
+
*
|
|
10
|
+
* Only `MAX_SCALE` bounds it: `MIN_SCALE` is the floor of the zoom-out control, not of the fit. On a
|
|
11
|
+
* phone the fit of an A4 page sits below that floor; clamping it there made the page wider than the
|
|
12
|
+
* screen and cut both of its sides.
|
|
13
|
+
*/
|
|
14
|
+
export declare const fitWidthScale: (availablePx: number, maxPageWidthPt: number) => number;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|