UNPKG

821 BTypeScriptView Raw
1import React, { SVGProps } from 'react';
2import { AnimationDuration, AnimationTiming } from '../util/types';
3export type RectRadius = [number, number, number, number];
4interface RectangleProps {
5 className?: string;
6 x?: number;
7 y?: number;
8 width?: number;
9 height?: number;
10 radius?: number | RectRadius;
11 isAnimationActive?: boolean;
12 isUpdateAnimationActive?: boolean;
13 animationBegin?: number;
14 animationDuration?: AnimationDuration;
15 animationEasing?: AnimationTiming;
16}
17export declare const isInRectangle: (point: {
18 x: number;
19 y: number;
20}, rect: {
21 x: number;
22 y: number;
23 width: number;
24 height: number;
25}) => boolean;
26export type Props = Omit<SVGProps<SVGPathElement>, 'radius'> & RectangleProps;
27export declare const Rectangle: React.FC<Props>;
28export {};