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

Export fixupSvgString from module #210

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

adroitwhiz
Copy link
Contributor

@adroitwhiz adroitwhiz commented Jan 7, 2021

Resolves

Resolves #97
EDIT: also resolves #50

Proposed Changes

This PR exports the fixupSvgString function from this module, allowing it to be used in the paint editor and other repos (I think the GUI may benefit from using it in the sprite selector panel, but I can't remember).

Reason for Changes

Currently, the paint editor has its own "fixup SVG string" step which has diverged from the fixupSvgString function in this repo. This results in certain SVGs being displayed properly in the player, but crashing the paint editor when you try to modify them.

Allowing the paint editor to call fixupSvgString from here will ensure that all SVGs renderable here will also be editable in the paint editor without it crashing upon import.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant