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
feat: Make SVGs "Penrose-editable" #1171
Conversation
added code for creating <penrose> medatadata field and subfields
…lds" This reverts commit 5417cc1.
feat: svg metadata tags (second PR, first one accidentally reverted changes)
* Added SVG tag that can upload SVGs, but there are some UI bugs * added ability to upload style code * working on parsing xml * working on svg parsing * SVG uploader essentially done, although style isn't great * finished SVGUploader
Codecov Report
@@ Coverage Diff @@
## main #1171 +/- ##
=======================================
Coverage 62.07% 62.07%
=======================================
Files 59 59
Lines 7111 7111
Branches 1708 1708
=======================================
Hits 4414 4414
Misses 2614 2614
Partials 83 83
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM overall! Thanks again for submitting the PR 🎉!
I only have a few minor comments that might improve the UX a little bit. I tested the new feature locally and everything seems to run very smoothly. For testing, it might be useful to start adding some tests to editor
for this (e.g. serializing all diagrams from the registry and loading them again). This might require a bit more changes and is probably worth another PR.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for cleaning the diff! Small comments on variation loading below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great! variation
works correctly now. I think it'd be great if we auto-compile uploaded diagrams as a finishing touch. Also a small comment on calls to trim
, not a functional issue, just want to future-proof this.
I tried to auto-compile diagram after upload. I tried |
My guess is that you did not |
Thank you!! Good to go now!! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Final thing: you can simply await
the function call. Looking forward to having this in main
!
Co-authored-by: Wode "Nimo" Ni <woden@cs.cmu.edu>
Thank you! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Wonderful 💯! Merging if CI passes.Thanks again for the PR!
Looks like |
Looks like something is off with your prettier configuration. Be sure to run Remove |
Looks like we have Line 37 in 3ae696e
Might wanna reset your build? |
I changed my prettier version to 2.3.0 and cleaned my build. But there seem to still be conflicts |
To clarify: |
Description
Related issue/PR: #1129
Provide editability of any (SVG) diagram created in Penrose.
Implementation strategy and design decisions
Penrose SVG Export:
Penrose SVG Import:
Examples with steps to reproduce them
Export Penrose SVG
Import Penrose SVG
Checklist
diagrams/
folder