try to draw 1000*1000 svg grig

This commit is contained in:
Gnieark 2016-06-29 12:21:11 +02:00
parent f186b5ebe6
commit b81e5f36d4

View File

@ -7,7 +7,7 @@ function createElem(type,attributes){
function createElemNs(type,attributes){ function createElemNs(type,attributes){
var elem=document.createElementNS("http://www.w3.org/2000/svg",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.setAttribute(i,attributes[i]);}
return elem; return elem;
} }