"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.SGradient = void 0; var _1 = require("./"); var SGradient = (function () { function SGradient() { this.start = new _1.SPoint(); this.end = new _1.SPoint(); this.stopList = []; } Object.defineProperty(SGradient.prototype, "x1", { get: function () { return this.start.x; }, set: function (value) { this.start.x = value; }, enumerable: false, configurable: true }); Object.defineProperty(SGradient.prototype, "y1", { get: function () { return this.start.y; }, set: function (value) { this.start.y = value; }, enumerable: false, configurable: true }); Object.defineProperty(SGradient.prototype, "x2", { get: function () { return this.end.x; }, set: function (value) { this.end.x = value; }, enumerable: false, configurable: true }); Object.defineProperty(SGradient.prototype, "y2", { get: function () { return this.end.y; }, set: function (value) { this.end.y = value; }, enumerable: false, configurable: true }); SGradient.prototype.addColorStop = function (pos, color) { this.stopList.push(new _1.SGradientStop(pos, color)); }; SGradient.prototype.setStart = function (x, y) { this.start.x = x; this.start.y = y; }; SGradient.prototype.setEnd = function (x, y) { this.end.x = x; this.end.y = y; }; return SGradient; }()); exports.SGradient = SGradient;