Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@syncfusion/ej2-pdfviewer

Package Overview
Dependencies
Maintainers
3
Versions
298
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@syncfusion/ej2-pdfviewer - npm Package Compare versions

Comparing version 18.1.54 to 18.1.55

src/pdfviewer/annotation/ink-annotation.d.ts

11

CHANGELOG.md

@@ -9,2 +9,13 @@ # Changelog

- `#F154248` - Provided the Support to show/hide the annotation toolbar in code behind.
- `#F153946` - Provided the Options to disable AutoComplete options in form filling documents.
- `#273237` - Provided the Support to lock the text markup annotations.
- `#277143` - Provided the support for ink annotation.
## 18.1.54 (2020-05-26)
### PDF Viewer
#### New Features
- `#254075` , `#266559` - Provided the support to render the hyperlinks which are preserved as plain text

@@ -11,0 +22,0 @@

2

dist/global/index.d.ts
/*!
* filename: index.d.ts
* version : 18.1.54
* version : 18.1.55
* Copyright Syncfusion Inc. 2001 - 2020. 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@18.1.52",
"_id": "@syncfusion/ej2-pdfviewer@18.1.54",
"_inBundle": false,
"_integrity": "sha512-JXAXKPiepaKZWB92pyS/hgYkN48o2ucFX0esyWpy+0mNWwzfmlvaRKQFogKk2rCbqcPwPZIbM0WmriEL5o2psA==",
"_integrity": "sha512-Beec4Dga5FllznsDpqmccE/KIvjbsS6FJZ0dAq60TMqop3/IpP1cyy9WGuV8RTrEBNXjvBgXWCmMv1XW/FkfvQ==",
"_location": "/@syncfusion/ej2-pdfviewer",

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

],
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-18.1.52.tgz",
"_shasum": "d570f577e199237cd0b9913c77f82569f6d15de1",
"_resolved": "http://nexus.syncfusion.com/repository/ej2-hotfix/@syncfusion/ej2-pdfviewer/-/ej2-pdfviewer-18.1.54.tgz",
"_shasum": "4e8571ab4a7e738f1205648552ab8f60eba37fbd",
"_spec": "@syncfusion/ej2-pdfviewer@*",

@@ -42,11 +42,11 @@ "_where": "/jenkins/workspace/automation_release_18.1.0.1-52JLNOGRCDHXRVQM3W564VPLFCPHWUYDYU3I3DVRABSR7F6AIFYQ/packages/included",

"@syncfusion/ej2-calendars": "~18.1.53",
"@syncfusion/ej2-data": "~18.1.52",
"@syncfusion/ej2-data": "~18.1.55",
"@syncfusion/ej2-drawings": "~18.1.52",
"@syncfusion/ej2-dropdowns": "~18.1.54",
"@syncfusion/ej2-dropdowns": "~18.1.55",
"@syncfusion/ej2-inplace-editor": "~18.1.53",
"@syncfusion/ej2-inputs": "~18.1.54",
"@syncfusion/ej2-inputs": "~18.1.55",
"@syncfusion/ej2-lists": "~18.1.53",
"@syncfusion/ej2-navigations": "~18.1.54",
"@syncfusion/ej2-navigations": "~18.1.55",
"@syncfusion/ej2-notifications": "~18.1.52",
"@syncfusion/ej2-popups": "~18.1.53",
"@syncfusion/ej2-popups": "~18.1.55",
"@syncfusion/ej2-richtexteditor": "~18.1.54"

@@ -78,4 +78,4 @@ },

"typings": "index.d.ts",
"version": "18.1.54",
"version": "18.1.55",
"sideEffects": false
}

@@ -60,4 +60,8 @@ /**

*/
'HandWrittenSignature';
'HandWrittenSignature' |
/**
* Ink - Represents the type as Ink.
*/
'Ink';
/**
* Defines the decorator shape of the connector

@@ -64,0 +68,0 @@ * None - Sets the decorator shape as None

@@ -137,2 +137,25 @@ import { PointModel } from '@syncfusion/ej2-drawings';

/**
* Draws a node that is defined by the user
* @hidden
*/
export declare class InkDrawingTool extends ToolBase {
/** @private */
drawingObject: PdfAnnotationBaseModel;
/** @private */
sourceObject: PdfAnnotationBaseModel;
/** @private */
dragging: boolean;
constructor(commandHandler: PdfViewer, base: PdfViewerBase, sourceObject: PdfAnnotationBaseModel);
/** @private */
mouseDown(args: MouseEventArgs): void;
/** @private */
mouseMove(args: MouseEventArgs): boolean;
/** @private */
mouseUp(args: MouseEventArgs): boolean;
/** @private */
mouseLeave(args: MouseEventArgs): void;
/** @private */
endAction(): void;
}
/**
* Helps to edit the selected connectors

@@ -139,0 +162,0 @@ * @hidden

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

import { PdfViewer, PdfViewerBase, AnnotationType, TextMarkupAnnotation, ShapeAnnotation, StampAnnotation, StickyNotesAnnotation, IPopupAnnotation, MeasureAnnotation } from '../index';
import { PdfViewer, PdfViewerBase, AnnotationType, TextMarkupAnnotation, ShapeAnnotation, StampAnnotation, StickyNotesAnnotation, IPopupAnnotation, MeasureAnnotation, InkAnnotation } from '../index';
import { ChangeEventArgs } from '@syncfusion/ej2-inputs';

@@ -67,2 +67,6 @@ import { DecoratorShapes } from '@syncfusion/ej2-drawings';

*/
inkAnnotationModule: InkAnnotation;
/**
* @private
*/
stickyNotesAnnotationModule: StickyNotesAnnotation;

@@ -69,0 +73,0 @@ private popupNote;

@@ -13,1 +13,2 @@ /**

export * from './input-element';
export * from './ink-annotation';

@@ -13,1 +13,2 @@ /**

export * from './input-element';
export * from './ink-annotation';

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

private commentsAnnotationSelect;
private checkAnnotationSettings;
private updateCommentsContainerWidth;

@@ -194,0 +195,0 @@ /**

@@ -38,2 +38,3 @@ import { PdfViewer, TextLayer, ContextMenu, Signature } from '../index';

signatureAnnotation?: object;
signatureInkAnnotation?: object;
}

@@ -425,2 +426,14 @@ /**

private requestLists;
/**
* @private
*/
isToolbarInkClicked: boolean;
/**
* @private
*/
isInkAdded: boolean;
/**
* @private
*/
inkCount: number;
constructor(viewer: PdfViewer);

@@ -774,2 +787,6 @@ /**

*/
isInkAnnotationModule(): boolean;
/**
* @private
*/
isCommentAnnotationModule(): boolean;

@@ -776,0 +793,0 @@ /**

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

saveSignature(): string;
private getRgbCode;
getRgbCode(colorString: string): any;
/**

@@ -81,0 +81,0 @@ * @private

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

Signature.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(',');

@@ -309,0 +312,0 @@ if (isNullOrUndefined(stringArray[1])) {

@@ -8,3 +8,3 @@ /**

*/
export declare type AnnotationToolbarItem = 'HighlightTool' | 'UnderlineTool' | 'StrikethroughTool' | 'ShapeTool' | 'CalibrateTool' | 'ColorEditTool' | 'StrokeColorEditTool' | 'ThicknessEditTool' | 'OpacityEditTool' | 'AnnotationDeleteTool' | 'StampAnnotationTool' | 'HandWrittenSignatureTool' | 'FreeTextAnnotationTool' | 'FontFamilyAnnotationTool' | 'FontSizeAnnotationTool' | 'FontStylesAnnotationTool' | 'FontAlignAnnotationTool' | 'FontColorAnnotationTool' | 'CommentPanelTool';
export declare type AnnotationToolbarItem = 'HighlightTool' | 'UnderlineTool' | 'StrikethroughTool' | 'ShapeTool' | 'CalibrateTool' | 'ColorEditTool' | 'StrokeColorEditTool' | 'ThicknessEditTool' | 'OpacityEditTool' | 'AnnotationDeleteTool' | 'StampAnnotationTool' | 'HandWrittenSignatureTool' | 'InkAnnotationTool' | 'FreeTextAnnotationTool' | 'FontFamilyAnnotationTool' | 'FontSizeAnnotationTool' | 'FontStylesAnnotationTool' | 'FontAlignAnnotationTool' | 'FontColorAnnotationTool' | 'CommentPanelTool';
/**

@@ -21,3 +21,3 @@ * Enum LinkTarget for hyperlink navigation

*/
export declare type AnnotationType = 'None' | 'Highlight' | 'Underline' | 'Strikethrough' | 'Line' | 'Arrow' | 'Rectangle' | 'Circle' | 'Polygon' | 'Distance' | 'Perimeter' | 'Area' | 'Radius' | 'Volume' | 'FreeText' | 'HandWrittenSignature' | 'Stamp' | 'Image' | 'StickyNotes';
export declare type AnnotationType = 'None' | 'Highlight' | 'Underline' | 'Strikethrough' | 'Line' | 'Arrow' | 'Rectangle' | 'Circle' | 'Polygon' | 'Distance' | 'Perimeter' | 'Area' | 'Radius' | 'Volume' | 'FreeText' | 'HandWrittenSignature' | 'Ink' | 'Stamp' | 'Image' | 'StickyNotes';
/**

@@ -24,0 +24,0 @@ * Enum LineHeadStyle for line and arrow annotation

@@ -107,6 +107,11 @@ import { Browser } from '@syncfusion/ej2-base';

currentElement.disabled = true;
currentElement.style.backgroundColor = '';
currentElement.style.cursor = 'default';
}
else {
if (currentElement.style.backgroundColor === '') {
currentElement.style.backgroundColor = 'rgba(0, 20, 200, 0.2)';
}
currentElement.disabled = false;
currentElement.style.cursor = '';
}

@@ -521,2 +526,5 @@ }

}
if (!this.pdfViewer.enableAutoComplete) {
inputField.autocomplete = 'off';
}
inputField.name = data.FieldName;

@@ -523,0 +531,0 @@ return inputField;

@@ -1278,2 +1278,44 @@ import { Component, INotifyPropertyChanged, NotifyPropertyChanges, ChildProperty, L10n, Collection, Complex, isBlazor } 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, PrintMode, CursorType, ContextMenuItem, DynamicStampItem, SignStampItem, StandardBusinessStampItem } from './base/types';import { Annotation } from './index';import { LinkAnnotation } from './index';import { ThumbnailView } from './index';import { BookmarkView } from './index';import { TextSelection } from './index';import { TextSearch } from './index';import { FormFields } from './index';import { Print, CalibrationUnit } from './index';import { UnloadEventArgs, LoadEventArgs, LoadFailedEventArgs, AjaxRequestFailureEventArgs, PageChangeEventArgs, PageClickEventArgs, ZoomChangeEventArgs, HyperlinkClickEventArgs, HyperlinkMouseOverArgs, ImportStartEventArgs, ImportSuccessEventArgs, ImportFailureEventArgs, ExportStartEventArgs, ExportSuccessEventArgs, ExportFailureEventArgs, AjaxRequestInitiateEventArgs } from './index';import { AnnotationAddEventArgs, AnnotationRemoveEventArgs, AnnotationPropertiesChangeEventArgs, AnnotationResizeEventArgs, AnnotationSelectEventArgs, AnnotationMoveEventArgs, AnnotationDoubleClickEventArgs, AnnotationMouseoverEventArgs, PageMouseoverEventArgs } from './index';import { TextSelectionStartEventArgs, TextSelectionEndEventArgs, DownloadStartEventArgs, DownloadEndEventArgs, ExtractTextCompletedEventArgs, PrintStartEventArgs, PrintEndEventArgs } from './index';import { TextSearchStartEventArgs, TextSearchCompleteEventArgs, TextSearchHighlightEventArgs } from './index';import { PdfAnnotationBase, ZOrderPageTable } from '../diagram/pdf-annotation';import { PdfAnnotationBaseModel } from '../diagram/pdf-annotation-model';import { Drawing, ClipBoardObject } from '../diagram/drawing';import { Selector } from '../diagram/selector';import { SelectorModel } from '../diagram/selector-model';import { PointModel, IElement, Rect } from '@syncfusion/ej2-drawings';import { renderAdornerLayer } from '../diagram/dom-util';import { ThumbnailClickEventArgs } from './index';import { ValidateFormFieldsArgs } from './base';import { AddSignatureEventArgs, RemoveSignatureEventArgs, MoveSignatureEventArgs, SignaturePropertiesChangeEventArgs, ResizeSignatureEventArgs, SignatureSelectEventArgs } from './base';

/**
* Interface for a class InkAnnotationSettings
*/
export interface InkAnnotationSettingsModel {
/**
* specifies the opacity of the annotation.
*/
opacity?: number;
/**
* specifies the stroke color of the annotation.
*/
strokeColor?: string;
/**
* specified the thickness of the annotation.
*/
thickness?: number;
/**
* specified the width of the annotation.
*/
width?: number;
/**
* specified the height of the annotation.
*/
height?: number;
/**
* specifies the annotation selector settings of the annotation.
*/
annotationSelectorSettings?: AnnotationSelectorSettingsModel;
/**
* specifies the lock action of the annotation.
*/
isLock?: boolean;
}
/**
* Interface for a class StickyNotesSettings

@@ -1945,2 +1987,8 @@ */

/**
* Enables or disables the ink annotation in PDF document.
* @default true
*/
enableInkAnnotation?: boolean;
/**
* restrict zoom request.

@@ -1982,2 +2030,8 @@ * @default false

/**
* Enable or disables the auto complete option in form documents.
* @default true
*/
enableAutoComplete?: boolean;
/**
* Enable or disables the Magnification module of PdfViewer.

@@ -2282,2 +2336,8 @@ * @default true

/**
* Defines the settings of Ink annotation.
*/
// tslint:disable-next-line:max-line-length
inkAnnotationSettings?: InkAnnotationSettingsModel;
/**
* Defines the settings of the annotations.

@@ -2284,0 +2344,0 @@ */

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

private isSignatureBtnVisible;
private isInkBtnVisible;
private isFontFamilyToolVisible;

@@ -106,2 +107,6 @@ private isFontSizeToolVisible;

handWrittenSignatureItem: HTMLElement;
/**
* @private
*/
inkAnnotationItem: HTMLElement;
constructor(viewer: PdfViewer, viewerBase: PdfViewerBase, toolbar: Toolbar);

@@ -192,2 +197,3 @@ /**

private onToolbarClicked;
private drawInkAnnotation;
private resetFreeTextAnnot;

@@ -201,5 +207,6 @@ private showSignaturepanel;

*/
showAnnotationToolbar(element: HTMLElement): void;
showAnnotationToolbar(element?: HTMLElement): void;
private enablePropertiesTool;
private applyAnnotationToolbarSettings;
private showInkAnnotationTool;
private showSeparator;

@@ -214,2 +221,3 @@ private showHighlightTool;

private showSignatureTool;
private showInkTool;
private showFontFamilyAnnotationTool;

@@ -216,0 +224,0 @@ private showFontSizeAnnotationTool;

@@ -96,2 +96,8 @@ import { PdfViewer, PdfViewerBase, AnnotationToolbar } from '../index';

/**
* Shows /hides the annotation toolbar in the PdfViewer
* @param {boolean} enableAnnotationToolbar - If set true , its show the annotation Toolbar
* @returns void
*/
showAnnotationToolbar(enableAnnotationToolbar: boolean): void;
/**
* Shows /hides the the toolbar items in the PdfViewer

@@ -98,0 +104,0 @@ * @param {string[]} items - Defines the toolbar items in the toolbar

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is 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

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc