ComPDFKit Web SDK
    Preparing search index...

    Class SoundSelectionModel

    Selection model of sound annotations.

    Hierarchy (View Summary)

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