Changeset 34

Show
Ignore:
Timestamp:
05/30/08 08:57:34 (6 months ago)
Author:
bi..@lilyapp.org
Message:

fix bugs affecting using the api via messages sent to the inlet

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lily/lily/chrome/content/externals/svg.js

    r16 r34  
    416416        //pop current matrix off the stack, restore previous 
    417417        this.inlet1["popMatrix"]=function() { 
    418                 popMatrix(); 
     418                thisPtr.popMatrix(); 
    419419        } 
    420420         
     
    425425        //replace the current matrix with the identity matrix 
    426426        this.inlet1["resetMatrix"]=function() { 
    427                 resetMatrix(); 
     427                thisPtr.resetMatrix(); 
    428428        } 
    429429         
     
    657657         
    658658        this.noFill=function() { 
    659                 fillColor = "none";    
     659                thisPtr.fillColor = "none";    
    660660        } 
    661661         
    662662        //set stroke 
    663663        this.inlet1["stroke"]=function(color) { 
    664                 stroke(color); 
     664                thisPtr.stroke(color); 
    665665        } 
    666666         
     
    751751                var h = params.split(" ")[3]; //length 
    752752                 
    753                 rect(x,y,w,h); 
     753                thisPtr.rect(x,y,w,h); 
    754754                 
    755755        } 
     
    802802                var ry = params.split(" ")[3]; //length 
    803803                 
    804                 ellipse(cx,cy,rx,ry); 
     804                thisPtr.ellipse(cx,cy,rx,ry); 
    805805                 
    806806        } 
     
    847847                var y2 = params.split(" ")[3]; //length 
    848848                 
    849                 line(x1,y1,x2,y2); 
     849                thisPtr.line(x1,y1,x2,y2); 
    850850                 
    851851        } 
     
    891891                var y   = params.split(" ")[2]; //top            
    892892                 
    893                 text(str,x,y); 
     893                thisPtr.text(str,x,y); 
    894894                 
    895895        }