Commit Graph

37 Commits

Author SHA1 Message Date
shigeru.nakajima
322a7bae8b Add node color. 2014-10-10 18:48:27 +09:00
Lucio Valentin
487afff1b2 Update springyui.js
A simple error at end of line 35.
2014-07-22 16:58:16 -03:00
Jesse
f51be2fc48 Enabled the ability to specify the parameter 'minEnergyThreshold' in springyui.js.
Also made the default value in springyui be very small, in order to cause the animation to end/stop smoothly.
2014-07-12 17:32:02 -04:00
tdhsmith
6cb2dd813f Added auto text orientation for edge labels
Added new boolean option edgeLabelsUpright which makes edge labels automatically flip over the edge when they are upside-down.  Addresses readability aspect of #56.
2014-02-11 16:02:49 -06:00
tdhsmith
9eb89a03cf License mistake
Project standard doesn't seem to list all contributors in the license, so removed myself
2014-02-04 18:29:39 -06:00
tdhsmith
96f889ca41 Added basic functionality for image nodes
Extended the drawNode function to include basic image drawing. Adjusted the height and width functions to accommodate natural image dimensions as well as those set with node.data.image.width etc.
2014-02-04 18:19:33 -06:00
Dennis Hotson
36a98b03cd Font size bug fix 2014-01-11 05:26:23 +11:00
Dennis Hotson
00cbc7f64e Improved calculation of text angle and spacing 2014-01-11 05:17:41 +11:00
Dennis Hotson
36c885871e Merge remote-tracking branch 'oak-tree/master'
* oak-tree/master:
  set label of edge at the angle of this edge.
2014-01-11 04:40:40 +11:00
cp123127
1b85a2e9b8 Fixed bug that causes inconsistant behavior for highlighting selected nodes. 2014-01-11 03:48:17 +11:00
Dennis Hotson
bcd9efd220 Whitespace fix 2014-01-11 03:45:40 +11:00
oak-tree
4acb7e9fb7 set label of edge at the angle of this edge.
moreover, if two vertices have more than 1 edge allow each edge to have its own label. make sure each labels does not interfere each other.
2014-01-08 21:04:52 +02:00
mikeleber
4adb4308dd Update springyui.js
font property for nodes and edges
graph.newEdge(AHM_10, AHM_50 ,{font:'10px Verdana, sans-serif', label: 'ablehnen', color: '#97f23d'});
2013-05-30 11:43:54 +02:00
Dennis Hotson
43f725e61a Accidental global functions 2013-03-19 21:41:01 +11:00
Dennis Hotson
484ec319df Added a top level Springy namespace 2013-03-14 13:30:14 +00:00
Dennis Hotson
3df408fcc1 Basic double click handler 2013-03-14 22:26:28 +11:00
Dennis Hotson
4c0a9e3e28 Added method to stop layout calculations 2013-03-14 21:53:03 +11: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
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
lowerkey
2f3118797e Added nodeSelected parameter, I think. 2012-09-26 18:19:24 +03: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
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
Dennis Hotson
affbca426c Minor tidy ups
- whitespace fix
- added a few var's
2011-08-12 19:59:09 +10: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
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
bc489ac33e Updated springy to latest code. 2010-06-15 21:15:40 +10:00