@syncfusion/ej2-pdfviewer
Advanced tools
Comparing version 17.4.46 to 17.4.47
@@ -9,2 +9,11 @@ # Changelog | ||
- `258769` - Provided the option to suppress the error dialog in PDF Viewer. | ||
- `261269` - Provided the support to allow credential for XMLHttpRequest in PDF Viewer. | ||
## 17.4.46 (2020-01-30) | ||
### PDF Viewer | ||
#### New Features | ||
- `258172` - Provided the support to open the command panel while loading the PDF document if the isCommandPanelOpen property is set to true. | ||
@@ -11,0 +20,0 @@ - `259159` - Provided the support to open the thumbnail view panel while loading the PDF document if the isThumbnailViewOpen property is set to true. |
/*! | ||
* filename: index.d.ts | ||
* version : 17.4.46 | ||
* version : 17.4.47 | ||
* Copyright Syncfusion Inc. 2001 - 2019. All rights reserved. | ||
@@ -5,0 +5,0 @@ * Use of this code is subject to the terms of our license. |
{ | ||
"_from": "@syncfusion/ej2-pdfviewer@*", | ||
"_id": "@syncfusion/ej2-pdfviewer@17.4.44", | ||
"_id": "@syncfusion/ej2-pdfviewer@17.4.46", | ||
"_inBundle": false, | ||
"_integrity": "sha512-z3bPQ6n2MmdrBUOFp9B1ldzOaZ3T8DVgYNnSXJNdZ1jEv/CTEGf4o4+LZ8UcnT3sp/L9/v+fWHTvMtsoNmPUqg==", | ||
"_integrity": "sha512-uFmFIxXsKLz7MB6r/w6Q0aksJ/kKiLh7MhgOwo4kKkkBN1fJ7+1cYqTjY3Hej3n2jd93C5u8pI8ovaK1Vqxw+w==", | ||
"_location": "/@syncfusion/ej2-pdfviewer", | ||
@@ -26,4 +26,4 @@ "_phantomChildren": {}, | ||
], | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.4.44.tgz", | ||
"_shasum": "4f16a85134cb500866d4b4677e3950cfff55cd23", | ||
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-17.4.46.tgz", | ||
"_shasum": "1688438991807b65bbbcb5864b43e9f63e33aa92", | ||
"_spec": "@syncfusion/ej2-pdfviewer@*", | ||
@@ -39,15 +39,15 @@ "_where": "/jenkins/workspace/ation_hotfix_17.2.0.34_Vol2-DDPJ6C2YEWTWLLKKNA7AG2JBE6DYTCTNGMHGORWGAYAVCL6L7OLQ/packages/included", | ||
"dependencies": { | ||
"@syncfusion/ej2-base": "~17.4.46", | ||
"@syncfusion/ej2-buttons": "~17.4.46", | ||
"@syncfusion/ej2-calendars": "~17.4.46", | ||
"@syncfusion/ej2-data": "~17.4.46", | ||
"@syncfusion/ej2-drawings": "~17.4.46", | ||
"@syncfusion/ej2-dropdowns": "~17.4.46", | ||
"@syncfusion/ej2-inplace-editor": "~17.4.46", | ||
"@syncfusion/ej2-inputs": "~17.4.46", | ||
"@syncfusion/ej2-lists": "~17.4.46", | ||
"@syncfusion/ej2-navigations": "~17.4.46", | ||
"@syncfusion/ej2-notifications": "~17.4.46", | ||
"@syncfusion/ej2-popups": "~17.4.46", | ||
"@syncfusion/ej2-richtexteditor": "~17.4.46" | ||
"@syncfusion/ej2-base": "~17.4.47", | ||
"@syncfusion/ej2-buttons": "~17.4.47", | ||
"@syncfusion/ej2-calendars": "~17.4.47", | ||
"@syncfusion/ej2-data": "~17.4.47", | ||
"@syncfusion/ej2-drawings": "~17.4.47", | ||
"@syncfusion/ej2-dropdowns": "~17.4.47", | ||
"@syncfusion/ej2-inplace-editor": "~17.4.47", | ||
"@syncfusion/ej2-inputs": "~17.4.47", | ||
"@syncfusion/ej2-lists": "~17.4.47", | ||
"@syncfusion/ej2-navigations": "~17.4.47", | ||
"@syncfusion/ej2-notifications": "~17.4.47", | ||
"@syncfusion/ej2-popups": "~17.4.47", | ||
"@syncfusion/ej2-richtexteditor": "~17.4.47" | ||
}, | ||
@@ -78,4 +78,4 @@ "deprecated": false, | ||
"typings": "index.d.ts", | ||
"version": "17.4.46", | ||
"version": "17.4.47", | ||
"sideEffects": false | ||
} |
@@ -402,2 +402,38 @@ import { ChildProperty, Property, Complex } from '@syncfusion/ej2-base';import { PointModel, DecoratorShapes } from '@syncfusion/ej2-drawings';import { Point } from '@syncfusion/ej2-drawings';import { Size } from '@syncfusion/ej2-drawings';import { Container } from '@syncfusion/ej2-drawings';import { PdfAnnotationType } from './enum';import { ICommentsCollection, IReviewCollection, AnnotationSelectorSettingsModel } from '../pdfviewer'; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
* @default 0 | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
* @default 0 | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
* @default 0 | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
* @default 0 | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
* @default 'false' | ||
*/ | ||
isLock?: boolean; | ||
/** | ||
* specifies the default settings of the annotation. | ||
* @default '' | ||
*/ | ||
annotationSettings?: object; | ||
/** | ||
* Represents the text style of annotation | ||
@@ -404,0 +440,0 @@ * @default '' |
@@ -341,2 +341,32 @@ import { ChildProperty } from '@syncfusion/ej2-base'; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
* @default 0 | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
* @default 0 | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
* @default 0 | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
* @default 0 | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
* @default 'false' | ||
*/ | ||
isLock: boolean; | ||
/** | ||
* specifies the default settings of the annotation. | ||
* @default '' | ||
*/ | ||
annotationSettings: object; | ||
/** | ||
* Represents the text style of annotation | ||
@@ -343,0 +373,0 @@ * @default '' |
@@ -247,2 +247,20 @@ var __extends = (this && this.__extends) || (function () { | ||
__decorate([ | ||
Property(0) | ||
], PdfAnnotationBase.prototype, "minHeight", void 0); | ||
__decorate([ | ||
Property(0) | ||
], PdfAnnotationBase.prototype, "minWidth", void 0); | ||
__decorate([ | ||
Property(0) | ||
], PdfAnnotationBase.prototype, "maxHeight", void 0); | ||
__decorate([ | ||
Property(0) | ||
], PdfAnnotationBase.prototype, "maxWidth", void 0); | ||
__decorate([ | ||
Property(false) | ||
], PdfAnnotationBase.prototype, "isLock", void 0); | ||
__decorate([ | ||
Property('') | ||
], PdfAnnotationBase.prototype, "annotationSettings", void 0); | ||
__decorate([ | ||
Complex({ isBold: false, isItalic: false, isStrikeout: false, isUnderline: false }, PdfFont) | ||
@@ -249,0 +267,0 @@ ], PdfAnnotationBase.prototype, "font", void 0); |
@@ -74,3 +74,3 @@ import { PointModel } from '@syncfusion/ej2-drawings'; | ||
mouseLeave(args: MouseEventArgs): void; | ||
protected updateSize(shape: SelectorModel | PdfAnnotationBaseModel, startPoint: PointModel, endPoint: PointModel, corner: string, initialBounds: Rect, angle?: number, isMouseUp?: boolean): Rect; | ||
protected updateSize(shape: any, startPoint: PointModel, endPoint: PointModel, corner: string, initialBounds: Rect, angle?: number, isMouseUp?: boolean): Rect; | ||
protected getPivot(corner: string): PointModel; | ||
@@ -77,0 +77,0 @@ protected getPositions(corner: string, x: number, y: number): PointModel; |
@@ -418,2 +418,6 @@ import { PdfViewer, PdfViewerBase, AnnotationType, TextMarkupAnnotation, ShapeAnnotation, StampAnnotation, StickyNotesAnnotation, IPopupAnnotation, MeasureAnnotation } from '../index'; | ||
updateAnnotationAuthor(annotationType: string, annotationSubType?: string): string; | ||
/** | ||
* @private | ||
*/ | ||
nameToHash(colour: string): string; | ||
private updateFreeTextFontStyle; | ||
@@ -424,2 +428,14 @@ private setFreeTextFontStyle; | ||
*/ | ||
findAnnotationSettings(annotation: any, isSettings?: boolean): any; | ||
/** | ||
* @private | ||
*/ | ||
updateAnnotationSettings(annotation: any): any; | ||
/** | ||
* @private | ||
*/ | ||
updateSettings(annotationSettings: any): any; | ||
/** | ||
* @private | ||
*/ | ||
clear(): void; | ||
@@ -426,0 +442,0 @@ /** |
@@ -35,2 +35,3 @@ import { PdfViewer, PdfViewerBase, AnnotationType as AnnotType, ICommentsCollection, IReviewCollection } from '../..'; | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
annotationSettings?: any; | ||
} | ||
@@ -37,0 +38,0 @@ /** |
@@ -154,2 +154,4 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base'; | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
annotation.AnnotationSettings = annotation.AnnotationSettings ? annotation.AnnotationSettings : this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.freeTextSettings); | ||
var annot = void 0; | ||
@@ -174,3 +176,3 @@ // tslint:disable-next-line | ||
font: { isBold: annotation.Font.Bold, isItalic: annotation.Font.Italic, isStrikeout: annotation.Font.Strikeout, isUnderline: annotation.Font.Underline }, | ||
annotationSelectorSettings: this.getSettings(annotation) | ||
annotationSelectorSettings: this.getSettings(annotation), annotationSettings: annotation.AnnotationSettings | ||
}; | ||
@@ -195,9 +197,9 @@ if (isImportAction) { | ||
FreeTextAnnotation.prototype.getSettings = function (annotation) { | ||
var selector; | ||
if (annotation.AnnotationSelectorSettings === null) { | ||
var selector = this.pdfViewer.annotationSelectorSettings; | ||
if (annotation.AnnotationSelectorSettings) { | ||
selector = annotation.AnnotationSelectorSettings; | ||
} | ||
else if (this.pdfViewer.freeTextSettings.annotationSelectorSettings) { | ||
selector = this.pdfViewer.freeTextSettings.annotationSelectorSettings; | ||
} | ||
else { | ||
selector = annotation.AnnotationSelectorSettings; | ||
} | ||
return selector; | ||
@@ -457,2 +459,6 @@ }; | ||
// tslint:disable-next-line | ||
var annotationSelectorSettings = this.pdfViewer.freeTextSettings.annotationSelectorSettings ? this.pdfViewer.freeTextSettings.annotationSelectorSettings : this.pdfViewer.annotationSelectorSettings; | ||
// tslint:disable-next-line | ||
var annotationSettings = this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.freeTextSettings); | ||
// tslint:disable-next-line | ||
annot = { | ||
@@ -471,3 +477,4 @@ author: this.author, modifiedDate: currentDateString, subject: 'Text Box', id: 'free_text' + this.inputBoxCount, | ||
review: { state: 'Unmarked', stateModel: 'None', modifiedDate: currentDateString, author: this.author }, | ||
annotationSelectorSettings: this.pdfViewer.freeTextSettings.annotationSelectorSettings | ||
// tslint:disable-next-line:max-line-length | ||
annotationSelectorSettings: annotationSelectorSettings, annotationSettings: annotationSettings | ||
}; | ||
@@ -771,2 +778,4 @@ var annotation = this.pdfViewer.add(annot); | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
annotation.AnnotationSettings = annotation.AnnotationSettings ? annotation.AnnotationSettings : this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.freeTextSettings); | ||
var annot = void 0; | ||
@@ -789,3 +798,3 @@ // tslint:disable-next-line | ||
font: { isBold: annotation.Font.Bold, isItalic: annotation.Font.Italic, isStrikeout: annotation.Font.Strikeout, isUnderline: annotation.Font.Underline }, | ||
annotationSelectorSettings: this.getSettings(annotation) | ||
annotationSelectorSettings: this.getSettings(annotation), annotationSettings: annotation.AnnotationSettings | ||
}; | ||
@@ -811,2 +820,4 @@ this.pdfViewer.annotationModule.storeAnnotations(pageNumber, annot, '_annotations_freetext'); | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
annotation.AnnotationSettings = annotation.AnnotationSettings ? annotation.AnnotationSettings : this.pdfViewer.annotationModule.updateSettings(this.pdfViewer.freeTextSettings); | ||
// tslint:disable-next-line | ||
@@ -828,3 +839,3 @@ var annot = void 0; | ||
comments: this.pdfViewer.annotationModule.getAnnotationComments(annotation.Comments, annotation, annotation.Author), review: { state: annotation.State, stateModel: annotation.StateModel, modifiedDate: annotation.ModifiedDate, author: annotation.Author }, | ||
font: { isBold: annotation.Font.Bold, isItalic: annotation.Font.Italic, isStrikeout: annotation.Font.Strikeout, isUnderline: annotation.Font.Underline }, pageNumber: pageNumber | ||
font: { isBold: annotation.Font.Bold, isItalic: annotation.Font.Italic, isStrikeout: annotation.Font.Strikeout, isUnderline: annotation.Font.Underline }, pageNumber: pageNumber, annotationSettings: annotation.AnnotationSettings | ||
}; | ||
@@ -831,0 +842,0 @@ return annot; |
@@ -93,3 +93,3 @@ /** | ||
this.pdfViewer.nodePropertyChange(selectedAnnotation, {}); | ||
this.pdfViewer.renderSelector(selectedAnnotation.pageIndex); | ||
this.pdfViewer.renderSelector(selectedAnnotation.pageIndex, this.pdfViewer.annotationSelectorSettings); | ||
// tslint:disable-next-line | ||
@@ -96,0 +96,0 @@ var commentsDiv = document.getElementById(this.pdfViewer.selectedItems.annotations[0].annotName); |
@@ -51,2 +51,3 @@ import { PdfViewer, PdfViewerBase, IRectangle, AnnotationType as AnnotType, ShapeLabelSettingsModel } from '../../index'; | ||
labelSettings?: ShapeLabelSettingsModel; | ||
annotationSettings?: any; | ||
} | ||
@@ -53,0 +54,0 @@ /** |
@@ -42,2 +42,3 @@ import { PdfViewer, PdfViewerBase, IRectangle, ICommentsCollection, IReviewCollection, AnnotationType as AnnotType, LineHeadStyle, ShapeLabelSettingsModel } from '../../index'; | ||
labelSettings?: ShapeLabelSettingsModel; | ||
annotationSettings?: any; | ||
} | ||
@@ -44,0 +45,0 @@ /** |
@@ -77,2 +77,6 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base'; | ||
// tslint:disable-next-line:max-line-length | ||
annotation.AnnotationSelectorSettings = annotation.AnnotationSelectorSettings ? annotation.AnnotationSelectorSettings : this.pdfViewer.annotationSelectorSettings; | ||
// tslint:disable-next-line:max-line-length | ||
annotation.AnnotationSettings = annotation.AnnotationSettings ? annotation.AnnotationSettings : this.pdfViewer.annotationModule.updateAnnotationSettings(annotation); | ||
// tslint:disable-next-line:max-line-length | ||
annotationObject = { | ||
@@ -90,3 +94,3 @@ id: 'shape' + this.shapeCount, shapeAnnotationType: annotation.ShapeAnnotationType, author: annotation.Author, modifiedDate: annotation.ModifiedDate, subject: annotation.Subject, | ||
// tslint:disable-next-line:max-line-length | ||
labelBounds: annotation.LabelBounds, annotationSelectorSettings: this.getSettings(annotation), labelSettings: annotation.LabelSettings | ||
labelBounds: annotation.LabelBounds, annotationSelectorSettings: this.getSettings(annotation), labelSettings: annotation.LabelSettings, annotationSettings: annotation.AnnotationSettings | ||
}; | ||
@@ -99,2 +103,4 @@ var annot = void 0; | ||
} | ||
// tslint:disable-next-line:max-line-length | ||
annotation.AnnotationSelectorSettings = annotation.AnnotationSelectorSettings ? annotation.AnnotationSelectorSettings : this.pdfViewer.annotationSelectorSettings; | ||
annot = { | ||
@@ -116,5 +122,2 @@ // tslint:disable-next-line:max-line-length | ||
var addedAnnot = this.pdfViewer.add(annot); | ||
if (addedAnnot.shapeAnnotationType === 'Polygon') { | ||
this.pdfViewer.nodePropertyChange(addedAnnot, { fillColor: annot.fillColor }); | ||
} | ||
this.pdfViewer.annotationModule.storeAnnotations(pageNumber, annotationObject, '_annotations_shape'); | ||
@@ -137,8 +140,8 @@ } | ||
ShapeAnnotation.prototype.getSettings = function (annotation) { | ||
var selector; | ||
if (annotation.AnnotationSelectorSettings === null) { | ||
selector = this.getSelector(annotation.ShapeAnnotationType, annotation.Subject); | ||
var selector = this.pdfViewer.annotationSelectorSettings; | ||
if (annotation.AnnotationSelectorSettings) { | ||
selector = annotation.AnnotationSelectorSettings; | ||
} | ||
else { | ||
selector = annotation.AnnotationSelectorSettings; | ||
selector = this.getSelector(annotation.ShapeAnnotationType, annotation.Subject); | ||
} | ||
@@ -529,2 +532,3 @@ return selector; | ||
} | ||
this.pdfViewer.annotation.stickyNotesAnnotationModule.addTextToComments(annotationName, annotationModel.notes); | ||
// tslint:disable-next-line:radix | ||
@@ -549,20 +553,20 @@ var borderDashArray = parseInt(annotationModel.borderDashArray); | ||
// tslint:disable-next-line:max-line-length | ||
labelBounds: labelBound, annotationSelectorSettings: this.getSelector(annotationModel.shapeAnnotationType, annotationModel.subject), labelSettings: this.pdfViewer.shapeLabelSettings | ||
labelBounds: labelBound, annotationSelectorSettings: this.getSelector(annotationModel.shapeAnnotationType, annotationModel.subject), labelSettings: this.pdfViewer.shapeLabelSettings, annotationSettings: this.pdfViewer.annotationModule.findAnnotationSettings(annotationModel, true) | ||
}; | ||
}; | ||
ShapeAnnotation.prototype.getSelector = function (type, subject) { | ||
var selector; | ||
if (type === 'Line' && subject !== 'Arrow') { | ||
var selector = this.pdfViewer.annotationSelectorSettings; | ||
if (type === 'Line' && subject !== 'Arrow' && this.pdfViewer.lineSettings.annotationSelectorSettings) { | ||
selector = this.pdfViewer.lineSettings.annotationSelectorSettings; | ||
} | ||
else if (type === 'LineWidthArrowHead' || subject === 'Arrow') { | ||
else if ((type === 'LineWidthArrowHead' || subject === 'Arrow') && this.pdfViewer.lineSettings.annotationSelectorSettings) { | ||
selector = this.pdfViewer.arrowSettings.annotationSelectorSettings; | ||
} | ||
else if (type === 'Rectangle' || type === 'Square') { | ||
else if ((type === 'Rectangle' || type === 'Square') && this.pdfViewer.rectangleSettings.annotationSelectorSettings) { | ||
selector = this.pdfViewer.rectangleSettings.annotationSelectorSettings; | ||
} | ||
else if (type === 'Ellipse' || type === 'Circle') { | ||
else if ((type === 'Ellipse' || type === 'Circle') && this.pdfViewer.circleSettings.annotationSelectorSettings) { | ||
selector = this.pdfViewer.circleSettings.annotationSelectorSettings; | ||
} | ||
else if (type === 'Polygon') { | ||
else if (type === 'Polygon' && this.pdfViewer.polygonSettings.annotationSelectorSettings) { | ||
selector = this.pdfViewer.polygonSettings.annotationSelectorSettings; | ||
@@ -598,2 +602,5 @@ } | ||
ShapeAnnotation.prototype.getRgbCode = function (colorString) { | ||
if (!colorString.match(/#([a-z0-9]+)/gi) && !colorString.match(/^rgba?\((\d+),\s*(\d+),\s*(\d+)(?:,\s*(\d+(?:\.\d+)?))?\)$/)) { | ||
colorString = this.pdfViewer.annotationModule.nameToHash(colorString); | ||
} | ||
var stringArray = colorString.split(','); | ||
@@ -641,2 +648,4 @@ if (isNullOrUndefined(stringArray[1])) { | ||
// tslint:disable-next-line:max-line-length | ||
annotation.AnnotationSettings = annotation.AnnotationSettings ? annotation.AnnotationSettings : this.pdfViewer.annotationModule.updateAnnotationSettings(annotation); | ||
// tslint:disable-next-line:max-line-length | ||
annotationObject = { | ||
@@ -653,3 +662,3 @@ id: 'shape', shapeAnnotationType: annotation.ShapeAnnotationType, author: annotation.Author, modifiedDate: annotation.ModifiedDate, subject: annotation.Subject, | ||
// tslint:disable-next-line:max-line-length | ||
labelBounds: annotation.LabelBounds, annotationSelectorSettings: this.getSettings(annotation), labelSettings: annotation.LabelSettings | ||
labelBounds: annotation.LabelBounds, annotationSelectorSettings: this.getSettings(annotation), labelSettings: annotation.LabelSettings, annotationSettings: annotation.AnnotationSettings | ||
}; | ||
@@ -684,2 +693,4 @@ this.pdfViewer.annotationModule.storeAnnotations(pageNumber, annotationObject, '_annotations_shape'); | ||
// tslint:disable-next-line:max-line-length | ||
annotation.AnnotationSettings = annotation.AnnotationSettings ? annotation.AnnotationSettings : this.pdfViewer.annotationModule.updateAnnotationSettings(annotation); | ||
// tslint:disable-next-line:max-line-length | ||
annotationObject = { | ||
@@ -695,3 +706,4 @@ id: 'shape', shapeAnnotationType: annotation.ShapeAnnotationType, author: annotation.Author, modifiedDate: annotation.ModifiedDate, subject: annotation.Subject, | ||
labelBorderColor: annotation.LabelBorderColor, fontColor: annotation.FontColor, fontSize: annotation.FontSize, | ||
labelBounds: annotation.LabelBounds, pageNumber: pageNumber, labelSettings: annotation.LabelSettings | ||
// tslint:disable-next-line:max-line-length | ||
labelBounds: annotation.LabelBounds, pageNumber: pageNumber, labelSettings: annotation.LabelSettings, annotationSettings: annotation.AnnotationSettings | ||
}; | ||
@@ -698,0 +710,0 @@ return annotationObject; |
@@ -32,2 +32,3 @@ import { PdfAnnotationBase } from '../../diagram/pdf-annotation'; | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
annotationSettings?: any; | ||
} | ||
@@ -34,0 +35,0 @@ interface IRectangles { |
@@ -117,2 +117,3 @@ import { PdfViewer, PdfViewerBase, IRectangle, ICommentsCollection, IReviewCollection } from '../index'; | ||
isSelectedAnnotation: boolean; | ||
private dropletHeight; | ||
/** | ||
@@ -138,2 +139,3 @@ * @private | ||
showHideDropletDiv(hide: boolean): void; | ||
private updateDropletStyles; | ||
private updateAnnotationBounds; | ||
@@ -254,2 +256,6 @@ private retreieveSelection; | ||
selectAnnotation(annotation: ITextMarkupAnnotation, canvas: HTMLElement, pageNumber?: number, event?: MouseEvent | TouchEvent): void; | ||
/** | ||
* @private | ||
*/ | ||
updateCurrentResizerPosition(annotation?: any): void; | ||
private drawAnnotationSelectRect; | ||
@@ -256,0 +262,0 @@ private getAnnotationsUnderClickPoint; |
@@ -35,2 +35,3 @@ import { PdfViewer } from '../index'; | ||
private pdfViewer; | ||
private retryCount; | ||
/** | ||
@@ -49,2 +50,3 @@ * Constructor for Ajax class | ||
send(jsonObj: object): void; | ||
private resendRequest; | ||
private sendRequest; | ||
@@ -51,0 +53,0 @@ private addExtraData; |
@@ -30,2 +30,3 @@ /** | ||
this.pdfViewer = pdfviewer; | ||
this.retryCount = pdfviewer.retryCount; | ||
} | ||
@@ -46,7 +47,56 @@ /** | ||
} | ||
this.httpRequest.onreadystatechange = function () { _this.stateChange(_this); }; | ||
this.httpRequest.onreadystatechange = function () { | ||
var isSkip = false; | ||
// tslint:disable-next-line | ||
var viewerBase = _this.pdfViewer.viewerBase; | ||
if (viewerBase && viewerBase.isPasswordAvailable && viewerBase.passwordData === '') { | ||
isSkip = true; | ||
_this.retryCount = 0; | ||
} | ||
if (_this.retryCount > 0) { | ||
isSkip = _this.resendRequest(_this, jsonObj); | ||
} | ||
if (!isSkip) { | ||
_this.stateChange(_this); | ||
} | ||
}; | ||
this.httpRequest.onerror = function () { _this.error(_this); }; | ||
}; | ||
// tslint:disable-next-line | ||
AjaxHandler.prototype.resendRequest = function (proxy, jsonObj) { | ||
var isSkip = false; | ||
var status = proxy.httpRequest.status; | ||
var statusString = status.toString().split('')[0]; | ||
if (proxy.httpRequest.readyState === 4 && status === 200) { | ||
// tslint:disable-next-line | ||
var data = void 0; | ||
if (this.responseType !== null) { | ||
data = proxy.httpRequest.response; | ||
} | ||
else { | ||
data = proxy.httpRequest.responseText; | ||
} | ||
if (data) { | ||
if (typeof data !== 'object') { | ||
try { | ||
data = JSON.parse(data); | ||
} | ||
catch (error) { | ||
if (data !== 'Document cache is cleared') { | ||
isSkip = true; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
if (statusString === '5' || isSkip) { | ||
isSkip = true; | ||
this.retryCount--; | ||
proxy.send(jsonObj); | ||
} | ||
return isSkip; | ||
}; | ||
AjaxHandler.prototype.sendRequest = function (jsonObj) { | ||
this.httpRequest.open(this.type, this.url, this.mode); | ||
this.httpRequest.withCredentials = this.pdfViewer.ajaxRequestSettings.withCredentials; | ||
this.httpRequest.setRequestHeader('Content-Type', this.contentType); | ||
@@ -53,0 +103,0 @@ jsonObj = this.addExtraData(jsonObj); |
@@ -129,3 +129,6 @@ import { PdfViewer, TextLayer, ContextMenu, Signature } from '../index'; | ||
private goToPagePopup; | ||
private isPasswordAvailable; | ||
/** | ||
* @private | ||
*/ | ||
isPasswordAvailable: boolean; | ||
private document; | ||
@@ -135,2 +138,6 @@ /** | ||
*/ | ||
passwordData: string; | ||
/** | ||
* @private | ||
*/ | ||
reRenderedCount: number; | ||
@@ -574,2 +581,3 @@ private passwordInput; | ||
private tileRenderPage; | ||
private calculateImageWidth; | ||
private renderPage; | ||
@@ -576,0 +584,0 @@ private onPageRender; |
@@ -380,2 +380,7 @@ import { Browser } from '@syncfusion/ej2-base'; | ||
} | ||
// tslint:disable-next-line | ||
var annotModule = this.pdfViewer.annotationModule; | ||
if (annotModule && annotModule.textMarkupAnnotationModule) { | ||
this.pdfViewer.annotationModule.textMarkupAnnotationModule.updateCurrentResizerPosition(); | ||
} | ||
if (this.pdfViewerBase.pageSize.length > 0) { | ||
@@ -382,0 +387,0 @@ // tslint:disable-next-line:max-line-length |
@@ -32,2 +32,7 @@ import { Component, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, L10n, Collection, Complex } from '@syncfusion/ej2-base';import { ModuleDeclaration, isNullOrUndefined, Property, Event, EmitType } from '@syncfusion/ej2-base';import { PdfViewerBase } from './index';import { Navigation } from './index';import { Magnification } from './index';import { Toolbar } from './index';import { ToolbarItem } from './index';import { LinkTarget, InteractionMode, AnnotationType, AnnotationToolbarItem, LineHeadStyle, ContextMenuAction, FontStyle, TextAlignment, AnnotationResizerShape, AnnotationResizerLocation, ZoomMode } from './base/types';import { Annotation } from './index';import { LinkAnnotation } from './index';import { ThumbnailView } from './index';import { BookmarkView } from './index';import { TextSelection } from './index';import { TextSearch } from './index';import { FormFields } from './index';import { Print, CalibrationUnit } from './index';import { UnloadEventArgs, LoadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs, HyperlinkMouseOverArgs, ImportStartEventArgs, ImportSuccessEventArgs, ImportFailureEventArgs, ExportStartEventArgs, ExportSuccessEventArgs, ExportFailureEventArgs, AjaxRequestInitiateEventArgs } from './index';import { AnnotationAddEventArgs, AnnotationRemoveEventArgs, AnnotationPropertiesChangeEventArgs, AnnotationResizeEventArgs, AnnotationSelectEventArgs, AnnotationMoveEventArgs, AnnotationDoubleClickEventArgs } from './index';import { TextSelectionStartEventArgs, TextSelectionEndEventArgs, DownloadStartEventArgs, DownloadEndEventArgs } from './index';import { PdfAnnotationBase, ZOrderPageTable } from '../diagram/pdf-annotation';import { PdfAnnotationBaseModel } from '../diagram/pdf-annotation-model';import { Drawing, ClipBoardObject } from '../diagram/drawing';import { Selector } from '../diagram/selector';import { SelectorModel } from '../diagram/selector-model';import { PointModel, IElement, Rect } from '@syncfusion/ej2-drawings';import { renderAdornerLayer } from '../diagram/dom-util';import { ThumbnailClickEventArgs } from './index';import { ValidateFormFieldsArgs } from './base'; | ||
/** | ||
* set the ajax credentials for the pdfviewer. | ||
*/ | ||
withCredentials?: boolean; | ||
} | ||
@@ -307,2 +312,27 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
} | ||
@@ -370,2 +400,27 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
} | ||
@@ -418,2 +473,27 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
} | ||
@@ -466,2 +546,27 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
} | ||
@@ -551,2 +656,27 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
} | ||
@@ -579,2 +709,27 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
} | ||
@@ -627,2 +782,27 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
} | ||
@@ -690,2 +870,27 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
} | ||
@@ -748,2 +953,32 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
/** | ||
* specifies the annotation selector settings of the annotation. | ||
*/ | ||
annotationSelectorSettings?: AnnotationSelectorSettingsModel; | ||
} | ||
@@ -791,2 +1026,32 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
/** | ||
* specifies the annotation selector settings of the annotation. | ||
*/ | ||
annotationSelectorSettings?: AnnotationSelectorSettingsModel; | ||
} | ||
@@ -839,2 +1104,27 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
} | ||
@@ -882,2 +1172,32 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
/** | ||
* specifies the annotation selector settings of the annotation. | ||
*/ | ||
annotationSelectorSettings?: AnnotationSelectorSettingsModel; | ||
} | ||
@@ -1039,2 +1359,27 @@ | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight?: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth?: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight?: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth?: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock?: boolean; | ||
} | ||
@@ -1232,2 +1577,14 @@ | ||
/** | ||
* Specifies the retry count for the failed requests. | ||
* @default 1 | ||
*/ | ||
retryCount?: number; | ||
/** | ||
* If it is set as false then error message box is not displayed in PDF viewer control. | ||
* @default true | ||
*/ | ||
showNotificationDialog?: boolean; | ||
/** | ||
* Enable or disables the Navigation toolbar of PdfViewer. | ||
@@ -1801,5 +2158,3 @@ * @default true | ||
* Triggers before the data send in to the server. | ||
* @event | ||
* @deprecated | ||
*/ | ||
* @event */ | ||
ajaxRequestInitiate?: EmitType<AjaxRequestInitiateEventArgs>; | ||
@@ -1809,5 +2164,3 @@ | ||
* PDF document annotation collection. | ||
* @private | ||
* @deprecated | ||
*/ | ||
* @private */ | ||
annotations?: PdfAnnotationBaseModel[]; | ||
@@ -1817,7 +2170,5 @@ | ||
* store the drawing objects. | ||
* @private | ||
* @deprecated | ||
*/ | ||
* @private */ | ||
drawingObject?: PdfAnnotationBaseModel; | ||
} |
@@ -51,2 +51,6 @@ import { Component, INotifyPropertyChanged, ChildProperty, L10n } from '@syncfusion/ej2-base'; | ||
ajaxHeaders: IAjaxHeaders[]; | ||
/** | ||
* set the ajax credentials for the pdfviewer. | ||
*/ | ||
withCredentials: boolean; | ||
} | ||
@@ -274,2 +278,22 @@ export interface IAjaxHeaders { | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
} | ||
@@ -324,2 +348,22 @@ /** | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
} | ||
@@ -362,2 +406,22 @@ /** | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
} | ||
@@ -400,2 +464,22 @@ /** | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
} | ||
@@ -467,2 +551,22 @@ /** | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
} | ||
@@ -489,2 +593,22 @@ /** | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
} | ||
@@ -527,2 +651,22 @@ /** | ||
isAddToSubMenu: boolean; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
} | ||
@@ -577,2 +721,22 @@ /** | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
} | ||
@@ -623,2 +787,26 @@ /** | ||
borderDashArray: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
/** | ||
* specifies the annotation selector settings of the annotation. | ||
*/ | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
} | ||
@@ -657,2 +845,26 @@ /** | ||
thickness: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
/** | ||
* specifies the annotation selector settings of the annotation. | ||
*/ | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
} | ||
@@ -695,2 +907,22 @@ /** | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
} | ||
@@ -729,2 +961,26 @@ /** | ||
thickness: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
/** | ||
* specifies the annotation selector settings of the annotation. | ||
*/ | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
} | ||
@@ -853,2 +1109,22 @@ /** | ||
annotationSelectorSettings: AnnotationSelectorSettingsModel; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
minHeight: number; | ||
/** | ||
* specifies the minWidth of the annotation. | ||
*/ | ||
minWidth: number; | ||
/** | ||
* specifies the minHeight of the annotation. | ||
*/ | ||
maxHeight: number; | ||
/** | ||
* specifies the maxWidth of the annotation. | ||
*/ | ||
maxWidth: number; | ||
/** | ||
* specifies the locked action of the annotation. | ||
*/ | ||
isLock: boolean; | ||
} | ||
@@ -1049,2 +1325,12 @@ /** | ||
/** | ||
* Specifies the retry count for the failed requests. | ||
* @default 1 | ||
*/ | ||
retryCount: number; | ||
/** | ||
* If it is set as false then error message box is not displayed in PDF viewer control. | ||
* @default true | ||
*/ | ||
showNotificationDialog: boolean; | ||
/** | ||
* Enable or disables the Navigation toolbar of PdfViewer. | ||
@@ -1632,22 +1918,14 @@ * @default true | ||
* Triggers before the data send in to the server. | ||
* @event | ||
* @deprecated | ||
*/ | ||
* @event */ | ||
ajaxRequestInitiate: EmitType<AjaxRequestInitiateEventArgs>; | ||
/** | ||
* PDF document annotation collection. | ||
* @private | ||
* @deprecated | ||
*/ | ||
* @private */ | ||
annotations: PdfAnnotationBaseModel[]; | ||
/** | ||
* @private | ||
* @deprecated | ||
*/ | ||
* @private */ | ||
tool: string; | ||
/** | ||
* store the drawing objects. | ||
* @private | ||
* @deprecated | ||
*/ | ||
* @private */ | ||
drawingObject: PdfAnnotationBaseModel; | ||
@@ -1664,5 +1942,3 @@ constructor(options?: PdfViewerModel, element?: string | HTMLElement); | ||
* To modify the Json Data in ajax request. | ||
* @returns void | ||
* @deprecated | ||
*/ | ||
* @returns void */ | ||
setJsonData(jsonData: any): void; | ||
@@ -1669,0 +1945,0 @@ onPropertyChanged(newProp: PdfViewerModel, oldProp: PdfViewerModel): void; |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is 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
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
27375794
183366