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.

71 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. 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. ItemSet: require('./lib/timeline/component/ItemSet'),
  41. Legend: require('./lib/timeline/component/Legend'),
  42. LineGraph: require('./lib/timeline/component/LineGraph'),
  43. TimeAxis: require('./lib/timeline/component/TimeAxis')
  44. }
  45. };
  46. // Network
  47. exports.Network = require('./lib/network/Network');
  48. exports.network = {
  49. Edge: require('./lib/network/Edge'),
  50. Groups: require('./lib/network/Groups'),
  51. Images: require('./lib/network/Images'),
  52. Node: require('./lib/network/Node'),
  53. Popup: require('./lib/network/Popup'),
  54. dotparser: require('./lib/network/dotparser'),
  55. gephiParser: require('./lib/network/gephiParser')
  56. };
  57. // Deprecated since v3.0.0
  58. exports.Graph = function () {
  59. throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)');
  60. };
  61. // bundled external libraries
  62. exports.moment = require('./lib/module/moment');
  63. exports.hammer = require('./lib/module/hammer');