visjs-rails 4.16.1.0 → 4.21.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (388) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +19 -19
  3. data/example/.gitignore +26 -0
  4. data/example/.ruby-version +1 -0
  5. data/example/Gemfile +64 -0
  6. data/example/Gemfile.lock +224 -0
  7. data/example/README.md +24 -0
  8. data/example/Rakefile +6 -0
  9. data/example/app/assets/config/manifest.js +3 -0
  10. data/example/app/assets/images/.keep +0 -0
  11. data/example/app/assets/javascripts/application.js +20 -0
  12. data/example/app/assets/javascripts/cable.js +13 -0
  13. data/example/app/assets/javascripts/channels/.keep +0 -0
  14. data/example/app/assets/javascripts/welcome.coffee +6 -0
  15. data/example/app/assets/stylesheets/application.scss +3 -0
  16. data/example/app/assets/stylesheets/welcome.scss +3 -0
  17. data/example/app/channels/application_cable/channel.rb +4 -0
  18. data/example/app/channels/application_cable/connection.rb +4 -0
  19. data/example/app/controllers/application_controller.rb +2 -0
  20. data/example/app/controllers/concerns/.keep +0 -0
  21. data/example/app/controllers/welcome_controller.rb +4 -0
  22. data/example/app/helpers/application_helper.rb +2 -0
  23. data/example/app/helpers/welcome_helper.rb +2 -0
  24. data/example/app/jobs/application_job.rb +2 -0
  25. data/example/app/mailers/application_mailer.rb +4 -0
  26. data/example/app/models/application_record.rb +3 -0
  27. data/example/app/models/concerns/.keep +0 -0
  28. data/example/app/views/layouts/application.html.erb +15 -0
  29. data/example/app/views/layouts/mailer.html.erb +13 -0
  30. data/example/app/views/layouts/mailer.text.erb +1 -0
  31. data/example/app/views/welcome/index.html.erb +48 -0
  32. data/example/bin/bundle +3 -0
  33. data/example/bin/rails +9 -0
  34. data/example/bin/rake +9 -0
  35. data/example/bin/setup +36 -0
  36. data/example/bin/spring +17 -0
  37. data/example/bin/update +31 -0
  38. data/example/bin/yarn +11 -0
  39. data/example/config.ru +5 -0
  40. data/example/config/application.rb +19 -0
  41. data/example/config/boot.rb +4 -0
  42. data/example/config/cable.yml +10 -0
  43. data/example/config/credentials.yml.enc +1 -0
  44. data/example/config/database.yml +85 -0
  45. data/example/config/environment.rb +5 -0
  46. data/example/config/environments/development.rb +61 -0
  47. data/example/config/environments/production.rb +94 -0
  48. data/example/config/environments/test.rb +46 -0
  49. data/example/config/initializers/application_controller_renderer.rb +8 -0
  50. data/example/config/initializers/assets.rb +14 -0
  51. data/example/config/initializers/backtrace_silencers.rb +7 -0
  52. data/example/config/initializers/content_security_policy.rb +25 -0
  53. data/example/config/initializers/cookies_serializer.rb +5 -0
  54. data/example/config/initializers/filter_parameter_logging.rb +4 -0
  55. data/example/config/initializers/inflections.rb +16 -0
  56. data/example/config/initializers/mime_types.rb +4 -0
  57. data/example/config/initializers/wrap_parameters.rb +14 -0
  58. data/example/config/locales/en.yml +33 -0
  59. data/example/config/puma.rb +34 -0
  60. data/example/config/routes.rb +5 -0
  61. data/example/config/spring.rb +6 -0
  62. data/example/config/storage.yml +34 -0
  63. data/example/db/seeds.rb +7 -0
  64. data/example/lib/assets/.keep +0 -0
  65. data/example/lib/tasks/.keep +0 -0
  66. data/example/log/.keep +0 -0
  67. data/example/package.json +5 -0
  68. data/example/public/404.html +67 -0
  69. data/example/public/422.html +67 -0
  70. data/example/public/500.html +66 -0
  71. data/example/public/apple-touch-icon-precomposed.png +0 -0
  72. data/example/public/apple-touch-icon.png +0 -0
  73. data/example/public/favicon.ico +0 -0
  74. data/example/public/robots.txt +1 -0
  75. data/example/test/application_system_test_case.rb +5 -0
  76. data/example/test/controllers/.keep +0 -0
  77. data/example/test/controllers/welcome_controller_test.rb +9 -0
  78. data/example/test/fixtures/.keep +0 -0
  79. data/example/test/fixtures/files/.keep +0 -0
  80. data/example/test/helpers/.keep +0 -0
  81. data/example/test/integration/.keep +0 -0
  82. data/example/test/mailers/.keep +0 -0
  83. data/example/test/models/.keep +0 -0
  84. data/example/test/system/.keep +0 -0
  85. data/example/test/test_helper.rb +10 -0
  86. data/example/tmp/.keep +0 -0
  87. data/example/vendor/.keep +0 -0
  88. data/examples_for_vis/graph2d/01_basic.html +71 -0
  89. data/examples_for_vis/graph2d/02_bars.html +80 -0
  90. data/examples_for_vis/graph2d/03_groups.html +112 -0
  91. data/examples_for_vis/graph2d/04_rightAxis.html +126 -0
  92. data/examples_for_vis/graph2d/05_bothAxis.html +228 -0
  93. data/examples_for_vis/graph2d/06_interpolation.html +160 -0
  94. data/examples_for_vis/graph2d/07_scrollingAndSorting.html +74 -0
  95. data/examples_for_vis/graph2d/08_performance.html +194 -0
  96. data/examples_for_vis/graph2d/09_external_legend.html +452 -0
  97. data/examples_for_vis/graph2d/10_barsSideBySide.html +75 -0
  98. data/examples_for_vis/graph2d/11_barsSideBySideGroups.html +181 -0
  99. data/examples_for_vis/graph2d/12_customRange.html +92 -0
  100. data/examples_for_vis/graph2d/13_localization.html +65 -0
  101. data/examples_for_vis/graph2d/14_toggleGroups.html +145 -0
  102. data/examples_for_vis/graph2d/15_streaming_data.html +122 -0
  103. data/examples_for_vis/graph2d/16_bothAxisTitles.html +201 -0
  104. data/examples_for_vis/graph2d/17_dynamicStyling.html +281 -0
  105. data/examples_for_vis/graph2d/18_scatterplot.html +63 -0
  106. data/examples_for_vis/graph2d/19_labels.html +213 -0
  107. data/examples_for_vis/graph2d/20_shading.html +218 -0
  108. data/examples_for_vis/graph2d/21_barsWithEnd.html +76 -0
  109. data/examples_for_vis/graph2d/default.css +87 -0
  110. data/examples_for_vis/graph3d/01_basics.html +71 -0
  111. data/examples_for_vis/graph3d/02_camera.html +110 -0
  112. data/examples_for_vis/graph3d/03_filter_data.html +64 -0
  113. data/examples_for_vis/graph3d/04_animation.html +70 -0
  114. data/examples_for_vis/graph3d/05_line.html +60 -0
  115. data/examples_for_vis/graph3d/06_moving_dots.html +78 -0
  116. data/examples_for_vis/graph3d/07_dot_cloud_colors.html +72 -0
  117. data/examples_for_vis/graph3d/08_dot_cloud_size.html +69 -0
  118. data/examples_for_vis/graph3d/09_mobile.html +79 -0
  119. data/examples_for_vis/graph3d/10_styling.html +121 -0
  120. data/examples_for_vis/graph3d/11_tooltips.html +132 -0
  121. data/examples_for_vis/graph3d/12_custom_labels.html +116 -0
  122. data/examples_for_vis/graph3d/default.css +87 -0
  123. data/examples_for_vis/graph3d/playground/csv2array.js +120 -0
  124. data/examples_for_vis/graph3d/playground/csv2datatable.html +80 -0
  125. data/examples_for_vis/graph3d/playground/datasource.html +173 -0
  126. data/examples_for_vis/graph3d/playground/datasource.php +155 -0
  127. data/examples_for_vis/graph3d/playground/index.html +196 -0
  128. data/examples_for_vis/graph3d/playground/playground.css +91 -0
  129. data/examples_for_vis/graph3d/playground/playground.js +550 -0
  130. data/examples_for_vis/graph3d/playground/prettify/lang-apollo.js +2 -0
  131. data/examples_for_vis/graph3d/playground/prettify/lang-css.js +2 -0
  132. data/examples_for_vis/graph3d/playground/prettify/lang-hs.js +2 -0
  133. data/examples_for_vis/graph3d/playground/prettify/lang-lisp.js +2 -0
  134. data/examples_for_vis/graph3d/playground/prettify/lang-lua.js +2 -0
  135. data/examples_for_vis/graph3d/playground/prettify/lang-ml.js +2 -0
  136. data/examples_for_vis/graph3d/playground/prettify/lang-proto.js +1 -0
  137. data/examples_for_vis/graph3d/playground/prettify/lang-scala.js +2 -0
  138. data/examples_for_vis/graph3d/playground/prettify/lang-sql.js +2 -0
  139. data/examples_for_vis/graph3d/playground/prettify/lang-vb.js +2 -0
  140. data/examples_for_vis/graph3d/playground/prettify/lang-vhdl.js +3 -0
  141. data/examples_for_vis/graph3d/playground/prettify/lang-wiki.js +2 -0
  142. data/examples_for_vis/graph3d/playground/prettify/lang-yaml.js +2 -0
  143. data/examples_for_vis/graph3d/playground/prettify/prettify.css +1 -0
  144. data/examples_for_vis/graph3d/playground/prettify/prettify.js +33 -0
  145. data/examples_for_vis/network/basicUsage.html +87 -0
  146. data/examples_for_vis/network/data/datasets.html +196 -0
  147. data/examples_for_vis/network/data/dotLanguage/data/cellular_automata.gv.txt +23 -0
  148. data/examples_for_vis/network/data/dotLanguage/data/computer_network.gv.txt +19 -0
  149. data/examples_for_vis/network/data/dotLanguage/data/simple.gv.txt +15 -0
  150. data/examples_for_vis/network/data/dotLanguage/dotEdgeStyles.html +197 -0
  151. data/examples_for_vis/network/data/dotLanguage/dotLanguage.html +22 -0
  152. data/examples_for_vis/network/data/dotLanguage/dotPlayground.html +216 -0
  153. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/fsm.gv.txt +20 -0
  154. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/hello.gv.txt +1 -0
  155. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/process.gv.txt +15 -0
  156. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/fsm.png +0 -0
  157. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/hello.png +0 -0
  158. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/softmaint.png +0 -0
  159. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/traffic_lights.png +0 -0
  160. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/siblings.gv.txt +512 -0
  161. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/softmaint.gv.txt +377 -0
  162. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/traffic_lights.gv.txt +29 -0
  163. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/transparency.gv.txt +105 -0
  164. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/twopi2.gv.txt +2212 -0
  165. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/unix.gv.txt +55 -0
  166. data/examples_for_vis/network/data/dotLanguage/graphvizGallery/world.gv.txt +67 -0
  167. data/examples_for_vis/network/data/dynamicData.html +266 -0
  168. data/examples_for_vis/network/data/importingFromGephi.html +174 -0
  169. data/examples_for_vis/network/data/scalingCustom.html +86 -0
  170. data/examples_for_vis/network/data/scalingNodesEdges.html +79 -0
  171. data/examples_for_vis/network/data/scalingNodesEdgesLabels.html +85 -0
  172. data/examples_for_vis/network/datasources/WorldCup2014.js +9970 -0
  173. data/examples_for_vis/network/datasources/WorldCup2014.json +1 -0
  174. data/examples_for_vis/network/datasources/largeHierarchicalDataset.js +2 -0
  175. data/examples_for_vis/network/edgeStyles/arrowTypes.html +103 -0
  176. data/examples_for_vis/network/edgeStyles/arrows.html +61 -0
  177. data/examples_for_vis/network/edgeStyles/colors.html +71 -0
  178. data/examples_for_vis/network/edgeStyles/dashes.html +57 -0
  179. data/examples_for_vis/network/edgeStyles/smooth.html +78 -0
  180. data/examples_for_vis/network/edgeStyles/smoothWorldCup.html +97 -0
  181. data/examples_for_vis/network/events/interactionEvents.html +132 -0
  182. data/examples_for_vis/network/events/physicsEvents.html +73 -0
  183. data/examples_for_vis/network/events/renderEvents.html +83 -0
  184. data/examples_for_vis/network/exampleApplications/disassemblerExample.html +24 -0
  185. data/examples_for_vis/network/exampleApplications/disassemblerExample.js +53 -0
  186. data/examples_for_vis/network/exampleApplications/lesMiserables.html +396 -0
  187. data/examples_for_vis/network/exampleApplications/loadingBar.html +504 -0
  188. data/examples_for_vis/network/exampleApplications/neighbourhoodHighlight.html +162 -0
  189. data/examples_for_vis/network/exampleApplications/nodeLegend.html +163 -0
  190. data/examples_for_vis/network/exampleApplications/worldCupPerformance.html +98 -0
  191. data/examples_for_vis/network/exampleUtil.js +133 -0
  192. data/examples_for_vis/network/imageSelected/broken-image.png +0 -0
  193. data/examples_for_vis/network/imageSelected/imageSelected.html +82 -0
  194. data/examples_for_vis/network/imageSelected/selected.svg +53 -0
  195. data/examples_for_vis/network/imageSelected/unselected.svg +6 -0
  196. data/examples_for_vis/network/img/indonesia/1.png +0 -0
  197. data/examples_for_vis/network/img/indonesia/10.png +0 -0
  198. data/examples_for_vis/network/img/indonesia/11.png +0 -0
  199. data/examples_for_vis/network/img/indonesia/12.png +0 -0
  200. data/examples_for_vis/network/img/indonesia/13.png +0 -0
  201. data/examples_for_vis/network/img/indonesia/14.png +0 -0
  202. data/examples_for_vis/network/img/indonesia/2.png +0 -0
  203. data/examples_for_vis/network/img/indonesia/3.png +0 -0
  204. data/examples_for_vis/network/img/indonesia/4.png +0 -0
  205. data/examples_for_vis/network/img/indonesia/5.png +0 -0
  206. data/examples_for_vis/network/img/indonesia/6.png +0 -0
  207. data/examples_for_vis/network/img/indonesia/7.png +0 -0
  208. data/examples_for_vis/network/img/indonesia/8.png +0 -0
  209. data/examples_for_vis/network/img/indonesia/9.png +0 -0
  210. data/examples_for_vis/network/img/refresh-cl/Hardware-Fax-icon.png +0 -0
  211. data/examples_for_vis/network/img/refresh-cl/Hardware-Laptop-1-icon.png +0 -0
  212. data/examples_for_vis/network/img/refresh-cl/Hardware-Mobile-Phone-icon.png +0 -0
  213. data/examples_for_vis/network/img/refresh-cl/Hardware-My-Computer-3-icon.png +0 -0
  214. data/examples_for_vis/network/img/refresh-cl/Hardware-My-PDA-02-icon.png +0 -0
  215. data/examples_for_vis/network/img/refresh-cl/Hardware-My-PDA-04-icon.png +0 -0
  216. data/examples_for_vis/network/img/refresh-cl/Hardware-My-PDA-05-icon.png +0 -0
  217. data/examples_for_vis/network/img/refresh-cl/Hardware-My-Phone-Picture-icon.png +0 -0
  218. data/examples_for_vis/network/img/refresh-cl/Hardware-Printer-Blue-icon.png +0 -0
  219. data/examples_for_vis/network/img/refresh-cl/Misc-Scanner-default-icon.png +0 -0
  220. data/examples_for_vis/network/img/refresh-cl/Network-Drive-icon.png +0 -0
  221. data/examples_for_vis/network/img/refresh-cl/Network-Internet-Connection-icon.png +0 -0
  222. data/examples_for_vis/network/img/refresh-cl/Network-Pipe-icon.png +0 -0
  223. data/examples_for_vis/network/img/refresh-cl/System-Firewall-2-icon.png +0 -0
  224. data/examples_for_vis/network/img/refresh-cl/System-Globe-icon.png +0 -0
  225. data/examples_for_vis/network/img/refresh-cl/license.txt +14 -0
  226. data/examples_for_vis/network/img/soft-scraps-icons/Document-icon24.png +0 -0
  227. data/examples_for_vis/network/img/soft-scraps-icons/Document-icon32.png +0 -0
  228. data/examples_for_vis/network/img/soft-scraps-icons/Document-icon48.png +0 -0
  229. data/examples_for_vis/network/img/soft-scraps-icons/Email-icon24.png +0 -0
  230. data/examples_for_vis/network/img/soft-scraps-icons/Email-icon32.png +0 -0
  231. data/examples_for_vis/network/img/soft-scraps-icons/Email-icon48.png +0 -0
  232. data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon24.png +0 -0
  233. data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon32.png +0 -0
  234. data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon48.png +0 -0
  235. data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon64.png +0 -0
  236. data/examples_for_vis/network/img/soft-scraps-icons/Smiley-Angry-icon.png +0 -0
  237. data/examples_for_vis/network/img/soft-scraps-icons/Smiley-Grin-icon.png +0 -0
  238. data/examples_for_vis/network/img/soft-scraps-icons/User-Administrator-Blue-icon.png +0 -0
  239. data/examples_for_vis/network/img/soft-scraps-icons/User-Administrator-Green-icon.png +0 -0
  240. data/examples_for_vis/network/img/soft-scraps-icons/User-Coat-Blue-icon.png +0 -0
  241. data/examples_for_vis/network/img/soft-scraps-icons/User-Coat-Green-icon.png +0 -0
  242. data/examples_for_vis/network/img/soft-scraps-icons/User-Coat-Red-icon.png +0 -0
  243. data/examples_for_vis/network/img/soft-scraps-icons/User-Executive-Green-icon.png +0 -0
  244. data/examples_for_vis/network/img/soft-scraps-icons/User-Preppy-Blue-icon.png +0 -0
  245. data/examples_for_vis/network/img/soft-scraps-icons/User-Preppy-Red-icon.png +0 -0
  246. data/examples_for_vis/network/img/soft-scraps-icons/license.txt +12 -0
  247. data/examples_for_vis/network/labels/labelAlignment.html +70 -0
  248. data/examples_for_vis/network/labels/labelBackground.html +57 -0
  249. data/examples_for_vis/network/labels/labelColorAndSize.html +61 -0
  250. data/examples_for_vis/network/labels/labelMargins.html +63 -0
  251. data/examples_for_vis/network/labels/labelMultifont.html +115 -0
  252. data/examples_for_vis/network/labels/labelStroke.html +61 -0
  253. data/examples_for_vis/network/labels/multilineText.html +52 -0
  254. data/examples_for_vis/network/layout/demo.jsonp +1894 -0
  255. data/examples_for_vis/network/layout/demo_big.jsonp +3762 -0
  256. data/examples_for_vis/network/layout/hierarchicalLayout.html +114 -0
  257. data/examples_for_vis/network/layout/hierarchicalLayoutBigUserDefined.html +46 -0
  258. data/examples_for_vis/network/layout/hierarchicalLayoutMethods.html +108 -0
  259. data/examples_for_vis/network/layout/hierarchicalLayoutUserdefined.html +152 -0
  260. data/examples_for_vis/network/layout/hierarchicalLayoutWithoutPhysics.html +111 -0
  261. data/examples_for_vis/network/layout/randomSeed.html +60 -0
  262. data/examples_for_vis/network/nodeStyles/HTMLInNodes.html +83 -0
  263. data/examples_for_vis/network/nodeStyles/circularImages.html +219 -0
  264. data/examples_for_vis/network/nodeStyles/colors.html +140 -0
  265. data/examples_for_vis/network/nodeStyles/customGroups.html +132 -0
  266. data/examples_for_vis/network/nodeStyles/groups.html +119 -0
  267. data/examples_for_vis/network/nodeStyles/icons.html +196 -0
  268. data/examples_for_vis/network/nodeStyles/images.html +82 -0
  269. data/examples_for_vis/network/nodeStyles/imagesWithBorders.html +105 -0
  270. data/examples_for_vis/network/nodeStyles/shadows.html +119 -0
  271. data/examples_for_vis/network/nodeStyles/shapes.html +73 -0
  272. data/examples_for_vis/network/nodeStyles/shapesWithDashedBorders.html +61 -0
  273. data/examples_for_vis/network/nodeStyles/widthHeight.html +121 -0
  274. data/examples_for_vis/network/other/animationShowcase.html +279 -0
  275. data/examples_for_vis/network/other/changingClusteredEdgesNodes.html +107 -0
  276. data/examples_for_vis/network/other/chosen.html +466 -0
  277. data/examples_for_vis/network/other/clustering.html +141 -0
  278. data/examples_for_vis/network/other/clusteringByZoom.html +160 -0
  279. data/examples_for_vis/network/other/clustersOfclusters.html +88 -0
  280. data/examples_for_vis/network/other/configuration.html +83 -0
  281. data/examples_for_vis/network/other/cursorChange.html +140 -0
  282. data/examples_for_vis/network/other/manipulation.html +193 -0
  283. data/examples_for_vis/network/other/manipulationEditEdgeNoDrag.html +255 -0
  284. data/examples_for_vis/network/other/navigation.html +135 -0
  285. data/examples_for_vis/network/other/onLoadAnimation.html +85 -0
  286. data/examples_for_vis/network/other/performance.html +91 -0
  287. data/examples_for_vis/network/other/saveAndLoad.html +202 -0
  288. data/examples_for_vis/network/physics/physicsConfiguration.html +85 -0
  289. data/examples_for_vis/timeline/basicUsage.html +45 -0
  290. data/examples_for_vis/timeline/dataHandling/dataSerialization.html +123 -0
  291. data/examples_for_vis/timeline/dataHandling/loadExternalData.html +61 -0
  292. data/examples_for_vis/timeline/editing/customSnappingOfItems.html +76 -0
  293. data/examples_for_vis/timeline/editing/editingItems.html +109 -0
  294. data/examples_for_vis/timeline/editing/editingItemsCallbacks.html +172 -0
  295. data/examples_for_vis/timeline/editing/individualEditableItems.html +131 -0
  296. data/examples_for_vis/timeline/editing/itemsAlwaysDraggable.html +44 -0
  297. data/examples_for_vis/timeline/editing/overrideEditingItems.html +166 -0
  298. data/examples_for_vis/timeline/editing/tooltipOnItemChange.html +133 -0
  299. data/examples_for_vis/timeline/editing/updateDataOnEvent.html +87 -0
  300. data/examples_for_vis/timeline/groups/groups.html +79 -0
  301. data/examples_for_vis/timeline/groups/groupsEditable.html +2001 -0
  302. data/examples_for_vis/timeline/groups/groupsOrdering.html +117 -0
  303. data/examples_for_vis/timeline/groups/nestedGroups.html +113 -0
  304. data/examples_for_vis/timeline/groups/subgroups.html +326 -0
  305. data/examples_for_vis/timeline/groups/verticalItemsHide.html +196 -0
  306. data/examples_for_vis/timeline/interaction/animateWindow.html +143 -0
  307. data/examples_for_vis/timeline/interaction/clickToUse.html +107 -0
  308. data/examples_for_vis/timeline/interaction/eventListeners.html +166 -0
  309. data/examples_for_vis/timeline/interaction/limitMoveAndZoom.html +70 -0
  310. data/examples_for_vis/timeline/interaction/navigationMenu.html +121 -0
  311. data/examples_for_vis/timeline/interaction/rollingMode.html +50 -0
  312. data/examples_for_vis/timeline/interaction/setSelection.html +223 -0
  313. data/examples_for_vis/timeline/items/backgroundAreas.html +92 -0
  314. data/examples_for_vis/timeline/items/backgroundAreasWithGroups.html +123 -0
  315. data/examples_for_vis/timeline/items/expectedVsActualTimesItems.html +136 -0
  316. data/examples_for_vis/timeline/items/htmlContents.html +109 -0
  317. data/examples_for_vis/timeline/items/itemOrdering.html +88 -0
  318. data/examples_for_vis/timeline/items/pointItems.html +124 -0
  319. data/examples_for_vis/timeline/items/rangeOverflowItem.html +88 -0
  320. data/examples_for_vis/timeline/items/tooltip.html +120 -0
  321. data/examples_for_vis/timeline/items/visibleFrameTemplateContent.html +67 -0
  322. data/examples_for_vis/timeline/other/customTimeBars.html +99 -0
  323. data/examples_for_vis/timeline/other/customTimeBarsTooltip.html +105 -0
  324. data/examples_for_vis/timeline/other/dataAttributes.html +79 -0
  325. data/examples_for_vis/timeline/other/dataAttributesAll.html +78 -0
  326. data/examples_for_vis/timeline/other/drag&drop.html +201 -0
  327. data/examples_for_vis/timeline/other/functionLabelFormats.html +147 -0
  328. data/examples_for_vis/timeline/other/groupsPerformance.html +124 -0
  329. data/examples_for_vis/timeline/other/hidingPeriods.html +92 -0
  330. data/examples_for_vis/timeline/other/horizontalScroll.html +77 -0
  331. data/examples_for_vis/timeline/other/localization.html +81 -0
  332. data/examples_for_vis/timeline/other/performance.html +79 -0
  333. data/examples_for_vis/timeline/other/requirejs/requirejs_example.html +17 -0
  334. data/examples_for_vis/timeline/other/requirejs/scripts/main.js +19 -0
  335. data/examples_for_vis/timeline/other/requirejs/scripts/require.js +35 -0
  336. data/examples_for_vis/timeline/other/rtl.html +82 -0
  337. data/examples_for_vis/timeline/other/stressPerformance.html +66 -0
  338. data/examples_for_vis/timeline/other/timezone.html +98 -0
  339. data/examples_for_vis/timeline/other/usingReact.html +68 -0
  340. data/examples_for_vis/timeline/other/verticalScroll.html +91 -0
  341. data/examples_for_vis/timeline/resources/data/basic.json +34 -0
  342. data/examples_for_vis/timeline/resources/data/wk2014.json +152 -0
  343. data/examples_for_vis/timeline/resources/img/Hardware-Mobile-Phone-icon.png +0 -0
  344. data/examples_for_vis/timeline/resources/img/attachment-icon.png +0 -0
  345. data/examples_for_vis/timeline/resources/img/blog-post-edit-icon.png +0 -0
  346. data/examples_for_vis/timeline/resources/img/comments-icon.png +0 -0
  347. data/examples_for_vis/timeline/resources/img/community-users-icon.png +0 -0
  348. data/examples_for_vis/timeline/resources/img/license.txt +17 -0
  349. data/examples_for_vis/timeline/resources/img/license_aesthetica-2.txt +36 -0
  350. data/examples_for_vis/timeline/resources/img/license_refresh-cl.txt +26 -0
  351. data/examples_for_vis/timeline/resources/img/mail-icon.png +0 -0
  352. data/examples_for_vis/timeline/resources/img/notes-edit-icon.png +0 -0
  353. data/examples_for_vis/timeline/resources/img/product-icon.png +0 -0
  354. data/examples_for_vis/timeline/resources/img/truck-icon.png +0 -0
  355. data/examples_for_vis/timeline/styling/axisOrientation.html +113 -0
  356. data/examples_for_vis/timeline/styling/customCss.html +128 -0
  357. data/examples_for_vis/timeline/styling/gridStyling.html +80 -0
  358. data/examples_for_vis/timeline/styling/itemClassNames.html +125 -0
  359. data/examples_for_vis/timeline/styling/itemTemplates.html +264 -0
  360. data/examples_for_vis/timeline/styling/weekStyling.html +129 -0
  361. data/lib/visjs/rails/version.rb +1 -1
  362. data/vendor/assets/images/network/acceptDeleteIcon.png +0 -0
  363. data/vendor/assets/images/network/addNodeIcon.png +0 -0
  364. data/vendor/assets/images/network/backIcon.png +0 -0
  365. data/vendor/assets/images/network/connectIcon.png +0 -0
  366. data/vendor/assets/images/network/cross.png +0 -0
  367. data/vendor/assets/images/network/cross2.png +0 -0
  368. data/vendor/assets/images/network/deleteIcon.png +0 -0
  369. data/vendor/assets/images/network/downArrow.png +0 -0
  370. data/vendor/assets/images/network/editIcon.png +0 -0
  371. data/vendor/assets/images/network/leftArrow.png +0 -0
  372. data/vendor/assets/images/network/minus.png +0 -0
  373. data/vendor/assets/images/network/plus.png +0 -0
  374. data/vendor/assets/images/network/rightArrow.png +0 -0
  375. data/vendor/assets/images/network/upArrow.png +0 -0
  376. data/vendor/assets/images/network/zoomExtends.png +0 -0
  377. data/vendor/assets/javascripts/vis-graph3d.min.js +9 -12
  378. data/vendor/assets/javascripts/vis-network.min.js +9 -20
  379. data/vendor/assets/javascripts/vis-timeline-graph2d.min.js +9 -18
  380. data/vendor/assets/javascripts/vis.js +53293 -39579
  381. data/vendor/assets/javascripts/vis.min.js +26 -23
  382. data/vendor/assets/stylesheets/vis-network.min.css +1 -0
  383. data/vendor/assets/stylesheets/vis-timeline-graph2d.min.css +1 -0
  384. data/vendor/assets/stylesheets/{vis.scss → vis.css} +764 -640
  385. data/vendor/assets/stylesheets/vis.min.css +1 -0
  386. metadata +365 -6
  387. data/vendor/assets/images/timeline/delete.png +0 -0
  388. data/vendor/assets/stylesheets/vis.min.scss +0 -1
@@ -0,0 +1,504 @@
1
+ <!doctype html>
2
+ <html>
3
+ <head>
4
+ <title>Network | Les miserables</title>
5
+
6
+ <style type="text/css">
7
+ #mynetwork {
8
+ width: 900px;
9
+ height: 900px;
10
+ border: 1px solid lightgray;
11
+ }
12
+ #loadingBar {
13
+ position:absolute;
14
+ top:0px;
15
+ left:0px;
16
+ width: 902px;
17
+ height: 902px;
18
+ background-color:rgba(200,200,200,0.8);
19
+ -webkit-transition: all 0.5s ease;
20
+ -moz-transition: all 0.5s ease;
21
+ -ms-transition: all 0.5s ease;
22
+ -o-transition: all 0.5s ease;
23
+ transition: all 0.5s ease;
24
+ opacity:1;
25
+ }
26
+ #wrapper {
27
+ position:relative;
28
+ width:900px;
29
+ height:900px;
30
+ }
31
+
32
+ #text {
33
+ position:absolute;
34
+ top:8px;
35
+ left:530px;
36
+ width:30px;
37
+ height:50px;
38
+ margin:auto auto auto auto;
39
+ font-size:22px;
40
+ color: #000000;
41
+ }
42
+
43
+
44
+ div.outerBorder {
45
+ position:relative;
46
+ top:400px;
47
+ width:600px;
48
+ height:44px;
49
+ margin:auto auto auto auto;
50
+ border:8px solid rgba(0,0,0,0.1);
51
+ background: rgb(252,252,252); /* Old browsers */
52
+ background: -moz-linear-gradient(top, rgba(252,252,252,1) 0%, rgba(237,237,237,1) 100%); /* FF3.6+ */
53
+ background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(252,252,252,1)), color-stop(100%,rgba(237,237,237,1))); /* Chrome,Safari4+ */
54
+ background: -webkit-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* Chrome10+,Safari5.1+ */
55
+ background: -o-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* Opera 11.10+ */
56
+ background: -ms-linear-gradient(top, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* IE10+ */
57
+ background: linear-gradient(to bottom, rgba(252,252,252,1) 0%,rgba(237,237,237,1) 100%); /* W3C */
58
+ filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#fcfcfc', endColorstr='#ededed',GradientType=0 ); /* IE6-9 */
59
+ border-radius:72px;
60
+ box-shadow: 0px 0px 10px rgba(0,0,0,0.2);
61
+ }
62
+
63
+ #border {
64
+ position:absolute;
65
+ top:10px;
66
+ left:10px;
67
+ width:500px;
68
+ height:23px;
69
+ margin:auto auto auto auto;
70
+ box-shadow: 0px 0px 4px rgba(0,0,0,0.2);
71
+ border-radius:10px;
72
+ }
73
+
74
+ #bar {
75
+ position:absolute;
76
+ top:0px;
77
+ left:0px;
78
+ width:20px;
79
+ height:20px;
80
+ margin:auto auto auto auto;
81
+ border-radius:11px;
82
+ border:2px solid rgba(30,30,30,0.05);
83
+ background: rgb(0, 173, 246); /* Old browsers */
84
+ box-shadow: 2px 0px 4px rgba(0,0,0,0.4);
85
+ }
86
+ </style>
87
+
88
+ <script type="text/javascript" src="../../../vendor/assets/javascripts/vis.js"></script>
89
+ <link href="../../../vendor/assets/stylesheets/vis-network.min.css" rel="stylesheet" type="text/css"/>
90
+
91
+ <script type="text/javascript">
92
+ function draw() {
93
+ // create some nodes
94
+ var nodes = [
95
+ {id: 0, "label": "Myriel", "group": 1},
96
+ {id: 1, "label": "Napoleon", "group": 1},
97
+ {id: 2, "label": "Mlle.Baptistine", "group": 1},
98
+ {id: 3, "label": "Mme.Magloire", "group": 1},
99
+ {id: 4, "label": "CountessdeLo", "group": 1},
100
+ {id: 5, "label": "Geborand", "group": 1},
101
+ {id: 6, "label": "Champtercier", "group": 1},
102
+ {id: 7, "label": "Cravatte", "group": 1},
103
+ {id: 8, "label": "Count", "group": 1},
104
+ {id: 9, "label": "OldMan", "group": 1},
105
+ {id: 10, "label": "Labarre", "group": 2},
106
+ {id: 11, "label": "Valjean", "group": 2},
107
+ {id: 12, "label": "Marguerite", "group": 3},
108
+ {id: 13, "label": "Mme.deR", "group": 2},
109
+ {id: 14, "label": "Isabeau", "group": 2},
110
+ {id: 15, "label": "Gervais", "group": 2},
111
+ {id: 16, "label": "Tholomyes", "group": 3},
112
+ {id: 17, "label": "Listolier", "group": 3},
113
+ {id: 18, "label": "Fameuil", "group": 3},
114
+ {id: 19, "label": "Blacheville", "group": 3},
115
+ {id: 20, "label": "Favourite", "group": 3},
116
+ {id: 21, "label": "Dahlia", "group": 3},
117
+ {id: 22, "label": "Zephine", "group": 3},
118
+ {id: 23, "label": "Fantine", "group": 3},
119
+ {id: 24, "label": "Mme.Thenardier", "group": 4},
120
+ {id: 25, "label": "Thenardier", "group": 4},
121
+ {id: 26, "label": "Cosette", "group": 5},
122
+ {id: 27, "label": "Javert", "group": 4},
123
+ {id: 28, "label": "Fauchelevent", "group": 0},
124
+ {id: 29, "label": "Bamatabois", "group": 2},
125
+ {id: 30, "label": "Perpetue", "group": 3},
126
+ {id: 31, "label": "Simplice", "group": 2},
127
+ {id: 32, "label": "Scaufflaire", "group": 2},
128
+ {id: 33, "label": "Woman1", "group": 2},
129
+ {id: 34, "label": "Judge", "group": 2},
130
+ {id: 35, "label": "Champmathieu", "group": 2},
131
+ {id: 36, "label": "Brevet", "group": 2},
132
+ {id: 37, "label": "Chenildieu", "group": 2},
133
+ {id: 38, "label": "Cochepaille", "group": 2},
134
+ {id: 39, "label": "Pontmercy", "group": 4},
135
+ {id: 40, "label": "Boulatruelle", "group": 6},
136
+ {id: 41, "label": "Eponine", "group": 4},
137
+ {id: 42, "label": "Anzelma", "group": 4},
138
+ {id: 43, "label": "Woman2", "group": 5},
139
+ {id: 44, "label": "MotherInnocent", "group": 0},
140
+ {id: 45, "label": "Gribier", "group": 0},
141
+ {id: 46, "label": "Jondrette", "group": 7},
142
+ {id: 47, "label": "Mme.Burgon", "group": 7},
143
+ {id: 48, "label": "Gavroche", "group": 8},
144
+ {id: 49, "label": "Gillenormand", "group": 5},
145
+ {id: 50, "label": "Magnon", "group": 5},
146
+ {id: 51, "label": "Mlle.Gillenormand", "group": 5},
147
+ {id: 52, "label": "Mme.Pontmercy", "group": 5},
148
+ {id: 53, "label": "Mlle.Vaubois", "group": 5},
149
+ {id: 54, "label": "Lt.Gillenormand", "group": 5},
150
+ {id: 55, "label": "Marius", "group": 8},
151
+ {id: 56, "label": "BaronessT", "group": 5},
152
+ {id: 57, "label": "Mabeuf", "group": 8},
153
+ {id: 58, "label": "Enjolras", "group": 8},
154
+ {id: 59, "label": "Combeferre", "group": 8},
155
+ {id: 60, "label": "Prouvaire", "group": 8},
156
+ {id: 61, "label": "Feuilly", "group": 8},
157
+ {id: 62, "label": "Courfeyrac", "group": 8},
158
+ {id: 63, "label": "Bahorel", "group": 8},
159
+ {id: 64, "label": "Bossuet", "group": 8},
160
+ {id: 65, "label": "Joly", "group": 8},
161
+ {id: 66, "label": "Grantaire", "group": 8},
162
+ {id: 67, "label": "MotherPlutarch", "group": 9},
163
+ {id: 68, "label": "Gueulemer", "group": 4},
164
+ {id: 69, "label": "Babet", "group": 4},
165
+ {id: 70, "label": "Claquesous", "group": 4},
166
+ {id: 71, "label": "Montparnasse", "group": 4},
167
+ {id: 72, "label": "Toussaint", "group": 5},
168
+ {id: 73, "label": "Child1", "group": 10},
169
+ {id: 74, "label": "Child2", "group": 10},
170
+ {id: 75, "label": "Brujon", "group": 4},
171
+ {id: 76, "label": "Mme.Hucheloup", "group": 8}
172
+ ];
173
+
174
+ // create some edges
175
+ var edges = [
176
+ {"from": 1, "to": 0},
177
+ {"from": 2, "to": 0},
178
+ {"from": 3, "to": 0},
179
+ {"from": 3, "to": 2},
180
+ {"from": 4, "to": 0},
181
+ {"from": 5, "to": 0},
182
+ {"from": 6, "to": 0},
183
+ {"from": 7, "to": 0},
184
+ {"from": 8, "to": 0},
185
+ {"from": 9, "to": 0},
186
+ {"from": 11, "to": 10},
187
+ {"from": 11, "to": 3},
188
+ {"from": 11, "to": 2},
189
+ {"from": 11, "to": 0},
190
+ {"from": 12, "to": 11},
191
+ {"from": 13, "to": 11},
192
+ {"from": 14, "to": 11},
193
+ {"from": 15, "to": 11},
194
+ {"from": 17, "to": 16},
195
+ {"from": 18, "to": 16},
196
+ {"from": 18, "to": 17},
197
+ {"from": 19, "to": 16},
198
+ {"from": 19, "to": 17},
199
+ {"from": 19, "to": 18},
200
+ {"from": 20, "to": 16},
201
+ {"from": 20, "to": 17},
202
+ {"from": 20, "to": 18},
203
+ {"from": 20, "to": 19},
204
+ {"from": 21, "to": 16},
205
+ {"from": 21, "to": 17},
206
+ {"from": 21, "to": 18},
207
+ {"from": 21, "to": 19},
208
+ {"from": 21, "to": 20},
209
+ {"from": 22, "to": 16},
210
+ {"from": 22, "to": 17},
211
+ {"from": 22, "to": 18},
212
+ {"from": 22, "to": 19},
213
+ {"from": 22, "to": 20},
214
+ {"from": 22, "to": 21},
215
+ {"from": 23, "to": 16},
216
+ {"from": 23, "to": 17},
217
+ {"from": 23, "to": 18},
218
+ {"from": 23, "to": 19},
219
+ {"from": 23, "to": 20},
220
+ {"from": 23, "to": 21},
221
+ {"from": 23, "to": 22},
222
+ {"from": 23, "to": 12},
223
+ {"from": 23, "to": 11},
224
+ {"from": 24, "to": 23},
225
+ {"from": 24, "to": 11},
226
+ {"from": 25, "to": 24},
227
+ {"from": 25, "to": 23},
228
+ {"from": 25, "to": 11},
229
+ {"from": 26, "to": 24},
230
+ {"from": 26, "to": 11},
231
+ {"from": 26, "to": 16},
232
+ {"from": 26, "to": 25},
233
+ {"from": 27, "to": 11},
234
+ {"from": 27, "to": 23},
235
+ {"from": 27, "to": 25},
236
+ {"from": 27, "to": 24},
237
+ {"from": 27, "to": 26},
238
+ {"from": 28, "to": 11},
239
+ {"from": 28, "to": 27},
240
+ {"from": 29, "to": 23},
241
+ {"from": 29, "to": 27},
242
+ {"from": 29, "to": 11},
243
+ {"from": 30, "to": 23},
244
+ {"from": 31, "to": 30},
245
+ {"from": 31, "to": 11},
246
+ {"from": 31, "to": 23},
247
+ {"from": 31, "to": 27},
248
+ {"from": 32, "to": 11},
249
+ {"from": 33, "to": 11},
250
+ {"from": 33, "to": 27},
251
+ {"from": 34, "to": 11},
252
+ {"from": 34, "to": 29},
253
+ {"from": 35, "to": 11},
254
+ {"from": 35, "to": 34},
255
+ {"from": 35, "to": 29},
256
+ {"from": 36, "to": 34},
257
+ {"from": 36, "to": 35},
258
+ {"from": 36, "to": 11},
259
+ {"from": 36, "to": 29},
260
+ {"from": 37, "to": 34},
261
+ {"from": 37, "to": 35},
262
+ {"from": 37, "to": 36},
263
+ {"from": 37, "to": 11},
264
+ {"from": 37, "to": 29},
265
+ {"from": 38, "to": 34},
266
+ {"from": 38, "to": 35},
267
+ {"from": 38, "to": 36},
268
+ {"from": 38, "to": 37},
269
+ {"from": 38, "to": 11},
270
+ {"from": 38, "to": 29},
271
+ {"from": 39, "to": 25},
272
+ {"from": 40, "to": 25},
273
+ {"from": 41, "to": 24},
274
+ {"from": 41, "to": 25},
275
+ {"from": 42, "to": 41},
276
+ {"from": 42, "to": 25},
277
+ {"from": 42, "to": 24},
278
+ {"from": 43, "to": 11},
279
+ {"from": 43, "to": 26},
280
+ {"from": 43, "to": 27},
281
+ {"from": 44, "to": 28},
282
+ {"from": 44, "to": 11},
283
+ {"from": 45, "to": 28},
284
+ {"from": 47, "to": 46},
285
+ {"from": 48, "to": 47},
286
+ {"from": 48, "to": 25},
287
+ {"from": 48, "to": 27},
288
+ {"from": 48, "to": 11},
289
+ {"from": 49, "to": 26},
290
+ {"from": 49, "to": 11},
291
+ {"from": 50, "to": 49},
292
+ {"from": 50, "to": 24},
293
+ {"from": 51, "to": 49},
294
+ {"from": 51, "to": 26},
295
+ {"from": 51, "to": 11},
296
+ {"from": 52, "to": 51},
297
+ {"from": 52, "to": 39},
298
+ {"from": 53, "to": 51},
299
+ {"from": 54, "to": 51},
300
+ {"from": 54, "to": 49},
301
+ {"from": 54, "to": 26},
302
+ {"from": 55, "to": 51},
303
+ {"from": 55, "to": 49},
304
+ {"from": 55, "to": 39},
305
+ {"from": 55, "to": 54},
306
+ {"from": 55, "to": 26},
307
+ {"from": 55, "to": 11},
308
+ {"from": 55, "to": 16},
309
+ {"from": 55, "to": 25},
310
+ {"from": 55, "to": 41},
311
+ {"from": 55, "to": 48},
312
+ {"from": 56, "to": 49},
313
+ {"from": 56, "to": 55},
314
+ {"from": 57, "to": 55},
315
+ {"from": 57, "to": 41},
316
+ {"from": 57, "to": 48},
317
+ {"from": 58, "to": 55},
318
+ {"from": 58, "to": 48},
319
+ {"from": 58, "to": 27},
320
+ {"from": 58, "to": 57},
321
+ {"from": 58, "to": 11},
322
+ {"from": 59, "to": 58},
323
+ {"from": 59, "to": 55},
324
+ {"from": 59, "to": 48},
325
+ {"from": 59, "to": 57},
326
+ {"from": 60, "to": 48},
327
+ {"from": 60, "to": 58},
328
+ {"from": 60, "to": 59},
329
+ {"from": 61, "to": 48},
330
+ {"from": 61, "to": 58},
331
+ {"from": 61, "to": 60},
332
+ {"from": 61, "to": 59},
333
+ {"from": 61, "to": 57},
334
+ {"from": 61, "to": 55},
335
+ {"from": 62, "to": 55},
336
+ {"from": 62, "to": 58},
337
+ {"from": 62, "to": 59},
338
+ {"from": 62, "to": 48},
339
+ {"from": 62, "to": 57},
340
+ {"from": 62, "to": 41},
341
+ {"from": 62, "to": 61},
342
+ {"from": 62, "to": 60},
343
+ {"from": 63, "to": 59},
344
+ {"from": 63, "to": 48},
345
+ {"from": 63, "to": 62},
346
+ {"from": 63, "to": 57},
347
+ {"from": 63, "to": 58},
348
+ {"from": 63, "to": 61},
349
+ {"from": 63, "to": 60},
350
+ {"from": 63, "to": 55},
351
+ {"from": 64, "to": 55},
352
+ {"from": 64, "to": 62},
353
+ {"from": 64, "to": 48},
354
+ {"from": 64, "to": 63},
355
+ {"from": 64, "to": 58},
356
+ {"from": 64, "to": 61},
357
+ {"from": 64, "to": 60},
358
+ {"from": 64, "to": 59},
359
+ {"from": 64, "to": 57},
360
+ {"from": 64, "to": 11},
361
+ {"from": 65, "to": 63},
362
+ {"from": 65, "to": 64},
363
+ {"from": 65, "to": 48},
364
+ {"from": 65, "to": 62},
365
+ {"from": 65, "to": 58},
366
+ {"from": 65, "to": 61},
367
+ {"from": 65, "to": 60},
368
+ {"from": 65, "to": 59},
369
+ {"from": 65, "to": 57},
370
+ {"from": 65, "to": 55},
371
+ {"from": 66, "to": 64},
372
+ {"from": 66, "to": 58},
373
+ {"from": 66, "to": 59},
374
+ {"from": 66, "to": 62},
375
+ {"from": 66, "to": 65},
376
+ {"from": 66, "to": 48},
377
+ {"from": 66, "to": 63},
378
+ {"from": 66, "to": 61},
379
+ {"from": 66, "to": 60},
380
+ {"from": 67, "to": 57},
381
+ {"from": 68, "to": 25},
382
+ {"from": 68, "to": 11},
383
+ {"from": 68, "to": 24},
384
+ {"from": 68, "to": 27},
385
+ {"from": 68, "to": 48},
386
+ {"from": 68, "to": 41},
387
+ {"from": 69, "to": 25},
388
+ {"from": 69, "to": 68},
389
+ {"from": 69, "to": 11},
390
+ {"from": 69, "to": 24},
391
+ {"from": 69, "to": 27},
392
+ {"from": 69, "to": 48},
393
+ {"from": 69, "to": 41},
394
+ {"from": 70, "to": 25},
395
+ {"from": 70, "to": 69},
396
+ {"from": 70, "to": 68},
397
+ {"from": 70, "to": 11},
398
+ {"from": 70, "to": 24},
399
+ {"from": 70, "to": 27},
400
+ {"from": 70, "to": 41},
401
+ {"from": 70, "to": 58},
402
+ {"from": 71, "to": 27},
403
+ {"from": 71, "to": 69},
404
+ {"from": 71, "to": 68},
405
+ {"from": 71, "to": 70},
406
+ {"from": 71, "to": 11},
407
+ {"from": 71, "to": 48},
408
+ {"from": 71, "to": 41},
409
+ {"from": 71, "to": 25},
410
+ {"from": 72, "to": 26},
411
+ {"from": 72, "to": 27},
412
+ {"from": 72, "to": 11},
413
+ {"from": 73, "to": 48},
414
+ {"from": 74, "to": 48},
415
+ {"from": 74, "to": 73},
416
+ {"from": 75, "to": 69},
417
+ {"from": 75, "to": 68},
418
+ {"from": 75, "to": 25},
419
+ {"from": 75, "to": 48},
420
+ {"from": 75, "to": 41},
421
+ {"from": 75, "to": 70},
422
+ {"from": 75, "to": 71},
423
+ {"from": 76, "to": 64},
424
+ {"from": 76, "to": 65},
425
+ {"from": 76, "to": 66},
426
+ {"from": 76, "to": 63},
427
+ {"from": 76, "to": 62},
428
+ {"from": 76, "to": 48},
429
+ {"from": 76, "to": 58}
430
+ ];
431
+
432
+ // create a network
433
+ var container = document.getElementById('mynetwork');
434
+ var data = {
435
+ nodes: nodes,
436
+ edges: edges
437
+ };
438
+ var options = {
439
+ nodes: {
440
+ shape: 'dot',
441
+ size: 16
442
+ },
443
+ layout:{
444
+ randomSeed:34
445
+ },
446
+ physics: {
447
+ forceAtlas2Based: {
448
+ gravitationalConstant: -26,
449
+ centralGravity: 0.005,
450
+ springLength: 230,
451
+ springConstant: 0.18
452
+ },
453
+ maxVelocity: 146,
454
+ solver: 'forceAtlas2Based',
455
+ timestep: 0.35,
456
+ stabilization: {
457
+ enabled:true,
458
+ iterations:2000,
459
+ updateInterval:25
460
+ }
461
+ }
462
+ };
463
+ var network = new vis.Network(container, data, options);
464
+
465
+ network.on("stabilizationProgress", function(params) {
466
+ var maxWidth = 496;
467
+ var minWidth = 20;
468
+ var widthFactor = params.iterations/params.total;
469
+ var width = Math.max(minWidth,maxWidth * widthFactor);
470
+
471
+ document.getElementById('bar').style.width = width + 'px';
472
+ document.getElementById('text').innerHTML = Math.round(widthFactor*100) + '%';
473
+ });
474
+ network.once("stabilizationIterationsDone", function() {
475
+ document.getElementById('text').innerHTML = '100%';
476
+ document.getElementById('bar').style.width = '496px';
477
+ document.getElementById('loadingBar').style.opacity = 0;
478
+ // really clean the dom element
479
+ setTimeout(function () {document.getElementById('loadingBar').style.display = 'none';}, 500);
480
+ });
481
+
482
+ }
483
+ </script>
484
+
485
+ </head>
486
+
487
+ <body onload="draw()">
488
+ <p>
489
+ With the new stabilization events you can implement your own custom loading bar for all those long loading times!
490
+ </p>
491
+
492
+ <div id="wrapper">
493
+ <div id="mynetwork"></div>
494
+ <div id="loadingBar">
495
+ <div class="outerBorder">
496
+ <div id="text">0%</div>
497
+ <div id="border">
498
+ <div id="bar"></div>
499
+ </div>
500
+ </div>
501
+ </div>
502
+ </div>
503
+ </body>
504
+ </html>