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

svg path getTotalLength function is undefined #1330

Open
tedgoldstein opened this issue Dec 27, 2015 · 6 comments
Open

svg path getTotalLength function is undefined #1330

tedgoldstein opened this issue Dec 27, 2015 · 6 comments
Labels

Comments

@tedgoldstein
Copy link

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

@domenic
Copy link
Member

domenic commented Dec 27, 2015

We would welcome a pull request adding better SVG support to jsdom. In general we do not implement most of SVG.

@tedgoldstein
Copy link
Author

I will assess. What package or directory does svg live in?

Sent from my iPhone

On Dec 27, 2015, at 10:11 AM, Domenic Denicola notifications@github.com wrote:

We would welcome a pull request adding better SVG support to jsdom. In general we do not implement most of SVG.


Reply to this email directly or view it on GitHub.

@domenic
Copy link
Member

domenic commented Dec 29, 2015

We currently don't have any SVG implementation. It might be best to wait on that until @Sebmaster finishes his major node refactor...

@grnadav
Copy link

grnadav commented Nov 21, 2016

Any progress on the issue?
I'm using 9.8.3 and still getting this error (SVGPathElement is not defined)

@domenic
Copy link
Member

domenic commented Nov 21, 2016

https://twitter.com/slicknet/status/782274190451671040

@brandonros
Copy link

brandonros commented Aug 7, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

5 participants