An open API service indexing awesome lists of open source software.

https://github.com/davewm/angularisomer

Angular JS directives for Isomer (http://jdan.github.io/isomer/)
https://github.com/davewm/angularisomer

Last synced: 6 months ago
JSON representation

Angular JS directives for Isomer (http://jdan.github.io/isomer/)

Awesome Lists containing this project

README

          

AngularIsomer
=============

Angular JS directives for Isomer http://jdan.github.io/isomer/

This directive allows you to bind a canvas to an array of isomer shapes, by passing the array into the "ng-shapes" attribute. You can use "isomer" as either an element or attribute on a canvas, for example:

```html

```

ng-shapes can either be an array of shapes, or of objects containing a "shape" and "colour":

```javascript
var shapes = [Isomer.Shape.Prism(Isomer.Point.ORIGIN, 1, 1, 1)];
// or
shapes = [{shape: Isomer.Shape.Prism(Isomer.Point.ORIGIN, 1, 1, 1), colour = new Isomer.Color(255,0,0)}];
```

Note: the directive deep watches the ng-shapes array.