There's one comment I would like to make about the snap feature. I find it strange that what you hold is suddenly pulled of you. The issue is that the cursor doesn't follow. This is usually handled by a "ghost", a dimmed version of what you drag, or a rectangle of the size of what you drag, that represent where what you drag would go. I think it's more natural to do it that way.
You could do the ghost in dynapi. Make a copy of the dragged layer, embed it in another layer and "cover" it with another layer containing a png image that have alpha transparency, impression guaranted !!! And for browser that don't support png, use a gif pattern that has 1pixel transparent-1 pixel gray, 1 pixel transparent, 1 pixel gray etc ...
For png support, for example, IE on the mac supports png with transparency well in the <IMG tag, but doesn't display it correctly if you use it as a div background image.
Benoit
On Friday, February 28, 2003, at 06:04 AM, Leif W wrote:
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);
Also, during development I have used an undocumented feature.
setSnapBoundary() with no args sets all boundaries to a hard-coded default.
This was merely for convenience during testing. Would it be of any use to
extend this feature to setDefaultBoundary(b), such that any call to
setSnapBoundary with no arguments would set all boundaries to this default?
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]/
------------------------------------------------------- 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]/
