UNPKG

614 BJavaScriptView Raw
1import { __extends } from "tslib";
2import Gradient from './Gradient.js';
3var LinearGradient = (function (_super) {
4 __extends(LinearGradient, _super);
5 function LinearGradient(x, y, x2, y2, colorStops, globalCoord) {
6 var _this = _super.call(this, colorStops) || this;
7 _this.x = x == null ? 0 : x;
8 _this.y = y == null ? 0 : y;
9 _this.x2 = x2 == null ? 1 : x2;
10 _this.y2 = y2 == null ? 0 : y2;
11 _this.type = 'linear';
12 _this.global = globalCoord || false;
13 return _this;
14 }
15 return LinearGradient;
16}(Gradient));
17export default LinearGradient;
18;