config

package
v0.2.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 22, 2024 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Layout

type Layout struct {
	Parameters []ParameterSection
	Rows       []LayoutRow
}

func FromFile

func FromFile(f fs.FS, path string, templatesFS fs.FS, paramTemplates string, panelTemplates string) (*Layout, error)

type LayoutPanel

type LayoutPanel struct {
	Drawer   plot.Drawer
	Observer any
}

type LayoutRow

type LayoutRow struct {
	Height int
	Panels []LayoutPanel
}

type Parameter

type Parameter struct {
	Template    string
	Parameter   string
	Units       string
	SliderInt   *SliderInt
	SliderFloat *SliderFloat
	Toggle      *Toggle
}

type ParameterSection

type ParameterSection struct {
	Text       string
	Parameters []Parameter
}

type SliderFloat

type SliderFloat struct {
	Min       float64
	Max       float64
	Precision float64
}

type SliderInt

type SliderInt struct {
	Min int
	Max int
}

type Toggle

type Toggle struct{}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL