OpenSheetMusicDisplay
    Preparing search index...

    Class VexFlowBackendAbstract

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    canvas: HTMLElement
    graphicalMusicPage: GraphicalMusicPage

    The GraphicalMusicPage the backend is drawing from. Each backend only renders one GraphicalMusicPage, to which the coordinates are relative.

    height: number
    inner: HTMLElement
    renderer: Renderer
    width: number

    Methods

    • Renders a rectangle with the given style to the screen. It is given in screen coordinates.

      Parameters

      • rectangle: RectangleF2D

        the rect in screen coordinates

      • styleId: number

        the style id

      • colorHex: string
      • alpha: number

        alpha value between 0 and 1

      Returns Node

    • Renders a text to the screen.

      Parameters

      • fontHeight: number
      • fontStyle: FontStyles
      • font: Fonts
      • text: string
      • heightInPixel: number
      • screenPosition: PointF2D
      • Optionalcolor: string
      • OptionalfontFamily: string
      • Optionallanguage: string

        the language of the text as a BCP 47 tag (e.g. "ja"), for the browser's choice of fonts (see Label.language)

      Returns Node