UNPKG

@shopify/draggable

Version:

The JavaScript Drag & Drop library your grandparents warned you about.

10 lines 429 B
/** * Returns the distance between two points * @param {Number} x1 The X position of the first point * @param {Number} y1 The Y position of the first point * @param {Number} x2 The X position of the second point * @param {Number} y2 The Y position of the second point * @return {Number} */ export default function distance(x1: number, y1: number, x2: number, y2: number): number; //# sourceMappingURL=distance.d.ts.map