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.
- checksums.yaml +5 -5
- data/README.md +19 -19
- data/example/.gitignore +26 -0
- data/example/.ruby-version +1 -0
- data/example/Gemfile +64 -0
- data/example/Gemfile.lock +224 -0
- data/example/README.md +24 -0
- data/example/Rakefile +6 -0
- data/example/app/assets/config/manifest.js +3 -0
- data/example/app/assets/images/.keep +0 -0
- data/example/app/assets/javascripts/application.js +20 -0
- data/example/app/assets/javascripts/cable.js +13 -0
- data/example/app/assets/javascripts/channels/.keep +0 -0
- data/example/app/assets/javascripts/welcome.coffee +6 -0
- data/example/app/assets/stylesheets/application.scss +3 -0
- data/example/app/assets/stylesheets/welcome.scss +3 -0
- data/example/app/channels/application_cable/channel.rb +4 -0
- data/example/app/channels/application_cable/connection.rb +4 -0
- data/example/app/controllers/application_controller.rb +2 -0
- data/example/app/controllers/concerns/.keep +0 -0
- data/example/app/controllers/welcome_controller.rb +4 -0
- data/example/app/helpers/application_helper.rb +2 -0
- data/example/app/helpers/welcome_helper.rb +2 -0
- data/example/app/jobs/application_job.rb +2 -0
- data/example/app/mailers/application_mailer.rb +4 -0
- data/example/app/models/application_record.rb +3 -0
- data/example/app/models/concerns/.keep +0 -0
- data/example/app/views/layouts/application.html.erb +15 -0
- data/example/app/views/layouts/mailer.html.erb +13 -0
- data/example/app/views/layouts/mailer.text.erb +1 -0
- data/example/app/views/welcome/index.html.erb +48 -0
- data/example/bin/bundle +3 -0
- data/example/bin/rails +9 -0
- data/example/bin/rake +9 -0
- data/example/bin/setup +36 -0
- data/example/bin/spring +17 -0
- data/example/bin/update +31 -0
- data/example/bin/yarn +11 -0
- data/example/config.ru +5 -0
- data/example/config/application.rb +19 -0
- data/example/config/boot.rb +4 -0
- data/example/config/cable.yml +10 -0
- data/example/config/credentials.yml.enc +1 -0
- data/example/config/database.yml +85 -0
- data/example/config/environment.rb +5 -0
- data/example/config/environments/development.rb +61 -0
- data/example/config/environments/production.rb +94 -0
- data/example/config/environments/test.rb +46 -0
- data/example/config/initializers/application_controller_renderer.rb +8 -0
- data/example/config/initializers/assets.rb +14 -0
- data/example/config/initializers/backtrace_silencers.rb +7 -0
- data/example/config/initializers/content_security_policy.rb +25 -0
- data/example/config/initializers/cookies_serializer.rb +5 -0
- data/example/config/initializers/filter_parameter_logging.rb +4 -0
- data/example/config/initializers/inflections.rb +16 -0
- data/example/config/initializers/mime_types.rb +4 -0
- data/example/config/initializers/wrap_parameters.rb +14 -0
- data/example/config/locales/en.yml +33 -0
- data/example/config/puma.rb +34 -0
- data/example/config/routes.rb +5 -0
- data/example/config/spring.rb +6 -0
- data/example/config/storage.yml +34 -0
- data/example/db/seeds.rb +7 -0
- data/example/lib/assets/.keep +0 -0
- data/example/lib/tasks/.keep +0 -0
- data/example/log/.keep +0 -0
- data/example/package.json +5 -0
- data/example/public/404.html +67 -0
- data/example/public/422.html +67 -0
- data/example/public/500.html +66 -0
- data/example/public/apple-touch-icon-precomposed.png +0 -0
- data/example/public/apple-touch-icon.png +0 -0
- data/example/public/favicon.ico +0 -0
- data/example/public/robots.txt +1 -0
- data/example/test/application_system_test_case.rb +5 -0
- data/example/test/controllers/.keep +0 -0
- data/example/test/controllers/welcome_controller_test.rb +9 -0
- data/example/test/fixtures/.keep +0 -0
- data/example/test/fixtures/files/.keep +0 -0
- data/example/test/helpers/.keep +0 -0
- data/example/test/integration/.keep +0 -0
- data/example/test/mailers/.keep +0 -0
- data/example/test/models/.keep +0 -0
- data/example/test/system/.keep +0 -0
- data/example/test/test_helper.rb +10 -0
- data/example/tmp/.keep +0 -0
- data/example/vendor/.keep +0 -0
- data/examples_for_vis/graph2d/01_basic.html +71 -0
- data/examples_for_vis/graph2d/02_bars.html +80 -0
- data/examples_for_vis/graph2d/03_groups.html +112 -0
- data/examples_for_vis/graph2d/04_rightAxis.html +126 -0
- data/examples_for_vis/graph2d/05_bothAxis.html +228 -0
- data/examples_for_vis/graph2d/06_interpolation.html +160 -0
- data/examples_for_vis/graph2d/07_scrollingAndSorting.html +74 -0
- data/examples_for_vis/graph2d/08_performance.html +194 -0
- data/examples_for_vis/graph2d/09_external_legend.html +452 -0
- data/examples_for_vis/graph2d/10_barsSideBySide.html +75 -0
- data/examples_for_vis/graph2d/11_barsSideBySideGroups.html +181 -0
- data/examples_for_vis/graph2d/12_customRange.html +92 -0
- data/examples_for_vis/graph2d/13_localization.html +65 -0
- data/examples_for_vis/graph2d/14_toggleGroups.html +145 -0
- data/examples_for_vis/graph2d/15_streaming_data.html +122 -0
- data/examples_for_vis/graph2d/16_bothAxisTitles.html +201 -0
- data/examples_for_vis/graph2d/17_dynamicStyling.html +281 -0
- data/examples_for_vis/graph2d/18_scatterplot.html +63 -0
- data/examples_for_vis/graph2d/19_labels.html +213 -0
- data/examples_for_vis/graph2d/20_shading.html +218 -0
- data/examples_for_vis/graph2d/21_barsWithEnd.html +76 -0
- data/examples_for_vis/graph2d/default.css +87 -0
- data/examples_for_vis/graph3d/01_basics.html +71 -0
- data/examples_for_vis/graph3d/02_camera.html +110 -0
- data/examples_for_vis/graph3d/03_filter_data.html +64 -0
- data/examples_for_vis/graph3d/04_animation.html +70 -0
- data/examples_for_vis/graph3d/05_line.html +60 -0
- data/examples_for_vis/graph3d/06_moving_dots.html +78 -0
- data/examples_for_vis/graph3d/07_dot_cloud_colors.html +72 -0
- data/examples_for_vis/graph3d/08_dot_cloud_size.html +69 -0
- data/examples_for_vis/graph3d/09_mobile.html +79 -0
- data/examples_for_vis/graph3d/10_styling.html +121 -0
- data/examples_for_vis/graph3d/11_tooltips.html +132 -0
- data/examples_for_vis/graph3d/12_custom_labels.html +116 -0
- data/examples_for_vis/graph3d/default.css +87 -0
- data/examples_for_vis/graph3d/playground/csv2array.js +120 -0
- data/examples_for_vis/graph3d/playground/csv2datatable.html +80 -0
- data/examples_for_vis/graph3d/playground/datasource.html +173 -0
- data/examples_for_vis/graph3d/playground/datasource.php +155 -0
- data/examples_for_vis/graph3d/playground/index.html +196 -0
- data/examples_for_vis/graph3d/playground/playground.css +91 -0
- data/examples_for_vis/graph3d/playground/playground.js +550 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-apollo.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-css.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-hs.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-lisp.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-lua.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-ml.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-proto.js +1 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-scala.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-sql.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-vb.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-vhdl.js +3 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-wiki.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/lang-yaml.js +2 -0
- data/examples_for_vis/graph3d/playground/prettify/prettify.css +1 -0
- data/examples_for_vis/graph3d/playground/prettify/prettify.js +33 -0
- data/examples_for_vis/network/basicUsage.html +87 -0
- data/examples_for_vis/network/data/datasets.html +196 -0
- data/examples_for_vis/network/data/dotLanguage/data/cellular_automata.gv.txt +23 -0
- data/examples_for_vis/network/data/dotLanguage/data/computer_network.gv.txt +19 -0
- data/examples_for_vis/network/data/dotLanguage/data/simple.gv.txt +15 -0
- data/examples_for_vis/network/data/dotLanguage/dotEdgeStyles.html +197 -0
- data/examples_for_vis/network/data/dotLanguage/dotLanguage.html +22 -0
- data/examples_for_vis/network/data/dotLanguage/dotPlayground.html +216 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/fsm.gv.txt +20 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/hello.gv.txt +1 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/process.gv.txt +15 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/fsm.png +0 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/hello.png +0 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/softmaint.png +0 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/screenshots/traffic_lights.png +0 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/siblings.gv.txt +512 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/softmaint.gv.txt +377 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/traffic_lights.gv.txt +29 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/transparency.gv.txt +105 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/twopi2.gv.txt +2212 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/unix.gv.txt +55 -0
- data/examples_for_vis/network/data/dotLanguage/graphvizGallery/world.gv.txt +67 -0
- data/examples_for_vis/network/data/dynamicData.html +266 -0
- data/examples_for_vis/network/data/importingFromGephi.html +174 -0
- data/examples_for_vis/network/data/scalingCustom.html +86 -0
- data/examples_for_vis/network/data/scalingNodesEdges.html +79 -0
- data/examples_for_vis/network/data/scalingNodesEdgesLabels.html +85 -0
- data/examples_for_vis/network/datasources/WorldCup2014.js +9970 -0
- data/examples_for_vis/network/datasources/WorldCup2014.json +1 -0
- data/examples_for_vis/network/datasources/largeHierarchicalDataset.js +2 -0
- data/examples_for_vis/network/edgeStyles/arrowTypes.html +103 -0
- data/examples_for_vis/network/edgeStyles/arrows.html +61 -0
- data/examples_for_vis/network/edgeStyles/colors.html +71 -0
- data/examples_for_vis/network/edgeStyles/dashes.html +57 -0
- data/examples_for_vis/network/edgeStyles/smooth.html +78 -0
- data/examples_for_vis/network/edgeStyles/smoothWorldCup.html +97 -0
- data/examples_for_vis/network/events/interactionEvents.html +132 -0
- data/examples_for_vis/network/events/physicsEvents.html +73 -0
- data/examples_for_vis/network/events/renderEvents.html +83 -0
- data/examples_for_vis/network/exampleApplications/disassemblerExample.html +24 -0
- data/examples_for_vis/network/exampleApplications/disassemblerExample.js +53 -0
- data/examples_for_vis/network/exampleApplications/lesMiserables.html +396 -0
- data/examples_for_vis/network/exampleApplications/loadingBar.html +504 -0
- data/examples_for_vis/network/exampleApplications/neighbourhoodHighlight.html +162 -0
- data/examples_for_vis/network/exampleApplications/nodeLegend.html +163 -0
- data/examples_for_vis/network/exampleApplications/worldCupPerformance.html +98 -0
- data/examples_for_vis/network/exampleUtil.js +133 -0
- data/examples_for_vis/network/imageSelected/broken-image.png +0 -0
- data/examples_for_vis/network/imageSelected/imageSelected.html +82 -0
- data/examples_for_vis/network/imageSelected/selected.svg +53 -0
- data/examples_for_vis/network/imageSelected/unselected.svg +6 -0
- data/examples_for_vis/network/img/indonesia/1.png +0 -0
- data/examples_for_vis/network/img/indonesia/10.png +0 -0
- data/examples_for_vis/network/img/indonesia/11.png +0 -0
- data/examples_for_vis/network/img/indonesia/12.png +0 -0
- data/examples_for_vis/network/img/indonesia/13.png +0 -0
- data/examples_for_vis/network/img/indonesia/14.png +0 -0
- data/examples_for_vis/network/img/indonesia/2.png +0 -0
- data/examples_for_vis/network/img/indonesia/3.png +0 -0
- data/examples_for_vis/network/img/indonesia/4.png +0 -0
- data/examples_for_vis/network/img/indonesia/5.png +0 -0
- data/examples_for_vis/network/img/indonesia/6.png +0 -0
- data/examples_for_vis/network/img/indonesia/7.png +0 -0
- data/examples_for_vis/network/img/indonesia/8.png +0 -0
- data/examples_for_vis/network/img/indonesia/9.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-Fax-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-Laptop-1-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-Mobile-Phone-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-My-Computer-3-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-My-PDA-02-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-My-PDA-04-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-My-PDA-05-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-My-Phone-Picture-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Hardware-Printer-Blue-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Misc-Scanner-default-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Network-Drive-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Network-Internet-Connection-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/Network-Pipe-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/System-Firewall-2-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/System-Globe-icon.png +0 -0
- data/examples_for_vis/network/img/refresh-cl/license.txt +14 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Document-icon24.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Document-icon32.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Document-icon48.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Email-icon24.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Email-icon32.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Email-icon48.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon24.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon32.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon48.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Folder-icon64.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Smiley-Angry-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/Smiley-Grin-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Administrator-Blue-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Administrator-Green-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Coat-Blue-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Coat-Green-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Coat-Red-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Executive-Green-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Preppy-Blue-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/User-Preppy-Red-icon.png +0 -0
- data/examples_for_vis/network/img/soft-scraps-icons/license.txt +12 -0
- data/examples_for_vis/network/labels/labelAlignment.html +70 -0
- data/examples_for_vis/network/labels/labelBackground.html +57 -0
- data/examples_for_vis/network/labels/labelColorAndSize.html +61 -0
- data/examples_for_vis/network/labels/labelMargins.html +63 -0
- data/examples_for_vis/network/labels/labelMultifont.html +115 -0
- data/examples_for_vis/network/labels/labelStroke.html +61 -0
- data/examples_for_vis/network/labels/multilineText.html +52 -0
- data/examples_for_vis/network/layout/demo.jsonp +1894 -0
- data/examples_for_vis/network/layout/demo_big.jsonp +3762 -0
- data/examples_for_vis/network/layout/hierarchicalLayout.html +114 -0
- data/examples_for_vis/network/layout/hierarchicalLayoutBigUserDefined.html +46 -0
- data/examples_for_vis/network/layout/hierarchicalLayoutMethods.html +108 -0
- data/examples_for_vis/network/layout/hierarchicalLayoutUserdefined.html +152 -0
- data/examples_for_vis/network/layout/hierarchicalLayoutWithoutPhysics.html +111 -0
- data/examples_for_vis/network/layout/randomSeed.html +60 -0
- data/examples_for_vis/network/nodeStyles/HTMLInNodes.html +83 -0
- data/examples_for_vis/network/nodeStyles/circularImages.html +219 -0
- data/examples_for_vis/network/nodeStyles/colors.html +140 -0
- data/examples_for_vis/network/nodeStyles/customGroups.html +132 -0
- data/examples_for_vis/network/nodeStyles/groups.html +119 -0
- data/examples_for_vis/network/nodeStyles/icons.html +196 -0
- data/examples_for_vis/network/nodeStyles/images.html +82 -0
- data/examples_for_vis/network/nodeStyles/imagesWithBorders.html +105 -0
- data/examples_for_vis/network/nodeStyles/shadows.html +119 -0
- data/examples_for_vis/network/nodeStyles/shapes.html +73 -0
- data/examples_for_vis/network/nodeStyles/shapesWithDashedBorders.html +61 -0
- data/examples_for_vis/network/nodeStyles/widthHeight.html +121 -0
- data/examples_for_vis/network/other/animationShowcase.html +279 -0
- data/examples_for_vis/network/other/changingClusteredEdgesNodes.html +107 -0
- data/examples_for_vis/network/other/chosen.html +466 -0
- data/examples_for_vis/network/other/clustering.html +141 -0
- data/examples_for_vis/network/other/clusteringByZoom.html +160 -0
- data/examples_for_vis/network/other/clustersOfclusters.html +88 -0
- data/examples_for_vis/network/other/configuration.html +83 -0
- data/examples_for_vis/network/other/cursorChange.html +140 -0
- data/examples_for_vis/network/other/manipulation.html +193 -0
- data/examples_for_vis/network/other/manipulationEditEdgeNoDrag.html +255 -0
- data/examples_for_vis/network/other/navigation.html +135 -0
- data/examples_for_vis/network/other/onLoadAnimation.html +85 -0
- data/examples_for_vis/network/other/performance.html +91 -0
- data/examples_for_vis/network/other/saveAndLoad.html +202 -0
- data/examples_for_vis/network/physics/physicsConfiguration.html +85 -0
- data/examples_for_vis/timeline/basicUsage.html +45 -0
- data/examples_for_vis/timeline/dataHandling/dataSerialization.html +123 -0
- data/examples_for_vis/timeline/dataHandling/loadExternalData.html +61 -0
- data/examples_for_vis/timeline/editing/customSnappingOfItems.html +76 -0
- data/examples_for_vis/timeline/editing/editingItems.html +109 -0
- data/examples_for_vis/timeline/editing/editingItemsCallbacks.html +172 -0
- data/examples_for_vis/timeline/editing/individualEditableItems.html +131 -0
- data/examples_for_vis/timeline/editing/itemsAlwaysDraggable.html +44 -0
- data/examples_for_vis/timeline/editing/overrideEditingItems.html +166 -0
- data/examples_for_vis/timeline/editing/tooltipOnItemChange.html +133 -0
- data/examples_for_vis/timeline/editing/updateDataOnEvent.html +87 -0
- data/examples_for_vis/timeline/groups/groups.html +79 -0
- data/examples_for_vis/timeline/groups/groupsEditable.html +2001 -0
- data/examples_for_vis/timeline/groups/groupsOrdering.html +117 -0
- data/examples_for_vis/timeline/groups/nestedGroups.html +113 -0
- data/examples_for_vis/timeline/groups/subgroups.html +326 -0
- data/examples_for_vis/timeline/groups/verticalItemsHide.html +196 -0
- data/examples_for_vis/timeline/interaction/animateWindow.html +143 -0
- data/examples_for_vis/timeline/interaction/clickToUse.html +107 -0
- data/examples_for_vis/timeline/interaction/eventListeners.html +166 -0
- data/examples_for_vis/timeline/interaction/limitMoveAndZoom.html +70 -0
- data/examples_for_vis/timeline/interaction/navigationMenu.html +121 -0
- data/examples_for_vis/timeline/interaction/rollingMode.html +50 -0
- data/examples_for_vis/timeline/interaction/setSelection.html +223 -0
- data/examples_for_vis/timeline/items/backgroundAreas.html +92 -0
- data/examples_for_vis/timeline/items/backgroundAreasWithGroups.html +123 -0
- data/examples_for_vis/timeline/items/expectedVsActualTimesItems.html +136 -0
- data/examples_for_vis/timeline/items/htmlContents.html +109 -0
- data/examples_for_vis/timeline/items/itemOrdering.html +88 -0
- data/examples_for_vis/timeline/items/pointItems.html +124 -0
- data/examples_for_vis/timeline/items/rangeOverflowItem.html +88 -0
- data/examples_for_vis/timeline/items/tooltip.html +120 -0
- data/examples_for_vis/timeline/items/visibleFrameTemplateContent.html +67 -0
- data/examples_for_vis/timeline/other/customTimeBars.html +99 -0
- data/examples_for_vis/timeline/other/customTimeBarsTooltip.html +105 -0
- data/examples_for_vis/timeline/other/dataAttributes.html +79 -0
- data/examples_for_vis/timeline/other/dataAttributesAll.html +78 -0
- data/examples_for_vis/timeline/other/drag&drop.html +201 -0
- data/examples_for_vis/timeline/other/functionLabelFormats.html +147 -0
- data/examples_for_vis/timeline/other/groupsPerformance.html +124 -0
- data/examples_for_vis/timeline/other/hidingPeriods.html +92 -0
- data/examples_for_vis/timeline/other/horizontalScroll.html +77 -0
- data/examples_for_vis/timeline/other/localization.html +81 -0
- data/examples_for_vis/timeline/other/performance.html +79 -0
- data/examples_for_vis/timeline/other/requirejs/requirejs_example.html +17 -0
- data/examples_for_vis/timeline/other/requirejs/scripts/main.js +19 -0
- data/examples_for_vis/timeline/other/requirejs/scripts/require.js +35 -0
- data/examples_for_vis/timeline/other/rtl.html +82 -0
- data/examples_for_vis/timeline/other/stressPerformance.html +66 -0
- data/examples_for_vis/timeline/other/timezone.html +98 -0
- data/examples_for_vis/timeline/other/usingReact.html +68 -0
- data/examples_for_vis/timeline/other/verticalScroll.html +91 -0
- data/examples_for_vis/timeline/resources/data/basic.json +34 -0
- data/examples_for_vis/timeline/resources/data/wk2014.json +152 -0
- data/examples_for_vis/timeline/resources/img/Hardware-Mobile-Phone-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/attachment-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/blog-post-edit-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/comments-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/community-users-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/license.txt +17 -0
- data/examples_for_vis/timeline/resources/img/license_aesthetica-2.txt +36 -0
- data/examples_for_vis/timeline/resources/img/license_refresh-cl.txt +26 -0
- data/examples_for_vis/timeline/resources/img/mail-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/notes-edit-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/product-icon.png +0 -0
- data/examples_for_vis/timeline/resources/img/truck-icon.png +0 -0
- data/examples_for_vis/timeline/styling/axisOrientation.html +113 -0
- data/examples_for_vis/timeline/styling/customCss.html +128 -0
- data/examples_for_vis/timeline/styling/gridStyling.html +80 -0
- data/examples_for_vis/timeline/styling/itemClassNames.html +125 -0
- data/examples_for_vis/timeline/styling/itemTemplates.html +264 -0
- data/examples_for_vis/timeline/styling/weekStyling.html +129 -0
- data/lib/visjs/rails/version.rb +1 -1
- data/vendor/assets/images/network/acceptDeleteIcon.png +0 -0
- data/vendor/assets/images/network/addNodeIcon.png +0 -0
- data/vendor/assets/images/network/backIcon.png +0 -0
- data/vendor/assets/images/network/connectIcon.png +0 -0
- data/vendor/assets/images/network/cross.png +0 -0
- data/vendor/assets/images/network/cross2.png +0 -0
- data/vendor/assets/images/network/deleteIcon.png +0 -0
- data/vendor/assets/images/network/downArrow.png +0 -0
- data/vendor/assets/images/network/editIcon.png +0 -0
- data/vendor/assets/images/network/leftArrow.png +0 -0
- data/vendor/assets/images/network/minus.png +0 -0
- data/vendor/assets/images/network/plus.png +0 -0
- data/vendor/assets/images/network/rightArrow.png +0 -0
- data/vendor/assets/images/network/upArrow.png +0 -0
- data/vendor/assets/images/network/zoomExtends.png +0 -0
- data/vendor/assets/javascripts/vis-graph3d.min.js +9 -12
- data/vendor/assets/javascripts/vis-network.min.js +9 -20
- data/vendor/assets/javascripts/vis-timeline-graph2d.min.js +9 -18
- data/vendor/assets/javascripts/vis.js +53293 -39579
- data/vendor/assets/javascripts/vis.min.js +26 -23
- data/vendor/assets/stylesheets/vis-network.min.css +1 -0
- data/vendor/assets/stylesheets/vis-timeline-graph2d.min.css +1 -0
- data/vendor/assets/stylesheets/{vis.scss → vis.css} +764 -640
- data/vendor/assets/stylesheets/vis.min.css +1 -0
- metadata +365 -6
- data/vendor/assets/images/timeline/delete.png +0 -0
- data/vendor/assets/stylesheets/vis.min.scss +0 -1
@@ -0,0 +1,132 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Network | Interaction events</title>
|
5
|
+
|
6
|
+
<script type="text/javascript" src="../../../vendor/assets/javascripts/vis.js"></script>
|
7
|
+
<link href="../../../vendor/assets/stylesheets/vis-network.min.css" rel="stylesheet" type="text/css"/>
|
8
|
+
|
9
|
+
<style type="text/css">
|
10
|
+
#mynetwork {
|
11
|
+
width: 600px;
|
12
|
+
height: 400px;
|
13
|
+
border: 1px solid lightgray;
|
14
|
+
}
|
15
|
+
</style>
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
|
19
|
+
<p>
|
20
|
+
Create a simple network with some nodes and edges. Some of the events are logged in the console in improve readability.
|
21
|
+
</p>
|
22
|
+
|
23
|
+
<div id="mynetwork"></div>
|
24
|
+
<pre id="eventSpan"></pre>
|
25
|
+
|
26
|
+
<script type="text/javascript">
|
27
|
+
|
28
|
+
// create an array with nodes
|
29
|
+
var nodes = new vis.DataSet([
|
30
|
+
{id: 1, label: 'Node 1', title: 'I have a popup!'},
|
31
|
+
{id: 2, label: 'Node 2', title: 'I have a popup!'},
|
32
|
+
{id: 3, label: 'Node 3', title: 'I have a popup!'},
|
33
|
+
{id: 4, label: 'Node 4', title: 'I have a popup!'},
|
34
|
+
{id: 5, label: 'Node 5', title: 'I have a popup!'}
|
35
|
+
]);
|
36
|
+
|
37
|
+
// create an array with edges
|
38
|
+
var edges = new vis.DataSet([
|
39
|
+
{from: 1, to: 3},
|
40
|
+
{from: 1, to: 2},
|
41
|
+
{from: 2, to: 4},
|
42
|
+
{from: 2, to: 5}
|
43
|
+
]);
|
44
|
+
|
45
|
+
// create a network
|
46
|
+
var container = document.getElementById('mynetwork');
|
47
|
+
var data = {
|
48
|
+
nodes: nodes,
|
49
|
+
edges: edges
|
50
|
+
};
|
51
|
+
|
52
|
+
var options = {
|
53
|
+
interaction:{hover:true},
|
54
|
+
manipulation: {
|
55
|
+
enabled: true
|
56
|
+
}
|
57
|
+
};
|
58
|
+
|
59
|
+
var network = new vis.Network(container, data, options);
|
60
|
+
|
61
|
+
network.on("click", function (params) {
|
62
|
+
params.event = "[original event]";
|
63
|
+
document.getElementById('eventSpan').innerHTML = '<h2>Click event:</h2>' + JSON.stringify(params, null, 4);
|
64
|
+
console.log('click event, getNodeAt returns: ' + this.getNodeAt(params.pointer.DOM));
|
65
|
+
});
|
66
|
+
network.on("doubleClick", function (params) {
|
67
|
+
params.event = "[original event]";
|
68
|
+
document.getElementById('eventSpan').innerHTML = '<h2>doubleClick event:</h2>' + JSON.stringify(params, null, 4);
|
69
|
+
});
|
70
|
+
network.on("oncontext", function (params) {
|
71
|
+
params.event = "[original event]";
|
72
|
+
document.getElementById('eventSpan').innerHTML = '<h2>oncontext (right click) event:</h2>' + JSON.stringify(params, null, 4);
|
73
|
+
});
|
74
|
+
network.on("dragStart", function (params) {
|
75
|
+
// There's no point in displaying this event on screen, it gets immediately overwritten
|
76
|
+
params.event = "[original event]";
|
77
|
+
console.log('dragStart Event:', params);
|
78
|
+
console.log('dragStart event, getNodeAt returns: ' + this.getNodeAt(params.pointer.DOM));
|
79
|
+
});
|
80
|
+
network.on("dragging", function (params) {
|
81
|
+
params.event = "[original event]";
|
82
|
+
document.getElementById('eventSpan').innerHTML = '<h2>dragging event:</h2>' + JSON.stringify(params, null, 4);
|
83
|
+
});
|
84
|
+
network.on("dragEnd", function (params) {
|
85
|
+
params.event = "[original event]";
|
86
|
+
document.getElementById('eventSpan').innerHTML = '<h2>dragEnd event:</h2>' + JSON.stringify(params, null, 4);
|
87
|
+
console.log('dragEnd Event:', params);
|
88
|
+
console.log('dragEnd event, getNodeAt returns: ' + this.getNodeAt(params.pointer.DOM));
|
89
|
+
});
|
90
|
+
network.on("zoom", function (params) {
|
91
|
+
document.getElementById('eventSpan').innerHTML = '<h2>zoom event:</h2>' + JSON.stringify(params, null, 4);
|
92
|
+
});
|
93
|
+
network.on("showPopup", function (params) {
|
94
|
+
document.getElementById('eventSpan').innerHTML = '<h2>showPopup event: </h2>' + JSON.stringify(params, null, 4);
|
95
|
+
});
|
96
|
+
network.on("hidePopup", function () {
|
97
|
+
console.log('hidePopup Event');
|
98
|
+
});
|
99
|
+
network.on("select", function (params) {
|
100
|
+
console.log('select Event:', params);
|
101
|
+
});
|
102
|
+
network.on("selectNode", function (params) {
|
103
|
+
console.log('selectNode Event:', params);
|
104
|
+
});
|
105
|
+
network.on("selectEdge", function (params) {
|
106
|
+
console.log('selectEdge Event:', params);
|
107
|
+
});
|
108
|
+
network.on("deselectNode", function (params) {
|
109
|
+
console.log('deselectNode Event:', params);
|
110
|
+
});
|
111
|
+
network.on("deselectEdge", function (params) {
|
112
|
+
console.log('deselectEdge Event:', params);
|
113
|
+
});
|
114
|
+
network.on("hoverNode", function (params) {
|
115
|
+
console.log('hoverNode Event:', params);
|
116
|
+
});
|
117
|
+
network.on("hoverEdge", function (params) {
|
118
|
+
console.log('hoverEdge Event:', params);
|
119
|
+
});
|
120
|
+
network.on("blurNode", function (params) {
|
121
|
+
console.log('blurNode Event:', params);
|
122
|
+
});
|
123
|
+
network.on("blurEdge", function (params) {
|
124
|
+
console.log('blurEdge Event:', params);
|
125
|
+
});
|
126
|
+
|
127
|
+
|
128
|
+
</script>
|
129
|
+
|
130
|
+
|
131
|
+
</body>
|
132
|
+
</html>
|
@@ -0,0 +1,73 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Network | Basic usage</title>
|
5
|
+
|
6
|
+
<script type="text/javascript" src="../../../vendor/assets/javascripts/vis.js"></script>
|
7
|
+
<link href="../../../vendor/assets/stylesheets/vis-network.min.css" rel="stylesheet" type="text/css"/>
|
8
|
+
|
9
|
+
<style type="text/css">
|
10
|
+
#mynetwork {
|
11
|
+
width: 600px;
|
12
|
+
height: 400px;
|
13
|
+
border: 1px solid lightgray;
|
14
|
+
}
|
15
|
+
</style>
|
16
|
+
</head>
|
17
|
+
<body>
|
18
|
+
|
19
|
+
<p>
|
20
|
+
Create a simple network with some nodes and edges.
|
21
|
+
</p>
|
22
|
+
|
23
|
+
<div id="mynetwork"></div>
|
24
|
+
<pre id="eventSpan"></pre>
|
25
|
+
<script type="text/javascript">
|
26
|
+
// create an array with nodes
|
27
|
+
var nodes = new vis.DataSet([
|
28
|
+
{id: 1, label: 'Node 1'},
|
29
|
+
{id: 2, label: 'Node 2'},
|
30
|
+
{id: 3, label: 'Node 3'},
|
31
|
+
{id: 4, label: 'Node 4'},
|
32
|
+
{id: 5, label: 'Node 5'}
|
33
|
+
]);
|
34
|
+
|
35
|
+
// create an array with edges
|
36
|
+
var edges = new vis.DataSet([
|
37
|
+
{from: 1, to: 3},
|
38
|
+
{from: 1, to: 2},
|
39
|
+
{from: 2, to: 4},
|
40
|
+
{from: 2, to: 5}
|
41
|
+
]);
|
42
|
+
|
43
|
+
// create a network
|
44
|
+
var container = document.getElementById('mynetwork');
|
45
|
+
var data = {
|
46
|
+
nodes: nodes,
|
47
|
+
edges: edges
|
48
|
+
};
|
49
|
+
var options = {};
|
50
|
+
var network = new vis.Network(container, data, options);
|
51
|
+
|
52
|
+
network.on("startStabilizing", function (params) {
|
53
|
+
document.getElementById('eventSpan').innerHTML = '<h3>Starting Stabilization</h3>';
|
54
|
+
console.log("started")
|
55
|
+
});
|
56
|
+
network.on("stabilizationProgress", function (params) {
|
57
|
+
document.getElementById('eventSpan').innerHTML = '<h3>Stabilization progress</h3>' + JSON.stringify(params, null, 4);
|
58
|
+
console.log("progress:",params);
|
59
|
+
});
|
60
|
+
network.on("stabilizationIterationsDone", function (params) {
|
61
|
+
document.getElementById('eventSpan').innerHTML = '<h3>Stabilization iterations complete</h3>';
|
62
|
+
console.log("finished stabilization interations");
|
63
|
+
});
|
64
|
+
network.on("stabilized", function (params) {
|
65
|
+
document.getElementById('eventSpan').innerHTML = '<h3>Stabilized!</h3>' + JSON.stringify(params, null, 4);
|
66
|
+
console.log("stabilized!", params);
|
67
|
+
});
|
68
|
+
|
69
|
+
</script>
|
70
|
+
|
71
|
+
|
72
|
+
</body>
|
73
|
+
</html>
|
@@ -0,0 +1,83 @@
|
|
1
|
+
<!doctype html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Network | Basic usage</title>
|
5
|
+
|
6
|
+
<script type="text/javascript" src="../../../vendor/assets/javascripts/vis.js"></script>
|
7
|
+
<link href="../../../vendor/assets/stylesheets/vis-network.min.css" rel="stylesheet" type="text/css"/>
|
8
|
+
|
9
|
+
<style type="text/css">
|
10
|
+
#mynetwork {
|
11
|
+
width: 600px;
|
12
|
+
height: 400px;
|
13
|
+
border: 1px solid lightgray;
|
14
|
+
}
|
15
|
+
|
16
|
+
p {
|
17
|
+
max-width:600px;
|
18
|
+
}
|
19
|
+
</style>
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
|
23
|
+
<p>
|
24
|
+
You can draw on the canvas using normal HTML5 canvas functions. The before drawing will be behind the network, the after drawing will be in front of the network.
|
25
|
+
</p>
|
26
|
+
|
27
|
+
<div id="mynetwork"></div>
|
28
|
+
<pre id="eventSpan"></pre>
|
29
|
+
<script type="text/javascript">
|
30
|
+
// create an array with nodes
|
31
|
+
var nodes = new vis.DataSet([
|
32
|
+
{id: 1, label: 'Node 1'},
|
33
|
+
{id: 2, label: 'Node 2'},
|
34
|
+
{id: 3, label: 'Node 3'},
|
35
|
+
{id: 4, label: 'Node 4'},
|
36
|
+
{id: 5, label: 'Node 5'}
|
37
|
+
]);
|
38
|
+
|
39
|
+
// create an array with edges
|
40
|
+
var edges = new vis.DataSet([
|
41
|
+
{from: 1, to: 3},
|
42
|
+
{from: 1, to: 2},
|
43
|
+
{from: 2, to: 4},
|
44
|
+
{from: 2, to: 5}
|
45
|
+
]);
|
46
|
+
|
47
|
+
// create a network
|
48
|
+
var container = document.getElementById('mynetwork');
|
49
|
+
var data = {
|
50
|
+
nodes: nodes,
|
51
|
+
edges: edges
|
52
|
+
};
|
53
|
+
var options = {};
|
54
|
+
var network = new vis.Network(container, data, options);
|
55
|
+
|
56
|
+
network.on("initRedraw", function () {
|
57
|
+
// do something like move some custom elements?
|
58
|
+
});
|
59
|
+
network.on("beforeDrawing", function (ctx) {
|
60
|
+
var nodeId = 1;
|
61
|
+
var nodePosition = network.getPositions([nodeId]);
|
62
|
+
ctx.strokeStyle = '#A6D5F7';
|
63
|
+
ctx.fillStyle = '#294475';
|
64
|
+
ctx.circle(nodePosition[nodeId].x, nodePosition[nodeId].y,50);
|
65
|
+
ctx.fill();
|
66
|
+
ctx.stroke();
|
67
|
+
});
|
68
|
+
network.on("afterDrawing", function (ctx) {
|
69
|
+
var nodeId = 1;
|
70
|
+
var nodePosition = network.getPositions([nodeId]);
|
71
|
+
ctx.strokeStyle = '#294475';
|
72
|
+
ctx.lineWidth = 4;
|
73
|
+
ctx.fillStyle = '#A6D5F7';
|
74
|
+
ctx.circle(nodePosition[nodeId].x, nodePosition[nodeId].y,20);
|
75
|
+
ctx.fill();
|
76
|
+
ctx.stroke();
|
77
|
+
});
|
78
|
+
|
79
|
+
</script>
|
80
|
+
|
81
|
+
|
82
|
+
</body>
|
83
|
+
</html>
|
@@ -0,0 +1,24 @@
|
|
1
|
+
<html>
|
2
|
+
<head>
|
3
|
+
<style type="text/css">
|
4
|
+
#mynetwork {
|
5
|
+
width: 900px;
|
6
|
+
height: 850px;
|
7
|
+
border: 1px solid lightgray;
|
8
|
+
}
|
9
|
+
</style>
|
10
|
+
<link href="../../../vendor/assets/stylesheets/vis-network.min.css" rel="stylesheet" type="text/css" />
|
11
|
+
<script src="../../../vendor/assets/javascripts/vis.js"></script>
|
12
|
+
<script src="disassemblerExample.js"></script>
|
13
|
+
</head>
|
14
|
+
<body>
|
15
|
+
<p>Use VisJS to diagram the Control-Flow-Graph (CFG) of a function from
|
16
|
+
a program you wish to analyze.</p>
|
17
|
+
<p><div id="mynetwork"></div><br /></p>
|
18
|
+
<script type="text/javascript">
|
19
|
+
var container = document.getElementById('mynetwork');
|
20
|
+
var data = {'nodes': nodes, 'edges': edges}
|
21
|
+
var gph = new vis.Network(container, data, options);
|
22
|
+
</script>
|
23
|
+
</body>
|
24
|
+
</html>
|
@@ -0,0 +1,53 @@
|
|
1
|
+
var options = {
|
2
|
+
manipulation: false,
|
3
|
+
height: '90%',
|
4
|
+
layout: {
|
5
|
+
hierarchical: {
|
6
|
+
enabled: true,
|
7
|
+
levelSeparation: 300
|
8
|
+
}
|
9
|
+
},
|
10
|
+
physics: {
|
11
|
+
hierarchicalRepulsion: {
|
12
|
+
nodeDistance: 300
|
13
|
+
}
|
14
|
+
}
|
15
|
+
};
|
16
|
+
|
17
|
+
var nodes = [
|
18
|
+
{'id': 'cfg_0x00405a2e', 'size': 150, 'label': "0x00405a2e:\nmov DWORD PTR ss:[esp + 0x000000b0], 0x00000002\nmov DWORD PTR ss:[ebp + 0x00], esi\ntest bl, 0x02\nje 0x00405a49<<Insn>>\n", 'color': "#FFCFCF", 'shape': 'box', 'font': {'face': 'monospace', 'align': 'left'}},
|
19
|
+
{'id': 'cfg_0x00405a49', 'size': 150, 'label': "0x00405a49:\ntest bl, 0x01\nje 0x00405a62<<Insn>>\n", 'color': "#FFCFCF", 'shape': 'box', 'font': {'face': 'monospace', 'align': 'left'}},
|
20
|
+
{'id': 'cfg_0x00405a55', 'size': 150, 'label': "0x00405a55:\nmov ecx, DWORD PTR ss:[esp + 0x1c]\npush ecx\ncall 0x004095c6<<Func>>\n", 'color': "#FFCFCF", 'shape': 'box', 'font': {'face': 'monospace', 'align': 'left'}},
|
21
|
+
{'id': 'cfg_0x00405a62', 'size': 150, 'label': "0x00405a62:\nmov eax, 0x00000002\nmov ecx, DWORD PTR ss:[esp + 0x000000a8]\nmov DWORD PTR fs:[0x00000000], ecx\npop ecx\npop esi\npop ebp\npop ebx\nadd esp, 0x000000a4\nret\n", 'color': "#FFCFCF", 'shape': 'box', 'font': {'face': 'monospace', 'align': 'left'}},
|
22
|
+
{'id': 'cfg_0x004095c6', 'size': 150, 'label': "0x004095c6:\nmov edi, edi\npush ebp\nmov ebp, esp\npop ebp\njmp 0x00417563<<Func>>\n", 'color': "#FFCFCF", 'shape': 'box', 'font': {'face': 'monospace', 'align': 'left'}},
|
23
|
+
{'id': 'cfg_0x00405a39', 'size': 150, 'label': "0x00405a39:\nand ebx, 0xfd<-0x03>\nlea ecx, [esp + 0x34]\nmov DWORD PTR ss:[esp + 0x10], ebx\ncall 0x00403450<<Func>>\n", 'color': "#FFCFCF", 'shape': 'box', 'font': {'face': 'monospace', 'align': 'left'}},
|
24
|
+
{'id': 'cfg_0x00403450', 'size': 150, 'label': "0x00403450:\npush 0xff<-0x01>\npush 0x0042fa64\nmov eax, DWORD PTR fs:[0x00000000]\npush eax\npush ecx\npush ebx\npush ebp\npush esi\npush edi\nmov eax, DWORD PTR ds:[0x0043dff0<.data+0x0ff0>]\nxor eax, esp\npush eax\nlea eax, [esp + 0x18]\nmov DWORD PTR fs:[0x00000000], eax\nmov esi, ecx\nmov DWORD PTR ss:[esp + 0x14], esi\npush esi\nmov DWORD PTR ss:[esp + 0x24], 0x00000004\ncall 0x0042f03f<<Func>>\n", 'color': "#FFCFCF", 'shape': 'box', 'font': {'face': 'monospace', 'align': 'left'}},
|
25
|
+
{'id': 'cfg_0x00405a4e', 'size': 150, 'label': "0x00405a4e:\ncmp DWORD PTR ss:[esp + 0x30], 0x10\njb 0x00405a62<<Insn>>\n", 'color': "#FFCFCF", 'shape': 'box', 'font': {'face': 'monospace', 'align': 'left'}},
|
26
|
+
{'id': 'cfg_0x00405a5f', 'size': 150, 'label': "0x00405a5f:\nadd esp, 0x04\n", 'color': "#FFCFCF", 'shape': 'box', 'font': {'face': 'monospace', 'align': 'left'}},
|
27
|
+
];
|
28
|
+
|
29
|
+
|
30
|
+
//
|
31
|
+
// Note: there are a couple of node id's present here which do not exist
|
32
|
+
// - cfg_0x00417563
|
33
|
+
// - cfg_0x00403489
|
34
|
+
// - cfg_0x0042f03f
|
35
|
+
//
|
36
|
+
// The edges with these id's will not load into the Network instance.
|
37
|
+
//
|
38
|
+
var edges = [
|
39
|
+
{'from': "cfg_0x00405a2e", 'to': "cfg_0x00405a39", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
40
|
+
{'from': "cfg_0x00405a2e", 'to': "cfg_0x00405a49", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
41
|
+
{'from': "cfg_0x00405a49", 'to': "cfg_0x00405a4e", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
42
|
+
{'from': "cfg_0x00405a49", 'to': "cfg_0x00405a62", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
43
|
+
{'from': "cfg_0x00405a55", 'to': "cfg_0x00405a5f", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
44
|
+
{'from': "cfg_0x00405a55", 'to': "cfg_0x004095c6", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
45
|
+
{'from': "cfg_0x004095c6", 'to': "cfg_0x00417563", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
46
|
+
{'from': "cfg_0x00405a39", 'to': "cfg_0x00403450", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
47
|
+
{'from': "cfg_0x00405a39", 'to': "cfg_0x00405a49", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
48
|
+
{'from': "cfg_0x00403450", 'to': "cfg_0x00403489", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
49
|
+
{'from': "cfg_0x00403450", 'to': "cfg_0x0042f03f", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
50
|
+
{'from': "cfg_0x00405a4e", 'to': "cfg_0x00405a55", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
51
|
+
{'from': "cfg_0x00405a4e", 'to': "cfg_0x00405a62", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
52
|
+
{'from': "cfg_0x00405a5f", 'to': "cfg_0x00405a62", 'arrows': 'to', 'physics': false, 'smooth': {'type': 'cubicBezier'}},
|
53
|
+
];
|
@@ -0,0 +1,396 @@
|
|
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
|
+
</style>
|
13
|
+
|
14
|
+
<script type="text/javascript" src="../../../vendor/assets/javascripts/vis.js"></script>
|
15
|
+
<link href="../../../vendor/assets/stylesheets/vis-network.min.css" rel="stylesheet" type="text/css"/>
|
16
|
+
|
17
|
+
<script type="text/javascript">
|
18
|
+
function draw() {
|
19
|
+
// create some nodes
|
20
|
+
var nodes = [
|
21
|
+
{id: 0, "label": "Myriel", "group": 1},
|
22
|
+
{id: 1, "label": "Napoleon", "group": 1},
|
23
|
+
{id: 2, "label": "Mlle.Baptistine", "group": 1},
|
24
|
+
{id: 3, "label": "Mme.Magloire", "group": 1},
|
25
|
+
{id: 4, "label": "CountessdeLo", "group": 1},
|
26
|
+
{id: 5, "label": "Geborand", "group": 1},
|
27
|
+
{id: 6, "label": "Champtercier", "group": 1},
|
28
|
+
{id: 7, "label": "Cravatte", "group": 1},
|
29
|
+
{id: 8, "label": "Count", "group": 1},
|
30
|
+
{id: 9, "label": "OldMan", "group": 1},
|
31
|
+
{id: 10, "label": "Labarre", "group": 2},
|
32
|
+
{id: 11, "label": "Valjean", "group": 2},
|
33
|
+
{id: 12, "label": "Marguerite", "group": 3},
|
34
|
+
{id: 13, "label": "Mme.deR", "group": 2},
|
35
|
+
{id: 14, "label": "Isabeau", "group": 2},
|
36
|
+
{id: 15, "label": "Gervais", "group": 2},
|
37
|
+
{id: 16, "label": "Tholomyes", "group": 3},
|
38
|
+
{id: 17, "label": "Listolier", "group": 3},
|
39
|
+
{id: 18, "label": "Fameuil", "group": 3},
|
40
|
+
{id: 19, "label": "Blacheville", "group": 3},
|
41
|
+
{id: 20, "label": "Favourite", "group": 3},
|
42
|
+
{id: 21, "label": "Dahlia", "group": 3},
|
43
|
+
{id: 22, "label": "Zephine", "group": 3},
|
44
|
+
{id: 23, "label": "Fantine", "group": 3},
|
45
|
+
{id: 24, "label": "Mme.Thenardier", "group": 4},
|
46
|
+
{id: 25, "label": "Thenardier", "group": 4},
|
47
|
+
{id: 26, "label": "Cosette", "group": 5},
|
48
|
+
{id: 27, "label": "Javert", "group": 4},
|
49
|
+
{id: 28, "label": "Fauchelevent", "group": 0},
|
50
|
+
{id: 29, "label": "Bamatabois", "group": 2},
|
51
|
+
{id: 30, "label": "Perpetue", "group": 3},
|
52
|
+
{id: 31, "label": "Simplice", "group": 2},
|
53
|
+
{id: 32, "label": "Scaufflaire", "group": 2},
|
54
|
+
{id: 33, "label": "Woman1", "group": 2},
|
55
|
+
{id: 34, "label": "Judge", "group": 2},
|
56
|
+
{id: 35, "label": "Champmathieu", "group": 2},
|
57
|
+
{id: 36, "label": "Brevet", "group": 2},
|
58
|
+
{id: 37, "label": "Chenildieu", "group": 2},
|
59
|
+
{id: 38, "label": "Cochepaille", "group": 2},
|
60
|
+
{id: 39, "label": "Pontmercy", "group": 4},
|
61
|
+
{id: 40, "label": "Boulatruelle", "group": 6},
|
62
|
+
{id: 41, "label": "Eponine", "group": 4},
|
63
|
+
{id: 42, "label": "Anzelma", "group": 4},
|
64
|
+
{id: 43, "label": "Woman2", "group": 5},
|
65
|
+
{id: 44, "label": "MotherInnocent", "group": 0},
|
66
|
+
{id: 45, "label": "Gribier", "group": 0},
|
67
|
+
{id: 46, "label": "Jondrette", "group": 7},
|
68
|
+
{id: 47, "label": "Mme.Burgon", "group": 7},
|
69
|
+
{id: 48, "label": "Gavroche", "group": 8},
|
70
|
+
{id: 49, "label": "Gillenormand", "group": 5},
|
71
|
+
{id: 50, "label": "Magnon", "group": 5},
|
72
|
+
{id: 51, "label": "Mlle.Gillenormand", "group": 5},
|
73
|
+
{id: 52, "label": "Mme.Pontmercy", "group": 5},
|
74
|
+
{id: 53, "label": "Mlle.Vaubois", "group": 5},
|
75
|
+
{id: 54, "label": "Lt.Gillenormand", "group": 5},
|
76
|
+
{id: 55, "label": "Marius", "group": 8},
|
77
|
+
{id: 56, "label": "BaronessT", "group": 5},
|
78
|
+
{id: 57, "label": "Mabeuf", "group": 8},
|
79
|
+
{id: 58, "label": "Enjolras", "group": 8},
|
80
|
+
{id: 59, "label": "Combeferre", "group": 8},
|
81
|
+
{id: 60, "label": "Prouvaire", "group": 8},
|
82
|
+
{id: 61, "label": "Feuilly", "group": 8},
|
83
|
+
{id: 62, "label": "Courfeyrac", "group": 8},
|
84
|
+
{id: 63, "label": "Bahorel", "group": 8},
|
85
|
+
{id: 64, "label": "Bossuet", "group": 8},
|
86
|
+
{id: 65, "label": "Joly", "group": 8},
|
87
|
+
{id: 66, "label": "Grantaire", "group": 8},
|
88
|
+
{id: 67, "label": "MotherPlutarch", "group": 9},
|
89
|
+
{id: 68, "label": "Gueulemer", "group": 4},
|
90
|
+
{id: 69, "label": "Babet", "group": 4},
|
91
|
+
{id: 70, "label": "Claquesous", "group": 4},
|
92
|
+
{id: 71, "label": "Montparnasse", "group": 4},
|
93
|
+
{id: 72, "label": "Toussaint", "group": 5},
|
94
|
+
{id: 73, "label": "Child1", "group": 10},
|
95
|
+
{id: 74, "label": "Child2", "group": 10},
|
96
|
+
{id: 75, "label": "Brujon", "group": 4},
|
97
|
+
{id: 76, "label": "Mme.Hucheloup", "group": 8}
|
98
|
+
];
|
99
|
+
|
100
|
+
// create some edges
|
101
|
+
var edges = [
|
102
|
+
{"from": 1, "to": 0},
|
103
|
+
{"from": 2, "to": 0},
|
104
|
+
{"from": 3, "to": 0},
|
105
|
+
{"from": 3, "to": 2},
|
106
|
+
{"from": 4, "to": 0},
|
107
|
+
{"from": 5, "to": 0},
|
108
|
+
{"from": 6, "to": 0},
|
109
|
+
{"from": 7, "to": 0},
|
110
|
+
{"from": 8, "to": 0},
|
111
|
+
{"from": 9, "to": 0},
|
112
|
+
{"from": 11, "to": 10},
|
113
|
+
{"from": 11, "to": 3},
|
114
|
+
{"from": 11, "to": 2},
|
115
|
+
{"from": 11, "to": 0},
|
116
|
+
{"from": 12, "to": 11},
|
117
|
+
{"from": 13, "to": 11},
|
118
|
+
{"from": 14, "to": 11},
|
119
|
+
{"from": 15, "to": 11},
|
120
|
+
{"from": 17, "to": 16},
|
121
|
+
{"from": 18, "to": 16},
|
122
|
+
{"from": 18, "to": 17},
|
123
|
+
{"from": 19, "to": 16},
|
124
|
+
{"from": 19, "to": 17},
|
125
|
+
{"from": 19, "to": 18},
|
126
|
+
{"from": 20, "to": 16},
|
127
|
+
{"from": 20, "to": 17},
|
128
|
+
{"from": 20, "to": 18},
|
129
|
+
{"from": 20, "to": 19},
|
130
|
+
{"from": 21, "to": 16},
|
131
|
+
{"from": 21, "to": 17},
|
132
|
+
{"from": 21, "to": 18},
|
133
|
+
{"from": 21, "to": 19},
|
134
|
+
{"from": 21, "to": 20},
|
135
|
+
{"from": 22, "to": 16},
|
136
|
+
{"from": 22, "to": 17},
|
137
|
+
{"from": 22, "to": 18},
|
138
|
+
{"from": 22, "to": 19},
|
139
|
+
{"from": 22, "to": 20},
|
140
|
+
{"from": 22, "to": 21},
|
141
|
+
{"from": 23, "to": 16},
|
142
|
+
{"from": 23, "to": 17},
|
143
|
+
{"from": 23, "to": 18},
|
144
|
+
{"from": 23, "to": 19},
|
145
|
+
{"from": 23, "to": 20},
|
146
|
+
{"from": 23, "to": 21},
|
147
|
+
{"from": 23, "to": 22},
|
148
|
+
{"from": 23, "to": 12},
|
149
|
+
{"from": 23, "to": 11},
|
150
|
+
{"from": 24, "to": 23},
|
151
|
+
{"from": 24, "to": 11},
|
152
|
+
{"from": 25, "to": 24},
|
153
|
+
{"from": 25, "to": 23},
|
154
|
+
{"from": 25, "to": 11},
|
155
|
+
{"from": 26, "to": 24},
|
156
|
+
{"from": 26, "to": 11},
|
157
|
+
{"from": 26, "to": 16},
|
158
|
+
{"from": 26, "to": 25},
|
159
|
+
{"from": 27, "to": 11},
|
160
|
+
{"from": 27, "to": 23},
|
161
|
+
{"from": 27, "to": 25},
|
162
|
+
{"from": 27, "to": 24},
|
163
|
+
{"from": 27, "to": 26},
|
164
|
+
{"from": 28, "to": 11},
|
165
|
+
{"from": 28, "to": 27},
|
166
|
+
{"from": 29, "to": 23},
|
167
|
+
{"from": 29, "to": 27},
|
168
|
+
{"from": 29, "to": 11},
|
169
|
+
{"from": 30, "to": 23},
|
170
|
+
{"from": 31, "to": 30},
|
171
|
+
{"from": 31, "to": 11},
|
172
|
+
{"from": 31, "to": 23},
|
173
|
+
{"from": 31, "to": 27},
|
174
|
+
{"from": 32, "to": 11},
|
175
|
+
{"from": 33, "to": 11},
|
176
|
+
{"from": 33, "to": 27},
|
177
|
+
{"from": 34, "to": 11},
|
178
|
+
{"from": 34, "to": 29},
|
179
|
+
{"from": 35, "to": 11},
|
180
|
+
{"from": 35, "to": 34},
|
181
|
+
{"from": 35, "to": 29},
|
182
|
+
{"from": 36, "to": 34},
|
183
|
+
{"from": 36, "to": 35},
|
184
|
+
{"from": 36, "to": 11},
|
185
|
+
{"from": 36, "to": 29},
|
186
|
+
{"from": 37, "to": 34},
|
187
|
+
{"from": 37, "to": 35},
|
188
|
+
{"from": 37, "to": 36},
|
189
|
+
{"from": 37, "to": 11},
|
190
|
+
{"from": 37, "to": 29},
|
191
|
+
{"from": 38, "to": 34},
|
192
|
+
{"from": 38, "to": 35},
|
193
|
+
{"from": 38, "to": 36},
|
194
|
+
{"from": 38, "to": 37},
|
195
|
+
{"from": 38, "to": 11},
|
196
|
+
{"from": 38, "to": 29},
|
197
|
+
{"from": 39, "to": 25},
|
198
|
+
{"from": 40, "to": 25},
|
199
|
+
{"from": 41, "to": 24},
|
200
|
+
{"from": 41, "to": 25},
|
201
|
+
{"from": 42, "to": 41},
|
202
|
+
{"from": 42, "to": 25},
|
203
|
+
{"from": 42, "to": 24},
|
204
|
+
{"from": 43, "to": 11},
|
205
|
+
{"from": 43, "to": 26},
|
206
|
+
{"from": 43, "to": 27},
|
207
|
+
{"from": 44, "to": 28},
|
208
|
+
{"from": 44, "to": 11},
|
209
|
+
{"from": 45, "to": 28},
|
210
|
+
{"from": 47, "to": 46},
|
211
|
+
{"from": 48, "to": 47},
|
212
|
+
{"from": 48, "to": 25},
|
213
|
+
{"from": 48, "to": 27},
|
214
|
+
{"from": 48, "to": 11},
|
215
|
+
{"from": 49, "to": 26},
|
216
|
+
{"from": 49, "to": 11},
|
217
|
+
{"from": 50, "to": 49},
|
218
|
+
{"from": 50, "to": 24},
|
219
|
+
{"from": 51, "to": 49},
|
220
|
+
{"from": 51, "to": 26},
|
221
|
+
{"from": 51, "to": 11},
|
222
|
+
{"from": 52, "to": 51},
|
223
|
+
{"from": 52, "to": 39},
|
224
|
+
{"from": 53, "to": 51},
|
225
|
+
{"from": 54, "to": 51},
|
226
|
+
{"from": 54, "to": 49},
|
227
|
+
{"from": 54, "to": 26},
|
228
|
+
{"from": 55, "to": 51},
|
229
|
+
{"from": 55, "to": 49},
|
230
|
+
{"from": 55, "to": 39},
|
231
|
+
{"from": 55, "to": 54},
|
232
|
+
{"from": 55, "to": 26},
|
233
|
+
{"from": 55, "to": 11},
|
234
|
+
{"from": 55, "to": 16},
|
235
|
+
{"from": 55, "to": 25},
|
236
|
+
{"from": 55, "to": 41},
|
237
|
+
{"from": 55, "to": 48},
|
238
|
+
{"from": 56, "to": 49},
|
239
|
+
{"from": 56, "to": 55},
|
240
|
+
{"from": 57, "to": 55},
|
241
|
+
{"from": 57, "to": 41},
|
242
|
+
{"from": 57, "to": 48},
|
243
|
+
{"from": 58, "to": 55},
|
244
|
+
{"from": 58, "to": 48},
|
245
|
+
{"from": 58, "to": 27},
|
246
|
+
{"from": 58, "to": 57},
|
247
|
+
{"from": 58, "to": 11},
|
248
|
+
{"from": 59, "to": 58},
|
249
|
+
{"from": 59, "to": 55},
|
250
|
+
{"from": 59, "to": 48},
|
251
|
+
{"from": 59, "to": 57},
|
252
|
+
{"from": 60, "to": 48},
|
253
|
+
{"from": 60, "to": 58},
|
254
|
+
{"from": 60, "to": 59},
|
255
|
+
{"from": 61, "to": 48},
|
256
|
+
{"from": 61, "to": 58},
|
257
|
+
{"from": 61, "to": 60},
|
258
|
+
{"from": 61, "to": 59},
|
259
|
+
{"from": 61, "to": 57},
|
260
|
+
{"from": 61, "to": 55},
|
261
|
+
{"from": 62, "to": 55},
|
262
|
+
{"from": 62, "to": 58},
|
263
|
+
{"from": 62, "to": 59},
|
264
|
+
{"from": 62, "to": 48},
|
265
|
+
{"from": 62, "to": 57},
|
266
|
+
{"from": 62, "to": 41},
|
267
|
+
{"from": 62, "to": 61},
|
268
|
+
{"from": 62, "to": 60},
|
269
|
+
{"from": 63, "to": 59},
|
270
|
+
{"from": 63, "to": 48},
|
271
|
+
{"from": 63, "to": 62},
|
272
|
+
{"from": 63, "to": 57},
|
273
|
+
{"from": 63, "to": 58},
|
274
|
+
{"from": 63, "to": 61},
|
275
|
+
{"from": 63, "to": 60},
|
276
|
+
{"from": 63, "to": 55},
|
277
|
+
{"from": 64, "to": 55},
|
278
|
+
{"from": 64, "to": 62},
|
279
|
+
{"from": 64, "to": 48},
|
280
|
+
{"from": 64, "to": 63},
|
281
|
+
{"from": 64, "to": 58},
|
282
|
+
{"from": 64, "to": 61},
|
283
|
+
{"from": 64, "to": 60},
|
284
|
+
{"from": 64, "to": 59},
|
285
|
+
{"from": 64, "to": 57},
|
286
|
+
{"from": 64, "to": 11},
|
287
|
+
{"from": 65, "to": 63},
|
288
|
+
{"from": 65, "to": 64},
|
289
|
+
{"from": 65, "to": 48},
|
290
|
+
{"from": 65, "to": 62},
|
291
|
+
{"from": 65, "to": 58},
|
292
|
+
{"from": 65, "to": 61},
|
293
|
+
{"from": 65, "to": 60},
|
294
|
+
{"from": 65, "to": 59},
|
295
|
+
{"from": 65, "to": 57},
|
296
|
+
{"from": 65, "to": 55},
|
297
|
+
{"from": 66, "to": 64},
|
298
|
+
{"from": 66, "to": 58},
|
299
|
+
{"from": 66, "to": 59},
|
300
|
+
{"from": 66, "to": 62},
|
301
|
+
{"from": 66, "to": 65},
|
302
|
+
{"from": 66, "to": 48},
|
303
|
+
{"from": 66, "to": 63},
|
304
|
+
{"from": 66, "to": 61},
|
305
|
+
{"from": 66, "to": 60},
|
306
|
+
{"from": 67, "to": 57},
|
307
|
+
{"from": 68, "to": 25},
|
308
|
+
{"from": 68, "to": 11},
|
309
|
+
{"from": 68, "to": 24},
|
310
|
+
{"from": 68, "to": 27},
|
311
|
+
{"from": 68, "to": 48},
|
312
|
+
{"from": 68, "to": 41},
|
313
|
+
{"from": 69, "to": 25},
|
314
|
+
{"from": 69, "to": 68},
|
315
|
+
{"from": 69, "to": 11},
|
316
|
+
{"from": 69, "to": 24},
|
317
|
+
{"from": 69, "to": 27},
|
318
|
+
{"from": 69, "to": 48},
|
319
|
+
{"from": 69, "to": 41},
|
320
|
+
{"from": 70, "to": 25},
|
321
|
+
{"from": 70, "to": 69},
|
322
|
+
{"from": 70, "to": 68},
|
323
|
+
{"from": 70, "to": 11},
|
324
|
+
{"from": 70, "to": 24},
|
325
|
+
{"from": 70, "to": 27},
|
326
|
+
{"from": 70, "to": 41},
|
327
|
+
{"from": 70, "to": 58},
|
328
|
+
{"from": 71, "to": 27},
|
329
|
+
{"from": 71, "to": 69},
|
330
|
+
{"from": 71, "to": 68},
|
331
|
+
{"from": 71, "to": 70},
|
332
|
+
{"from": 71, "to": 11},
|
333
|
+
{"from": 71, "to": 48},
|
334
|
+
{"from": 71, "to": 41},
|
335
|
+
{"from": 71, "to": 25},
|
336
|
+
{"from": 72, "to": 26},
|
337
|
+
{"from": 72, "to": 27},
|
338
|
+
{"from": 72, "to": 11},
|
339
|
+
{"from": 73, "to": 48},
|
340
|
+
{"from": 74, "to": 48},
|
341
|
+
{"from": 74, "to": 73},
|
342
|
+
{"from": 75, "to": 69},
|
343
|
+
{"from": 75, "to": 68},
|
344
|
+
{"from": 75, "to": 25},
|
345
|
+
{"from": 75, "to": 48},
|
346
|
+
{"from": 75, "to": 41},
|
347
|
+
{"from": 75, "to": 70},
|
348
|
+
{"from": 75, "to": 71},
|
349
|
+
{"from": 76, "to": 64},
|
350
|
+
{"from": 76, "to": 65},
|
351
|
+
{"from": 76, "to": 66},
|
352
|
+
{"from": 76, "to": 63},
|
353
|
+
{"from": 76, "to": 62},
|
354
|
+
{"from": 76, "to": 48},
|
355
|
+
{"from": 76, "to": 58}
|
356
|
+
];
|
357
|
+
|
358
|
+
// create a network
|
359
|
+
var container = document.getElementById('mynetwork');
|
360
|
+
var data = {
|
361
|
+
nodes: nodes,
|
362
|
+
edges: edges
|
363
|
+
};
|
364
|
+
var options = {
|
365
|
+
nodes: {
|
366
|
+
shape: 'dot',
|
367
|
+
size: 16
|
368
|
+
},
|
369
|
+
physics: {
|
370
|
+
forceAtlas2Based: {
|
371
|
+
gravitationalConstant: -26,
|
372
|
+
centralGravity: 0.005,
|
373
|
+
springLength: 230,
|
374
|
+
springConstant: 0.18
|
375
|
+
},
|
376
|
+
maxVelocity: 146,
|
377
|
+
solver: 'forceAtlas2Based',
|
378
|
+
timestep: 0.35,
|
379
|
+
stabilization: {iterations: 150}
|
380
|
+
}
|
381
|
+
};
|
382
|
+
var network = new vis.Network(container, data, options);
|
383
|
+
|
384
|
+
}
|
385
|
+
</script>
|
386
|
+
|
387
|
+
</head>
|
388
|
+
|
389
|
+
<body onload="draw()">
|
390
|
+
<p>
|
391
|
+
Relations between the characters of "Les miserables".
|
392
|
+
</p>
|
393
|
+
|
394
|
+
<div id="mynetwork"></div>
|
395
|
+
</body>
|
396
|
+
</html>
|