forked from MapComplete/MapComplete
		
	Refactorin: Fix linting errors
This commit is contained in:
		
							parent
							
								
									e12233c0e9
								
							
						
					
					
						commit
						152b8838cf
					
				
					 1 changed files with 6 additions and 7 deletions
				
			
		|  | @ -78,7 +78,6 @@ | ||||||
|   let layout = state.layout |   let layout = state.layout | ||||||
|   let maplibremap: UIEventSource<MlMap> = state.map |   let maplibremap: UIEventSource<MlMap> = state.map | ||||||
|   let selectedElement: UIEventSource<Feature> = new UIEventSource<Feature>(undefined) |   let selectedElement: UIEventSource<Feature> = new UIEventSource<Feature>(undefined) | ||||||
|   selectedElement.addCallbackAndRun((se) => console.log("Selected element", se)) |  | ||||||
|   let compass = Orientation.singleton.alpha |   let compass = Orientation.singleton.alpha | ||||||
|   let compassLoaded = Orientation.singleton.gotMeasurement |   let compassLoaded = Orientation.singleton.gotMeasurement | ||||||
|   Orientation.singleton.startMeasurements() |   Orientation.singleton.startMeasurements() | ||||||
|  | @ -138,10 +137,10 @@ | ||||||
|     state.visualFeedbackViewportBounds.setData(bbox) |     state.visualFeedbackViewportBounds.setData(bbox) | ||||||
|   } |   } | ||||||
| 
 | 
 | ||||||
|   viewport.addCallbackAndRunD((_) => { |   viewport.addCallbackAndRunD(() => { | ||||||
|     updateViewport() |     updateViewport() | ||||||
|   }) |   }) | ||||||
|   mapproperties.bounds.addCallbackAndRunD((_) => { |   mapproperties.bounds.addCallbackAndRunD(() => { | ||||||
|     updateViewport() |     updateViewport() | ||||||
|   }) |   }) | ||||||
|   let featureSwitches: FeatureSwitchState = state.featureSwitches |   let featureSwitches: FeatureSwitchState = state.featureSwitches | ||||||
|  | @ -224,7 +223,7 @@ | ||||||
|       on:keydown={forwardEventToMap} |       on:keydown={forwardEventToMap} | ||||||
|     > |     > | ||||||
|       <div class="m-0.5 mx-1 flex cursor-pointer items-center max-[480px]:w-full sm:mx-1 md:mx-2"> |       <div class="m-0.5 mx-1 flex cursor-pointer items-center max-[480px]:w-full sm:mx-1 md:mx-2"> | ||||||
|         <img class="mr-0.5 block h-6 w-6 sm:mr-1 md:mr-2 md:h-8 md:w-8" src={layout.icon} /> |         <img role="presentation" alt="" class="mr-0.5 block h-6 w-6 sm:mr-1 md:mr-2 md:h-8 md:w-8" src={layout.icon} /> | ||||||
|         <b class="mr-1"> |         <b class="mr-1"> | ||||||
|           <Tr t={layout.title} /> |           <Tr t={layout.title} /> | ||||||
|         </b> |         </b> | ||||||
|  | @ -387,13 +386,13 @@ | ||||||
| 
 | 
 | ||||||
| <If condition={state.previewedImage.map((i) => i !== undefined)}> | <If condition={state.previewedImage.map((i) => i !== undefined)}> | ||||||
|   <FloatOver extraClasses="p-1" on:close={() => state.previewedImage.setData(undefined)}> |   <FloatOver extraClasses="p-1" on:close={() => state.previewedImage.setData(undefined)}> | ||||||
|     <div |     <button | ||||||
|       class="absolute right-4 top-4 h-8 w-8 cursor-pointer rounded-full bg-white/50 transition-colors duration-200 hover:bg-white" |       class="absolute p-0 right-4 top-4 h-8 w-8 rounded-full" | ||||||
|       on:click={() => previewedImage.setData(undefined)} |       on:click={() => previewedImage.setData(undefined)} | ||||||
|       slot="close-button" |       slot="close-button" | ||||||
|     > |     > | ||||||
|       <XCircleIcon /> |       <XCircleIcon /> | ||||||
|     </div> |     </button> | ||||||
|     <ImageOperations image={$previewedImage} /> |     <ImageOperations image={$previewedImage} /> | ||||||
|   </FloatOver> |   </FloatOver> | ||||||
| </If> | </If> | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue