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.4.50 to 17.4.51

2

CHANGELOG.md

@@ -5,2 +5,4 @@ # Changelog

## 17.4.50 (2020-02-18)
### PDF Viewer

@@ -7,0 +9,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 17.4.50
* version : 17.4.51
* 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.4.49",
"_id": "@syncfusion/ej2-pdfviewer@17.4.50",
"_inBundle": false,
"_integrity": "sha512-T0gXjo1Z64she07O3vgk8n0JMtIULWmrcWk4SxhGKQIUTSZnqrJMjyyN1403e1QvqzA8WvrMISYs0fIGjuz/+w==",
"_integrity": "sha512-tib+LzxVtyBYcNC+4hdW628VJJ/2yNsCqioXv8UJYtTk8lGxtWoGvnmbyjSUyteFgKU5HzXe2eyRWHjmbMVGaw==",
"_location": "/@syncfusion/ej2-pdfviewer",

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

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.4.49.tgz",
"_shasum": "dbeff4c0df46ec3f9b1755d0acf890353fd8cb04",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.4.50.tgz",
"_shasum": "4aa7b38f7e8622afd25cd5e400a944ff423d630d",
"_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.4.47",
"@syncfusion/ej2-buttons": "~17.4.49",
"@syncfusion/ej2-calendars": "~17.4.50",
"@syncfusion/ej2-data": "~17.4.47",
"@syncfusion/ej2-drawings": "~17.4.47",
"@syncfusion/ej2-dropdowns": "~17.4.50",
"@syncfusion/ej2-inplace-editor": "~17.4.50",
"@syncfusion/ej2-inputs": "~17.4.47",
"@syncfusion/ej2-lists": "~17.4.47",
"@syncfusion/ej2-navigations": "~17.4.50",
"@syncfusion/ej2-notifications": "~17.4.47",
"@syncfusion/ej2-popups": "~17.4.49",
"@syncfusion/ej2-richtexteditor": "~17.4.49"
"@syncfusion/ej2-base": "~17.4.51",
"@syncfusion/ej2-buttons": "~17.4.51",
"@syncfusion/ej2-calendars": "~17.4.51",
"@syncfusion/ej2-data": "~17.4.51",
"@syncfusion/ej2-drawings": "~17.4.51",
"@syncfusion/ej2-dropdowns": "~17.4.51",
"@syncfusion/ej2-inplace-editor": "~17.4.51",
"@syncfusion/ej2-inputs": "~17.4.51",
"@syncfusion/ej2-lists": "~17.4.51",
"@syncfusion/ej2-navigations": "~17.4.51",
"@syncfusion/ej2-notifications": "~17.4.51",
"@syncfusion/ej2-popups": "~17.4.51",
"@syncfusion/ej2-richtexteditor": "~17.4.51"
},

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

"typings": "index.d.ts",
"version": "17.4.50",
"version": "17.4.51",
"sideEffects": false
}

@@ -5,2 +5,3 @@ import { Rect } from '@syncfusion/ej2-drawings';

import { isPointOverConnector } from './connector-util';
import { LineTool, NodeDrawingTool } from './tools';
/** @private */

@@ -50,5 +51,6 @@ export function findActiveElement(event, pdfBase, pdfViewer) {

var offsetForSelector = 5;
var boundsDiff = 0;
for (var i = 0; i < objects.length; i++) {
// tslint:disable-next-line:max-line-length
if (!(objects[i].shapeAnnotationType === 'Distance' || objects[i].shapeAnnotationType === 'Line' || objects[i].shapeAnnotationType === 'LineWidthArrowHead')) {
if (!(objects[i].shapeAnnotationType === 'Distance' || objects[i].shapeAnnotationType === 'Line' || objects[i].shapeAnnotationType === 'LineWidthArrowHead' || pdfBase.tool instanceof LineTool)) {
var bounds = objects[i].wrapper.bounds;

@@ -62,4 +64,22 @@ var rotationValue = 0;

(((bounds.y - offsetForSelector - rotationValue) * pdfBase.getZoomFactor()) < offsetY) && (((bounds.y + bounds.height + offsetForSelector) * pdfBase.getZoomFactor()) > offsetY)) {
actualTarget = objects[i];
break;
if (pdfBase.tool instanceof NodeDrawingTool) {
actualTarget = objects[i];
}
else {
if (!boundsDiff) {
actualTarget = objects[i];
// tslint:disable-next-line:max-line-length
boundsDiff = (offsetX - ((bounds.x - offsetForSelector) * pdfBase.getZoomFactor())) + (((bounds.x + bounds.width + offsetForSelector) * pdfBase.getZoomFactor()) - offsetX) +
(offsetY - ((bounds.y - offsetForSelector - rotationValue) * pdfBase.getZoomFactor())) + (((bounds.y + bounds.height + offsetForSelector) * pdfBase.getZoomFactor()) - offsetY);
}
else {
// tslint:disable-next-line:max-line-length
var objectBounds = (offsetX - ((bounds.x - offsetForSelector) * pdfBase.getZoomFactor())) + (((bounds.x + bounds.width + offsetForSelector) * pdfBase.getZoomFactor()) - offsetX) +
(offsetY - ((bounds.y - offsetForSelector - rotationValue) * pdfBase.getZoomFactor())) + (((bounds.y + bounds.height + offsetForSelector) * pdfBase.getZoomFactor()) - offsetY);
if (boundsDiff > objectBounds) {
actualTarget = objects[i];
boundsDiff = objectBounds;
}
}
}
}

@@ -83,3 +103,2 @@ }

actualTarget = objects[i];
break;
}

@@ -195,3 +214,3 @@ }

(obj.shapeAnnotationType === 'Stamp' && findElementUnderMouse(obj, region, 40))) {
insertObject(obj, 'Zindex', objects);
insertObject(obj, 'zIndex', objects);
}

@@ -198,0 +217,0 @@ }

@@ -452,2 +452,5 @@ import { PdfViewer, PdfViewerBase, AnnotationType, TextMarkupAnnotation, ShapeAnnotation, StampAnnotation, StickyNotesAnnotation, IPopupAnnotation, MeasureAnnotation } from '../index';

updateSettings(annotationSettings: any): any;
private getOverlappedAnnotations;
private getPageShapeAnnotations;
private findOverlappedAnnotations;
/**

@@ -454,0 +457,0 @@ * @private

@@ -379,2 +379,167 @@ import { BaseEventArgs } from '@syncfusion/ej2-base';

/**
* This event arguments provides the necessary information about signature add event.
*/
export interface AddSignatureEventArgs extends BaseEventArgs {
/**
* Defines the bounds of the signature added in the page of the PDF document.
*/
bounds: any;
/**
* Defines the id of the signature added in the page of the PDF document.
*/
id: string;
/**
* Defines the page number in which the signature is added.
*/
pageIndex: number;
/**
* Define the type of the signature added in the page of the PDF document.
*/
type: AnnotationType;
/**
* Define the opacity of the signature added in the page of the PDF document.
*/
opacity: number;
/**
* Define the stroke color of the signature added in the page of the PDF document.
*/
strokeColor: string;
/**
* Define the thickness of the signature added in the page of the PDF document.
*/
thickness: number;
}
/**
* This event arguments provides the necessary information about signature remove event.
*/
export interface RemoveSignatureEventArgs extends BaseEventArgs {
/**
* Defines the bounds of the signature removed in the page of the PDF document.
*/
bounds: any;
/**
* Defines the id of the signature removed in the page of the PDF document.
*/
id: string;
/**
* Defines the page number in which the signature is removed.
*/
pageIndex: number;
/**
* Define the type of the signature removed in the page of the PDF document.
*/
type: AnnotationType;
}
/**
* This event arguments provides the necessary information about signature move event.
*/
export interface MoveSignatureEventArgs extends BaseEventArgs {
/**
* Defines the id of the annotation moved in the page of the PDF document.
*/
id: string;
/**
* Defines the page number in which the annotation is moved.
*/
pageIndex: number;
/**
* Defines the type of the signature moved in the page of the PDF document.
*/
type: AnnotationType;
/**
* Define the opacity of the signature added in the page of the PDF document.
*/
opacity: number;
/**
* Define the stroke color of the signature added in the page of the PDF document.
*/
strokeColor: string;
/**
* Define the thickness of the signature added in the page of the PDF document.
*/
thickness: number;
/**
* Previous position of signature in the page text content.
*/
previousPosition: object;
/**
* Current position of signature in the page text content.
*/
currentPosition: object;
}
/**
* This event arguments provides the necessary information about signature properties change event.
*/
export interface SignaturePropertiesChangeEventArgs extends BaseEventArgs {
/**
* Defines the id of the signature property is changed in the page of the PDF document.
*/
id: string;
/**
* Defines the page number in which the signature property is changed.
*/
pageIndex: number;
/**
* Defines the type of the signature property is changed in the page of the PDF document.
*/
type: AnnotationType;
/**
* Specifies that the stroke color of the signature is changed.
*/
isStrokeColorChanged?: boolean;
/**
* Specifies that the opacity of the signature is changed.
*/
isOpacityChanged: boolean;
/**
* Specifies that the thickness of the signature is changed.
*/
isThicknessChanged?: boolean;
/**
* Defines the old property value of the signature.
*/
oldValue: any;
/**
* Defines the new property value of the signature.
*/
newValue: any;
}
/**
* This event arguments provides the necessary information about signature resize event.
*/
export interface ResizeSignatureEventArgs extends BaseEventArgs {
/**
* Defines the id of the signature added in the page of the PDF document.
*/
id: string;
/**
* Defines the page number in which the signature is added.
*/
pageIndex: number;
/**
* Define the type of the signature added in the page of the PDF document.
*/
type: AnnotationType;
/**
* Define the opacity of the signature added in the page of the PDF document.
*/
opacity: number;
/**
* Define the stroke color of the signature added in the page of the PDF document.
*/
strokeColor: string;
/**
* Define the thickness of the signature added in the page of the PDF document.
*/
thickness: number;
/**
* Defines the current Position of the signature added in the page of the PDF document.
*/
currentPosition: any;
/**
* Defines the previous position of the signature added in the page of the PDF document.
*/
previousPosition: any;
}
/**
* This event arguments provides the necessary information about annotation mouseover event.

@@ -381,0 +546,0 @@ */

@@ -1,2 +0,2 @@

import { Component, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, L10n, Collection, Complex } from '@syncfusion/ej2-base';import { ModuleDeclaration, isNullOrUndefined, Property, Event, EmitType } from '@syncfusion/ej2-base';import { PdfViewerBase } from './index';import { Navigation } from './index';import { Magnification } from './index';import { Toolbar } from './index';import { ToolbarItem } from './index';import { LinkTarget, InteractionMode, AnnotationType, AnnotationToolbarItem, LineHeadStyle, ContextMenuAction, FontStyle, TextAlignment, AnnotationResizerShape, AnnotationResizerLocation, ZoomMode } from './base/types';import { Annotation } from './index';import { LinkAnnotation } from './index';import { ThumbnailView } from './index';import { BookmarkView } from './index';import { TextSelection } from './index';import { TextSearch } from './index';import { FormFields } from './index';import { Print, CalibrationUnit } from './index';import { UnloadEventArgs, LoadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs, HyperlinkMouseOverArgs, ImportStartEventArgs, ImportSuccessEventArgs, ImportFailureEventArgs, ExportStartEventArgs, ExportSuccessEventArgs, ExportFailureEventArgs, AjaxRequestInitiateEventArgs } from './index';import { AnnotationAddEventArgs, AnnotationRemoveEventArgs, AnnotationPropertiesChangeEventArgs, AnnotationResizeEventArgs, AnnotationSelectEventArgs, AnnotationMoveEventArgs, AnnotationDoubleClickEventArgs, AnnotationMouseoverEventArgs } from './index';import { TextSelectionStartEventArgs, TextSelectionEndEventArgs, DownloadStartEventArgs, DownloadEndEventArgs, ExtractTextCompletedEventArgs } from './index';import { PdfAnnotationBase, ZOrderPageTable } from '../diagram/pdf-annotation';import { PdfAnnotationBaseModel } from '../diagram/pdf-annotation-model';import { Drawing, ClipBoardObject } from '../diagram/drawing';import { Selector } from '../diagram/selector';import { SelectorModel } from '../diagram/selector-model';import { PointModel, IElement, Rect } from '@syncfusion/ej2-drawings';import { renderAdornerLayer } from '../diagram/dom-util';import { ThumbnailClickEventArgs } from './index';import { ValidateFormFieldsArgs } from './base';
import { Component, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, L10n, Collection, Complex } from '@syncfusion/ej2-base';import { ModuleDeclaration, isNullOrUndefined, Property, Event, EmitType } from '@syncfusion/ej2-base';import { PdfViewerBase } from './index';import { Navigation } from './index';import { Magnification } from './index';import { Toolbar } from './index';import { ToolbarItem } from './index';import { LinkTarget, InteractionMode, AnnotationType, AnnotationToolbarItem, LineHeadStyle, ContextMenuAction, FontStyle, TextAlignment, AnnotationResizerShape, AnnotationResizerLocation, ZoomMode } from './base/types';import { Annotation } from './index';import { LinkAnnotation } from './index';import { ThumbnailView } from './index';import { BookmarkView } from './index';import { TextSelection } from './index';import { TextSearch } from './index';import { FormFields } from './index';import { Print, CalibrationUnit } from './index';import { UnloadEventArgs, LoadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs, HyperlinkMouseOverArgs, ImportStartEventArgs, ImportSuccessEventArgs, ImportFailureEventArgs, ExportStartEventArgs, ExportSuccessEventArgs, ExportFailureEventArgs, AjaxRequestInitiateEventArgs } from './index';import { AnnotationAddEventArgs, AnnotationRemoveEventArgs, AnnotationPropertiesChangeEventArgs, AnnotationResizeEventArgs, AnnotationSelectEventArgs, AnnotationMoveEventArgs, AnnotationDoubleClickEventArgs, AnnotationMouseoverEventArgs } from './index';import { TextSelectionStartEventArgs, TextSelectionEndEventArgs, DownloadStartEventArgs, DownloadEndEventArgs, ExtractTextCompletedEventArgs } from './index';import { PdfAnnotationBase, ZOrderPageTable } from '../diagram/pdf-annotation';import { PdfAnnotationBaseModel } from '../diagram/pdf-annotation-model';import { Drawing, ClipBoardObject } from '../diagram/drawing';import { Selector } from '../diagram/selector';import { SelectorModel } from '../diagram/selector-model';import { PointModel, IElement, Rect } from '@syncfusion/ej2-drawings';import { renderAdornerLayer } from '../diagram/dom-util';import { ThumbnailClickEventArgs } from './index';import { ValidateFormFieldsArgs } from './base';import { AddSignatureEventArgs, RemoveSignatureEventArgs, MoveSignatureEventArgs, SignaturePropertiesChangeEventArgs, ResizeSignatureEventArgs } from './base';
import {IAjaxHeaders} from "./pdfviewer";

@@ -2130,2 +2130,32 @@ import {ComponentModel} from '@syncfusion/ej2-base';

/**
* Triggers when signature is added over the page of the PDF document.
* @event
*/
addSignature?: EmitType<AddSignatureEventArgs>;
/**
* Triggers when signature is removed over the page of the PDF document.
* @event
*/
removeSignature?: EmitType<RemoveSignatureEventArgs>;
/**
* Triggers when an signature is moved over the page of the PDF document.
* @event
*/
moveSignature?: EmitType<MoveSignatureEventArgs>;
/**
* Triggers when the property of the signature is changed in the page of the PDF document.
* @event
*/
signaturePropertiesChange?: EmitType<SignaturePropertiesChangeEventArgs>;
/**
* Triggers when signature is resized over the page of the PDF document.
* @event
*/
resizeSignature?: EmitType<ResizeSignatureEventArgs>;
/**
* Triggers when an annotation is selected over the page of the PDF document.

@@ -2132,0 +2162,0 @@ * @event

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

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