Files
cut-abstractions/src/models/processors/cutOrder.ts
2025-08-22 18:20:45 +08:00

57 lines
1.1 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/**
* 开料顺序(新)所使用的类型
*
*/
import { ConfigBase } from "../config";
/** 处理器入参 开料顺序(新)
* @author lx
*
* 注20250730 暂无配置 留个位置
*/
export class CutOrderConfig extends ConfigBase {
// [key:string] : any
}
/**
* 处理器输入数据源 开料顺序(新)
*/
export type CutOrderInput = {
/**开料大板 宽 */
boardWidth: number,
/** 开料大板 长 */
boardLength: number,
/** 刀头大小(含修边) */
gap: number,
/** 小板数据集合 */
blocks: CutOrderInputBlock[]
}
/**
* 处理器输出数据 开料顺序(新)
*/
export type CutOrderOutput = {
blocks: CutOrderoutputBlock[]
}
/**
* 小板类型 输入
*/
export type CutOrderInputBlock = {
/** 小板唯一标识 */
id: string | number,
/** 排版长 */
length: number,
/** 排版宽 */
width: number,
/** 板件坐标X */
x: number,
/** 板件坐标y */
y: number,
}
/**
* 小板类型 输出
*/
export type CutOrderoutputBlock = CutOrderInputBlock & {
CutOrder: number
}