Compare commits

..

1 Commits

Author SHA1 Message Date
e8977ac2f9 优化NCWriter参数格式和用法 2025-08-14 10:34:08 +08:00
3 changed files with 12 additions and 13 deletions

View File

@@ -1,6 +1,6 @@
{ {
"name": "cut-abstractions", "name": "cut-abstractions",
"version": "0.3.5", "version": "0.3.2",
"description": "", "description": "",
"files": [ "files": [
"dist/**/*" "dist/**/*"

View File

@@ -10,7 +10,7 @@ import { ConfigBase } from "../config";
* *
* 注20250730 暂无配置 留个位置 * 注20250730 暂无配置 留个位置
*/ */
export class CutOrderConfig extends ConfigBase { export class CutorderConfig extends ConfigBase {
// [key:string] : any // [key:string] : any
} }
@@ -20,24 +20,24 @@ export class CutOrderConfig extends ConfigBase {
export type CutOrderInput = { export type CutOrderInput = {
/**开料大板 宽 */ /**开料大板 宽 */
boardWidth: number, boardWidth: number,
/** 开料大板 */ /** 开料大板 */
boardLength: number, boardHeight: number,
/** 刀头大小(含修边) */ /** 刀头大小(含修边) */
gap: number, gap: number,
/** 小板数据集合 */ /** 小板数据集合 */
blocks: CutOrderInputBlock[] blocks: CutorderInputBlock[]
} }
/** /**
* 处理器输出数据 开料顺序(新) * 处理器输出数据 开料顺序(新)
*/ */
export type CutOrderOutput = { export type CutorderOutput = {
blocks: CutOrderoutputBlock[] blocks: CutorderoutputBlock[]
} }
/** /**
* 小板类型 输入 * 小板类型 输入
*/ */
export type CutOrderInputBlock = { export type CutorderInputBlock = {
/** 小板唯一标识 */ /** 小板唯一标识 */
id: string | number, id: string | number,
/** 排版长 */ /** 排版长 */
@@ -52,6 +52,6 @@ export type CutOrderInputBlock = {
/** /**
* 小板类型 输出 * 小板类型 输出
*/ */
export type CutOrderoutputBlock = CutOrderInputBlock & { export type CutorderoutputBlock = CutorderInputBlock & {
CutOrder: number cutOrder: number
} }

View File

@@ -17,10 +17,9 @@ export type HoleToModelOutput = {
/** 孔转造型 后的 造型数据 */ /** 孔转造型 后的 造型数据 */
modelData: HoleToModelProcessingItem[], modelData: HoleToModelProcessingItem[],
/** 未处理的孔数据 以及信息 */ /** 未处理的孔数据 以及信息 */
noHandleItem: NoHandleItemType[] noHandleItem: noHandleItemType[]
} }
/** 孔转造型 未处理的数据 */ export type noHandleItemType = {
export type NoHandleItemType = {
/** 未处理的孔信息 */ /** 未处理的孔信息 */
holeData: HoleToModelProcessingItem, holeData: HoleToModelProcessingItem,
/** 未处理 说明 */ /** 未处理 说明 */