fix CanvasRenderer#getWindowSize being able to return {undefined, undefined} thus causing errors in math down the line
This commit is contained in:
		
							parent
							
								
									6e666c0265
								
							
						
					
					
						commit
						236d612c20
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -54,6 +54,7 @@ class CanvasRenderer extends HTMLElement {
 | 
			
		|||
    }
 | 
			
		||||
 | 
			
		||||
    getWindowSize() {
 | 
			
		||||
        if (this.width == null || this.height == null) return { width: 0, height: 0 };
 | 
			
		||||
        return {
 | 
			
		||||
            width: this.width,
 | 
			
		||||
            height: this.height,
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue