Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-pdfviewer

Package Overview
Dependencies
Maintainers
0
Versions
291
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-pdfviewer - npm Package Compare versions

Comparing version 26.1.39 to 26.1.40

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 26.1.39
* version : 26.1.40
* Copyright Syncfusion Inc. 2001 - 2023. 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@26.1.38",
"_id": "@syncfusion/ej2-pdfviewer@26.1.39",
"_inBundle": false,
"_integrity": "sha512-1yH0o6ZvCuMja+CUH0DAbvyhoG/fxKcPnuFlgIvrg6TgvVQq6iuOupumYY4hXOSYFwiAVIfW1LIS9ZkFnqSaDw==",
"_integrity": "sha512-+Qg0k8OcVi/oS6mEyKqZRHwES+Gz5FJi9aRc+HfO7HhwHea7bvIH+wCOqCuoHm1dWcfSxDSgW+TFi40xbgq7Wg==",
"_location": "/@syncfusion/ej2-pdfviewer",

@@ -26,4 +26,4 @@ "_phantomChildren": {},

],
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-26.1.38.tgz",
"_shasum": "5838e967fd48dbb2e752dea45524f2341d77455f",
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-26.1.39.tgz",
"_shasum": "7eed6eeb24f7f740d6f8f50fa76602370b11128c",
"_spec": "@syncfusion/ej2-pdfviewer@*",

@@ -40,12 +40,12 @@ "_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",

"@syncfusion/ej2-base": "~26.1.37",
"@syncfusion/ej2-buttons": "~26.1.35",
"@syncfusion/ej2-data": "~26.1.35",
"@syncfusion/ej2-drawings": "~26.1.39",
"@syncfusion/ej2-dropdowns": "~26.1.39",
"@syncfusion/ej2-buttons": "~26.1.40",
"@syncfusion/ej2-data": "~26.1.40",
"@syncfusion/ej2-drawings": "~26.1.40",
"@syncfusion/ej2-dropdowns": "~26.1.40",
"@syncfusion/ej2-inplace-editor": "~26.1.35",
"@syncfusion/ej2-inputs": "~26.1.39",
"@syncfusion/ej2-inputs": "~26.1.40",
"@syncfusion/ej2-lists": "~26.1.35",
"@syncfusion/ej2-navigations": "~26.1.39",
"@syncfusion/ej2-navigations": "~26.1.40",
"@syncfusion/ej2-notifications": "~26.1.35",
"@syncfusion/ej2-pdf": "~26.1.39",
"@syncfusion/ej2-pdf": "~26.1.40",
"@syncfusion/ej2-popups": "~26.1.38"

@@ -77,4 +77,4 @@ },

"typings": "index.d.ts",
"version": "26.1.39",
"version": "26.1.40",
"sideEffects": false
}

@@ -31,3 +31,3 @@ import { PdfAnnotationBorder, PdfDocument, PdfPage, PdfSquareAnnotation, PdfPopupAnnotation, PdfLineAnnotation, PdfFont, PdfFontStyle, PdfFontFamily, PdfRubberStampAnnotation, PdfPolyLineAnnotation, PdfFreeTextAnnotation, PdfPolygonAnnotation, PdfEllipseAnnotation, PdfTextMarkupAnnotation, PdfInkAnnotation } from '@syncfusion/ej2-pdf';

* @param {any} details - details
* @param {PdfPage} page - page
* @param {PdfPage} page - page.
* @returns {void}

@@ -34,0 +34,0 @@ */

@@ -17,2 +17,3 @@ import { PdfViewer, PdfViewerBase } from '../index';

private thumbnailThreshold;
private thumbnailRequestsBatch;
private thumbnailTopMargin;

@@ -19,0 +20,0 @@ private thumbnailTop;

@@ -19,3 +19,4 @@ import { AjaxHandler } from '../index';

this.thumbnailLimit = 30;
this.thumbnailThreshold = 50;
this.thumbnailThreshold = 5;
this.thumbnailRequestsBatch = 5;
this.thumbnailTopMargin = 10;

@@ -42,3 +43,3 @@ this.thumbnailTop = 8;

if (index !== -1) {
var number = Math.floor((index) / 50) * 50;
var number = Math.floor((index) / _this.thumbnailRequestsBatch) * _this.thumbnailRequestsBatch;
_this.updateScrollTopForThumbnail(number);

@@ -174,2 +175,3 @@ return "break";

var proxy = this;
proxy.thumbnailLimit = 0;
for (var i = 0; i < proxy.pdfViewer.pageCount; i++) {

@@ -232,3 +234,3 @@ proxy.renderThumbnailEmptyPage(i);

var _this = this;
var step = 50;
var step = this.thumbnailRequestsBatch;
var number = Math.floor((pageNumber + 1) / step) * step;

@@ -381,16 +383,18 @@ var lastNum = this.pdfViewer.thumbnailViewModule.thumbnailLimit;

}
var data = ({
thumbnailImage: imageUrl,
startPage: this.startIndex,
endPage: this.thumbnailLimit,
uniqueId: this.pdfViewerBase.documentId,
pageIndex: pageIndex
});
if (!Browser.isDevice || this.pdfViewer.enableDesktopMode) {
this.updateThumbnailCollection(data);
}
else {
if (!isNullOrUndefined(this.pdfViewer.pageOrganizer)) {
this.pdfViewer.pageOrganizer.updatePreviewCollection(data);
if (this.pdfViewer.pageOrganizerModule) {
var data = ({
thumbnailImage: imageUrl,
startPage: this.startIndex,
endPage: this.thumbnailLimit,
uniqueId: this.pdfViewerBase.documentId,
pageIndex: pageIndex
});
if (!Browser.isDevice || this.pdfViewer.enableDesktopMode) {
this.updateThumbnailCollection(data);
}
else {
if (!isNullOrUndefined(this.pdfViewer.pageOrganizer)) {
this.pdfViewer.pageOrganizer.updatePreviewCollection(data);
}
}
}

@@ -446,5 +450,7 @@ }

}
this.thumbnailTop = this.thumbnailPageSize[i - 1].top + this.thumbnailPageSize[i - 1].height;
var thumbnailSize = { height: height, top: this.thumbnailTop };
this.thumbnailPageSize[parseInt(i.toString(), 10)] = thumbnailSize;
if (this.thumbnailPageSize.length > 0) {
this.thumbnailTop = this.thumbnailPageSize[i - 1].top + this.thumbnailPageSize[i - 1].height;
var thumbnailSize = { height: height, top: this.thumbnailTop };
this.thumbnailPageSize[parseInt(i.toString(), 10)] = thumbnailSize;
}
}

@@ -499,3 +505,3 @@ this.isRendered = true;

var pageCount = this.pdfViewer.pageCount;
var batchSize = 50; // Assuming thumbnails are requested in batches of 50
var batchSize = this.thumbnailRequestsBatch; // Assuming thumbnails are requested in batches of 5
var numberOfBatches = Math.ceil(pageCount / batchSize);

@@ -502,0 +508,0 @@ if (this.list.length === numberOfBatches) {

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

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

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc