From 566eb2c9cce799ed8a3becc6d81560f1540eaacf Mon Sep 17 00:00:00 2001 From: Ruben Beltran del Rio Date: Mon, 15 Dec 2025 16:30:22 +0100 Subject: Initial Release --- dist/renderer.d.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 dist/renderer.d.ts (limited to 'dist/renderer.d.ts') diff --git a/dist/renderer.d.ts b/dist/renderer.d.ts new file mode 100644 index 0000000..eb4102a --- /dev/null +++ b/dist/renderer.d.ts @@ -0,0 +1,12 @@ +/** + * Render a parsed Wardley map to a canvas context + * @param {ParsedMap} map - Parsed map object from wmap-parser + * @param {CanvasRenderingContext2D} ctx - Canvas context to render to + * @param {StageType} stageType - The labels to use for each stage in the map. + * @param {tConfiguration} configuration - Configuration object + * @returns {Promise} + */ +export function render(map: ParsedMap, ctx: CanvasRenderingContext2D, stageType: StageType, configuration: tConfiguration): Promise; +export type tConfiguration = import("./configuration.js").tConfiguration; +export type StageType = import("./stage_type.js").StageType; +export type ParsedMap = import("wmap-parser").Map; -- cgit