comparison nodejs/svg.js @ 784:37a1bd3e3ce1

mbapp accept arguments for display, width and height
author Thinker K.F. Li <thinker@codemud.net>
date Tue, 31 Aug 2010 00:06:11 +0800
parents a47431293043
children b6d9c42019d1
comparison
equal deleted inserted replaced
783:a47431293043 784:37a1bd3e3ce1
13 }; 13 };
14 14
15 exports.loadSVG=function(mb_rt,root,filename) { 15 exports.loadSVG=function(mb_rt,root,filename) {
16 return new loadSVG(mb_rt, root, filename); 16 return new loadSVG(mb_rt, root, filename);
17 }; 17 };
18
18 19
19 function loadSVG(mb_rt, root, filename) { 20 function loadSVG(mb_rt, root, filename) {
20 var doc = libxml.parseXmlFile(filename); 21 var doc = libxml.parseXmlFile(filename);
21 var nodes = doc.root().childNodes(); 22 var nodes = doc.root().childNodes();
22 var coord = mb_rt.coord_new(root); 23 var coord = mb_rt.coord_new(root);