From 3ba43d8536ed35c669ce809f1e249e55084fcc0d Mon Sep 17 00:00:00 2001 From: Nils Schneider Date: Sun, 10 Jun 2012 18:55:18 +0200 Subject: [PATCH] rebase on master --- html/force.js | 6 +----- html/pacman.js | 4 ++++ 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/html/force.js b/html/force.js index c742780..f7e856a 100644 --- a/html/force.js +++ b/html/force.js @@ -199,10 +199,6 @@ var force = d3.layout.force() } }) -var angle = d3.scale.linear() - .domain([0, 1, 2, 3]) - .range([0.01, Math.PI/4, 0.01, Math.PI/4]) - force.on("tick", function() { var size = force.size() var nodes = force.nodes() @@ -229,7 +225,7 @@ force.on("tick", function() { vis.selectAll(".node").attr("transform", function(d) { return "translate(" + d.x + "," + d.y + ")"; - }) + }) }) var data diff --git a/html/pacman.js b/html/pacman.js index fec907d..f374ac2 100644 --- a/html/pacman.js +++ b/html/pacman.js @@ -1,3 +1,7 @@ +var angle = d3.scale.linear() + .domain([0, 1, 2, 3]) + .range([0.01, Math.PI/4, 0.01, Math.PI/4]) + d3.timer(pacman) var a = 0