feat(logic): add array fields to StateVar type
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -68,11 +68,15 @@ export type PlotLayout =
|
|||||||
// via ds 'local'.
|
// via ds 'local'.
|
||||||
export interface StateVar {
|
export interface StateVar {
|
||||||
name: string;
|
name: string;
|
||||||
type?: 'number' | 'bool' | 'string'; // default 'number'
|
type?: 'number' | 'bool' | 'string' | 'array'; // default 'number'
|
||||||
initial: string; // initial value, stored as a string
|
initial: string; // initial value, stored as a string
|
||||||
unit?: string;
|
unit?: string;
|
||||||
low?: number;
|
low?: number;
|
||||||
high?: number;
|
high?: number;
|
||||||
|
// array-only (present when type === 'array'):
|
||||||
|
elem?: 'number' | 'bool' | 'array';
|
||||||
|
sizing?: 'dynamic' | 'capped' | 'fixed';
|
||||||
|
capacity?: number;
|
||||||
}
|
}
|
||||||
|
|
||||||
// ── Panel logic (Node-RED–style flow graph) ──────────────────────────────────
|
// ── Panel logic (Node-RED–style flow graph) ──────────────────────────────────
|
||||||
|
|||||||
Reference in New Issue
Block a user