no-wrap option; pivoted exponential zoom
This commit is contained in:
@@ -59,7 +59,13 @@ func (w *World) buildRenderPlanStageA(params RenderParams) (RenderPlan, error) {
|
||||
return RenderPlan{}, err
|
||||
}
|
||||
|
||||
tiles := tileWorldRect(worldRect, w.W, w.H)
|
||||
allowWrap := params.Options == nil || !params.Options.DisableWrapScroll
|
||||
var tiles []WorldTile
|
||||
if allowWrap {
|
||||
tiles = tileWorldRect(worldRect, w.W, w.H)
|
||||
} else {
|
||||
tiles = tileWorldRectNoWrap(worldRect, w.W, w.H)
|
||||
}
|
||||
|
||||
// Query candidates per tile.
|
||||
batches, err := w.collectCandidatesForTiles(tiles)
|
||||
|
||||
Reference in New Issue
Block a user