yassineharbe / simile-widgets

Automatically exported from code.google.com/p/simile-widgets
0 stars 0 forks source link

Use latestStart and earliestEnd in time extension of Exhibit #409

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Some people would like to use the latestStart and earliestEnd attributes of 
Timeline from within an Exhibit. So the time extension of Exhibit would need a 
little bit of extra code. The code that works for me is in the attached file. I 
load this file after loading the exhibit and timeline code.

Original issue reported on code.google.com by m.d.na...@hetnet.nl on 1 Nov 2010 at 8:05

Attachments:

GoogleCodeExporter commented 9 years ago
Found just a small typing error: duration.lastestStart ----> 
duration.latestStart

Bar's opacity works, color is (in my case) always blue with no respect to 
existing colorkey.

Original comment by steve.bo...@gmx.de on 1 Nov 2010 at 11:51

GoogleCodeExporter commented 9 years ago
A new version of timeline_plus fixing the typo, hoverText and adding trackNum 
is attached.

The color of the imprecise part of a duration event is set in the theme. If you 
use original-painter than take a look at 
Timeline.OriginalEventPainter.prototype.paintImpreciseDurationEvent in file 
original-painter.js 
(http://code.google.com/p/simile-widgets/source/browse/timeline/trunk/src/webapp
/api/scripts/original-painter.js) Note line 434 versus 438 which is the 
argument of this._paintEventTape setting the color. So if you copy that method 
in a file of your own, change "theme.event.duration.impreciseColor" to "color" 
and load that file after having loaded the Exhibit sources, you probably get 
what you want (if you use the original event painter).

Original comment by m.d.na...@hetnet.nl on 2 Nov 2010 at 2:37

Attachments:

GoogleCodeExporter commented 9 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 9:42

GoogleCodeExporter commented 9 years ago

Original comment by ryan...@csail.mit.edu on 23 Jun 2011 at 10:32