before big animation implementation

This commit is contained in:
Peter Cottle 2012-09-15 15:33:21 -07:00
parent 5ac6b035f5
commit b7f6bfff5a
6 changed files with 86 additions and 169 deletions

View file

@ -1,4 +1,7 @@
function GitVisuals() {
this.collection = commitCollection;
this.collection.on('change', _.bind(this.collectionChanged, this));
events.on('drawGitVisuals', _.bind(this.drawVisuals, this));
events.on('fixNodePositions', _.bind(this.fixNodes, this));
}
@ -71,6 +74,10 @@ GitVisuals.prototype.drawArrow = function(ctx, start, end, headWidth, offset) {
ctx.stroke();
};
GitVisuals.prototype.collectionChanged = function() {
// redo the algorithms
};
GitVisuals.prototype.fixRootCommit = function(sys) {
// get the viewports bottom center
var bottomPosScreen = {