Files
plot/src/plot_props.zi
T
waozi a99a18598a Own PlotWidget and import Kryon by package-qualified paths
The plot surface moves here from Kryon, which no longer ships it.
Plot exports PlotWidget for apps that draw their own series next to the
Plot charts, and every Kryon import names its package (kryon/Kryon,
kryon/session, ...). The widget's behavior test runs as a portable
bundle and in Go, binding Kryon's host capabilities by import path.
2026-09-29 19:50:01 -03:00

24 lines
461 B
Ziran

#import "kryon/geometry"
PlotMode :: enum {
PlotLines :: 0
PlotBars :: 1
}
PlotProps :: struct {
key: u64
bounds: Rectangle
id: s32
class_name: s32
label: string
// Accessible name without drawing text over the plot; label remains the
// visible caption when one is wanted.
semantic_label: string
overlay: string
offset: s32
scale_min: float32
scale_max: float32
scale: float32
mode: PlotMode
}