| 
														
															@@ -192,22 +192,20 @@ export const generateRoughOptions = (element: ExcalidrawElement): Options => { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       return options; 
														 | 
														
														 | 
														
															       return options; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     case "line": 
														 | 
														
														 | 
														
															     case "line": 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    case "draw": 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-    case "arrow": { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    case "draw": { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       // If shape is a line and is a closed shape, 
														 | 
														
														 | 
														
															       // If shape is a line and is a closed shape, 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       // fill the shape if a color is set. 
														 | 
														
														 | 
														
															       // fill the shape if a color is set. 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-      if (element.type === "line" || element.type === "draw") { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        if (isPathALoop(element.points)) { 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-          options.fillStyle = element.fillStyle; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-          options.fill = 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-            element.backgroundColor === "transparent" 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              ? undefined 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-              : element.backgroundColor; 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															-        } 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      if (isPathALoop(element.points)) { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        options.fillStyle = element.fillStyle; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+        options.fill = 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+          element.backgroundColor === "transparent" 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            ? undefined 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+            : element.backgroundColor; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       } 
														 | 
														
														 | 
														
															       } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															- 
														 | 
														
														 | 
														
															 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       return options; 
														 | 
														
														 | 
														
															       return options; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+    case "arrow": 
														 | 
													
												
											
												
													
														| 
														 | 
														
															 
														 | 
														
														 | 
														
															+      return options; 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     default: { 
														 | 
														
														 | 
														
															     default: { 
														 | 
													
												
											
												
													
														| 
														 | 
														
															       throw new Error(`Unimplemented type ${element.type}`); 
														 | 
														
														 | 
														
															       throw new Error(`Unimplemented type ${element.type}`); 
														 | 
													
												
											
												
													
														| 
														 | 
														
															     } 
														 | 
														
														 | 
														
															     } 
														 |