themes and styles
This commit is contained in:
@@ -11,6 +11,7 @@ func TestCircles_WrapCopies_AppearInsideViewportWhenViewportEqualsWorld(t *testi
|
||||
|
||||
// World 10x10 units => 10px at zoom=1 when viewport==world.
|
||||
w := NewWorld(10, 10)
|
||||
w.SetCircleRadiusScaleFp(SCALE)
|
||||
w.resetGrid(2 * SCALE)
|
||||
|
||||
type tc struct {
|
||||
@@ -74,7 +75,7 @@ func TestCircles_WrapCopies_AppearInsideViewportWhenViewportEqualsWorld(t *testi
|
||||
require.NoError(t, err)
|
||||
|
||||
d := &fakePrimitiveDrawer{}
|
||||
drawCirclesFromPlan(d, plan, w2.W, w2.H, true)
|
||||
drawCirclesFromPlan(d, plan, w2.W, w2.H, true, w.circleRadiusScaleFp)
|
||||
|
||||
cmds := d.CommandsByName("AddCircle")
|
||||
require.Len(t, cmds, len(tt.wantCenters))
|
||||
|
||||
Reference in New Issue
Block a user