UNPKG

1.2 kBTypeScriptView Raw
1export type { BlockDiagramConfig as BlockConfig } from '../../config.type.js';
2export type BlockType = 'na' | 'column-setting' | 'edge' | 'round' | 'block_arrow' | 'space' | 'square' | 'diamond' | 'hexagon' | 'odd' | 'lean_right' | 'lean_left' | 'trapezoid' | 'inv_trapezoid' | 'rect_left_inv_arrow' | 'odd_right' | 'circle' | 'ellipse' | 'stadium' | 'subroutine' | 'cylinder' | 'group' | 'doublecircle' | 'classDef' | 'applyClass' | 'applyStyles' | 'composite';
3export interface Block {
4 start?: string;
5 end?: string;
6 arrowTypeEnd?: string;
7 arrowTypeStart?: string;
8 width?: number;
9 id: string;
10 label?: string;
11 intersect?: any;
12 parent?: Block;
13 type?: BlockType;
14 children: Block[];
15 size?: {
16 width: number;
17 height: number;
18 x: number;
19 y: number;
20 };
21 node?: any;
22 columns?: number;
23 classes?: string[];
24 directions?: string[];
25 css?: string;
26 styleClass?: string;
27 styles?: string[];
28 stylesStr?: string;
29 widthInColumns?: number;
30}
31export interface ClassDef {
32 id: string;
33 textStyles: string[];
34 styles: string[];
35}
36export type Direction = 'up' | 'down' | 'left' | 'right' | 'x' | 'y';