UNPKG

870 BTypeScriptView Raw
1import type { ICoordinates } from "../../Core/Interfaces";
2import type { IDrawStroke } from "./Options/Interfaces/IDrawStroke";
3import type { ISvgPath } from "./Interfaces/ISvgPath";
4import { Vector } from "../../Core/Particle/Vector";
5export declare function drawPolygonMask(context: CanvasRenderingContext2D, rawData: ICoordinates[], stroke: IDrawStroke): void;
6export declare function drawPolygonMaskPath(context: CanvasRenderingContext2D, path: Path2D, stroke: IDrawStroke, position: ICoordinates): void;
7export declare function parsePaths(paths: ISvgPath[], scale: number, offset: ICoordinates): ICoordinates[];
8export declare function calcClosestPtOnSegment(s1: ICoordinates, s2: ICoordinates, pos: ICoordinates): ICoordinates & {
9 isOnSegment: boolean;
10};
11export declare function segmentBounce(start: ICoordinates, stop: ICoordinates, velocity: Vector): void;