Without looking at your implementation Nathan, I imagine the following:
- Selectables should be a separate class which supports cmd / ctrl /
shift selection of elements.
- The Rubber band selector could then extend Selectables, and support
selection of multiple items via 'lasso' or rubber band.
- Both of those could hook into Drag.Group to support dragging and
dropping of multiple selected items at once.
just my $.02, great work on this so far.
- tomo
On Feb 9, 2009, at 10:08 AM, nwhite wrote:
I have been heavily reworking the rubberband select ;-) And yes the
control-click works along with it.
The old rubber band caches the coordinates of the elements and does
not have a mechanism in place for updating. I have this piece
resolved.
The other aspect of Rubberband that I have been working on is for
the true geek out there. I have implemented a 'visual sort'
algorithm. What it does is sort elements by their placement. It has
a fuzzy range and will detect multiple lines. It returns a multi
dimensitional array of each element and its placement.
[ [ el5, el7, el2 ],
[ el1, el4 ],
[ el3, el6, el9, el10]];
I will have the demo online a bit later today.
Nathan
On Mon, Feb 9, 2009 at 12:54 PM, nutron <[email protected]> wrote:
Very nice. This might be a fit for -more if the use case is broad
enough, which it sounds like it is. Let me know when you're finished
refining it and you have a demo up. In my mind it would be useful
for ctrl+click type selection where you select numerous items and
then drag the whole group to the new location, as with, say, a file
browser...
On Mon, Feb 9, 2009 at 9:10 AM, nwhite (via Nabble) <ml-user
%2b93763-1341009...@...> wrote:
I just wrote a new class called Drag.Group. It fits into a more
complex structure of classes that I am working on that will soon be
released. Any critiques and or optimizations are always welcomed.
http://www.nwhite.net/2009/02/09/draggroup/
Thanks,
Nathan
The MooTools Tutorial: www.mootorial.com Clientcide:
www.clientcide.com
View this message in context: Re: Drag.Group
Sent from the MooTools Users mailing list archive at Nabble.com.