OpenSheetMusicDisplay
    Preparing search index...

    Class GraphicalLabel

    The graphical counterpart of a Label

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    boundingBox: BoundingBox
    CenteringXShift: number = 0

    Read-only informational variable only set once by lyrics centering algorithm.

    ColorXML: string
    dataObject: Object
    SVGNode: Node

    A reference to the Node in the SVG, if SVGBackend, otherwise undefined. Allows manipulation without re-rendering, e.g. for dynamics, lyrics, etc. For the Canvas backend, this is unfortunately not possible.

    TextLines: { text: string; width: number; xOffset: number }[]

    Accessors

    Methods

    • Calculate GraphicalLabel's Borders according to its Alignment Create also the text-lines and their offsets here

      Returns void