1 | import React, { SVGProps } from 'react';
|
2 | import { AnimationDuration, AnimationTiming } from '../util/types';
|
3 | export type RectRadius = [number, number, number, number];
|
4 | interface 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 | }
|
17 | export 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;
|
26 | export type Props = Omit<SVGProps<SVGPathElement>, 'radius'> & RectangleProps;
|
27 | export declare const Rectangle: React.FC<Props>;
|
28 | export {};
|