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,128 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+
4
+ <head>
5
+ <title>Timeline | Custom styling</title>
6
+
7
+ <script src="../../../vendor/assets/javascripts/vis.js"></script>
8
+ <link href="../../../vendor/assets/stylesheets/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
9
+
10
+ <style type="text/css">
11
+ body {
12
+ font-family: purisa, 'comic sans', cursive;
13
+ }
14
+
15
+ .vis-timeline {
16
+ border: 2px solid purple;
17
+ font-family: purisa, 'comic sans', cursive;
18
+ font-size: 12pt;
19
+ background: #ffecea;
20
+ }
21
+
22
+ .vis-item {
23
+ border-color: #F991A3;
24
+ background-color: pink;
25
+ font-size: 15pt;
26
+ color: purple;
27
+ box-shadow: 5px 5px 20px rgba(128, 128, 128, 0.5);
28
+ }
29
+
30
+ .vis-item,
31
+ .vis-item.vis-line {
32
+ border-width: 3px;
33
+ }
34
+
35
+ .vis-item.vis-dot {
36
+ border-width: 10px;
37
+ border-radius: 10px;
38
+ }
39
+
40
+ .vis-item.vis-selected {
41
+ border-color: green;
42
+ background-color: lightgreen;
43
+ }
44
+
45
+ .vis-time-axis .vis-text {
46
+ color: purple;
47
+ padding-top: 10px;
48
+ padding-left: 10px;
49
+ }
50
+
51
+ .vis-time-axis .vis-text.vis-major {
52
+ font-weight: bold;
53
+ }
54
+
55
+ .vis-time-axis .vis-grid.vis-minor {
56
+ border-width: 2px;
57
+ border-color: pink;
58
+ }
59
+
60
+ .vis-time-axis .vis-grid.vis-major {
61
+ border-width: 2px;
62
+ border-color: #F991A3;
63
+ }
64
+ </style>
65
+
66
+
67
+ </head>
68
+
69
+ <body>
70
+
71
+ <p>
72
+ The style of the Timeline can be fully customized via CSS:
73
+ </p>
74
+ <div id="visualization"></div>
75
+
76
+ <script type="text/javascript">
77
+ var container = document.getElementById('visualization');
78
+
79
+ // note that months are zero-based in the JavaScript Date object
80
+ var items = new vis.DataSet([{
81
+ start: new Date(2010, 7, 23),
82
+ content: '<div>Conversation</div><img src="../resources/img/community-users-icon.png" style="width:32px; height:32px;">'
83
+ },
84
+ {
85
+ start: new Date(2010, 7, 23, 23, 0, 0),
86
+ content: '<div>Mail from boss</div><img src="../resources/img/mail-icon.png" style="width:32px; height:32px;">'
87
+ },
88
+ {
89
+ start: new Date(2010, 7, 24, 16, 0, 0),
90
+ content: 'Report'
91
+ },
92
+ {
93
+ start: new Date(2010, 7, 26),
94
+ end: new Date(2010, 8, 2),
95
+ content: 'Traject A'
96
+ },
97
+ {
98
+ start: new Date(2010, 7, 28),
99
+ content: '<div>Memo</div><img src="../resources/img/notes-edit-icon.png" style="width:48px; height:48px;">'
100
+ },
101
+ {
102
+ start: new Date(2010, 7, 29),
103
+ content: '<div>Phone call</div><img src="../resources/img/Hardware-Mobile-Phone-icon.png" style="width:32px; height:32px;">'
104
+ },
105
+ {
106
+ start: new Date(2010, 7, 31),
107
+ end: new Date(2010, 8, 3),
108
+ content: 'Traject B'
109
+ },
110
+ {
111
+ start: new Date(2010, 8, 4, 12, 0, 0),
112
+ content: '<div>Report</div><img src="../resources/img/attachment-icon.png" style="width:32px; height:32px;">'
113
+ }
114
+ ]);
115
+
116
+ var options = {
117
+ editable: true,
118
+ margin: {
119
+ item: 20,
120
+ axis: 40
121
+ }
122
+ };
123
+
124
+ var timeline = new vis.Timeline(container, items, options);
125
+ </script>
126
+ </body>
127
+
128
+ </html>
@@ -0,0 +1,80 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+
4
+ <head>
5
+ <title>Timeline | Grid styling</title>
6
+
7
+ <script src="../../../vendor/assets/javascripts/vis.js"></script>
8
+ <link href="../../../vendor/assets/stylesheets/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
9
+
10
+ <style type="text/css">
11
+ body,
12
+ html {
13
+ font-family: sans-serif;
14
+ }
15
+
16
+ /* alternating column backgrounds */
17
+
18
+ .vis-time-axis .vis-grid.vis-odd {
19
+ background: #f5f5f5;
20
+ }
21
+
22
+ /* gray background in weekends, white text color */
23
+
24
+ .vis-time-axis .vis-grid.vis-saturday,
25
+ .vis-time-axis .vis-grid.vis-sunday {
26
+ background: gray;
27
+ }
28
+
29
+ .vis-time-axis .vis-text.vis-saturday,
30
+ .vis-time-axis .vis-text.vis-sunday {
31
+ color: white;
32
+ }
33
+ </style>
34
+
35
+ </head>
36
+
37
+ <body>
38
+ <div id="visualization"></div>
39
+
40
+ <script type="text/javascript">
41
+ // DOM element where the Timeline will be attached
42
+ var container = document.getElementById('visualization');
43
+
44
+ // Create a DataSet (allows two way data-binding)
45
+ var items = new vis.DataSet([{
46
+ id: 1,
47
+ content: 'custom',
48
+ start: '2015-01-01'
49
+ },
50
+ {
51
+ id: 2,
52
+ content: 'styling',
53
+ start: '2016-01-01'
54
+ },
55
+ {
56
+ id: 3,
57
+ content: 'of',
58
+ start: '2017-01-01'
59
+ },
60
+ {
61
+ id: 4,
62
+ content: 'background',
63
+ start: '2018-01-01'
64
+ },
65
+ {
66
+ id: 5,
67
+ content: 'grid',
68
+ start: '2019-01-01'
69
+ }
70
+ ]);
71
+
72
+ // Configuration for the Timeline
73
+ var options = {};
74
+
75
+ // Create a Timeline
76
+ var timeline = new vis.Timeline(container, items, options);
77
+ </script>
78
+ </body>
79
+
80
+ </html>
@@ -0,0 +1,125 @@
1
+ <html>
2
+
3
+ <head>
4
+ <title>Timeline | Item class names</title>
5
+
6
+ <script src="../../../vendor/assets/javascripts/vis.js"></script>
7
+ <link href="../../../vendor/assets/stylesheets/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
8
+
9
+ <style type="text/css">
10
+ body,
11
+ input {
12
+ font: 12pt verdana;
13
+ }
14
+
15
+ /* custom styles for individual items, load this after vis.css/vis-timeline-graph2d.min.css */
16
+
17
+ .vis-item.green {
18
+ background-color: greenyellow;
19
+ border-color: green;
20
+ }
21
+
22
+ /* create a custom sized dot at the bottom of the red item */
23
+
24
+ .vis-item.red {
25
+ background-color: red;
26
+ border-color: darkred;
27
+ color: white;
28
+ font-family: monospace;
29
+ box-shadow: 0 0 10px gray;
30
+ }
31
+
32
+ .vis-item.vis-dot.red {
33
+ border-radius: 10px;
34
+ border-width: 10px;
35
+ }
36
+
37
+ .vis-item.vis-line.red {
38
+ border-width: 5px;
39
+ }
40
+
41
+ .vis-item.vis-box.red {
42
+ border-radius: 0;
43
+ border-width: 2px;
44
+ font-size: 24pt;
45
+ font-weight: bold;
46
+ }
47
+
48
+ .vis-item.orange {
49
+ background-color: gold;
50
+ border-color: orange;
51
+ }
52
+
53
+ .vis-item.vis-selected.orange {
54
+ /* custom colors for selected orange items */
55
+ background-color: orange;
56
+ border-color: orangered;
57
+ }
58
+
59
+ .vis-item.magenta {
60
+ background-color: magenta;
61
+ border-color: purple;
62
+ color: white;
63
+ }
64
+
65
+ /* our custom classes overrule the styles for selected events,
66
+ so lets define a new style for the selected events */
67
+
68
+ .vis-item.vis-selected {
69
+ background-color: white;
70
+ border-color: black;
71
+ color: black;
72
+ box-shadow: 0 0 10px gray;
73
+ }
74
+ </style>
75
+
76
+
77
+ </head>
78
+
79
+ <body>
80
+ <p>This page demonstrates the Timeline with custom css classes for individual items.</p>
81
+
82
+ <div id="mytimeline"></div>
83
+
84
+ <script type="text/javascript">
85
+ // create data
86
+ // note that months are zero-based in the JavaScript Date object
87
+ var data = new vis.DataSet([{
88
+ 'start': new Date(2012, 7, 19),
89
+ 'content': 'default'
90
+ },
91
+ {
92
+ 'start': new Date(2012, 7, 23),
93
+ 'content': 'green',
94
+ 'className': 'green'
95
+ },
96
+ {
97
+ 'start': new Date(2012, 7, 29),
98
+ 'content': 'red',
99
+ 'className': 'red'
100
+ },
101
+ {
102
+ 'start': new Date(2012, 7, 27),
103
+ 'end': new Date(2012, 8, 1),
104
+ 'content': 'orange',
105
+ 'className': 'orange'
106
+ },
107
+ {
108
+ 'start': new Date(2012, 8, 2),
109
+ 'content': 'magenta',
110
+ 'className': 'magenta'
111
+ }
112
+ ]);
113
+
114
+ // specify options
115
+ var options = {
116
+ editable: true
117
+ };
118
+
119
+ // create the timeline
120
+ var container = document.getElementById('mytimeline');
121
+ timeline = new vis.Timeline(container, data, options);
122
+ </script>
123
+ </body>
124
+
125
+ </html>
@@ -0,0 +1,264 @@
1
+ <!DOCTYPE HTML>
2
+ <html>
3
+
4
+ <head>
5
+ <title>Timeline | Templates</title>
6
+
7
+ <!-- load handlebars for templating, and create a template -->
8
+ <script src="http://cdnjs.cloudflare.com/ajax/libs/handlebars.js/4.0.5/handlebars.min.js"></script>
9
+ <script id="item-template" type="text/x-handlebars-template">
10
+ <table class="score">
11
+ <tr>
12
+ <td colspan="3" class="description">{{description}}</td>
13
+ </tr>
14
+ <tr>
15
+ <td>{{player1}}</td>
16
+ <th>{{score1}} - {{score2}}</th>
17
+ <td>{{player2}}</td>
18
+ </tr>
19
+ <tr>
20
+ <td>
21
+ <img src="http://flagpedia.net/data/flags/mini/{{abbr1}}.png" width="31" height="20" alt="{{abbr1}}">
22
+ </td>
23
+ <th></th>
24
+ <td>
25
+ <img src="http://flagpedia.net/data/flags/mini/{{abbr2}}.png" width="31" height="20" alt="{{abbr2}}">
26
+ </td>
27
+ </tr>
28
+ </table>
29
+ </script>
30
+
31
+ <script src="../../../vendor/assets/javascripts/vis.js"></script>
32
+ <link href="../../../vendor/assets/stylesheets/vis-timeline-graph2d.min.css" rel="stylesheet" type="text/css" />
33
+
34
+ <style type="text/css">
35
+ body,
36
+ html {
37
+ font-family: sans-serif;
38
+ font-size: 10pt;
39
+ }
40
+
41
+ .vis.timeline .item {
42
+ border-color: #acacac;
43
+ background-color: #efefef;
44
+ box-shadow: 5px 5px 10px rgba(128, 128, 128, 0.3);
45
+ }
46
+
47
+ table .description {
48
+ font-style: italic;
49
+ }
50
+
51
+ #visualization {
52
+ position: relative;
53
+ overflow: hidden;
54
+ }
55
+
56
+ .logo {
57
+ position: absolute;
58
+ right: 10px;
59
+ top: 10px;
60
+ }
61
+
62
+ .logo img {
63
+ width: 120px;
64
+ }
65
+ </style>
66
+
67
+
68
+ </head>
69
+
70
+ <body>
71
+ <h1>WK 2014</h1>
72
+ <p style="max-width: 600px;">
73
+ This example demonstrates using templates to format item contents. In this case
74
+ <a href="http://handlebarsjs.com">handlebars</a> is used as template engine, but you can just use your favorite template engine or manually craft HTML
75
+ from the data of an item.
76
+ </p>
77
+
78
+ <div id="visualization">
79
+ <div class="logo">
80
+ <img src="http://upload.wikimedia.org/wikipedia/en/e/e8/WC-2014-Brasil.svg">
81
+ </div>
82
+ </div>
83
+
84
+ <script type="text/javascript">
85
+ // create a handlebars template
86
+ var source = document.getElementById('item-template').innerHTML;
87
+ var template = Handlebars.compile(document.getElementById('item-template').innerHTML);
88
+
89
+ // DOM element where the Timeline will be attached
90
+ var container = document.getElementById('visualization');
91
+
92
+ // Create a DataSet (allows two way data-binding)
93
+ var items = new vis.DataSet([
94
+ // round of 16
95
+ {
96
+ player1: 'Brazil',
97
+ abbr1: 'br',
98
+ score1: '1 (3)',
99
+ player2: 'Chile',
100
+ abbr2: 'cl',
101
+ score2: '1 (2)',
102
+ description: 'round of 16',
103
+ start: '2014-06-28T13:00:00'
104
+ },
105
+ {
106
+ player1: 'Colombia',
107
+ abbr1: 'co',
108
+ score1: 2,
109
+ player2: 'Uruguay',
110
+ abbr2: 'uy',
111
+ score2: 0,
112
+ description: 'round of 16',
113
+ start: '2014-06-28T17:00:00'
114
+ },
115
+ {
116
+ player1: 'Netherlands',
117
+ abbr1: 'nl',
118
+ score1: 2,
119
+ player2: 'Mexico',
120
+ abbr2: 'mx',
121
+ score2: 1,
122
+ description: 'round of 16',
123
+ start: '2014-06-29T13:00:00'
124
+ },
125
+ {
126
+ player1: 'Costa Rica',
127
+ abbr1: 'cr',
128
+ score1: '1 (5)',
129
+ player2: 'Greece',
130
+ abbr2: 'gr',
131
+ score2: '1 (3)',
132
+ description: 'round of 16',
133
+ start: '2014-06-29T17:00:00'
134
+ },
135
+ {
136
+ player1: 'France',
137
+ abbr1: 'fr',
138
+ score1: 2,
139
+ player2: 'Nigeria',
140
+ abbr2: 'ng',
141
+ score2: 0,
142
+ description: 'round of 16',
143
+ start: '2014-06-30T13:00:00'
144
+ },
145
+ {
146
+ player1: 'Germany',
147
+ abbr1: 'de',
148
+ score1: 2,
149
+ player2: 'Algeria',
150
+ abbr2: 'dz',
151
+ score2: 1,
152
+ description: 'round of 16',
153
+ start: '2014-06-30T17:00:00'
154
+ },
155
+ {
156
+ player1: 'Argentina',
157
+ abbr1: 'ar',
158
+ score1: 1,
159
+ player2: 'Switzerland',
160
+ abbr2: 'ch',
161
+ score2: 0,
162
+ description: 'round of 16',
163
+ start: '2014-07-01T13:00:00'
164
+ },
165
+ {
166
+ player1: 'Belgium',
167
+ abbr1: 'be',
168
+ score1: 2,
169
+ player2: 'USA',
170
+ abbr2: 'us',
171
+ score2: 1,
172
+ description: 'round of 16',
173
+ start: '2014-07-01T17:00:00'
174
+ },
175
+
176
+ // quarter-finals
177
+ {
178
+ player1: 'France',
179
+ abbr1: 'fr',
180
+ score1: 0,
181
+ player2: 'Germany',
182
+ abbr2: 'de',
183
+ score2: 1,
184
+ description: 'quarter-finals',
185
+ start: '2014-07-04T13:00:00'
186
+ },
187
+ {
188
+ player1: 'Brazil',
189
+ abbr1: 'br',
190
+ score1: 2,
191
+ player2: 'Colombia',
192
+ abbr2: 'co',
193
+ score2: 1,
194
+ description: 'quarter-finals',
195
+ start: '2014-07-04T17:00:00'
196
+ },
197
+ {
198
+ player1: 'Argentina',
199
+ abbr1: 'ar',
200
+ score1: 1,
201
+ player2: 'Belgium',
202
+ abbr2: 'be',
203
+ score2: 0,
204
+ description: 'quarter-finals',
205
+ start: '2014-07-05T13:00:00'
206
+ },
207
+ {
208
+ player1: 'Netherlands',
209
+ abbr1: 'nl',
210
+ score1: '0 (4)',
211
+ player2: 'Costa Rica',
212
+ abbr2: 'cr',
213
+ score2: '0 (3)',
214
+ description: 'quarter-finals',
215
+ start: '2014-07-05T17:00:00'
216
+ },
217
+
218
+ // semi-finals
219
+ {
220
+ player1: 'Brazil',
221
+ abbr1: 'br',
222
+ score1: 1,
223
+ player2: 'Germany',
224
+ abbr2: 'de',
225
+ score2: 7,
226
+ description: 'semi-finals',
227
+ start: '2014-07-08T17:00:00'
228
+ },
229
+ {
230
+ player1: 'Netherlands',
231
+ abbr1: 'nl',
232
+ score1: '0 (2)',
233
+ player2: 'Argentina',
234
+ abbr2: 'ar',
235
+ score2: '0 (4)',
236
+ description: 'semi-finals',
237
+ start: '2014-07-09T17:00:00'
238
+ },
239
+
240
+ // final
241
+ {
242
+ player1: 'Germany',
243
+ score1: 1,
244
+ abbr1: 'de',
245
+ player2: 'Argentina',
246
+ abbr2: 'ar',
247
+ score2: 0,
248
+ description: 'final',
249
+ start: '2014-07-13T16:00:00'
250
+ }
251
+ ]);
252
+
253
+ // Configuration for the Timeline
254
+ var options = {
255
+ // specify a template for the items
256
+ template: template
257
+ };
258
+
259
+ // Create a Timeline
260
+ var timeline = new vis.Timeline(container, items, options);
261
+ </script>
262
+ </body>
263
+
264
+ </html>