Pad/internal/editor
Greg Pomerantz b581abb691 Redesign ConfigEvent/Scale handling: ConfigEvent sets size, FrameEvent updates scale
- Logic layer has separate ConfigChan and ScaleChan
- ConfigEvent: width/height in Dp, set on ConfigEvent
- ScaleEvent: scale factor, set on FrameEvent when scale changes
- Logic has ScreenSize() accessor for layout/rendering pipeline
- Logic has SetScale() to update scale and recompute layout
- main.go: ConfigEvent stores pixels, converts to DP using current scale
- main.go: FrameEvent gets actual scale, sends ScaleEvent if changed
2026-05-09 19:59:27 -04:00
..
logic.go Redesign ConfigEvent/Scale handling: ConfigEvent sets size, FrameEvent updates scale 2026-05-09 19:59:27 -04:00
state.go Introduce distinct Dp/Px types to prevent coordinate mixing at compile time 2026-05-09 18:40:47 -04:00