feat(logic): add array fields to StateVar type

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Martino Ferrari
2026-06-24 10:50:06 +02:00
parent 774e28453b
commit 3b8c6540e1
+5 -1
View File
@@ -68,11 +68,15 @@ export type PlotLayout =
// via ds 'local'.
export interface StateVar {
name: string;
type?: 'number' | 'bool' | 'string'; // default 'number'
type?: 'number' | 'bool' | 'string' | 'array'; // default 'number'
initial: string; // initial value, stored as a string
unit?: string;
low?: number;
high?: number;
// array-only (present when type === 'array'):
elem?: 'number' | 'bool' | 'array';
sizing?: 'dynamic' | 'capped' | 'fixed';
capacity?: number;
}
// ── Panel logic (Node-REDstyle flow graph) ──────────────────────────────────