OpenSheetMusicDisplay
    Preparing search index...

    Class Cursor

    A cursor which can iterate through the music sheet.

    Index

    Constructors

    Properties

    currentPageNumber: number = 1
    cursorElement: HTMLImageElement
    cursorElementId: string

    a unique id of the cursor's HTMLElement in the document. Should be constant between re-renders and backend changes, but different between different OSMD objects on the same page.

    hidden: boolean = true
    wantedZIndex: string

    The desired zIndex (layer) of the cursor when no background color is set. When a background color is set, using a negative zIndex would make the cursor invisible.

    Accessors

    Methods

    • Check if there was a change in current page, and attach cursor element to the corresponding HTMLElement (div). This is only necessary if using PageFormat (multiple pages).

      Returns number