Browse Source

Updated test file

flowchartTest
jos 9 years ago
parent
commit
af1579ba7c
2 changed files with 22 additions and 8 deletions
  1. +2
    -0
      lib/hammerUtil.js
  2. +20
    -8
      test/timeline.html

+ 2
- 0
lib/hammerUtil.js View File

@ -43,6 +43,8 @@ exports.onRelease = function (hammer, callback) {
return hammer.on('hammer.input', callback.inputHandler);
};
// isReleasing is true while a release action is being emitted
// this is a hack to prevent `release` from being fired twice
var isReleasing = false;

+ 20
- 8
test/timeline.html View File

@ -20,23 +20,23 @@
/*background: rgba(255, 255, 0, 0.5);*/
}
.vis.timeline .item.range .drag-left,
.vis.timeline .item.range .drag-right {
width: 40px;
.vis-timeline .vis-item.vis-range .vis-drag-left,
.vis-timeline .vis-item.vis-range .vis-drag-right {
/*width: 40px;*/
background: rgba(255,255,255,0.5);
}
#visualization .grid.vertical.odd {
#visualization .vis-grid.vis-vertical.odd {
background: #f5f5f5;
}
#visualization .grid.vertical.saturday,
#visualization .grid.vertical.sunday {
#visualization .vis-grid.vis-vertical.saturday,
#visualization .vis-grid.vis-vertical.sunday {
background: gray;
}
#visualization .text.saturday,
#visualization .text.sunday {
#visualization .vis-text.saturday,
#visualization .vis-text.sunday {
color: white;
}
</style>
@ -106,6 +106,18 @@
end: now.clone().add(7, 'days').toDate(),
title: 'hello title!'
},
{
_id: 4.1, content: 'item 4.1 test overflow foo bar foo bar foo bar foo bar foo bar',
start: now.clone().add(0, 'days').toDate(),
end: now.clone().add(1, 'days').toDate(),
title: 'hello title!'
},
{
_id: 4.2, content: 'item 4.2 test overflow foo bar foo bar foo bar foo bar foo bar',
start: now.clone().add(1, 'days').toDate(),
end: now.clone().add(1, 'days').add(1, 'minutes').toDate(),
title: 'hello title!'
},
{_id: 5, content: 'item 5', start: now.clone().add(9, 'days').toDate(), type:'point', title: 'hello title!'},
{_id: 6, content: 'item 6', start: now.clone().add(11, 'days').toDate()}
]);

Loading…
Cancel
Save