Add widget annotation and update stroke color
Updated `createAnnotations` to initialize a `PSPDFKit.Annotations.WidgetAnnotation` object, enabling the creation of widget annotations. Modified `ctx.strokeStyle` in `createAnnotationFrameBlob` to use 'darkblue' instead of 'darkgray', improving the visual appearance of the annotation frame.
This commit is contained in:
@@ -273,7 +273,7 @@ async function createAnnotationFrameBlob(receiverName, receiverSignature, timest
|
|||||||
ctx.moveTo(30 * scale, 50 * scale)
|
ctx.moveTo(30 * scale, 50 * scale)
|
||||||
ctx.lineTo(signatureLength, 50 * scale)
|
ctx.lineTo(signatureLength, 50 * scale)
|
||||||
|
|
||||||
ctx.strokeStyle = 'darkgray'
|
ctx.strokeStyle = 'darkblue'
|
||||||
ctx.stroke()
|
ctx.stroke()
|
||||||
|
|
||||||
ctx.fillStyle = 'black'
|
ctx.fillStyle = 'black'
|
||||||
|
|||||||
Reference in New Issue
Block a user