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.

56 lines
1.9 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. // Timeline
  10. exports.Timeline = require('./lib/timeline/Timeline');
  11. exports.Graph2d = require('./lib/timeline/Graph2d');
  12. exports.timeline= {
  13. DataStep: require('./lib/timeline/DataStep'),
  14. Range: require('./lib/timeline/Range'),
  15. stack: require('./lib/timeline/Stack'),
  16. TimeStep: require('./lib/timeline/TimeStep'),
  17. components: {
  18. items: {
  19. Item: require('./lib/timeline/component/item/Item'),
  20. ItemBox: require('./lib/timeline/component/item/ItemBox'),
  21. ItemPoint: require('./lib/timeline/component/item/ItemPoint'),
  22. ItemRange: require('./lib/timeline/component/item/ItemRange')
  23. },
  24. Component: require('./lib/timeline/component/Component'),
  25. CurrentTime: require('./lib/timeline/component/CurrentTime'),
  26. CustomTime: require('./lib/timeline/component/CustomTime'),
  27. DataAxis: require('./lib/timeline/component/DataAxis'),
  28. GraphGroup: require('./lib/timeline/component/GraphGroup'),
  29. Group: require('./lib/timeline/component/Group'),
  30. ItemSet: require('./lib/timeline/component/ItemSet'),
  31. Legend: require('./lib/timeline/component/Legend'),
  32. LineGraph: require('./lib/timeline/component/LineGraph'),
  33. TimeAxis: require('./lib/timeline/component/TimeAxis')
  34. }
  35. };
  36. // Network
  37. exports.Network = require('./lib/network/Network');
  38. exports.network = {
  39. Edge: require('./lib/network/Edge'),
  40. Groups: require('./lib/network/Groups'),
  41. Images: require('./lib/network/Images'),
  42. Node: require('./lib/network/Node'),
  43. Popup: require('./lib/network/Popup'),
  44. dotparser: require('./lib/network/dotparser')
  45. };
  46. // Deprecated since v3.0.0
  47. exports.Graph = function () {
  48. throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)');
  49. };