UNPKG

lost-sia

Version:

Single Image Annotation Tool

29 lines (28 loc) 1.53 kB
import { Point, Vector2 } from '../types'; /** * Get point that is closest to the left browser side. * * @param points list of points {x,y} * @returns {object} A list of point [{x,y}...]. Multiple points are * returned when multiple points have the same distance to the left side. */ export declare const getMostLeftPoints: (points: Point[]) => Point[]; /** * Get point that is closest to the top of the browser. * * @param points list of points [x,y] * @returns A list of point [[x,y]...]. Multiple points are * returned when multiple points have the same distance to the top. */ export declare const getTopPoint: (points: Point[]) => Point[]; declare const _default: { convertImageCoordinatesToStage: (imageCoordinates: Point[], imageSize: Vector2, stageSize: Vector2) => Point[]; convertPercentagedCoordinatesToImage: (percentagedCoordinates: Point[], imageSize: Vector2) => Point[]; convertPercentagedCoordinatesToStage: (percentagedCoordinates: Point[], imageSize: Vector2, stageSize: Vector2) => Point[]; convertStageCoordinatesToImage: (stageCoordinates: Point[], imageToStageFactor: number) => Point[]; convertStageCoordinatesToPercentaged: (scaledCoordinates: Point[], imageToStageFactor: number, imageSize: Vector2) => Point[]; convertStageToPage: (stageCoordinates: Point, pageToStageOffset: Point, svgScale: number, svgTranslation: Vector2) => Point; getMostLeftPoints: (points: Point[]) => Point[]; getTopPoint: (points: Point[]) => Point[]; }; export default _default;