Edit File by line

Deprecated: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in /home/sportsfever/public_html/filemanger/function.php on line 93

Warning: Undefined array key "page_file_edit_line" in /home/sportsfever/public_html/filemanger/edit_text_line.php on line 32
/home/sportsfe.../httpdocs/clone/wp-inclu.../js/dist
File: components.js
this.timeoutStore.add('startPointerDrag', this.startPointerDrag.bind(this), this.config.preventScrollDelay, event);
[29500] Fix | Delete
}
[29501] Fix | Delete
setupDelayTrigger(event) {
[29502] Fix | Delete
this.state._delayed = true;
[29503] Fix | Delete
this.timeoutStore.add('dragDelay', () => {
[29504] Fix | Delete
this.state._step = [0, 0];
[29505] Fix | Delete
this.startPointerDrag(event);
[29506] Fix | Delete
}, this.config.delay);
[29507] Fix | Delete
}
[29508] Fix | Delete
keyDown(event) {
[29509] Fix | Delete
const deltaFn = KEYS_DELTA_MAP[event.key];
[29510] Fix | Delete
if (deltaFn) {
[29511] Fix | Delete
const state = this.state;
[29512] Fix | Delete
const factor = event.shiftKey ? 10 : event.altKey ? 0.1 : 1;
[29513] Fix | Delete
this.start(event);
[29514] Fix | Delete
state._delta = deltaFn(this.config.keyboardDisplacement, factor);
[29515] Fix | Delete
state._keyboardActive = true;
[29516] Fix | Delete
V.addTo(state._movement, state._delta);
[29517] Fix | Delete
this.compute(event);
[29518] Fix | Delete
this.emit();
[29519] Fix | Delete
}
[29520] Fix | Delete
}
[29521] Fix | Delete
keyUp(event) {
[29522] Fix | Delete
if (!(event.key in KEYS_DELTA_MAP)) return;
[29523] Fix | Delete
this.state._keyboardActive = false;
[29524] Fix | Delete
this.setActive();
[29525] Fix | Delete
this.compute(event);
[29526] Fix | Delete
this.emit();
[29527] Fix | Delete
}
[29528] Fix | Delete
bind(bindFunction) {
[29529] Fix | Delete
const device = this.config.device;
[29530] Fix | Delete
bindFunction(device, 'start', this.pointerDown.bind(this));
[29531] Fix | Delete
if (this.config.pointerCapture) {
[29532] Fix | Delete
bindFunction(device, 'change', this.pointerMove.bind(this));
[29533] Fix | Delete
bindFunction(device, 'end', this.pointerUp.bind(this));
[29534] Fix | Delete
bindFunction(device, 'cancel', this.pointerUp.bind(this));
[29535] Fix | Delete
bindFunction('lostPointerCapture', '', this.pointerUp.bind(this));
[29536] Fix | Delete
}
[29537] Fix | Delete
if (this.config.keys) {
[29538] Fix | Delete
bindFunction('key', 'down', this.keyDown.bind(this));
[29539] Fix | Delete
bindFunction('key', 'up', this.keyUp.bind(this));
[29540] Fix | Delete
}
[29541] Fix | Delete
if (this.config.filterTaps) {
[29542] Fix | Delete
bindFunction('click', '', this.pointerClick.bind(this), {
[29543] Fix | Delete
capture: true,
[29544] Fix | Delete
passive: false
[29545] Fix | Delete
});
[29546] Fix | Delete
}
[29547] Fix | Delete
}
[29548] Fix | Delete
}
[29549] Fix | Delete
function persistEvent(event) {
[29550] Fix | Delete
'persist' in event && typeof event.persist === 'function' && event.persist();
[29551] Fix | Delete
}
[29552] Fix | Delete
[29553] Fix | Delete
const actions_fe213e88_esm_isBrowser = typeof window !== 'undefined' && window.document && window.document.createElement;
[29554] Fix | Delete
function supportsTouchEvents() {
[29555] Fix | Delete
return actions_fe213e88_esm_isBrowser && 'ontouchstart' in window;
[29556] Fix | Delete
}
[29557] Fix | Delete
function isTouchScreen() {
[29558] Fix | Delete
return supportsTouchEvents() || actions_fe213e88_esm_isBrowser && window.navigator.maxTouchPoints > 1;
[29559] Fix | Delete
}
[29560] Fix | Delete
function supportsPointerEvents() {
[29561] Fix | Delete
return actions_fe213e88_esm_isBrowser && 'onpointerdown' in window;
[29562] Fix | Delete
}
[29563] Fix | Delete
function supportsPointerLock() {
[29564] Fix | Delete
return actions_fe213e88_esm_isBrowser && 'exitPointerLock' in window.document;
[29565] Fix | Delete
}
[29566] Fix | Delete
function supportsGestureEvents() {
[29567] Fix | Delete
try {
[29568] Fix | Delete
return 'constructor' in GestureEvent;
[29569] Fix | Delete
} catch (e) {
[29570] Fix | Delete
return false;
[29571] Fix | Delete
}
[29572] Fix | Delete
}
[29573] Fix | Delete
const SUPPORT = {
[29574] Fix | Delete
isBrowser: actions_fe213e88_esm_isBrowser,
[29575] Fix | Delete
gesture: supportsGestureEvents(),
[29576] Fix | Delete
touch: supportsTouchEvents(),
[29577] Fix | Delete
touchscreen: isTouchScreen(),
[29578] Fix | Delete
pointer: supportsPointerEvents(),
[29579] Fix | Delete
pointerLock: supportsPointerLock()
[29580] Fix | Delete
};
[29581] Fix | Delete
[29582] Fix | Delete
const DEFAULT_PREVENT_SCROLL_DELAY = 250;
[29583] Fix | Delete
const DEFAULT_DRAG_DELAY = 180;
[29584] Fix | Delete
const DEFAULT_SWIPE_VELOCITY = 0.5;
[29585] Fix | Delete
const DEFAULT_SWIPE_DISTANCE = 50;
[29586] Fix | Delete
const DEFAULT_SWIPE_DURATION = 250;
[29587] Fix | Delete
const DEFAULT_KEYBOARD_DISPLACEMENT = 10;
[29588] Fix | Delete
const DEFAULT_DRAG_AXIS_THRESHOLD = {
[29589] Fix | Delete
mouse: 0,
[29590] Fix | Delete
touch: 0,
[29591] Fix | Delete
pen: 8
[29592] Fix | Delete
};
[29593] Fix | Delete
const dragConfigResolver = _objectSpread2(_objectSpread2({}, coordinatesConfigResolver), {}, {
[29594] Fix | Delete
device(_v, _k, {
[29595] Fix | Delete
pointer: {
[29596] Fix | Delete
touch = false,
[29597] Fix | Delete
lock = false,
[29598] Fix | Delete
mouse = false
[29599] Fix | Delete
} = {}
[29600] Fix | Delete
}) {
[29601] Fix | Delete
this.pointerLock = lock && SUPPORT.pointerLock;
[29602] Fix | Delete
if (SUPPORT.touch && touch) return 'touch';
[29603] Fix | Delete
if (this.pointerLock) return 'mouse';
[29604] Fix | Delete
if (SUPPORT.pointer && !mouse) return 'pointer';
[29605] Fix | Delete
if (SUPPORT.touch) return 'touch';
[29606] Fix | Delete
return 'mouse';
[29607] Fix | Delete
},
[29608] Fix | Delete
preventScrollAxis(value, _k, {
[29609] Fix | Delete
preventScroll
[29610] Fix | Delete
}) {
[29611] Fix | Delete
this.preventScrollDelay = typeof preventScroll === 'number' ? preventScroll : preventScroll || preventScroll === undefined && value ? DEFAULT_PREVENT_SCROLL_DELAY : undefined;
[29612] Fix | Delete
if (!SUPPORT.touchscreen || preventScroll === false) return undefined;
[29613] Fix | Delete
return value ? value : preventScroll !== undefined ? 'y' : undefined;
[29614] Fix | Delete
},
[29615] Fix | Delete
pointerCapture(_v, _k, {
[29616] Fix | Delete
pointer: {
[29617] Fix | Delete
capture = true,
[29618] Fix | Delete
buttons = 1,
[29619] Fix | Delete
keys = true
[29620] Fix | Delete
} = {}
[29621] Fix | Delete
}) {
[29622] Fix | Delete
this.pointerButtons = buttons;
[29623] Fix | Delete
this.keys = keys;
[29624] Fix | Delete
return !this.pointerLock && this.device === 'pointer' && capture;
[29625] Fix | Delete
},
[29626] Fix | Delete
threshold(value, _k, {
[29627] Fix | Delete
filterTaps = false,
[29628] Fix | Delete
tapsThreshold = 3,
[29629] Fix | Delete
axis = undefined
[29630] Fix | Delete
}) {
[29631] Fix | Delete
const threshold = V.toVector(value, filterTaps ? tapsThreshold : axis ? 1 : 0);
[29632] Fix | Delete
this.filterTaps = filterTaps;
[29633] Fix | Delete
this.tapsThreshold = tapsThreshold;
[29634] Fix | Delete
return threshold;
[29635] Fix | Delete
},
[29636] Fix | Delete
swipe({
[29637] Fix | Delete
velocity = DEFAULT_SWIPE_VELOCITY,
[29638] Fix | Delete
distance = DEFAULT_SWIPE_DISTANCE,
[29639] Fix | Delete
duration = DEFAULT_SWIPE_DURATION
[29640] Fix | Delete
} = {}) {
[29641] Fix | Delete
return {
[29642] Fix | Delete
velocity: this.transform(V.toVector(velocity)),
[29643] Fix | Delete
distance: this.transform(V.toVector(distance)),
[29644] Fix | Delete
duration
[29645] Fix | Delete
};
[29646] Fix | Delete
},
[29647] Fix | Delete
delay(value = 0) {
[29648] Fix | Delete
switch (value) {
[29649] Fix | Delete
case true:
[29650] Fix | Delete
return DEFAULT_DRAG_DELAY;
[29651] Fix | Delete
case false:
[29652] Fix | Delete
return 0;
[29653] Fix | Delete
default:
[29654] Fix | Delete
return value;
[29655] Fix | Delete
}
[29656] Fix | Delete
},
[29657] Fix | Delete
axisThreshold(value) {
[29658] Fix | Delete
if (!value) return DEFAULT_DRAG_AXIS_THRESHOLD;
[29659] Fix | Delete
return _objectSpread2(_objectSpread2({}, DEFAULT_DRAG_AXIS_THRESHOLD), value);
[29660] Fix | Delete
},
[29661] Fix | Delete
keyboardDisplacement(value = DEFAULT_KEYBOARD_DISPLACEMENT) {
[29662] Fix | Delete
return value;
[29663] Fix | Delete
}
[29664] Fix | Delete
});
[29665] Fix | Delete
if (false) {}
[29666] Fix | Delete
[29667] Fix | Delete
function clampStateInternalMovementToBounds(state) {
[29668] Fix | Delete
const [ox, oy] = state.overflow;
[29669] Fix | Delete
const [dx, dy] = state._delta;
[29670] Fix | Delete
const [dirx, diry] = state._direction;
[29671] Fix | Delete
if (ox < 0 && dx > 0 && dirx < 0 || ox > 0 && dx < 0 && dirx > 0) {
[29672] Fix | Delete
state._movement[0] = state._movementBound[0];
[29673] Fix | Delete
}
[29674] Fix | Delete
if (oy < 0 && dy > 0 && diry < 0 || oy > 0 && dy < 0 && diry > 0) {
[29675] Fix | Delete
state._movement[1] = state._movementBound[1];
[29676] Fix | Delete
}
[29677] Fix | Delete
}
[29678] Fix | Delete
[29679] Fix | Delete
const SCALE_ANGLE_RATIO_INTENT_DEG = 30;
[29680] Fix | Delete
const PINCH_WHEEL_RATIO = 100;
[29681] Fix | Delete
class PinchEngine extends Engine {
[29682] Fix | Delete
constructor(...args) {
[29683] Fix | Delete
super(...args);
[29684] Fix | Delete
_defineProperty(this, "ingKey", 'pinching');
[29685] Fix | Delete
_defineProperty(this, "aliasKey", 'da');
[29686] Fix | Delete
}
[29687] Fix | Delete
init() {
[29688] Fix | Delete
this.state.offset = [1, 0];
[29689] Fix | Delete
this.state.lastOffset = [1, 0];
[29690] Fix | Delete
this.state._pointerEvents = new Map();
[29691] Fix | Delete
}
[29692] Fix | Delete
reset() {
[29693] Fix | Delete
super.reset();
[29694] Fix | Delete
const state = this.state;
[29695] Fix | Delete
state._touchIds = [];
[29696] Fix | Delete
state.canceled = false;
[29697] Fix | Delete
state.cancel = this.cancel.bind(this);
[29698] Fix | Delete
state.turns = 0;
[29699] Fix | Delete
}
[29700] Fix | Delete
computeOffset() {
[29701] Fix | Delete
const {
[29702] Fix | Delete
type,
[29703] Fix | Delete
movement,
[29704] Fix | Delete
lastOffset
[29705] Fix | Delete
} = this.state;
[29706] Fix | Delete
if (type === 'wheel') {
[29707] Fix | Delete
this.state.offset = V.add(movement, lastOffset);
[29708] Fix | Delete
} else {
[29709] Fix | Delete
this.state.offset = [(1 + movement[0]) * lastOffset[0], movement[1] + lastOffset[1]];
[29710] Fix | Delete
}
[29711] Fix | Delete
}
[29712] Fix | Delete
computeMovement() {
[29713] Fix | Delete
const {
[29714] Fix | Delete
offset,
[29715] Fix | Delete
lastOffset
[29716] Fix | Delete
} = this.state;
[29717] Fix | Delete
this.state.movement = [offset[0] / lastOffset[0], offset[1] - lastOffset[1]];
[29718] Fix | Delete
}
[29719] Fix | Delete
axisIntent() {
[29720] Fix | Delete
const state = this.state;
[29721] Fix | Delete
const [_m0, _m1] = state._movement;
[29722] Fix | Delete
if (!state.axis) {
[29723] Fix | Delete
const axisMovementDifference = Math.abs(_m0) * SCALE_ANGLE_RATIO_INTENT_DEG - Math.abs(_m1);
[29724] Fix | Delete
if (axisMovementDifference < 0) state.axis = 'angle';else if (axisMovementDifference > 0) state.axis = 'scale';
[29725] Fix | Delete
}
[29726] Fix | Delete
}
[29727] Fix | Delete
restrictToAxis(v) {
[29728] Fix | Delete
if (this.config.lockDirection) {
[29729] Fix | Delete
if (this.state.axis === 'scale') v[1] = 0;else if (this.state.axis === 'angle') v[0] = 0;
[29730] Fix | Delete
}
[29731] Fix | Delete
}
[29732] Fix | Delete
cancel() {
[29733] Fix | Delete
const state = this.state;
[29734] Fix | Delete
if (state.canceled) return;
[29735] Fix | Delete
setTimeout(() => {
[29736] Fix | Delete
state.canceled = true;
[29737] Fix | Delete
state._active = false;
[29738] Fix | Delete
this.compute();
[29739] Fix | Delete
this.emit();
[29740] Fix | Delete
}, 0);
[29741] Fix | Delete
}
[29742] Fix | Delete
touchStart(event) {
[29743] Fix | Delete
this.ctrl.setEventIds(event);
[29744] Fix | Delete
const state = this.state;
[29745] Fix | Delete
const ctrlTouchIds = this.ctrl.touchIds;
[29746] Fix | Delete
if (state._active) {
[29747] Fix | Delete
if (state._touchIds.every(id => ctrlTouchIds.has(id))) return;
[29748] Fix | Delete
}
[29749] Fix | Delete
if (ctrlTouchIds.size < 2) return;
[29750] Fix | Delete
this.start(event);
[29751] Fix | Delete
state._touchIds = Array.from(ctrlTouchIds).slice(0, 2);
[29752] Fix | Delete
const payload = touchDistanceAngle(event, state._touchIds);
[29753] Fix | Delete
if (!payload) return;
[29754] Fix | Delete
this.pinchStart(event, payload);
[29755] Fix | Delete
}
[29756] Fix | Delete
pointerStart(event) {
[29757] Fix | Delete
if (event.buttons != null && event.buttons % 2 !== 1) return;
[29758] Fix | Delete
this.ctrl.setEventIds(event);
[29759] Fix | Delete
event.target.setPointerCapture(event.pointerId);
[29760] Fix | Delete
const state = this.state;
[29761] Fix | Delete
const _pointerEvents = state._pointerEvents;
[29762] Fix | Delete
const ctrlPointerIds = this.ctrl.pointerIds;
[29763] Fix | Delete
if (state._active) {
[29764] Fix | Delete
if (Array.from(_pointerEvents.keys()).every(id => ctrlPointerIds.has(id))) return;
[29765] Fix | Delete
}
[29766] Fix | Delete
if (_pointerEvents.size < 2) {
[29767] Fix | Delete
_pointerEvents.set(event.pointerId, event);
[29768] Fix | Delete
}
[29769] Fix | Delete
if (state._pointerEvents.size < 2) return;
[29770] Fix | Delete
this.start(event);
[29771] Fix | Delete
const payload = distanceAngle(...Array.from(_pointerEvents.values()));
[29772] Fix | Delete
if (!payload) return;
[29773] Fix | Delete
this.pinchStart(event, payload);
[29774] Fix | Delete
}
[29775] Fix | Delete
pinchStart(event, payload) {
[29776] Fix | Delete
const state = this.state;
[29777] Fix | Delete
state.origin = payload.origin;
[29778] Fix | Delete
this.computeValues([payload.distance, payload.angle]);
[29779] Fix | Delete
this.computeInitial();
[29780] Fix | Delete
this.compute(event);
[29781] Fix | Delete
this.emit();
[29782] Fix | Delete
}
[29783] Fix | Delete
touchMove(event) {
[29784] Fix | Delete
if (!this.state._active) return;
[29785] Fix | Delete
const payload = touchDistanceAngle(event, this.state._touchIds);
[29786] Fix | Delete
if (!payload) return;
[29787] Fix | Delete
this.pinchMove(event, payload);
[29788] Fix | Delete
}
[29789] Fix | Delete
pointerMove(event) {
[29790] Fix | Delete
const _pointerEvents = this.state._pointerEvents;
[29791] Fix | Delete
if (_pointerEvents.has(event.pointerId)) {
[29792] Fix | Delete
_pointerEvents.set(event.pointerId, event);
[29793] Fix | Delete
}
[29794] Fix | Delete
if (!this.state._active) return;
[29795] Fix | Delete
const payload = distanceAngle(...Array.from(_pointerEvents.values()));
[29796] Fix | Delete
if (!payload) return;
[29797] Fix | Delete
this.pinchMove(event, payload);
[29798] Fix | Delete
}
[29799] Fix | Delete
pinchMove(event, payload) {
[29800] Fix | Delete
const state = this.state;
[29801] Fix | Delete
const prev_a = state._values[1];
[29802] Fix | Delete
const delta_a = payload.angle - prev_a;
[29803] Fix | Delete
let delta_turns = 0;
[29804] Fix | Delete
if (Math.abs(delta_a) > 270) delta_turns += Math.sign(delta_a);
[29805] Fix | Delete
this.computeValues([payload.distance, payload.angle - 360 * delta_turns]);
[29806] Fix | Delete
state.origin = payload.origin;
[29807] Fix | Delete
state.turns = delta_turns;
[29808] Fix | Delete
state._movement = [state._values[0] / state._initial[0] - 1, state._values[1] - state._initial[1]];
[29809] Fix | Delete
this.compute(event);
[29810] Fix | Delete
this.emit();
[29811] Fix | Delete
}
[29812] Fix | Delete
touchEnd(event) {
[29813] Fix | Delete
this.ctrl.setEventIds(event);
[29814] Fix | Delete
if (!this.state._active) return;
[29815] Fix | Delete
if (this.state._touchIds.some(id => !this.ctrl.touchIds.has(id))) {
[29816] Fix | Delete
this.state._active = false;
[29817] Fix | Delete
this.compute(event);
[29818] Fix | Delete
this.emit();
[29819] Fix | Delete
}
[29820] Fix | Delete
}
[29821] Fix | Delete
pointerEnd(event) {
[29822] Fix | Delete
const state = this.state;
[29823] Fix | Delete
this.ctrl.setEventIds(event);
[29824] Fix | Delete
try {
[29825] Fix | Delete
event.target.releasePointerCapture(event.pointerId);
[29826] Fix | Delete
} catch (_unused) {}
[29827] Fix | Delete
if (state._pointerEvents.has(event.pointerId)) {
[29828] Fix | Delete
state._pointerEvents.delete(event.pointerId);
[29829] Fix | Delete
}
[29830] Fix | Delete
if (!state._active) return;
[29831] Fix | Delete
if (state._pointerEvents.size < 2) {
[29832] Fix | Delete
state._active = false;
[29833] Fix | Delete
this.compute(event);
[29834] Fix | Delete
this.emit();
[29835] Fix | Delete
}
[29836] Fix | Delete
}
[29837] Fix | Delete
gestureStart(event) {
[29838] Fix | Delete
if (event.cancelable) event.preventDefault();
[29839] Fix | Delete
const state = this.state;
[29840] Fix | Delete
if (state._active) return;
[29841] Fix | Delete
this.start(event);
[29842] Fix | Delete
this.computeValues([event.scale, event.rotation]);
[29843] Fix | Delete
state.origin = [event.clientX, event.clientY];
[29844] Fix | Delete
this.compute(event);
[29845] Fix | Delete
this.emit();
[29846] Fix | Delete
}
[29847] Fix | Delete
gestureMove(event) {
[29848] Fix | Delete
if (event.cancelable) event.preventDefault();
[29849] Fix | Delete
if (!this.state._active) return;
[29850] Fix | Delete
const state = this.state;
[29851] Fix | Delete
this.computeValues([event.scale, event.rotation]);
[29852] Fix | Delete
state.origin = [event.clientX, event.clientY];
[29853] Fix | Delete
const _previousMovement = state._movement;
[29854] Fix | Delete
state._movement = [event.scale - 1, event.rotation];
[29855] Fix | Delete
state._delta = V.sub(state._movement, _previousMovement);
[29856] Fix | Delete
this.compute(event);
[29857] Fix | Delete
this.emit();
[29858] Fix | Delete
}
[29859] Fix | Delete
gestureEnd(event) {
[29860] Fix | Delete
if (!this.state._active) return;
[29861] Fix | Delete
this.state._active = false;
[29862] Fix | Delete
this.compute(event);
[29863] Fix | Delete
this.emit();
[29864] Fix | Delete
}
[29865] Fix | Delete
wheel(event) {
[29866] Fix | Delete
const modifierKey = this.config.modifierKey;
[29867] Fix | Delete
if (modifierKey && (Array.isArray(modifierKey) ? !modifierKey.find(k => event[k]) : !event[modifierKey])) return;
[29868] Fix | Delete
if (!this.state._active) this.wheelStart(event);else this.wheelChange(event);
[29869] Fix | Delete
this.timeoutStore.add('wheelEnd', this.wheelEnd.bind(this));
[29870] Fix | Delete
}
[29871] Fix | Delete
wheelStart(event) {
[29872] Fix | Delete
this.start(event);
[29873] Fix | Delete
this.wheelChange(event);
[29874] Fix | Delete
}
[29875] Fix | Delete
wheelChange(event) {
[29876] Fix | Delete
const isR3f = ('uv' in event);
[29877] Fix | Delete
if (!isR3f) {
[29878] Fix | Delete
if (event.cancelable) {
[29879] Fix | Delete
event.preventDefault();
[29880] Fix | Delete
}
[29881] Fix | Delete
if (false) {}
[29882] Fix | Delete
}
[29883] Fix | Delete
const state = this.state;
[29884] Fix | Delete
state._delta = [-wheelValues(event)[1] / PINCH_WHEEL_RATIO * state.offset[0], 0];
[29885] Fix | Delete
V.addTo(state._movement, state._delta);
[29886] Fix | Delete
clampStateInternalMovementToBounds(state);
[29887] Fix | Delete
this.state.origin = [event.clientX, event.clientY];
[29888] Fix | Delete
this.compute(event);
[29889] Fix | Delete
this.emit();
[29890] Fix | Delete
}
[29891] Fix | Delete
wheelEnd() {
[29892] Fix | Delete
if (!this.state._active) return;
[29893] Fix | Delete
this.state._active = false;
[29894] Fix | Delete
this.compute();
[29895] Fix | Delete
this.emit();
[29896] Fix | Delete
}
[29897] Fix | Delete
bind(bindFunction) {
[29898] Fix | Delete
const device = this.config.device;
[29899] Fix | Delete
if (!!device) {
[29900] Fix | Delete
bindFunction(device, 'start', this[device + 'Start'].bind(this));
[29901] Fix | Delete
bindFunction(device, 'change', this[device + 'Move'].bind(this));
[29902] Fix | Delete
bindFunction(device, 'end', this[device + 'End'].bind(this));
[29903] Fix | Delete
bindFunction(device, 'cancel', this[device + 'End'].bind(this));
[29904] Fix | Delete
bindFunction('lostPointerCapture', '', this[device + 'End'].bind(this));
[29905] Fix | Delete
}
[29906] Fix | Delete
if (this.config.pinchOnWheel) {
[29907] Fix | Delete
bindFunction('wheel', '', this.wheel.bind(this), {
[29908] Fix | Delete
passive: false
[29909] Fix | Delete
});
[29910] Fix | Delete
}
[29911] Fix | Delete
}
[29912] Fix | Delete
}
[29913] Fix | Delete
[29914] Fix | Delete
const pinchConfigResolver = _objectSpread2(_objectSpread2({}, commonConfigResolver), {}, {
[29915] Fix | Delete
device(_v, _k, {
[29916] Fix | Delete
shared,
[29917] Fix | Delete
pointer: {
[29918] Fix | Delete
touch = false
[29919] Fix | Delete
} = {}
[29920] Fix | Delete
}) {
[29921] Fix | Delete
const sharedConfig = shared;
[29922] Fix | Delete
if (sharedConfig.target && !SUPPORT.touch && SUPPORT.gesture) return 'gesture';
[29923] Fix | Delete
if (SUPPORT.touch && touch) return 'touch';
[29924] Fix | Delete
if (SUPPORT.touchscreen) {
[29925] Fix | Delete
if (SUPPORT.pointer) return 'pointer';
[29926] Fix | Delete
if (SUPPORT.touch) return 'touch';
[29927] Fix | Delete
}
[29928] Fix | Delete
},
[29929] Fix | Delete
bounds(_v, _k, {
[29930] Fix | Delete
scaleBounds = {},
[29931] Fix | Delete
angleBounds = {}
[29932] Fix | Delete
}) {
[29933] Fix | Delete
const _scaleBounds = state => {
[29934] Fix | Delete
const D = assignDefault(call(scaleBounds, state), {
[29935] Fix | Delete
min: -Infinity,
[29936] Fix | Delete
max: Infinity
[29937] Fix | Delete
});
[29938] Fix | Delete
return [D.min, D.max];
[29939] Fix | Delete
};
[29940] Fix | Delete
const _angleBounds = state => {
[29941] Fix | Delete
const A = assignDefault(call(angleBounds, state), {
[29942] Fix | Delete
min: -Infinity,
[29943] Fix | Delete
max: Infinity
[29944] Fix | Delete
});
[29945] Fix | Delete
return [A.min, A.max];
[29946] Fix | Delete
};
[29947] Fix | Delete
if (typeof scaleBounds !== 'function' && typeof angleBounds !== 'function') return [_scaleBounds(), _angleBounds()];
[29948] Fix | Delete
return state => [_scaleBounds(state), _angleBounds(state)];
[29949] Fix | Delete
},
[29950] Fix | Delete
threshold(value, _k, config) {
[29951] Fix | Delete
this.lockDirection = config.axis === 'lock';
[29952] Fix | Delete
const threshold = V.toVector(value, this.lockDirection ? [0.1, 3] : 0);
[29953] Fix | Delete
return threshold;
[29954] Fix | Delete
},
[29955] Fix | Delete
modifierKey(value) {
[29956] Fix | Delete
if (value === undefined) return 'ctrlKey';
[29957] Fix | Delete
return value;
[29958] Fix | Delete
},
[29959] Fix | Delete
pinchOnWheel(value = true) {
[29960] Fix | Delete
return value;
[29961] Fix | Delete
}
[29962] Fix | Delete
});
[29963] Fix | Delete
[29964] Fix | Delete
class MoveEngine extends CoordinatesEngine {
[29965] Fix | Delete
constructor(...args) {
[29966] Fix | Delete
super(...args);
[29967] Fix | Delete
_defineProperty(this, "ingKey", 'moving');
[29968] Fix | Delete
}
[29969] Fix | Delete
move(event) {
[29970] Fix | Delete
if (this.config.mouseOnly && event.pointerType !== 'mouse') return;
[29971] Fix | Delete
if (!this.state._active) this.moveStart(event);else this.moveChange(event);
[29972] Fix | Delete
this.timeoutStore.add('moveEnd', this.moveEnd.bind(this));
[29973] Fix | Delete
}
[29974] Fix | Delete
moveStart(event) {
[29975] Fix | Delete
this.start(event);
[29976] Fix | Delete
this.computeValues(pointerValues(event));
[29977] Fix | Delete
this.compute(event);
[29978] Fix | Delete
this.computeInitial();
[29979] Fix | Delete
this.emit();
[29980] Fix | Delete
}
[29981] Fix | Delete
moveChange(event) {
[29982] Fix | Delete
if (!this.state._active) return;
[29983] Fix | Delete
const values = pointerValues(event);
[29984] Fix | Delete
const state = this.state;
[29985] Fix | Delete
state._delta = V.sub(values, state._values);
[29986] Fix | Delete
V.addTo(state._movement, state._delta);
[29987] Fix | Delete
this.computeValues(values);
[29988] Fix | Delete
this.compute(event);
[29989] Fix | Delete
this.emit();
[29990] Fix | Delete
}
[29991] Fix | Delete
moveEnd(event) {
[29992] Fix | Delete
if (!this.state._active) return;
[29993] Fix | Delete
this.state._active = false;
[29994] Fix | Delete
this.compute(event);
[29995] Fix | Delete
this.emit();
[29996] Fix | Delete
}
[29997] Fix | Delete
bind(bindFunction) {
[29998] Fix | Delete
bindFunction('pointer', 'change', this.move.bind(this));
[29999] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function