OpenSheetMusicDisplay
    Preparing search index...

    Class GraphicalDashes

    The part of a dashed line after a text (e.g. "cresc. - - - -", see Dashes) in one staffline: the line that starts after the text, or a part that goes on from the staffline of the system before.

    Index
    ContinuationLabel: GraphicalLabel

    The text again in brackets before a part that goes on from a system before, e.g. "(cresc.)", as a reminder. Undefined unless EngravingRules.RenderExpressionDashesContinuationText is set.

    Dashes: Dashes

    The line this is a part of.

    DashLength: number

    The length of a dash, in units.

    GapLength: number

    The gap between two dashes, in units: EngravingRules.ExpressionDashesGapLength, fitted so that the line ends with a whole dash.

    IsContinuation: boolean

    Whether this part goes on from the staffline of a system before, where the text and the start of the line are.

    The line from its first to its last dash, relative to the staffline. Its SVGElement is the drawn group (SVG backend).

    ParentStaffLine: StaffLine
    TextLabel: GraphicalLabel

    The label of the text the line follows: in this staffline, or for a part that goes on from a system before (IsContinuation) in the staffline where the line starts.

    • Returns the gap length closest to the given one with which dashes of the given length exactly fill a line, so that it starts and ends with a whole dash.

      Parameters

      • lineLength: number

        the length of the line

      • dashLength: number

        the length of a dash

      • gapLength: number

        the gap between two dashes to approximate

      Returns number