Develop and Download Open Source Software

Browse Subversion Repository

Diff of /SvgEditor.js

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 58 by isao-hara, Thu Jul 29 05:10:06 2010 UTC revision 59 by isao-hara, Thu Jul 29 05:18:00 2010 UTC
# Line 1550  function scalePath(itm, scale){ Line 1550  function scalePath(itm, scale){
1550    var path = itm.getAttribute("d").split(' ');    var path = itm.getAttribute("d").split(' ');
1551    var bbox = itm.getBBox();    var bbox = itm.getBBox();
1552    var newpath = "";    var newpath = "";
1553    var sX=1;    var sX=scale[0];
1554    var sY=1;    var sY=scale[1];
1555    var isX=true;    var isX=true;
1556    var dx = bbox.x - sX*bbox.x;    var dx = bbox.x - sX*bbox.x;
1557    var dy = bbox.y - sY*bbox.y;    var dy = bbox.y - sY*bbox.y;
   if(scale){  
     sX=scale[0];  
     sY=scale[1];  
   }  
1558    
1559    for(var i=0;i<path.length ;i++){    for(var i=0;i<path.length ;i++){
1560      if(path[i].match(/[0-9]+/)){      if(path[i].match(/[0-9]+/)){

Legend:
Removed from v.58  
changed lines
  Added in v.59

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26