Skip to content

Commit

Permalink
bower and minification
Browse files Browse the repository at this point in the history
  • Loading branch information
havok2905 committed May 21, 2015
1 parent b7512e5 commit 4a021a1
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 4 deletions.
22 changes: 22 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "cs-arc",
"version": "0.0.1",
"authors": [
"[email protected]"
],
"license": "MIT",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"main": [
"./cs-arc.min.js"
],
"dependencies": {
"angular": "~1.3.*",
"d3": "~3.5.*"
}
}
1 change: 1 addition & 0 deletions cs-arc.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 2 additions & 4 deletions src/arc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
var d3 = require('d3');

var Arc = function(options) {
this.inner = options.inner;
this.outer = options.outer;
Expand All @@ -14,7 +12,7 @@ var Arc = function(options) {
* http://tauday.com/tau-manifesto
* https://www.youtube.com/watch?v=jG7vhMMXagQ
*/

Arc.arcLength = function(percent) {
return percent * 2 * Math.PI;
};
Expand Down Expand Up @@ -66,4 +64,4 @@ Arc.prototype.render = function() {
.attr('d', this.obj);
};

module.exports = Arc;
module.exports = Arc;

0 comments on commit 4a021a1

Please sign in to comment.