@pdfme/common 6.2.3-dev.6 → 6.2.3-dev.7
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.js +5 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1082,8 +1082,11 @@ function placeUnitsOnPages(schema, dynamicLayout, startGlobalY, contentHeight, p
|
|
|
1082
1082
|
const isAtPageTop = currentYInPage <= EPSILON;
|
|
1083
1083
|
if (dynamicLayout.avoidFirstUnitOnly && isSplittable && startUnitIndex === 0 && currentUnitIndex === 1 && dynamicHeights.length > 1 && !isAtPageTop) {
|
|
1084
1084
|
currentUnitIndex = 0;
|
|
1085
|
-
currentPageIndex
|
|
1086
|
-
|
|
1085
|
+
if (pages[currentPageIndex].length === 0) currentYInPage = 0;
|
|
1086
|
+
else {
|
|
1087
|
+
currentPageIndex++;
|
|
1088
|
+
currentYInPage = 0;
|
|
1089
|
+
}
|
|
1087
1090
|
continue;
|
|
1088
1091
|
}
|
|
1089
1092
|
if (currentUnitIndex === startUnitIndex) {
|