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

Add multipassCount to info object; skip subsequent passes in prefixIds plugin #1173

Merged
merged 1 commit into from Oct 29, 2019

Conversation

strarsis
Copy link
Contributor

@strarsis strarsis commented Oct 29, 2019

This PR adds multipassCount to the info object that is passed to the plugins.
This allows plugins to know whether they already processed a SVG node/document and how many times. This is necessary for the prefixIds plugin to skip in subsequent passes when multipass is used to prevent unintended, multiple prefixing (see #1148).

The info object is perfectly suited for this kind of extra/runtime information for the plugins,
and it is already used by prefixIds plugin for obtaining the path of the SVG (node) it is processing.

Use info object to skip subsequent passes in prefixIds plugin to prevent unintended, multiple prefixing.
@strarsis strarsis changed the title Add multipassCount to info object passed to the plugins. Add multipassCount to info object; skip subsequent passes in prefixIds plugin Oct 29, 2019
@GreLI GreLI merged commit 71c7fe7 into svg:master Oct 29, 2019
@GreLI
Copy link
Member

GreLI commented Oct 29, 2019

released in v1.3.1

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.

None yet

2 participants