--- Leif W <[EMAIL PROTECTED]> wrote: > > lyr1.setSnapBoundary('inner',10,10,20,20); > > lyr2.setSnapBoundary('outer',10,10,20,20); > > This format implies folding the setSnapType into the > setSnapBoundary method. > What about the 'both' snapType? In the checkForSnap > code I have to look at > the snapType to determine if I need to > checkForSnapInner or > checkForSnapOuter or both. > > Should it look like this? > > lyr3.setSnapBoundary('both',10,10,20,20,10,10,20,20); No. Too confusing
> Or leave it to the coder (maybe a bit confusing): > > lyr4.setSNapType('both'); > lyr4.setSnapBoundary('inner',10,10,20,20); > lyr4.setSnapBoundary('outer',10,10,20,20); Yea, this is much cleaner and easier to read Best regards, -- Raymond Irving __________________________________________________ Do you Yahoo!? Yahoo! Tax Center - forms, calculators, tips, more http://taxes.yahoo.com/ ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf _______________________________________________ Dynapi-Dev mailing list [EMAIL PROTECTED] http://www.mail-archive.com/[EMAIL PROTECTED]/