import { Node } from "./interfaces"; /** * Transforms a graph self loop into an axis-aligned square. * * @param {object} n A graph node with a point (x, y) and a size. * @return {object} A square: two points (x1, y1), (x2, y2) and height. */ export default function selfLoopToSquare(n: Node): { x1: number; y1: number; x2: number; y2: number; height: number; };