56 lines
1.9 KiB
React
56 lines
1.9 KiB
React
// Metro module 8612 (f8613).
|
|
import _classCallCheck from "./_classCallCheck";
|
|
import _createClass from "./_createClass";
|
|
import _possibleConstructorReturn from "./_possibleConstructorReturn";
|
|
import _getPrototypeOf from "./_getPrototypeOf";
|
|
import _inherits from "./_inherits";
|
|
import Module8609 from "./Module8609";
|
|
import * as _Module8613 from "./Module8613";
|
|
import Module8614 from "./Module8614";
|
|
import { withoutXY } from "./extractProps";
|
|
import SVGMatrix from "./SVGMatrix";
|
|
let Mask;
|
|
let env5580 = {};
|
|
env5580[7] = function _isNativeReflectConstruct() {
|
|
let c16670_0;
|
|
try {
|
|
c16670_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
} catch ($e) {}
|
|
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
|
|
return !!c16670_0;
|
|
};
|
|
env5580[7] = _isNativeReflectConstruct2;
|
|
return _isNativeReflectConstruct2();
|
|
};
|
|
Mask = function Mask() {
|
|
_classCallCheck(this, Mask);
|
|
const r8 = _getPrototypeOf(Mask);
|
|
return _possibleConstructorReturn(this, (0, env5580[7])() ? Reflect.construct(r8, arguments, _getPrototypeOf(this).constructor) : r8.apply(this, arguments));
|
|
};
|
|
_inherits(Mask, SVGMatrix);
|
|
const r37 = _createClass(Mask, [{
|
|
key: "render",
|
|
value: function render() {
|
|
const props = this.props;
|
|
const { x: r15, y: r13, width, height, maskUnits, maskContentUnits, children, style } = props;
|
|
const props2 = {
|
|
x: r15,
|
|
y: r13,
|
|
width,
|
|
height,
|
|
maskUnits: maskUnits !== void 0 ? Module8609[maskUnits] : 0,
|
|
maskContentUnits: maskContentUnits !== void 0 ? Module8609[maskContentUnits] : 1,
|
|
maskType: _Module8613.maskType[props?.maskType || style?.maskType || "luminance"]
|
|
};
|
|
return <Module8614 ref={(a0) => this.refMethod(a0)} {...withoutXY(this, props)} {...props2}>{children}</Module8614>;
|
|
}
|
|
}]);
|
|
r37.displayName = "Mask";
|
|
r37.defaultProps = {
|
|
x: "0%",
|
|
y: "0%",
|
|
width: "100%",
|
|
height: "100%"
|
|
};
|
|
export default r37;
|