mayyangtaiwan / simile-widgets

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

TIMELINE. TImeline (multiple ether-painters bug (non-hotzone)) #170

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
If you want the time markers to be in (10,20,30,etc.) multiple markings
without using hotZone it does not work properly, instead displays at
inconsistent intervals.

My Timeline initialize code:

Timeline.createBandInfo({
        eventSource: eventSource,
        date: parm_config.date || "Jun 28 2006 00:00:00 GMT",
        timeZone: -parm_config.date.getTimezoneOffset()/60,
        width: "70%",
        multiple: parm_config.multiple || 1,
        intervalUnit: parm_config.intervalUnit0 || Timeline.DateTime.MONTH,
        intervalPixels: parm_config.intervalPixels0 || 100
    }), ....

Bug:
ether-painters.js:
  Timeline.DateTime.roundDownToInterval(minDate, this._unit, timeZone, 1,
this._theme.firstDayOfWeek);

Solution:
  Timeline.DateTime.roundDownToInterval(minDate, this._unit, timeZone,
this._multiple, this._theme.firstDayOfWeek);

[Submitted by Daniel on simile.mit.edu] 

Original issue reported on code.google.com by GabrielR...@googlemail.com on 6 Apr 2009 at 2:05