/** * Canvas drawing for the graph-render tool. Takes a laid-out graph and * produces a PNG buffer. * * Visual contract: * - Background matches the /graph page's surface colour (#FAFAF8). * - Node fill comes from platform/lib/graph-style's resolveNodeColour — * identical hue to the live page for the same labels. * - Node label is pickShortLabel from the same shared lib, rendered * below the node circle in a sans-serif fallback. Exact webfont match * is filed as a follow-up. * - Edges are thin grey lines with a small arrowhead. Edge type labels * are intentionally omitted — they crowd the canvas at high node * counts and the operator can drill into the live page if they need * them. */ import type { LayoutResult, LayoutNodeOut } from "./layout.js"; export interface DrawNode extends LayoutNodeOut { properties: Record; } export interface DrawInput { layout: LayoutResult; nodeProperties: Record>; width: number; height: number; } export declare function drawGraph(input: DrawInput): Buffer; //# sourceMappingURL=draw.d.ts.map