62 lines
2.2 KiB
JavaScript
62 lines
2.2 KiB
JavaScript
// Metro module 5327 (f5328).
|
|
import _classCallCheck from "./_classCallCheck";
|
|
import _createClass from "./_createClass";
|
|
import _possibleConstructorReturn from "./_possibleConstructorReturn";
|
|
import _getPrototypeOf from "./_getPrototypeOf";
|
|
import _get from "./_get";
|
|
import _inherits from "./_inherits";
|
|
import { ContinousBaseGesture } from "./Gesture";
|
|
let changeEventCalculator;
|
|
let PinchGesture;
|
|
let env3227 = {};
|
|
env3227[4] = function _isNativeReflectConstruct() {
|
|
let c14801_0;
|
|
try {
|
|
c14801_0 = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function() {}));
|
|
} catch ($e) {}
|
|
const _isNativeReflectConstruct2 = function _isNativeReflectConstruct() {
|
|
return !!c14801_0;
|
|
};
|
|
env3227[4] = _isNativeReflectConstruct2;
|
|
return _isNativeReflectConstruct2();
|
|
};
|
|
const changeEventCalculator2 = function changeEventCalculator(a0, a1) {
|
|
return {
|
|
...a0,
|
|
...a1 === void 0 ? {
|
|
scaleChange: a0.scale
|
|
} : {
|
|
scaleChange: a0.scale / a1.scale
|
|
}
|
|
};
|
|
};
|
|
changeEventCalculator2.__closure = {};
|
|
changeEventCalculator2.__workletHash = 9876979738005;
|
|
changeEventCalculator2.__initData = {
|
|
code: "function changeEventCalculator_Pnpm_pinchGestureTs1(current,previous){let changePayload;if(previous===undefined){changePayload={scaleChange:current.scale};}else{changePayload={scaleChange:current.scale/previous.scale};}return{...current,...changePayload};}"
|
|
};
|
|
changeEventCalculator = changeEventCalculator2;
|
|
PinchGesture = function PinchGesture() {
|
|
_classCallCheck(this, PinchGesture);
|
|
const r8 = _getPrototypeOf(PinchGesture);
|
|
const r20 = _possibleConstructorReturn(this, (0, env3227[4])() ? Reflect.construct(r8, [], _getPrototypeOf(this).constructor) : r8.apply(this, void 0));
|
|
r20.handlerName = "PinchGestureHandler";
|
|
return r20;
|
|
};
|
|
_inherits(PinchGesture, ContinousBaseGesture);
|
|
exports.PinchGesture = _createClass(PinchGesture, [{
|
|
key: "onChange",
|
|
value: function onChange(a0) {
|
|
this.handlers.changeEventCalculator = changeEventCalculator;
|
|
const _this = this;
|
|
let r13 = _get(_getPrototypeOf(PinchGesture.prototype), "onChange", this);
|
|
let c25423_1 = r13;
|
|
if (typeof r13 === "function") {
|
|
r13 = function(a0) {
|
|
return c25423_1.apply(_this, a0);
|
|
};
|
|
}
|
|
return r13([a0]);
|
|
}
|
|
}]);
|