Rocky_Mountain_Vending/.pnpm-store/v10/files/b5/16589b9f84607f9a7ffa72b51b5bd959bd8f08f5f6bff19f7e6fbcd4ef9eece999459f43c8b0f4f77172db59d7f00b3e53f1f37905232a41f560321a8f903d
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
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>
2026-02-12 16:22:15 -07:00

78 lines
2.7 KiB
Text

import { Coordinate, AxisType, Size } from './types';
/**
* Calculate the scale function, position, width, height of axes
* @param {Object} props Latest props
* @param {Object} axisMap The configuration of axes
* @param {Object} offset The offset of main part in the svg element
* @param {String} axisType The type of axes, x-axis or y-axis
* @param {String} chartName The name of chart
* @return {Object} Configuration
*/
export declare const formatAxisMap: (props: any, axisMap: any, offset: any, axisType: AxisType, chartName: string) => {};
export declare const rectWithPoints: ({ x: x1, y: y1 }: Coordinate, { x: x2, y: y2 }: Coordinate) => {
x: number;
y: number;
width: number;
height: number;
};
/**
* Compute the x, y, width, and height of a box from two reference points.
* @param {Object} coords x1, x2, y1, and y2
* @return {Object} object
*/
export declare const rectWithCoords: ({ x1, y1, x2, y2 }: {
x1: number;
y1: number;
x2: number;
y2: number;
}) => {
x: number;
y: number;
width: number;
height: number;
};
export declare class ScaleHelper {
static EPS: number;
private scale;
static create(obj: any): ScaleHelper;
constructor(scale: any);
get domain(): any;
get range(): any;
get rangeMin(): any;
get rangeMax(): any;
get bandwidth(): any;
apply(value: any, { bandAware, position }?: {
bandAware?: boolean;
position?: any;
}): any;
isInRange(value: number): boolean;
}
type ScaleResult<T> = {
[P in keyof T]: number;
};
type Scales<T> = {
[P in keyof T]: ScaleHelper;
};
type ScalesApply<T> = (coord: {
[P in keyof T]: any;
}, options: any) => ScaleResult<T>;
type ScalesIsInRange<T> = (coord: {
[P in keyof T]: any;
}) => boolean;
type LabeledScales<T> = Scales<T> & {
apply: ScalesApply<T>;
} & {
isInRange: ScalesIsInRange<T>;
};
export declare const createLabeledScales: (options: Record<string, any>) => LabeledScales<Record<string, any>>;
/** Normalizes the angle so that 0 <= angle < 180.
* @param {number} angle Angle in degrees.
* @return {number} the normalized angle with a value of at least 0 and never greater or equal to 180. */
export declare function normalizeAngle(angle: number): number;
/** Calculates the width of the largest horizontal line that fits inside a rectangle that is displayed at an angle.
* @param {Object} size Width and height of the text in a horizontal position.
* @param {number} angle Angle in degrees in which the text is displayed.
* @return {number} The width of the largest horizontal line that fits inside a rectangle that is displayed at an angle.
*/
export declare const getAngledRectangleWidth: ({ width, height }: Size, angle?: number | undefined) => number;
export {};