add jsdoc to mindplot module

--HG--
branch : mindplot_jsdoc
This commit is contained in:
Christina Korger
2015-03-23 09:25:54 +01:00
parent a4da6fb7cd
commit c298732f64
46 changed files with 1524 additions and 108 deletions

View File

@@ -16,9 +16,18 @@
* limitations under the License.
*/
mindplot.layout.AbstractBasicSorter = new Class({
/**
* @class
* @extends mindplot.layout.ChildrenSorterStrategy
*/
mindplot.layout.AbstractBasicSorter = new Class(/** @lends AbstractBasicSorter */{
Extends: mindplot.layout.ChildrenSorterStrategy,
/**
* @param {} treeSet
* @param {} node
* @return the height of a node and its children if existing and not shrunken
*/
computeChildrenIdByHeights: function(treeSet, node) {
var result = {};
this._computeChildrenHeight(treeSet, node, result);
@@ -67,5 +76,15 @@ mindplot.layout.AbstractBasicSorter = new Class({
});
/**
* @constant
* @type {Number}
* @default
*/
mindplot.layout.AbstractBasicSorter.INTERNODE_VERTICAL_PADDING = 5;
/**
* @constant
* @type {Number}
* @default
*/
mindplot.layout.AbstractBasicSorter.INTERNODE_HORIZONTAL_PADDING = 30;