vis_files/generate_plots.js
/// Generates a frame for a map
Generates a frame for a map
Generates a frame for a map
function mapframe(vis)
{
	graphdx = mapdx; graphdy = mapdy;
	addbutton("",menux,0,mapdx,mapdy,CANVASBUT,CANVASBUT,-1,-1);
	addcanbutton("",0,0,graphdx,graphdy,-1,RESULTBUT2,-1,-1);	
	if(vis.type == "OP_ANIM_MAP" || vis.type == "OP_MIXING_WITHIN_ANIM_MAP" ||
	   vis.type == "OP_MIXING_BETWEEN_ANIM_MAP" || vis.type == "OP_AREA_TV_COVAR" || vis.type == "OP_LEVEL_EFFECT"){
		addcanbutton("",15,graphdy-45,30,30,PLAYBUT,PLAYBUT,-1,-1);		
		addcanbutton("",60,graphdy-37,graphdx-60-10-60,15,PLAYLINEBUT,PLAYLINEBUT,-1,-1);		
	}
	var dx = 22, dy = 26;
	addcanbutton("",mapdx-dx-dx-15,graphdy-dy-10,dx,dy,ZOOMINBUT,ZOOMINBUT,-1,-1);
	addcanbutton("",mapdx-dx-10,graphdy-dy-10,dx,dy,ZOOMOUTBUT,ZOOMOUTBUT,-1,-1); 
}
function mapframe ( vis ) { graphdx = mapdx ; graphdy = mapdy ; addbutton ( "" , menux , 0 , mapdx , mapdy , CANVASBUT , CANVASBUT , - 1 , - 1 ) ; addcanbutton ( "" , 0 , 0 , graphdx , graphdy , - 1 , RESULTBUT2 , - 1 , - 1 ) ; if ( vis . type == "OP_ANIM_MAP" || vis . type == "OP_MIXING_WITHIN_ANIM_MAP" || vis . type == "OP_MIXING_BETWEEN_ANIM_MAP" || vis . type == "OP_AREA_TV_COVAR" || vis . type == "OP_LEVEL_EFFECT" ) { addcanbutton ( "" , 15 , graphdy - 45 , 30 , 30 , PLAYBUT , PLAYBUT , - 1 , - 1 ) ; addcanbutton ( "" , 60 , graphdy - 37 , graphdx - 60 - 10 - 60 , 15 , PLAYLINEBUT , PLAYLINEBUT , - 1 , - 1 ) ; } var dx = 22 , dy = 26 ; addcanbutton ( "" , mapdx - dx - dx - 15 , graphdy - dy - 10 , dx , dy , ZOOMINBUT , ZOOMINBUT , - 1 , - 1 ) ; addcanbutton ( "" , mapdx - dx - 10 , graphdy - dy - 10 , dx , dy , ZOOMOUTBUT , ZOOMOUTBUT , - 1 , - 1 ) ; }
Generates a frame for a map
Generates a frame for a map