Difference between revisions of "Adapt highlighting of objects"

From JSXGraph Wiki
Jump to: navigation, search
Line 1: Line 1:
 
<jsxgraph width="600" height="600">
 
<jsxgraph width="600" height="600">
 
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-5, 5, 5, -5], grid: false});
 
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox: [-5, 5, 5, -5], grid: false});
 +
var infobox = brd.create('text',[0,0,'xxx'],{visible:false});
 
var p1 = brd.create('point',[3,0]);
 
var p1 = brd.create('point',[3,0]);
 
var p2 = brd.create('point',[-1,0]);
 
var p2 = brd.create('point',[-1,0]);
Line 8: Line 9:
  
 
var c = brd.create('circle',[p2,p3]);
 
var c = brd.create('circle',[p2,p3]);
var infobox = brd.create('text',[0,0,'xxx'],{visible:false});
 
  
 
JXG.Line.prototype.highlight = function(){
 
JXG.Line.prototype.highlight = function(){

Revision as of 17:37, 18 December 2009

The JavaScript code