My FeedDiscussionsHeadless CMS
New
Sign in
Log inSign up
Learn more about Hashnode Headless CMSHashnode Headless CMS
Collaborate seamlessly with Hashnode Headless CMS for Enterprise.
Upgrade ✨Learn more

BBOX support in JSDOM

Mohammad Wali's photo
Mohammad Wali
·Feb 25, 2017

I am trying to create a node CLI which will parse svg ( contains path elements only ) and then build me a json data with each path's BBOX.

So far i have tried JSDOM to archive this, it can parse my svg and then select the elements for me but when i print element it says it is HTMLUnknownElement . I looked at their issues in github and found that they said they are not supporting SVG dom. Is there something which can help me get this done ?