Difference between revisions of "Synchronous file load"

From JSXGraph Wiki
Jump to navigationJump to search
 
Line 8: Line 8:
 
var G = JXG.getReference(board, "geogebrapoint1");
 
var G = JXG.getReference(board, "geogebrapoint1");
  
J.setProperty({size: 5});
+
J.setAttribute({size: 5});
G.setProperty({size: 10});
+
G.setAttribute({size: 10});
  
 
//board.setBoundingBox([-5, 5, 5, -5], true);
 
//board.setBoundingBox([-5, 5, 5, -5], true);
Line 23: Line 23:
 
var G = JXG.getReference(board, "geogebrapoint1");
 
var G = JXG.getReference(board, "geogebrapoint1");
  
J.setProperty({size: 5});
+
J.setAttribute({size: 5});
G.setProperty({size: 10});
+
G.setAttribute({size: 10});
  
 
board.setBoundingBox([-5, 5, 5, -5], true);
 
board.setBoundingBox([-5, 5, 5, -5], true);

Latest revision as of 18:59, 24 June 2020

var board = JXG.JSXGraph.initBoard('jxgbox');
JXG.FileReader.parseFileContent('//jsxgraph.org/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.setAttribute({size: 5});
G.setAttribute({size: 10});

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