issue #10: smaller jsons
This commit is contained in:
		
							parent
							
								
									806883c8aa
								
							
						
					
					
						commit
						3ece689c9f
					
				
							
								
								
									
										2192135
									
								
								clients/anim/data.js
								
								
								
								
							
							
						
						
									
										2192135
									
								
								clients/anim/data.js
								
								
								
								
							
										
											
												File diff suppressed because one or more lines are too long
											
										
									
								
							| 
						 | 
				
			
			@ -20,8 +20,8 @@ Object.keys(accesspoints).forEach(function (name) {
 | 
			
		|||
	point.index = ap.getId(point.name);
 | 
			
		||||
	condensedAccesspoints[point.index] = {
 | 
			
		||||
		x: point.x,
 | 
			
		||||
		y: point.y,
 | 
			
		||||
		room: point.group
 | 
			
		||||
		y: point.y
 | 
			
		||||
		/*,room: point.group*/
 | 
			
		||||
	};
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			@ -58,7 +58,10 @@ var result = {
 | 
			
		|||
	matrix: newEntries
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
fs.writeFileSync('../clients/anim/data.js', 'var data = '+JSON.stringify(result, null, '\t'), 'utf8');
 | 
			
		||||
var json = JSON.stringify(result /*, null, '\t'*/);
 | 
			
		||||
json = json.replace(/null/g, '');
 | 
			
		||||
 | 
			
		||||
fs.writeFileSync('../clients/anim/data.js', 'var data = '+json, 'utf8');
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue