Socket
Socket
Sign inDemoInstall

@syncfusion/ej2-pdfviewer

Package Overview
Dependencies
Maintainers
3
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 17.3.21 to 17.3.26

18

CHANGELOG.md

@@ -9,4 +9,20 @@ # Changelog

- `#252805` - Exposed the annotation unique ID in the annotationAdd event arguments.
#### Bug Fixes
- `#252806` - Annotation bounds are retrieved properly when importing and exporting the annotation details in rotated PDF documents.
- `#253016` - Free text annotation bounds are preserved properly in the rotated PDF document while saving the document.
- `#251152` - Text markup annotation resizer position will be updated properly in the doctype HTML pages.
- `#252879` - Script errors will no longer occur if we disable the magnification module.
- `#253504` - The character start and end indexes will be updated properly in the text markup annotationAdd event arguments.
## 17.3.21 (2019-10-30)
### PDF Viewer
#### New Features
- `#252111` - Provided the support for handwritten signature.
- `#251149` – Provided the support for customizing the text search highlight color.
- `#251149` - Provided the support for customizing the text search highlight color.

@@ -13,0 +29,0 @@ #### Bug Fixes

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 17.3.21
* version : 17.3.26
* 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.3.19",
"_id": "@syncfusion/ej2-pdfviewer@17.3.21",
"_inBundle": false,
"_integrity": "sha512-oyWVydupeRd1al9lJxoCIjwzXX3aSW0My5Yq4LEZE+pTdoLxkUv3LQmxjrIuIekdHxd4rJ2q/MCb/LtQX9A+bg==",
"_integrity": "sha512-v9t4HCFe3LFZa5Hz+LZTpsh/k100u0wmpJ9zz28NH3I9UwMYFzNNSuN2SatQ13FmJ3BDhKkyQ5/iKc9+EaeC1g==",
"_location": "/@syncfusion/ej2-pdfviewer",

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

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.3.19.tgz",
"_shasum": "b7ae6842bc59e1714b1ff417e7ca5ea708a68a92",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.3.21.tgz",
"_shasum": "861a6b5da7ccf3c5d1eb0d6e6d14309b5dcafce9",
"_spec": "@syncfusion/ej2-pdfviewer@*",

@@ -39,15 +39,15 @@ "_where": "/jenkins/workspace/ation_hotfix_17.2.0.34_Vol2-DDPJ6C2YEWTWLLKKNA7AG2JBE6DYTCTNGMHGORWGAYAVCL6L7OLQ/packages/included",

"dependencies": {
"@syncfusion/ej2-base": "~17.3.19",
"@syncfusion/ej2-buttons": "~17.3.19",
"@syncfusion/ej2-calendars": "~17.3.19",
"@syncfusion/ej2-data": "~17.3.19",
"@syncfusion/ej2-drawings": "~17.3.19",
"@syncfusion/ej2-dropdowns": "~17.3.21",
"@syncfusion/ej2-inplace-editor": "~17.3.19",
"@syncfusion/ej2-inputs": "~17.3.21",
"@syncfusion/ej2-lists": "~17.3.21",
"@syncfusion/ej2-navigations": "~17.3.21",
"@syncfusion/ej2-notifications": "~17.3.19",
"@syncfusion/ej2-popups": "~17.3.19",
"@syncfusion/ej2-richtexteditor": "~17.3.19"
"@syncfusion/ej2-base": "~17.3.26",
"@syncfusion/ej2-buttons": "~17.3.26",
"@syncfusion/ej2-calendars": "~17.3.26",
"@syncfusion/ej2-data": "~17.3.26",
"@syncfusion/ej2-drawings": "~17.3.26",
"@syncfusion/ej2-dropdowns": "~17.3.26",
"@syncfusion/ej2-inplace-editor": "~17.3.26",
"@syncfusion/ej2-inputs": "~17.3.26",
"@syncfusion/ej2-lists": "~17.3.26",
"@syncfusion/ej2-navigations": "~17.3.26",
"@syncfusion/ej2-notifications": "~17.3.26",
"@syncfusion/ej2-popups": "~17.3.26",
"@syncfusion/ej2-richtexteditor": "~17.3.26"
},

@@ -78,4 +78,4 @@ "deprecated": false,

"typings": "index.d.ts",
"version": "17.3.21",
"version": "17.3.26",
"sideEffects": false
}

@@ -324,3 +324,3 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';

// tslint:disable-next-line:max-line-length
pageAnnotationObject.annotations[z].bounds = JSON.stringify(pageAnnotationObject.annotations[z].bounds);
pageAnnotationObject.annotations[z].bounds = JSON.stringify(this.pdfViewer.annotation.getBounds(pageAnnotationObject.annotations[z].bounds, pageAnnotationObject.pageIndex));
var strokeColorString = pageAnnotationObject.annotations[z].strokeColor;

@@ -327,0 +327,0 @@ pageAnnotationObject.annotations[z].strokeColor = JSON.stringify(this.getRgbCode(strokeColorString));

@@ -415,2 +415,4 @@ import { ColorPicker, NumericTextBox } from '@syncfusion/ej2-inputs';

if (pageAnnotationObject.annotations[z].enableShapeLabel === true) {
// tslint:disable-next-line:max-line-length
pageAnnotationObject.annotations[z].labelBounds = JSON.stringify(this.pdfViewer.annotationModule.inputElementModule.calculateLabelBounds(JSON.parse(pageAnnotationObject.annotations[z].bounds)));
var labelFillColorString = pageAnnotationObject.annotations[z].labelFillColor;

@@ -417,0 +419,0 @@ pageAnnotationObject.annotations[z].labelFillColor = JSON.stringify(this.getRgbCode(labelFillColorString));

@@ -424,2 +424,4 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';

if (pageAnnotationObject.annotations[z].enableShapeLabel === true) {
// tslint:disable-next-line:max-line-length
pageAnnotationObject.annotations[z].labelBounds = JSON.stringify(this.pdfViewer.annotationModule.inputElementModule.calculateLabelBounds(JSON.parse(pageAnnotationObject.annotations[z].bounds)));
var labelFillColorString = pageAnnotationObject.annotations[z].labelFillColor;

@@ -426,0 +428,0 @@ pageAnnotationObject.annotations[z].labelFillColor = JSON.stringify(this.getRgbCode(labelFillColorString));

@@ -150,3 +150,3 @@ import { BaseEventArgs } from '@syncfusion/ej2-base';

*/
annotationId: number;
annotationId: string;
/**

@@ -180,3 +180,3 @@ * Defines the page number in which the annotation is added.

*/
annotationId: number;
annotationId: string;
/**

@@ -198,3 +198,3 @@ * Defines the page number in which the annotation is removed.

*/
annotationId: number;
annotationId: string;
/**

@@ -252,3 +252,3 @@ * Defines the page number in which the annotation property is changed.

*/
annotationId: number;
annotationId: string;
/**

@@ -255,0 +255,0 @@ * Defines the page number in which the annotation is resized.

@@ -581,2 +581,5 @@ import { createElement, Browser } from '@syncfusion/ej2-base';

}
if (this.pdfViewer.annotation && this.pdfViewer.annotation.textMarkupAnnotationModule) {
this.pdfViewer.annotation.textMarkupAnnotationModule.showHideDropletDiv(true);
}
}

@@ -583,0 +586,0 @@ };

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

private addSignature;
private hideSignaturePanel;
private createSignatureCanvas;

@@ -57,0 +58,0 @@ /**

@@ -38,5 +38,12 @@ import { createElement, isNullOrUndefined } from '@syncfusion/ej2-base';

showCloseIcon: true, closeOnEscape: false, isModal: true, header: this.pdfViewer.localeObj.getConstant('Draw Signature'),
target: this.pdfViewer.element, content: appearanceTab, width: '750px', visible: false,
close: function () {
target: this.pdfViewer.element, content: appearanceTab, width: '750px', visible: true,
beforeClose: function () {
_this.clearSignatureCanvas();
_this.signatureDialog.destroy();
_this.signatureDialog = null;
// tslint:disable-next-line
var signatureWindow = document.getElementById(_this.pdfViewer.element.id + '_signature_window');
if (signatureWindow) {
signatureWindow.remove();
}
}

@@ -83,3 +90,3 @@ });

};
this.signatureDialog.hide();
this.hideSignaturePanel();
this.pdfViewerBase.currentSignatureAnnot = annot;

@@ -90,4 +97,10 @@ this.pdfViewerBase.isToolbarSignClicked = false;

this.pdfViewer.formFieldsModule.drawSignature();
this.hideSignaturePanel();
}
};
Signature.prototype.hideSignaturePanel = function () {
if (this.signatureDialog) {
this.signatureDialog.hide();
}
};
// tslint:disable-next-line

@@ -458,7 +471,4 @@ Signature.prototype.createSignatureCanvas = function () {

if (isShow) {
this.signatureDialog.show();
this.createSignaturePanel();
}
else {
this.signatureDialog.hide();
}
};

@@ -477,5 +487,2 @@ /**

window.sessionStorage.removeItem('_annotations_sign');
if (this.signatureDialog) {
this.signatureDialog.destroy();
}
};

@@ -482,0 +489,0 @@ return Signature;

@@ -1581,11 +1581,11 @@ import { Component, INotifyPropertyChanged, ChildProperty, L10n } from '@syncfusion/ej2-base';

*/
fireAnnotationAdd(pageNumber: number, index: number, type: AnnotationType, bounds: any, settings: any, textMarkupContent?: string, tmStartIndex?: number, tmEndIndex?: number): void;
fireAnnotationAdd(pageNumber: number, index: string, type: AnnotationType, bounds: any, settings: any, textMarkupContent?: string, tmStartIndex?: number, tmEndIndex?: number): void;
/**
* @private
*/
fireAnnotationRemove(pageNumber: number, index: number, type: AnnotationType): void;
fireAnnotationRemove(pageNumber: number, index: string, type: AnnotationType): void;
/**
* @private
*/
fireAnnotationPropertiesChange(pageNumber: number, index: number, type: AnnotationType, isColorChanged: boolean, isOpacityChanged: boolean, isTextChanged: boolean, isCommentsChanged: boolean): void;
fireAnnotationPropertiesChange(pageNumber: number, index: string, type: AnnotationType, isColorChanged: boolean, isOpacityChanged: boolean, isTextChanged: boolean, isCommentsChanged: boolean): void;
/**

@@ -1610,3 +1610,3 @@ * @private

*/
fireAnnotationResize(pageNumber: number, index: number, type: AnnotationType, bounds: any, settings: any): void;
fireAnnotationResize(pageNumber: number, index: string, type: AnnotationType, bounds: any, settings: any): void;
/**

@@ -1613,0 +1613,0 @@ * @private

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

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