dielines
Version:
Create dielines with pantograph APIs
27 lines (26 loc) • 1.32 kB
TypeScript
export type FlapContractionMode = "rounded" | "sharp";
export type HorizontalFlapOptions = {
fillet?: number;
contraction?: number;
contractionMode?: FlapContractionMode;
contractionLeft?: number;
contractionRight?: number;
leftContractionMode?: FlapContractionMode;
rightContractionMode?: FlapContractionMode;
};
export type VerticalFlapTopOptions = HorizontalFlapOptions & {
contractionTop?: number;
contractionBottom?: number;
topContractionMode?: FlapContractionMode;
bottomContractionMode?: FlapContractionMode;
};
export declare function topFlap(width: number, height: number, options?: HorizontalFlapOptions): import('pantograph2d').Diagram;
export declare function bottomFlap(width: number, height: number, options?: HorizontalFlapOptions): import('pantograph2d').Diagram;
export declare function leftFlap(width: number, height: number, { contractionTop, contractionBottom, topContractionMode, bottomContractionMode, ...options }?: VerticalFlapTopOptions): import('pantograph2d').Diagram;
export declare function rightFlap(width: number, height: number, options?: VerticalFlapTopOptions): import('pantograph2d').Diagram;
export declare const drawFlaps: {
right: typeof rightFlap;
left: typeof leftFlap;
top: typeof topFlap;
bottom: typeof bottomFlap;
};