client/annotviz/app/js/annotsvizview.js
changeset 133 12f782a13fa2
parent 129 7181e1f28eb0
child 134 119b6193c493
equal deleted inserted replaced
129:7181e1f28eb0 133:12f782a13fa2
    39 	var wsPianoroll = opts.wsPianoroll;
    39 	var wsPianoroll = opts.wsPianoroll;
    40 	var wsAnnot = opts.wsAnnot;
    40 	var wsAnnot = opts.wsAnnot;
    41 	var stageView = opts.stageView;
    41 	var stageView = opts.stageView;
    42 	var currentTime = Date.now() + 3600*1000;
    42 	var currentTime = Date.now() + 3600*1000;
    43 	var eventCode = opts.eventCode;
    43 	var eventCode = opts.eventCode;
       
    44 	var eventCodeSessionDay1 = opts.eventCodeSessionDay1;
    44     var channel = opts.channel;
    45     var channel = opts.channel;
       
    46     var serverUrl = opts.serverUrl;
    45 
    47 
    46 	stageView.registerComponent(this);
    48 	stageView.registerComponent(this);
    47 
    49 
    48 	var timeLineDay2 = new AnnotsTimeLine.AnnotsTimeLine({
    50 	var timeLineDay2 = new AnnotsTimeLine.AnnotsTimeLine({
    49     	stageView : stageView,
    51     	stageView : stageView,
    59         intervalHeight: 10,
    61         intervalHeight: 10,
    60         maxCellHeight: 70,
    62         maxCellHeight: 70,
    61         radius: 200,
    63         radius: 200,
    62         eventCode: eventCode,
    64         eventCode: eventCode,
    63         channel: channel,
    65         channel: channel,
       
    66         serverUrl: serverUrl,
    64         annotCategories: this.annotCategories
    67         annotCategories: this.annotCategories
    65     });
    68     });
    66 	
    69 	
    67     //Archive day 1
    70     //Archive day 1
    68     var timeLineDay1 = new AnnotsTimeLine.AnnotsTimeLine({
    71     var timeLineDay1 = new AnnotsTimeLine.AnnotsTimeLine({
    79         intervalWidth: (timeLineDay2.radius*2/3)* timeLineDay2.intervalWidth / timeLineDay2.radius,
    82         intervalWidth: (timeLineDay2.radius*2/3)* timeLineDay2.intervalWidth / timeLineDay2.radius,
    80         intervalHeight: (timeLineDay2.intervalHeight * (timeLineDay2.radius - timeLineDay2.radius*2/3))/ timeLineDay2.maxCellHeight,
    83         intervalHeight: (timeLineDay2.intervalHeight * (timeLineDay2.radius - timeLineDay2.radius*2/3))/ timeLineDay2.maxCellHeight,
    81         maxCellHeight: (timeLineDay2.radius - timeLineDay2.radius*2/3)/4,
    84         maxCellHeight: (timeLineDay2.radius - timeLineDay2.radius*2/3)/4,
    82         radius: timeLineDay2.radius*2/3,
    85         radius: timeLineDay2.radius*2/3,
    83         annotCategories: this.annotCategories,
    86         annotCategories: this.annotCategories,
    84         eventCode: eventCode,
    87         eventCode: eventCodeSessionDay1,
    85         channel: channel,
    88         channel: channel,
       
    89         serverUrl: serverUrl,
    86         showClockGraphics:false
    90         showClockGraphics:false
    87     });
    91     });
    88     
    92     
    89     var currentTimeText = new PIXI.Text("-- : -- : --", { font: '18pt Gothic Standard', fill: '#646464' });
    93     var currentTimeText = new PIXI.Text("-- : -- : --", { font: '18pt Gothic Standard', fill: '#646464' });
    90     currentTimeText.x = timeLineDay2.circleX - currentTimeText.width/2;
    94     currentTimeText.x = timeLineDay2.circleX - currentTimeText.width/2;