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
svg path getTotalLength function is undefined #1330
Comments
We would welcome a pull request adding better SVG support to jsdom. In general we do not implement most of SVG. |
I will assess. What package or directory does svg live in? Sent from my iPhone
|
We currently don't have any SVG implementation. It might be best to wait on that until @Sebmaster finishes his major node refactor... |
Any progress on the issue? |
2017 and I'm getting "SVGPathElement is not defined" trying to run some unit tests with jsdom + Jest + d3.js/c3.js Edit: just found this #1423 |
I am porting some d3 code to use jsdom to render on the server. The package uses the svg path interface function pathNode.getTotalLength() which is documented here:
https://developer.mozilla.org/en-US/docs/Web/API/SVGPathElement
But getTotalPathLength is not defined for path node objects in jsdom. I see that jsdom uses a lot of packages. What package should define svg path getTotalLength() ?
Thanks,
Ted
The text was updated successfully, but these errors were encountered: