Files
discord-decomp/_bundle/LinearGradient.jsx
T
2026-11-01 12:12:55 +02:00

44 lines
1.5 KiB
React

// Metro module 8606 (f8607).
import _classCallCheck from "./_classCallCheck";
import _createClass from "./_createClass";
import _possibleConstructorReturn from "./_possibleConstructorReturn";
import _getPrototypeOf from "./_getPrototypeOf";
import _inherits from "./_inherits";
import Module8607 from "./Module8607";
import extractGradient from "./extractGradient";
import SVGMatrix from "./SVGMatrix";
let LinearGradient;
let env5573 = {};
env5573[6] = function _isNativeReflectConstruct() {
let c16667_0;
try {
c16667_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
} catch ($e) {}
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
return !!c16667_0;
};
env5573[6] = _isNativeReflectConstruct2;
return _isNativeReflectConstruct2();
};
LinearGradient = function LinearGradient() {
_classCallCheck(this, LinearGradient);
const r8 = _getPrototypeOf(LinearGradient);
return _possibleConstructorReturn(this, (0, env5573[6])() ? Reflect.construct(r8, arguments, _getPrototypeOf(this).constructor) : r8.apply(this, arguments));
};
_inherits(LinearGradient, SVGMatrix);
const r37 = _createClass(LinearGradient, [{
key: "render",
value: function render() {
const props = this.props;
return <Module8607 ref={(a0) => this.refMethod(a0)} x1={props.x1} y1={props.y1} x2={props.x2} y2={props.y2} {...extractGradient(props, this)} />;
}
}]);
r37.displayName = "LinearGradient";
r37.defaultProps = {
x1: "0%",
y1: "0%",
x2: "100%",
y2: "0%"
};
export default r37;