Files
lan-manager/web/node_modules/@antv/g-base/lib/util/box.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

25 lines
745 B
JavaScript

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.intersectBBox = exports.createBBox = void 0;
function createBBox(x, y, width, height) {
return {
x: x,
y: y,
width: width,
height: height,
minX: x,
minY: y,
maxX: x + width,
maxY: y + height,
};
}
exports.createBBox = createBBox;
function intersectBBox(box1, box2) {
var minX = Math.max(box1.minX, box2.minX);
var minY = Math.max(box1.minY, box2.minY);
var maxX = Math.min(box1.maxX, box2.maxX);
var maxY = Math.min(box1.maxY, box2.maxY);
return createBBox(minX, minY, maxX - minX, maxY - minY);
}
exports.intersectBBox = intersectBBox;
//# sourceMappingURL=box.js.map