wu-wu-wu / simile-widgets

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

this._etherPainter.zoom is not a function #279

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Hi,

i'm experimenting with timeline and want to do two thing. 

1. The first is to set relative time to a timeline band similar to the 
example in :
http://people.csail.mit.edu/dfhuynh/misc/planning.html 

2. Add mouse zoom functionality to this band .

I have insert my code , it was based on the local_example.html example 
that i found from this site.

var bandInfos = [
    Timeline.createBandInfo({
        width:          "70%", 
        intervalUnit:   Timeline.DateTime.YEAR, 
        intervalPixels: 150,
        showEventText:  false,
        theme:          theme,
        zoomIndex: 10,
        zoomSteps: new Array(
       {pixelsPerInterval: 280, unit: Timeline.DateTime.HOUR},
       {pixelsPerInterval: 140, unit: Timeline.DateTime.HOUR},
       {pixelsPerInterval: 70, unit: Timeline.DateTime.HOUR},
       {pixelsPerInterval: 35, unit: Timeline.DateTime.HOUR},
       {pixelsPerInterval: 400, unit: Timeline.DateTime.DAY},
       {pixelsPerInterval: 200, unit: Timeline.DateTime.DAY},
       {pixelsPerInterval: 100, unit: Timeline.DateTime.DAY},
       {pixelsPerInterval: 50, unit: Timeline.DateTime.DAY},
       {pixelsPerInterval: 400, unit: Timeline.DateTime.MONTH},
       {pixelsPerInterval: 200, unit: Timeline.DateTime.MONTH},
       {pixelsPerInterval: 150, unit: Timeline.DateTime.YEAR})
    }),
    Timeline.createBandInfo({
        width:          "30%", 
        intervalUnit:   Timeline.DateTime.MONTH, 
        intervalPixels: 100,
        showEventText:  false,
        theme:          theme,
    })
  ];

   bandInfos[0].etherPainter = new Timeline.YearCountEtherPainter({
                startDate:  "Thu Apr 30 15:06:02 GMT+930 1990",
                theme:      theme
            });

  bandInfos[1].syncWith = 0;
  bandInfos[1].hightlight = false;

when i add the etherpainter and the zoom functionaliy i get a 
this._etherPainter.zoom is not a function error

Original issue reported on code.google.com by aero_...@hotmail.com on 5 May 2009 at 6:51

GoogleCodeExporter commented 8 years ago

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