How can I interpret an extrenal svg file in two.js
问题 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 <object type="image/svg+xml" data="./svg/mydrawing.svg" id="mysvg"></object> JS var mySvg = document.getElementById("mysvg").contentDocument; var shape = two.interpret(mySvg); console.log(shape); //in console: Uncaught TypeError: Cannot call method 'toLowerCase' of undefined It's nice if I can import an external .svg file as my svg file is too big to write in HTML as Inline SVG