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

Instrumented SVGs #29

Merged
merged 2 commits into from
Dec 23, 2022
Merged

Instrumented SVGs #29

merged 2 commits into from
Dec 23, 2022

Conversation

wezm
Copy link
Contributor

@wezm wezm commented Dec 20, 2022

@n8willis I had a go at implementing #28. I used the data attributes to create a test page that allows you to toggle highlighting of marks: https://codesandbox.io/s/polished-water-pxfjse?file=/index.html

wezm added 2 commits December 20, 2022 13:54
This allows the Symbol to carry an Info reference without having to add
the lifetime to the public SVGWriter struct, that limiting the blast
radius.
@wezm wezm requested a review from adrianwong December 20, 2022 06:47
Copy link
Member

@adrianwong adrianwong left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great!

@n8willis
Copy link

Hey, very cool!

Glad to see that the data- attributes look like they're working. I've tested it in Firefox and Chromium myself (so far). I'm going to see how Inkscape responds too, just out of curiosity....

@wezm wezm merged commit 47a6b59 into master Dec 23, 2022
@wezm wezm deleted the wezm/instrumented-svgs branch December 23, 2022 00:50
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

Successfully merging this pull request may close these issues.

3 participants