2023-07-07 13:12:18 +02:00
|
|
|
import type { BaseDiagramConfig } from '../../config.type.js';
|
|
|
|
|
|
|
|
export interface BlockConfig extends BaseDiagramConfig {
|
|
|
|
padding?: number;
|
|
|
|
}
|
2023-08-28 12:51:49 +02:00
|
|
|
|
|
|
|
export type BlockType =
|
|
|
|
| 'round'
|
|
|
|
| 'square'
|
|
|
|
| 'diamond'
|
|
|
|
| 'hexagon'
|
|
|
|
| 'odd'
|
|
|
|
| 'lean_right'
|
|
|
|
| 'lean_left'
|
|
|
|
| 'trapezoid'
|
|
|
|
| 'inv_trapezoid'
|
|
|
|
| 'odd_right'
|
|
|
|
| 'circle'
|
|
|
|
| 'ellipse'
|
|
|
|
| 'stadium'
|
|
|
|
| 'subroutine'
|
|
|
|
| 'cylinder'
|
|
|
|
| 'group'
|
|
|
|
| 'doublecircle';
|
|
|
|
|
|
|
|
export interface Block {
|
|
|
|
ID: string;
|
|
|
|
label?: string;
|
|
|
|
parent?: Block;
|
|
|
|
type?: BlockType;
|
|
|
|
children?: Block[];
|
|
|
|
columns?: number; // | TBlockColumnsDefaultValue;
|
|
|
|
}
|
|
|
|
|
|
|
|
export interface Link {
|
|
|
|
source: Block;
|
|
|
|
target: Block;
|
|
|
|
}
|