Hi Graham,
Yes, you can call
tl.getBand(0).getCenterVisibleDate()
Cheers,
David
Graham Forte wrote:
> David,
> speaking to your comment "so that the user can track which event goes
> where from before to
> after zooming" , is there a way to capture the "centeredOn" value
> (perhaps the date) of where the user has scrolled the center of the
> timeline to?
> eg....
> I scroll to and center On July 4 2007...other than visualizing that I
> am centered on this date, is there a way to determine this
> programatically?
> Thanks.
>
> On 8/29/07, *David Huynh* <[EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]>> wrote:
>
> Hi Robin,
>
> I have no plan right now to implement zooming. If you just want
> the zoom
> level to change abruptly, that's not hard. But to make the zooming
> smooth (so that the user can track which event goes where from
> before to
> after zooming), that's definitely not trivial.
>
> David
>
> Robin McEntire wrote:
> > Are there any plans to implement a zooming In/Out capability? This
> > would be very useful to me as I expect my users to start at a
> very large
> > scope of a timeline, find what they're interested in, and then
> zoom down
> > to view details.
> >
> > BTW, this is a great app! Some really nice work here.
> >
> > best, and thanks,
> > robin
> >
> >
> > Michael Nosal wrote:
> >
> >> On Aug 13, 2007, at 4:23 AM, Naimesh (Hotmail) wrote:
> >>
> >>
> >>> Hello !
> >>> I am new to timeline. Can anybody help me on :
> >>> 1) How to Pan left and Right feature to give on button click even
> >>> on the buttons kept on the page where timeline is displayed.
> >>> 2) How to provide zoom In/Out feature to give on button click
> even
> >>> on the buttons kept on the page where timeline is displayed.
> >>> Please help soon on above.
> >>> Thanks & Regards.
> >>> Naimesh Trivedi
> >>>
> >>>
> >> Panning is done by calling _autoScroll on a Band. Look at
> >> Timeline._Band.prototype._onKeyUp. It binds the page down and
> page up
> >> keys to call _autoScroll. It takes a number of pixels +/- and
> scrolls
> >> the band in that direction.
> >>
> >> For example, you may have a link or button to pan your timeline:
> >>
> >> <input type="button" onclick="tl.getBand(0)._autoScroll( tl.getBand
> >> (0)._timeline.getPixelLength())" value="Backwards">
> >> This pans the timeline a fixed number of pixels.
> >>
> >> You may also call scrollToCenter on a Band. This takes a Date
> as its
> >> parameter and will smoothly scroll the timeline to that date. This
> >> allows you to scroll in exact time increments (such as +/- one
> month)
> >> rather than by pixels.
> >>
> >> onclick=' tl.getBand(0).scrollToCenter(new Date("9/13/2007"))'
> would
> >> scroll the timeline to center on that date.
> >>
> >> Timeline doesn't currently support zooming In/Out.
> >>
> >> --Mike Nosal
> >>
> >>
> >>
> >>
> >> _______________________________________________
> >> General mailing list
> >> [email protected] <mailto:[email protected]>
> >> http://simile.mit.edu/mailman/listinfo/general
> >>
> >>
> >>
> > _______________________________________________
> > General mailing list
> > [email protected] <mailto:[email protected]>
> > http://simile.mit.edu/mailman/listinfo/general
> >
>
> _______________________________________________
> General mailing list
> [email protected] <mailto:[email protected]>
> http://simile.mit.edu/mailman/listinfo/general
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> General mailing list
> [email protected]
> http://simile.mit.edu/mailman/listinfo/general
>
_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general