@syncfusion/ej2-pdfviewer
Advanced tools
Comparing version 17.1.51 to 17.1.52
@@ -1,10 +0,1 @@ | ||
/*! | ||
* filename: index.d.ts | ||
* version : 17.1.51 | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
* Use of this code is subject to the terms of our license. | ||
* A copy of the current license can be obtained at any time by e-mailing | ||
* licensing@syncfusion.com. Any infringement will be prosecuted under | ||
* applicable laws. | ||
*/ | ||
import * as _pdfviewer from '@syncfusion/ej2-pdfviewer'; | ||
@@ -11,0 +2,0 @@ |
107
package.json
{ | ||
"_from": "@syncfusion/ej2-pdfviewer@*", | ||
"_id": "@syncfusion/ej2-pdfviewer@17.1.47", | ||
"_inBundle": false, | ||
"_integrity": "sha512-KKrP4R5XtVxLGFQTjgDX/0/0yPmcNQ5XY4Hf/oIycBw2Y5XefcsouFgjUKhXXgtmrT2Hs6gr5uZaXm6wuixDKg==", | ||
"_location": "/@syncfusion/ej2-pdfviewer", | ||
"_phantomChildren": {}, | ||
"_requested": { | ||
"type": "range", | ||
"registry": true, | ||
"raw": "@syncfusion/ej2-pdfviewer@*", | ||
"name": "@syncfusion/ej2-pdfviewer", | ||
"escapedName": "@syncfusion%2fej2-pdfviewer", | ||
"scope": "@syncfusion", | ||
"rawSpec": "*", | ||
"saveSpec": null, | ||
"fetchSpec": "*" | ||
}, | ||
"_requiredBy": [ | ||
"/", | ||
"/@syncfusion/ej2", | ||
"/@syncfusion/ej2-angular-pdfviewer", | ||
"/@syncfusion/ej2-react-pdfviewer", | ||
"/@syncfusion/ej2-vue-pdfviewer" | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-release/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.1.47.tgz", | ||
"_shasum": "1bbff9f6bb385a98be709bd3575eb8efe5c24371", | ||
"_spec": "@syncfusion/ej2-pdfviewer@*", | ||
"_where": "/jenkins/workspace/ation_hotfix_16.4.0.42_Vol4-CJVRBFC7Z7RSISPRJNEMNQSRMCB6XTG67IJD6R2DVNXFIKQEITTQ/packages/included", | ||
"author": { | ||
"name": "Syncfusion Inc." | ||
}, | ||
"bugs": { | ||
"url": "https://github.com/syncfusion/ej2-pdfviewer/issues" | ||
}, | ||
"bundleDependencies": false, | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~17.1.49", | ||
"@syncfusion/ej2-buttons": "~17.1.50", | ||
"@syncfusion/ej2-calendars": "~17.1.51", | ||
"@syncfusion/ej2-data": "~17.1.51", | ||
"@syncfusion/ej2-drawings": "~undefined", | ||
"@syncfusion/ej2-dropdowns": "~17.1.49", | ||
"@syncfusion/ej2-inplace-editor": "~17.1.51", | ||
"@syncfusion/ej2-inputs": "~17.1.50", | ||
"@syncfusion/ej2-lists": "~17.1.47", | ||
"@syncfusion/ej2-navigations": "~17.1.49", | ||
"@syncfusion/ej2-notifications": "~17.1.48", | ||
"@syncfusion/ej2-popups": "~17.1.50", | ||
"@syncfusion/ej2-richtexteditor": "~17.1.49" | ||
}, | ||
"deprecated": false, | ||
"description": "Essential JS 2 PDF viewer Component", | ||
"devDependencies": {}, | ||
"es2015": "./dist/es6/ej2-pdfviewer.es2015.js", | ||
"homepage": "https://github.com/syncfusion/ej2-pdfviewer#readme", | ||
"keywords": [ | ||
"ej2", | ||
"syncfusion", | ||
"ej2-pdfviewer", | ||
"web-components", | ||
"JavaScript", | ||
"TypeScript", | ||
"viewer", | ||
"annotation" | ||
], | ||
"license": "SEE LICENSE IN license", | ||
"main": "./dist/ej2-pdfviewer.umd.min.js", | ||
"module": "./index.js", | ||
"name": "@syncfusion/ej2-pdfviewer", | ||
"repository": { | ||
"type": "git", | ||
"url": "git+https://github.com/syncfusion/ej2-pdfviewer.git" | ||
}, | ||
"typings": "index.d.ts", | ||
"version": "17.1.51", | ||
"sideEffects": false | ||
"version": "17.1.52", | ||
"description": "Essential JS 2 PDF viewer Component", | ||
"author": "Syncfusion Inc.", | ||
"license": "SEE LICENSE IN license", | ||
"main": "./dist/ej2-pdfviewer.umd.min.js", | ||
"module": "./index.js", | ||
"es2015": "./dist/es6/ej2-pdfviewer.es2015.js", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "*", | ||
"@syncfusion/ej2-buttons": "*", | ||
"@syncfusion/ej2-data": "*", | ||
"@syncfusion/ej2-dropdowns": "*", | ||
"@syncfusion/ej2-inputs": "*", | ||
"@syncfusion/ej2-lists": "*", | ||
"@syncfusion/ej2-navigations": "*", | ||
"@syncfusion/ej2-notifications": "*", | ||
"@syncfusion/ej2-popups": "*" | ||
}, | ||
"keywords": [ | ||
"ej2", | ||
"syncfusion", | ||
"ej2-pdfviewer", | ||
"web-components", | ||
"JavaScript", | ||
"TypeScript", | ||
"viewer", | ||
"annotation" | ||
], | ||
"repository": { | ||
"type": "git", | ||
"url": "https://github.com/syncfusion/ej2-pdfviewer.git" | ||
} | ||
} |
@@ -1,4 +0,2 @@ | ||
import { PdfViewer, PdfViewerBase, AnnotationType, TextMarkupAnnotation, ShapeAnnotation, StampAnnotation, StickyNotesAnnotation, IPopupAnnotation, MeasureAnnotation } from '../index'; | ||
import { ChangeEventArgs } from '@syncfusion/ej2-inputs'; | ||
import { DecoratorShapes } from '@syncfusion/ej2-drawings'; | ||
import { PdfViewer, PdfViewerBase, AnnotationType, TextMarkupAnnotation } from '../index'; | ||
/** | ||
@@ -12,21 +10,5 @@ * @hidden | ||
action: string; | ||
undoElement: any; | ||
redoElement: any; | ||
modifiedProperty: string; | ||
} | ||
/** | ||
* @hidden | ||
*/ | ||
export interface IPoint { | ||
x: number; | ||
y: number; | ||
} | ||
/** | ||
* @hidden | ||
*/ | ||
export interface IPageAnnotations { | ||
pageIndex: number; | ||
annotations: any[]; | ||
} | ||
/** | ||
* The `Annotation` module is used to handle annotation actions of PDF viewer. | ||
@@ -41,18 +23,2 @@ */ | ||
textMarkupAnnotationModule: TextMarkupAnnotation; | ||
/** | ||
* @private | ||
*/ | ||
shapeAnnotationModule: ShapeAnnotation; | ||
/** | ||
* @private | ||
*/ | ||
measureAnnotationModule: MeasureAnnotation; | ||
/** | ||
* @private | ||
*/ | ||
stampAnnotationModule: StampAnnotation; | ||
/** | ||
* @private | ||
*/ | ||
stickyNotesAnnotationModule: StickyNotesAnnotation; | ||
private popupNote; | ||
@@ -65,14 +31,2 @@ private popupNoteAuthor; | ||
private modifiedDateElement; | ||
private opacityIndicator; | ||
private startArrowDropDown; | ||
private endArrowDropDown; | ||
private lineStyleDropDown; | ||
private thicknessBox; | ||
private leaderLengthBox; | ||
private fillColorPicker; | ||
private strokeColorPicker; | ||
private fillDropDown; | ||
private strokeDropDown; | ||
private opacitySlider; | ||
private propertiesDialog; | ||
private currentAnnotPageNumber; | ||
@@ -82,11 +36,5 @@ private clientX; | ||
private isPopupMenuMoved; | ||
private selectedLineStyle; | ||
private selectedLineDashArray; | ||
/** | ||
* @private | ||
*/ | ||
isShapeCopied: boolean; | ||
/** | ||
* @private | ||
*/ | ||
actionCollection: IActionElements[]; | ||
@@ -104,10 +52,2 @@ /** | ||
*/ | ||
undoCommentsElement: IPopupAnnotation[]; | ||
/** | ||
* @private | ||
*/ | ||
redoCommentsElement: IPopupAnnotation[]; | ||
/** | ||
* @private | ||
*/ | ||
constructor(pdfViewer: PdfViewer, viewerBase: PdfViewerBase); | ||
@@ -132,3 +72,3 @@ /** | ||
*/ | ||
addAction(pageNumber: number, index: number, annotation: any, actionString: string, property: string, node?: any, redo?: any): void; | ||
addAction(pageNumber: number, index: number, annotation: any, actionString: string, property: string): void; | ||
/** | ||
@@ -165,52 +105,2 @@ * @private | ||
showAnnotationPopup(event: any): void; | ||
/** | ||
* @private | ||
*/ | ||
modifyOpacity(args: ChangeEventArgs): void; | ||
/** | ||
* @private | ||
*/ | ||
modifyThickness(thicknessValue: number): void; | ||
/** | ||
* @private | ||
*/ | ||
modifyStrokeColor(color: string): void; | ||
/** | ||
* @private | ||
*/ | ||
modifyFillColor(color: string): void; | ||
private modifyInCollections; | ||
/** | ||
* @private | ||
*/ | ||
createPropertiesWindow(): void; | ||
private refreshColorPicker; | ||
private createAppearanceTab; | ||
private createContent; | ||
private onStrokeDropDownBeforeOpen; | ||
private onFillDropDownBeforeOpen; | ||
private createStyleList; | ||
private createColorPicker; | ||
private createDropDownButton; | ||
private updateColorInIcon; | ||
private setThickness; | ||
private createDropDownContent; | ||
private createListForStyle; | ||
private onStartArrowHeadStyleSelect; | ||
private onEndArrowHeadStyleSelect; | ||
private createInputElement; | ||
private updateOpacityIndicator; | ||
private onOkClicked; | ||
private onCancelClicked; | ||
private getArrowTypeFromDropDown; | ||
private getArrowString; | ||
/** | ||
* @private | ||
*/ | ||
onAnnotationMouseUp(): void; | ||
/** | ||
* @private | ||
*/ | ||
onAnnotationMouseDown(): void; | ||
private enableBasedOnType; | ||
private getProperDate; | ||
@@ -220,41 +110,4 @@ /** | ||
*/ | ||
getPageCollection(pageAnnotations: IPageAnnotations[], pageNumber: number): number; | ||
/** | ||
* @private | ||
*/ | ||
getAnnotationWithId(annotations: any[], id: string): any; | ||
/** | ||
* @private | ||
*/ | ||
getEventPageNumber(event: any): number; | ||
/** | ||
* @private | ||
*/ | ||
getAnnotationComments(commentsAnnotations: any, parentAnnotation: any): any; | ||
private getRandomNumber; | ||
/** | ||
* @private | ||
*/ | ||
createGUID(): string; | ||
/** | ||
* @private | ||
*/ | ||
clearAnnotationCanvas(pageNumber: number): void; | ||
/** | ||
* @private | ||
*/ | ||
renderAnnotations(pageNumber: number, shapeAnnotation: any, measureShapeAnnotation: any, textMarkupAnnotation: any, canvas?: any): void; | ||
/** | ||
* @private | ||
*/ | ||
storeAnnotations(pageNumber: number, annotation: any, annotationId: string): number; | ||
/** | ||
* @private | ||
*/ | ||
getArrowType(type: string): DecoratorShapes; | ||
/** | ||
* @private | ||
*/ | ||
getArrowTypeForCollection(arrow: DecoratorShapes): string; | ||
/** | ||
* private | ||
@@ -266,6 +119,2 @@ */ | ||
*/ | ||
cloneObject(obj: any): any; | ||
/** | ||
* @private | ||
*/ | ||
destroy(): void; | ||
@@ -272,0 +121,0 @@ /** |
@@ -7,5 +7,1 @@ /** | ||
export * from './text-markup-annotation'; | ||
export * from './measure-annotation'; | ||
export * from './shape-annotation'; | ||
export * from './stamp-annotation'; | ||
export * from './sticky-notes-annotation'; |
@@ -7,5 +7,1 @@ /** | ||
export * from './text-markup-annotation'; | ||
export * from './measure-annotation'; | ||
export * from './shape-annotation'; | ||
export * from './stamp-annotation'; | ||
export * from './sticky-notes-annotation'; |
@@ -1,2 +0,2 @@ | ||
import { PdfViewer, PdfViewerBase, IRectangle, ICommentsCollection, IReviewCollection } from '../index'; | ||
import { PdfViewer, PdfViewerBase, IRectangle } from '../index'; | ||
import { ChangeEventArgs } from '@syncfusion/ej2-inputs'; | ||
@@ -16,7 +16,2 @@ /** | ||
rect: any; | ||
comments: ICommentsCollection[]; | ||
review: IReviewCollection; | ||
annotName: string; | ||
shapeAnnotationType: string; | ||
position?: string; | ||
} | ||
@@ -26,2 +21,9 @@ /** | ||
*/ | ||
export interface IPageAnnotations { | ||
pageIndex: number; | ||
annotations: ITextMarkupAnnotation[]; | ||
} | ||
/** | ||
* @hidden | ||
*/ | ||
export interface IPageAnnotationBounds { | ||
@@ -107,3 +109,3 @@ pageIndex: number; | ||
*/ | ||
printTextMarkupAnnotations(textMarkupAnnotations: any, pageIndex: number, stampData: any, shapeData: any): string; | ||
printTextMarkupAnnotations(textMarkupAnnotations: any, pageIndex: number): string; | ||
/** | ||
@@ -178,6 +180,3 @@ * @private | ||
clearAnnotationSelection(pageNumber: number): void; | ||
/** | ||
* @private | ||
*/ | ||
selectAnnotation(annotation: ITextMarkupAnnotation, canvas: HTMLElement): void; | ||
private selectAnnotation; | ||
private drawAnnotationSelectRect; | ||
@@ -189,6 +188,7 @@ private enableAnnotationPropertiesTool; | ||
maintainAnnotationSelection(): void; | ||
private storeAnnotations; | ||
private manageAnnotations; | ||
private getAnnotations; | ||
private getPageCollection; | ||
private getAddedAnnotation; | ||
private annotationDivSelect; | ||
private getPageContext; | ||
@@ -195,0 +195,0 @@ private getDefaultValue; |
@@ -58,4 +58,5 @@ import { createElement, Browser, isNullOrUndefined } from '@syncfusion/ej2-base'; | ||
if (canvas) { | ||
canvas.width = this.getMagnifiedValue(this.pdfViewerBase.pageSize[pageNumber].width, factor); | ||
canvas.height = this.getMagnifiedValue(this.pdfViewerBase.pageSize[pageNumber].height, factor); | ||
var context = canvas.getContext('2d'); | ||
context.setTransform(1, 0, 0, 1, 0, 0); | ||
context.setLineDash([]); | ||
@@ -71,5 +72,4 @@ // tslint:disable-next-line | ||
// tslint:disable-next-line:max-line-length | ||
annotationObject = { textMarkupAnnotationType: annotation.TextMarkupAnnotationType, color: annotation.Color, opacity: annotation.Opacity, bounds: annotation.Bounds, author: annotation.Author, subject: annotation.Subject, modifiedDate: annotation.ModifiedDate, note: annotation.Note, rect: annotation.Rect, | ||
annotName: annotation.AnnotName, comments: this.pdfViewer.annotationModule.getAnnotationComments(annotation.Comments, annotation), review: { state: annotation.State, stateModel: annotation.StateModel, modifiedDate: annotation.ModifiedDate, author: annotation.author }, shapeAnnotationType: 'textMarkup' }; | ||
this.pdfViewer.annotationModule.storeAnnotations(pageNumber, annotationObject, '_annotations_textMarkup'); | ||
annotationObject = { textMarkupAnnotationType: annotation.TextMarkupAnnotationType, color: annotation.Color, opacity: annotation.Opacity, bounds: annotation.Bounds, author: annotation.Author, subject: annotation.Subject, modifiedDate: annotation.ModifiedDate, note: annotation.Note, rect: annotation.Rect }; | ||
this.storeAnnotations(pageNumber, annotationObject); | ||
} | ||
@@ -217,22 +217,7 @@ // tslint:disable-next-line:max-line-length | ||
// tslint:disable-next-line | ||
TextMarkupAnnotation.prototype.printTextMarkupAnnotations = function (textMarkupAnnotations, pageIndex, stampData, shapeData) { | ||
TextMarkupAnnotation.prototype.printTextMarkupAnnotations = function (textMarkupAnnotations, pageIndex) { | ||
var canvas = createElement('canvas', { id: this.pdfViewer.element.id + '_print_annotation_layer_' + pageIndex }); | ||
canvas.style.width = 816 + 'px'; | ||
canvas.style.height = 1056 + 'px'; | ||
canvas.height = 1056 * this.pdfViewer.magnification.zoomFactor; | ||
canvas.width = 816 * this.pdfViewer.magnification.zoomFactor; | ||
// tslint:disable-next-line | ||
var textMarkupannotations = this.getAnnotations(pageIndex, null, '_annotations_textMarkup'); | ||
// tslint:disable-next-line | ||
var shapeAnnotation = this.getAnnotations(pageIndex, null, '_annotations_shape'); | ||
// tslint:disable-next-line | ||
var stampAnnotation = this.getAnnotations(pageIndex, null, '_annotations_stamp'); | ||
if (stampAnnotation || shapeAnnotation) { | ||
this.pdfViewer.renderDrawing(canvas, pageIndex); | ||
} | ||
else { | ||
this.pdfViewer.annotation.renderAnnotations(pageIndex, shapeData, null, null, canvas); | ||
this.pdfViewer.annotation.stampAnnotationModule.renderStampAnnotations(stampData, pageIndex, canvas); | ||
} | ||
if (textMarkupannotations) { | ||
var annotations = this.getAnnotations(pageIndex, null); | ||
if (annotations) { | ||
this.renderTextMarkupAnnotations(null, pageIndex, canvas, 1); | ||
@@ -251,14 +236,14 @@ } | ||
// tslint:disable-next-line | ||
var storeTextMarkupObject = window.sessionStorage.getItem(this.pdfViewerBase.documentId + '_annotations_textMarkup'); | ||
var storeObject = window.sessionStorage.getItem(this.pdfViewerBase.documentId + '_annotations_textMarkup'); | ||
// tslint:disable-next-line | ||
var textMarkupAnnotations = new Array(); | ||
var textMarkupColorpick = new ColorPicker(); | ||
var annotations = new Array(); | ||
var colorpick = new ColorPicker(); | ||
for (var j = 0; j < this.pdfViewerBase.pageCount; j++) { | ||
textMarkupAnnotations[j] = []; | ||
annotations[j] = []; | ||
} | ||
if (storeTextMarkupObject) { | ||
var textMarkupAnnotationCollection = JSON.parse(storeTextMarkupObject); | ||
for (var i = 0; i < textMarkupAnnotationCollection.length; i++) { | ||
if (storeObject) { | ||
var annotationCollection = JSON.parse(storeObject); | ||
for (var i = 0; i < annotationCollection.length; i++) { | ||
var newArray = []; | ||
var pageAnnotationObject = textMarkupAnnotationCollection[i]; | ||
var pageAnnotationObject = annotationCollection[i]; | ||
if (pageAnnotationObject) { | ||
@@ -268,3 +253,3 @@ for (var z = 0; pageAnnotationObject.annotations.length > z; z++) { | ||
pageAnnotationObject.annotations[z].bounds = JSON.stringify(this.getBoundsForSave(pageAnnotationObject.annotations[z].bounds)); | ||
var colorString = textMarkupColorpick.getValue(pageAnnotationObject.annotations[z].color, 'rgba'); | ||
var colorString = colorpick.getValue(pageAnnotationObject.annotations[z].color, 'rgba'); | ||
pageAnnotationObject.annotations[z].color = JSON.stringify(this.getRgbCode(colorString)); | ||
@@ -275,6 +260,6 @@ pageAnnotationObject.annotations[z].rect = JSON.stringify(pageAnnotationObject.annotations[z].rect); | ||
} | ||
textMarkupAnnotations[pageAnnotationObject.pageIndex] = newArray; | ||
annotations[pageAnnotationObject.pageIndex] = newArray; | ||
} | ||
} | ||
return JSON.stringify(textMarkupAnnotations); | ||
return JSON.stringify(annotations); | ||
}; | ||
@@ -294,13 +279,2 @@ /** | ||
this.currentAnnotationIndex = i; | ||
this.pdfViewer.annotation.stickyNotesAnnotationModule.findPosition(deletedAnnotation, 'textMarkup'); | ||
var removeDiv = document.getElementById(deletedAnnotation.annotName); | ||
if (removeDiv) { | ||
if (removeDiv.parentElement.childElementCount === 1) { | ||
// tslint:disable-next-line | ||
document.getElementById(this.pdfViewer.element.id + '_accordionContainer' + (this.selectTextMarkupCurrentPage + 1)).remove(); | ||
} | ||
else { | ||
removeDiv.remove(); | ||
} | ||
} | ||
} | ||
@@ -310,3 +284,3 @@ } | ||
this.currentTextMarkupAnnotation = null; | ||
this.pdfViewer.annotationModule.renderAnnotations(this.selectTextMarkupCurrentPage, null, null, null); | ||
this.renderTextMarkupAnnotationsInPage(null, this.selectTextMarkupCurrentPage); | ||
this.pdfViewerBase.isDocumentEdited = true; | ||
@@ -331,6 +305,6 @@ // tslint:disable-next-line:max-line-length | ||
this.manageAnnotations(pageAnnotations, this.selectTextMarkupCurrentPage); | ||
this.pdfViewer.annotationModule.renderAnnotations(this.selectTextMarkupCurrentPage, null, null, null); | ||
this.renderTextMarkupAnnotationsInPage(null, this.selectTextMarkupCurrentPage); | ||
this.pdfViewerBase.isDocumentEdited = true; | ||
// tslint:disable-next-line:max-line-length | ||
this.pdfViewer.fireAnnotationPropertiesChange(this.selectTextMarkupCurrentPage, this.currentAnnotationIndex, this.currentTextMarkupAnnotation.textMarkupAnnotationType, true, false, false, false); | ||
this.pdfViewer.fireAnnotationPropertiesChange(this.selectTextMarkupCurrentPage, this.currentAnnotationIndex, this.currentTextMarkupAnnotation.textMarkupAnnotationType, true, false); | ||
this.currentAnnotationIndex = null; | ||
@@ -346,7 +320,7 @@ } | ||
this.manageAnnotations(pageAnnotations, this.selectTextMarkupCurrentPage); | ||
this.pdfViewer.annotationModule.renderAnnotations(this.selectTextMarkupCurrentPage, null, null, null); | ||
this.renderTextMarkupAnnotationsInPage(null, this.selectTextMarkupCurrentPage); | ||
if (args.name === 'changed') { | ||
this.pdfViewerBase.isDocumentEdited = true; | ||
// tslint:disable-next-line:max-line-length | ||
this.pdfViewer.fireAnnotationPropertiesChange(this.selectTextMarkupCurrentPage, this.currentAnnotationIndex, this.currentTextMarkupAnnotation.textMarkupAnnotationType, false, true, false, false); | ||
this.pdfViewer.fireAnnotationPropertiesChange(this.selectTextMarkupCurrentPage, this.currentAnnotationIndex, this.currentTextMarkupAnnotation.textMarkupAnnotationType, false, true); | ||
this.currentAnnotationIndex = null; | ||
@@ -357,13 +331,13 @@ } | ||
// tslint:disable-next-line | ||
TextMarkupAnnotation.prototype.modifyAnnotationProperty = function (property, value, status, annotName) { | ||
TextMarkupAnnotation.prototype.modifyAnnotationProperty = function (property, value, status) { | ||
var pageAnnotations = this.getAnnotations(this.selectTextMarkupCurrentPage, null); | ||
for (var i = 0; i < pageAnnotations.length; i++) { | ||
if (JSON.stringify(this.currentTextMarkupAnnotation) === JSON.stringify(pageAnnotations[i])) { | ||
var date = new Date(); | ||
if (property === 'Color') { | ||
pageAnnotations[i].color = value; | ||
} | ||
else { | ||
else if (property === 'Opacity') { | ||
pageAnnotations[i].opacity = value; | ||
} | ||
var date = new Date(); | ||
pageAnnotations[i].modifiedDate = date.toLocaleString(); | ||
@@ -387,12 +361,5 @@ this.currentAnnotationIndex = i; | ||
if (action === 'Text Markup Added') { | ||
// tslint:disable-next-line | ||
var removeDiv = document.getElementById(pageAnnotations[index].annotName); | ||
if (removeDiv) { | ||
removeDiv.remove(); | ||
} | ||
pageAnnotations.splice(index, 1); | ||
} | ||
else if (action === 'Text Markup Deleted') { | ||
// tslint:disable-next-line:max-line-length | ||
this.pdfViewer.annotationModule.stickyNotesAnnotationModule.addAnnotationComments(annotation, annotation.shapeAnnotationType); | ||
pageAnnotations.splice(index, 0, annotation); | ||
@@ -404,3 +371,3 @@ } | ||
this.manageAnnotations(pageAnnotations, pageNumber); | ||
this.pdfViewer.annotationModule.renderAnnotations(pageNumber, null, null, null); | ||
this.renderTextMarkupAnnotationsInPage(null, pageNumber); | ||
}; | ||
@@ -428,3 +395,3 @@ /** | ||
this.manageAnnotations(pageAnnotations, pageNumber); | ||
this.pdfViewer.annotationModule.renderAnnotations(pageNumber, null, null, null); | ||
this.renderTextMarkupAnnotationsInPage(null, pageNumber); | ||
return annotation; | ||
@@ -448,3 +415,3 @@ }; | ||
this.manageAnnotations(pageAnnotations, pageNumber); | ||
this.pdfViewer.annotationModule.renderAnnotations(pageNumber, null, null, null); | ||
this.renderTextMarkupAnnotationsInPage(null, pageNumber); | ||
}; | ||
@@ -494,12 +461,10 @@ /** | ||
TextMarkupAnnotation.prototype.getRgbCode = function (colorString) { | ||
var markupStringArray = colorString.split(','); | ||
var stringArray = colorString.split(','); | ||
// tslint:disable-next-line:radix | ||
var textMarkupR = parseInt(markupStringArray[0].split('(')[1]); | ||
var r = parseInt(stringArray[0].split('(')[1]); | ||
// tslint:disable-next-line:radix | ||
var textMarkupG = parseInt(markupStringArray[1]); | ||
var g = parseInt(stringArray[1]); | ||
// tslint:disable-next-line:radix | ||
var textMarkupB = parseInt(markupStringArray[2]); | ||
// tslint:disable-next-line:radix | ||
var textMarkupA = parseInt(markupStringArray[3]); | ||
return { a: textMarkupA * 255, r: textMarkupR, g: textMarkupG, b: textMarkupB }; | ||
var b = parseInt(stringArray[2]); | ||
return { r: r, g: g, b: b }; | ||
}; | ||
@@ -691,7 +656,2 @@ TextMarkupAnnotation.prototype.getDrawnBounds = function () { | ||
this.enableAnnotationPropertiesTool(true); | ||
// tslint:disable-next-line | ||
var comments = document.getElementById(currentAnnot.annotName); | ||
if (comments) { | ||
comments.firstChild.click(); | ||
} | ||
if (this.pdfViewer.toolbarModule) { | ||
@@ -857,8 +817,5 @@ this.pdfViewer.toolbarModule.annotationToolbarModule.isToolbarHidden = true; | ||
context.setLineDash([]); | ||
this.pdfViewer.annotationModule.renderAnnotations(pageNumber, null, null, null); | ||
this.renderTextMarkupAnnotationsInPage(null, pageNumber); | ||
} | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
TextMarkupAnnotation.prototype.selectAnnotation = function (annotation, canvas) { | ||
@@ -893,3 +850,3 @@ for (var i = 0; i < annotation.bounds.length; i++) { | ||
// tslint:disable-next-line:max-line-length | ||
if (this.pdfViewer.toolbarModule && this.pdfViewer.toolbarModule.annotationToolbarModule && this.pdfViewer.toolbarModule.annotationToolbarModule.isMobileAnnotEnabled && this.pdfViewer.selectedItems.annotations.length === 0) { | ||
if (this.pdfViewer.toolbarModule && this.pdfViewer.toolbarModule.annotationToolbarModule && this.pdfViewer.toolbarModule.annotationToolbarModule.isMobileAnnotEnabled) { | ||
if (this.pdfViewer.toolbarModule.annotationToolbarModule) { | ||
@@ -901,3 +858,3 @@ this.pdfViewer.toolbarModule.annotationToolbarModule.selectAnnotationDeleteItem(isEnable); | ||
} | ||
this.pdfViewer.toolbarModule.annotationToolbarModule.enableTextMarkupAnnotationPropertiesTools(enable); | ||
this.pdfViewer.toolbarModule.annotationToolbarModule.enableAnnotationPropertiesTools(enable); | ||
if (this.currentTextMarkupAnnotation) { | ||
@@ -930,32 +887,34 @@ // tslint:disable-next-line:max-line-length | ||
}; | ||
// private storeAnnotations(pageNumber: number, annotation: ITextMarkupAnnotation): number { | ||
// // tslint:disable-next-line | ||
// let storeObject: any = window.sessionStorage.getItem(this.pdfViewerBase.documentId + '_annotations_textMarkup'); | ||
// let index: number = 0; | ||
// if (!storeObject) { | ||
// let markupAnnotation: IPageAnnotations = { pageIndex: pageNumber, annotations: [] }; | ||
// markupAnnotation.annotations.push(annotation); | ||
// index = markupAnnotation.annotations.indexOf(annotation); | ||
// let annotationCollection: IPageAnnotations[] = []; | ||
// annotationCollection.push(markupAnnotation); | ||
// let annotationStringified: string = JSON.stringify(annotationCollection); | ||
// window.sessionStorage.setItem(this.pdfViewerBase.documentId + '_annotations_textMarkup', annotationStringified); | ||
// } else { | ||
// let annotObject: IPageAnnotations[] = JSON.parse(storeObject); | ||
// window.sessionStorage.removeItem(this.pdfViewerBase.documentId + '_annotations_textMarkup'); | ||
// let pageIndex: number = this.pdfViewer.annotationModule.getPageCollection(annotObject, pageNumber); | ||
// if (annotObject[pageIndex]) { | ||
// (annotObject[pageIndex] as IPageAnnotations).annotations.push(annotation); | ||
// index = (annotObject[pageIndex] as IPageAnnotations).annotations.indexOf(annotation); | ||
// } else { | ||
// let markupAnnotation: IPageAnnotations = { pageIndex: pageNumber, annotations: [] }; | ||
// markupAnnotation.annotations.push(annotation); | ||
// index = markupAnnotation.annotations.indexOf(annotation); | ||
// annotObject.push(markupAnnotation); | ||
// } | ||
// let annotationStringified: string = JSON.stringify(annotObject); | ||
// window.sessionStorage.setItem(this.pdfViewerBase.documentId + '_annotations_textMarkup', annotationStringified); | ||
// } | ||
// return index; | ||
// } | ||
TextMarkupAnnotation.prototype.storeAnnotations = function (pageNumber, annotation) { | ||
// tslint:disable-next-line | ||
var storeObject = window.sessionStorage.getItem(this.pdfViewerBase.documentId + '_annotations_textMarkup'); | ||
var index = 0; | ||
if (!storeObject) { | ||
var markupAnnotation = { pageIndex: pageNumber, annotations: [] }; | ||
markupAnnotation.annotations.push(annotation); | ||
index = markupAnnotation.annotations.indexOf(annotation); | ||
var annotationCollection = []; | ||
annotationCollection.push(markupAnnotation); | ||
var annotationStringified = JSON.stringify(annotationCollection); | ||
window.sessionStorage.setItem(this.pdfViewerBase.documentId + '_annotations_textMarkup', annotationStringified); | ||
} | ||
else { | ||
var annotObject = JSON.parse(storeObject); | ||
window.sessionStorage.removeItem(this.pdfViewerBase.documentId + '_annotations_textMarkup'); | ||
var pageIndex = this.getPageCollection(annotObject, pageNumber); | ||
if (annotObject[pageIndex]) { | ||
annotObject[pageIndex].annotations.push(annotation); | ||
index = annotObject[pageIndex].annotations.indexOf(annotation); | ||
} | ||
else { | ||
var markupAnnotation = { pageIndex: pageNumber, annotations: [] }; | ||
markupAnnotation.annotations.push(annotation); | ||
index = markupAnnotation.annotations.indexOf(annotation); | ||
annotObject.push(markupAnnotation); | ||
} | ||
var annotationStringified = JSON.stringify(annotObject); | ||
window.sessionStorage.setItem(this.pdfViewerBase.documentId + '_annotations_textMarkup', annotationStringified); | ||
} | ||
return index; | ||
}; | ||
TextMarkupAnnotation.prototype.manageAnnotations = function (pageAnnotations, pageNumber) { | ||
@@ -967,3 +926,3 @@ // tslint:disable-next-line | ||
window.sessionStorage.removeItem(this.pdfViewerBase.documentId + '_annotations_textMarkup'); | ||
var index = this.pdfViewer.annotationModule.getPageCollection(annotObject, pageNumber); | ||
var index = this.getPageCollection(annotObject, pageNumber); | ||
if (annotObject[index]) { | ||
@@ -977,14 +936,10 @@ annotObject[index].annotations = pageAnnotations; | ||
// tslint:disable-next-line | ||
TextMarkupAnnotation.prototype.getAnnotations = function (pageIndex, textMarkupAnnotations, id) { | ||
TextMarkupAnnotation.prototype.getAnnotations = function (pageIndex, textMarkupAnnotations) { | ||
// tslint:disable-next-line | ||
var annotationCollection; | ||
// tslint:disable-next-line | ||
if (id == null || id == undefined) { | ||
id = '_annotations_textMarkup'; | ||
} | ||
// tslint:disable-next-line | ||
var storeObject = window.sessionStorage.getItem(this.pdfViewerBase.documentId + id); | ||
var storeObject = window.sessionStorage.getItem(this.pdfViewerBase.documentId + '_annotations_textMarkup'); | ||
if (storeObject) { | ||
var annotObject = JSON.parse(storeObject); | ||
var index = this.pdfViewer.annotationModule.getPageCollection(annotObject, pageIndex); | ||
var index = this.getPageCollection(annotObject, pageIndex); | ||
if (annotObject[index]) { | ||
@@ -1002,2 +957,12 @@ annotationCollection = annotObject[index].annotations; | ||
}; | ||
TextMarkupAnnotation.prototype.getPageCollection = function (pageAnnotations, pageNumber) { | ||
var index = null; | ||
for (var i = 0; i < pageAnnotations.length; i++) { | ||
if (pageAnnotations[i].pageIndex === pageNumber) { | ||
index = i; | ||
break; | ||
} | ||
} | ||
return index; | ||
}; | ||
// tslint:disable-next-line | ||
@@ -1008,20 +973,8 @@ TextMarkupAnnotation.prototype.getAddedAnnotation = function (type, color, opacity, bounds, author, subject, predefinedDate, note, rect, pageNumber) { | ||
var modifiedDate = predefinedDate ? predefinedDate : date.toLocaleString(); | ||
var annotationName = this.pdfViewer.annotation.createGUID(); | ||
var commentsDivid = this.pdfViewer.annotation.stickyNotesAnnotationModule.addComments('textMarkup'); | ||
document.getElementById(commentsDivid).id = annotationName; | ||
var annotation = { | ||
// tslint:disable-next-line:max-line-length | ||
textMarkupAnnotationType: type, color: color, opacity: opacity, bounds: bounds, author: author, subject: subject, modifiedDate: modifiedDate, note: note, rect: rect, | ||
annotName: annotationName, comments: [], review: { state: '', stateModel: '', author: 'Author', modifiedDate: modifiedDate }, shapeAnnotationType: 'textMarkup' | ||
}; | ||
document.getElementById(annotationName).addEventListener('mouseup', this.annotationDivSelect(annotation, pageNumber)); | ||
var storedIndex = this.pdfViewer.annotationModule.storeAnnotations(pageNumber, annotation, '_annotations_textMarkup'); | ||
// tslint:disable-next-line | ||
var annotation = { textMarkupAnnotationType: type, color: color, opacity: opacity, bounds: bounds, author: author, subject: subject, modifiedDate: modifiedDate, note: note, rect: rect }; | ||
var storedIndex = this.storeAnnotations(pageNumber, annotation); | ||
this.pdfViewer.annotationModule.addAction(pageNumber, storedIndex, annotation, 'Text Markup Added', null); | ||
return annotation; | ||
}; | ||
// tslint:disable-next-line | ||
TextMarkupAnnotation.prototype.annotationDivSelect = function (annotation, pageNumber) { | ||
var canvas = this.pdfViewerBase.getElement('_annotationCanvas_' + pageNumber); | ||
this.selectAnnotation(annotation, canvas); | ||
}; | ||
TextMarkupAnnotation.prototype.getPageContext = function (pageNumber) { | ||
@@ -1028,0 +981,0 @@ var canvas = this.pdfViewerBase.getElement('_annotationCanvas_' + pageNumber); |
import { PdfViewer } from '../index'; | ||
/** | ||
* @hidden | ||
* @private | ||
*/ | ||
@@ -24,3 +24,2 @@ export declare class AjaxHandler { | ||
* @default true | ||
* @private | ||
*/ | ||
@@ -31,3 +30,2 @@ mode: boolean; | ||
* @default null | ||
* @private | ||
*/ | ||
@@ -41,3 +39,2 @@ contentType: string; | ||
* @returns defaultType | ||
* @private | ||
*/ | ||
@@ -48,3 +45,2 @@ constructor(pdfviewer: PdfViewer); | ||
* @param {object} jsonObj - To send to service | ||
* @private | ||
*/ | ||
@@ -59,3 +55,2 @@ send(jsonObj: object): void; | ||
* @event | ||
* @private | ||
*/ | ||
@@ -67,3 +62,2 @@ onSuccess: Function; | ||
* @event | ||
* @private | ||
*/ | ||
@@ -75,3 +69,2 @@ onFailure: Function; | ||
* @event | ||
* @private | ||
*/ | ||
@@ -78,0 +71,0 @@ onError: Function; |
/** | ||
* @hidden | ||
* @private | ||
*/ | ||
@@ -9,3 +9,2 @@ var AjaxHandler = /** @class */ (function () { | ||
* @returns defaultType | ||
* @private | ||
*/ | ||
@@ -21,3 +20,2 @@ function AjaxHandler(pdfviewer) { | ||
* @default true | ||
* @private | ||
*/ | ||
@@ -28,3 +26,2 @@ this.mode = true; | ||
* @default null | ||
* @private | ||
*/ | ||
@@ -37,3 +34,2 @@ this.contentType = 'application/json;charset=UTF-8'; | ||
* @param {object} jsonObj - To send to service | ||
* @private | ||
*/ | ||
@@ -40,0 +36,0 @@ AjaxHandler.prototype.send = function (jsonObj) { |
@@ -29,3 +29,2 @@ import { ContextMenu as Context } from '@syncfusion/ej2-navigations'; | ||
private contextMenuOnBeforeOpen; | ||
private onOpeningForShape; | ||
private isClickWithinSelectionBounds; | ||
@@ -32,0 +31,0 @@ private getHorizontalClientValue; |
@@ -15,13 +15,6 @@ import { createElement, Browser } from '@syncfusion/ej2-base'; | ||
this.pdfViewerBase = pdfViewerBase; | ||
this.copyContextMenu = [{ text: this.pdfViewer.localeObj.getConstant('Cut'), iconCss: 'e-pv-cut-icon' }, | ||
{ text: this.pdfViewer.localeObj.getConstant('Copy'), iconCss: 'e-pv-copy-icon' }, | ||
this.copyContextMenu = [{ text: this.pdfViewer.localeObj.getConstant('Copy'), iconCss: 'e-pv-copy-icon' }, | ||
{ text: this.pdfViewer.localeObj.getConstant('Highlight context'), iconCss: 'e-pv-highlight-icon' }, | ||
{ text: this.pdfViewer.localeObj.getConstant('Underline context'), iconCss: 'e-pv-underline-icon' }, | ||
{ text: this.pdfViewer.localeObj.getConstant('Strikethrough context'), iconCss: 'e-pv-strikethrough-icon' }, | ||
{ text: this.pdfViewer.localeObj.getConstant('Paste'), iconCss: 'e-pv-paste-icon' }, | ||
{ text: this.pdfViewer.localeObj.getConstant('Delete Context'), iconCss: 'e-pv-delete-icon' }, | ||
{ text: this.pdfViewer.localeObj.getConstant('Scale Ratio'), iconCss: 'e-pv-scale-ratio-icon' }, | ||
{ separator: true, id: pdfViewer.element.id + '_context_menu_separator' }, | ||
{ text: this.pdfViewer.localeObj.getConstant('Properties') } | ||
]; | ||
{ text: this.pdfViewer.localeObj.getConstant('Strikethrough context'), iconCss: 'e-pv-strikethrough-icon' }]; | ||
} | ||
@@ -64,8 +57,2 @@ /** | ||
ContextMenu.prototype.contextMenuOnBeforeOpen = function (args) { | ||
// tslint:disable-next-line:max-line-length | ||
this.contextMenuObj.showItems([this.pdfViewer.localeObj.getConstant('Cut'), this.pdfViewer.localeObj.getConstant('Copy'), this.pdfViewer.localeObj.getConstant('Paste'), | ||
// tslint:disable-next-line:max-line-length | ||
this.pdfViewer.localeObj.getConstant('Highlight context'), this.pdfViewer.localeObj.getConstant('Underline context'), this.pdfViewer.localeObj.getConstant('Strikethrough context'), | ||
this.pdfViewer.localeObj.getConstant('Delete Context'), this.pdfViewer.localeObj.getConstant('Scale Ratio'), this.pdfViewer.localeObj.getConstant('Properties')]); | ||
this.pdfViewerBase.getElement('_context_menu_separator').classList.remove('e-menu-hide'); | ||
if (this.pdfViewer.textSelectionModule) { | ||
@@ -84,29 +71,7 @@ if (args.event) { | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
this.contextMenuObj.hideItems([this.pdfViewer.localeObj.getConstant('Cut'), this.pdfViewer.localeObj.getConstant('Paste'), this.pdfViewer.localeObj.getConstant('Delete Context'), this.pdfViewer.localeObj.getConstant('Properties')]); | ||
this.pdfViewerBase.getElement('_context_menu_separator').classList.add('e-menu-hide'); | ||
// tslint:disable-next-line:max-line-length | ||
} | ||
else if (this.pdfViewer.selectedItems.annotations.length !== 0 && this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType !== 'Stamp' | ||
&& this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType !== 'Image') { | ||
this.onOpeningForShape(true); | ||
} | ||
else { | ||
// tslint:disable-next-line:max-line-length | ||
if (this.pdfViewer.annotation.isShapeCopied && (args.event.target.classList.contains('e-pv-text-layer') || | ||
args.event.target.classList.contains('e-pv-text'))) { | ||
this.onOpeningForShape(false); | ||
} | ||
else { | ||
args.cancel = true; | ||
} | ||
args.cancel = true; | ||
} | ||
} | ||
else { | ||
if (this.pdfViewer.selectedItems.annotations.length === 0) { | ||
// tslint:disable-next-line:max-line-length | ||
this.contextMenuObj.hideItems([this.pdfViewer.localeObj.getConstant('Cut'), this.pdfViewer.localeObj.getConstant('Paste'), this.pdfViewer.localeObj.getConstant('Delete Context'), this.pdfViewer.localeObj.getConstant('Properties')]); | ||
this.pdfViewerBase.getElement('_context_menu_separator').classList.add('e-menu-hide'); | ||
} | ||
} | ||
} | ||
@@ -117,36 +82,2 @@ else { | ||
}; | ||
ContextMenu.prototype.onOpeningForShape = function (isProp) { | ||
if (this.pdfViewer.annotation.isShapeCopied) { | ||
this.contextMenuObj.enableItems([this.pdfViewer.localeObj.getConstant('Paste')], true); | ||
} | ||
else { | ||
this.contextMenuObj.enableItems([this.pdfViewer.localeObj.getConstant('Paste')], false); | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
this.contextMenuObj.hideItems([this.pdfViewer.localeObj.getConstant('Highlight context'), this.pdfViewer.localeObj.getConstant('Underline context'), this.pdfViewer.localeObj.getConstant('Strikethrough context')]); | ||
if (this.pdfViewer.selectedItems.annotations[0].measureType === 'Distance' || this.pdfViewer.selectedItems.annotations[0].measureType === 'Perimeter' || this.pdfViewer.selectedItems.annotations[0].measureType === 'Area' || | ||
// tslint:disable-next-line:max-line-length | ||
this.pdfViewer.selectedItems.annotations[0].measureType === 'Radius' || this.pdfViewer.selectedItems.annotations[0].measureType === 'Volume') { | ||
this.contextMenuObj.showItems([this.pdfViewer.localeObj.getConstant('Scale Ratio')]); | ||
} | ||
else { | ||
this.contextMenuObj.hideItems([this.pdfViewer.localeObj.getConstant('Scale Ratio')]); | ||
} | ||
if (isProp) { | ||
// tslint:disable-next-line:max-line-length | ||
if (this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType === 'Line' || this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType === 'LineWidthArrowHead' || | ||
this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType === 'Distance') { | ||
this.contextMenuObj.showItems([this.pdfViewer.localeObj.getConstant('Properties')]); | ||
} | ||
else { | ||
this.contextMenuObj.hideItems([this.pdfViewer.localeObj.getConstant('Properties')]); | ||
this.pdfViewerBase.getElement('_context_menu_separator').classList.add('e-menu-hide'); | ||
} | ||
} | ||
else { | ||
this.contextMenuObj.hideItems([this.pdfViewer.localeObj.getConstant('Cut'), this.pdfViewer.localeObj.getConstant('Copy'), | ||
this.pdfViewer.localeObj.getConstant('Delete Context'), this.pdfViewer.localeObj.getConstant('Properties')]); | ||
this.pdfViewerBase.getElement('_context_menu_separator').classList.add('e-menu-hide'); | ||
} | ||
}; | ||
// tslint:disable-next-line | ||
@@ -196,5 +127,2 @@ ContextMenu.prototype.isClickWithinSelectionBounds = function (event) { | ||
} | ||
if (this.pdfViewer.selectedItems.annotations.length) { | ||
this.pdfViewer.copy(); | ||
} | ||
break; | ||
@@ -219,27 +147,2 @@ case this.pdfViewer.localeObj.getConstant('Highlight context'): | ||
break; | ||
case this.pdfViewer.localeObj.getConstant('Properties'): | ||
// tslint:disable-next-line:max-line-length | ||
if (this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType === 'Line' || this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType === 'LineWidthArrowHead' || | ||
this.pdfViewer.selectedItems.annotations[0].shapeAnnotationType === 'Distance') { | ||
this.pdfViewer.annotation.createPropertiesWindow(); | ||
} | ||
break; | ||
case this.pdfViewer.localeObj.getConstant('Cut'): | ||
if (this.pdfViewer.selectedItems.annotations.length === 1) { | ||
var pageIndex = this.pdfViewer.selectedItems.annotations[0].pageIndex; | ||
this.pdfViewer.cut(); | ||
this.pdfViewer.clearSelection(pageIndex); | ||
} | ||
break; | ||
case this.pdfViewer.localeObj.getConstant('Paste'): | ||
this.pdfViewer.paste(); | ||
break; | ||
case this.pdfViewer.localeObj.getConstant('Delete Context'): | ||
this.pdfViewer.annotation.deleteAnnotation(); | ||
break; | ||
case this.pdfViewer.localeObj.getConstant('Scale Ratio'): | ||
if (this.pdfViewer.annotation.measureAnnotationModule) { | ||
this.pdfViewer.annotation.measureAnnotationModule.createScaleRatioWindow(); | ||
} | ||
break; | ||
default: | ||
@@ -246,0 +149,0 @@ break; |
@@ -184,10 +184,2 @@ import { BaseEventArgs } from '@syncfusion/ej2-base'; | ||
isOpacityChanged: boolean; | ||
/** | ||
* Specifies that the Text of the annotation is changed. | ||
*/ | ||
isTextChanged: boolean; | ||
/** | ||
* Specifies that the comments of the annotation is changed. | ||
*/ | ||
isCommentsChanged: boolean; | ||
} |
@@ -67,17 +67,2 @@ import { PdfViewer } from '../index'; | ||
isThumbnailOpen: boolean; | ||
/** | ||
* @private | ||
*/ | ||
commentPanelContainer: HTMLElement; | ||
/** | ||
* @private | ||
*/ | ||
commentsContentContainer: HTMLElement; | ||
/** | ||
* @private | ||
*/ | ||
accordionContentContainer: HTMLElement; | ||
/** | ||
* @private | ||
*/ | ||
constructor(viewer: PdfViewer, base: PdfViewerBase); | ||
@@ -93,12 +78,5 @@ /** | ||
adjustPane(): void; | ||
private createCommentPanel; | ||
private createCommentPanelTitleContainer; | ||
private closeCommentPanelContainer; | ||
/** | ||
* @private | ||
*/ | ||
openCommentPanelContainer(): void; | ||
/** | ||
* @private | ||
*/ | ||
createNavigationPaneMobile(option: string): void; | ||
@@ -155,6 +133,2 @@ private initiateSearchBox; | ||
readonly sideBarContentContainerWidth: number; | ||
/** | ||
* @private | ||
*/ | ||
readonly commentPanelContainerWidth: number; | ||
private resizePanelMouseMove; | ||
@@ -174,6 +148,2 @@ private sideToolbarOnClose; | ||
*/ | ||
getViewerContainerRight(): number; | ||
/** | ||
* @private | ||
*/ | ||
getViewerMainContainerWidth(): number; | ||
@@ -180,0 +150,0 @@ private sideToolbarOnClick; |
@@ -10,5 +10,2 @@ import { createElement, Browser } from '@syncfusion/ej2-base'; | ||
var NavigationPane = /** @class */ (function () { | ||
/** | ||
* @private | ||
*/ | ||
function NavigationPane(viewer, base) { | ||
@@ -92,3 +89,2 @@ var _this = this; | ||
proxy.pdfViewerBase.viewerContainer.style.right = proxy.getViewerContainerLeft() + 'px'; | ||
proxy.pdfViewerBase.viewerContainer.style.left = proxy.getViewerContainerRight() + 'px'; | ||
} | ||
@@ -112,6 +108,5 @@ else { | ||
proxy.pdfViewerBase.viewerContainer.style.left = proxy.getViewerContainerLeft() + 'px'; | ||
proxy.pdfViewerBase.viewerContainer.style.right = proxy.getViewerContainerRight() + 'px'; | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
var viewerWidth = (proxy.pdfViewer.element.clientWidth - proxy.getViewerContainerLeft() - proxy.getViewerContainerRight()); | ||
var viewerWidth = (proxy.pdfViewer.element.clientWidth - proxy.getViewerContainerLeft()); | ||
proxy.pdfViewerBase.viewerContainer.style.width = viewerWidth + 'px'; | ||
@@ -309,11 +304,8 @@ proxy.pdfViewerBase.pageContainer.style.width = proxy.pdfViewerBase.viewerContainer.clientWidth + 'px'; | ||
this.sideBarContentContainer.appendChild(this.sideBarResizer); | ||
this.createCommentPanel(); | ||
// tslint:disable-next-line:max-line-length | ||
var controlLeft = this.getViewerContainerLeft(); | ||
var controlRight = this.getViewerContainerRight(); | ||
if (!this.pdfViewer.enableRtl) { | ||
this.pdfViewerBase.viewerContainer.style.left = controlLeft + 'px'; | ||
this.pdfViewerBase.viewerContainer.style.right = controlRight + 'px'; | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
this.pdfViewerBase.viewerContainer.style.width = (this.pdfViewer.element.clientWidth - controlLeft - this.commentPanelContainer.clientWidth) + 'px'; | ||
this.pdfViewerBase.viewerContainer.style.width = (this.pdfViewer.element.clientWidth - controlLeft) + 'px'; | ||
this.sideBarContentContainer.style.display = 'none'; | ||
@@ -342,88 +334,5 @@ this.createSidebarToolBar(); | ||
}; | ||
NavigationPane.prototype.createCommentPanel = function () { | ||
// tslint:disable-next-line:max-line-length | ||
this.commentPanelContainer = createElement('div', { id: this.pdfViewer.element.id + '_commantPanel', className: 'e-pv-comment-panel' }); | ||
this.pdfViewerBase.mainContainer.appendChild(this.commentPanelContainer); | ||
if (this.pdfViewer.enableRtl) { | ||
this.commentPanelContainer.style.left = 1 + 'px'; | ||
} | ||
else { | ||
this.commentPanelContainer.style.right = 1 + 'px'; | ||
} | ||
this.createCommentPanelTitleContainer(); | ||
this.commentPanelContainer.style.display = 'none'; | ||
// tslint:disable-next-line:max-line-length | ||
this.commentsContentContainer = createElement('div', { id: this.pdfViewer.element.id + '_commentscontentcontainer', className: 'e-pv-comments-content-container' }); | ||
var commentPanelText = createElement('div', { id: this.pdfViewer.element.id + '_commentsPanelText', className: 'e-pv-comments-panel-text' }); | ||
commentPanelText.textContent = 'No Comments Yet'; | ||
commentPanelText.style.paddingTop = '75%'; | ||
this.commentPanelContainer.appendChild(this.commentsContentContainer); | ||
this.commentsContentContainer.appendChild(commentPanelText); | ||
this.commentPanelContainer.appendChild(this.commentsContentContainer); | ||
if (this.pdfViewer.annotationModule && this.pdfViewer.annotationModule.stickyNotesAnnotationModule) { | ||
this.pdfViewer.annotationModule.stickyNotesAnnotationModule.createCommentContextMenu(); | ||
} | ||
}; | ||
NavigationPane.prototype.createCommentPanelTitleContainer = function () { | ||
// tslint:disable-next-line:max-line-length | ||
var commentPanelTitleContainer = createElement('div', { id: this.pdfViewer.element.id + '_commentPanelTitleContainer', className: 'e-pv-comment-panel-title-container' }); | ||
// tslint:disable-next-line:max-line-length | ||
var commentpanelTilte = createElement('div', { id: this.pdfViewer.element.id + '_commentPanelTitle', className: 'e-pv-comment-panel-title', attrs: { 'tabindex': '-1' } }); | ||
commentpanelTilte.innerText = 'Comments'; | ||
var closeButton = createElement('button', { id: this.pdfViewer.element.id + '_close_btn' }); | ||
closeButton.className = 'e-btn e-pv-tbar-btn e-pv-comment-panel-title-close-div e-btn'; | ||
// tslint:disable-next-line:max-line-length | ||
var closeButtonSpan = createElement('span', { id: this.pdfViewer.element.id + '_close' + '_icon', className: 'e-pv-title-close-icon e-pv-icon' }); | ||
closeButton.appendChild(closeButtonSpan); | ||
commentPanelTitleContainer.appendChild(commentpanelTilte); | ||
commentPanelTitleContainer.appendChild(closeButton); | ||
this.commentPanelContainer.appendChild(commentPanelTitleContainer); | ||
closeButton.addEventListener('click', this.closeCommentPanelContainer.bind(this, NavigationPane)); | ||
}; | ||
NavigationPane.prototype.closeCommentPanelContainer = function () { | ||
var proxy = this; | ||
var viewerContainer = document.getElementById(this.pdfViewer.element.id + '_viewerContainer'); | ||
var commentPanel = document.getElementById(this.pdfViewer.element.id + '_commantPanel'); | ||
if (commentPanel) { | ||
commentPanel.style.display = 'none'; | ||
} | ||
if (viewerContainer) { | ||
if (this.pdfViewer.enableRtl) { | ||
viewerContainer.style.left = proxy.getViewerContainerRight() + 'px'; | ||
} | ||
else { | ||
viewerContainer.style.right = proxy.getViewerContainerRight() + 'px'; | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
viewerContainer.style.width = (proxy.pdfViewer.element.clientWidth - proxy.getViewerContainerLeft() - proxy.getViewerContainerRight()) + 'px'; | ||
} | ||
if (proxy.pdfViewerBase) { | ||
proxy.pdfViewerBase.updateZoomValue(); | ||
} | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
NavigationPane.prototype.openCommentPanelContainer = function () { | ||
// let proxy: NavigationPane = this; | ||
var viewerContainer = document.getElementById(this.pdfViewer.element.id + '_viewerContainer'); | ||
var commentPanel = document.getElementById(this.pdfViewer.element.id + '_commantPanel'); | ||
if (commentPanel) { | ||
commentPanel.style.display = 'block'; | ||
} | ||
if (viewerContainer) { | ||
if (this.pdfViewer.enableRtl) { | ||
viewerContainer.style.left = this.getViewerContainerRight() + 'px'; | ||
} | ||
else { | ||
viewerContainer.style.right = this.getViewerContainerRight() + 'px'; | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
viewerContainer.style.width = (this.pdfViewer.element.clientWidth - this.getViewerContainerLeft() - this.getViewerContainerRight()) + 'px'; | ||
} | ||
this.pdfViewerBase.updateZoomValue(); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
NavigationPane.prototype.createNavigationPaneMobile = function (option) { | ||
@@ -750,17 +659,2 @@ var _this = this; | ||
}); | ||
Object.defineProperty(NavigationPane.prototype, "commentPanelContainerWidth", { | ||
/** | ||
* @private | ||
*/ | ||
get: function () { | ||
if (this.commentPanelContainer) { | ||
return this.commentPanelContainer.offsetWidth; | ||
} | ||
else { | ||
return 0; | ||
} | ||
}, | ||
enumerable: true, | ||
configurable: true | ||
}); | ||
/** | ||
@@ -779,6 +673,4 @@ * @private | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
proxy.pdfViewerBase.viewerContainer.style.width = (proxy.pdfViewer.element.clientWidth - proxy.sideToolbarWidth - proxy.getViewerContainerRight()) + 'px'; | ||
// tslint:disable-next-line:max-line-length | ||
proxy.pdfViewerBase.pageContainer.style.width = (proxy.pdfViewer.element.clientWidth - proxy.sideToolbarWidth - proxy.getViewerContainerRight()) + 'px'; | ||
proxy.pdfViewerBase.viewerContainer.style.width = (proxy.pdfViewer.element.clientWidth - proxy.sideToolbarWidth) + 'px'; | ||
proxy.pdfViewerBase.pageContainer.style.width = proxy.pdfViewerBase.viewerContainer.clientWidth + 'px'; | ||
proxy.pdfViewerBase.updateZoomValue(); | ||
@@ -800,3 +692,3 @@ } | ||
// tslint:disable-next-line:max-line-length | ||
proxy.pdfViewerBase.viewerContainer.style.width = (proxy.pdfViewer.element.clientWidth - this.getViewerContainerLeft() - this.getViewerContainerRight()) + 'px'; | ||
proxy.pdfViewerBase.viewerContainer.style.width = (proxy.pdfViewer.element.clientWidth - this.getViewerContainerLeft()) + 'px'; | ||
proxy.pdfViewerBase.pageContainer.style.width = proxy.pdfViewerBase.viewerContainer.clientWidth + 'px'; | ||
@@ -816,8 +708,2 @@ proxy.pdfViewerBase.updateZoomValue(); | ||
*/ | ||
NavigationPane.prototype.getViewerContainerRight = function () { | ||
return (this.commentPanelContainerWidth); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
NavigationPane.prototype.getViewerMainContainerWidth = function () { | ||
@@ -858,4 +744,3 @@ return this.pdfViewer.element.clientWidth - this.sideToolbarWidth; | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
this.pdfViewerBase.viewerContainer.style.width = (this.pdfViewer.element.clientWidth - this.sideToolbarWidth - this.getViewerContainerRight()) + 'px'; | ||
this.pdfViewerBase.viewerContainer.style.width = (this.pdfViewer.element.clientWidth - this.sideToolbarWidth) + 'px'; | ||
this.pdfViewerBase.pageContainer.style.width = this.pdfViewerBase.viewerContainer.clientWidth + 'px'; | ||
@@ -905,6 +790,2 @@ this.thumbnailButton.setAttribute('disabled', 'disabled'); | ||
this.removeThumbnailSelectionIconTheme(); | ||
this.closeCommentPanelContainer(); | ||
if (this.commentsContentContainer.childElementCount !== 1) { | ||
this.commentsContentContainer.innerHTML = ''; | ||
} | ||
}; | ||
@@ -911,0 +792,0 @@ NavigationPane.prototype.getModuleName = function () { |
import { PdfViewer, TextLayer, ContextMenu } from '../index'; | ||
import { NavigationPane } from './navigation-pane'; | ||
import { TextMarkupAnnotation } from '../annotation'; | ||
import { DrawingElement, PointModel, Matrix } from '@syncfusion/ej2-drawings'; | ||
import { ToolBase, Actions } from '../../diagram/tools'; | ||
import { ActiveElements } from '../../diagram/action'; | ||
import { PdfAnnotationBaseModel } from '../../diagram/pdf-annotation-model'; | ||
/** | ||
@@ -53,6 +49,2 @@ * The `ISize` module is used to handle page size property of PDF viewer. | ||
*/ | ||
activeElements: ActiveElements; | ||
/** | ||
* @private | ||
*/ | ||
textLayer: TextLayer; | ||
@@ -197,41 +189,2 @@ private pdfViewer; | ||
private virtualLoadRequestHandler; | ||
/** | ||
* @private | ||
*/ | ||
tool: ToolBase; | ||
action: string; | ||
private eventArgs; | ||
/** | ||
* @private | ||
*/ | ||
inAction: boolean; | ||
/** | ||
* @private | ||
*/ | ||
isMouseDown: boolean; | ||
/** | ||
* @private | ||
*/ | ||
isStampMouseDown: boolean; | ||
/** | ||
* @private | ||
*/ | ||
currentPosition: PointModel; | ||
/** | ||
* @private | ||
*/ | ||
prevPosition: PointModel; | ||
private initialEventArgs; | ||
/** | ||
* @private | ||
*/ | ||
stampAdded: boolean; | ||
/** | ||
* @private | ||
*/ | ||
customStampCount: number; | ||
/** | ||
* @private | ||
*/ | ||
isDynamicStamp: boolean; | ||
constructor(viewer: PdfViewer); | ||
@@ -482,32 +435,2 @@ /** | ||
isTextMarkupAnnotationModule(): TextMarkupAnnotation; | ||
/** | ||
* @private | ||
*/ | ||
isShapeAnnotationModule(): boolean; | ||
/** | ||
* @private | ||
*/ | ||
isCalibrateAnnotationModule(): boolean; | ||
/** @private */ | ||
getMousePosition(e: MouseEvent | PointerEvent | TouchEvent): PointModel; | ||
private getMouseEventArgs; | ||
/** | ||
* @private | ||
*/ | ||
findToolToActivate(obj: PdfAnnotationBaseModel, position: PointModel): Actions | string; | ||
private inflate; | ||
checkResizeHandles(diagram: PdfViewer, element: DrawingElement, position: PointModel, matrix: Matrix, x: number, y: number): Actions; | ||
checkForResizeHandles(diagram: PdfViewer, element: DrawingElement, position: PointModel, matrix: Matrix, x: number, y: number): Actions; | ||
/** @private */ | ||
diagramMouseMove(evt: MouseEvent | TouchEvent): void; | ||
/** @private */ | ||
diagramMouseLeave(evt: MouseEvent | TouchEvent): void; | ||
private diagramMouseActionHelper; | ||
private setCursor; | ||
/** @private */ | ||
getTool(action: Actions | string): ToolBase; | ||
/** @private */ | ||
diagramMouseUp(evt: MouseEvent | TouchEvent): void; | ||
private isMetaKey; | ||
diagramMouseDown(evt: MouseEvent | TouchEvent): void; | ||
} |
/** | ||
* Enum toolbarItem for toolbar settings | ||
*/ | ||
export declare type ToolbarItem = 'OpenOption' | 'PageNavigationTool' | 'MagnificationTool' | 'PanTool' | 'SelectionTool' | 'SearchOption' | 'PrintOption' | 'DownloadOption' | 'UndoRedoTool' | 'AnnotationEditTool' | 'CommentOption'; | ||
export declare type ToolbarItem = 'OpenOption' | 'PageNavigationTool' | 'MagnificationTool' | 'PanTool' | 'SelectionTool' | 'SearchOption' | 'PrintOption' | 'DownloadOption' | 'UndoRedoTool' | 'AnnotationEditTool'; | ||
/** | ||
@@ -20,6 +20,2 @@ * Enum AnnotationToolbarItem for annotation toolbar settings | ||
*/ | ||
export declare type AnnotationType = 'None' | 'Highlight' | 'Underline' | 'Strikethrough' | 'Line' | 'Arrow' | 'Rectangle' | 'Circle' | 'Polygon'; | ||
/** | ||
* Enum LineHeadStyle for line and arrow annotation | ||
*/ | ||
export declare type LineHeadStyle = 'None' | 'Closed' | 'Open' | 'Square' | 'Round' | 'Diamond'; | ||
export declare type AnnotationType = 'None' | 'Highlight' | 'Underline' | 'Strikethrough'; |
import { Browser } from '@syncfusion/ej2-base'; | ||
import { getDiagramElement } from '@syncfusion/ej2-drawings'; | ||
/** | ||
@@ -656,18 +655,2 @@ * Magnification module | ||
} | ||
var adornerSvg = getDiagramElement(this.pdfViewer.element.id + '_textLayer_' + i); | ||
if (adornerSvg) { | ||
var adonerLayer = getDiagramElement(this.pdfViewer.element.id + i + '_diagramAdorner_svg'); | ||
if (adonerLayer) { | ||
adonerLayer.style.width = width + 'px'; | ||
adonerLayer.style.height = height + 'px'; | ||
} | ||
var diagramAdornerLayer = getDiagramElement(this.pdfViewer.element.id + i + '_diagramAdornerLayer'); | ||
if (diagramAdornerLayer) { | ||
diagramAdornerLayer.style.width = width + 'px'; | ||
diagramAdornerLayer.style.height = height + 'px'; | ||
} | ||
adornerSvg.style.width = width + 'px'; | ||
adornerSvg.style.height = height + 'px'; | ||
this.pdfViewer.renderSelector(i); | ||
} | ||
} | ||
@@ -674,0 +657,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 } 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 { Print } from './index';import { UnloadEventArgs, LoadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs } from './index';import { AnnotationAddEventArgs, AnnotationRemoveEventArgs, AnnotationPropertiesChangeEventArgs } 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 { Component, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, L10n } 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 } 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 { Print } from './index';import { LoadEventArgs, UnloadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs } from './index';import { AnnotationAddEventArgs, AnnotationRemoveEventArgs, AnnotationPropertiesChangeEventArgs } from './index'; | ||
import {IAjaxHeaders} from "./pdfviewer"; | ||
@@ -30,3 +30,3 @@ import {ComponentModel} from '@syncfusion/ej2-base'; | ||
*/ | ||
ajaxHeaders?: IAjaxHeaders[]; | ||
ajaxHeaders?: IAjaxHeaders []; | ||
@@ -186,259 +186,2 @@ } | ||
/** | ||
* Interface for a class LineSettings | ||
*/ | ||
export interface LineSettingsModel { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity?: number; | ||
/** | ||
* specifies the fill color of the annotation. | ||
*/ | ||
fillColor?: string; | ||
/** | ||
* specifies the stroke color of the annotation. | ||
*/ | ||
strokeColor?: string; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author?: string; | ||
/** | ||
* specifies the subject of the annotation. | ||
*/ | ||
subject?: string; | ||
/** | ||
* specifies the modified date of the annotation. | ||
*/ | ||
modifiedDate?: string; | ||
/** | ||
* specified the thickness of the annotation. | ||
*/ | ||
thickness?: number; | ||
/** | ||
* specifies the line head start style of the annotation. | ||
*/ | ||
lineHeadStartStyle?: LineHeadStyle; | ||
/** | ||
* specifies the line head start style of the annotation. | ||
*/ | ||
lineHeadEndStyle?: LineHeadStyle; | ||
/** | ||
* specifies the border dash array of the annotation. | ||
*/ | ||
borderDashArray?: number; | ||
} | ||
/** | ||
* Interface for a class ArrowSettings | ||
*/ | ||
export interface ArrowSettingsModel { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity?: number; | ||
/** | ||
* specifies the fill color of the annotation. | ||
*/ | ||
fillColor?: string; | ||
/** | ||
* specifies the stroke color of the annotation. | ||
*/ | ||
strokeColor?: string; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author?: string; | ||
/** | ||
* specifies the subject of the annotation. | ||
*/ | ||
subject?: string; | ||
/** | ||
* specifies the modified date of the annotation. | ||
*/ | ||
modifiedDate?: string; | ||
/** | ||
* specified the thickness of the annotation. | ||
*/ | ||
thickness?: number; | ||
/** | ||
* specifies the line head start style of the annotation. | ||
*/ | ||
lineHeadStartStyle?: LineHeadStyle; | ||
/** | ||
* specifies the line head start style of the annotation. | ||
*/ | ||
lineHeadEndStyle?: LineHeadStyle; | ||
/** | ||
* specifies the border dash array of the annotation. | ||
*/ | ||
borderDashArray?: number; | ||
} | ||
/** | ||
* Interface for a class RectangleSettings | ||
*/ | ||
export interface RectangleSettingsModel { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity?: number; | ||
/** | ||
* specifies the fill color of the annotation. | ||
*/ | ||
fillColor?: string; | ||
/** | ||
* specifies the stroke color of the annotation. | ||
*/ | ||
strokeColor?: string; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author?: string; | ||
/** | ||
* specifies the subject of the annotation. | ||
*/ | ||
subject?: string; | ||
/** | ||
* specifies the modified date of the annotation. | ||
*/ | ||
modifiedDate?: string; | ||
/** | ||
* specified the thickness of the annotation. | ||
*/ | ||
thickness?: number; | ||
} | ||
/** | ||
* Interface for a class CircleSettings | ||
*/ | ||
export interface CircleSettingsModel { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity?: number; | ||
/** | ||
* specifies the fill color of the annotation. | ||
*/ | ||
fillColor?: string; | ||
/** | ||
* specifies the stroke color of the annotation. | ||
*/ | ||
strokeColor?: string; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author?: string; | ||
/** | ||
* specifies the subject of the annotation. | ||
*/ | ||
subject?: string; | ||
/** | ||
* specifies the modified date of the annotation. | ||
*/ | ||
modifiedDate?: string; | ||
/** | ||
* specified the thickness of the annotation. | ||
*/ | ||
thickness?: number; | ||
} | ||
/** | ||
* Interface for a class PolygonSettings | ||
*/ | ||
export interface PolygonSettingsModel { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity?: number; | ||
/** | ||
* specifies the fill color of the annotation. | ||
*/ | ||
fillColor?: string; | ||
/** | ||
* specifies the stroke color of the annotation. | ||
*/ | ||
strokeColor?: string; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author?: string; | ||
/** | ||
* specifies the subject of the annotation. | ||
*/ | ||
subject?: string; | ||
/** | ||
* specifies the modified date of the annotation. | ||
*/ | ||
modifiedDate?: string; | ||
/** | ||
* specified the thickness of the annotation. | ||
*/ | ||
thickness?: number; | ||
} | ||
/** | ||
* Interface for a class StampSettings | ||
*/ | ||
export interface StampSettingsModel { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity?: number; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author?: string; | ||
} | ||
/** | ||
* Interface for a class PdfViewer | ||
@@ -555,20 +298,2 @@ */ | ||
/** | ||
* Enable or disables the shape annotation in the PdfViewer. | ||
* @default true | ||
*/ | ||
enableShapeAnnotation?: boolean; | ||
/** | ||
* Enable or disables the calibrate annotation in the PdfViewer. | ||
* @default true | ||
*/ | ||
enableMeasureAnnotation?: boolean; | ||
/** | ||
* Enables and disables the stamp annotations when the PDF viewer control is loaded initially. | ||
* @default true | ||
*/ | ||
enableStampAnnotations?: boolean; | ||
/** | ||
* Sets the interaction mode of the PdfViewer | ||
@@ -619,44 +344,2 @@ * @default TextSelection | ||
/** | ||
* Defines the settings of line annotation. | ||
*/ | ||
// tslint:disable-next-line:max-line-length | ||
lineSettings?: LineSettingsModel; | ||
/** | ||
* Defines the settings of arrow annotation. | ||
*/ | ||
// tslint:disable-next-line:max-line-length | ||
arrowSettings?: ArrowSettingsModel; | ||
/** | ||
* Defines the settings of rectangle annotation. | ||
*/ | ||
// tslint:disable-next-line:max-line-length | ||
rectangleSettings?: RectangleSettingsModel; | ||
/** | ||
* Defines the settings of circle annotation. | ||
*/ | ||
// tslint:disable-next-line:max-line-length | ||
circleSettings?: CircleSettingsModel; | ||
/** | ||
* Defines the settings of polygon annotation. | ||
*/ | ||
// tslint:disable-next-line:max-line-length | ||
polygonSettings?: PolygonSettingsModel; | ||
/** | ||
* Defines the settings of polygon annotation. | ||
*/ | ||
// tslint:disable-next-line:max-line-length | ||
stampSettings?: StampSettingsModel; | ||
/** | ||
* Defines the collection of selected items, size and position of the selector | ||
* @default {} | ||
*/ | ||
selectedItems?: SelectorModel; | ||
/** | ||
* Triggers while loading document into PdfViewer. | ||
@@ -727,22 +410,2 @@ * @event | ||
/** | ||
* Triggers when the property of the annotation is changed in the page of the PDF document. | ||
* @event | ||
*/ | ||
annotations?: PdfAnnotationBaseModel[]; | ||
/** | ||
* tool denots the current tool | ||
* @event | ||
* @private | ||
*/ | ||
tool?: string; | ||
/** | ||
* the objects for drawing tool | ||
* @event | ||
* @private | ||
*/ | ||
drawingObject?: PdfAnnotationBaseModel; | ||
} |
import { Component, INotifyPropertyChanged, ChildProperty, L10n } from '@syncfusion/ej2-base'; | ||
import { ModuleDeclaration, EmitType } from '@syncfusion/ej2-base'; | ||
import { PdfViewerModel, HighlightSettingsModel, UnderlineSettingsModel, StrikethroughSettingsModel, LineSettingsModel, ArrowSettingsModel, RectangleSettingsModel, CircleSettingsModel, PolygonSettingsModel, StampSettingsModel } from './pdfviewer-model'; | ||
import { PdfViewerModel, HighlightSettingsModel, UnderlineSettingsModel, StrikethroughSettingsModel } from './pdfviewer-model'; | ||
import { ToolbarSettingsModel, AnnotationToolbarSettingsModel } from './pdfviewer-model'; | ||
@@ -10,3 +10,3 @@ import { ServerActionSettingsModel, AjaxRequestSettingsModel } from './pdfviewer-model'; | ||
import { ToolbarItem } from './index'; | ||
import { LinkTarget, InteractionMode, AnnotationType, AnnotationToolbarItem, LineHeadStyle } from './base/types'; | ||
import { LinkTarget, InteractionMode, AnnotationType, AnnotationToolbarItem } from './base/types'; | ||
import { Annotation } from './index'; | ||
@@ -19,9 +19,4 @@ import { LinkAnnotation } from './index'; | ||
import { Print } from './index'; | ||
import { UnloadEventArgs, LoadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs } from './index'; | ||
import { LoadEventArgs, UnloadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs } from './index'; | ||
import { AnnotationAddEventArgs, AnnotationRemoveEventArgs, AnnotationPropertiesChangeEventArgs } from './index'; | ||
import { PdfAnnotationBase, ZOrderPageTable } from '../diagram/pdf-annotation'; | ||
import { PdfAnnotationBaseModel } from '../diagram/pdf-annotation-model'; | ||
import { Drawing, ClipBoardObject } from '../diagram/drawing'; | ||
import { SelectorModel } from '../diagram/selector-model'; | ||
import { PointModel, IElement, Rect } from '@syncfusion/ej2-drawings'; | ||
/** | ||
@@ -177,204 +172,2 @@ * The `ToolbarSettings` module is used to provide the toolbar settings of PDF viewer. | ||
/** | ||
* The `LineSettings` module is used to provide the properties to line annotation. | ||
*/ | ||
export declare class LineSettings extends ChildProperty<LineSettings> { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity: number; | ||
/** | ||
* specifies the fill color of the annotation. | ||
*/ | ||
fillColor: string; | ||
/** | ||
* specifies the stroke color of the annotation. | ||
*/ | ||
strokeColor: string; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author: string; | ||
/** | ||
* specifies the subject of the annotation. | ||
*/ | ||
subject: string; | ||
/** | ||
* specifies the modified date of the annotation. | ||
*/ | ||
modifiedDate: string; | ||
/** | ||
* specified the thickness of the annotation. | ||
*/ | ||
thickness: number; | ||
/** | ||
* specifies the line head start style of the annotation. | ||
*/ | ||
lineHeadStartStyle: LineHeadStyle; | ||
/** | ||
* specifies the line head start style of the annotation. | ||
*/ | ||
lineHeadEndStyle: LineHeadStyle; | ||
/** | ||
* specifies the border dash array of the annotation. | ||
*/ | ||
borderDashArray: number; | ||
} | ||
/** | ||
* The `ArrowSettings` module is used to provide the properties to arrow annotation. | ||
*/ | ||
export declare class ArrowSettings extends ChildProperty<ArrowSettings> { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity: number; | ||
/** | ||
* specifies the fill color of the annotation. | ||
*/ | ||
fillColor: string; | ||
/** | ||
* specifies the stroke color of the annotation. | ||
*/ | ||
strokeColor: string; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author: string; | ||
/** | ||
* specifies the subject of the annotation. | ||
*/ | ||
subject: string; | ||
/** | ||
* specifies the modified date of the annotation. | ||
*/ | ||
modifiedDate: string; | ||
/** | ||
* specified the thickness of the annotation. | ||
*/ | ||
thickness: number; | ||
/** | ||
* specifies the line head start style of the annotation. | ||
*/ | ||
lineHeadStartStyle: LineHeadStyle; | ||
/** | ||
* specifies the line head start style of the annotation. | ||
*/ | ||
lineHeadEndStyle: LineHeadStyle; | ||
/** | ||
* specifies the border dash array of the annotation. | ||
*/ | ||
borderDashArray: number; | ||
} | ||
/** | ||
* The `RectangleSettings` module is used to provide the properties to rectangle annotation. | ||
*/ | ||
export declare class RectangleSettings extends ChildProperty<RectangleSettings> { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity: number; | ||
/** | ||
* specifies the fill color of the annotation. | ||
*/ | ||
fillColor: string; | ||
/** | ||
* specifies the stroke color of the annotation. | ||
*/ | ||
strokeColor: string; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author: string; | ||
/** | ||
* specifies the subject of the annotation. | ||
*/ | ||
subject: string; | ||
/** | ||
* specifies the modified date of the annotation. | ||
*/ | ||
modifiedDate: string; | ||
/** | ||
* specified the thickness of the annotation. | ||
*/ | ||
thickness: number; | ||
} | ||
/** | ||
* The `CircleSettings` module is used to provide the properties to circle annotation. | ||
*/ | ||
export declare class CircleSettings extends ChildProperty<CircleSettings> { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity: number; | ||
/** | ||
* specifies the fill color of the annotation. | ||
*/ | ||
fillColor: string; | ||
/** | ||
* specifies the stroke color of the annotation. | ||
*/ | ||
strokeColor: string; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author: string; | ||
/** | ||
* specifies the subject of the annotation. | ||
*/ | ||
subject: string; | ||
/** | ||
* specifies the modified date of the annotation. | ||
*/ | ||
modifiedDate: string; | ||
/** | ||
* specified the thickness of the annotation. | ||
*/ | ||
thickness: number; | ||
} | ||
/** | ||
* The `PolygonSettings` module is used to provide the properties to polygon annotation. | ||
*/ | ||
export declare class PolygonSettings extends ChildProperty<PolygonSettings> { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity: number; | ||
/** | ||
* specifies the fill color of the annotation. | ||
*/ | ||
fillColor: string; | ||
/** | ||
* specifies the stroke color of the annotation. | ||
*/ | ||
strokeColor: string; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author: string; | ||
/** | ||
* specifies the subject of the annotation. | ||
*/ | ||
subject: string; | ||
/** | ||
* specifies the modified date of the annotation. | ||
*/ | ||
modifiedDate: string; | ||
/** | ||
* specified the thickness of the annotation. | ||
*/ | ||
thickness: number; | ||
} | ||
/** | ||
* The `stampSettings` module is used to provide the properties to stamp annotation. | ||
*/ | ||
export declare class StampSettings extends ChildProperty<StampSettings> { | ||
/** | ||
* specifies the opacity of the annotation. | ||
*/ | ||
opacity: number; | ||
/** | ||
* specifies the author of the annotation. | ||
*/ | ||
author: string; | ||
} | ||
/** | ||
* Represents the PDF viewer component. | ||
@@ -499,17 +292,2 @@ * ```html | ||
/** | ||
* Enable or disables the shape annotation in the PdfViewer. | ||
* @default true | ||
*/ | ||
enableShapeAnnotation: boolean; | ||
/** | ||
* Enable or disables the calibrate annotation in the PdfViewer. | ||
* @default true | ||
*/ | ||
enableMeasureAnnotation: boolean; | ||
/** | ||
* Enables and disables the stamp annotations when the PDF viewer control is loaded initially. | ||
* @default true | ||
*/ | ||
enableStampAnnotations: boolean; | ||
/** | ||
* Sets the interaction mode of the PdfViewer | ||
@@ -547,26 +325,2 @@ * @default TextSelection | ||
underlineSettings: UnderlineSettingsModel; | ||
/** | ||
* Defines the settings of line annotation. | ||
*/ | ||
lineSettings: LineSettingsModel; | ||
/** | ||
* Defines the settings of arrow annotation. | ||
*/ | ||
arrowSettings: ArrowSettingsModel; | ||
/** | ||
* Defines the settings of rectangle annotation. | ||
*/ | ||
rectangleSettings: RectangleSettingsModel; | ||
/** | ||
* Defines the settings of circle annotation. | ||
*/ | ||
circleSettings: CircleSettingsModel; | ||
/** | ||
* Defines the settings of polygon annotation. | ||
*/ | ||
polygonSettings: PolygonSettingsModel; | ||
/** | ||
* Defines the settings of polygon annotation. | ||
*/ | ||
stampSettings: StampSettingsModel; | ||
private viewerBase; | ||
@@ -576,32 +330,2 @@ /** | ||
*/ | ||
drawing: Drawing; | ||
/** | ||
* @private | ||
*/ | ||
/** | ||
* Defines the collection of selected items, size and position of the selector | ||
* @default {} | ||
*/ | ||
selectedItems: SelectorModel; | ||
/** | ||
* @private | ||
*/ | ||
adornerSvgLayer: SVGSVGElement; | ||
/** | ||
* @private | ||
*/ | ||
zIndex: number; | ||
/** | ||
* @private | ||
*/ | ||
nameTable: {}; | ||
/** @private */ | ||
clipboardData: ClipBoardObject; | ||
/** | ||
* @private | ||
*/ | ||
zIndexTable: ZOrderPageTable[]; | ||
/** | ||
* @private | ||
*/ | ||
navigationModule: Navigation; | ||
@@ -741,25 +465,2 @@ /** | ||
annotationPropertiesChange: EmitType<AnnotationPropertiesChangeEventArgs>; | ||
/** | ||
* Triggers when the property of the annotation is changed in the page of the PDF document. | ||
* @event | ||
*/ | ||
annotations: PdfAnnotationBaseModel[]; | ||
/** | ||
* @private | ||
*/ | ||
/** | ||
* tool denots the current tool | ||
* @event | ||
* @private | ||
*/ | ||
tool: string; | ||
/** | ||
* @private | ||
*/ | ||
/** | ||
* the objects for drawing tool | ||
* @event | ||
* @private | ||
*/ | ||
drawingObject: PdfAnnotationBaseModel; | ||
constructor(options?: PdfViewerModel, element?: string | HTMLElement); | ||
@@ -852,75 +553,3 @@ protected preRender(): void; | ||
*/ | ||
fireAnnotationPropertiesChange(pageNumber: number, index: number, type: AnnotationType, isColorChanged: boolean, isOpacityChanged: boolean, isTextChanged: boolean, isCommentsChanged: boolean): void; | ||
/** | ||
* @private | ||
*/ | ||
renderDrawing(canvas?: HTMLCanvasElement, index?: number): void; | ||
/** | ||
* @private | ||
*/ | ||
renderAdornerLayer(bounds: ClientRect, commonStyle: string, cavas: HTMLElement, index: number): void; | ||
/** | ||
* @private | ||
*/ | ||
renderSelector(index: number): void; | ||
/** | ||
* @private | ||
*/ | ||
select(objArray: string[], multipleSelection?: boolean, preventUpdate?: boolean): void; | ||
/** | ||
* @private | ||
*/ | ||
getPageTable(pageId: number): ZOrderPageTable; | ||
/** | ||
* @private | ||
*/ | ||
dragSelectedObjects(diffX: number, diffY: number, pageIndex: number, helper: PdfAnnotationBaseModel): boolean; | ||
/** | ||
* @private | ||
*/ | ||
scaleSelectedItems(sx: number, sy: number, pivot: PointModel): boolean; | ||
/** | ||
* @private | ||
*/ | ||
dragConnectorEnds(endPoint: string, obj: IElement, point: PointModel, segment: PointModel, target?: IElement, targetPortId?: string): boolean; | ||
/** | ||
* @private | ||
*/ | ||
clearSelection(pageId: number): void; | ||
/** | ||
* @private | ||
*/ | ||
add(obj: PdfAnnotationBase): PdfAnnotationBaseModel; | ||
/** | ||
* @private | ||
*/ | ||
remove(obj: PdfAnnotationBaseModel): void; | ||
/** | ||
* @private | ||
*/ | ||
copy(): Object; | ||
/** | ||
* @private | ||
*/ | ||
rotate(angle: number): boolean; | ||
/** | ||
* @private | ||
*/ | ||
paste(obj?: PdfAnnotationBaseModel[]): void; | ||
/** | ||
* @private | ||
*/ | ||
refresh(): void; | ||
/** | ||
* @private | ||
*/ | ||
cut(): void; | ||
/** | ||
* @private | ||
*/ | ||
nodePropertyChange(actualObject: PdfAnnotationBaseModel, node: PdfAnnotationBaseModel): void; | ||
/** | ||
* @private | ||
*/ | ||
checkBoundaryConstraints(tx: number, ty: number, pageIndex: number, nodeBounds?: Rect): boolean; | ||
fireAnnotationPropertiesChange(pageNumber: number, index: number, type: AnnotationType, isColorChanged: boolean, isOpacityChanged: boolean): void; | ||
} |
@@ -20,9 +20,5 @@ var __extends = (this && this.__extends) || (function () { | ||
}; | ||
import { Component, NotifyPropertyChanges, ChildProperty, L10n, Collection, Complex } from '@syncfusion/ej2-base'; | ||
import { Component, NotifyPropertyChanges, ChildProperty, L10n } from '@syncfusion/ej2-base'; | ||
import { isNullOrUndefined, Property, Event } from '@syncfusion/ej2-base'; | ||
import { PdfViewerBase } from './index'; | ||
import { PdfAnnotationBase } from '../diagram/pdf-annotation'; | ||
import { Drawing } from '../diagram/drawing'; | ||
import { Selector } from '../diagram/selector'; | ||
import { renderAdornerLayer } from '../diagram/dom-util'; | ||
/** | ||
@@ -184,197 +180,2 @@ * The `ToolbarSettings` module is used to provide the toolbar settings of PDF viewer. | ||
/** | ||
* The `LineSettings` module is used to provide the properties to line annotation. | ||
*/ | ||
var LineSettings = /** @class */ (function (_super) { | ||
__extends(LineSettings, _super); | ||
function LineSettings() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
__decorate([ | ||
Property(1) | ||
], LineSettings.prototype, "opacity", void 0); | ||
__decorate([ | ||
Property('#ffffff00') | ||
], LineSettings.prototype, "fillColor", void 0); | ||
__decorate([ | ||
Property('#ff0000') | ||
], LineSettings.prototype, "strokeColor", void 0); | ||
__decorate([ | ||
Property('Guest') | ||
], LineSettings.prototype, "author", void 0); | ||
__decorate([ | ||
Property('Line') | ||
], LineSettings.prototype, "subject", void 0); | ||
__decorate([ | ||
Property('') | ||
], LineSettings.prototype, "modifiedDate", void 0); | ||
__decorate([ | ||
Property('1') | ||
], LineSettings.prototype, "thickness", void 0); | ||
__decorate([ | ||
Property('None') | ||
], LineSettings.prototype, "lineHeadStartStyle", void 0); | ||
__decorate([ | ||
Property('None') | ||
], LineSettings.prototype, "lineHeadEndStyle", void 0); | ||
__decorate([ | ||
Property(0) | ||
], LineSettings.prototype, "borderDashArray", void 0); | ||
return LineSettings; | ||
}(ChildProperty)); | ||
export { LineSettings }; | ||
/** | ||
* The `ArrowSettings` module is used to provide the properties to arrow annotation. | ||
*/ | ||
var ArrowSettings = /** @class */ (function (_super) { | ||
__extends(ArrowSettings, _super); | ||
function ArrowSettings() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
__decorate([ | ||
Property(1) | ||
], ArrowSettings.prototype, "opacity", void 0); | ||
__decorate([ | ||
Property('#ffffff00') | ||
], ArrowSettings.prototype, "fillColor", void 0); | ||
__decorate([ | ||
Property('#ff0000') | ||
], ArrowSettings.prototype, "strokeColor", void 0); | ||
__decorate([ | ||
Property('Guest') | ||
], ArrowSettings.prototype, "author", void 0); | ||
__decorate([ | ||
Property('Arrow') | ||
], ArrowSettings.prototype, "subject", void 0); | ||
__decorate([ | ||
Property('') | ||
], ArrowSettings.prototype, "modifiedDate", void 0); | ||
__decorate([ | ||
Property('1') | ||
], ArrowSettings.prototype, "thickness", void 0); | ||
__decorate([ | ||
Property('None') | ||
], ArrowSettings.prototype, "lineHeadStartStyle", void 0); | ||
__decorate([ | ||
Property('None') | ||
], ArrowSettings.prototype, "lineHeadEndStyle", void 0); | ||
__decorate([ | ||
Property(0) | ||
], ArrowSettings.prototype, "borderDashArray", void 0); | ||
return ArrowSettings; | ||
}(ChildProperty)); | ||
export { ArrowSettings }; | ||
/** | ||
* The `RectangleSettings` module is used to provide the properties to rectangle annotation. | ||
*/ | ||
var RectangleSettings = /** @class */ (function (_super) { | ||
__extends(RectangleSettings, _super); | ||
function RectangleSettings() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
__decorate([ | ||
Property(1) | ||
], RectangleSettings.prototype, "opacity", void 0); | ||
__decorate([ | ||
Property('#ffffff00') | ||
], RectangleSettings.prototype, "fillColor", void 0); | ||
__decorate([ | ||
Property('#ff0000') | ||
], RectangleSettings.prototype, "strokeColor", void 0); | ||
__decorate([ | ||
Property('Guest') | ||
], RectangleSettings.prototype, "author", void 0); | ||
__decorate([ | ||
Property('Rectangle') | ||
], RectangleSettings.prototype, "subject", void 0); | ||
__decorate([ | ||
Property('') | ||
], RectangleSettings.prototype, "modifiedDate", void 0); | ||
__decorate([ | ||
Property('1') | ||
], RectangleSettings.prototype, "thickness", void 0); | ||
return RectangleSettings; | ||
}(ChildProperty)); | ||
export { RectangleSettings }; | ||
/** | ||
* The `CircleSettings` module is used to provide the properties to circle annotation. | ||
*/ | ||
var CircleSettings = /** @class */ (function (_super) { | ||
__extends(CircleSettings, _super); | ||
function CircleSettings() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
__decorate([ | ||
Property(1) | ||
], CircleSettings.prototype, "opacity", void 0); | ||
__decorate([ | ||
Property('#ffffff00') | ||
], CircleSettings.prototype, "fillColor", void 0); | ||
__decorate([ | ||
Property('#ff0000') | ||
], CircleSettings.prototype, "strokeColor", void 0); | ||
__decorate([ | ||
Property('Guest') | ||
], CircleSettings.prototype, "author", void 0); | ||
__decorate([ | ||
Property('Circle') | ||
], CircleSettings.prototype, "subject", void 0); | ||
__decorate([ | ||
Property('') | ||
], CircleSettings.prototype, "modifiedDate", void 0); | ||
__decorate([ | ||
Property('1') | ||
], CircleSettings.prototype, "thickness", void 0); | ||
return CircleSettings; | ||
}(ChildProperty)); | ||
export { CircleSettings }; | ||
/** | ||
* The `PolygonSettings` module is used to provide the properties to polygon annotation. | ||
*/ | ||
var PolygonSettings = /** @class */ (function (_super) { | ||
__extends(PolygonSettings, _super); | ||
function PolygonSettings() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
__decorate([ | ||
Property(1) | ||
], PolygonSettings.prototype, "opacity", void 0); | ||
__decorate([ | ||
Property('#ffffff00') | ||
], PolygonSettings.prototype, "fillColor", void 0); | ||
__decorate([ | ||
Property('#ff0000') | ||
], PolygonSettings.prototype, "strokeColor", void 0); | ||
__decorate([ | ||
Property('Guest') | ||
], PolygonSettings.prototype, "author", void 0); | ||
__decorate([ | ||
Property('Polygon') | ||
], PolygonSettings.prototype, "subject", void 0); | ||
__decorate([ | ||
Property('') | ||
], PolygonSettings.prototype, "modifiedDate", void 0); | ||
__decorate([ | ||
Property('1') | ||
], PolygonSettings.prototype, "thickness", void 0); | ||
return PolygonSettings; | ||
}(ChildProperty)); | ||
export { PolygonSettings }; | ||
/** | ||
* The `stampSettings` module is used to provide the properties to stamp annotation. | ||
*/ | ||
var StampSettings = /** @class */ (function (_super) { | ||
__extends(StampSettings, _super); | ||
function StampSettings() { | ||
return _super !== null && _super.apply(this, arguments) || this; | ||
} | ||
__decorate([ | ||
Property(1) | ||
], StampSettings.prototype, "opacity", void 0); | ||
__decorate([ | ||
Property('') | ||
], StampSettings.prototype, "author", void 0); | ||
return StampSettings; | ||
}(ChildProperty)); | ||
export { StampSettings }; | ||
/** | ||
* Represents the PDF viewer component. | ||
@@ -397,16 +198,2 @@ * ```html | ||
_this.fileName = null; | ||
/** | ||
* @private | ||
*/ | ||
_this.zIndex = -1; | ||
/** | ||
* @private | ||
*/ | ||
_this.nameTable = {}; | ||
/** @private */ | ||
_this.clipboardData = {}; | ||
/** | ||
* @private | ||
*/ | ||
_this.zIndexTable = []; | ||
/** @hidden */ | ||
@@ -476,45 +263,5 @@ _this.defaultLocale = { | ||
'Search text': 'Search', | ||
'Annotation Edit text': 'Edit Annotation', | ||
'Line Thickness': 'Line Thickness', | ||
'Line Properties': 'Line Properties', | ||
'Start Arrow': 'Start Arrow', | ||
'End Arrow': 'End Arrow', | ||
'Line Style': 'Line Style', | ||
'Fill Color': 'Fill Color', | ||
'Line Color': 'Line Color', | ||
'None': 'None', | ||
'Open Arrow': 'Open', | ||
'Closed Arrow': 'Closed', | ||
'Round Arrow': 'Round', | ||
'Square Arrow': 'Square', | ||
'Diamond Arrow': 'Diamond', | ||
'Cut': 'Cut', | ||
'Paste': 'Paste', | ||
'Delete Context': 'Delete', | ||
'Properties': 'Properties', | ||
'Add Stamp': 'Add Stamp', | ||
'Add Shapes': 'Add Shapes', | ||
'Stroke edit': 'Change Stroke color', | ||
'Change thickness': 'Change border thickness', | ||
'Add line': 'Add Line', | ||
'Add arrow': 'Add Arrow', | ||
'Add rectangle': 'Add Rectangle', | ||
'Add circle': 'Add Circle', | ||
'Add polygon': 'Add Polygon', | ||
'Comment': 'Comment', | ||
'Accepted': 'Accepted', | ||
'Completed': 'Completed', | ||
'Cancelled': 'Cancelled', | ||
'Rejected': 'Rejected', | ||
'Leader Length': 'Leader Length', | ||
'Scale Ratio': 'Scale Ratio', | ||
'Calibrate': 'Calibrate', | ||
'Calibrate Distance': 'Calibrate Distance', | ||
'Calibrate Perimeter': 'Calibrate Perimeter', | ||
'Calibrate Area': 'Calibrate Area', | ||
'Calibrate Radius': 'Calibrate Radius', | ||
'Calibrate Volume': 'Calibrate Volume' | ||
'Annotation Edit text': 'Edit Annotation' | ||
}; | ||
_this.viewerBase = new PdfViewerBase(_this); | ||
_this.drawing = new Drawing(_this); | ||
return _this; | ||
@@ -661,3 +408,2 @@ } | ||
} | ||
this.drawing.renderLabels(this); | ||
}; | ||
@@ -898,152 +644,6 @@ PdfViewer.prototype.getModuleName = function () { | ||
// tslint:disable-next-line:max-line-length | ||
PdfViewer.prototype.fireAnnotationPropertiesChange = function (pageNumber, index, type, isColorChanged, isOpacityChanged, isTextChanged, isCommentsChanged) { | ||
var eventArgs = { name: 'annotationPropertiesChange', pageIndex: pageNumber, annotationId: index, annotationType: type, isColorChanged: isColorChanged, isOpacityChanged: isOpacityChanged, isTextChanged: isTextChanged, isCommentsChanged: isCommentsChanged }; | ||
PdfViewer.prototype.fireAnnotationPropertiesChange = function (pageNumber, index, type, isColorChanged, isOpacityChanged) { | ||
var eventArgs = { name: 'annotationPropertiesChange', pageIndex: pageNumber, annotationId: index, annotationType: type, isColorChanged: isColorChanged, isOpacityChanged: isOpacityChanged }; | ||
this.trigger('annotationPropertiesChange', eventArgs); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.renderDrawing = function (canvas, index) { | ||
if (!index && this.viewerBase.activeElements.activePageID) { | ||
index = this.viewerBase.activeElements.activePageID; | ||
} | ||
this.annotation.renderAnnotations(index, null, null, null, canvas); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.renderAdornerLayer = function (bounds, commonStyle, cavas, index) { | ||
renderAdornerLayer(bounds, commonStyle, cavas, index, this); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.renderSelector = function (index) { | ||
this.drawing.renderSelector(index); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.select = function (objArray, multipleSelection, preventUpdate) { | ||
this.drawing.select(objArray, multipleSelection, preventUpdate); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.getPageTable = function (pageId) { | ||
return this.drawing.getPageTable(pageId); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.dragSelectedObjects = function (diffX, diffY, pageIndex, helper) { | ||
return this.drawing.dragSelectedObjects(diffX, diffY, pageIndex, helper); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.scaleSelectedItems = function (sx, sy, pivot) { | ||
return this.drawing.scaleSelectedItems(sx, sy, pivot); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
// tslint:disable-next-line:max-line-length | ||
PdfViewer.prototype.dragConnectorEnds = function (endPoint, obj, point, segment, target, targetPortId) { | ||
return this.drawing.dragConnectorEnds(endPoint, obj, point, segment, target); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.clearSelection = function (pageId) { | ||
var selectormodel = this.selectedItems; | ||
if (selectormodel.annotations.length > 0) { | ||
selectormodel.offsetX = 0; | ||
selectormodel.offsetY = 0; | ||
selectormodel.width = 0; | ||
selectormodel.height = 0; | ||
selectormodel.rotateAngle = 0; | ||
selectormodel.annotations = []; | ||
selectormodel.wrapper = null; | ||
} | ||
this.drawing.clearSelectorLayer(pageId); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.add = function (obj) { | ||
return this.drawing.add(obj); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.remove = function (obj) { | ||
return this.drawing.remove(obj); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.copy = function () { | ||
this.annotation.isShapeCopied = true; | ||
return this.drawing.copy(); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.rotate = function (angle) { | ||
return this.drawing.rotate(this.selectedItems, angle); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.paste = function (obj) { | ||
var index; | ||
if (this.viewerBase.activeElements.activePageID) { | ||
index = this.viewerBase.activeElements.activePageID; | ||
} | ||
return this.drawing.paste(obj, index || 0); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.refresh = function () { | ||
for (var i = 0; i < this.annotations.length; i++) { | ||
if (this.zIndexTable.length !== undefined) { | ||
var notFound = true; | ||
for (var i_1 = 0; i_1 < this.zIndexTable.length; i_1++) { | ||
var objects = this.zIndexTable[i_1].objects; | ||
for (var j = 0; j < objects.length; j++) { | ||
objects.splice(j, 1); | ||
} | ||
delete this.zIndexTable[i_1]; | ||
} | ||
this.annotations = []; | ||
this.selectedItems.annotations = []; | ||
this.zIndexTable = []; | ||
this.renderDrawing(); | ||
} | ||
} | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.cut = function () { | ||
var index; | ||
if (this.viewerBase.activeElements.activePageID) { | ||
index = this.viewerBase.activeElements.activePageID; | ||
} | ||
return this.drawing.cut(index || 0); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.nodePropertyChange = function (actualObject, node) { | ||
this.drawing.nodePropertyChange(actualObject, node); | ||
}; | ||
/** | ||
* @private | ||
*/ | ||
PdfViewer.prototype.checkBoundaryConstraints = function (tx, ty, pageIndex, nodeBounds) { | ||
return this.drawing.checkBoundaryConstraints(tx, ty, pageIndex, nodeBounds); | ||
}; | ||
__decorate([ | ||
@@ -1104,11 +704,2 @@ Property() | ||
__decorate([ | ||
Property(true) | ||
], PdfViewer.prototype, "enableShapeAnnotation", void 0); | ||
__decorate([ | ||
Property(true) | ||
], PdfViewer.prototype, "enableMeasureAnnotation", void 0); | ||
__decorate([ | ||
Property(true) | ||
], PdfViewer.prototype, "enableStampAnnotations", void 0); | ||
__decorate([ | ||
Property('TextSelection') | ||
@@ -1138,23 +729,2 @@ ], PdfViewer.prototype, "interactionMode", void 0); | ||
__decorate([ | ||
Property({ opacity: 1, fillColor: '#ffffff00', strokeColor: '#ff0000', author: 'Guest', subject: 'Line', modifiedDate: '', thickness: 1, borderDashArray: 0, lineHeadStartStyle: 'None', lineHeadEndStyle: 'None' }) | ||
], PdfViewer.prototype, "lineSettings", void 0); | ||
__decorate([ | ||
Property({ opacity: 1, fillColor: '#ffffff00', strokeColor: '#ff0000', author: 'Guest', subject: 'Arrow', modifiedDate: '', thickness: 1, borderDashArray: 0, lineHeadStartStyle: 'Closed', lineHeadEndStyle: 'Closed' }) | ||
], PdfViewer.prototype, "arrowSettings", void 0); | ||
__decorate([ | ||
Property({ opacity: 1, fillColor: '#ffffff00', strokeColor: '#ff0000', author: 'Guest', subject: 'Rectangle', modifiedDate: '', thickness: 1 }) | ||
], PdfViewer.prototype, "rectangleSettings", void 0); | ||
__decorate([ | ||
Property({ opacity: 1, fillColor: '#ffffff00', strokeColor: '#ff0000', author: 'Guest', subject: 'Circle', modifiedDate: '', thickness: 1 }) | ||
], PdfViewer.prototype, "circleSettings", void 0); | ||
__decorate([ | ||
Property({ opacity: 1, fillColor: '#ffffff00', strokeColor: '#ff0000', author: 'Guest', subject: 'Polygon', modifiedDate: '', thickness: 1 }) | ||
], PdfViewer.prototype, "polygonSettings", void 0); | ||
__decorate([ | ||
Property({ opacity: 1, author: '' }) | ||
], PdfViewer.prototype, "stampSettings", void 0); | ||
__decorate([ | ||
Complex({}, Selector) | ||
], PdfViewer.prototype, "selectedItems", void 0); | ||
__decorate([ | ||
Event() | ||
@@ -1192,11 +762,2 @@ ], PdfViewer.prototype, "documentLoad", void 0); | ||
], PdfViewer.prototype, "annotationPropertiesChange", void 0); | ||
__decorate([ | ||
Collection([], PdfAnnotationBase) | ||
], PdfViewer.prototype, "annotations", void 0); | ||
__decorate([ | ||
Property('') | ||
], PdfViewer.prototype, "tool", void 0); | ||
__decorate([ | ||
Property() | ||
], PdfViewer.prototype, "drawingObject", void 0); | ||
PdfViewer = __decorate([ | ||
@@ -1203,0 +764,0 @@ NotifyPropertyChanges |
@@ -68,6 +68,4 @@ import { createElement, Browser } from '@syncfusion/ej2-base'; | ||
if (printImage.textMarkupAnnotation && proxy.pdfViewerBase.isTextMarkupAnnotationModule()) { | ||
// tslint:disable-next-line | ||
var stampData = printImage['StampAnnotations']; | ||
// tslint:disable-next-line:max-line-length | ||
annotationSource = proxy.pdfViewer.annotationModule.textMarkupAnnotationModule.printTextMarkupAnnotations(printImage.textMarkupAnnotation, pageIndex, stampData, printImage.shapeAnnotation); | ||
annotationSource = proxy.pdfViewer.annotationModule.textMarkupAnnotationModule.printTextMarkupAnnotations(printImage.textMarkupAnnotation, pageIndex); | ||
} | ||
@@ -106,3 +104,2 @@ // tslint:disable-next-line:max-line-length | ||
} | ||
proxy.pdfViewer.renderDrawing(null, pageIndex); | ||
}; | ||
@@ -109,0 +106,0 @@ pageImage.src = printImage.image; |
@@ -21,22 +21,10 @@ import { PdfViewer, PdfViewerBase, Toolbar } from '../index'; | ||
colorDropDownElement: HTMLElement; | ||
private strokeDropDownElement; | ||
private thicknessElement; | ||
private shapeElement; | ||
private calibrateElement; | ||
private stampElement; | ||
private opacityDropDownElement; | ||
private colorDropDown; | ||
private opacityDropDown; | ||
private strokeDropDown; | ||
private thicknessDropDown; | ||
private shapeDropDown; | ||
private calibrateDropDown; | ||
private closeItem; | ||
private opacityIndicator; | ||
private thicknessIndicator; | ||
private toolbar; | ||
private colorPalette; | ||
private strokeColorPicker; | ||
private opacitySlider; | ||
private thicknessSlider; | ||
private toolbarBorderHeight; | ||
@@ -61,4 +49,2 @@ /** | ||
private isCurrentAnnotationOpacitySet; | ||
private stampMenu; | ||
private stampParentID; | ||
constructor(viewer: PdfViewer, viewerBase: PdfViewerBase, toolbar: Toolbar); | ||
@@ -75,8 +61,5 @@ /** | ||
private getTemplate; | ||
private createStampContainer; | ||
private addStampImage; | ||
private createDropDowns; | ||
private opacityDropDownOpen; | ||
private onColorPickerCancelClick; | ||
private onStrokePickerCancelClick; | ||
private colorDropDownBeforeOpen; | ||
@@ -88,23 +71,7 @@ /** | ||
private colorDropDownOpen; | ||
private strokeDropDownBeforeOpen; | ||
private setCurrentStrokeColorInPicker; | ||
private strokeDropDownOpen; | ||
private opacityChange; | ||
private opacityDropDownBeforeOpen; | ||
private thicknessDropDownBeforeOpen; | ||
private thicknessDropDownOpen; | ||
private thicknessChange; | ||
private createDropDownButton; | ||
private createShapeOptions; | ||
private createShapeToolbarItems; | ||
private createCalibrateToolbarItems; | ||
private onShapeToolbarClicked; | ||
private onCalibrateToolbarClicked; | ||
private onShapeDrawSelection; | ||
private getShapeType; | ||
private afterShapeToolbarCreation; | ||
private afterCalibrateToolbarCreation; | ||
private createColorPicker; | ||
private onColorPickerChange; | ||
private onStrokePickerChange; | ||
/** | ||
@@ -115,5 +82,3 @@ * @private | ||
private updateOpacityIndicator; | ||
private updateThicknessIndicator; | ||
private createSlider; | ||
private createThicknessSlider; | ||
private afterToolbarCreation; | ||
@@ -150,6 +115,2 @@ private onToolbarClicked; | ||
*/ | ||
enableTextMarkupAnnotationPropertiesTools(isEnable: boolean): void; | ||
/** | ||
* @private | ||
*/ | ||
enableAnnotationPropertiesTools(isEnable: boolean): void; | ||
@@ -159,6 +120,2 @@ /** | ||
*/ | ||
enableStampAnnotationPropertiesTools(isEnable: boolean): void; | ||
/** | ||
* @private | ||
*/ | ||
enableAnnotationAddTools(isEnable: boolean): void; | ||
@@ -170,12 +127,5 @@ /** | ||
private updateToolbarItems; | ||
private enableTextMarkupAddTools; | ||
/** | ||
* @private | ||
*/ | ||
updateAnnnotationPropertyItems(): void; | ||
private getColorHexValue; | ||
private setColorInPicker; | ||
/** | ||
* @private | ||
*/ | ||
resetToolbar(): void; | ||
@@ -182,0 +132,0 @@ /** |
@@ -37,3 +37,2 @@ import { PdfViewer, PdfViewerBase, AnnotationToolbar } from '../index'; | ||
private redoItem; | ||
private commentItem; | ||
/** | ||
@@ -67,14 +66,5 @@ * @private | ||
private isAnnotationEditBtnVisible; | ||
private isCommentBtnVisible; | ||
/** | ||
* @private | ||
*/ | ||
isCommentIconAdded: boolean; | ||
/** | ||
* @private | ||
*/ | ||
isAddComment: boolean; | ||
/** | ||
* @private | ||
*/ | ||
constructor(viewer: PdfViewer, viewerBase: PdfViewerBase); | ||
@@ -120,3 +110,2 @@ /** | ||
private showUndoRedoTool; | ||
private showCommentOption; | ||
private showAnnotationEditTool; | ||
@@ -203,5 +192,3 @@ private enableOpenOption; | ||
private toolbarClickHandler; | ||
private handleOpenIconClick; | ||
private handleToolbarBtnClick; | ||
private addComments; | ||
private handleToolbarButtonClick; | ||
private loadDocument; | ||
@@ -208,0 +195,0 @@ private navigateToPage; |
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 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
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
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
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
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
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
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
Wildcard dependency
QualityPackage has a dependency with a floating version range. This can cause issues if the dependency publishes a new major version.
Found 9 instances in 1 package
Minified code
QualityThis package contains minified code. This may be harmless in some cases where minified code is included in packaged libraries, however packages on npm should not minify code.
Found 1 instance in 1 package
No bug tracker
MaintenancePackage does not have a linked bug tracker in package.json.
Found 1 instance in 1 package
No website
QualityPackage does not have a website.
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
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
9
0
7686626
145
68243
2
9
+ Added@syncfusion/ej2-base@27.1.48(transitive)
+ Added@syncfusion/ej2-buttons@27.1.48(transitive)
+ Added@syncfusion/ej2-data@27.1.48(transitive)
+ Added@syncfusion/ej2-dropdowns@27.1.48(transitive)
+ Added@syncfusion/ej2-icons@27.1.48(transitive)
+ Added@syncfusion/ej2-inputs@27.1.48(transitive)
+ Added@syncfusion/ej2-lists@27.1.48(transitive)
+ Added@syncfusion/ej2-navigations@27.1.48(transitive)
+ Added@syncfusion/ej2-notifications@27.1.48(transitive)
+ Added@syncfusion/ej2-popups@27.1.48(transitive)
+ Added@syncfusion/ej2-splitbuttons@27.1.48(transitive)
+ Addedansi-escapes@1.4.0(transitive)
+ Addedansi-regex@2.1.1(transitive)
+ Addedansi-styles@2.2.13.2.1(transitive)
+ Addedargparse@1.0.10(transitive)
+ Addedarray-union@1.0.2(transitive)
+ Addedarray-uniq@1.0.3(transitive)
+ Addedasync@2.6.4(transitive)
+ Addedavailable-typed-arrays@1.0.7(transitive)
+ Addedbalanced-match@1.0.2(transitive)
+ Addedbrace-expansion@1.1.11(transitive)
+ Addedbuffer-from@1.1.2(transitive)
+ Addedcall-bind@1.0.7(transitive)
+ Addedchalk@1.1.32.4.2(transitive)
+ Addedcli-cursor@1.0.2(transitive)
+ Addedcli-width@2.2.1(transitive)
+ Addedcode-point-at@1.1.0(transitive)
+ Addedcolor-convert@1.9.3(transitive)
+ Addedcolor-name@1.1.3(transitive)
+ Addedcommander@2.20.3(transitive)
+ Addedconcat-map@0.0.1(transitive)
+ Addedconcat-stream@1.6.2(transitive)
+ Addedcore-util-is@1.0.3(transitive)
+ Addedcreate-thenable@1.0.3(transitive)
+ Addeddefine-data-property@1.1.4(transitive)
+ Addedes-define-property@1.0.0(transitive)
+ Addedes-errors@1.3.0(transitive)
+ Addedescape-string-regexp@1.0.5(transitive)
+ Addedesprima@4.0.1(transitive)
+ Addedexit-hook@1.1.1(transitive)
+ Addedextend@3.0.2(transitive)
+ Addedexternal-editor@1.1.1(transitive)
+ Addedfigures@1.7.0(transitive)
+ Addedfor-each@0.3.3(transitive)
+ Addedfor-in@1.0.2(transitive)
+ Addedfor-own@0.1.5(transitive)
+ Addedformatio@1.1.1(transitive)
+ Addedfs.realpath@1.0.0(transitive)
+ Addedfunction-bind@1.1.2(transitive)
+ Addedget-intrinsic@1.2.4(transitive)
+ Addedglob@7.2.3(transitive)
+ Addedglobby@6.1.0(transitive)
+ Addedgopd@1.0.1(transitive)
+ Addedhas-ansi@2.0.0(transitive)
+ Addedhas-flag@3.0.0(transitive)
+ Addedhas-property-descriptors@1.0.2(transitive)
+ Addedhas-proto@1.0.3(transitive)
+ Addedhas-symbols@1.0.3(transitive)
+ Addedhas-tostringtag@1.0.2(transitive)
+ Addedhasown@2.0.2(transitive)
+ Addedhunspell-spellchecker@1.0.2(transitive)
+ Addedinflight@1.0.6(transitive)
+ Addedinherits@2.0.4(transitive)
+ Addedinquirer@1.2.3(transitive)
+ Addedis-arguments@1.1.1(transitive)
+ Addedis-callable@1.2.7(transitive)
+ Addedis-extendable@0.1.1(transitive)
+ Addedis-fullwidth-code-point@1.0.0(transitive)
+ Addedis-generator-function@1.0.10(transitive)
+ Addedis-typed-array@1.1.13(transitive)
+ Addedisarray@1.0.0(transitive)
+ Addedjs-yaml@3.14.1(transitive)
+ Addedlodash@4.17.21(transitive)
+ Addedlolex@1.3.2(transitive)
+ Addedmarkdown-spellcheck@1.3.1(transitive)
+ Addedmarked@0.3.19(transitive)
+ Addedminimatch@3.1.2(transitive)
+ Addedmute-stream@0.0.6(transitive)
+ Addednative-promise-only@0.8.1(transitive)
+ Addednumber-is-nan@1.0.1(transitive)
+ Addedobject-assign@4.1.1(transitive)
+ Addedobject.omit@2.0.1(transitive)
+ Addedonce@1.4.0(transitive)
+ Addedonetime@1.1.0(transitive)
+ Addedos-shim@0.1.3(transitive)
+ Addedos-tmpdir@1.0.2(transitive)
+ Addedpath-is-absolute@1.0.1(transitive)
+ Addedpify@2.3.0(transitive)
+ Addedpinkie@2.0.4(transitive)
+ Addedpinkie-promise@2.0.1(transitive)
+ Addedpossible-typed-array-names@1.0.0(transitive)
+ Addedprocess-nextick-args@2.0.1(transitive)
+ Addedreadable-stream@2.3.8(transitive)
+ Addedrestore-cursor@1.0.1(transitive)
+ Addedrun-async@2.4.1(transitive)
+ Addedrx@4.1.0(transitive)
+ Addedsafe-buffer@5.1.2(transitive)
+ Addedsamsam@1.1.2(transitive)
+ Addedset-function-length@1.2.2(transitive)
+ Addedsinon@1.17.7(transitive)
+ Addedsinon-as-promised@4.0.3(transitive)
+ Addedspawn-sync@1.0.15(transitive)
+ Addedsprintf-js@1.0.3(transitive)
+ Addedstring-width@1.0.2(transitive)
+ Addedstring_decoder@1.1.1(transitive)
+ Addedstrip-ansi@3.0.1(transitive)
+ Addedsupports-color@2.0.05.5.0(transitive)
+ Addedthrough@2.3.8(transitive)
+ Addedtmp@0.0.29(transitive)
+ Addedtypedarray@0.0.6(transitive)
+ Addedunique-concat@0.2.2(transitive)
+ Addedutil@0.12.5(transitive)
+ Addedutil-deprecate@1.0.2(transitive)
+ Addedwhich-typed-array@1.1.15(transitive)
+ Addedwrappy@1.0.2(transitive)
- Removed@syncfusion/ej2-calendars@~17.1.51
- Removed@syncfusion/ej2-drawings@~undefined
- Removed@syncfusion/ej2-base@17.1.49(transitive)
- Removed@syncfusion/ej2-buttons@17.1.50(transitive)
- Removed@syncfusion/ej2-calendars@17.1.51(transitive)
- Removed@syncfusion/ej2-data@17.1.51(transitive)
- Removed@syncfusion/ej2-dropdowns@17.1.49(transitive)
- Removed@syncfusion/ej2-icons@17.1.47(transitive)
- Removed@syncfusion/ej2-inplace-editor@17.1.51(transitive)
- Removed@syncfusion/ej2-inputs@17.1.50(transitive)
- Removed@syncfusion/ej2-lists@17.1.47(transitive)
- Removed@syncfusion/ej2-navigations@17.1.49(transitive)
- Removed@syncfusion/ej2-notifications@17.1.48(transitive)
- Removed@syncfusion/ej2-popups@17.1.50(transitive)
- Removed@syncfusion/ej2-richtexteditor@17.1.49(transitive)
- Removed@syncfusion/ej2-splitbuttons@17.1.51(transitive)
Updated@syncfusion/ej2-base@*
Updated@syncfusion/ej2-buttons@*
Updated@syncfusion/ej2-data@*
Updated@syncfusion/ej2-dropdowns@*
Updated@syncfusion/ej2-inputs@*
Updated@syncfusion/ej2-lists@*
Updated@syncfusion/ej2-popups@*