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

Negative value in viewBox attribute #121

Open
Postnov opened this issue Jan 9, 2019 · 0 comments
Open

Negative value in viewBox attribute #121

Postnov opened this issue Jan 9, 2019 · 0 comments

Comments

@Postnov
Copy link

Postnov commented Jan 9, 2019

When files are compiled, negative values become positive and "NaN" is added before them. NaN is not a problem, I remove it with gulp-replace. The problem is that I cannot return negative viewBox values, which gulp-svg-sprites replaced with positive ones.

Gulp-task

.pipe(svgSprite({
    mode: "symbols",
    // preview: false,
    selector: "svg-%f",
    svg: {
        symbols: 'svg_sprite.pug'
    }
}

Init svg viewBox: viewBox="-49 141 512 512"
Finish svg viewBox: viewBox="NaN 49 141 512 512"

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

No branches or pull requests

1 participant