UNPKG

@lillallol/outline-pdf-data-structure

Version:

Create a pdf outline data structure from a high level string representation of pdf outline. This data structure can be used to create a real pdf outline.

7 lines (6 loc) 290 B
import type { IOutline } from "../publicApi"; /** * @description It returns the index of the parent of the provided outline node. * It returns `-1` when the provided outline node has zero depth. */ export declare function getIndexOfImmediateParent(outline: IOutline, i: number): number;