Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add title to SvgOptions #54

Open
matbech opened this issue Mar 25, 2024 · 0 comments
Open

Add title to SvgOptions #54

matbech opened this issue Mar 25, 2024 · 0 comments
Assignees

Comments

@matbech
Copy link

matbech commented Mar 25, 2024

It would be nice if the SvgOptions class adds an optional 'title' property. If set, the title would then be added as a child of the rect element:

<rect ... fill="#ffffff">
  <title>title</title>
</rect>

The title will be shown as a tooltip when the mouse hovers over the element. See:
https://developer.mozilla.org/en-US/docs/Web/SVG/Element/title
demo:
https://stackoverflow.com/questions/10643426/how-to-add-a-tooltip-to-an-svg-graphic

@erwanvivien erwanvivien self-assigned this Mar 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants