推进 INI 面板 control view DOM consumer
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user