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/)
- Host: GitHub
- URL: https://github.com/davewm/angularisomer
- Owner: DaveWM
- License: mit
- Created: 2014-05-20T20:09:32.000Z (almost 12 years ago)
- Default Branch: master
- Last Pushed: 2014-05-20T20:31:20.000Z (almost 12 years ago)
- Last Synced: 2025-05-24T07:39:17.343Z (12 months ago)
- Language: JavaScript
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.