function r(n, t) {
  return {
    x: n.x + t.x,
    y: n.y + t.y
  };
}
function f(n, t) {
  return {
    x: n.x - t.x,
    y: n.y - t.y
  };
}
function u(n) {
  const { clientOffset: t, initialClientOffset: e, initialSourceClientOffset: i } = n;
  return !t || !e || !i ? null : f(r(t, i), e);
}
function l(n) {
  const { clientOffset: t, initialClientOffset: e } = n;
  return !t || !e ? null : f(t, e);
}
export {
  r as add,
  l as getDifferenceFromInitialOffset,
  u as getSourceClientOffset,
  f as subtract
};
//# sourceMappingURL=coords.es.js.map
