Aligning text: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 15: Line 15:
     brd.create('text', [3, 6, "anchorX middle"], {anchorX:'middle', cssClass:'mytext'});
     brd.create('text', [3, 6, "anchorX middle"], {anchorX:'middle', cssClass:'mytext'});
     brd.create('text', [3, 5, "anchorX right"], {anchorX:'right', cssClass:'mytext'});
     brd.create('text', [3, 5, "anchorX right"], {anchorX:'right', cssClass:'mytext'});
     brd.create('text', [3, 8, "Default"], {cssClass:'mytext', offset:[-30,0]});
     brd.create('text', [3, 8, "Default"], {cssClass:'mytext', offset:[-10,0]});


     brd.create('line', [-2, 0, 1], {strokeWidth:1, dash:2});
     brd.create('line', [-2, 0, 1], {strokeWidth:1, dash:2});

Revision as of 07:50, 19 October 2012

The underlying JavaScript code