Files
lan-manager/web/node_modules/@antv/path-util/lib/rect-path.js
openclaw 0a5f6a8047 Initial commit: Lan-manager project code
- Go backend (server/)
- Frontend (web/, server/static/)
- Database and deployment files
- Scripts and docs

Co-Authored-By: 狸花猫/Claude-Qwen3.6-Plus 🐾
2026-04-20 00:52:58 +08:00

28 lines
738 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
function rectPath(x, y, w, h, r) {
if (r) {
return [
['M', +x + (+r), y],
['l', w - r * 2, 0],
['a', r, r, 0, 0, 1, r, r],
['l', 0, h - r * 2],
['a', r, r, 0, 0, 1, -r, r],
['l', r * 2 - w, 0],
['a', r, r, 0, 0, 1, -r, -r],
['l', 0, r * 2 - h],
['a', r, r, 0, 0, 1, r, -r],
['z'],
];
}
return [
['M', x, y],
['l', w, 0],
['l', 0, h],
['l', -w, 0],
['z'],
];
// res.parsePathArray = parsePathArray;
}
exports.default = rectPath;
//# sourceMappingURL=rect-path.js.map