@yurikilian/lex4 1.1.1 → 1.2.0
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/lex4-editor.js
CHANGED
|
@@ -59,10 +59,10 @@ const A4_HEIGHT_MM = 297;
|
|
|
59
59
|
const PX_PER_MM = 96 / 25.4;
|
|
60
60
|
const A4_WIDTH_PX = Math.round(A4_WIDTH_MM * PX_PER_MM);
|
|
61
61
|
const A4_HEIGHT_PX = Math.round(A4_HEIGHT_MM * PX_PER_MM);
|
|
62
|
-
const PAGE_MARGIN_TOP_PX = Math.round(
|
|
63
|
-
const PAGE_MARGIN_BOTTOM_PX = Math.round(
|
|
64
|
-
const PAGE_MARGIN_LEFT_PX = Math.round(
|
|
65
|
-
const PAGE_MARGIN_RIGHT_PX = Math.round(
|
|
62
|
+
const PAGE_MARGIN_TOP_PX = Math.round(30 * PX_PER_MM);
|
|
63
|
+
const PAGE_MARGIN_BOTTOM_PX = Math.round(30 * PX_PER_MM);
|
|
64
|
+
const PAGE_MARGIN_LEFT_PX = Math.round(30 * PX_PER_MM);
|
|
65
|
+
const PAGE_MARGIN_RIGHT_PX = Math.round(30 * PX_PER_MM);
|
|
66
66
|
const MAX_HEADER_RATIO = 0.2;
|
|
67
67
|
const MAX_FOOTER_RATIO = 0.2;
|
|
68
68
|
const MAX_HEADER_HEIGHT_PX = Math.round(A4_HEIGHT_PX * MAX_HEADER_RATIO);
|