mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-06-27 16:38:50 +02:00
ok, decoupled vis details from git engine. now for big switch away from arbor.js to raphael with my own tree drawing algorithm. deep breath......
This commit is contained in:
parent
cf8e8557f3
commit
f5fcd32815
3 changed files with 28 additions and 7 deletions
|
@ -818,11 +818,12 @@ var Commit = Backbone.Model.extend({
|
|||
},
|
||||
|
||||
addNodeToVisuals: function() {
|
||||
this.set('arborNode', sys.addNode(this.get('id')));
|
||||
var visNode = gitVisuals.addNode(this.get('id'));
|
||||
this.set('visNode', visNode);
|
||||
},
|
||||
|
||||
addEdgeToVisuals: function(parent) {
|
||||
sys.addEdge(this.get('arborNode'), parent.get('arborNode'));
|
||||
gitVisuals.addEdge(this.get('id'), parent.get('id'));
|
||||
},
|
||||
|
||||
initialize: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue