angular-jsx-graph
JSXGraph directives for AngularJS
Requirements
Load into your app
You can get it from Bower
bower install angular-jsx-graph
Load the script files in your application:
Add the specific module to your dependencies:
angular
Usage examples
<!-- Inside the controller.js: $scope.cb = function(board) { board.create('point', [0, 1]); } -->
Directives
jxg-board
: Creates a board on the element. The element must have the id attribute. Accepts an object for the board attributes.jxg-callback
: Receives a function that is called after the board is created. The function has the board as a parameter.jxg-create
: Creates elements inside the board. For example, to create 2 points on {1,0} and {2,0}: