fix: remove duplicate scale storage, read from State via ScaleProvider interface

- Remove Renderer.scale field and SetScale method
- Add ScaleProvider interface to avoid editor/ui import cycle
- Add Scale() method to State, rename Scale field to scale
- Renderer reads scale through r.scale.Scale()
- Fix icons.go blank import preventing embed.FS usage
- Update main.go to pass State as ScaleProvider to Renderer
This commit is contained in:
gmp
2026-05-17 10:59:29 -04:00
parent fa43bf2402
commit 93a7a0a0b2
8 changed files with 84 additions and 102 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
package icons
import (
_ "embed"
"embed"
)
//go:embed copy.svg cut.svg paste.svg