@lumina-study/blocks-graph
Version:
Framework-agnostic Web Component for visualizing Lumina Study block schemas
16 lines • 648 B
TypeScript
import type { BlockGraph } from '../types/block-graph.js';
import type { PositionedBlock } from '../types/positioned-block.js';
import type { RendererConfig } from './renderer-config.js';
export declare class GraphRenderer {
private config;
constructor(config?: Partial<RendererConfig>);
updateConfig(config: Partial<RendererConfig>): void;
private calculateConnectionPoints;
private renderEdges;
private createBlockRect;
private createBlockText;
private renderBlocks;
private calculateViewBox;
render(graph: BlockGraph, positioned: PositionedBlock[]): SVGSVGElement;
}
//# sourceMappingURL=renderer.d.ts.map