mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-09 14:14:27 +02:00
makes other vis now too
This commit is contained in:
parent
9173e75c1a
commit
29d401e701
4 changed files with 147 additions and 18 deletions
|
@ -18,6 +18,7 @@ var VisEdgeCollection = require('../visuals/visEdge').VisEdgeCollection;
|
|||
function GitVisuals(options) {
|
||||
options = options || {};
|
||||
this.options = options;
|
||||
this.visualization = options.visualization;
|
||||
this.commitCollection = options.commitCollection;
|
||||
this.branchCollection = options.branchCollection;
|
||||
this.visNodeMap = {};
|
||||
|
@ -91,6 +92,10 @@ GitVisuals.prototype.assignGitEngine = function(gitEngine) {
|
|||
this.deferFlush();
|
||||
};
|
||||
|
||||
GitVisuals.prototype.getVisualization = function() {
|
||||
return this.visualization;
|
||||
};
|
||||
|
||||
GitVisuals.prototype.initHeadBranch = function() {
|
||||
// it's unfortaunte we have to do this, but the head branch
|
||||
// is an edge case because it's not part of a collection so
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue