Dennis Hotson
62ffcb16c7
Bump version to v2.8.0
2018-03-01 23:57:17 +11:00
Ian Gilman
73fd49c58a
Added onRender callback for after each frame
2018-02-28 16:33:23 -08:00
mwcz
e490969ea0
add maxSpeed parameter to Layout.ForceDirected constructor
2016-07-19 14:38:01 -04:00
Dennis Hotson
921b3e83e5
Fix whitespace
2014-12-08 10:39:11 +11:00
Dennis Hotson
6f99308b44
Small fix to UMD wrapper
2014-12-08 10:38:19 +11:00
Dennis Hotson
fd785d8b10
Version bump
2014-12-08 10:31:05 +11:00
Dennis Hotson
6716fab883
Universal module pattern (for browserify support)
2014-12-08 10:29:31 +11:00
Dennis Hotson
4480a8e3ff
Bump to 2.6.1
2014-07-30 21:37:13 +10:00
Dennis Hotson
c41ff98d3c
Bump version to 2.6.0
2014-07-27 12:18:58 +10:00
Jesse
b3145ce522
Fixed order of 'onRenderStop' and 'onRenderStop' parameters when calling this.layout.start().
2014-07-12 14:18:05 -04:00
Dennis Hotson
0a588deed6
Bumped version to 2.5.0
2014-06-01 18:31:09 +10:00
Dennis Hotson
441ccfcc2b
Added tick
for manually stepping through simulation
2014-06-01 18:29:54 +10:00
Dennis Hotson
f64bda19bc
Bumped verison to 2.4.0
2014-06-01 18:25:44 +10:00
'WebOnWebOff'
50eed3e039
Allow configuration of minimum energy threshold
2014-05-20 17:18:00 +03:00
Dennis Hotson
28ca9cc5be
Bumped version to 2.3.0
2014-02-26 22:42:58 +11:00
Dennis Hotson
98369ebcb9
Consistent version number bump
2014-01-11 06:12:42 +11:00
Dennis Hotson
4ed5f13302
Whitespace fixes
2014-01-11 04:12:30 +11:00
Dennis Hotson
cec178680f
Switch order of onRenderStop and onRenderStart to preserve backwards compat
2014-01-11 04:10:34 +11:00
Fabian Kessler
81213595ed
Render start and stop callbacks for all cases.
...
Rendering can happen on demand (by calling start()) but also when adding/removing nodes and relations. I also need to be informed when rendering starts in my use case. I have a re-arrange button that needs to be toggled whenever rendering is in progress, and with these events it's nice and clean.
When the event callbacks are passed in to the Springy.Renderer start() method only (as in my previous commit) then all the other cases are left out (adding/removing nodes/relations).
2013-04-21 02:57:18 +03:00
Fabian Kessler
ffca60dcab
Documented that start() is silently ignored if running.
2013-04-20 23:48:58 +03:00
Fabian Kessler
1b20da23e2
added done callback to renderer start method.
...
The done callback existed in the ForceDirected layout start method, but no one passed that in. Maybe I don't understand how it's meant to be used? Or something was lost on the way with refactorings in springy? Anyway, with this change it's possible to call the Springy.Renderer start() method with a done callback. Please accept it, or document how it's meant to be used. Thanks ;-)
2013-04-20 23:43:28 +03:00
Fabian Kessler
143d2d4c41
updated copyright year
...
The 2010 made me think that the project was abandoned. Also, arbor.js writes that it's based on springy. Only now that I take a closer look I see that there are recent commits.
2013-04-20 23:38:12 +03:00
Dennis Hotson
5ed407c69d
Clean up adjacency table when edges are deleted
2013-03-15 11:19:47 +00:00
Dennis Hotson
43cae6cf02
Replace references to window
with root
2013-03-15 10:56:22 +00:00
Dennis Hotson
8dfad90768
Bump the major version number
2013-03-14 13:32:20 +00:00
Dennis Hotson
484ec319df
Added a top level Springy namespace
2013-03-14 13:30:14 +00:00
Dennis Hotson
9e4b8b0896
Fixed whitespace
2013-03-14 12:42:18 +00:00
Dennis Hotson
4c0a9e3e28
Added method to stop layout calculations
2013-03-14 21:53:03 +11:00
anatoly techtonik
ba7663ff2f
Parse string passed to loadJSON.
2013-03-12 18:19:55 +03:00
anatoly techtonik
1e6b1ad035
Merge remote-tracking branch 'techtonik/master'
...
* techtonik/master:
Revert mixed argument patch for addNode(), because addNodes() in loadJSON already supports single string argument.
Add JSON load capabilities to Springy.
API change: addNode() now accepts string or Node
Make demo2.html output different from demo.html
2013-03-12 12:48:11 +00:00
anatoly techtonik
adebe2dab0
Revert mixed argument patch for addNode(), because
...
addNodes() in loadJSON already supports single string
argument.
2013-03-12 15:16:45 +03:00
anatoly techtonik
1b93bd7dc7
Add JSON load capabilities to Springy.
2013-03-12 14:31:14 +03:00
anatoly techtonik
6c04b2416f
API change: addNode() now accepts string or Node
2013-03-12 13:40:59 +03:00
anatoly techtonik
947fc903fa
Enable strict mode and fix two scope errors
2013-03-12 12:30:52 +03: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
ebc949c6a6
Moved forEach implementation to bottom of file
2012-11-05 18:26:46 +11:00
Dennis Hotson
ed57f50079
Removed animation interval parameter
2012-11-05 18:24:42 +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
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
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
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