----- Original Message -----
From: "Raymond Irving" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 27, 2003 10:08 PM
Subject: Re: [Dynapi-Dev] Snap functionality demo

> Very nice work Lief.

Thanks!

> 1) I agree with Doug there should be feature which
> checks to see how far the mouse has moved before
> releasing the snapped object.

On the TODO list, I'll look into it this weekend.

> 2)I'm no sure I like the format you're using for
> setSnapBoundary(). IMO I think using something like
> setSnapBoundary(type,t,r,b,l) would be more flexible:
>
> 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);

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);

> The same would go for getSnapBoundary():
>
> var a = getSnapBoundary('inner');

Believe it or not I was going to do this, but ran into some snag and decided
to put it aside just to get some initial feedback.  I can't remember what it
was right now.  I'll look at it again and if I still have a problem I'll ask
for suggestions.

> 3) What about adding a feaure to make the dragged
> layer snap to and invisible grid inside it's parent?
> For example:
>
> lyr.setSnapGridSize(25);
> lyr.snapToGrid(true);

This sounds interesting.  It seems complex, but might be simpler than I
think.  I'll get to this after getting the other stuff ironed out.

> PS. It's looking very good, keep up the good work.

I'll be looking at this stuff over the weekend.  Thanks for the feedback.

Leif




-------------------------------------------------------
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]/

Reply via email to