Commit Graph

24 Commits

Author SHA1 Message Date
Dennis Hotson
686abaa367 Avoid divide by zero and massive forces at small distances 2011-11-26 13:56:10 +11:00
Dennis Hotson
e453d7728a Renamed f -> a. f is actually representing acceleration. 2011-11-26 13:44:32 +11:00
Dennis Hotson
b791fafe9a A few updates based on code review by amcameron 2011-08-15 16:52:18 +10:00
Dennis Hotson
376e116714 Merge branch 'master' into review
* master:
  Oops, forgot to create local var

Conflicts:
	springyui.js
2011-08-15 14:16:56 +10:00
Dennis Hotson
b4687059d2 Oops, forgot to create local var 2011-08-15 14:15:16 +10:00
Dennis Hotson
ddc71c42c6 Merge remote branch 'origin/master' into review
* origin/master:
  Attach graph and layout objects to springyui element.
  Consistent brace style
  Eliminate repeated calls to layout.start()
  Minor tidy ups

Conflicts:
	springy.js
	springyui.js
2011-08-15 14:14:43 +10:00
Dennis Hotson
193e99a619 Attach graph and layout objects to springyui element. 2011-08-15 14:10:13 +10:00
Dennis Hotson
a918da30a4 Consistent brace style 2011-08-15 14:09:45 +10:00
Andrew Cameron
e04ea5a767 add review comments for springyui.js 2011-08-14 11:57:04 -04:00
Andrew Cameron
d549ac1d98 Add some code review comments. 2011-08-14 11:18:04 -04:00
Dennis Hotson
8f869d427a Eliminate repeated calls to layout.start() 2011-08-13 20:56:40 +10:00
Dennis Hotson
affbca426c Minor tidy ups
- whitespace fix
- added a few var's
2011-08-12 19:59:09 +10:00
Dennis Hotson
14aea1afe6 Merge pull request #4 from codr/master
Avoid NaN errors
2011-08-10 17:31:48 -07:00
Cody
aad5e3cb80 Merge branch 'master' of https://github.com/dhotson/springy 2011-08-10 16:44:52 -06:00
Cody
5837787992 changed divide method to avoid NaN errors 2011-08-10 16:44:50 -06:00
Dennis Hotson
12bbab87c2 Cache text width calculation for better performance 2011-08-11 02:33:31 +10:00
Dennis Hotson
0aea9582ff Smoother animation using requestAnimFrame 2011-08-11 02:27:28 +10:00
Dennis Hotson
3662393702 Fixed bug in Graph.prototype.merge
Was using 'graph' var instead of 'this'.. thanks to Nessia for reporting this.
2011-06-22 09:21:14 +10:00
Toby Cole
15dbcf89d5 Updating demo to work with named args in the constructor 2011-02-22 09:30:40 +00:00
Toby Cole
2bc3f927bd Fixing font definitions so systems without Verdana (eg Linux) don't look so bad.
Also moving the constructor of springyUI to use named parameters so we can specify the dampening repulsion and stiffness in the constructor.
2011-02-22 09:25:37 +00:00
Dennis Hotson
6eabd21ffd Added demo link. 2010-06-15 22:21:28 +10:00
Dennis Hotson
bc489ac33e Updated springy to latest code. 2010-06-15 21:15:40 +10:00
Dennis Hotson
af82e4060b Whole bunch of improvements. 2010-04-17 00:38:39 +10:00
Dennis Hotson
8f9d858ad1 Initial commit 2010-04-16 12:20:10 +10:00