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.

42 lines
832 B

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