| 
									
										
										
										
											2021-07-15 20:47:28 +02:00
										 |  |  | export interface ChangeDescription { | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     type: "node" | "way" | "relation", | 
					
						
							|  |  |  |     /** | 
					
						
							|  |  |  |      * Negative for a new objects | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     id: number, | 
					
						
							|  |  |  |     /* | 
					
						
							|  |  |  |  v = "" or v = undefined to erase this tag | 
					
						
							|  |  |  |  */ | 
					
						
							|  |  |  |     tags?: { k: string, v: string }[], | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     changes?: { | 
					
						
							|  |  |  |         lat: number, | 
					
						
							|  |  |  |         lon: number | 
					
						
							|  |  |  |     } | { | 
					
						
							| 
									
										
										
										
											2021-08-07 21:19:01 +02:00
										 |  |  |         // Coordinates are only used for rendering. They should be lon, lat
 | 
					
						
							| 
									
										
										
										
											2021-07-15 20:47:28 +02:00
										 |  |  |         locations: [number, number][] | 
					
						
							|  |  |  |         nodes: number[], | 
					
						
							|  |  |  |     } | { | 
					
						
							|  |  |  |         members: { type: "node" | "way" | "relation", ref: number, role: string }[] | 
					
						
							|  |  |  |     } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  |     /* | 
					
						
							|  |  |  |     Set to delete the object | 
					
						
							|  |  |  |      */ | 
					
						
							|  |  |  |     doDelete?: boolean | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | } |