package com.cameleer.server.core.diagram;

import java.util.List;

/**
 * Complete diagram layout with positioned nodes and edges.
 * <p>
 * This is the JSON response format for the layout endpoint.
 *
 * @param width  total diagram width
 * @param height total diagram height
 * @param nodes  positioned nodes with coordinates
 * @param edges  positioned edges with waypoints
 */
public record DiagramLayout(
        double width,
        double height,
        List<PositionedNode> nodes,
        List<PositionedEdge> edges
) {
}
