SVG Importer: Add support for 'use' element.

This commit is contained in:
Jonathan Puckey 2012-11-07 17:21:35 +01:00
parent c704d285f2
commit 9e00a6282f

View file

@ -214,6 +214,11 @@ new function() {
// http://www.w3.org/TR/SVG/struct.html#DefsElement
defs: importGroup,
// http://www.w3.org/TR/SVG/struct.html#UseElement
use: function(svg, type) {
var id = svg.getAttribute('xlink:href').substr(1);
return definitions[id].clone();
},
// http://www.w3.org/TR/SVG/shapes.html#InterfaceSVGCircleElement