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.board.mousePosRel.toString();
+
     infobox.setText(this.board.mousePosRel.toString());
 
     infobox.setProperty({visible:true});
 
     infobox.setProperty({visible:true});
 
}
 
}

Revision as of 17:35, 18 December 2009

The JavaScript code