react-virtualized-sticky-tree
Advanced tools
Comparing version 2.0.9 to 2.0.10
@@ -110,2 +110,3 @@ 'use strict'; | ||
function componentWillMount() { | ||
// TODO: really? | ||
this.recomputeTree(); | ||
@@ -276,2 +277,61 @@ } | ||
/** | ||
* Returns the top of the node with the specified id. | ||
* @param nodeId | ||
*/ | ||
}, { | ||
key: 'getNodeTop', | ||
value: function () { | ||
function getNodeTop(nodeId) { | ||
return this.getIndexTop(this.getNodeIndex(nodeId)); | ||
} | ||
return getNodeTop; | ||
}() | ||
/** | ||
* Returns the top of the node with the specified index. | ||
* @param index | ||
*/ | ||
}, { | ||
key: 'getIndexTop', | ||
value: function () { | ||
function getIndexTop(index) { | ||
return this.nodePosCache[index].top; | ||
} | ||
return getIndexTop; | ||
}() | ||
/** | ||
* Returns the scrollTop of the scrollable element | ||
*/ | ||
}, { | ||
key: 'getScrollTop', | ||
value: function () { | ||
function getScrollTop() { | ||
return this.elem.scrollTop; | ||
} | ||
return getScrollTop; | ||
}() | ||
/** | ||
* Sets the scrollTop position of the scrollable element. | ||
* @param scrollTop | ||
*/ | ||
}, { | ||
key: 'setScrollTop', | ||
value: function () { | ||
function setScrollTop(scrollTop) { | ||
this.elem.scrollTop = scrollTop; | ||
} | ||
return setScrollTop; | ||
}() | ||
/** | ||
* Scrolls the node into view so that it is visible. | ||
@@ -278,0 +338,0 @@ * |
@@ -110,2 +110,3 @@ 'use strict'; | ||
function componentWillMount() { | ||
// TODO: really? | ||
this.recomputeTree(); | ||
@@ -276,2 +277,61 @@ } | ||
/** | ||
* Returns the top of the node with the specified id. | ||
* @param nodeId | ||
*/ | ||
}, { | ||
key: 'getNodeTop', | ||
value: function () { | ||
function getNodeTop(nodeId) { | ||
return this.getIndexTop(this.getNodeIndex(nodeId)); | ||
} | ||
return getNodeTop; | ||
}() | ||
/** | ||
* Returns the top of the node with the specified index. | ||
* @param index | ||
*/ | ||
}, { | ||
key: 'getIndexTop', | ||
value: function () { | ||
function getIndexTop(index) { | ||
return this.nodePosCache[index].top; | ||
} | ||
return getIndexTop; | ||
}() | ||
/** | ||
* Returns the scrollTop of the scrollable element | ||
*/ | ||
}, { | ||
key: 'getScrollTop', | ||
value: function () { | ||
function getScrollTop() { | ||
return this.elem.scrollTop; | ||
} | ||
return getScrollTop; | ||
}() | ||
/** | ||
* Sets the scrollTop position of the scrollable element. | ||
* @param scrollTop | ||
*/ | ||
}, { | ||
key: 'setScrollTop', | ||
value: function () { | ||
function setScrollTop(scrollTop) { | ||
this.elem.scrollTop = scrollTop; | ||
} | ||
return setScrollTop; | ||
}() | ||
/** | ||
* Scrolls the node into view so that it is visible. | ||
@@ -278,0 +338,0 @@ * |
{ | ||
"name": "react-virtualized-sticky-tree", | ||
"description": "A React component for efficiently rendering tree like structures with support for position: sticky", | ||
"version": "2.0.9", | ||
"version": "2.0.10", | ||
"author": "Marc McIntyre <marchaos@gmail.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
79782
1588