pdfjs-reader-core 0.2.1 → 0.2.3
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.cjs +3 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1361,7 +1361,7 @@ function calculateMatchRects(textItems, startOffset, length, viewport) {
|
|
|
1361
1361
|
const charWidth = item.text.length > 0 ? item.width / item.text.length : item.width;
|
|
1362
1362
|
const matchWidth = charWidth * (matchEndInItem - matchStartInItem);
|
|
1363
1363
|
const matchX = x + charWidth * matchStartInItem;
|
|
1364
|
-
const yOffset = height * 0.
|
|
1364
|
+
const yOffset = height * 0.3;
|
|
1365
1365
|
rects.push({
|
|
1366
1366
|
x: matchX,
|
|
1367
1367
|
y: y - height + yOffset,
|
|
@@ -1731,7 +1731,7 @@ function calculateMatchRects2(textItems, startOffset, length, viewport) {
|
|
|
1731
1731
|
const matchEndInItem = Math.min(item.text.length, startOffset + length - itemStart);
|
|
1732
1732
|
const matchWidth = item.width / item.text.length * (matchEndInItem - matchStartInItem);
|
|
1733
1733
|
const matchX = x + item.width / item.text.length * matchStartInItem;
|
|
1734
|
-
const yOffset = height * 0.
|
|
1734
|
+
const yOffset = height * 0.3;
|
|
1735
1735
|
rects.push({
|
|
1736
1736
|
x: matchX,
|
|
1737
1737
|
y: y - height + yOffset,
|
|
@@ -9327,7 +9327,7 @@ function calculateMatchRects3(textItems, startOffset, length, viewport) {
|
|
|
9327
9327
|
const charWidth = item.text.length > 0 ? item.width / item.text.length : item.width;
|
|
9328
9328
|
const matchWidth = charWidth * (matchEndInItem - matchStartInItem);
|
|
9329
9329
|
const matchX = x + charWidth * matchStartInItem;
|
|
9330
|
-
const yOffset = height * 0.
|
|
9330
|
+
const yOffset = height * 0.3;
|
|
9331
9331
|
rects.push({
|
|
9332
9332
|
x: matchX,
|
|
9333
9333
|
y: y - height + yOffset,
|