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