d3-ng2-service icon indicating copy to clipboard operation
d3-ng2-service copied to clipboard

Load svg from File

Open bene95 opened this issue 6 years ago • 0 comments

Hi,

is it possible to import a svg file via angular and typescript similar to javascript and then edit it?

Like this in JS

d3.xml("test.svg").mimeType("image/svg+xml").get(function(error, xml) { if (error) throw error; d3.select("#svgEmbed").node().appendChild(xml.documentElement); });

Thanks for your help

bene95 avatar Aug 15 '18 14:08 bene95