@verdocs/js-sdk 4.2.118 → 4.2.120
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 +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/package.json +2 -3
- package/package.json +2 -3
package/dist/index.mjs
CHANGED
|
@@ -263,9 +263,9 @@ function sortFields(fields) {
|
|
|
263
263
|
const aPage = a.page || 0;
|
|
264
264
|
const bPage = b.page || 0;
|
|
265
265
|
const aX = a.x || 0;
|
|
266
|
-
const aY = a.y || 0;
|
|
266
|
+
const aY = (a.y || 0) + (a.height || 0);
|
|
267
267
|
const bX = b.x || 0;
|
|
268
|
-
const bY = b.y || 0;
|
|
268
|
+
const bY = (b.y || 0) + (b.height || 0);
|
|
269
269
|
if (aPage !== bPage) {
|
|
270
270
|
return aPage - bPage;
|
|
271
271
|
}
|