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.

41 lines
815 B

  1. var DataSet = require('../lib/DataSet');
  2. module.exports = {
  3. buildMockItemSet: function() {
  4. var itemset = {
  5. dom: {
  6. foreground: document.createElement('div'),
  7. content: document.createElement('div')
  8. },
  9. itemSet: {
  10. itemsData: new DataSet()
  11. }
  12. };
  13. return itemset;
  14. },
  15. buildSimpleTimelineRangeBody: function () {
  16. var body = {
  17. dom: {
  18. center: {
  19. clientWidth: 1000
  20. }
  21. },
  22. domProps: {
  23. centerContainer: {
  24. width: 900,
  25. height: 600
  26. }
  27. },
  28. emitter: {
  29. on: function () {},
  30. off: function () {},
  31. emit: function () {}
  32. },
  33. hiddenDates: [],
  34. util: {}
  35. };
  36. body.dom.rollingModeBtn = document.createElement('div');
  37. return body
  38. }
  39. };