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

var DataSet = require('../lib/DataSet');
module.exports = {
buildMockItemSet: function() {
var itemset = {
dom: {
foreground: document.createElement('div'),
content: document.createElement('div')
},
itemSet: {
itemsData: new DataSet()
}
};
return itemset;
},
buildSimpleTimelineRangeBody: function () {
var body = {
dom: {
center: {
clientWidth: 1000
}
},
domProps: {
centerContainer: {
width: 900,
height: 600
}
},
emitter: {
on: function () {},
off: function () {},
emit: function () {}
},
hiddenDates: [],
util: {}
};
body.dom.rollingModeBtn = document.createElement('div');
return body
}
};