ComPDFKit Web SDK
    Preparing search index...

    Class FreeTextSelectionModel

    Selection model of free text annotations without a callout.

    Hierarchy (View Summary)

    Index
    • Whether the annotation can be modified.

      Returns boolean

      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.

      Parameters

      Returns void

    • Whether the annotation is selected.

      Returns boolean

      True when selected.

    • How 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.

      Parameters

      Returns void

    • Whether a point hits the annotation (inside its bounding box, with a small tolerance).

      Parameters

      • annotation: Core.Annotations.Annotation

        The annotation.

      • x: number

        X in page coordinates.

      • y: number

        Y in page coordinates.

      • pageMatrix: Matrix

        Transform from page coordinates to canvas coordinates.

      Returns boolean

      True when the point hits the annotation.

    The selected annotation.

    viewer: DocumentViewer | null

    The document viewer, used for zoom and page sizes.