diff options
Diffstat (limited to 'dist/renderer.d.ts')
| -rw-r--r-- | dist/renderer.d.ts | 12 |
1 files changed, 12 insertions, 0 deletions
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<void>} + */ +export function render(map: ParsedMap, ctx: CanvasRenderingContext2D, stageType: StageType, configuration: tConfiguration): Promise<void>; +export type tConfiguration = import("./configuration.js").tConfiguration; +export type StageType = import("./stage_type.js").StageType; +export type ParsedMap = import("wmap-parser").Map; |