fixed typo
This commit is contained in:
		
							parent
							
								
									f7e7059641
								
							
						
					
					
						commit
						f21dd48106
					
				@ -46,7 +46,7 @@ abstract Canvas(Array<Array<Pixel>>) to Array<Array<Pixel>>{
 | 
			
		||||
		}
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	public function hight():Int {
 | 
			
		||||
	public function height():Int {
 | 
			
		||||
		return this.length;
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
@ -64,7 +64,7 @@ abstract Canvas(Array<Array<Pixel>>) to Array<Array<Pixel>>{
 | 
			
		||||
	public function getBounds(): Rect {
 | 
			
		||||
		return new Rect({x:0,y:0},{
 | 
			
		||||
			x: maxWidth(),
 | 
			
		||||
			y: hight()
 | 
			
		||||
			y: height()
 | 
			
		||||
		});
 | 
			
		||||
	}
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
@ -160,9 +160,9 @@ class ReactiveUI {
 | 
			
		||||
			},writePoint);
 | 
			
		||||
 | 
			
		||||
			canvas.combine(childRender, writePoint);
 | 
			
		||||
			elementMap.set(new Rect(writePoint,{x: childRender.maxWidth() + writePoint.x, y: writePoint.y + (childRender.hight() - 1)}),child);
 | 
			
		||||
			elementMap.set(new Rect(writePoint,{x: childRender.maxWidth() + writePoint.x, y: writePoint.y + (childRender.height() - 1)}),child);
 | 
			
		||||
 | 
			
		||||
			writePoint = {x: 0, y: writePoint.y + childRender.hight()};
 | 
			
		||||
			writePoint = {x: 0, y: writePoint.y + childRender.height()};
 | 
			
		||||
		}
 | 
			
		||||
 | 
			
		||||
		return {canvas: canvas,map: elementMap};
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user