try to draw 1000*1000 svg grig

This commit is contained in:
Gnieark 2016-06-29 12:20:16 +02:00
parent a7542125de
commit f186b5ebe6

View File

@ -5,7 +5,7 @@ function createElem(type,attributes){
return elem; return elem;
} }
function createElemNs(type,attributes){ function createElemNs(type,attributes){
var elem=document.createElement(type); var elem=document.createElementNS("http://www.w3.org/2000/svg",type);
for (var i in attributes) for (var i in attributes)
{elem.setAttributeNs(null,i,attributes[i]);} {elem.setAttributeNs(null,i,attributes[i]);}
return elem; return elem;