How Can I Interpret An Extrenal Svg File In Two.js July 20, 2022 Post a Comment Is there any way I can interpret an external svg file with object tag in two.js? I tried in the way below but.. HTML )[0]; svgObject.onload = function(){ var mySvg = svgObject.contentDocument.getElementsByTagName('svg')[0]; var two = new Two(); var shape = two.interpret(mySvg); console.log(shape); }; Copy Share You may like these postsHow To Fill An Image Inside My Svg Circles In D3.jsHow To Draw Animation From End Of The Line (svg)?How Do I Create A Style Sheet For An Svg Element?Conversion Of Jpeg To Svg In Javascript Post a Comment for "How Can I Interpret An Extrenal Svg File In Two.js"