Compare commits
No commits in common. "10e2996039121881f6561d4dca08675ca6f7a7f7" and "fc900c68d01c4583bad6785cca680e268f48941e" have entirely different histories.
10e2996039
...
fc900c68d0
|
|
@ -10,8 +10,8 @@ import type {
|
|||
OnGetTextSuccess,
|
||||
} from "node_modules/react-pdf/dist/esm/shared/types";
|
||||
import { socket } from "../socket";
|
||||
import { API_HOST } from "../util/api";
|
||||
import { highlightPattern } from "../util/highlighting";
|
||||
import { API_HOST } from "../util/api";
|
||||
|
||||
interface PDFViewerProps {
|
||||
pitchBookId: string;
|
||||
|
|
@ -111,8 +111,7 @@ export default function PDFViewer({
|
|||
) {
|
||||
for (
|
||||
let k = textItems[i].i;
|
||||
k < textItems[i + s.split(" ").length]?.i ||
|
||||
k < textItems[i + s.split(" ").length - 1]?.i;
|
||||
k < textItems[i + s.split(" ").length].i;
|
||||
k++
|
||||
) {
|
||||
tmpPos.push(textContent[k].posKey);
|
||||
|
|
@ -130,8 +129,7 @@ export default function PDFViewer({
|
|||
) {
|
||||
for (
|
||||
let k = textItems[i].i;
|
||||
k < textItems[i + focusHighlight.text.split(" ").length]?.i ||
|
||||
k < textItems[i + focusHighlight.text.split(" ").length - 1]?.i;
|
||||
k < textItems[i + focusHighlight.text.split(" ").length].i;
|
||||
k++
|
||||
) {
|
||||
tmpPosHighlight.push(textContent[k].posKey);
|
||||
|
|
|
|||
Loading…
Reference in New Issue