-
Notifications
You must be signed in to change notification settings - Fork 635
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
now using barnes-hut for repulsion calculations
- Loading branch information
1 parent
f945392
commit aaeb2df
Showing
19 changed files
with
511 additions
and
41 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Arbor.js Changes | ||
---------------- | ||
|
||
|
||
Version 0.91 | 17 jan 2011 | ||
-------------------------- | ||
|
||
* Now supplementing brute-force repulsion calculations with the more-efficient | ||
(but noisier) barnes-hut algorithm. Use the ParticleSystem's .precision | ||
parameter to control the accuracy/speed trade-off. | ||
|
||
|
||
Version 0.9 | 12 jan 2011 | ||
------------------------- | ||
|
||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// arbor.js - version 0.5 | ||
// arbor.js - version 0.91 | ||
// a graph vizualization toolkit | ||
// | ||
{{LICENSE}} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
Arbor.js Changes | ||
---------------- | ||
|
||
|
||
Version 0.91 | 17 jan 2011 | ||
-------------------------- | ||
|
||
* Now supplementing brute-force repulsion calculations with the more-efficient | ||
(but noisier) barnes-hut algorithm. Use the ParticleSystem's .precision | ||
parameter to control the accuracy/speed trade-off. | ||
|
||
|
||
Version 0.9 | 12 jan 2011 | ||
------------------------- | ||
|
||
* Initial release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,7 +103,6 @@ | |
ctx.fillText(label||"", pt.x, pt.y+4) | ||
} | ||
}) | ||
|
||
}, | ||
|
||
resize:function(){ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -412,7 +412,7 @@ a.update{ | |
|
||
#intro{ | ||
position:fixed; | ||
top:80px; | ||
top:68px; | ||
left:20px; | ||
z-index:2; | ||
display:none; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,184 @@ | ||
/* http://meyerweb.com/eric/tools/css/reset/ | ||
v1.0 | 20080212 */ | ||
|
||
html, body, div, span, applet, object, iframe, | ||
h1, h2, h3, h4, h5, h6, p, blockquote, pre, | ||
a, abbr, acronym, address, big, cite, code, | ||
del, dfn, em, font, img, ins, kbd, q, s, samp, | ||
small, strike, strong, sub, sup, tt, var, | ||
b, u, i, center, | ||
dl, dt, dd, ol, ul, li, | ||
fieldset, form, label, legend, | ||
table, caption, tbody, tfoot, thead, tr, th, td { | ||
margin: 0; | ||
padding: 0; | ||
border: 0; | ||
outline: 0; | ||
font-size: 100%; | ||
vertical-align: baseline; | ||
background: transparent; | ||
} | ||
body { | ||
line-height: 1; | ||
} | ||
ul { | ||
list-style: none; | ||
} | ||
blockquote, q { | ||
quotes: none; | ||
} | ||
blockquote:before, blockquote:after, | ||
q:before, q:after { | ||
content: ''; | ||
content: none; | ||
} | ||
|
||
/* remember to define focus styles! */ | ||
:focus { | ||
outline: 0; | ||
} | ||
|
||
/* remember to highlight inserts somehow! */ | ||
ins { | ||
text-decoration: none; | ||
} | ||
del { | ||
text-decoration: line-through; | ||
} | ||
|
||
/* tables still need 'cellspacing="0"' in the markup */ | ||
table { | ||
border-collapse: collapse; | ||
border-spacing: 0; | ||
} | ||
|
||
/* end css reset */ | ||
|
||
|
||
|
||
body{ | ||
font-family: "athelas-1","athelas-2",serif; | ||
font-size:18px; | ||
line-height:23px; | ||
color:#330; | ||
margin:40px 80px; | ||
} | ||
|
||
#doc{ | ||
width:530px; | ||
margin:0 auto; | ||
} | ||
|
||
#doc > img{ | ||
/* position:absolute; | ||
left:40px; | ||
*/} | ||
|
||
p{ | ||
margin-bottom:.5em; | ||
} | ||
|
||
h2{ | ||
margin:3em 0 0 0; | ||
text-transform:uppercase; | ||
font-weight:bold; | ||
font-size:80%; | ||
color:#AD621C; | ||
} | ||
|
||
h3{ | ||
margin:1em 0 0 0; | ||
} | ||
|
||
.poetry + p, | ||
h3 + p, | ||
h2 + p{ | ||
text-indent:0; | ||
} | ||
|
||
|
||
ol{ | ||
margin:0 0 0 0em; | ||
} | ||
ul{ | ||
margin:.25em 0 .25em 1em; | ||
} | ||
li{ | ||
font-style:italic; | ||
margin-bottom:.5em; | ||
} | ||
|
||
li span{ | ||
text-transform:uppercase; | ||
font-weight:bold; | ||
font-style:normal; | ||
font-size:70%; | ||
letter-spacing:1px; | ||
display:block; | ||
} | ||
|
||
ol img{ | ||
margin-left:-18px; | ||
} | ||
|
||
ol em{ | ||
/* font:bold 13px Arial; */ | ||
/* text-transform:uppercase;*/ | ||
} | ||
|
||
.poetry{ | ||
font-style:italic; | ||
margin:.25em 0 .75em 1em; | ||
} | ||
|
||
.eg{ | ||
margin-left:1em; | ||
margin-right:3em; | ||
font-size:16px; | ||
font-style:italic; | ||
} | ||
|
||
#titleblock{ | ||
font:12px/25px Helvetica, Arial, sans-serif; | ||
margin-bottom:2em; | ||
color:#666; | ||
} | ||
#titleblock h1{ | ||
font-weight:normal; | ||
font-size:24px; | ||
color:#333; | ||
} | ||
|
||
#titleblock p{ | ||
font-family: "athelas-1","athelas-2",serif; | ||
text-transform:uppercase; | ||
font-weight:bold; | ||
letter-spacing:1px; | ||
} | ||
|
||
#attrib{ | ||
font:14px/19px Helvetica, Arial, sans-serif; | ||
border-top:1px solid #aaa; | ||
margin-top:2em; | ||
padding-top:3px; | ||
} | ||
a{ | ||
color:#AD621C; | ||
text-decoration:none; | ||
} | ||
|
||
a:hover{ | ||
text-decoration:underline; | ||
} | ||
|
||
code{ | ||
font:13px/23px Monaco, "Andale Mono", monospace; | ||
} | ||
.math{ | ||
margin:0 0 1em 2em; | ||
font:13px/23px Monaco, "Andale Mono", monospace; | ||
} | ||
|
||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Oops, something went wrong.