chordsheetjs
    Preparing search index...

    Class DomMeasurer

    Measures text using DOM elements

    Hierarchy (View Summary)

    Index

    Methods

    • Measures the height of text with the given font configuration

      Parameters

      • text: string

        The text to measure

      • fontConfig: FontConfiguration

        The font configuration to apply

      Returns number

      The height of the text

    • Measures the width of text with the given font configuration

      Parameters

      • text: string

        The text to measure

      • fontConfig: FontConfiguration

        The font configuration to apply

      Returns number

      The width of the text