Skip to content

Commit

Permalink
chore: remove commented out code
Browse files Browse the repository at this point in the history
  • Loading branch information
noah-eigenfeld committed Jun 11, 2024
1 parent a80c3c1 commit df459b7
Showing 1 changed file with 0 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,8 @@ import cx from 'classnames';
import { TextContent, TextItem, PDFPageProxy } from 'pdfjs-dist/types/src/display/api';
import { PageViewport } from 'pdfjs-dist/types/src/display/display_utils';
import { TextLayerBuilder } from 'pdfjs-dist/web/pdf_viewer.mjs';
import { TextLayer as PdfJsTextLayer } from 'pdfjs-dist/build/pdf.mjs';
import useAsyncFunctionCall from 'utils/useAsyncFunctionCall';
import { PdfDisplayProps } from './types';
// import { TextAccessibilityManager } from 'pdfjs-dist/web/text_accessibility';

type PdfViewerTextLayerProps = Pick<PdfDisplayProps, 'scale'> & {
className?: string;
Expand Down Expand Up @@ -92,15 +90,6 @@ const PdfViewerTextLayer: FC<PdfViewerTextLayerProps> = ({

signal.addEventListener('abort', () => builder.cancel());

// const pdfJsTextLayer = new PdfJsTextLayer({
// textContentSource: textContent,
// container: textLayerWrapper,
// viewport
// });
// await pdfJsTextLayer.render();
// textDivs = pdfJsTextLayer.textDivs;
// await _renderTextLayer(builder, textContent, textLayerWrapper, scale, viewport, textDivs);

textLayerWrapper.innerHTML = '';
await builder.render(viewport, textContent);
return { textContent, viewport, page, textDivs };
Expand Down

0 comments on commit df459b7

Please sign in to comment.