Compare commits
	
		
			3 Commits
		
	
	
		
			ba4861a5fb
			...
			0d4488e781
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
| 0d4488e781 | |||
| f373e3574c | |||
| ffd5b64885 | 
| @ -14,19 +14,12 @@ fn main() { | |||||||
|     print(a + " " + b + "!\n"); // -> "Hello world!" |     print(a + " " + b + "!\n"); // -> "Hello world!" | ||||||
| 
 | 
 | ||||||
|     if a == b { |     if a == b { | ||||||
|         print("whaaaat\n"); |         print("Equal\n"); | ||||||
|     } |     } | ||||||
|     else { |     else { | ||||||
|         print(":o\n"); |         print("Unequal\n"); | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|     loop { |     for (let i = 0; i < 10; i += 1) { | ||||||
|         let i = 0; |  | ||||||
| 
 |  | ||||||
|         if i >= 10 { |  | ||||||
|            break; |  | ||||||
|         } |  | ||||||
| 
 |  | ||||||
|         i = i + 1; |  | ||||||
|     } |     } | ||||||
| } | } | ||||||
|  | |||||||
							
								
								
									
										
											BIN
										
									
								
								usecase.odt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										
											BIN
										
									
								
								usecase.odt
									
									
									
									
									
										Normal file
									
								
							
										
											Binary file not shown.
										
									
								
							| @ -90,7 +90,7 @@ export function loadFlameGraph( | |||||||
|     function renderNodes(nodes: CalcNode[]) { |     function renderNodes(nodes: CalcNode[]) { | ||||||
|         for (const node of nodes) { |         for (const node of nodes) { | ||||||
|             const { x, y, w, h } = node; |             const { x, y, w, h } = node; | ||||||
|             ctx.fillStyle = "rgb(255, 125, 0)"; |             ctx.fillStyle = "rgb(227, 178, 60)"; | ||||||
|             ctx.fillRect(x + 2, y + 2, w - 4, h - 4); |             ctx.fillRect(x + 2, y + 2, w - 4, h - 4); | ||||||
| 
 | 
 | ||||||
|             const textCanvas = drawTextCanvas(node); |             const textCanvas = drawTextCanvas(node); | ||||||
| @ -105,8 +105,8 @@ export function loadFlameGraph( | |||||||
|                 x + 2 + edgeWidth, |                 x + 2 + edgeWidth, | ||||||
|                 0, |                 0, | ||||||
|             ); |             ); | ||||||
|             leftGradient.addColorStop(1, "rgba(255, 125, 0, 0.0)"); |             leftGradient.addColorStop(1, "rgba(227, 178, 60, 0.0)"); | ||||||
|             leftGradient.addColorStop(0, "rgba(255, 125, 0, 1.0)"); |             leftGradient.addColorStop(0, "rgba(227, 178, 60, 1.0)"); | ||||||
|             ctx.fillStyle = leftGradient; |             ctx.fillStyle = leftGradient; | ||||||
|             ctx.fillRect(x + 2, y + 2, Math.min(edgeWidth, (w - 4) / 2), h - 4); |             ctx.fillRect(x + 2, y + 2, Math.min(edgeWidth, (w - 4) / 2), h - 4); | ||||||
| 
 | 
 | ||||||
| @ -116,8 +116,8 @@ export function loadFlameGraph( | |||||||
|                 x + w - 2 - edgePadding, |                 x + w - 2 - edgePadding, | ||||||
|                 0, |                 0, | ||||||
|             ); |             ); | ||||||
|             rightGradient.addColorStop(0, "rgba(255, 125, 0, 0.0)"); |             rightGradient.addColorStop(0, "rgba(227, 178, 60, 0.0)"); | ||||||
|             rightGradient.addColorStop(1, "rgba(255, 125, 0, 1.0)"); |             rightGradient.addColorStop(1, "rgba(227, 178, 60, 1.0)"); | ||||||
|             ctx.fillStyle = rightGradient; |             ctx.fillStyle = rightGradient; | ||||||
|             ctx.fillRect( |             ctx.fillRect( | ||||||
|                 x + w - 2 - Math.min(edgeWidth, (w - 4) / 2), |                 x + w - 2 - Math.min(edgeWidth, (w - 4) / 2), | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user