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

Fix rx and ry element problems #4

Closed
wants to merge 1 commit into from

Conversation

CubesterYT
Copy link
Member

Currently, paper.js ignores lone rx or ry elements in an SVG, causing it to fail to render properly in the paint editor.

This PR checks the SVG for the existence of either element and the non existence of the other respectively, and adds it.

Currently known SVG makers that have the problem of only exporting with one of the aforementioned elements are Figma and Adobe XD.

Example SVG to test:
Rectangle 1

@NotCryptid

This comment was marked as spam.

@GarboMuffin
Copy link
Member

I think this is the wrong layer to fix it in

@CubesterYT
Copy link
Member Author

CubesterYT commented Jul 15, 2024

Which should I do it in instead? I couldn't decide between the file upload handler in the GUI, the svg fix file in the GUI, and this file. Let me know, and I'll open a new PR it the designated location.

@NotCryptid

This comment was marked as spam.

@GarboMuffin
Copy link
Member

since only paper.js can't understand, patch paper.js

@CubesterYT
Copy link
Member Author

There's a PR by someone to fix the problem that literally dates back to 2020. Still hasn't been merged.

@GarboMuffin
Copy link
Member

Great then send it to TurboWarp/paper.js

@CubesterYT
Copy link
Member Author

Alright, I'll move it over there

@CubesterYT
Copy link
Member Author

TurboWarp/paper.js#1

@CubesterYT CubesterYT closed this Jul 16, 2024
@CubesterYT CubesterYT deleted the rx-and-ry-fix branch July 16, 2024 01: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.

4 participants