7eb7b3d0c8
Snapshot de WIP acumulado de sesiones previas antes de merge wave 1 del flow 0008 (kanban_cpp + agent_runner_api + DoD schema). Incluye: - dev/flows/0008-kanban-cpp-and-agent-workflows.md - dev/issues/0112-0119*.md (7 sub-issues) - WIP previo en cmd/fn/doctor.go, registry/*, modules/, cpp/, etc. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
26 lines
1.0 KiB
C
26 lines
1.0 KiB
C
#pragma once
|
|
|
|
#include "imgui.h"
|
|
|
|
// Renders a mini inline line chart for use in tables, headers and KPI cards.
|
|
// Uses PushID/PopID with id for uniqueness inside tables.
|
|
//
|
|
// Auto Y-scale variants:
|
|
void sparkline(const char* id, const float* values, int count,
|
|
float width = 100.0f, float height = 20.0f);
|
|
|
|
void sparkline(const char* id, const float* values, int count, ImVec4 color,
|
|
float width = 100.0f, float height = 20.0f);
|
|
|
|
// Fixed Y-scale variants — clamp the polyline to [y_min, y_max] so cards in a
|
|
// grid stay visually comparable (ej. CPU% / RAM%: pasar 0,100). v1.1.
|
|
// width y height son explicitos (sin default) para que el compilador no haga
|
|
// match contra los overloads sin y_min/y_max.
|
|
void sparkline(const char* id, const float* values, int count,
|
|
float y_min, float y_max,
|
|
float width, float height);
|
|
|
|
void sparkline(const char* id, const float* values, int count, ImVec4 color,
|
|
float y_min, float y_max,
|
|
float width, float height);
|