Giter Site home page Giter Site logo

x='NaN' about external-svg-sprite-loader HOT 5 CLOSED

bensampaio avatar bensampaio commented on July 29, 2024
x='NaN'

from external-svg-sprite-loader.

Comments (5)

bensampaio avatar bensampaio commented on July 29, 2024

@gmdvdv sorry for the delay, I was on holidays when you reported this and I ended up forgetting about it. Are you still experiencing this problem? Could you give an example of svgs you are using? Thank you!

from external-svg-sprite-loader.

usebaz avatar usebaz commented on July 29, 2024

@bensampaio in my case it reproduces when external-svg-sprite-loader try add to build svg font, and function:
https://github.com/karify/external-svg-sprite-loader/blob/8c57bd4cba28261fcfb7b299363b1aac462e5e13/lib/SvgSprite.js#L117

return width: NaN

maybe need add warning or error for easy debug it's case?

from external-svg-sprite-loader.

bensampaio avatar bensampaio commented on July 29, 2024

Is your SVG setting the viewport or height and width attributes? Those are mandatory for this plugin to work as expected.

from external-svg-sprite-loader.

usebaz avatar usebaz commented on July 29, 2024

no, not have. But I think loader must throw error or ignore this file and show warning

from external-svg-sprite-loader.

bensampaio avatar bensampaio commented on July 29, 2024

@usebaz can you check if version 4.0.0-beta.6 fixes your problem? :)

from external-svg-sprite-loader.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.