diff --git a/src/nc/ncBuilder.ts b/src/nc/ncWriter.ts similarity index 94% rename from src/nc/ncBuilder.ts rename to src/nc/ncWriter.ts index 19682fd..420f7aa 100644 --- a/src/nc/ncBuilder.ts +++ b/src/nc/ncWriter.ts @@ -73,6 +73,13 @@ export class GCodeParams { f: number = 0; }; +/** 单次NC加工行为 */ +export interface NcAction { + readonly id: string; + readonly type: NcActionType; + readonly lineIndex: number; +} + export type NcActionType = string; /** @@ -81,7 +88,9 @@ export type NcActionType = string; * @since 0.3.0 * @version 0.1.0 */ -export interface INcBuilder { +export interface INcWriter { + get ncActions(): NcAction[]; + /** 添加G代码 */ gCode(code: keyof typeof GCode, params: Partial & { bul: number; }>): void;