Synchronous file load: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 3: Line 3:
JXG.FileReader.parseFileContent('http://jsxgraph.uni-bayreuth.de/geonext/point.ggb', board, 'GeoGebra', false);
JXG.FileReader.parseFileContent('http://jsxgraph.uni-bayreuth.de/geonext/point.ggb', board, 'GeoGebra', false);


//board.create('point',[0,0],{fixed:true, name:'jsxpoint1', size:1});
board.create('point',[0,0],{fixed:true, name:'jsxpoint1', size:1});


//var J = JXG.getReference(board, "jsxpoint1");
var J = JXG.getReference(board, "jsxpoint1");
var G = JXG.getReference(board, "geogebrapoint1");
var G = JXG.getReference(board, "geogebrapoint1");


//J.setProperty({size: 10});
J.setProperty({size: 5});
G.setProperty({size: 10});
G.setProperty({size: 10});


Line 23: Line 23:
var G = JXG.getReference(board, "geogebrapoint1");
var G = JXG.getReference(board, "geogebrapoint1");


J.setProperty({size: 10});
J.setProperty({size: 5});
G.setProperty({size: 10});
G.setProperty({size: 10});



Revision as of 09:36, 7 August 2013

var board = JXG.JSXGraph.initBoard('jxgbox');
JXG.FileReader.parseFileContent('http://jsxgraph.uni-bayreuth.de/geonext/point.ggb', board, 'GeoGebra', false);

board.create('point',[0,0],{fixed:true, name:'jsxpoint1', size:1});

var J = JXG.getReference(board, "jsxpoint1");
var G = JXG.getReference(board, "geogebrapoint1");

J.setProperty({size: 5});
G.setProperty({size: 10});

board.setBoundingBox([-5, 5, 5, -5], true);