react-virtualized-sticky-tree
Advanced tools
Comparing version 2.1.8 to 2.1.9
@@ -205,2 +205,42 @@ 'use strict'; | ||
/** | ||
* Returns the node that appears higher than this node (either a parent, sibling or child of the sibling above). | ||
* @param nodeId The node to get the previous node of. | ||
* @returns {*} | ||
*/ | ||
}, { | ||
key: 'getPreviousNodeId', | ||
value: function () { | ||
function getPreviousNodeId(nodeId) { | ||
var index = this.getNodeIndex(nodeId); | ||
if (index !== -1) { | ||
return this.nodes[index - 1]; | ||
} | ||
return undefined; | ||
} | ||
return getPreviousNodeId; | ||
}() | ||
/** | ||
* Returns the node that appears lower than this node (sibling or sibling of the node's parent). | ||
* @param nodeId The node to get the next node of. | ||
* @returns {*} | ||
*/ | ||
}, { | ||
key: 'getNextNodeId', | ||
value: function () { | ||
function getNextNodeId(nodeId) { | ||
var index = this.getNodeIndex(nodeId); | ||
if (index !== -1) { | ||
return this.nodes[index + 1]; | ||
} | ||
return undefined; | ||
} | ||
return getNextNodeId; | ||
}() | ||
/** | ||
* Returns true if the node is completely visible and is not obscured. | ||
@@ -207,0 +247,0 @@ * This will return false when the node is partially obscured. |
@@ -205,2 +205,42 @@ 'use strict'; | ||
/** | ||
* Returns the node that appears higher than this node (either a parent, sibling or child of the sibling above). | ||
* @param nodeId The node to get the previous node of. | ||
* @returns {*} | ||
*/ | ||
}, { | ||
key: 'getPreviousNodeId', | ||
value: function () { | ||
function getPreviousNodeId(nodeId) { | ||
var index = this.getNodeIndex(nodeId); | ||
if (index !== -1) { | ||
return this.nodes[index - 1]; | ||
} | ||
return undefined; | ||
} | ||
return getPreviousNodeId; | ||
}() | ||
/** | ||
* Returns the node that appears lower than this node (sibling or sibling of the node's parent). | ||
* @param nodeId The node to get the next node of. | ||
* @returns {*} | ||
*/ | ||
}, { | ||
key: 'getNextNodeId', | ||
value: function () { | ||
function getNextNodeId(nodeId) { | ||
var index = this.getNodeIndex(nodeId); | ||
if (index !== -1) { | ||
return this.nodes[index + 1]; | ||
} | ||
return undefined; | ||
} | ||
return getNextNodeId; | ||
}() | ||
/** | ||
* Returns true if the node is completely visible and is not obscured. | ||
@@ -207,0 +247,0 @@ * This will return false when the node is partially obscured. |
{ | ||
"name": "react-virtualized-sticky-tree", | ||
"description": "A React component for efficiently rendering tree like structures with support for position: sticky", | ||
"version": "2.1.8", | ||
"version": "2.1.9", | ||
"author": "Marc McIntyre <marchaos@gmail.com>", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
93694
1866