- RealtimeChart composable with Canvas-based rendering - TieredBuffer: 3-tier ring buffer (5min full-rate, 10min @10Hz, 45min @1Hz) for 1h data support with ~5MB footprint - LodDecimator: MEAN / MIN_MAX / MIN_MAX(default) / LTTB render-time decimation - AxisRenderer: X/Y axis with INSIDE/BESIDE/HIDDEN label modes, T0-relative timestamps, scientific notation - SignalRenderer: clipRect-bounded path rendering with LoD - ChartTheme: Material3-compatible dynamic theming (light/dark) - package: dev.dtrentin.chart Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
18 lines
467 B
Kotlin
18 lines
467 B
Kotlin
package dev.dtrentin.chart.model
|
|
|
|
import androidx.compose.ui.graphics.Color
|
|
|
|
/**
|
|
* Per-signal display configuration.
|
|
*
|
|
* @param color Line color.
|
|
* @param strokeWidth Line width in dp.
|
|
* @param visible If false, signal is skipped during rendering.
|
|
* @param label Optional display label for legend (future use).
|
|
*/
|
|
data class SignalConfig(
|
|
val color: Color,
|
|
val strokeWidth: Float = 2f,
|
|
val visible: Boolean = true,
|
|
val label: String? = null,
|
|
)
|