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.
This commit is contained in:
1 parent
ed152c7289
commit
a99a18598a
14 files changed
+652
-18
No files matched your search
@@ -0,0 +1,23 @@
|
||||
#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
|
||||
}
|
||||
Reference in new issue
Block a user