angular-coordinate

Coordiante system for AngularJS


Keywords
coordinate, coordinatesystem, math
License
MIT
Install
bower install angular-coordinate

Documentation

angular-coordinate

Coordiante system for AngularJS

Features

  • Drag & Drop
  • Zoom
  • Easy to use

Installation

$ bower install angular-coordinate

Usage

View

<coordinate api="coordinate" width="100%" height="100%"></coordinate>
Available attributes
  • width
  • height
  • scaleX
  • scaleY
  • fullscreen
  • show-input
  • api

Controller

You need to provide a function called coordinate in your scope to access the API

$scope.coordinate = function (coordinate) {
    coordinate.addPoint(1, 1);
    coordinate.addFunction('x^3');
};
API

TODO

Coming soon...

  • Smarter scaling on zoom
  • Tests
  • current x value on graph
  • scroll/zoom
  • axis labels ('intelligent')
  • display area current point x/y
  • drag drop
  • fullscreen

Bitdeli Badge