Start on background properties

git-svn-id: http://svg-edit.googlecode.com/svn/trunk@642 eee81c28-f429-11dd-99c0-75d572ba1ddd
This commit is contained in:
Jeff Schiller
2009-09-14 05:53:56 +00:00
parent ea7133d271
commit 3065e6a451
2 changed files with 13 additions and 0 deletions

View File

@@ -563,6 +563,13 @@ function BatchCommand(text) {
svgroot.setAttribute("xmlns", svgns);
svgroot.setAttribute("xmlns:xlink", xlinkns);
container.appendChild(svgroot);
var svgbkgnd = svgdoc.createElementNS(svgns, "rect");
svgbkgnd.setAttribute("width", "100%");
svgbkgnd.setAttribute("height", "100%");
svgbkgnd.setAttribute("fill", "none");
svgbkgnd.setAttribute("fill-opacity", "100%");
svgbkgnd.setAttribute("id", "svgbkgnd");
svgroot.appendChild(svgbkgnd);
var svgzoom = svgdoc.createElementNS(svgns, "svg");
svgzoom.setAttribute('id', 'svgzoom');
svgzoom.setAttribute('viewBox', '0 0 640 480');