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.

72 lines
2.6 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. DateUtil: require('./lib/timeline/DateUtil'),
  22. DataStep: require('./lib/timeline/DataStep'),
  23. Range: require('./lib/timeline/Range'),
  24. stack: require('./lib/timeline/Stack'),
  25. TimeStep: require('./lib/timeline/TimeStep'),
  26. components: {
  27. items: {
  28. Item: require('./lib/timeline/component/item/Item'),
  29. BackgroundItem: require('./lib/timeline/component/item/BackgroundItem'),
  30. BoxItem: require('./lib/timeline/component/item/BoxItem'),
  31. PointItem: require('./lib/timeline/component/item/PointItem'),
  32. RangeItem: require('./lib/timeline/component/item/RangeItem')
  33. },
  34. Component: require('./lib/timeline/component/Component'),
  35. CurrentTime: require('./lib/timeline/component/CurrentTime'),
  36. CustomTime: require('./lib/timeline/component/CustomTime'),
  37. DataAxis: require('./lib/timeline/component/DataAxis'),
  38. GraphGroup: require('./lib/timeline/component/GraphGroup'),
  39. Group: require('./lib/timeline/component/Group'),
  40. BackgroundGroup: require('./lib/timeline/component/BackgroundGroup'),
  41. ItemSet: require('./lib/timeline/component/ItemSet'),
  42. Legend: require('./lib/timeline/component/Legend'),
  43. LineGraph: require('./lib/timeline/component/LineGraph'),
  44. TimeAxis: require('./lib/timeline/component/TimeAxis')
  45. }
  46. };
  47. // Network
  48. exports.Network = require('./lib/network/Network');
  49. exports.network = {
  50. Edge: require('./lib/network/Edge'),
  51. Groups: require('./lib/network/Groups'),
  52. Images: require('./lib/network/Images'),
  53. Node: require('./lib/network/Node'),
  54. Popup: require('./lib/network/Popup'),
  55. dotparser: require('./lib/network/dotparser'),
  56. gephiParser: require('./lib/network/gephiParser')
  57. };
  58. // Deprecated since v3.0.0
  59. exports.Graph = function () {
  60. throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)');
  61. };
  62. // bundled external libraries
  63. exports.moment = require('./lib/module/moment');
  64. exports.hammer = require('./lib/module/hammer');