Defines a floating pointer in the document. Whenever text is inserted or deleted before the cursor, the position of the anchor is updated.

Hierarchy (View Summary)

Constructors

Properties

column: number
document: Document
markerId?: number
row: any

Methods

  • When called, the "change" event listener is appended.

    Parameters

    • doc: Document

      The document to associate with

    Returns void

  • When called, the "change" event listener is removed.

    Returns void

  • Returns an object identifying the row and column position of the current anchor.

    Returns Point

  • Sets the anchor position to the specified row and column. If noClip is true, the position is not clipped.

    Parameters

    • row: number

      The row index to move the anchor to

    • column: number

      The column index to move the anchor to

    • OptionalnoClip: boolean

      Identifies if you want the position to be clipped

    Returns void