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