Difference between revisions of "Adapt highlighting of objects"

From JSXGraph Wiki
Jump to: navigation, search
Line 12: Line 12:
 
JXG.Line.prototype.highlight = function(){
 
JXG.Line.prototype.highlight = function(){
 
     infobox.coords = new JXG.Coords(JXG.COORDS_BY_SCREEN,[this.board.mousePosRel[0]+20,this.board.mousePosRel[1]+20], this.board);
 
     infobox.coords = new JXG.Coords(JXG.COORDS_BY_SCREEN,[this.board.mousePosRel[0]+20,this.board.mousePosRel[1]+20], this.board);
     //infobox.plainTextStr = this.name;
+
     infobox.plainTextStr = this.board.mousePosRel.toString();
    //infobox.setPosition = (this.board.mousePosAbs[0]+20)+'px';
 
    //infobox.style.top = (this.board.mousePosAbs[1]-20)+'px';
 
 
     infobox.setProperty({visible:true});
 
     infobox.setProperty({visible:true});
 
}
 
}

Revision as of 17:33, 18 December 2009

The JavaScript code