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 = {
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,
allowedInteractions: ['None'],
isPrint: true
};
viewer.appendTo("#pdfViewer");
Gets or sets the allowed interactions for the locked radius annotations. IsLock can be configured using area settings.
Defaults to [‘None’]
AnnotationSelectorSettingsModel
specifies the annotation selector settings of the annotation.
string
specifies the author of the annotation.
object
specifies the custom data of the annotation.
string
specifies the fill color of the annotation.
number
specifies the height of the annotation.
boolean
specifies the locked action of the annotation.
boolean
specifies whether the individual annotations are included or not in print actions.
number
specifies the minHeight of the annotation.
number
specifies the maxWidth of the annotation.
number
specifies the minHeight of the annotation.
number
specifies the minWidth of the annotation.
IPoint
Get or set offset of the annotation.
number
specifies the opacity of the annotation.
number
Get or set page number of the annotation.
string
specifies the stroke color of the annotation.
number
specified the thickness of the annotation.
number
specifies the width of the annotation.