Free positioning

This commit is contained in:
Gonzalo Bellver
2012-01-17 17:45:51 -03:00
parent ea89dff202
commit 61eca9f932
6 changed files with 104 additions and 98 deletions

View File

@@ -40,7 +40,6 @@ mindplot.layout.Node = new Class({
},
isFree: function() {
var result = this._getProperty('free');
return this._getProperty('free');
},
@@ -48,6 +47,10 @@ mindplot.layout.Node = new Class({
return this._isPropertyChanged('free');
},
hasFreeDisplacementChanged: function() {
return this._isPropertyChanged('freeDisplacement');
},
setShrunken: function(value) {
this._setProperty('shrink', value);
},
@@ -75,6 +78,13 @@ mindplot.layout.Node = new Class({
}
},
resetFreeState : function() {
var prop = this._properties['freeDisplacement'];
if (prop) {
prop.hasChanged = false;
}
},
getOrder: function() {
return this._getProperty('order');
},