Skip to content

Dots with @data-related in SVG with svgHtml5 option #3898

Open
@wergo

Description

Is your feature request related to a problem? Please describe.
With the current release 4.4 and when using the svgHtml5 option, the ledger lines in the SVG have a @data-related attribute pointing to the corresponding note elements (see #3858, #3861), because they are not placed inside the note elements they are belonging to:

Bildschirmfoto 2024-12-19 um 16 22 46

A similar case can be found in a dotted chord: the dots elements are located inside a <g> element that is a child to the chord element and a sibling to the individual note elements. However, there is no connection between the individual dots elements (ellipse) and their corresponding note elements. (In the case of a single note, the dots element is a child of that note, so the reference is evident.)

grafik

Describe the solution you'd like
It would be great, if the svgHtml5 option would also add @data-related attributes to the ellipse elements (at least inside chords) that each point to the @data-id of the corresponding note elements.

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions