← Back to team overview

kicad-developers team mailing list archive

Re: New zoom code musings.

 

On Thu, 5 Feb 2009, jean-pierre.charras@... wrote:

So (before having a better way to handle zoom level, like user selection
values, or zoom step adjust) a reasonnable way is :
use the old values and add an intermediate value (something like 1, 1.5,
2, 3, 4 , 6, 8...in old values, and in new values: 10, 15, .. 20480)

I can't help but give a comment :) You see, that I also suggested adding just intermediates (3, 6, etc.), but that was before I gave it any thought how it really works. So I propose 10, 14, 20, 28, 40, 56, 80, 113, 160, 226, 320, etc. N is zoom index, so int(10*(sqrt(2))^N)

-Vesa






References