Hi Adrien,
Thank you for your time on this.
Am I understanding you correctly that a band with a start and stop
date won't be scrollable? Does that mean that it needs to fit entirely
in the width of the browser?
Sounds like the plan is to implement the band with start/stop dates as
an overview band with low resolution, then have a more detailed band
(the main one) be scrollable. Is this right? If so, what happens when
the main (detailed) band gets to the left or right side of the over
view band? Does it stop scrolling at that point?
Regarding your patch:
Can you use a better comment than
+ // hack for easier subclassing
+ if (timeline !== undefined) {
+ this.initialize(timeline, bandInfo, index);
+ }
What are you accomplishing by the statement (timeline !== undefined)?
Why would timeline be changed from defined to undefined (or vice-
versa) at that point?
Would it be better to use "extend" from
http://www.kevlindev.com/tutorials/javascript/inheritance/index.htm or
similar?
Thanks,
Larry
On Oct 23, 5:24 am, "Adrien Di Mascio" <[EMAIL PROTECTED]> wrote:
> Hi there,
>
> I'm currently implementing a basic version of a "FixedBand" in the timeline,
> that is a band for which you specify a "start date", a "stop date". Once
> displayed, this band cannot itself be scrolled but you can double click
> somewhere in it and the synchronized bands get centered on this date.
> I also implemented the classic "scroll" mechansim on this fixed band
> but then only the "highlight" div moves (and other bands are synchronized).
>
> That said, it's not yet ready for a patch because it relies on a few hardcoded
> informations for now and I will tackle this as soon as I can.
>
> Nervertheless, I've changed a bit scripts/timeline.js (patch attached, based
> on rev. 1623). The patch consists in 2 parts :
>
> 1. I noticed that LinearEther is able to use a "startsOn" and a "endsOn"
> parameters but Timeline.createBandInfo() doesn't try to use them. The
> patch looks for a "startsOn" and a "endsOn" parameter in the bandInfo
> and pass them to LinearEther.
>
> 2. I create a "FixedBand" subclass of "Timeline._Band". In order to use
> it easily, I changed the way Bands were instanciated.
>
> Please let me know if I overlooked the problem or if something is wrong
> with my patch. I will provide my FixedBand code as soon as it gets
> tidied.
>
> Cheers,
> Adrien.
>
> timeline.js.patch
> 2KViewDownload
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"SIMILE Widgets" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/simile-widgets?hl=en
-~----------~----~----~----~------~----~------~--~---