import type { ProjectionResult } from "@hylimo/diagram-common"; import type { Point } from "@hylimo/diagram-common"; import type { TransformedLine } from "@hylimo/diagram-common"; import { SharedSettings } from "@hylimo/diagram-protocol"; /** * Rounding information for the projectPointOnLine function */ export interface RoundingInformation { /** * Provider for precisions */ settings: SharedSettings; /** * Whether to round the relativePos (true) or the pos (false) */ hasSegment: boolean; } /** * Projects a point on a line, similar to LineEngine.projectPoint, but with additional rounding. * * @param point the point to project onto the line * @param transformedLine the line with its transform * @param roundingInformation information on how to round the result * @param forcedDistance optional distance to force * @returns the projection result with possible rounding applied */ export declare function projectPointOnLine(point: Point, transformedLine: TransformedLine, roundingInformation: RoundingInformation, forcedDistance: number | undefined): ProjectionResult; export declare function findOptimalDistanceFromLine(pos: number, segment: number | undefined, transformedLine: TransformedLine, point: Point): number; //# sourceMappingURL=projectPointOnLine.d.ts.map