export declare const LEFT_MOUSE_BUTTON = 0; /** * Calculates the length of a vector. * @param x - The x component of the vector * @param y - The y component of the vector */ export declare const vectorLength: (x: number, y: number) => number; /** * Calculates the angle of a vector. * @param x - The x component of the vector * @param y - The y component of the vector */ export declare const vectorAngle: (x: number, y: number) => number; /** * Converts degrees to radians. * @param deg - The degrees */ export declare const deg2Rad: (deg: number) => number; /** * Calculates the center of a rectangle. * @param top - The top position of the rectangle * @param left - The left position of the rectangle * @param width - The width of the rectangle * @param height - The height of the rectangle */ export declare const topLeft2Center: (top: number, left: number, width: number, height: number) => { x: number; y: number; }; /** * Calculates the top left corner of a rectangle. * @param centerX - The center x position of the rectangle * @param centerY - The center y position of the rectangle * @param width - The width of the rectangle * @param height - The height of the rectangle */ export declare const center2TopLeft: (centerX: number, centerY: number, width: number, height: number) => { left: number; top: number; }; /** * Rotates a point around another point by a certain angle. * @param originX - The x coordinate of the origin * @param originY - The y coordinate of the origin * @param pointX - The x coordinate of the point to rotate * @param pointY - The y coordinate of the point to rotate * @param angleDeg - The angle in degrees to rotate the point by */ export declare const rotatePoint: (originX: number, originY: number, pointX: number, pointY: number, angleDeg: number) => { left: number; top: number; }; /** * Returns the corresponding resize cursor for a given rotation. * @param rotationDeg - The rotation in degrees */ export declare const getResizeCursors: (rotationDeg: number) => { n: import("csstype").Property.Cursor | undefined; ne: import("csstype").Property.Cursor | undefined; e: import("csstype").Property.Cursor | undefined; se: import("csstype").Property.Cursor | undefined; s: import("csstype").Property.Cursor | undefined; sw: import("csstype").Property.Cursor | undefined; w: import("csstype").Property.Cursor | undefined; nw: import("csstype").Property.Cursor | undefined; }; /** * Calculates the parametric position of an object around a rectangle. * The object will be centered on the rectangle, with the specified angle * measured from the vertical, and the specified offsets, measured from the * edges of the rectangle. * * @param width - The width of the rectangle * @param height - The height of the rectangle * @param rotationDeg - The polar position of the object * @param offsetWidth - The horizontal offset from the edges * @param offsetHeight - The vertical offset from the edges */ export declare const getParametricPos: (width: number, height: number, rotationDeg: number, offsetWidth: number, offsetHeight: number) => { left: number; top: number; }; /** * Stops the next click event propagation */ export declare const captureClick: () => void;