UNPKG

@alpernative/tree

Version:

[`@alpernative/tree`](https://www.npmjs.com/package/@alpernative/tree) is a high-performance, customizable tree component for React. It provides a wide range of features, including virtualization, drag-and-drop, and nested drag-and-drop support.

10 lines (9 loc) 593 B
import { Path } from '../types'; export declare const isSamePath: (a: Path, b: Path) => boolean; export declare const hasSameParent: (a: Path, b: Path) => boolean; export declare const getParentPath: (child: Path) => Path; export declare const isTopOfSubtree: (belowPath: Path, abovePath?: Path) => boolean; export declare const getIndexAmongSiblings: (path: Path) => number; export declare const getPathOnLevel: (path: Path, level: number) => Path; export declare const moveAfterPath: (after: Path, from: Path) => Path; export declare const isLowerSibling: (a: Path, other: Path) => boolean;