Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
31 lines
856 B
Text
31 lines
856 B
Text
/**
|
|
* @fileOverview Rectangle
|
|
*/
|
|
import React, { SVGProps } from 'react';
|
|
import { AnimationDuration, AnimationTiming } from '../util/types';
|
|
export type RectRadius = [number, number, number, number];
|
|
interface RectangleProps {
|
|
className?: string;
|
|
x?: number;
|
|
y?: number;
|
|
width?: number;
|
|
height?: number;
|
|
radius?: number | RectRadius;
|
|
isAnimationActive?: boolean;
|
|
isUpdateAnimationActive?: boolean;
|
|
animationBegin?: number;
|
|
animationDuration?: AnimationDuration;
|
|
animationEasing?: AnimationTiming;
|
|
}
|
|
export declare const isInRectangle: (point: {
|
|
x: number;
|
|
y: number;
|
|
}, rect: {
|
|
x: number;
|
|
y: number;
|
|
width: number;
|
|
height: number;
|
|
}) => boolean;
|
|
export type Props = Omit<SVGProps<SVGPathElement>, 'radius'> & RectangleProps;
|
|
export declare const Rectangle: React.FC<Props>;
|
|
export {};
|