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>
30 lines
1.2 KiB
Text
30 lines
1.2 KiB
Text
/**
|
|
* @fileOverview Curve
|
|
*/
|
|
import * as React from 'react';
|
|
import { CurveFactory } from 'victory-vendor/d3-shape';
|
|
import { LayoutType, PresentationAttributesWithProps } from '../util/types';
|
|
export type CurveType = 'basis' | 'basisClosed' | 'basisOpen' | 'bumpX' | 'bumpY' | 'bump' | 'linear' | 'linearClosed' | 'natural' | 'monotoneX' | 'monotoneY' | 'monotone' | 'step' | 'stepBefore' | 'stepAfter' | CurveFactory;
|
|
export interface Point {
|
|
x: number;
|
|
y: number;
|
|
}
|
|
interface CurveProps {
|
|
className?: string;
|
|
type?: CurveType;
|
|
layout?: LayoutType;
|
|
baseLine?: number | Array<Point>;
|
|
points?: Array<Point>;
|
|
connectNulls?: boolean;
|
|
path?: string;
|
|
pathRef?: (ref: SVGPathElement) => void;
|
|
}
|
|
export type Props = Omit<PresentationAttributesWithProps<CurveProps, SVGPathElement>, 'type' | 'points'> & CurveProps;
|
|
type GetPathProps = Pick<Props, 'type' | 'points' | 'baseLine' | 'layout' | 'connectNulls'>;
|
|
/**
|
|
* Calculate the path of curve. Returns null if points is an empty array.
|
|
* @return path or null
|
|
*/
|
|
export declare const getPath: ({ type, points, baseLine, layout, connectNulls, }: GetPathProps) => string | null;
|
|
export declare const Curve: React.FC<Props>;
|
|
export {};
|