Dennis Hotson
7ee84bf6e0
Fixed a few issues reported by jshint
2013-03-12 10:43:45 +00:00
Dennis Hotson
7c39106546
Merge pull request #30 from techtonik/master
...
Enable strict mode for Springy.js
2013-03-12 02:54:11 -07:00
anatoly techtonik
947fc903fa
Enable strict mode and fix two scope errors
2013-03-12 12:30:52 +03:00
Dennis Hotson
77dfdb9e1d
Merge pull request #28 from techtonik/master
...
Simplified API for adding nodes and edges.
2013-02-05 15:12:46 -08:00
anatoly techtonik
e38e2202db
Simplified API for adding edges.
2013-02-06 01:15:34 +03:00
anatoly techtonik
9ac764d634
Simplify addNodes() even more by using variable number of arguments.
2013-02-06 00:22:18 +03:00
anatoly techtonik
90b23f131e
Add helper method .addNodes() that accepts list of strings.
2013-02-05 22:36:01 +03:00
anatoly techtonik
bc1e1a13a3
Use in
operator to check for index existance.
...
The check (key in obj) is more readable than
(typeof key[obj] !== 'undefined').
2013-02-05 22:31:39 +03:00
anatoly techtonik
6b52b72c6b
Don't use typeof for Node and Edge 'data' field.
...
`data` field is always set for Node and Edge objects,
no need to check for existence - value check is enough
for `data` fields.
2013-02-05 22:11:12 +03:00
anatoly techtonik
1150320e1c
Check local variables set with var === undefined.
...
Local variables always exist, so value check is
enough. This makes it easier to read code for me.
2013-02-05 21:56:33 +03:00
Dennis Hotson
2c51b08e49
Update README.mkdn
2012-11-07 21:05:01 +11:00
Dennis Hotson
7691995ef6
Update README.mkdn
2012-11-07 03:21:06 +11:00
Dennis Hotson
f8102547ad
Fixed Raphael demo
2012-11-05 19:05:21 +11:00
Dennis Hotson
ebc949c6a6
Moved forEach implementation to bottom of file
2012-11-05 18:26:46 +11:00
Dennis Hotson
9f680845c3
Removed edge label from demo
2012-11-05 18:24:42 +11:00
Dennis Hotson
ed57f50079
Removed animation interval parameter
2012-11-05 18:24:42 +11:00
Dennis Hotson
b373d7ead6
Tidied up comments from code review
2012-10-21 20:16:51 +11:00
Dennis Hotson
fd1cd6ba49
Only call nodeSelected callback if it has been defined
2012-10-21 20:16:15 +11:00
Dennis Hotson
87c46bee56
Merge remote branch 'lowerkey/master'
...
* lowerkey/master:
Removed not yet implemented at the bottom of readme
Using nodeSelected parameter.
Added nodeSelected parameter, I think.
Update README.mkdn
2012-10-21 20:08:57 +11:00
Dennis Hotson
d3736ce974
Merge pull request #14 from zcourts/master
...
add support for Array.foreach if not supported
2012-10-21 01:52:33 -07:00
lowerkey
250a7cef72
Removed not yet implemented at the bottom of readme
2012-09-26 18:33:22 +03:00
lowerkey
13289761d0
Using nodeSelected parameter.
2012-09-26 18:21:33 +03:00
lowerkey
2f3118797e
Added nodeSelected parameter, I think.
2012-09-26 18:19:24 +03:00
lowerkey
ed18a912fe
Update README.mkdn
...
Added goal for this fork
2012-09-26 18:13:15 +03:00
Dennis Hotson
3e0a1be334
Added version info
2012-05-16 21:35:17 +10:00
Courtney Robinson
e06daa7bbc
Add support for Array.forEach if not support (as in some I.E versions)
2012-04-04 21:04:19 +02:00
Dennis Hotson
771dcd24fb
Merge pull request #12 from mikaa123/master
...
Edge label support in springyui
2012-03-23 18:02:23 -07:00
Michael Sokol
a48a74907e
labels: tabs instead of white spaces
2012-03-23 20:37:29 +01:00
Michael Sokol
1a1a2bad3d
label: fixing text
2012-03-23 14:26:45 +01:00
Michael Sokol
cd89680700
Refactoring edge labels' code
2012-03-23 12:13:24 +01:00
Michael Sokol
bbfcf99b72
Adding edge label support in springyui
2012-03-23 09:37:34 +01:00
Dennis Hotson
da536e5a0f
Removed crufty .gitignore file
2011-12-23 23:05:06 +11:00
Dennis Hotson
3c95b6312b
Merge pull request #10 from GunioRobot/clean
...
Hi! I cleaned up your code for you!
2011-12-18 07:05:29 -08:00
Gun.io Whitespace Robot
dbc44e04e9
Remove whitespace [Gun.io WhitespaceBot]
2011-12-18 06:50:34 -05:00
Dennis Hotson
2bf99814b5
Merge branch 'demo-raphael' of https://github.com/slig/springy
...
* 'demo-raphael' of https://github.com/slig/springy :
Very crude demo using RaphaelJS
2011-11-26 13:59:38 +11:00
Dennis Hotson
9a196f8673
Merge branch 'review'
...
* review:
Avoid divide by zero and massive forces at small distances
Renamed f -> a. f is actually representing acceleration.
A few updates based on code review by amcameron
add review comments for springyui.js
Add some code review comments.
2011-11-26 13:58:50 +11:00
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
Tiago Serafim
74dfafc7ce
Very crude demo using RaphaelJS
2011-11-25 16:58:13 -02:00
Dennis Hotson
84bf82ad5e
Merge pull request #6 from codr/master
...
Added detachNode
2011-10-20 17:14:16 -07:00
Cody
8995a60602
Consistent brace style
2011-08-23 11:50:42 -06:00
Cody
4b66715613
Merge branch 'master' of https://github.com/dhotson/springy
2011-08-23 11:49:10 -06:00
Cody
fa333bd664
added Graph.detachNode which removes edges associated with a given node.
2011-08-23 11:48:57 -06:00
Dennis Hotson
b791fafe9a
A few updates based on code review by amcameron
2011-08-15 16:52:18 +10:00
Dennis Hotson
a0d882d360
Fallback requestAnimationFrame has a 10ms setTimeout
2011-08-15 14:20:58 +10:00
Dennis Hotson
24420595c0
Added credit
2011-08-15 14:20:48 +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