import { Optional } from '@ephox/katamari';
import { SugarPosition } from '@ephox/sugar';
const getData = (event) => Optional.from(SugarPosition(event.x, event.y));
// When dragging with the mouse, the delta is simply the difference
// between the two position (previous/old and next/nu)
const getDelta = (old, nu) => SugarPosition(nu.left - old.left, nu.top - old.top);
export { getData, getDelta };
//# sourceMappingURL=MouseData.js.map