UNPKG

ducjs

Version:

The duc 2D CAD file format is a cornerstone of our advanced design system, conceived to cater to professionals seeking precision and efficiency in their design work.

15 lines (14 loc) 804 B
import type { NormalizedZoomValue, ScopedValue } from "../types"; import { DucElement, FixedPoint } from "../types/elements"; export declare const getNormalizedZoom: (zoom: number) => NormalizedZoomValue; export declare const getNormalizedGridSize: (gridStep: number) => number; export declare const getNormalizedGridStep: (gridStep: number) => number; export declare const normalizeFixedPoint: <T extends FixedPoint | null>(fixedPoint: T) => T extends null ? null : FixedPoint; export declare const getNormalizedDimensions: (element: Pick<DucElement, "width" | "height" | "x" | "y">) => { width: ScopedValue; height: ScopedValue; x: ScopedValue; y: ScopedValue; }; export declare const normalizeEOL: (str: string) => string; export declare const normalizeText: (text: string) => string;