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

50 lines
1.8 KiB
React

// Metro module 8610 (f8611).
import _classCallCheck from "./_classCallCheck";
import _createClass from "./_createClass";
import _possibleConstructorReturn from "./_possibleConstructorReturn";
import _getPrototypeOf from "./_getPrototypeOf";
import _inherits from "./_inherits";
import Module8611 from "./Module8611";
import extractViewBox from "./extractViewBox";
import SVGMatrix from "./SVGMatrix";
let Marker;
let env5577 = {};
env5577[6] = function _isNativeReflectConstruct() {
let c16669_0;
try {
c16669_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
} catch ($e) {}
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
return !!c16669_0;
};
env5577[6] = _isNativeReflectConstruct2;
return _isNativeReflectConstruct2();
};
Marker = function Marker() {
_classCallCheck(this, Marker);
const r8 = _getPrototypeOf(Marker);
return _possibleConstructorReturn(this, (0, env5577[6])() ? Reflect.construct(r8, arguments, _getPrototypeOf(this).constructor) : r8.apply(this, arguments));
};
_inherits(Marker, SVGMatrix);
const r37 = _createClass(Marker, [{
key: "render",
value: function render() {
const props = this.props;
const { id, viewBox, preserveAspectRatio, refX, refY, markerUnits, orient, markerWidth, markerHeight, children } = props;
return <Module8611 ref={(a0) => this.refMethod(a0)} name={id} refX={refX} refY={refY} markerUnits={markerUnits} orient={String(orient)} markerWidth={markerWidth} markerHeight={markerHeight} {...extractViewBox({
viewBox,
preserveAspectRatio
})}>{children}</Module8611>;
}
}]);
r37.displayName = "Marker";
r37.defaultProps = {
refX: 0,
refY: 0,
orient: "0",
markerWidth: 3,
markerHeight: 3,
markerUnits: "strokeWidth"
};
export default r37;