NcBuilder 更新文件名,追加方法

This commit is contained in:
2025-08-13 17:32:20 +08:00
parent d800f7d5d5
commit c32f82b847

View File

@@ -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<Pick<GCodeParams, 'x' | 'y' | 'z' | 'f'> & { bul: number; }>): void;