@nodeject/ui-components
Version:
UI library for non-trivial components
46 lines (45 loc) • 1.23 kB
TypeScript
import * as Cy from 'cytoscape';
export declare const toCytoscape: (graph: any) => any;
/**
* Returns a node's previous sibling
* @param node
* @returns {Cy.NodeCollection}
*/
export declare const getPreviousSibling: (node: any) => any;
/**
* Returns a node's next sibling
* @param node
* @returns {Cy.NodeCollection}
*/
export declare const getNextSibling: (node: any) => any;
/**
* Returns the next node in the tree
* @param node
*/
export declare const getNextNode: (node: any) => Cy.NodeCollection | undefined;
/**
* Returns a node's parent's children
* @param node
* @returns {Cy.NodeCollection}
*/
export declare const siblingsAndCallingNode: (node: any) => any;
/**
* Returns true if node has siblings
* @param node
*/
export declare const hasSiblings: (node: any) => boolean;
/**
* Returns true if node has children
* @param node
*/
export declare const hasChildren: (node: any) => boolean;
/**
* Returns true if node has a parent
* @param node
*/
export declare const hasParent: (node: any) => boolean;
/**
* Returns true if node is Org Style, false if it's List Style
* @param node
*/
export declare const isOrgStyle: (node: any | number) => boolean;