1 | import type { DiagramDB } from '../../diagram-api/types.js';
|
2 | import type { BlockConfig, Block, ClassDef } from './blockTypes.js';
|
3 |
|
4 |
|
5 |
|
6 |
|
7 |
|
8 |
|
9 |
|
10 | export declare const addStyleClass: (id: string, styleAttributes?: string) => void;
|
11 |
|
12 |
|
13 |
|
14 |
|
15 |
|
16 |
|
17 |
|
18 | export declare const addStyle2Node: (id: string, styles?: string) => void;
|
19 |
|
20 |
|
21 |
|
22 |
|
23 |
|
24 |
|
25 |
|
26 |
|
27 | export declare const setCssClass: (itemIds: string, cssClassName: string) => void;
|
28 | export declare function typeStr2Type(typeStr: string): "circle" | "round" | "square" | "diamond" | "hexagon" | "rect_left_inv_arrow" | "lean_right" | "lean_left" | "trapezoid" | "inv_trapezoid" | "stadium" | "subroutine" | "cylinder" | "na" | "block_arrow" | "doublecircle";
|
29 | export declare function edgeTypeStr2Type(typeStr: string): string;
|
30 | export declare function edgeStrToEdgeData(typeStr: string): string;
|
31 | export declare const generateId: () => string;
|
32 |
|
33 |
|
34 |
|
35 | export declare const getClasses: () => Record<string, ClassDef>;
|
36 | declare const db: {
|
37 | readonly getConfig: () => BlockConfig | undefined;
|
38 | readonly typeStr2Type: typeof typeStr2Type;
|
39 | readonly edgeTypeStr2Type: typeof edgeTypeStr2Type;
|
40 | readonly edgeStrToEdgeData: typeof edgeStrToEdgeData;
|
41 | readonly getLogger: () => Console;
|
42 | readonly getBlocksFlat: () => Block[];
|
43 | readonly getBlocks: () => Block[];
|
44 | readonly getEdges: () => Block[];
|
45 | readonly setHierarchy: (block: Block[]) => void;
|
46 | readonly getBlock: (id: string) => Block;
|
47 | readonly setBlock: (block: Block) => void;
|
48 | readonly getColumns: (blockId: string) => number;
|
49 | readonly getClasses: () => Record<string, ClassDef>;
|
50 | readonly clear: () => void;
|
51 | readonly generateId: () => string;
|
52 | };
|
53 | export type BlockDB = typeof db & DiagramDB;
|
54 | export default db;
|