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.

68 lines
2.3 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. ItemBox: require('./lib/timeline/component/item/ItemBox'),
  29. ItemPoint: require('./lib/timeline/component/item/ItemPoint'),
  30. ItemRange: require('./lib/timeline/component/item/ItemRange')
  31. },
  32. Component: require('./lib/timeline/component/Component'),
  33. CurrentTime: require('./lib/timeline/component/CurrentTime'),
  34. CustomTime: require('./lib/timeline/component/CustomTime'),
  35. DataAxis: require('./lib/timeline/component/DataAxis'),
  36. GraphGroup: require('./lib/timeline/component/GraphGroup'),
  37. Group: require('./lib/timeline/component/Group'),
  38. ItemSet: require('./lib/timeline/component/ItemSet'),
  39. Legend: require('./lib/timeline/component/Legend'),
  40. LineGraph: require('./lib/timeline/component/LineGraph'),
  41. TimeAxis: require('./lib/timeline/component/TimeAxis')
  42. }
  43. };
  44. // Network
  45. exports.Network = require('./lib/network/Network');
  46. exports.network = {
  47. Edge: require('./lib/network/Edge'),
  48. Groups: require('./lib/network/Groups'),
  49. Images: require('./lib/network/Images'),
  50. Node: require('./lib/network/Node'),
  51. Popup: require('./lib/network/Popup'),
  52. dotparser: require('./lib/network/dotparser')
  53. };
  54. // Deprecated since v3.0.0
  55. exports.Graph = function () {
  56. throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)');
  57. };
  58. // bundled external libraries
  59. exports.moment = require('./lib/module/moment');
  60. exports.hammer = require('./lib/module/hammer');