21 lines
611 B
TypeScript
21 lines
611 B
TypeScript
|
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>>;
|
||
|
}
|