@tspro/web-music-score
    Preparing search index...

    Class MRenderer

    Renderer class.

    Index

    Constructors

    Methods

    • Draw contents of attached music document to attached canvas.

      Returns void

    • Draw given music object hilighted.

      Parameters

      • Optionalobj: MusicInterface

        Music object or undefined to remove hilighting.

      Returns void

    • Draw given staff position hilighted.

      Parameters

      • OptionalstaffPos: { diatonicId: number; scoreRow: MScoreRow }

        Staff position (score row and diatonic id) or undefined to remove hilighting.

      Returns void

    • Set target canvas html element for this renderer.

      Parameters

      • canvas: string | HTMLCanvasElement

        HTML canvas element or element id.

      Returns MRenderer

      • This renderer instance.