How Can I Interpret An Extrenal Svg File In Two.js December 26, 2023 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 postsSimple Curved Text Within A CircleHow Do I Get Rid Of React Error Warnings Telling Me To Change Svg Attributes To Camel Case?Pause/resume Svg Animation On Android WebviewD3js Svg Overlap: Custom Colors With Many Svgs Of Random Shape Post a Comment for "How Can I Interpret An Extrenal Svg File In Two.js"