Adapt highlighting of objects: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 11: Line 11:


JXG.Line.prototype.highlight = function(){
JXG.Line.prototype.highlight = function(){
     infobox.coords = new JXG.Coords(JXG.COORDS_BY_SCREEN,[infobox.board.mousePosRel[0]+20,infobox.board.mousePosRel[1]+20]);
     infobox.coords = new JXG.Coords(JXG.COORDS_BY_SCREEN,[brd.mousePosRel[0]+20,brd.mousePosRel[1]+20]);
     //infobox.plainTextStr = this.name;
     //infobox.plainTextStr = this.name;
     //infobox.setPosition = (this.board.mousePosAbs[0]+20)+'px';
     //infobox.setPosition = (this.board.mousePosAbs[0]+20)+'px';

Revision as of 16:32, 18 December 2009

The JavaScript code