@antv/g-base
Version:
A common util collection for antv projects
14 lines • 370 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
function default_1(shape) {
var attrs = shape.attr();
var x = attrs.x, y = attrs.y, rx = attrs.rx, ry = attrs.ry;
return {
x: x - rx,
y: y - ry,
width: rx * 2,
height: ry * 2,
};
}
exports.default = default_1;
//# sourceMappingURL=ellipse.js.map