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

Error rendering edge-labels. #6

Open
realazthat opened this issue Apr 11, 2024 · 4 comments
Open

Error rendering edge-labels. #6

realazthat opened this issue Apr 11, 2024 · 4 comments

Comments

@realazthat
Copy link

  • All files in a zip:
    edge-labels-rendering-error-bug.zip
  • Excalidraw shared link:
    https://excalidraw.com/#json=dYmsl0r4MMuupw6J8mLch,7pC6x3aetcuFsfRsYo5CQQ.
  • Or as a file (had to zip it, github won't allow attaching .excalidraw
    files):
    volume_representations.zip.
  • Here is a screenshot of the diagram inside excalidraw:
    Screenshot of diagram in Excalidraw
  • Here is the Excalidraw exported PNG:
    Excalidraw exported PNG
  • Here is the Excalidraw exported SVG:
    Excalidraw exported SVG
  • Here is the file exported by excalidraw-to-svg:
    Generated SVG
  • Here is the generated SVG file opened in chrome (brave) and a screenshot
    taken:
    Chrome screenshot of Generated SVG
  • Take note:
    • Most of the floating text that is meant to be over the edges is misplaced.
    • The floating text has no background. In Excalidraw, there is a white
      background that blocks out the edge.
@realazthat
Copy link
Author

Same issue in excalidraw_export: Timmmm/excalidraw_export#6.

@JRJurman
Copy link
Owner

Thanks for the thorough details and testing! I'll take a look and see what I come up with!

@JRJurman
Copy link
Owner

My gut feeling is that the underlying package for exporting, @excalidraw/utils is at this point 2 years old, despite changes in the main repo for generating diagrams consistently getting updates.

Other people have noticed the same issues you described here with the utils: excalidraw/excalidraw#6723

Hopefully they can release an update to the exporting utils soon, and then we can update this tool.

@realazthat
Copy link
Author

For my use, I made yet another exporter, by using playwright+firefox: https://github.com/realazthat/excalidraw-brute-export-cli, a bit more brute-force, but in some ways more robust for it.

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