import { calculateAutoWaypoints } from "../geometry.js";
const defaultEdgeRouter = {
    route (req) {
        return req.edges.map((edge)=>{
            const points = calculateAutoWaypoints(edge.source.x, edge.source.y, edge.source.position, edge.target.x, edge.target.y, edge.target.position);
            return {
                edgeId: edge.edgeId,
                waypoints: points.map((p, i)=>({
                        id: `${edge.edgeId}-r${i}`,
                        x: p.x,
                        y: p.y
                    }))
            };
        });
    }
};
export { defaultEdgeRouter };
