nope/resources/ui/graph/interfaces/IBasicTemplate.ts

21 lines
611 B
TypeScript
Raw Normal View History

2020-10-29 18:20:42 +00:00
import { IBaseEdgeOptions } from "./IBaseEdgeOptions";
import { IBaseNodeOptions } from "./IBaseNodeOptions";
export interface IBasicTemplate<N,E> {
type: 'element'
/**
* Array of Nodes, containing all
* selected Nodes (idx 0 = the one
* which will be added first and will
* be edited, by the Edit-Pages)
* and Subnodes of the Node.
*/
nodes: Array<IBaseNodeOptions<N>>;
/**
* All Edges which are Selected.
* (idx 0 = the one which will be
* added first and will be edited,
* by the Edit-Pages)
*/
edges: Array<IBaseEdgeOptions<E>>;
}