RadialGradient.js 570 B

12345678910111213141516
  1. import { __extends } from "tslib";
  2. import Gradient from './Gradient.js';
  3. var 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));
  16. export default RadialGradient;