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

    Class MRenderer

    Renderer class.

    • Use MRenderContext instead.

    Hierarchy (View Summary)

    Index

    Constructors

    Methods

    • Draw contents of attached music document to attached canvas.

      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 render context.

      Parameters

      • canvas: string | HTMLCanvasElement

        HTML canvas element or element id.

      Returns MRenderContext

      • This render context instance.