import { require_Factory, require_Shape, require_Validators } from "./chunk-HC2KSO22.js"; import { require_Global } from "./chunk-M3JPOOL7.js"; import { __commonJS } from "./chunk-V4OQ3NZ2.js"; // node_modules/konva/lib/shapes/Ring.js var require_Ring = __commonJS({ "node_modules/konva/lib/shapes/Ring.js"(exports) { Object.defineProperty(exports, "__esModule", { value: true }); exports.Ring = void 0; var Factory_1 = require_Factory(); var Shape_1 = require_Shape(); var Validators_1 = require_Validators(); var Global_1 = require_Global(); var PIx2 = Math.PI * 2; var Ring = class extends Shape_1.Shape { _sceneFunc(context) { context.beginPath(); context.arc(0, 0, this.innerRadius(), 0, PIx2, false); context.moveTo(this.outerRadius(), 0); context.arc(0, 0, this.outerRadius(), PIx2, 0, true); context.closePath(); context.fillStrokeShape(this); } getWidth() { return this.outerRadius() * 2; } getHeight() { return this.outerRadius() * 2; } setWidth(width) { this.outerRadius(width / 2); } setHeight(height) { this.outerRadius(height / 2); } }; exports.Ring = Ring; Ring.prototype.className = "Ring"; Ring.prototype._centroid = true; Ring.prototype._attrsAffectingSize = ["innerRadius", "outerRadius"]; (0, Global_1._registerNode)(Ring); Factory_1.Factory.addGetterSetter(Ring, "innerRadius", 0, (0, Validators_1.getNumberValidator)()); Factory_1.Factory.addGetterSetter(Ring, "outerRadius", 0, (0, Validators_1.getNumberValidator)()); } }); export { require_Ring }; //# sourceMappingURL=chunk-D42GQH4N.js.map