Creates a selection model.
The selected annotation.
Whether the annotation can be modified (handles are shown only then).
Whether the annotation is selected.
Optionalviewer: DocumentViewer | null
The document viewer, used for zoom and page sizes.
Whether the annotation can be modified.
True when modifiable.
Solid selection box (#1460F3, padded like getControlHandles) plus handles (ctx is the annotation layer, device coordinates); override this method to change the drawing.
Gets the resize handles of the bounding box (and the rotation handle when rotatable); none when the annotation cannot be modified or resized.
The control handles.
Whether the annotation is selected.
True when selected.
StaticsetHow many screen pixels the selection box is padded (per annotation); the default when unset (4 on all sides for boxed annotations and form widgets; 0 for vertex types and notes); the selection box and handles are padded together; pass undefined to restore the default.
Finds the control handle at a point.
The annotation.
X in page coordinates.
Y in page coordinates.
Transform from page coordinates to canvas coordinates.
The handle at the point, or null when none.
Whether a point hits the annotation (inside its bounding box, with a small tolerance).
The annotation.
X in page coordinates.
Y in page coordinates.
Transform from page coordinates to canvas coordinates.
True when the point hits the annotation.
Selection model of redaction annotations.