[Origin] visualization commands fall through to origin as well

This commit is contained in:
Peter Cottle 2013-05-26 17:04:22 -07:00
parent 91f0e13132
commit 6641417422
4 changed files with 102 additions and 18 deletions

View file

@ -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() {