参考所有分组,完成尽量多的内容。禁止顺手扩功能 smoke

结论:按 LinuxCNC INI TOOL_TABLE 来源扩展 switchkins/remap 配置别名和生成案例,未增加 smoke 功能行为;表校验、native、source-link 均通过。
This commit is contained in:
cnc
2026-06-03 14:53:37 +08:00
parent 4086445900
commit aff6f85d8a
9 changed files with 370 additions and 9 deletions

View File

@@ -106,6 +106,10 @@ export type CncParseOptions = {
subroutinepath?: string;
subroutine_path?: string;
SUBROUTINE_PATH?: string;
toolTable?: string;
tooltable?: string;
tool_table?: string;
TOOL_TABLE?: string;
kinematics?: string;
trt?: "xyzbc" | "xyzac" | string;
pivotLength?: number;

View File

@@ -664,6 +664,10 @@ export async function createWasmSimulator(moduleOptions = {}) {
...(options.subroutinepath ? { subroutinepath: options.subroutinepath } : {}),
...(options.subroutine_path ? { subroutine_path: options.subroutine_path } : {}),
...(options.SUBROUTINE_PATH ? { SUBROUTINE_PATH: options.SUBROUTINE_PATH } : {}),
...(options.toolTable ? { toolTable: options.toolTable } : {}),
...(options.tooltable ? { tooltable: options.tooltable } : {}),
...(options.tool_table ? { tool_table: options.tool_table } : {}),
...(options.TOOL_TABLE ? { TOOL_TABLE: options.TOOL_TABLE } : {}),
...(options.kinematics ? { kinematics: options.kinematics } : {}),
...(options.trt ? { trt: options.trt } : {}),
...(options.pivotLength !== undefined ? { pivotLength: options.pivotLength } : {}),