"use strict"; var __extends = (this && this.__extends) || (function () { var extendStatics = function (d, b) { extendStatics = Object.setPrototypeOf || ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; return extendStatics(d, b); }; return function (d, b) { extendStatics(d, b); function __() { this.constructor = d; } d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); }; })(); Object.defineProperty(exports, "__esModule", { value: true }); exports.SRadialGradient = void 0; var _1 = require("./"); var SRadialGradient = (function (_super) { __extends(SRadialGradient, _super); function SRadialGradient(x1, y1, r1, x2, y2, r2) { var _this = _super.call(this) || this; if (x1 instanceof _1.SPoint && r1 instanceof _1.SPoint) { _this.start = new _1.SPoint(x1); _this.end = new _1.SPoint(r1); _this.r1 = y1; _this.r2 = x2; } else { _this.start = new _1.SPoint(x1, y1); _this.end = new _1.SPoint(x2, y2); _this.r1 = r1; _this.r2 = r2; } return _this; } return SRadialGradient; }(_1.SGradient)); exports.SRadialGradient = SRadialGradient;