ellipse.js 370 B

1234567891011121314
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. function default_1(shape) {
  4. var attrs = shape.attr();
  5. var x = attrs.x, y = attrs.y, rx = attrs.rx, ry = attrs.ry;
  6. return {
  7. x: x - rx,
  8. y: y - ry,
  9. width: rx * 2,
  10. height: ry * 2,
  11. };
  12. }
  13. exports.default = default_1;
  14. //# sourceMappingURL=ellipse.js.map