Difference between revisions of "Adapt highlighting of objects"
From JSXGraph Wiki
Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||
Line 19: | Line 19: | ||
infobox.setProperty({visible:false}); | infobox.setProperty({visible:false}); | ||
} | } | ||
− | + | ||
c.highlight = function(){ | c.highlight = function(){ | ||
− | infobox. | + | infobox.coords = new JXG.Coords(JXG.COORDS_BY_SCREEN,[this.board.mousePosRel[0]+20,this.board.mousePosRel[1]+20], this.board); |
− | + | infobox.setText(this.board.mousePosRel.toString()); | |
− | infobox. | + | infobox.setProperty({visible:true}); |
− | infobox. | + | infobox.update(); |
} | } | ||
c.noHighlight = function(){ | c.noHighlight = function(){ | ||
− | infobox. | + | infobox.setProperty({visible:false}); |
} | } | ||
− | + | ||
</jsxgraph> | </jsxgraph> | ||