🚀 Big News: Socket Acquires Coana to Bring Reachability Analysis to Every Appsec Team.Learn more
Socket
Book a DemoInstallSign in
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

to
3.0.0-beta8

6

lib/src/StickyTree.d.ts

@@ -20,11 +20,13 @@ import React from 'react';

node: TNodeType;
meta?: any;
}
export interface EnhancedStickyTreeLeafNode<TNodeType extends TreeNode = TreeNode> extends Required<StickyTreeNode<TNodeType>> {
id: NodeId;
top: number;
depth: number;
index: number;
top: number;
totalHeight: number;
isFirstChild: boolean;
isLastChild: boolean;
totalHeight: number;
isLeafNode: boolean;
}

@@ -31,0 +33,0 @@ export interface EnhancedStickyTreeParentNode<TNodeType extends TreeNode = TreeNode> extends EnhancedStickyTreeLeafNode<TNodeType> {

@@ -83,2 +83,4 @@ "use strict";

top: context.totalHeight,
isLeafNode: false,
meta: stickyNode.meta,
parentIndex,

@@ -127,2 +129,5 @@ parentInfo: enhancedParentStickyNode,

}
else {
enhancedStickyNode.isLeafNode = true;
}
enhancedStickyNode.totalHeight = context.totalHeight - enhancedStickyNode.top;

@@ -129,0 +134,0 @@ return nodes;

{
"name": "react-virtualized-sticky-tree",
"description": "A React component for efficiently rendering tree like structures with support for position: sticky",
"version": "3.0.0-beta7",
"version": "3.0.0-beta8",
"author": "Marc McIntyre <marchaos@gmail.com>",

@@ -6,0 +6,0 @@ "license": "MIT",