New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-virtualized-sticky-tree

Package Overview
Dependencies
Maintainers
1
Versions
71
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-virtualized-sticky-tree - npm Package Compare versions

Comparing version 2.0.9 to 2.0.10

60

dist/commonjs/StickyTree.js

@@ -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 @@ *

2

package.json
{
"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",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc