package miaou-widgets-display-sdl
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>
Miaou SDL widget implementations
Install
dune-project
Dependency
Authors
Maintainers
Sources
v0.5.2.tar.gz
md5=60a3b9f181f24572a06a9492532bfdda
sha512=fcc35a275066be2900e6201782faf47503076fa4640f08cf78067835a6f447b74613009e55b2ac799adb7ca46f1bffa261fc5971753f2cc3c6bef327511c7ef6
doc/miaou-widgets-display-sdl.widgets/Miaou_widgets_display_sdl/Sparkline_widget_sdl/index.html
Module Miaou_widgets_display_sdl.Sparkline_widget_sdlSource
SDL-enhanced sparkline widget with smooth vector rendering.
This module provides SDL-optimized rendering for sparklines with:
- Smooth anti-aliased lines
- Filled area under the curve
- Gradient support
- Higher precision than character-based rendering
Source
type sdl_render_info = {renderer : Tsdl.Sdl.renderer;x : int;(*Top-left X position in pixels
*)y : int;(*Top-left Y position in pixels
*)width : int;(*Width in character cells
*)height : int;(*Height in character cells
*)char_w : int;(*Character cell width in pixels
*)char_h : int;(*Character cell height in pixels
*)
}SDL rendering context information
Source
val render_sdl :
sdl_render_info ->
Miaou_widgets_display.Sparkline_widget.t ->
focus:bool ->
show_value:bool ->
?color:string ->
?thresholds:Miaou_widgets_display.Sparkline_widget.threshold list ->
unit ->
unitRender sparkline directly to SDL renderer with enhanced graphics.
infoSDL rendering contextfocusWhether to highlight (currently has minimal effect in SDL mode)show_valueIf true, value display handled separately (not rendered here)colorOptional ANSI color code for the sparklinethresholdsOptional thresholds for coloring segments
Source
val render :
Miaou_widgets_display.Sparkline_widget.t ->
focus:bool ->
show_value:bool ->
?color:string ->
?thresholds:Miaou_widgets_display.Sparkline_widget.threshold list ->
unit ->
stringFallback to text-based rendering for terminal mode. Returns the rendered sparkline as a string.
Source
val render_with_label :
Miaou_widgets_display.Sparkline_widget.t ->
label:string ->
focus:bool ->
?color:string ->
?thresholds:Miaou_widgets_display.Sparkline_widget.threshold list ->
unit ->
stringRender with a label prefix (text mode only).
sectionYPositions = computeSectionYPositions($el), 10)"
x-init="setTimeout(() => sectionYPositions = computeSectionYPositions($el), 10)"
>