Add web timeline mockup, design doc, and show data model

This commit is contained in:
Ian Gulliver
2026-02-18 13:48:29 -08:00
parent 273437ff04
commit 7d0aa910fb
4 changed files with 452 additions and 0 deletions

38
lib/show/model.go Normal file
View File

@@ -0,0 +1,38 @@
package show
type StateType string
const (
Lighting StateType = "lighting"
Media StateType = "media"
)
type State struct {
ID string `json:"id"`
Type StateType `json:"type"`
Sequence int `json:"sequence"`
Layer int `json:"layer"`
LightingParams *LightingParams `json:"lightingParams,omitempty"`
MediaParams *MediaParams `json:"mediaParams,omitempty"`
}
type LightingParams struct {
Fixtures []FixtureSetting `json:"fixtures"`
}
type FixtureSetting struct {
ID string `json:"id"`
Channels map[string]int `json:"channels"`
}
type MediaParams struct {
Source string `json:"source"`
Loop bool `json:"loop"`
}
type Cue struct {
ID string `json:"id"`
Sequence int `json:"sequence"`
Name string `json:"name"`
}