AToMPM / AToMPM/atompm

Utilities toolbar export model to SVG does not display custom CS images.

Open
#111 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
25
Forks
15
PR merge metrics
No merged PRs in 30d

Description

After exporting via:
![1607618552 1](https://user-images.githubusercontent.com/3879710/101801945-8feea380-3b17-11eb-997f-5108636a74e4.png)

The exported SVG still contains path to the image. Custom images/icons were introduced via ConcreteSyntax formalism. This makes the exported SVG to display incorrectly:
![chrome_83b6n7OhrK](https://user-images.githubusercontent.com/3879710/101802263-e5c34b80-3b17-11eb-9476-6a09c7a9160f.png)

Possible solutions for a fix:
1. convert image files into base64 blobs for direct display on SVG
2. render the SVG into PNG on server/client side before download.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the Utilities toolbar's export-to-SVG flow and reproduce the case using custom images or icons introduced through ConcreteSyntax formalism. Trace why the downloaded SVG retains an image path; done means custom CS images display correctly in the exported SVG, using one of the two approaches proposed in the issue.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.