UNPKG

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