StackGenVis: Alignment of Data, Algorithms, and Models for Stacking Ensemble Learning Using Performance Metrics
				https://doi.org/10.1109/TVCG.2020.3030352
			
			
		
			You can not select more than 25 topics
			Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
		
		
		
		
		
			
		
			
				
					
					
						
							27 lines
						
					
					
						
							733 B
						
					
					
				
			
		
		
	
	
							27 lines
						
					
					
						
							733 B
						
					
					
				| 'use strict'
 | |
| 
 | |
| var totalX = (window.innerWidth/2)|0, totalY = (window.innerHeight/2)|0
 | |
| 
 | |
| var box = document.createElement('div')
 | |
| box.style.position = 'absolute'
 | |
| box.style.width = '20px'
 | |
| box.style.height = '20px'
 | |
| box.style.left = totalX + 'px'
 | |
| box.style.top = totalY + 'px'
 | |
| box.style['background-color'] = '#f00'
 | |
| box.style['z-index'] = 10
 | |
| document.body.appendChild(box)
 | |
| 
 | |
| var infoLog = document.createElement('div')
 | |
| infoLog.innerHTML = 'Scroll to move box'
 | |
| document.body.appendChild(infoLog)
 | |
| 
 | |
| require('../wheel')(function(dx, dy) {
 | |
|   totalX -= dx
 | |
|   totalY -= dy
 | |
|   box.style.left = totalX + 'px'
 | |
|   box.style.top = totalY + 'px'
 | |
|   infoLog.innerHTML = 
 | |
|     '<p>Scroll:' + dx + ',' + dy + ' - ' + 
 | |
|     totalX + ',' + totalY + '</p>'
 | |
| }, true) |