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:
@@ -3,7 +3,7 @@
|
||||
package icons
|
||||
|
||||
import (
|
||||
_ "embed"
|
||||
"embed"
|
||||
)
|
||||
|
||||
//go:embed copy.svg cut.svg paste.svg
|
||||
|
||||
Reference in New Issue
Block a user