Adapt highlighting of objects: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
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 16:33, 18 December 2009

The JavaScript code