Add DiagramRenderer type

Co-authored-by: Reda Al Sulais <u.yokozuna@gmail.com>
This commit is contained in:
Sidharth Vinod 2023-11-15 01:02:20 +05:30
parent b6983e4b21
commit 113a400952
No known key found for this signature in database
GPG Key ID: FB5CCD378D3907CD

View File

@ -1,6 +1,6 @@
import type { Diagram } from '../../Diagram.js';
import type { PacketDiagramConfig } from '../../config.type.js';
import type { DrawDefinition, Group, SVG } from '../../diagram-api/types.js';
import type { DiagramRenderer, DrawDefinition, Group, SVG } from '../../diagram-api/types.js';
import { selectSvgElement } from '../../rendering-util/selectSvgElement.js';
import { configureSvgSize } from '../../setupGraphViewbox.js';
import type { PacketDB, Row } from './types.js';
@ -92,4 +92,4 @@ const drawWord = (
}
}
};
export const renderer = { draw };
export const renderer: DiagramRenderer = { draw };