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.

84 lines
1.5 KiB

10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
10 years ago
  1. /**
  2. * vis.js module exports
  3. */
  4. var vis = {
  5. moment: moment,
  6. util: util,
  7. DOMutil: DOMutil,
  8. DataSet: DataSet,
  9. DataView: DataView,
  10. Timeline: Timeline,
  11. Graph2d: Graph2d,
  12. timeline: {
  13. DataStep: DataStep,
  14. Range: Range,
  15. stack: stack,
  16. TimeStep: TimeStep,
  17. components: {
  18. items: {
  19. Item: Item,
  20. ItemBox: ItemBox,
  21. ItemPoint: ItemPoint,
  22. ItemRange: ItemRange
  23. },
  24. Component: Component,
  25. CurrentTime: CurrentTime,
  26. CustomTime: CustomTime,
  27. DataAxis: DataAxis,
  28. GraphGroup: GraphGroup,
  29. Group: Group,
  30. ItemSet: ItemSet,
  31. Legend: Legend,
  32. LineGraph: LineGraph,
  33. TimeAxis: TimeAxis
  34. }
  35. },
  36. Network: Network,
  37. network: {
  38. Edge: Edge,
  39. Groups: Groups,
  40. Images: Images,
  41. Node: Node,
  42. Popup: Popup
  43. },
  44. // Deprecated since v3.0.0
  45. Graph: function () {
  46. throw new Error('Graph is renamed to Network. Please create a graph as new vis.Network(...)');
  47. },
  48. Graph3d: Graph3d
  49. };
  50. /**
  51. * CommonJS module exports
  52. */
  53. if (typeof exports !== 'undefined') {
  54. exports = vis;
  55. }
  56. if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
  57. module.exports = vis;
  58. }
  59. /**
  60. * AMD module exports
  61. */
  62. if (typeof(define) === 'function') {
  63. define(function () {
  64. return vis;
  65. });
  66. }
  67. /**
  68. * Window exports
  69. */
  70. if (typeof window !== 'undefined') {
  71. // attach the module to the window, load as a regular javascript file
  72. window['vis'] = vis;
  73. }