@amaui/ui-react
Version:
UI for React
49 lines (48 loc) • 2.74 kB
TypeScript
import { IPoint } from './types';
export declare function reflow(element: HTMLElement): void;
export declare const staticClassName: (name: string, theme: any) => any;
export declare const iconSizeToFontSize: (value: string | number) => any;
export declare const valueBreakpoints: (item: any, value: any, breakpoints: any, theme: any) => any;
export declare const image: (uri: string) => Promise<HTMLImageElement>;
export declare const canvasBrightness: (value: number, mainCanvas: HTMLCanvasElement, valueCopy: HTMLCanvasElement) => HTMLCanvasElement;
export declare const canvasContrast: (value: number, mainCanvas: HTMLCanvasElement, valueCopy: HTMLCanvasElement) => HTMLCanvasElement;
export declare const canvasSaturation: (value: number, mainCanvas: HTMLCanvasElement, valueCopy: HTMLCanvasElement) => HTMLCanvasElement;
export declare const canvasFade: (value: number, mainCanvas: HTMLCanvasElement, valueCopy: HTMLCanvasElement) => HTMLCanvasElement;
export declare const canvasInvert: (value: number, mainCanvas: HTMLCanvasElement, valueCopy: HTMLCanvasElement) => HTMLCanvasElement;
export declare const canvasOldPhoto: (value: number, mainCanvas: HTMLCanvasElement, valueCopy: HTMLCanvasElement) => HTMLCanvasElement;
export declare const print: (element: HTMLElement) => void;
export declare const save: (element: HTMLElement) => void;
export declare const matches: (value: any) => any;
export declare const angleToCoordinates: (degrees: number, centerX: number, centerY: number, radius: number) => {
x: number;
y: number;
};
export declare const line: (pointA: IPoint, pointB: IPoint) => {
length: number;
angle: number;
};
export declare const controlPoint: (current: IPoint, previous_: IPoint, next_: IPoint, reverse?: boolean, smoothRatio?: number) => number[];
export declare const minMaxBetweenNumbers: (value?: number, min?: number, max?: number) => number[];
export declare const sanitize: (value: string) => string;
export declare const replace: (value: string, split: string, join: string) => string;
export declare const importIframeStyles: (iframeDocument: Document) => void;
export declare const getOverflowParent: (element: HTMLElement) => HTMLElement;
export declare const keyboardStandardCommands: string[];
export declare const keyboardStyleCommands: string[];
export declare const caret: any;
export declare const toNumber: (item: any, valueDefault?: number) => any;
export declare const formats: {
entire: string;
date: string;
time: string;
};
export declare const iconFontSize = 20;
export declare const currencies: {
symbol: string;
name: string;
symbol_native: string;
decimal_digits: number;
rounding: number;
code: string;
name_plural: string;
}[];