UNPKG

webpd

Version:

WebPd is a compiler for audio programming language Pure Data allowing to run .pd patches on web pages.

21 lines (20 loc) 576 B
import { Point, Rectangle } from './types'; export declare const makeTranslationTransform: (fromPoint: Point, toPoint: Point) => (fromPoint: Point) => { x: number; y: number; }; export declare const sumPoints: (p1: Point, p2: Point) => { x: number; y: number; }; export declare const computeRectanglesIntersection: (r1: Rectangle, r2: Rectangle) => { topLeft: { x: number; y: number; }; bottomRight: { x: number; y: number; }; }; export declare const isPointInsideRectangle: (p: Point, r: Rectangle) => boolean;