Interface: AnnotationsRotateEvent

PSPDFKit.AnnotationsRotateEvent

This event is emitted whenever an annotation is about to be rotated.

You can use this event to add custom resize behavior for individual annotations.

Example

Log text annotation value

instance.setOnAnnotationRotateStart((event) => {
  console.log(event);
});

Members




Members

annotation: PSPDFKit.Annotations

The annotation that is rotating.

Remember that annotations are Immutable.map.

Type:

isShiftPressed: boolean

This boolean represents if the user is holding the shift key.

Type:
  • boolean

rotation: number

This holds the angle of the rotation, in degrees.

Type:
  • number