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.

37 lines
752 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: this.props,
  24. emitter: {
  25. on: function () {},
  26. off: function () {},
  27. emit: function () {}
  28. },
  29. hiddenDates: [],
  30. util: {}
  31. }
  32. body.dom.rollingModeBtn = document.createElement('div')
  33. return body
  34. }
  35. }