12345678910111213141516171819202122232425262728293031323334 |
- "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.SLinearGradient = void 0;
- var _1 = require("./");
- var SLinearGradient = (function (_super) {
- __extends(SLinearGradient, _super);
- function SLinearGradient(x1, y1, x2, y2) {
- var _this = _super.call(this) || this;
- if (x1 instanceof _1.SPoint && y1 instanceof _1.SPoint) {
- _this.start = new _1.SPoint(x1);
- _this.end = new _1.SPoint(y1);
- }
- else {
- _this.start = new _1.SPoint(x1, y1);
- _this.end = new _1.SPoint(x2, y2);
- }
- return _this;
- }
- return SLinearGradient;
- }(_1.SGradient));
- exports.SLinearGradient = SLinearGradient;
|