mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-07-16 01:24:25 +02:00
[Origin] visualization commands fall through to origin as well
This commit is contained in:
parent
91f0e13132
commit
6641417422
4 changed files with 102 additions and 18 deletions
|
@ -60,13 +60,12 @@ var VisNode = VisBase.extend({
|
|||
this.set('depth', Math.max(this.get('depth') || 0, depth));
|
||||
},
|
||||
|
||||
setDepthBasedOn: function(depthIncrement) {
|
||||
setDepthBasedOn: function(depthIncrement, offset) {
|
||||
if (this.get('depth') === undefined) {
|
||||
debugger;
|
||||
throw new Error('no depth yet!');
|
||||
}
|
||||
var pos = this.get('pos');
|
||||
pos.y = this.get('depth') * depthIncrement;
|
||||
pos.y = this.get('depth') * depthIncrement + offset;
|
||||
},
|
||||
|
||||
getMaxWidthScaled: function() {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue