nicecode-v2/packages/meta/lib/ImageEditor/viewer/helper.d.ts
2024-01-10 15:15:12 +08:00

44 lines
1.2 KiB
TypeScript

export declare const setNumberAccuracy: (originNumber: number, accuracy?: number, isCeil?: boolean) => number;
declare const _default: {
windowToCanvasAxis(event: any): any;
offsetAxisToCanvasAxis({ x, y }: {
x: any;
y: any;
}): any;
originAxisToCanvasAxis({ x, y, ...others }: {
[x: string]: any;
x: any;
y: any;
}): any;
canvasAxisToOriginAxis({ x, y, ...others }: {
[x: string]: any;
x: any;
y: any;
}): any;
imgRectAxisToCanvasAxisRect({ x, y, w, h, ...others }: {
[x: string]: any;
x?: number | undefined;
y?: number | undefined;
w?: number | undefined;
h?: number | undefined;
}): any;
originAxisToImgAxis({ x, y, ...others }: {
[x: string]: any;
x: any;
y: any;
}): any;
imgAxisToOriginAxis({ x: _x, y: _y, ...others }: {
[x: string]: any;
x: any;
y: any;
}): any;
getDataUrlbyOriginAxis({ x, y, w, h, ...others }: {
[x: string]: any;
x?: number | undefined;
y?: number | undefined;
w?: number | undefined;
h?: number | undefined;
}): string;
};
export default _default;