bum 0.0.4 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (576) hide show
  1. data/README +0 -12
  2. data/bin/bum +16 -49
  3. data/bin/bum_master +20 -0
  4. data/lib/actor.rb +0 -0
  5. data/lib/app_role.rb +83 -0
  6. data/lib/client.rb +104 -0
  7. data/lib/db_crap.rb +85 -0
  8. data/lib/db_role.rb +107 -0
  9. data/lib/demo_socket.rb +51 -0
  10. data/lib/master.rb +109 -0
  11. data/lib/master_web.rb +81 -0
  12. data/lib/nice_socket.rb +77 -0
  13. data/lib/node.rb +96 -0
  14. data/lib/proxy_role.rb +132 -0
  15. data/lib/role.rb +99 -0
  16. data/lib/scenario.rb +186 -0
  17. data/lib/server.rb +30 -0
  18. data/lib/stats_role.rb +89 -0
  19. data/public/app.css +91 -0
  20. data/public/css/light.css +105 -0
  21. data/public/d3/LICENSE +26 -0
  22. data/public/d3/Makefile +247 -0
  23. data/public/d3/README.md +51 -0
  24. data/public/d3/d3.chart.js +984 -0
  25. data/public/d3/d3.chart.min.js +1 -0
  26. data/public/d3/d3.csv.js +92 -0
  27. data/public/d3/d3.csv.min.js +1 -0
  28. data/public/d3/d3.geo.js +692 -0
  29. data/public/d3/d3.geo.min.js +1 -0
  30. data/public/d3/d3.geom.js +825 -0
  31. data/public/d3/d3.geom.min.js +1 -0
  32. data/public/d3/d3.js +4013 -0
  33. data/public/d3/d3.layout.js +1865 -0
  34. data/public/d3/d3.layout.min.js +1 -0
  35. data/public/d3/d3.min.js +2 -0
  36. data/public/d3/d3.time.js +663 -0
  37. data/public/d3/d3.time.min.js +1 -0
  38. data/public/d3/examples/albers/albers.html +168 -0
  39. data/public/d3/examples/area/area-radial.html +48 -0
  40. data/public/d3/examples/area/area.html +113 -0
  41. data/public/d3/examples/axis/axis-alternating.html +50 -0
  42. data/public/d3/examples/axis/axis-ggplot2.html +68 -0
  43. data/public/d3/examples/axis/axis-multiples.html +117 -0
  44. data/public/d3/examples/axis/axis-orientations.html +63 -0
  45. data/public/d3/examples/axis/axis-transition.html +153 -0
  46. data/public/d3/examples/azimuthal/azimuthal.css +21 -0
  47. data/public/d3/examples/azimuthal/azimuthal.html +84 -0
  48. data/public/d3/examples/azimuthal/azimuthal.js +27 -0
  49. data/public/d3/examples/bar/bar.html +93 -0
  50. data/public/d3/examples/box/box.css +4 -0
  51. data/public/d3/examples/box/box.html +19 -0
  52. data/public/d3/examples/box/box.js +68 -0
  53. data/public/d3/examples/bubble/bubble.css +8 -0
  54. data/public/d3/examples/bubble/bubble.html +14 -0
  55. data/public/d3/examples/bubble/bubble.js +46 -0
  56. data/public/d3/examples/bullet/bullet.css +10 -0
  57. data/public/d3/examples/bullet/bullet.html +18 -0
  58. data/public/d3/examples/bullet/bullet.js +53 -0
  59. data/public/d3/examples/bullet/bullets.json +7 -0
  60. data/public/d3/examples/bundle/bundle-radial.css +9 -0
  61. data/public/d3/examples/bundle/bundle-radial.html +15 -0
  62. data/public/d3/examples/bundle/bundle-radial.js +50 -0
  63. data/public/d3/examples/bundle/bundle-treemap.css +14 -0
  64. data/public/d3/examples/bundle/bundle-treemap.html +16 -0
  65. data/public/d3/examples/bundle/bundle-treemap.js +53 -0
  66. data/public/d3/examples/bundle/packages.js +49 -0
  67. data/public/d3/examples/button.css +35 -0
  68. data/public/d3/examples/calendar/calendar.css +16 -0
  69. data/public/d3/examples/calendar/calendar.js +50 -0
  70. data/public/d3/examples/calendar/dji.csv +5233 -0
  71. data/public/d3/examples/calendar/dji.html +16 -0
  72. data/public/d3/examples/calendar/dji.js +61 -0
  73. data/public/d3/examples/calendar/vix.csv +5231 -0
  74. data/public/d3/examples/calendar/vix.html +16 -0
  75. data/public/d3/examples/calendar/vix.js +60 -0
  76. data/public/d3/examples/cartogram/cartogram.css +20 -0
  77. data/public/d3/examples/cartogram/cartogram.html +15 -0
  78. data/public/d3/examples/cartogram/cartogram.js +51 -0
  79. data/public/d3/examples/cartogram/demers.css +9 -0
  80. data/public/d3/examples/cartogram/demers.html +16 -0
  81. data/public/d3/examples/cartogram/demers.js +79 -0
  82. data/public/d3/examples/cartogram/dorling.css +9 -0
  83. data/public/d3/examples/cartogram/dorling.html +16 -0
  84. data/public/d3/examples/cartogram/dorling.js +80 -0
  85. data/public/d3/examples/chord/chord-flare.html +109 -0
  86. data/public/d3/examples/chord/chord.css +9 -0
  87. data/public/d3/examples/chord/chord.html +14 -0
  88. data/public/d3/examples/chord/chord.js +98 -0
  89. data/public/d3/examples/choropleth/choropleth-area.html +51 -0
  90. data/public/d3/examples/choropleth/choropleth-bounds.html +46 -0
  91. data/public/d3/examples/choropleth/choropleth.css +16 -0
  92. data/public/d3/examples/choropleth/choropleth.html +15 -0
  93. data/public/d3/examples/choropleth/choropleth.js +38 -0
  94. data/public/d3/examples/choropleth/unemployment.json +1 -0
  95. data/public/d3/examples/clock/clock.css +23 -0
  96. data/public/d3/examples/clock/clock.html +17 -0
  97. data/public/d3/examples/clock/clock.js +87 -0
  98. data/public/d3/examples/cluster/cluster-radial.html +14 -0
  99. data/public/d3/examples/cluster/cluster-radial.js +39 -0
  100. data/public/d3/examples/cluster/cluster.css +15 -0
  101. data/public/d3/examples/cluster/cluster.html +14 -0
  102. data/public/d3/examples/cluster/cluster.js +39 -0
  103. data/public/d3/examples/contour/contour.html +108 -0
  104. data/public/d3/examples/crimea/crimea-stacked-area.html +109 -0
  105. data/public/d3/examples/crimea/crimea-stacked-bar.html +98 -0
  106. data/public/d3/examples/crimea/crimea.csv +24 -0
  107. data/public/d3/examples/data/README +5 -0
  108. data/public/d3/examples/data/faithful.json +8 -0
  109. data/public/d3/examples/data/flare-imports.json +222 -0
  110. data/public/d3/examples/data/flare.json +380 -0
  111. data/public/d3/examples/data/morley.csv +101 -0
  112. data/public/d3/examples/data/sample.csv +2 -0
  113. data/public/d3/examples/data/sample.html +5 -0
  114. data/public/d3/examples/data/sample.json +1 -0
  115. data/public/d3/examples/data/sample.txt +1 -0
  116. data/public/d3/examples/data/sample.xml +4 -0
  117. data/public/d3/examples/data/stocks.csv +807 -0
  118. data/public/d3/examples/data/unemployment.csv +1709 -0
  119. data/public/d3/examples/data/us-borders.json +1 -0
  120. data/public/d3/examples/data/us-counties.json +3216 -0
  121. data/public/d3/examples/data/us-state-centroids.json +1 -0
  122. data/public/d3/examples/data/us-states.json +54 -0
  123. data/public/d3/examples/data/world-countries.json +246 -0
  124. data/public/d3/examples/delaunay/delaunay.html +44 -0
  125. data/public/d3/examples/donut/donut.html +124 -0
  126. data/public/d3/examples/dot/dot.html +103 -0
  127. data/public/d3/examples/force/README +10 -0
  128. data/public/d3/examples/force/force-bounds.html +70 -0
  129. data/public/d3/examples/force/force-cluster.html +251 -0
  130. data/public/d3/examples/force/force-dynamic.html +118 -0
  131. data/public/d3/examples/force/force-interactive.html +136 -0
  132. data/public/d3/examples/force/force-map.html +104 -0
  133. data/public/d3/examples/force/force-multi-foci.html +68 -0
  134. data/public/d3/examples/force/force.css +9 -0
  135. data/public/d3/examples/force/force.html +14 -0
  136. data/public/d3/examples/force/force.js +56 -0
  137. data/public/d3/examples/force/miserables.json +1 -0
  138. data/public/d3/examples/hello-world/hello-data-key.html +60 -0
  139. data/public/d3/examples/hello-world/hello-data-nested-key.html +75 -0
  140. data/public/d3/examples/hello-world/hello-data-nested.html +77 -0
  141. data/public/d3/examples/hello-world/hello-data.html +46 -0
  142. data/public/d3/examples/hello-world/hello-event.html +53 -0
  143. data/public/d3/examples/hello-world/hello-node-key.html +25 -0
  144. data/public/d3/examples/hello-world/hello-sort.html +75 -0
  145. data/public/d3/examples/hello-world/hello-transform.html +41 -0
  146. data/public/d3/examples/hello-world/hello-transition-undefined.html +43 -0
  147. data/public/d3/examples/hello-world/hello-transition.html +47 -0
  148. data/public/d3/examples/hello-world/hello-webkit-transition.html +64 -0
  149. data/public/d3/examples/hello-world/select-enter-add.html +29 -0
  150. data/public/d3/examples/hello-world/selectAll-enter-add.html +20 -0
  151. data/public/d3/examples/histogram/histogram.html +80 -0
  152. data/public/d3/examples/horizon/horizon.css +9 -0
  153. data/public/d3/examples/horizon/horizon.html +25 -0
  154. data/public/d3/examples/horizon/horizon.js +43 -0
  155. data/public/d3/examples/horizon/unemployment.json +1 -0
  156. data/public/d3/examples/hull/hull.html +75 -0
  157. data/public/d3/examples/kde/kde.css +9 -0
  158. data/public/d3/examples/kde/kde.html +14 -0
  159. data/public/d3/examples/kde/kde.js +40 -0
  160. data/public/d3/examples/line/line.css +22 -0
  161. data/public/d3/examples/line/line.html +11 -0
  162. data/public/d3/examples/line/line.js +63 -0
  163. data/public/d3/examples/marimekko/marimekko.html +116 -0
  164. data/public/d3/examples/marimekko/marimekko.json +18 -0
  165. data/public/d3/examples/marker/marker.html +169 -0
  166. data/public/d3/examples/mercator/mercator.html +133 -0
  167. data/public/d3/examples/moire/moire.html +53 -0
  168. data/public/d3/examples/pack/pack.css +15 -0
  169. data/public/d3/examples/pack/pack.html +14 -0
  170. data/public/d3/examples/pack/pack.js +33 -0
  171. data/public/d3/examples/partition/partition-icicle-zoom.html +59 -0
  172. data/public/d3/examples/partition/partition-icicle.html +45 -0
  173. data/public/d3/examples/partition/partition-sunburst-zoom.html +72 -0
  174. data/public/d3/examples/partition/partition-sunburst.html +21 -0
  175. data/public/d3/examples/partition/partition-sunburst.js +72 -0
  176. data/public/d3/examples/pie/pie-transition.html +70 -0
  177. data/public/d3/examples/pie/pie.html +51 -0
  178. data/public/d3/examples/population/population.css +28 -0
  179. data/public/d3/examples/population/population.csv +571 -0
  180. data/public/d3/examples/population/population.html +13 -0
  181. data/public/d3/examples/population/population.js +126 -0
  182. data/public/d3/examples/qq/qq.css +18 -0
  183. data/public/d3/examples/qq/qq.html +21 -0
  184. data/public/d3/examples/qq/qq.js +66 -0
  185. data/public/d3/examples/qq/stats.js +28 -0
  186. data/public/d3/examples/qq/turkers.json +1 -0
  187. data/public/d3/examples/quadtree/quadtree.html +114 -0
  188. data/public/d3/examples/sizzle/sizzle.html +27 -0
  189. data/public/d3/examples/sort/sort.css +4 -0
  190. data/public/d3/examples/sort/sort.html +12 -0
  191. data/public/d3/examples/sort/sort.js +112 -0
  192. data/public/d3/examples/spline/spline.css +30 -0
  193. data/public/d3/examples/spline/spline.html +14 -0
  194. data/public/d3/examples/spline/spline.js +113 -0
  195. data/public/d3/examples/splom/cross.js +7 -0
  196. data/public/d3/examples/splom/flowers.json +1 -0
  197. data/public/d3/examples/splom/splom.css +8 -0
  198. data/public/d3/examples/splom/splom.html +14 -0
  199. data/public/d3/examples/splom/splom.js +149 -0
  200. data/public/d3/examples/stream/stack.css +7 -0
  201. data/public/d3/examples/stream/stack.html +22 -0
  202. data/public/d3/examples/stream/stack.js +119 -0
  203. data/public/d3/examples/stream/stream.css +3 -0
  204. data/public/d3/examples/stream/stream.html +19 -0
  205. data/public/d3/examples/stream/stream.js +42 -0
  206. data/public/d3/examples/stream/stream_layers.js +33 -0
  207. data/public/d3/examples/superformula/dot.html +104 -0
  208. data/public/d3/examples/superformula/explorer.html +120 -0
  209. data/public/d3/examples/superformula/superformula.html +70 -0
  210. data/public/d3/examples/superformula/superformula.js +98 -0
  211. data/public/d3/examples/symbol-map/symbol-map.html +67 -0
  212. data/public/d3/examples/touch/touch.html +65 -0
  213. data/public/d3/examples/tree/tree-dynamic.html +111 -0
  214. data/public/d3/examples/tree/tree-interactive.html +139 -0
  215. data/public/d3/examples/tree/tree-radial.html +14 -0
  216. data/public/d3/examples/tree/tree-radial.js +40 -0
  217. data/public/d3/examples/tree/tree.css +15 -0
  218. data/public/d3/examples/tree/tree.html +14 -0
  219. data/public/d3/examples/tree/tree.js +39 -0
  220. data/public/d3/examples/treemap/treemap-svg.html +22 -0
  221. data/public/d3/examples/treemap/treemap-svg.js +34 -0
  222. data/public/d3/examples/treemap/treemap.css +8 -0
  223. data/public/d3/examples/treemap/treemap.html +22 -0
  224. data/public/d3/examples/treemap/treemap.js +53 -0
  225. data/public/d3/examples/voroboids/boid.js +235 -0
  226. data/public/d3/examples/voroboids/voroboids.css +15 -0
  227. data/public/d3/examples/voroboids/voroboids.html +14 -0
  228. data/public/d3/examples/voroboids/voroboids.js +65 -0
  229. data/public/d3/examples/voronoi/voronoi.css +16 -0
  230. data/public/d3/examples/voronoi/voronoi.html +15 -0
  231. data/public/d3/examples/voronoi/voronoi.js +34 -0
  232. data/public/d3/examples/zoom-pan/zoom-pan-transform.html +95 -0
  233. data/public/d3/examples/zoom-pan/zoom-pan.html +119 -0
  234. data/public/d3/examples/zoom/dji.csv +5233 -0
  235. data/public/d3/examples/zoom/zoom.html +162 -0
  236. data/public/d3/lib/colorbrewer/LICENSE +38 -0
  237. data/public/d3/lib/colorbrewer/colorbrewer.css +1327 -0
  238. data/public/d3/lib/colorbrewer/colorbrewer.js +32 -0
  239. data/public/d3/lib/jit/LICENSE +27 -0
  240. data/public/d3/lib/jquery-ui/LICENSE +25 -0
  241. data/public/d3/lib/jquery-ui/images/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
  242. data/public/d3/lib/jquery-ui/images/ui-bg_diagonals-thick_20_666666_40x40.png +0 -0
  243. data/public/d3/lib/jquery-ui/images/ui-bg_flat_10_000000_40x100.png +0 -0
  244. data/public/d3/lib/jquery-ui/images/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
  245. data/public/d3/lib/jquery-ui/images/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
  246. data/public/d3/lib/jquery-ui/images/ui-bg_glass_65_ffffff_1x400.png +0 -0
  247. data/public/d3/lib/jquery-ui/images/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
  248. data/public/d3/lib/jquery-ui/images/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
  249. data/public/d3/lib/jquery-ui/images/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
  250. data/public/d3/lib/jquery-ui/images/ui-icons_222222_256x240.png +0 -0
  251. data/public/d3/lib/jquery-ui/images/ui-icons_228ef1_256x240.png +0 -0
  252. data/public/d3/lib/jquery-ui/images/ui-icons_ef8c08_256x240.png +0 -0
  253. data/public/d3/lib/jquery-ui/images/ui-icons_ffd27a_256x240.png +0 -0
  254. data/public/d3/lib/jquery-ui/images/ui-icons_ffffff_256x240.png +0 -0
  255. data/public/d3/lib/jquery-ui/jquery-ui.css +318 -0
  256. data/public/d3/lib/jquery-ui/jquery-ui.min.js +83 -0
  257. data/public/d3/lib/jquery/LICENSE +20 -0
  258. data/public/d3/lib/jquery/jquery.js +6883 -0
  259. data/public/d3/lib/jquery/jquery.min.js +166 -0
  260. data/public/d3/lib/polymaps/LICENSE +28 -0
  261. data/public/d3/lib/protovis/LICENSE +27 -0
  262. data/public/d3/lib/science/LICENSE +26 -0
  263. data/public/d3/lib/science/science.js +5 -0
  264. data/public/d3/lib/science/science.min.js +1 -0
  265. data/public/d3/lib/science/science.stats.js +166 -0
  266. data/public/d3/lib/science/science.stats.min.js +1 -0
  267. data/public/d3/lib/sizzle/LICENSE +24 -0
  268. data/public/d3/lib/sizzle/sizzle.js +1376 -0
  269. data/public/d3/lib/sizzle/sizzle.min.js +28 -0
  270. data/public/d3/package.json +14 -0
  271. data/public/d3/src/behavior/behavior.js +1 -0
  272. data/public/d3/src/behavior/drag.js +106 -0
  273. data/public/d3/src/behavior/zoom.js +212 -0
  274. data/public/d3/src/chart/box.js +297 -0
  275. data/public/d3/src/chart/bullet.js +237 -0
  276. data/public/d3/src/chart/chart.js +1 -0
  277. data/public/d3/src/chart/horizon.js +203 -0
  278. data/public/d3/src/chart/qq.js +245 -0
  279. data/public/d3/src/compat/date.js +3 -0
  280. data/public/d3/src/compat/style.js +9 -0
  281. data/public/d3/src/core/array.js +11 -0
  282. data/public/d3/src/core/ascending.js +3 -0
  283. data/public/d3/src/core/bisect.js +38 -0
  284. data/public/d3/src/core/collapse.js +3 -0
  285. data/public/d3/src/core/core.js +1 -0
  286. data/public/d3/src/core/descending.js +3 -0
  287. data/public/d3/src/core/dispatch.js +45 -0
  288. data/public/d3/src/core/ease.js +128 -0
  289. data/public/d3/src/core/entries.js +5 -0
  290. data/public/d3/src/core/event.js +1 -0
  291. data/public/d3/src/core/first.js +13 -0
  292. data/public/d3/src/core/format.js +85 -0
  293. data/public/d3/src/core/functor.js +3 -0
  294. data/public/d3/src/core/hsl.js +62 -0
  295. data/public/d3/src/core/html.js +10 -0
  296. data/public/d3/src/core/interpolate.js +180 -0
  297. data/public/d3/src/core/json.js +5 -0
  298. data/public/d3/src/core/keys.js +5 -0
  299. data/public/d3/src/core/last.js +13 -0
  300. data/public/d3/src/core/max.js +14 -0
  301. data/public/d3/src/core/merge.js +3 -0
  302. data/public/d3/src/core/min.js +14 -0
  303. data/public/d3/src/core/nest.js +87 -0
  304. data/public/d3/src/core/noop.js +1 -0
  305. data/public/d3/src/core/ns.js +19 -0
  306. data/public/d3/src/core/permute.js +7 -0
  307. data/public/d3/src/core/quantile.js +8 -0
  308. data/public/d3/src/core/range.js +21 -0
  309. data/public/d3/src/core/rebind.js +7 -0
  310. data/public/d3/src/core/requote.js +5 -0
  311. data/public/d3/src/core/rgb.js +284 -0
  312. data/public/d3/src/core/round.js +5 -0
  313. data/public/d3/src/core/selection-append.js +15 -0
  314. data/public/d3/src/core/selection-attr.js +44 -0
  315. data/public/d3/src/core/selection-call.js +13 -0
  316. data/public/d3/src/core/selection-classed.js +46 -0
  317. data/public/d3/src/core/selection-data.js +110 -0
  318. data/public/d3/src/core/selection-each.js +9 -0
  319. data/public/d3/src/core/selection-empty.js +3 -0
  320. data/public/d3/src/core/selection-enter-select.js +24 -0
  321. data/public/d3/src/core/selection-enter.js +10 -0
  322. data/public/d3/src/core/selection-filter.js +19 -0
  323. data/public/d3/src/core/selection-html.js +6 -0
  324. data/public/d3/src/core/selection-insert.js +20 -0
  325. data/public/d3/src/core/selection-map.js +5 -0
  326. data/public/d3/src/core/selection-node.js +9 -0
  327. data/public/d3/src/core/selection-on.js +34 -0
  328. data/public/d3/src/core/selection-property.js +23 -0
  329. data/public/d3/src/core/selection-remove.js +9 -0
  330. data/public/d3/src/core/selection-root.js +16 -0
  331. data/public/d3/src/core/selection-select.js +30 -0
  332. data/public/d3/src/core/selection-selectAll.js +24 -0
  333. data/public/d3/src/core/selection-sort.js +20 -0
  334. data/public/d3/src/core/selection-style.js +26 -0
  335. data/public/d3/src/core/selection-text.js +6 -0
  336. data/public/d3/src/core/selection-transition.js +14 -0
  337. data/public/d3/src/core/selection.js +21 -0
  338. data/public/d3/src/core/split.js +21 -0
  339. data/public/d3/src/core/sum.js +14 -0
  340. data/public/d3/src/core/text.js +10 -0
  341. data/public/d3/src/core/this.js +3 -0
  342. data/public/d3/src/core/timer.js +104 -0
  343. data/public/d3/src/core/transition-attr.js +23 -0
  344. data/public/d3/src/core/transition-delay.js +6 -0
  345. data/public/d3/src/core/transition-duration.js +6 -0
  346. data/public/d3/src/core/transition-each.js +9 -0
  347. data/public/d3/src/core/transition-remove.js +6 -0
  348. data/public/d3/src/core/transition-select.js +22 -0
  349. data/public/d3/src/core/transition-selectAll.js +20 -0
  350. data/public/d3/src/core/transition-style.js +14 -0
  351. data/public/d3/src/core/transition-text.js +7 -0
  352. data/public/d3/src/core/transition-transition.js +3 -0
  353. data/public/d3/src/core/transition.js +105 -0
  354. data/public/d3/src/core/uninterpolate.js +9 -0
  355. data/public/d3/src/core/values.js +5 -0
  356. data/public/d3/src/core/xhr.js +10 -0
  357. data/public/d3/src/core/xml.js +10 -0
  358. data/public/d3/src/core/zip.js +13 -0
  359. data/public/d3/src/csv/csv.js +5 -0
  360. data/public/d3/src/csv/format.js +13 -0
  361. data/public/d3/src/csv/parse.js +73 -0
  362. data/public/d3/src/end.js +1 -0
  363. data/public/d3/src/externs.js +6 -0
  364. data/public/d3/src/geo/albers.js +128 -0
  365. data/public/d3/src/geo/azimuthal.js +70 -0
  366. data/public/d3/src/geo/bounds.js +76 -0
  367. data/public/d3/src/geo/geo.js +1 -0
  368. data/public/d3/src/geo/greatCircle.js +91 -0
  369. data/public/d3/src/geo/mercator.js +36 -0
  370. data/public/d3/src/geo/path.js +289 -0
  371. data/public/d3/src/geom/contour.js +78 -0
  372. data/public/d3/src/geom/delaunay.js +31 -0
  373. data/public/d3/src/geom/geom.js +1 -0
  374. data/public/d3/src/geom/hull.js +98 -0
  375. data/public/d3/src/geom/polygon.js +88 -0
  376. data/public/d3/src/geom/quadtree.js +129 -0
  377. data/public/d3/src/geom/voronoi.js +399 -0
  378. data/public/d3/src/layout/bundle.js +57 -0
  379. data/public/d3/src/layout/chord.js +148 -0
  380. data/public/d3/src/layout/cluster.js +77 -0
  381. data/public/d3/src/layout/force.js +332 -0
  382. data/public/d3/src/layout/hierarchy.js +120 -0
  383. data/public/d3/src/layout/histogram.js +102 -0
  384. data/public/d3/src/layout/layout.js +1 -0
  385. data/public/d3/src/layout/pack.js +200 -0
  386. data/public/d3/src/layout/partition.js +48 -0
  387. data/public/d3/src/layout/pie.js +95 -0
  388. data/public/d3/src/layout/stack.js +237 -0
  389. data/public/d3/src/layout/tree.js +234 -0
  390. data/public/d3/src/layout/treemap.js +213 -0
  391. data/public/d3/src/scale/bilinear.js +7 -0
  392. data/public/d3/src/scale/category.js +54 -0
  393. data/public/d3/src/scale/linear.js +115 -0
  394. data/public/d3/src/scale/log.js +80 -0
  395. data/public/d3/src/scale/nice.js +21 -0
  396. data/public/d3/src/scale/ordinal.js +74 -0
  397. data/public/d3/src/scale/polylinear.js +16 -0
  398. data/public/d3/src/scale/pow.js +54 -0
  399. data/public/d3/src/scale/quantile.js +43 -0
  400. data/public/d3/src/scale/quantize.js +36 -0
  401. data/public/d3/src/scale/scale.js +6 -0
  402. data/public/d3/src/scale/sqrt.js +3 -0
  403. data/public/d3/src/start.js +1 -0
  404. data/public/d3/src/svg/arc.js +95 -0
  405. data/public/d3/src/svg/area-radial.js +10 -0
  406. data/public/d3/src/svg/area.js +84 -0
  407. data/public/d3/src/svg/axis.js +182 -0
  408. data/public/d3/src/svg/chord.js +99 -0
  409. data/public/d3/src/svg/diagonal-radial.js +22 -0
  410. data/public/d3/src/svg/diagonal.js +38 -0
  411. data/public/d3/src/svg/line-radial.js +22 -0
  412. data/public/d3/src/svg/line.js +419 -0
  413. data/public/d3/src/svg/mouse.js +29 -0
  414. data/public/d3/src/svg/svg.js +1 -0
  415. data/public/d3/src/svg/symbol.js +98 -0
  416. data/public/d3/src/svg/touches.js +8 -0
  417. data/public/d3/src/time/day.js +7 -0
  418. data/public/d3/src/time/days.js +11 -0
  419. data/public/d3/src/time/format-iso.js +1 -0
  420. data/public/d3/src/time/format-utc.js +48 -0
  421. data/public/d3/src/time/format.js +315 -0
  422. data/public/d3/src/time/hour.js +8 -0
  423. data/public/d3/src/time/hours.js +11 -0
  424. data/public/d3/src/time/minute.js +5 -0
  425. data/public/d3/src/time/minutes.js +11 -0
  426. data/public/d3/src/time/month.js +7 -0
  427. data/public/d3/src/time/months.js +11 -0
  428. data/public/d3/src/time/range.js +16 -0
  429. data/public/d3/src/time/scale-utc.js +36 -0
  430. data/public/d3/src/time/scale.js +123 -0
  431. data/public/d3/src/time/second.js +5 -0
  432. data/public/d3/src/time/seconds.js +7 -0
  433. data/public/d3/src/time/time.js +3 -0
  434. data/public/d3/src/time/week.js +9 -0
  435. data/public/d3/src/time/weeks.js +11 -0
  436. data/public/d3/src/time/year.js +7 -0
  437. data/public/d3/src/time/years.js +11 -0
  438. data/public/d3/test/core/ascending-test.js +47 -0
  439. data/public/d3/test/core/bisect-test.js +103 -0
  440. data/public/d3/test/core/descending-test.js +47 -0
  441. data/public/d3/test/core/dispatch-test.js +116 -0
  442. data/public/d3/test/core/ease-test.js +129 -0
  443. data/public/d3/test/core/entries-test.js +43 -0
  444. data/public/d3/test/core/first-test.js +42 -0
  445. data/public/d3/test/core/format-test.js +204 -0
  446. data/public/d3/test/core/functor-test.js +29 -0
  447. data/public/d3/test/core/hsl-test.js +87 -0
  448. data/public/d3/test/core/html-test.js +37 -0
  449. data/public/d3/test/core/interpolate-test.js +203 -0
  450. data/public/d3/test/core/json-test.js +37 -0
  451. data/public/d3/test/core/keys-test.js +31 -0
  452. data/public/d3/test/core/last-test.js +42 -0
  453. data/public/d3/test/core/max-test.js +50 -0
  454. data/public/d3/test/core/merge-test.js +27 -0
  455. data/public/d3/test/core/min-test.js +50 -0
  456. data/public/d3/test/core/nest-test.js +236 -0
  457. data/public/d3/test/core/ns-test.js +53 -0
  458. data/public/d3/test/core/permute-test.js +53 -0
  459. data/public/d3/test/core/quantile-test.js +50 -0
  460. data/public/d3/test/core/range-test.js +93 -0
  461. data/public/d3/test/core/rebind-test.js +38 -0
  462. data/public/d3/test/core/requote-test.js +53 -0
  463. data/public/d3/test/core/rgb-test.js +89 -0
  464. data/public/d3/test/core/round-test.js +70 -0
  465. data/public/d3/test/core/select-test.js +42 -0
  466. data/public/d3/test/core/selectAll-test.js +42 -0
  467. data/public/d3/test/core/selection-append-test.js +119 -0
  468. data/public/d3/test/core/selection-attr-test.js +153 -0
  469. data/public/d3/test/core/selection-call-test.js +71 -0
  470. data/public/d3/test/core/selection-classed-test.js +200 -0
  471. data/public/d3/test/core/selection-data-test.js +165 -0
  472. data/public/d3/test/core/selection-each-test.js +83 -0
  473. data/public/d3/test/core/selection-empty-test.js +51 -0
  474. data/public/d3/test/core/selection-filter-test.js +63 -0
  475. data/public/d3/test/core/selection-html-test.js +121 -0
  476. data/public/d3/test/core/selection-insert-test.js +132 -0
  477. data/public/d3/test/core/selection-map-test.js +47 -0
  478. data/public/d3/test/core/selection-node-test.js +50 -0
  479. data/public/d3/test/core/selection-on-test.js +95 -0
  480. data/public/d3/test/core/selection-property-test.js +91 -0
  481. data/public/d3/test/core/selection-remove-test.js +39 -0
  482. data/public/d3/test/core/selection-select-test.js +125 -0
  483. data/public/d3/test/core/selection-selectAll-test.js +127 -0
  484. data/public/d3/test/core/selection-sort-test.js +59 -0
  485. data/public/d3/test/core/selection-style-test.js +100 -0
  486. data/public/d3/test/core/selection-test.js +35 -0
  487. data/public/d3/test/core/selection-text-test.js +109 -0
  488. data/public/d3/test/core/split-test.js +34 -0
  489. data/public/d3/test/core/sum-test.js +47 -0
  490. data/public/d3/test/core/text-test.js +48 -0
  491. data/public/d3/test/core/timer-test.js +62 -0
  492. data/public/d3/test/core/transition-test-attr.js +33 -0
  493. data/public/d3/test/core/transition-test-attrTween.js +67 -0
  494. data/public/d3/test/core/transition-test-call.js +33 -0
  495. data/public/d3/test/core/transition-test-delay.js +41 -0
  496. data/public/d3/test/core/transition-test-duration.js +41 -0
  497. data/public/d3/test/core/transition-test-each.js +166 -0
  498. data/public/d3/test/core/transition-test-id.js +20 -0
  499. data/public/d3/test/core/transition-test-remove.js +46 -0
  500. data/public/d3/test/core/transition-test-select.js +63 -0
  501. data/public/d3/test/core/transition-test-selectAll.js +55 -0
  502. data/public/d3/test/core/transition-test-style.js +38 -0
  503. data/public/d3/test/core/transition-test-styleTween.js +73 -0
  504. data/public/d3/test/core/transition-test-text.js +30 -0
  505. data/public/d3/test/core/transition-test-transition.js +60 -0
  506. data/public/d3/test/core/transition-test-tween.js +71 -0
  507. data/public/d3/test/core/transition-test.js +65 -0
  508. data/public/d3/test/core/values-test.js +35 -0
  509. data/public/d3/test/core/version-test.js +18 -0
  510. data/public/d3/test/core/xhr-test.js +56 -0
  511. data/public/d3/test/core/xml-test.js +48 -0
  512. data/public/d3/test/core/zip-test.js +32 -0
  513. data/public/d3/test/csv/csv-test.js +38 -0
  514. data/public/d3/test/csv/format-test.js +39 -0
  515. data/public/d3/test/csv/parse-test.js +101 -0
  516. data/public/d3/test/env-assert.js +96 -0
  517. data/public/d3/test/env-fragment.js +8 -0
  518. data/public/d3/test/env-xhr.js +56 -0
  519. data/public/d3/test/env.js +13 -0
  520. data/public/d3/test/geo/albers-test.js +57 -0
  521. data/public/d3/test/geo/azimuthal-test.js +89 -0
  522. data/public/d3/test/geo/greatCircle-test.js +42 -0
  523. data/public/d3/test/geo/mercator-test.js +57 -0
  524. data/public/d3/test/layout/histogram-test.js +91 -0
  525. data/public/d3/test/layout/partition-test.js +39 -0
  526. data/public/d3/test/layout/tree-test.js +21 -0
  527. data/public/d3/test/layout/treemap-test.js +180 -0
  528. data/public/d3/test/scale/category-test.js +74 -0
  529. data/public/d3/test/scale/linear-test.js +239 -0
  530. data/public/d3/test/scale/log-test.js +220 -0
  531. data/public/d3/test/scale/ordinal-test.js +193 -0
  532. data/public/d3/test/scale/pow-test.js +259 -0
  533. data/public/d3/test/scale/quantile-test.js +64 -0
  534. data/public/d3/test/scale/quantize-test.js +69 -0
  535. data/public/d3/test/scale/sqrt-test.js +256 -0
  536. data/public/d3/test/svg/arc-test.js +147 -0
  537. data/public/d3/test/svg/area-radial-test.js +200 -0
  538. data/public/d3/test/svg/area-test.js +191 -0
  539. data/public/d3/test/svg/axis-test.js +347 -0
  540. data/public/d3/test/svg/line-radial-test.js +125 -0
  541. data/public/d3/test/svg/line-test.js +189 -0
  542. data/public/d3/test/svg/symbol-test.js +96 -0
  543. data/public/d3/test/time/day-test.js +65 -0
  544. data/public/d3/test/time/days-test.js +105 -0
  545. data/public/d3/test/time/format-test.js +430 -0
  546. data/public/d3/test/time/hour-test.js +103 -0
  547. data/public/d3/test/time/hours-test.js +135 -0
  548. data/public/d3/test/time/minute-test.js +43 -0
  549. data/public/d3/test/time/minutes-test.js +101 -0
  550. data/public/d3/test/time/month-test.js +53 -0
  551. data/public/d3/test/time/months-test.js +105 -0
  552. data/public/d3/test/time/scale-test.js +525 -0
  553. data/public/d3/test/time/second-test.js +41 -0
  554. data/public/d3/test/time/seconds-test.js +101 -0
  555. data/public/d3/test/time/week-test.js +59 -0
  556. data/public/d3/test/time/weeks-test.js +105 -0
  557. data/public/d3/test/time/year-test.js +41 -0
  558. data/public/d3/test/time/years-test.js +73 -0
  559. data/public/graph.js +42 -0
  560. data/public/jquery.min.js +4 -0
  561. data/public/test.html +36 -0
  562. data/public/testdata/bigfucker.js +212 -0
  563. data/public/testdata/names_and_enabled.js +232 -0
  564. data/public/testdata/one.js +79 -0
  565. data/public/testdata/withnames.js +198 -0
  566. data/public/viz.js +289 -0
  567. data/views/graph.erb +15 -0
  568. data/views/one.erb +34 -0
  569. data/views/two.erb +44 -0
  570. data/views/vis.erb +47 -0
  571. metadata +594 -18
  572. data/lib/bum.rb +0 -385
  573. data/lib/client.rb.erb +0 -7
  574. data/lib/dhcpd.rb +0 -84
  575. data/lib/hosts.rb +0 -61
  576. data/lib/vmx.rb +0 -24
@@ -0,0 +1,180 @@
1
+ d3.interpolate = function(a, b) {
2
+ var i = d3.interpolators.length, f;
3
+ while (--i >= 0 && !(f = d3.interpolators[i](a, b)));
4
+ return f;
5
+ };
6
+
7
+ d3.interpolateNumber = function(a, b) {
8
+ b -= a;
9
+ return function(t) { return a + b * t; };
10
+ };
11
+
12
+ d3.interpolateRound = function(a, b) {
13
+ b -= a;
14
+ return function(t) { return Math.round(a + b * t); };
15
+ };
16
+
17
+ d3.interpolateString = function(a, b) {
18
+ var m, // current match
19
+ i, // current index
20
+ j, // current index (for coallescing)
21
+ s0 = 0, // start index of current string prefix
22
+ s1 = 0, // end index of current string prefix
23
+ s = [], // string constants and placeholders
24
+ q = [], // number interpolators
25
+ n, // q.length
26
+ o;
27
+
28
+ // Reset our regular expression!
29
+ d3_interpolate_number.lastIndex = 0;
30
+
31
+ // Find all numbers in b.
32
+ for (i = 0; m = d3_interpolate_number.exec(b); ++i) {
33
+ if (m.index) s.push(b.substring(s0, s1 = m.index));
34
+ q.push({i: s.length, x: m[0]});
35
+ s.push(null);
36
+ s0 = d3_interpolate_number.lastIndex;
37
+ }
38
+ if (s0 < b.length) s.push(b.substring(s0));
39
+
40
+ // Find all numbers in a.
41
+ for (i = 0, n = q.length; (m = d3_interpolate_number.exec(a)) && i < n; ++i) {
42
+ o = q[i];
43
+ if (o.x == m[0]) { // The numbers match, so coallesce.
44
+ if (o.i) {
45
+ if (s[o.i + 1] == null) { // This match is followed by another number.
46
+ s[o.i - 1] += o.x;
47
+ s.splice(o.i, 1);
48
+ for (j = i + 1; j < n; ++j) q[j].i--;
49
+ } else { // This match is followed by a string, so coallesce twice.
50
+ s[o.i - 1] += o.x + s[o.i + 1];
51
+ s.splice(o.i, 2);
52
+ for (j = i + 1; j < n; ++j) q[j].i -= 2;
53
+ }
54
+ } else {
55
+ if (s[o.i + 1] == null) { // This match is followed by another number.
56
+ s[o.i] = o.x;
57
+ } else { // This match is followed by a string, so coallesce twice.
58
+ s[o.i] = o.x + s[o.i + 1];
59
+ s.splice(o.i + 1, 1);
60
+ for (j = i + 1; j < n; ++j) q[j].i--;
61
+ }
62
+ }
63
+ q.splice(i, 1);
64
+ n--;
65
+ i--;
66
+ } else {
67
+ o.x = d3.interpolateNumber(parseFloat(m[0]), parseFloat(o.x));
68
+ }
69
+ }
70
+
71
+ // Remove any numbers in b not found in a.
72
+ while (i < n) {
73
+ o = q.pop();
74
+ if (s[o.i + 1] == null) { // This match is followed by another number.
75
+ s[o.i] = o.x;
76
+ } else { // This match is followed by a string, so coallesce twice.
77
+ s[o.i] = o.x + s[o.i + 1];
78
+ s.splice(o.i + 1, 1);
79
+ }
80
+ n--;
81
+ }
82
+
83
+ // Special optimization for only a single match.
84
+ if (s.length === 1) {
85
+ return s[0] == null ? q[0].x : function() { return b; };
86
+ }
87
+
88
+ // Otherwise, interpolate each of the numbers and rejoin the string.
89
+ return function(t) {
90
+ for (i = 0; i < n; ++i) s[(o = q[i]).i] = o.x(t);
91
+ return s.join("");
92
+ };
93
+ };
94
+
95
+ d3.interpolateRgb = function(a, b) {
96
+ a = d3.rgb(a);
97
+ b = d3.rgb(b);
98
+ var ar = a.r,
99
+ ag = a.g,
100
+ ab = a.b,
101
+ br = b.r - ar,
102
+ bg = b.g - ag,
103
+ bb = b.b - ab;
104
+ return function(t) {
105
+ return "rgb(" + Math.round(ar + br * t)
106
+ + "," + Math.round(ag + bg * t)
107
+ + "," + Math.round(ab + bb * t)
108
+ + ")";
109
+ };
110
+ };
111
+
112
+ // interpolates HSL space, but outputs RGB string (for compatibility)
113
+ d3.interpolateHsl = function(a, b) {
114
+ a = d3.hsl(a);
115
+ b = d3.hsl(b);
116
+ var h0 = a.h,
117
+ s0 = a.s,
118
+ l0 = a.l,
119
+ h1 = b.h - h0,
120
+ s1 = b.s - s0,
121
+ l1 = b.l - l0;
122
+ return function(t) {
123
+ return d3_hsl_rgb(h0 + h1 * t, s0 + s1 * t, l0 + l1 * t).toString();
124
+ };
125
+ };
126
+
127
+ d3.interpolateArray = function(a, b) {
128
+ var x = [],
129
+ c = [],
130
+ na = a.length,
131
+ nb = b.length,
132
+ n0 = Math.min(a.length, b.length),
133
+ i;
134
+ for (i = 0; i < n0; ++i) x.push(d3.interpolate(a[i], b[i]));
135
+ for (; i < na; ++i) c[i] = a[i];
136
+ for (; i < nb; ++i) c[i] = b[i];
137
+ return function(t) {
138
+ for (i = 0; i < n0; ++i) c[i] = x[i](t);
139
+ return c;
140
+ };
141
+ };
142
+
143
+ d3.interpolateObject = function(a, b) {
144
+ var i = {},
145
+ c = {},
146
+ k;
147
+ for (k in a) {
148
+ if (k in b) {
149
+ i[k] = d3_interpolateByName(k)(a[k], b[k]);
150
+ } else {
151
+ c[k] = a[k];
152
+ }
153
+ }
154
+ for (k in b) {
155
+ if (!(k in a)) {
156
+ c[k] = b[k];
157
+ }
158
+ }
159
+ return function(t) {
160
+ for (k in i) c[k] = i[k](t);
161
+ return c;
162
+ };
163
+ }
164
+
165
+ var d3_interpolate_number = /[-+]?(?:\d+\.\d+|\d+\.|\.\d+|\d+)(?:[eE][-]?\d+)?/g,
166
+ d3_interpolate_rgb = {background: 1, fill: 1, stroke: 1};
167
+
168
+ function d3_interpolateByName(n) {
169
+ return n in d3_interpolate_rgb || /\bcolor\b/.test(n)
170
+ ? d3.interpolateRgb
171
+ : d3.interpolate;
172
+ }
173
+
174
+ d3.interpolators = [
175
+ d3.interpolateObject,
176
+ function(a, b) { return (b instanceof Array) && d3.interpolateArray(a, b); },
177
+ function(a, b) { return (typeof b === "string") && d3.interpolateString(String(a), b); },
178
+ function(a, b) { return (typeof b === "string" ? b in d3_rgb_names || /^(#|rgb\(|hsl\()/.test(b) : b instanceof d3_Rgb || b instanceof d3_Hsl) && d3.interpolateRgb(String(a), b); },
179
+ function(a, b) { return (typeof b === "number") && d3.interpolateNumber(+a, b); }
180
+ ];
@@ -0,0 +1,5 @@
1
+ d3.json = function(url, callback) {
2
+ d3.text(url, "application/json", function(text) {
3
+ callback(text ? JSON.parse(text) : null);
4
+ });
5
+ };
@@ -0,0 +1,5 @@
1
+ d3.keys = function(map) {
2
+ var keys = [];
3
+ for (var key in map) keys.push(key);
4
+ return keys;
5
+ };
@@ -0,0 +1,13 @@
1
+ d3.last = function(array, f) {
2
+ var i = 0,
3
+ n = array.length,
4
+ a = array[0],
5
+ b;
6
+ if (arguments.length === 1) f = d3.ascending;
7
+ while (++i < n) {
8
+ if (f.call(array, a, b = array[i]) <= 0) {
9
+ a = b;
10
+ }
11
+ }
12
+ return a;
13
+ };
@@ -0,0 +1,14 @@
1
+ d3.max = function(array, f) {
2
+ var i = -1,
3
+ n = array.length,
4
+ a,
5
+ b;
6
+ if (arguments.length === 1) {
7
+ while (++i < n && ((a = array[i]) == null || a != a)) a = undefined;
8
+ while (++i < n) if ((b = array[i]) != null && b > a) a = b;
9
+ } else {
10
+ while (++i < n && ((a = f.call(array, array[i], i)) == null || a != a)) a = undefined;
11
+ while (++i < n) if ((b = f.call(array, array[i], i)) != null && b > a) a = b;
12
+ }
13
+ return a;
14
+ };
@@ -0,0 +1,3 @@
1
+ d3.merge = function(arrays) {
2
+ return Array.prototype.concat.apply([], arrays);
3
+ };
@@ -0,0 +1,14 @@
1
+ d3.min = function(array, f) {
2
+ var i = -1,
3
+ n = array.length,
4
+ a,
5
+ b;
6
+ if (arguments.length === 1) {
7
+ while (++i < n && ((a = array[i]) == null || a != a)) a = undefined;
8
+ while (++i < n) if ((b = array[i]) != null && a > b) a = b;
9
+ } else {
10
+ while (++i < n && ((a = f.call(array, array[i], i)) == null || a != a)) a = undefined;
11
+ while (++i < n) if ((b = f.call(array, array[i], i)) != null && a > b) a = b;
12
+ }
13
+ return a;
14
+ };
@@ -0,0 +1,87 @@
1
+ d3.nest = function() {
2
+ var nest = {},
3
+ keys = [],
4
+ sortKeys = [],
5
+ sortValues,
6
+ rollup;
7
+
8
+ function map(array, depth) {
9
+ if (depth >= keys.length) return rollup
10
+ ? rollup.call(nest, array) : (sortValues
11
+ ? array.sort(sortValues)
12
+ : array);
13
+
14
+ var i = -1,
15
+ n = array.length,
16
+ key = keys[depth++],
17
+ keyValue,
18
+ object,
19
+ o = {};
20
+
21
+ while (++i < n) {
22
+ if ((keyValue = key(object = array[i])) in o) {
23
+ o[keyValue].push(object);
24
+ } else {
25
+ o[keyValue] = [object];
26
+ }
27
+ }
28
+
29
+ for (keyValue in o) {
30
+ o[keyValue] = map(o[keyValue], depth);
31
+ }
32
+
33
+ return o;
34
+ }
35
+
36
+ function entries(map, depth) {
37
+ if (depth >= keys.length) return map;
38
+
39
+ var a = [],
40
+ sortKey = sortKeys[depth++],
41
+ key;
42
+
43
+ for (key in map) {
44
+ a.push({key: key, values: entries(map[key], depth)});
45
+ }
46
+
47
+ if (sortKey) a.sort(function(a, b) {
48
+ return sortKey(a.key, b.key);
49
+ });
50
+
51
+ return a;
52
+ }
53
+
54
+ nest.map = function(array) {
55
+ return map(array, 0);
56
+ };
57
+
58
+ nest.entries = function(array) {
59
+ return entries(map(array, 0), 0);
60
+ };
61
+
62
+ nest.key = function(d) {
63
+ keys.push(d);
64
+ return nest;
65
+ };
66
+
67
+ // Specifies the order for the most-recently specified key.
68
+ // Note: only applies to entries. Map keys are unordered!
69
+ nest.sortKeys = function(order) {
70
+ sortKeys[keys.length - 1] = order;
71
+ return nest;
72
+ };
73
+
74
+ // Specifies the order for leaf values.
75
+ // Applies to both maps and entries array.
76
+ nest.sortValues = function(order) {
77
+ sortValues = order;
78
+ return nest;
79
+ };
80
+
81
+ nest.rollup = function(f) {
82
+ rollup = f;
83
+ return nest;
84
+ };
85
+
86
+ return nest;
87
+ };
@@ -0,0 +1 @@
1
+ function d3_noop() {}
@@ -0,0 +1,19 @@
1
+ d3.ns = {
2
+
3
+ prefix: {
4
+ svg: "http://www.w3.org/2000/svg",
5
+ xhtml: "http://www.w3.org/1999/xhtml",
6
+ xlink: "http://www.w3.org/1999/xlink",
7
+ xml: "http://www.w3.org/XML/1998/namespace",
8
+ xmlns: "http://www.w3.org/2000/xmlns/"
9
+ },
10
+
11
+ qualify: function(name) {
12
+ var i = name.indexOf(":");
13
+ return i < 0 ? name : {
14
+ space: d3.ns.prefix[name.substring(0, i)],
15
+ local: name.substring(i + 1)
16
+ };
17
+ }
18
+
19
+ };
@@ -0,0 +1,7 @@
1
+ d3.permute = function(array, indexes) {
2
+ var permutes = [],
3
+ i = -1,
4
+ n = indexes.length;
5
+ while (++i < n) permutes[i] = array[indexes[i]];
6
+ return permutes;
7
+ };
@@ -0,0 +1,8 @@
1
+ // R-7 per <http://en.wikipedia.org/wiki/Quantile>
2
+ d3.quantile = function(values, p) {
3
+ var H = (values.length - 1) * p + 1,
4
+ h = Math.floor(H),
5
+ v = values[h - 1],
6
+ e = H - h;
7
+ return e ? v + e * (values[h] - v) : v;
8
+ };
@@ -0,0 +1,21 @@
1
+ /**
2
+ * @param {number} start
3
+ * @param {number=} stop
4
+ * @param {number=} step
5
+ */
6
+ d3.range = function(start, stop, step) {
7
+ if (arguments.length < 3) {
8
+ step = 1;
9
+ if (arguments.length < 2) {
10
+ stop = start;
11
+ start = 0;
12
+ }
13
+ }
14
+ if ((stop - start) / step == Infinity) throw new Error("infinite range");
15
+ var range = [],
16
+ i = -1,
17
+ j;
18
+ if (step < 0) while ((j = start + step * ++i) > stop) range.push(j);
19
+ else while ((j = start + step * ++i) < stop) range.push(j);
20
+ return range;
21
+ };
@@ -0,0 +1,7 @@
1
+ // A getter-setter method that preserves the appropriate `this` context.
2
+ d3.rebind = function(object, method) {
3
+ return function() {
4
+ var x = method.apply(object, arguments);
5
+ return arguments.length ? object : x;
6
+ };
7
+ };
@@ -0,0 +1,5 @@
1
+ d3.requote = function(s) {
2
+ return s.replace(d3_requote_re, "\\$&");
3
+ };
4
+
5
+ var d3_requote_re = /[\\\^\$\*\+\?\|\[\]\(\)\.\{\}]/g;
@@ -0,0 +1,284 @@
1
+ d3.rgb = function(r, g, b) {
2
+ return arguments.length === 1
3
+ ? d3_rgb_parse("" + r, d3_rgb, d3_hsl_rgb)
4
+ : d3_rgb(~~r, ~~g, ~~b);
5
+ };
6
+
7
+ function d3_rgb(r, g, b) {
8
+ return new d3_Rgb(r, g, b);
9
+ }
10
+
11
+ function d3_Rgb(r, g, b) {
12
+ this.r = r;
13
+ this.g = g;
14
+ this.b = b;
15
+ }
16
+
17
+ d3_Rgb.prototype.brighter = function(k) {
18
+ k = Math.pow(0.7, arguments.length ? k : 1);
19
+ var r = this.r,
20
+ g = this.g,
21
+ b = this.b,
22
+ i = 30;
23
+ if (!r && !g && !b) return d3_rgb(i, i, i);
24
+ if (r && r < i) r = i;
25
+ if (g && g < i) g = i;
26
+ if (b && b < i) b = i;
27
+ return d3_rgb(
28
+ Math.min(255, Math.floor(r / k)),
29
+ Math.min(255, Math.floor(g / k)),
30
+ Math.min(255, Math.floor(b / k)));
31
+ };
32
+
33
+ d3_Rgb.prototype.darker = function(k) {
34
+ k = Math.pow(0.7, arguments.length ? k : 1);
35
+ return d3_rgb(
36
+ Math.max(0, Math.floor(k * this.r)),
37
+ Math.max(0, Math.floor(k * this.g)),
38
+ Math.max(0, Math.floor(k * this.b)));
39
+ };
40
+
41
+ d3_Rgb.prototype.hsl = function() {
42
+ return d3_rgb_hsl(this.r, this.g, this.b);
43
+ };
44
+
45
+ d3_Rgb.prototype.toString = function() {
46
+ return "#" + d3_rgb_hex(this.r) + d3_rgb_hex(this.g) + d3_rgb_hex(this.b);
47
+ };
48
+
49
+ function d3_rgb_hex(v) {
50
+ return v < 0x10 ? "0" + v.toString(16) : v.toString(16);
51
+ }
52
+
53
+ function d3_rgb_parse(format, rgb, hsl) {
54
+ var r = 0, // red channel; int in [0, 255]
55
+ g = 0, // green channel; int in [0, 255]
56
+ b = 0, // blue channel; int in [0, 255]
57
+ m1, // CSS color specification match
58
+ m2, // CSS color specification type (e.g., rgb)
59
+ name;
60
+
61
+ /* Handle hsl, rgb. */
62
+ m1 = /([a-z]+)\((.*)\)/i.exec(format);
63
+ if (m1) {
64
+ m2 = m1[2].split(",");
65
+ switch (m1[1]) {
66
+ case "hsl": {
67
+ return hsl(
68
+ parseFloat(m2[0]), // degrees
69
+ parseFloat(m2[1]) / 100, // percentage
70
+ parseFloat(m2[2]) / 100 // percentage
71
+ );
72
+ }
73
+ case "rgb": {
74
+ return rgb(
75
+ d3_rgb_parseNumber(m2[0]),
76
+ d3_rgb_parseNumber(m2[1]),
77
+ d3_rgb_parseNumber(m2[2])
78
+ );
79
+ }
80
+ }
81
+ }
82
+
83
+ /* Named colors. */
84
+ if (name = d3_rgb_names[format]) return rgb(name.r, name.g, name.b);
85
+
86
+ /* Hexadecimal colors: #rgb and #rrggbb. */
87
+ if (format != null && format.charAt(0) === "#") {
88
+ if (format.length === 4) {
89
+ r = format.charAt(1); r += r;
90
+ g = format.charAt(2); g += g;
91
+ b = format.charAt(3); b += b;
92
+ } else if (format.length === 7) {
93
+ r = format.substring(1, 3);
94
+ g = format.substring(3, 5);
95
+ b = format.substring(5, 7);
96
+ }
97
+ r = parseInt(r, 16);
98
+ g = parseInt(g, 16);
99
+ b = parseInt(b, 16);
100
+ }
101
+
102
+ return rgb(r, g, b);
103
+ }
104
+
105
+ function d3_rgb_hsl(r, g, b) {
106
+ var min = Math.min(r /= 255, g /= 255, b /= 255),
107
+ max = Math.max(r, g, b),
108
+ d = max - min,
109
+ h,
110
+ s,
111
+ l = (max + min) / 2;
112
+ if (d) {
113
+ s = l < .5 ? d / (max + min) : d / (2 - max - min);
114
+ if (r == max) h = (g - b) / d + (g < b ? 6 : 0);
115
+ else if (g == max) h = (b - r) / d + 2;
116
+ else h = (r - g) / d + 4;
117
+ h *= 60;
118
+ } else {
119
+ s = h = 0;
120
+ }
121
+ return d3_hsl(h, s, l);
122
+ }
123
+
124
+ function d3_rgb_parseNumber(c) { // either integer or percentage
125
+ var f = parseFloat(c);
126
+ return c.charAt(c.length - 1) === "%" ? Math.round(f * 2.55) : f;
127
+ }
128
+
129
+ var d3_rgb_names = {
130
+ aliceblue: "#f0f8ff",
131
+ antiquewhite: "#faebd7",
132
+ aqua: "#00ffff",
133
+ aquamarine: "#7fffd4",
134
+ azure: "#f0ffff",
135
+ beige: "#f5f5dc",
136
+ bisque: "#ffe4c4",
137
+ black: "#000000",
138
+ blanchedalmond: "#ffebcd",
139
+ blue: "#0000ff",
140
+ blueviolet: "#8a2be2",
141
+ brown: "#a52a2a",
142
+ burlywood: "#deb887",
143
+ cadetblue: "#5f9ea0",
144
+ chartreuse: "#7fff00",
145
+ chocolate: "#d2691e",
146
+ coral: "#ff7f50",
147
+ cornflowerblue: "#6495ed",
148
+ cornsilk: "#fff8dc",
149
+ crimson: "#dc143c",
150
+ cyan: "#00ffff",
151
+ darkblue: "#00008b",
152
+ darkcyan: "#008b8b",
153
+ darkgoldenrod: "#b8860b",
154
+ darkgray: "#a9a9a9",
155
+ darkgreen: "#006400",
156
+ darkgrey: "#a9a9a9",
157
+ darkkhaki: "#bdb76b",
158
+ darkmagenta: "#8b008b",
159
+ darkolivegreen: "#556b2f",
160
+ darkorange: "#ff8c00",
161
+ darkorchid: "#9932cc",
162
+ darkred: "#8b0000",
163
+ darksalmon: "#e9967a",
164
+ darkseagreen: "#8fbc8f",
165
+ darkslateblue: "#483d8b",
166
+ darkslategray: "#2f4f4f",
167
+ darkslategrey: "#2f4f4f",
168
+ darkturquoise: "#00ced1",
169
+ darkviolet: "#9400d3",
170
+ deeppink: "#ff1493",
171
+ deepskyblue: "#00bfff",
172
+ dimgray: "#696969",
173
+ dimgrey: "#696969",
174
+ dodgerblue: "#1e90ff",
175
+ firebrick: "#b22222",
176
+ floralwhite: "#fffaf0",
177
+ forestgreen: "#228b22",
178
+ fuchsia: "#ff00ff",
179
+ gainsboro: "#dcdcdc",
180
+ ghostwhite: "#f8f8ff",
181
+ gold: "#ffd700",
182
+ goldenrod: "#daa520",
183
+ gray: "#808080",
184
+ green: "#008000",
185
+ greenyellow: "#adff2f",
186
+ grey: "#808080",
187
+ honeydew: "#f0fff0",
188
+ hotpink: "#ff69b4",
189
+ indianred: "#cd5c5c",
190
+ indigo: "#4b0082",
191
+ ivory: "#fffff0",
192
+ khaki: "#f0e68c",
193
+ lavender: "#e6e6fa",
194
+ lavenderblush: "#fff0f5",
195
+ lawngreen: "#7cfc00",
196
+ lemonchiffon: "#fffacd",
197
+ lightblue: "#add8e6",
198
+ lightcoral: "#f08080",
199
+ lightcyan: "#e0ffff",
200
+ lightgoldenrodyellow: "#fafad2",
201
+ lightgray: "#d3d3d3",
202
+ lightgreen: "#90ee90",
203
+ lightgrey: "#d3d3d3",
204
+ lightpink: "#ffb6c1",
205
+ lightsalmon: "#ffa07a",
206
+ lightseagreen: "#20b2aa",
207
+ lightskyblue: "#87cefa",
208
+ lightslategray: "#778899",
209
+ lightslategrey: "#778899",
210
+ lightsteelblue: "#b0c4de",
211
+ lightyellow: "#ffffe0",
212
+ lime: "#00ff00",
213
+ limegreen: "#32cd32",
214
+ linen: "#faf0e6",
215
+ magenta: "#ff00ff",
216
+ maroon: "#800000",
217
+ mediumaquamarine: "#66cdaa",
218
+ mediumblue: "#0000cd",
219
+ mediumorchid: "#ba55d3",
220
+ mediumpurple: "#9370db",
221
+ mediumseagreen: "#3cb371",
222
+ mediumslateblue: "#7b68ee",
223
+ mediumspringgreen: "#00fa9a",
224
+ mediumturquoise: "#48d1cc",
225
+ mediumvioletred: "#c71585",
226
+ midnightblue: "#191970",
227
+ mintcream: "#f5fffa",
228
+ mistyrose: "#ffe4e1",
229
+ moccasin: "#ffe4b5",
230
+ navajowhite: "#ffdead",
231
+ navy: "#000080",
232
+ oldlace: "#fdf5e6",
233
+ olive: "#808000",
234
+ olivedrab: "#6b8e23",
235
+ orange: "#ffa500",
236
+ orangered: "#ff4500",
237
+ orchid: "#da70d6",
238
+ palegoldenrod: "#eee8aa",
239
+ palegreen: "#98fb98",
240
+ paleturquoise: "#afeeee",
241
+ palevioletred: "#db7093",
242
+ papayawhip: "#ffefd5",
243
+ peachpuff: "#ffdab9",
244
+ peru: "#cd853f",
245
+ pink: "#ffc0cb",
246
+ plum: "#dda0dd",
247
+ powderblue: "#b0e0e6",
248
+ purple: "#800080",
249
+ red: "#ff0000",
250
+ rosybrown: "#bc8f8f",
251
+ royalblue: "#4169e1",
252
+ saddlebrown: "#8b4513",
253
+ salmon: "#fa8072",
254
+ sandybrown: "#f4a460",
255
+ seagreen: "#2e8b57",
256
+ seashell: "#fff5ee",
257
+ sienna: "#a0522d",
258
+ silver: "#c0c0c0",
259
+ skyblue: "#87ceeb",
260
+ slateblue: "#6a5acd",
261
+ slategray: "#708090",
262
+ slategrey: "#708090",
263
+ snow: "#fffafa",
264
+ springgreen: "#00ff7f",
265
+ steelblue: "#4682b4",
266
+ tan: "#d2b48c",
267
+ teal: "#008080",
268
+ thistle: "#d8bfd8",
269
+ tomato: "#ff6347",
270
+ turquoise: "#40e0d0",
271
+ violet: "#ee82ee",
272
+ wheat: "#f5deb3",
273
+ white: "#ffffff",
274
+ whitesmoke: "#f5f5f5",
275
+ yellow: "#ffff00",
276
+ yellowgreen: "#9acd32"
277
+ };
278
+
279
+ for (var d3_rgb_name in d3_rgb_names) {
280
+ d3_rgb_names[d3_rgb_name] = d3_rgb_parse(
281
+ d3_rgb_names[d3_rgb_name],
282
+ d3_rgb,
283
+ d3_hsl_rgb);
284
+ }