de.js replace node icon with svg icon

enter image description here
I want use my custom svg icon instead of the circle.
The svg icon is from online url, so, I can use d3.xml to download its content.

        nodes.descendants().forEach(item => {
        const {type, thumb, url} = item.data;
        if ('2d-vector' == type && !thumb) {
            d3.xml(url).then(data => {
                (g.selectAll('.node').node() as any).append(data.documentElement);
                // .attr('x', -15)
                // .attr('y', -15)
                // .attr('width', 30)
                // .attr('height', 30);
            });
            return url;
        }
    });

Above is my tring code, but, I cannot change the svg icon width, heigth.
The original svg icon is very large than the circle.