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.
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 note, using its on-screen size (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 note.
Selection model of sticky notes: hit-tested at their screen size, no handles.