const fs = require("fs") const { round, floor, ceil } = Math let output = {} let mode, name, x, y, w, h, cx, cy, rx, ry function flush() { if (mode === 'circle') { output[name] = [ cx, cy ] } x = y = w = h = cx = cy = rx = ry = 0 name = null } for (let line of fs.readFileSync("tools/borders.svg", "utf-8").split("\n")) { line = line.trim() if (line.startsWith("