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.

65 lines
1.0 KiB

  1. /**
  2. * vis.js module exports
  3. */
  4. var vis = {
  5. util: util,
  6. DataSet: DataSet,
  7. DataView: DataView,
  8. Range: Range,
  9. Stack: Stack,
  10. TimeStep: TimeStep,
  11. components: {
  12. items: {
  13. Item: Item,
  14. ItemBox: ItemBox,
  15. ItemPoint: ItemPoint,
  16. ItemRange: ItemRange
  17. },
  18. Component: Component,
  19. Panel: Panel,
  20. RootPanel: RootPanel,
  21. ItemSet: ItemSet,
  22. TimeAxis: TimeAxis
  23. },
  24. graph: {
  25. Node: Node,
  26. Edge: Edge,
  27. Popup: Popup,
  28. Groups: Groups,
  29. Images: Images
  30. },
  31. Timeline: Timeline,
  32. Graph: Graph
  33. };
  34. /**
  35. * CommonJS module exports
  36. */
  37. if (typeof exports !== 'undefined') {
  38. exports = vis;
  39. }
  40. if (typeof module !== 'undefined' && typeof module.exports !== 'undefined') {
  41. module.exports = vis;
  42. }
  43. /**
  44. * AMD module exports
  45. */
  46. if (typeof(define) === 'function') {
  47. define(function () {
  48. return vis;
  49. });
  50. }
  51. /**
  52. * Window exports
  53. */
  54. if (typeof window !== 'undefined') {
  55. // attach the module to the window, load as a regular javascript file
  56. window['vis'] = vis;
  57. }