@syncfusion/ej2-pdfviewer
Advanced tools
Comparing version 17.4.39 to 17.4.40
@@ -9,2 +9,14 @@ # Changelog | ||
- `#256131` – Improved the rendering quality and performance for the large size PDF document. | ||
#### Bug Fixes | ||
- `#258250` – The imported annotations are rendered properly if we import the annotation details in the documentLoad event. | ||
## 17.4.39 (2019-12-17) | ||
### PDF Viewer | ||
#### New Features | ||
- `#251150` – Provided the support to find the interlinked annotations while selecting the annotations. | ||
@@ -11,0 +23,0 @@ - `#243077` , `#241487`, `#244802`, `#252340` – Provided the support for setting the annotation UI properties. |
/*! | ||
* filename: index.d.ts | ||
* version : 17.4.39 | ||
* version : 17.4.40 | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-pdfviewer@*", | ||
"_id": "@syncfusion/ej2-pdfviewer@17.2.48", | ||
"_id": "@syncfusion/ej2-pdfviewer@17.4.39", | ||
"_inBundle": false, | ||
"_integrity": "sha512-YZdwNpeUsqkWlbOIFrVtdueHBF2TIHwAkSY6i3Q7eeni+kwBEVTVmavOUCWkkCoBvxYrj1ZGtQ9JcZAQBfpDXw==", | ||
"_integrity": "sha512-FQZwfl/QSb3m2vFgE1m6aNJBCxT2v7PQ5yZoaucJWbvcvT3bebNjokziWC5K6aZsI3zh+I+533k8334MVdcJSA==", | ||
"_location": "/@syncfusion/ej2-pdfviewer", | ||
@@ -26,4 +26,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.2.48.tgz", | ||
"_shasum": "d05ae50899d5272d16b2647698187e77a2f49ea5", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.4.39.tgz", | ||
"_shasum": "639372c26263b992027b591f29a11709f0a94fdb", | ||
"_spec": "@syncfusion/ej2-pdfviewer@*", | ||
@@ -41,13 +41,13 @@ "_where": "/jenkins/workspace/ation_hotfix_17.2.0.34_Vol2-DDPJ6C2YEWTWLLKKNA7AG2JBE6DYTCTNGMHGORWGAYAVCL6L7OLQ/packages/included", | ||
"@syncfusion/ej2-buttons": "~17.4.39", | ||
"@syncfusion/ej2-calendars": "~17.4.39", | ||
"@syncfusion/ej2-calendars": "~17.4.40", | ||
"@syncfusion/ej2-data": "~17.4.39", | ||
"@syncfusion/ej2-drawings": "~17.4.39", | ||
"@syncfusion/ej2-dropdowns": "~17.4.39", | ||
"@syncfusion/ej2-inplace-editor": "~17.4.39", | ||
"@syncfusion/ej2-dropdowns": "~17.4.40", | ||
"@syncfusion/ej2-inplace-editor": "~17.4.40", | ||
"@syncfusion/ej2-inputs": "~17.4.39", | ||
"@syncfusion/ej2-lists": "~17.4.39", | ||
"@syncfusion/ej2-lists": "~17.4.40", | ||
"@syncfusion/ej2-navigations": "~17.4.39", | ||
"@syncfusion/ej2-notifications": "~17.4.39", | ||
"@syncfusion/ej2-notifications": "~17.4.40", | ||
"@syncfusion/ej2-popups": "~17.4.39", | ||
"@syncfusion/ej2-richtexteditor": "~17.4.39" | ||
"@syncfusion/ej2-richtexteditor": "~17.4.40" | ||
}, | ||
@@ -78,4 +78,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "17.4.39", | ||
"version": "17.4.40", | ||
"sideEffects": false | ||
} |
@@ -90,2 +90,6 @@ import { PdfViewerBase, PdfViewer } from '../index'; | ||
*/ | ||
isAnnotationRendered: boolean; | ||
/** | ||
* @private | ||
*/ | ||
constructor(pdfViewer: PdfViewer, pdfViewerBase: PdfViewerBase); | ||
@@ -105,2 +109,7 @@ /** | ||
createRequestForComments(): void; | ||
/** | ||
* @private | ||
*/ | ||
updateAnnotationsInDocumentCollections(excistingAnnotation: any, newAnnotation: any): any; | ||
private updateDocumentAnnotationCollections; | ||
private renderAnnotationCollections; | ||
@@ -107,0 +116,0 @@ /** |
@@ -296,5 +296,7 @@ import { createElement, Browser } from '@syncfusion/ej2-base'; | ||
if (this.pdfViewer.annotation && this.pdfViewer.annotation.textMarkupAnnotationModule) { | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.isSelectionMaintained = false; | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.drawTextMarkupAnnotations('Highlight'); | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.isTextMarkupAnnotationMode = false; | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.currentTextMarkupAddMode = ''; | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.isSelectionMaintained = true; | ||
} | ||
@@ -304,5 +306,7 @@ break; | ||
if (this.pdfViewer.annotation && this.pdfViewer.annotation.textMarkupAnnotationModule) { | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.isSelectionMaintained = false; | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.drawTextMarkupAnnotations('Underline'); | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.isTextMarkupAnnotationMode = false; | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.currentTextMarkupAddMode = ''; | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.isSelectionMaintained = true; | ||
} | ||
@@ -312,5 +316,7 @@ break; | ||
if (this.pdfViewer.annotation && this.pdfViewer.annotation.textMarkupAnnotationModule) { | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.isSelectionMaintained = false; | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.drawTextMarkupAnnotations('Strikethrough'); | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.isTextMarkupAnnotationMode = false; | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.currentTextMarkupAddMode = ''; | ||
this.pdfViewer.annotation.textMarkupAnnotationModule.isSelectionMaintained = true; | ||
} | ||
@@ -317,0 +323,0 @@ break; |
@@ -803,3 +803,7 @@ import { PdfViewer, TextLayer, ContextMenu, Signature } from '../index'; | ||
deleteAnnotations(): void; | ||
/** | ||
* @private | ||
*/ | ||
createAnnotationsCollection(): any; | ||
} | ||
export {}; |
@@ -318,31 +318,33 @@ import { createElement, isNullOrUndefined, Browser } from '@syncfusion/ej2-base'; | ||
var length_1 = void 0; | ||
length_1 = textDiv.textContent.length; | ||
var textContent = textDiv.textContent; | ||
textDiv.textContent = ''; | ||
if (j === startId) { | ||
if (i === startPage) { | ||
initId = anchorOffset; | ||
if (textDiv.textContent) { | ||
length_1 = textDiv.textContent.length; | ||
var textContent = textDiv.textContent; | ||
textDiv.textContent = ''; | ||
if (j === startId) { | ||
if (i === startPage) { | ||
initId = anchorOffset; | ||
} | ||
else { | ||
initId = 0; | ||
} | ||
lastId = length_1; | ||
this.convertToSpan(i, j, 0, initId, textContent, null); | ||
} | ||
else if (j === endId && i === endPage) { | ||
initId = 0; | ||
lastId = focusOffset; | ||
} | ||
else { | ||
initId = 0; | ||
lastId = length_1; | ||
} | ||
lastId = length_1; | ||
this.convertToSpan(i, j, 0, initId, textContent, null); | ||
if (startId === endId) { | ||
initId = anchorOffset; | ||
lastId = focusOffset; | ||
} | ||
this.convertToSpan(i, j, initId, lastId, textContent, 'e-pv-maintaincontent'); | ||
if (j === endId && i === endPage) { | ||
this.convertToSpan(i, j, lastId, textContent.length, textContent, null); | ||
} | ||
} | ||
else if (j === endId && i === endPage) { | ||
initId = 0; | ||
lastId = focusOffset; | ||
} | ||
else { | ||
initId = 0; | ||
lastId = length_1; | ||
} | ||
if (startId === endId) { | ||
initId = anchorOffset; | ||
lastId = focusOffset; | ||
} | ||
this.convertToSpan(i, j, initId, lastId, textContent, 'e-pv-maintaincontent'); | ||
if (j === endId && i === endPage) { | ||
this.convertToSpan(i, j, lastId, textContent.length, textContent, null); | ||
} | ||
} | ||
@@ -349,0 +351,0 @@ } |
@@ -482,3 +482,5 @@ import { createElement, Browser, isNullOrUndefined } from '@syncfusion/ej2-base'; | ||
if (isNullOrUndefined(textLayer) && className === 'e-pv-search-text-highlight') { | ||
this.pdfViewer.navigation.goToPage(pageIndex + 1); | ||
if (this.pdfViewer.navigation) { | ||
this.pdfViewer.navigation.goToPage(pageIndex + 1); | ||
} | ||
} | ||
@@ -614,10 +616,14 @@ var count = this.searchMatches[pageIndex][index]; | ||
var textDiv = searchDivs[i]; | ||
var previousZoomFactor = 1; | ||
if (this.pdfViewer.magnificationModule) { | ||
previousZoomFactor = this.pdfViewer.magnificationModule.previousZoomFactor; | ||
} | ||
// tslint:disable-next-line | ||
textDiv.style.width = (parseFloat(textDiv.style.width) / this.pdfViewer.magnificationModule.previousZoomFactor) * this.pdfViewerBase.getZoomFactor() + 'px'; | ||
textDiv.style.width = (parseFloat(textDiv.style.width) / previousZoomFactor) * this.pdfViewerBase.getZoomFactor() + 'px'; | ||
// tslint:disable-next-line | ||
textDiv.style.height = (parseFloat(textDiv.style.height) / this.pdfViewer.magnificationModule.previousZoomFactor) * this.pdfViewerBase.getZoomFactor() + 'px'; | ||
textDiv.style.height = (parseFloat(textDiv.style.height) / previousZoomFactor) * this.pdfViewerBase.getZoomFactor() + 'px'; | ||
// tslint:disable-next-line | ||
textDiv.style.top = (parseFloat(textDiv.style.top) / this.pdfViewer.magnificationModule.previousZoomFactor) * this.pdfViewerBase.getZoomFactor() + 'px'; | ||
textDiv.style.top = (parseFloat(textDiv.style.top) / previousZoomFactor) * this.pdfViewerBase.getZoomFactor() + 'px'; | ||
// tslint:disable-next-line | ||
textDiv.style.left = (parseFloat(textDiv.style.left) / this.pdfViewer.magnificationModule.previousZoomFactor) * this.pdfViewerBase.getZoomFactor() + 'px'; | ||
textDiv.style.left = (parseFloat(textDiv.style.left) / previousZoomFactor) * this.pdfViewerBase.getZoomFactor() + 'px'; | ||
} | ||
@@ -624,0 +630,0 @@ }; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
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
25692020
174316