react-pdf-highlighter
Advanced tools
Comparing version 5.5.0 to 5.6.0
@@ -34,3 +34,3 @@ import { PointerEventHandler, PureComponent } from "react"; | ||
onScrollChange: () => void; | ||
scrollRef: (scrollTo: (highlight: IHighlight) => void) => void; | ||
scrollRef: (scrollTo: (highlight: T_HT) => void) => void; | ||
pdfDocument: PDFDocumentProxy; | ||
@@ -74,3 +74,3 @@ pdfScaleValue: string; | ||
onTextLayerRendered: () => void; | ||
scrollTo: (highlight: IHighlight) => void; | ||
scrollTo: (highlight: T_HT) => void; | ||
onDocumentReady: () => void; | ||
@@ -77,0 +77,0 @@ onSelectionChange: () => void; |
@@ -29,4 +29,2 @@ "use strict"; | ||
if (isClientRectInsidePageRect(clientRect, pageRect) && | ||
clientRect.top >= 0 && | ||
clientRect.bottom >= 0 && | ||
clientRect.width > 0 && | ||
@@ -33,0 +31,0 @@ clientRect.height > 0 && |
@@ -49,2 +49,3 @@ "use strict"; | ||
} | ||
currentPageNumber++; | ||
} | ||
@@ -51,0 +52,0 @@ return pages; |
@@ -34,3 +34,3 @@ import { PointerEventHandler, PureComponent } from "react"; | ||
onScrollChange: () => void; | ||
scrollRef: (scrollTo: (highlight: IHighlight) => void) => void; | ||
scrollRef: (scrollTo: (highlight: T_HT) => void) => void; | ||
pdfDocument: PDFDocumentProxy; | ||
@@ -74,3 +74,3 @@ pdfScaleValue: string; | ||
onTextLayerRendered: () => void; | ||
scrollTo: (highlight: IHighlight) => void; | ||
scrollTo: (highlight: T_HT) => void; | ||
onDocumentReady: () => void; | ||
@@ -77,0 +77,0 @@ onSelectionChange: () => void; |
@@ -24,4 +24,2 @@ import optimizeClientRects from "./optimize-client-rects"; | ||
if (isClientRectInsidePageRect(clientRect, pageRect) && | ||
clientRect.top >= 0 && | ||
clientRect.bottom >= 0 && | ||
clientRect.width > 0 && | ||
@@ -28,0 +26,0 @@ clientRect.height > 0 && |
@@ -40,2 +40,3 @@ export const getDocument = (elm) => (elm || {}).ownerDocument || document; | ||
} | ||
currentPageNumber++; | ||
} | ||
@@ -42,0 +43,0 @@ return pages; |
{ | ||
"name": "react-pdf-highlighter", | ||
"version": "5.5.0", | ||
"version": "5.6.0", | ||
"description": "Set of React components for PDF annotation", | ||
@@ -5,0 +5,0 @@ "author": "Artem Tyurin <artem.tyurin@gmail.com>", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
225347
3464