Kuntal Daftary wrote:
> Hello
>
> I am trying to build a webpage using exhibit, specifically the 
> timeline view.
>
> After going through the mailing list archives, I found out that 
> "showEventText" supported in native Timeline is not supported under 
> Exhibit timeline view. I also found a proposed alternate to use the 
> overview:true  instead, which worked great.
>
> Now my question is, how can I change the size of the overview tracks. 
> With showEventText, trackHeight and trackGap did that. However, with 
> overview:true, those dont seem to work. Is there an alternate way to 
> do this with Exhibit timelines ?
It sounds like you have read through this page
    http://simile.mit.edu/wiki/Controlling_A_Timeline_Within_An_Exhibit

The code for rendering the overview band is here
    
http://static.simile.mit.edu/timeline/api-2.0/scripts/overview-painter.js
If you search for the function
    Timeline.OverviewEventPainter.prototype.paint
you can see how the various settings for the tracks are retrieved from 
the theme object, i.e.,

    var metrics = {
        trackOffset:    eventTheme.overviewTrack.offset,
        trackHeight:    eventTheme.overviewTrack.height,
        trackGap:       eventTheme.overviewTrack.gap,
        trackIncrement: eventTheme.overviewTrack.height + 
eventTheme.overviewTrack.gap
    }

This means that in the timeline constructor function (from the wiki page 
above), you can set these settings, e.g.,
    theme.event.overviewTrack.height = 10; // in pixels
To see the default settings, see
    http://static.simile.mit.edu/timeline/api-2.0/scripts/themes.js

Hope that helps.

David


_______________________________________________
General mailing list
[email protected]
http://simile.mit.edu/mailman/listinfo/general

Reply via email to