推进 INI 面板 control view DOM consumer

This commit is contained in:
2026-06-14 22:45:45 +08:00
parent 4133d202f0
commit 74617cc3fa
3 changed files with 120 additions and 0 deletions

View File

@@ -161,6 +161,18 @@ This helper maps a bundle into UI-ready status and sections:
It is a presentation mapping over the bundle only. It does not parse G-code,
canonical events, or LinuxCNC-owned runtime content.
A minimal read-only browser consumer can render the sections directly:
```js
const view = window.linuxCncIniPanelApi.getMachineSessionControlView();
for (const section of view.sections) {
renderSection(section.title, section.rows);
}
```
Consumers should treat `rows` as display data and keep actions wired through
explicit workflow APIs instead of deriving behavior from labels.
## Boundary Rules
- Do not parse G-code text in this helper.