Security News
require(esm) Backported to Node.js 20, Paving the Way for ESM-Only Packages
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
angular-jsx-graph
Advanced tools
JSXGraph directives for AngularJS
You can get it from Bower
bower install angular-jsx-graph
Load the script files in your application:
<script type="text/javascript" src="bower_components/angular/angular.js"></script>
<script type="text/javascript" src="http://cdnjs.cloudflare.com/ajax/libs/jsxgraph/0.99.3/jsxgraphcore.js"></script>
<script type="text/javascript" src="bower_components/angular-jsx-graph/angular-jsx-graph.js"></script>
Add the specific module to your dependencies:
angular.module('myApp', ['jsxGraph', ...])
<!--
Inside the controller.js:
$scope.cb = function(board) {
board.create('point', [0, 1]);
}
-->
<div id="box" class="jxgbox" style="width:600px; height:600px;"
jxg-board="{axis: true, grid: true}" jxg-callback="cb"></div>
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}:
<div id="box" jxg-board jxg-create="[['point', [1, 0]], ['point', [2, 0]]]"></div>
FAQs
JSXGraph directives for AngularJS
The npm package angular-jsx-graph receives a total of 3 weekly downloads. As such, angular-jsx-graph popularity was classified as not popular.
We found that angular-jsx-graph demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
require(esm) backported to Node.js 20, easing the transition to ESM-only packages and reducing complexity for developers as Node 18 nears end-of-life.
Security News
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.