vis.js is a dynamic, browser-based visualization library
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

70 lines
2.5 KiB

  1. // utils
  2. exports.util = require('./lib/util');
  3. exports.DOMutil = require('./lib/DOMutil');
  4. // data
  5. exports.DataSet = require('./lib/DataSet');
  6. exports.DataView = require('./lib/DataView');
  7. // Graph3d
  8. exports.Graph3d = require('./lib/graph3d/Graph3d');
  9. exports.graph3d = {
  10. Camera: require('./lib/graph3d/Camera'),
  11. Filter: require('./lib/graph3d/Filter'),
  12. Point2d: require('./lib/graph3d/Point2d'),
  13. Point3d: require('./lib/graph3d/Point3d'),
  14. Slider: require('./lib/graph3d/Slider'),
  15. StepNumber: require('./lib/graph3d/StepNumber')
  16. };
  17. // Timeline
  18. exports.Timeline = require('./lib/timeline/Timeline');
  19. exports.Graph2d = require('./lib/timeline/Graph2d');
  20. exports.timeline = {
  21. DataStep: require('./lib/timeline/DataStep'),
  22. Range: require('./lib/timeline/Range'),
  23. stack: require('./lib/timeline/Stack'),
  24. TimeStep: require('./lib/timeline/TimeStep'),
  25. components: {
  26. items: {
  27. Item: require('./lib/timeline/component/item/Item'),
  28. BackgroundItem: require('./lib/timeline/component/item/BackgroundItem'),
  29. BoxItem: require('./lib/timeline/component/item/BoxItem'),
  30. PointItem: require('./lib/timeline/component/item/PointItem'),
  31. RangeItem: require('./lib/timeline/component/item/RangeItem')
  32. },
  33. Component: require('./lib/timeline/component/Component'),
  34. CurrentTime: require('./lib/timeline/component/CurrentTime'),
  35. CustomTime: require('./lib/timeline/component/CustomTime'),
  36. DataAxis: require('./lib/timeline/component/DataAxis'),
  37. GraphGroup: require('./lib/timeline/component/GraphGroup'),
  38. Group: require('./lib/timeline/component/Group'),
  39. ItemSet: require('./lib/timeline/component/ItemSet'),
  40. Legend: require('./lib/timeline/component/Legend'),
  41. LineGraph: require('./lib/timeline/component/LineGraph'),
  42. TimeAxis: require('./lib/timeline/component/TimeAxis')
  43. }
  44. };
  45. // Network
  46. exports.Network = require('./lib/network/Network');
  47. exports.network = {
  48. Edge: require('./lib/network/Edge'),
  49. Groups: require('./lib/network/Groups'),
  50. Images: require('./lib/network/Images'),
  51. Node: require('./lib/network/Node'),
  52. Popup: require('./lib/network/Popup'),
  53. dotparser: require('./lib/network/dotparser'),
  54. gephiParser: require('./lib/network/gephiParser')
  55. };
  56. // Deprecated since v3.0.0
  57. exports.Graph = function () {
  58. throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)');
  59. };
  60. // bundled external libraries
  61. exports.moment = require('./lib/module/moment');
  62. exports.hammer = require('./lib/module/hammer');