{"size": 1229, "ext": "js", "max_stars_repo_path": "src/LinearGradient.js", "max_stars_repo_name": "rive-app/rive-lottie", "max_stars_repo_stars_event_min_datetime": "2021-05-08T04:19:27.000Z", "max_stars_repo_stars_event_max_datetime": "2021-11-17T12:43:28.000Z", "max_issues_repo_path": "src/LinearGradient.js", "max_issues_repo_name": "rive-app/rive-lottie", "max_issues_repo_issues_event_min_datetime": "2021-06-02T02:24:15.000Z", "max_issues_repo_issues_event_max_datetime": "2022-01-30T22:57:31.000Z", "max_forks_repo_path": "src/LinearGradient.js", "max_forks_repo_name": "rive-app/rive-lottie", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 10, "max_issues_count": 2, "max_forks_count": null, "avg_line_length": 19.203125, "max_line_length": 59, "alphanum_fraction": 0.6509357201}
const ContainerComponent = require('./ContainerComponent');

class LinearGradient extends ContainerComponent {
  get startX() {
    return this._startX;
  }

  get startY() {
    return this._startY;
  }

  get endX() {
    return this._endX;
  }

  get endY() {
    return this._endY;
  }

  get opacity() {
    return this._opacity;
  }

  _setStartX(reader) {
    this._startX = reader.readFloat32();
  }

  _setStartY(reader) {
    this._startY = reader.readFloat32();
  }

  _setEndX(reader) {
    this._endX = reader.readFloat32();
  }

  _setEndY(reader) {
    this._endY = reader.readFloat32();
  }

  _setOpacity(reader) {
    this._opacity = reader.readFloat32();
  }

  _registerPropertyHandlers() {
    super._registerPropertyHandlers();
    this._properties[42] = this._setStartX.bind(this);
    this._properties[33] = this._setStartY.bind(this);
    this._properties[34] = this._setEndX.bind(this);
    this._properties[35] = this._setEndY.bind(this);
    this._properties[46] = this._setOpacity.bind(this);
  }

  _initializeValues() {
    super._initializeValues();
    this._startX = 0;
    this._startY = 0;
    this._endX = 0;
    this._endY = 0;
    this._opacity = 1;
  }
}

module.exports = LinearGradient;
