Adapt highlighting of objects: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
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> | ||