Pdfviewer - RadiusSettings

18 Nov 20263 minutes to read

The RadiusSettings module is used to provide the properties to radius calibrate annotation.

<div id="pdfViewer" style="height: 100%;width: 100%;"></div>
 let viewer: PdfViewer = new PdfViewer();
 // Change the radius annotation settings.
 viewer.radiusSettings = {
     offset: { x:0, y:0 },
     pageNumber: 1,
     width: 100,
     height: 90,
     opacity: 1,
     fillColor: '#4070FF',
     strokeColor: '#ff0000',
     author: 'Guest',
     thickness: 1,
     annotationSelectorSettings: {
         selectionBorderColor: '',
         resizerBorderColor: 'red',
         resizerFillColor: '#4070FF',
         resizerSize: 8,
         selectionBorderThickness: 1,
         resizerShape: 'Circle',
         selectorLineDashArray: [],
         resizerLocation: AnnotationResizerLocation.Corners | AnnotationResizerLocation.Edges,
         resizerCursorType: null
     },
     minHeight: 0,
     minWidth: 0,
     maxWidth: 0,
     maxHeight: 0,
     isLock: false,
     customData: null,
     allowedInteractions: ['None'],
     isPrint: true,
     subject: ''
 };
 viewer.appendTo("#pdfViewer");

Properties

allowedInteractions AllowedInteraction[]

Gets or sets the allowed interactions for the locked radius annotations.
IsLock can be configured using area settings.

Defaults to [‘None’]

annotationSelectorSettings AnnotationSelectorSettingsModel

specifies the annotation selector settings of the annotation.

Defaults to ’’

author string

specifies the author of the annotation.

Defaults to ‘Guest’

borderDashArray number[]

specifies the border dash array of the annotation.

Defaults to []

borderStyle BorderStyle

specifies the border style of the annotation.

Defaults to BorderStyle.Solid

cloudIntensity number

Specifies the cloud intensity of the annotation. The minimum allowed value is 1, and the maximum allowed value is 2.

Defaults to 1

customData object

specifies the custom data of the annotation.

Defaults to null

fillColor string

specifies the fill color of the annotation.

Defaults to ‘#ffffff00’

height number

specifies the height of the annotation.

Defaults to 90

isLock boolean

specifies the locked action of the annotation.

Defaults to false

isPrint boolean

specifies whether the individual annotations are included or not in print actions.

Defaults to true

maxHeight number

specifies the maxHeight of the annotation.

Defaults to 0

maxWidth number

specifies the maxWidth of the annotation.

Defaults to 0

minHeight number

specifies the minHeight of the annotation.

Defaults to 0

minWidth number

specifies the minWidth of the annotation.

Defaults to 0

offset IPoint

Get or set offset of the annotation.

Defaults to { x: 0, y: 0}

opacity number

specifies the opacity of the annotation.

Defaults to 1

pageNumber number

Get or set page number of the annotation.

Defaults to 1

strokeColor string

specifies the stroke color of the annotation.

Defaults to ‘#ff0000’

subject string

specifies the subject of the annotation.

Defaults to ’’

thickness number

specified the thickness of the annotation.

Defaults to 1

width number

specifies the width of the annotation.

Defaults to 100