mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-29 17:27:22 +02:00
before big animation implementation
This commit is contained in:
parent
5ac6b035f5
commit
b7f6bfff5a
6 changed files with 86 additions and 169 deletions
|
@ -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 = {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue