ng-reorder
Version:
Sort elements within a list by using drag-n-drop interface without any restrictions by direction
21 lines (20 loc) • 651 B
TypeScript
import { Point } from './interfaces';
/** Returns { 0, 0 } point */
export declare function createPoint(): Point;
/**
* Returns the sum of two points
* @param first first point
* @param second second point
*/
export declare function pointSum(first: Point, second: Point): Point;
/**
* Returns the difference between two points
* @param first first point
* @param second second point
*/
export declare function pointDif(first: Point, second: Point): Point;
/**
* Returns point from pointer event
* @param event Mouse or Touch event
*/
export declare function pointFromPointerEvent(event: MouseEvent | TouchEvent): Point;