try to draw 1000*1000 svg grig
This commit is contained in:
parent
02dc6a18c6
commit
50f1686af2
|
@ -4,10 +4,10 @@ function createElem(type,attributes){
|
||||||
{elem.setAttribute(i,attributes[i]);}
|
{elem.setAttribute(i,attributes[i]);}
|
||||||
return elem;
|
return elem;
|
||||||
}
|
}
|
||||||
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.setAttributeNS(null,i,attributes[i]);}
|
||||||
return elem;
|
return elem;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -15,7 +15,7 @@ function createElemNs(type,attributes){
|
||||||
function tron(bot1,bot2,xdcheck){
|
function tron(bot1,bot2,xdcheck){
|
||||||
|
|
||||||
//var svgDoc = svg.contentDocument;
|
//var svgDoc = svg.contentDocument;
|
||||||
var rect=createElemNs('rect',{'x':'10','y':'10','width':'50','height':'80','style':'stroke:#000000; fill:none;'});
|
var rect=createElemNS('rect',{'x':'10','y':'10','width':'50','height':'80','style':'stroke:#000000; fill:none;'});
|
||||||
|
|
||||||
document.getElementById("map").appendChild(rect);
|
document.getElementById("map").appendChild(rect);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user