26 lines
385 B
TypeScript
26 lines
385 B
TypeScript
export interface FlowNode {
|
|
id: string
|
|
label?: string
|
|
color?: string
|
|
}
|
|
|
|
export interface FlowLink {
|
|
source: string
|
|
target: string
|
|
value: number
|
|
color?: string
|
|
}
|
|
|
|
export interface FlowData {
|
|
nodes: FlowNode[]
|
|
links: FlowLink[]
|
|
}
|
|
|
|
export interface SandboxNode {
|
|
id: string
|
|
type: 'source' | 'pipe' | 'sink'
|
|
label: string
|
|
flowRate?: number
|
|
fillLevel?: number
|
|
}
|