Ok, I think I got it committed to the More repo on Git.

The slider now can have unlimited pins, each with their own spacing
settings.  This means if you have 3 pins the first can be set to have
5 steps of spacing while the second has 10 and the third has 15.  The
pins are not allowed to violate the other pins' spacing areas on drag
or set.  The default is 1 step for the knobSpacing option.  To make a
multi-pin slider, do a .each() on all the pins and create an optioned
out instance with multiKnob: true; for each pin with in addition to
your selected options, but use the same bar element obviously.  The
script will handle all the rest ;)

@Aaron - I did a commit on the More Slider source, is that what I
should have done?

- Daniel

On Sep 29, 2:30 am, Oskar Krawczyk <oskar.krawc...@gmail.com> wrote:
> Can't wait! :-)
>
> ___
>
> Oskar Krawczykhttp://nouincolor.com
>
>
>
> On Tue, Sep 29, 2009 at 05:51, csuwldcat <daniel...@gmail.com> wrote:
>
> > Almost done with the additions to Slider, should have it in Git for a
> > pull tomorrow ;)
>
> > On Sep 25, 3:50 pm, Aaron Newton <aa...@iminta.com> wrote:
> > > That *sounds* good, but I'd need to maybe play with it a while to feel
> > > completely certain.
>
> > > On Fri, Sep 25, 2009 at 3:30 PM, csuwldcat <daniel...@gmail.com> wrote:
>
> > > > Sounds like a plan Aaron, I will look at getting into the Git side of
> > > > it this weekend.
>
> > > > Also, did you all see the added option to set the knob spacing?  It is
> > > > a per knob option, and each knob can be different.  So picture this:
>
> > > > I have a slider that is 100px wide with 100 steps.  I give it three
> > > > knobs with the new method and set the first to a spacing of 5 steps
> > > > the second to 10 steps and the last to 20 steps.  If I then set the
> > > > pins to step 0, 50, and 100 respectively upon dragging the one that
> > > > starts at 0 step toward the one at 50 step the script is watching to
> > > > see if it is violating a spacing option of either.  In this case one
> > > > is set to 5 and the other 10, the script chooses the bigger spacing to
> > > > obey, thus the 0 pin would be prohibited from dragging any closer than
> > > > step 40 in respect to the 50 pin.  I hope that was not clear as mud...
>
> > > > Anywho, I have the default space setting at 1 step because I felt that
> > > > what was the point of a pin on the same point?  Is this a good
> > > > default?  Opinions, comments?
>
> > > > - Daniel
>
> > > > On Sep 25, 10:13 am, Aaron Newton <aa...@iminta.com> wrote:
> > > > > I agree. Let's get this into -more. Not for this release (which is
> > due
> > > > out
> > > > > monday) but for the next one.
> > > > > csuwldcat, if you want to pull from mootools more and change slider -
> > > > > instead of using refactor just integrate your changes directly into
> > the
> > > > > slider class - go for it. If not, we'll do it.
>
> > > > > If you're not comfortable w/ git, you can do all this on github.
> > Create
> > > > an
> > > > > account, go to mootools more (github.com/mootools/mootools-more/),
> > click
> > > > > "fork", navigate to Slider.js, click "edit", paste in your new
> > version,
> > > > save
> > > > > it, and then send a pull request.
>
> > > > > Aaron
>
> > > > > On Fri, Sep 25, 2009 at 9:21 AM, Oskar Krawczyk <
> > > > oskar.krawc...@gmail.com>wrote:
>
> > > > > > I want to see this in MooTools-more!
>
> > > > > > ___
>
> > > > > > Oskar Krawczyk
> > > > > >http://nouincolor.com
>
> > > > > > On Fri, Sep 25, 2009 at 17:06, csuwldcat <daniel...@gmail.com>
> > wrote:
>
> > > > > >> if you want a double pinned slider (or need many more pins - for a
> > > > > >> Photoshop-type gradient selector for instance) you can't really do
> > > > > >> much better than this plugin, it uses a more OO aproach via the
> > > > > >> Class.refactor in Mootools More versus some of the other scripts
> > out
> > > > > >> there which basically totally rewrite the entire Mootools More
> > > > > >> Slider...and it is only 19 lines!!!
>
> > > > > >> Check it out!!!
>
> > > > > >>http://blog.citycrawler.com/?p=74

Reply via email to