Skip to content

Improvement: Update defs id's inside style attribute when needed#56

Open
ghost wants to merge 1 commit into
masterfrom
unknown repository
Open

Improvement: Update defs id's inside style attribute when needed#56
ghost wants to merge 1 commit into
masterfrom
unknown repository

Conversation

@ghost
Copy link
Copy Markdown

@ghost ghost commented Oct 8, 2017

I use inkscape to generate some svg's. It includes de linearGradient and other properties inside the style attribute of the path elements so the id's of those definitions should also be updated to maintain the references.

The piece of code i'm adding, just search for the property name inside the style attribute and tries to replace the link with the newId that has an 'injectCount' suffix.

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.

0 participants